# MediaStreamSourceConfigurationProperty

The media stream that is associated with the source, and the parameters for that association.

- Source: Generated at build time
- Type last changed: v2.143.0 · 24 May 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_mediaconnect as mediaconnect } from 'aws-cdk-lib';
const mediaStreamSourceConfigurationProperty: mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty = {
  encodingName: 'encodingName',
  mediaStreamName: 'mediaStreamName',

  // the properties below are optional
  inputConfigurations: [{
    inputPort: 123,
    interface: {
      name: 'name',
    },
  }],
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect

media_stream_source_configuration_property = mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty(
    encoding_name="encodingName",
    media_stream_name="mediaStreamName",

    # the properties below are optional
    input_configurations=[mediaconnect.CfnFlow.InputConfigurationProperty(
        input_port=123,
        interface=mediaconnect.CfnFlow.InterfaceProperty(
            name="name"
        )
    )]
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediaconnect.*;

MediaStreamSourceConfigurationProperty mediaStreamSourceConfigurationProperty = MediaStreamSourceConfigurationProperty.builder()
        .encodingName("encodingName")
        .mediaStreamName("mediaStreamName")

        // the properties below are optional
        .inputConfigurations(List.of(InputConfigurationProperty.builder()
                .inputPort(123)
                .interface(InterfaceProperty.builder()
                        .name("name")
                        .build())
                .build()))
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaConnect;

var mediaStreamSourceConfigurationProperty = new MediaStreamSourceConfigurationProperty {
    EncodingName = "encodingName",
    MediaStreamName = "mediaStreamName",

    // the properties below are optional
    InputConfigurations = new [] { new InputConfigurationProperty {
        InputPort = 123,
        Interface = new InterfaceProperty {
            Name = "name"
        }
    } }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

mediaStreamSourceConfigurationProperty := &MediaStreamSourceConfigurationProperty{
	EncodingName: jsii.String("encodingName"),
	MediaStreamName: jsii.String("mediaStreamName"),

	// the properties below are optional
	InputConfigurations: []interface{}{
		&InputConfigurationProperty{
			InputPort: jsii.Number(123),
			Interface: &InterfaceProperty{
				Name: jsii.String("name"),
			},
		},
	},
}
```

## Properties

- `encodingName`: string (required) — The format that was used to encode the data.

  For ancillary data streams, set the encoding name to smpte291. For audio streams, set the encoding name to pcm. For video, 2110 streams, set the encoding name to raw. For video, JPEG XS streams, set the encoding name to jxsv.

- `inputConfigurations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlow.InputConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlow.InputConfigurationProperty.html)[] — The media streams that you want to associate with the source.

- `mediaStreamName`: string (required) — A name that helps you distinguish one media stream from another.
