CfnFlowMediaStreamProps Struct
Properties for defining a CfnFlowMediaStream.
| Source | |
|---|---|
| Type last changed |
Example
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
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
// 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();
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
// 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
attributesoptionalIResolvable | CfnFlowMediaStream.attributesoptionaltyping.Union[IResolvable, MediaStreamAttributesProperty]attributesoptionalIResolvableAttributesoptionalIResolvableAttributesoptionalinterface{} #Attributes that are related to the media stream.
clockRateoptionalnumberclock_rateoptionalint | floatclockRateoptionalNumberClockRateoptionaldoubleClockRateoptional*float64 #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.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description that can help you quickly identify what your media stream is used for.
The Amazon Resource Name (ARN) of the flow that the media stream belongs to.
mediaStreamIdnumbermedia_stream_idint | floatmediaStreamIdNumberMediaStreamIddoubleMediaStreamId*float64 required #A unique identifier for the media stream.
mediaStreamNamestringmedia_stream_namestrmediaStreamNameStringMediaStreamNamestringMediaStreamName*string required #A name that helps you distinguish one media stream from another.
mediaStreamTypestringmedia_stream_typestrmediaStreamTypeStringMediaStreamTypestringMediaStreamType*string required #The type of media stream.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #The key-value pairs that can be used to tag and organize the media stream.
videoFormatoptionalstringvideo_formatoptionalstrvideoFormatoptionalStringVideoFormatoptionalstringVideoFormatoptional*string #The resolution of the video.
Required for a video media stream and rejected for other media stream types.