# CfnFlowMediaStreamProps

Struct · External

Properties for defining a `CfnFlowMediaStream`.

Used as props by: [CfnFlowMediaStream](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlowMediaStream.html)

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 2026

## 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 cfnFlowMediaStreamProps: mediaconnect.CfnFlowMediaStreamProps = {
  flowArn: 'flowArn',
  mediaStreamId: 123,
  mediaStreamName: 'mediaStreamName',
  mediaStreamType: 'mediaStreamType',

  // the properties below are optional
  attributes: {
    fmtp: {
      channelOrder: 'channelOrder',
      colorimetry: 'colorimetry',
      exactFramerate: 'exactFramerate',
      par: 'par',
      range: 'range',
      scanMode: 'scanMode',
      tcs: 'tcs',
    },
    lang: 'lang',
  },
  clockRate: 123,
  description: 'description',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  videoFormat: 'videoFormat',
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_flow_media_stream_props = mediaconnect.CfnFlowMediaStreamProps(
    flow_arn="flowArn",
    media_stream_id=123,
    media_stream_name="mediaStreamName",
    media_stream_type="mediaStreamType",

    # the properties below are optional
    attributes=mediaconnect.CfnFlowMediaStream.MediaStreamAttributesProperty(
        fmtp=mediaconnect.CfnFlowMediaStream.FmtpProperty(
            channel_order="channelOrder",
            colorimetry="colorimetry",
            exact_framerate="exactFramerate",
            par="par",
            range="range",
            scan_mode="scanMode",
            tcs="tcs"
        ),
        lang="lang"
    ),
    clock_rate=123,
    description="description",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    video_format="videoFormat"
)
```

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.*;

CfnFlowMediaStreamProps cfnFlowMediaStreamProps = CfnFlowMediaStreamProps.builder()
        .flowArn("flowArn")
        .mediaStreamId(123)
        .mediaStreamName("mediaStreamName")
        .mediaStreamType("mediaStreamType")

        // the properties below are optional
        .attributes(MediaStreamAttributesProperty.builder()
                .fmtp(FmtpProperty.builder()
                        .channelOrder("channelOrder")
                        .colorimetry("colorimetry")
                        .exactFramerate("exactFramerate")
                        .par("par")
                        .range("range")
                        .scanMode("scanMode")
                        .tcs("tcs")
                        .build())
                .lang("lang")
                .build())
        .clockRate(123)
        .description("description")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .videoFormat("videoFormat")
        .build();
```

C#:

```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 cfnFlowMediaStreamProps = new CfnFlowMediaStreamProps {
    FlowArn = "flowArn",
    MediaStreamId = 123,
    MediaStreamName = "mediaStreamName",
    MediaStreamType = "mediaStreamType",

    // the properties below are optional
    Attributes = new MediaStreamAttributesProperty {
        Fmtp = new FmtpProperty {
            ChannelOrder = "channelOrder",
            Colorimetry = "colorimetry",
            ExactFramerate = "exactFramerate",
            Par = "par",
            Range = "range",
            ScanMode = "scanMode",
            Tcs = "tcs"
        },
        Lang = "lang"
    },
    ClockRate = 123,
    Description = "description",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VideoFormat = "videoFormat"
};
```

Go:

```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"

cfnFlowMediaStreamProps := &CfnFlowMediaStreamProps{
	FlowArn: jsii.String("flowArn"),
	MediaStreamId: jsii.Number(123),
	MediaStreamName: jsii.String("mediaStreamName"),
	MediaStreamType: jsii.String("mediaStreamType"),

	// the properties below are optional
	Attributes: &MediaStreamAttributesProperty{
		Fmtp: &FmtpProperty{
			ChannelOrder: jsii.String("channelOrder"),
			Colorimetry: jsii.String("colorimetry"),
			ExactFramerate: jsii.String("exactFramerate"),
			Par: jsii.String("par"),
			Range: jsii.String("range"),
			ScanMode: jsii.String("scanMode"),
			Tcs: jsii.String("tcs"),
		},
		Lang: jsii.String("lang"),
	},
	ClockRate: jsii.Number(123),
	Description: jsii.String("description"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VideoFormat: jsii.String("videoFormat"),
}
```

## Properties

- `attributes`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlowMediaStream.MediaStreamAttributesProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_mediaconnect.CfnFlowMediaStream.MediaStreamAttributesProperty.html) — Attributes that are related to the media stream.

- `clockRate`: number — The sample rate (in Hz) for the stream.

  If the media stream type is video or ancillary data, set this value to 90000. If the media stream type is audio, set this value to either 48000 or 96000.

- `description`: string — A description that can help you quickly identify what your media stream is used for.

- `flowArn`: string (required) — The Amazon Resource Name (ARN) of the flow that the media stream belongs to.

- `mediaStreamId`: number (required) — A unique identifier for the media stream.

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

- `mediaStreamType`: string (required) — The type of media stream.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The key-value pairs that can be used to tag and organize the media stream.

- `videoFormat`: string — The resolution of the video.

  Required for a video media stream and rejected for other media stream types.
