> **Experimental**
>
> `@aws-cdk/aws-medialive-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# MediaConnectInputProps

Properties for a MediaConnect input.

Used as argument in: [InputConfiguration.mediaConnect](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-medialive-alpha.InputConfiguration.html#mediaconnect)

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/input.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-medialive-alpha/lib/input.ts#L256)

## Example

TypeScript:

```ts
   declare const role: iam.IRole;
   declare const flow: mediaconnect.IFlowRef;

   InputConfiguration.mediaConnect({
     flows: [flow],
     role,
   });
```

Python:

```python
# role: iam.IRole
# flow: mediaconnect.IFlowRef

InputConfiguration.media_connect(
    flows=[flow],
    role=role
)
```

Java:

```java
IRole role;
IFlowRef flow;

InputConfiguration.mediaConnect(MediaConnectInputProps.builder()
        .flows(List.of(flow))
        .role(role)
        .build());
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.MediaLive.Alpha
IRole role;
IFlowRef flow;

InputConfiguration.MediaConnect(new MediaConnectInputProps {
    Flows = new [] { flow },
    Role = role
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awsmedialivealpha/v2
var role IRole
var flow IFlowRef

awsmedialivealpha.InputConfiguration_MediaConnect(&MediaConnectInputProps{
	Flows: []IFlowRef{
		flow,
	},
	Role: Role,
})
```

## Properties

- `flows`: [IFlowRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_mediaconnect.IFlowRef.html)[] (required) — The MediaConnect flows to use as sources (one, or two for pipeline redundancy).

- `role`: [IRole](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The IAM role MediaLive uses to manage the output it adds to the flow for this input.

  **Default:** a role is created with the medialive.amazonaws.com service principal [disable-awslint:prefer-ref-interface]

  When omitted, a role is created and granted the required permissions.
  When you provide a role, no permissions are added — you own all the permissions it needs.
