MediaStreamSourceConfigurationProperty Struct
The media stream that is associated with the source, and the parameters for that association.
| 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 mediaStreamSourceConfigurationProperty: mediaconnect.CfnFlow.MediaStreamSourceConfigurationProperty = {
encodingName: 'encodingName',
mediaStreamName: 'mediaStreamName',
// the properties below are optional
inputConfigurations: [{
inputPort: 123,
interface: {
name: 'name',
},
}],
};
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
// 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();
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"
}
} }
};
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
encodingNamestringencoding_namestrencodingNameStringEncodingNamestringEncodingName*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.
inputConfigurationsoptionalIResolvable | IResolvable | CfnFlow.input_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InputConfigurationProperty]]]inputConfigurationsoptionalIResolvableInputConfigurationsoptionalIResolvableInputConfigurationsoptionalinterface{} #The media streams that you want to associate with the source.
mediaStreamNamestringmedia_stream_namestrmediaStreamNameStringMediaStreamNamestringMediaStreamName*string required #A name that helps you distinguish one media stream from another.