SourceProperty Struct
The details of the sources of the flow.
If you are creating a flow with a VPC source, you must first create the flow with a temporary standard source by doing the following:
- Use CloudFormation to create a flow with a standard source that uses the flow’s public IP address.
- Use CloudFormation to create the VPC interface to add to this flow. This can also be done as part of the previous step.
- After CloudFormation has created the flow and the VPC interface, update the source to point to the VPC interface that you created.
| Source | |
|---|---|
| Type last changed |
Example
// 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';
declare const automatic: any;
const sourceProperty: mediaconnect.CfnFlow.SourceProperty = {
decryption: {
roleArn: 'roleArn',
// the properties below are optional
algorithm: 'algorithm',
constantInitializationVector: 'constantInitializationVector',
deviceId: 'deviceId',
keyType: 'keyType',
region: 'region',
resourceId: 'resourceId',
secretArn: 'secretArn',
url: 'url',
},
description: 'description',
entitlementArn: 'entitlementArn',
gatewayBridgeSource: {
bridgeArn: 'bridgeArn',
// the properties below are optional
vpcInterfaceAttachment: {
vpcInterfaceName: 'vpcInterfaceName',
},
},
ingestIp: 'ingestIp',
ingestPort: 123,
maxBitrate: 123,
maxLatency: 123,
maxSyncBuffer: 123,
mediaStreamSourceConfigurations: [{
encodingName: 'encodingName',
mediaStreamName: 'mediaStreamName',
// the properties below are optional
inputConfigurations: [{
inputPort: 123,
interface: {
name: 'name',
},
}],
}],
minLatency: 123,
name: 'name',
ndiSourceSettings: {
audioReferenceLevel: 123,
sourceName: 'sourceName',
},
protocol: 'protocol',
routerIntegrationState: 'routerIntegrationState',
routerIntegrationTransitDecryption: {
encryptionKeyConfiguration: {
automatic: automatic,
secretsManager: {
roleArn: 'roleArn',
secretArn: 'secretArn',
},
},
// the properties below are optional
encryptionKeyType: 'encryptionKeyType',
},
rtmpPushDetails: {
applicationName: 'applicationName',
streamName: 'streamName',
},
rtmpPushSettings: {
namingConfiguration: {
automatic: automatic,
manual: {
applicationName: 'applicationName',
streamName: 'streamName',
},
},
},
senderControlPort: 123,
senderIpAddress: 'senderIpAddress',
sourceArn: 'sourceArn',
sourceIngestPort: 'sourceIngestPort',
sourceListenerAddress: 'sourceListenerAddress',
sourceListenerPort: 123,
streamId: 'streamId',
tags: [{
key: 'key',
value: 'value',
}],
vpcInterfaceName: 'vpcInterfaceName',
whitelistCidr: 'whitelistCidr',
};
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
# automatic: Any
source_property = mediaconnect.CfnFlow.SourceProperty(
decryption=mediaconnect.CfnFlow.EncryptionProperty(
role_arn="roleArn",
# the properties below are optional
algorithm="algorithm",
constant_initialization_vector="constantInitializationVector",
device_id="deviceId",
key_type="keyType",
region="region",
resource_id="resourceId",
secret_arn="secretArn",
url="url"
),
description="description",
entitlement_arn="entitlementArn",
gateway_bridge_source=mediaconnect.CfnFlow.GatewayBridgeSourceProperty(
bridge_arn="bridgeArn",
# the properties below are optional
vpc_interface_attachment=mediaconnect.CfnFlow.VpcInterfaceAttachmentProperty(
vpc_interface_name="vpcInterfaceName"
)
),
ingest_ip="ingestIp",
ingest_port=123,
max_bitrate=123,
max_latency=123,
max_sync_buffer=123,
media_stream_source_configurations=[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"
)
)]
)],
min_latency=123,
name="name",
ndi_source_settings=mediaconnect.CfnFlow.NdiSourceSettingsProperty(
audio_reference_level=123,
source_name="sourceName"
),
protocol="protocol",
router_integration_state="routerIntegrationState",
router_integration_transit_decryption=mediaconnect.CfnFlow.FlowTransitEncryptionProperty(
encryption_key_configuration=mediaconnect.CfnFlow.FlowTransitEncryptionKeyConfigurationProperty(
automatic=automatic,
secrets_manager=mediaconnect.CfnFlow.SecretsManagerEncryptionKeyConfigurationProperty(
role_arn="roleArn",
secret_arn="secretArn"
)
),
# the properties below are optional
encryption_key_type="encryptionKeyType"
),
rtmp_push_details=mediaconnect.CfnFlow.RtmpPushDetailsProperty(
application_name="applicationName",
stream_name="streamName"
),
rtmp_push_settings=mediaconnect.CfnFlow.RtmpPushSettingsProperty(
naming_configuration=mediaconnect.CfnFlow.RtmpPushNamingConfigurationProperty(
automatic=automatic,
manual=mediaconnect.CfnFlow.ManualRtmpPushNamingConfigurationProperty(
application_name="applicationName",
stream_name="streamName"
)
)
),
sender_control_port=123,
sender_ip_address="senderIpAddress",
source_arn="sourceArn",
source_ingest_port="sourceIngestPort",
source_listener_address="sourceListenerAddress",
source_listener_port=123,
stream_id="streamId",
tags=[CfnTag(
key="key",
value="value"
)],
vpc_interface_name="vpcInterfaceName",
whitelist_cidr="whitelistCidr"
)
// 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.*;
Object automatic;
SourceProperty sourceProperty = SourceProperty.builder()
.decryption(EncryptionProperty.builder()
.roleArn("roleArn")
// the properties below are optional
.algorithm("algorithm")
.constantInitializationVector("constantInitializationVector")
.deviceId("deviceId")
.keyType("keyType")
.region("region")
.resourceId("resourceId")
.secretArn("secretArn")
.url("url")
.build())
.description("description")
.entitlementArn("entitlementArn")
.gatewayBridgeSource(GatewayBridgeSourceProperty.builder()
.bridgeArn("bridgeArn")
// the properties below are optional
.vpcInterfaceAttachment(VpcInterfaceAttachmentProperty.builder()
.vpcInterfaceName("vpcInterfaceName")
.build())
.build())
.ingestIp("ingestIp")
.ingestPort(123)
.maxBitrate(123)
.maxLatency(123)
.maxSyncBuffer(123)
.mediaStreamSourceConfigurations(List.of(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()))
.minLatency(123)
.name("name")
.ndiSourceSettings(NdiSourceSettingsProperty.builder()
.audioReferenceLevel(123)
.sourceName("sourceName")
.build())
.protocol("protocol")
.routerIntegrationState("routerIntegrationState")
.routerIntegrationTransitDecryption(FlowTransitEncryptionProperty.builder()
.encryptionKeyConfiguration(FlowTransitEncryptionKeyConfigurationProperty.builder()
.automatic(automatic)
.secretsManager(SecretsManagerEncryptionKeyConfigurationProperty.builder()
.roleArn("roleArn")
.secretArn("secretArn")
.build())
.build())
// the properties below are optional
.encryptionKeyType("encryptionKeyType")
.build())
.rtmpPushDetails(RtmpPushDetailsProperty.builder()
.applicationName("applicationName")
.streamName("streamName")
.build())
.rtmpPushSettings(RtmpPushSettingsProperty.builder()
.namingConfiguration(RtmpPushNamingConfigurationProperty.builder()
.automatic(automatic)
.manual(ManualRtmpPushNamingConfigurationProperty.builder()
.applicationName("applicationName")
.streamName("streamName")
.build())
.build())
.build())
.senderControlPort(123)
.senderIpAddress("senderIpAddress")
.sourceArn("sourceArn")
.sourceIngestPort("sourceIngestPort")
.sourceListenerAddress("sourceListenerAddress")
.sourceListenerPort(123)
.streamId("streamId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vpcInterfaceName("vpcInterfaceName")
.whitelistCidr("whitelistCidr")
.build();
// 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 automatic;
var sourceProperty = new SourceProperty {
Decryption = new EncryptionProperty {
RoleArn = "roleArn",
// the properties below are optional
Algorithm = "algorithm",
ConstantInitializationVector = "constantInitializationVector",
DeviceId = "deviceId",
KeyType = "keyType",
Region = "region",
ResourceId = "resourceId",
SecretArn = "secretArn",
Url = "url"
},
Description = "description",
EntitlementArn = "entitlementArn",
GatewayBridgeSource = new GatewayBridgeSourceProperty {
BridgeArn = "bridgeArn",
// the properties below are optional
VpcInterfaceAttachment = new VpcInterfaceAttachmentProperty {
VpcInterfaceName = "vpcInterfaceName"
}
},
IngestIp = "ingestIp",
IngestPort = 123,
MaxBitrate = 123,
MaxLatency = 123,
MaxSyncBuffer = 123,
MediaStreamSourceConfigurations = new [] { new MediaStreamSourceConfigurationProperty {
EncodingName = "encodingName",
MediaStreamName = "mediaStreamName",
// the properties below are optional
InputConfigurations = new [] { new InputConfigurationProperty {
InputPort = 123,
Interface = new InterfaceProperty {
Name = "name"
}
} }
} },
MinLatency = 123,
Name = "name",
NdiSourceSettings = new NdiSourceSettingsProperty {
AudioReferenceLevel = 123,
SourceName = "sourceName"
},
Protocol = "protocol",
RouterIntegrationState = "routerIntegrationState",
RouterIntegrationTransitDecryption = new FlowTransitEncryptionProperty {
EncryptionKeyConfiguration = new FlowTransitEncryptionKeyConfigurationProperty {
Automatic = automatic,
SecretsManager = new SecretsManagerEncryptionKeyConfigurationProperty {
RoleArn = "roleArn",
SecretArn = "secretArn"
}
},
// the properties below are optional
EncryptionKeyType = "encryptionKeyType"
},
RtmpPushDetails = new RtmpPushDetailsProperty {
ApplicationName = "applicationName",
StreamName = "streamName"
},
RtmpPushSettings = new RtmpPushSettingsProperty {
NamingConfiguration = new RtmpPushNamingConfigurationProperty {
Automatic = automatic,
Manual = new ManualRtmpPushNamingConfigurationProperty {
ApplicationName = "applicationName",
StreamName = "streamName"
}
}
},
SenderControlPort = 123,
SenderIpAddress = "senderIpAddress",
SourceArn = "sourceArn",
SourceIngestPort = "sourceIngestPort",
SourceListenerAddress = "sourceListenerAddress",
SourceListenerPort = 123,
StreamId = "streamId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VpcInterfaceName = "vpcInterfaceName",
WhitelistCidr = "whitelistCidr"
};
// 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"
var automatic interface{}
sourceProperty := &SourceProperty{
Decryption: &EncryptionProperty{
RoleArn: jsii.String("roleArn"),
// the properties below are optional
Algorithm: jsii.String("algorithm"),
ConstantInitializationVector: jsii.String("constantInitializationVector"),
DeviceId: jsii.String("deviceId"),
KeyType: jsii.String("keyType"),
Region: jsii.String("region"),
ResourceId: jsii.String("resourceId"),
SecretArn: jsii.String("secretArn"),
Url: jsii.String("url"),
},
Description: jsii.String("description"),
EntitlementArn: jsii.String("entitlementArn"),
GatewayBridgeSource: &GatewayBridgeSourceProperty{
BridgeArn: jsii.String("bridgeArn"),
// the properties below are optional
VpcInterfaceAttachment: &VpcInterfaceAttachmentProperty{
VpcInterfaceName: jsii.String("vpcInterfaceName"),
},
},
IngestIp: jsii.String("ingestIp"),
IngestPort: jsii.Number(123),
MaxBitrate: jsii.Number(123),
MaxLatency: jsii.Number(123),
MaxSyncBuffer: jsii.Number(123),
MediaStreamSourceConfigurations: []interface{}{
&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"),
},
},
},
},
},
MinLatency: jsii.Number(123),
Name: jsii.String("name"),
NdiSourceSettings: &NdiSourceSettingsProperty{
AudioReferenceLevel: jsii.Number(123),
SourceName: jsii.String("sourceName"),
},
Protocol: jsii.String("protocol"),
RouterIntegrationState: jsii.String("routerIntegrationState"),
RouterIntegrationTransitDecryption: &FlowTransitEncryptionProperty{
EncryptionKeyConfiguration: &FlowTransitEncryptionKeyConfigurationProperty{
Automatic: automatic,
SecretsManager: &SecretsManagerEncryptionKeyConfigurationProperty{
RoleArn: jsii.String("roleArn"),
SecretArn: jsii.String("secretArn"),
},
},
// the properties below are optional
EncryptionKeyType: jsii.String("encryptionKeyType"),
},
RtmpPushDetails: &RtmpPushDetailsProperty{
ApplicationName: jsii.String("applicationName"),
StreamName: jsii.String("streamName"),
},
RtmpPushSettings: &RtmpPushSettingsProperty{
NamingConfiguration: &RtmpPushNamingConfigurationProperty{
Automatic: automatic,
Manual: &ManualRtmpPushNamingConfigurationProperty{
ApplicationName: jsii.String("applicationName"),
StreamName: jsii.String("streamName"),
},
},
},
SenderControlPort: jsii.Number(123),
SenderIpAddress: jsii.String("senderIpAddress"),
SourceArn: jsii.String("sourceArn"),
SourceIngestPort: jsii.String("sourceIngestPort"),
SourceListenerAddress: jsii.String("sourceListenerAddress"),
SourceListenerPort: jsii.Number(123),
StreamId: jsii.String("streamId"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VpcInterfaceName: jsii.String("vpcInterfaceName"),
WhitelistCidr: jsii.String("whitelistCidr"),
}
Properties
decryptionoptionalIResolvable | CfnFlow.EncryptionPropertydecryptionoptionaltyping.Union[IResolvable, EncryptionProperty]decryptionoptionalIResolvableDecryptionoptionalIResolvableDecryptionoptionalinterface{} #descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #This value is not used or seen outside of the current MediaConnect account.
entitlementArnoptionalstringentitlement_arnoptionalstrentitlementArnoptionalStringEntitlementArnoptionalstringEntitlementArnoptional*string #The entitlement is set by the content originator and the ARN is generated as part of the originator's flow.
gatewayBridgeSourceoptionalIResolvable | CfnFlow.gateway_bridge_sourceoptionaltyping.Union[IResolvable, GatewayBridgeSourceProperty]gatewayBridgeSourceoptionalIResolvableGatewayBridgeSourceoptionalIResolvableGatewayBridgeSourceoptionalinterface{} #ingestIpoptionalstringingest_ipoptionalstringestIpoptionalStringIngestIpoptionalstringIngestIpoptional*string #ingestPortoptionalnumberingest_portoptionalint | floatingestPortoptionalNumberIngestPortoptionaldoubleIngestPortoptional*float64 #maxBitrateoptionalnumbermax_bitrateoptionalint | floatmaxBitrateoptionalNumberMaxBitrateoptionaldoubleMaxBitrateoptional*float64 #maxLatencyoptionalnumbermax_latencyoptionalint | floatmaxLatencyoptionalNumberMaxLatencyoptionaldoubleMaxLatencyoptional*float64 #maxSyncBufferoptionalnumbermax_sync_bufferoptionalint | floatmaxSyncBufferoptionalNumberMaxSyncBufferoptionaldoubleMaxSyncBufferoptional*float64 #mediaStreamSourceConfigurationsoptionalIResolvable | IResolvable | CfnFlow.media_stream_source_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaStreamSourceConfigurationProperty]]]mediaStreamSourceConfigurationsoptionalIResolvableMediaStreamSourceConfigurationsoptionalIResolvableMediaStreamSourceConfigurationsoptionalinterface{} #minLatencyoptionalnumbermin_latencyoptionalint | floatminLatencyoptionalNumberMinLatencyoptionaldoubleMinLatencyoptional*float64 #notes
In streams that use the SRT protocol, this value that you set on your MediaConnect source or output represents the minimal potential latency of that connection. The latency of the stream is set to the highest number between the sender’s minimum latency and the receiver’s minimum latency.
ndiSourceSettingsoptionalIResolvable | CfnFlow.ndi_source_settingsoptionaltyping.Union[IResolvable, NdiSourceSettingsProperty]ndiSourceSettingsoptionalIResolvableNdiSourceSettingsoptionalIResolvableNdiSourceSettingsoptionalinterface{} #protocoloptionalstringprotocoloptionalstrprotocoloptionalStringProtocoloptionalstringProtocoloptional*string #AWS CloudFormation does not currently support CDI or ST 2110 JPEG XS source protocols.
AWS Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.
routerIntegrationStateoptionalstringrouter_integration_stateoptionalstrrouterIntegrationStateoptionalStringRouterIntegrationStateoptionalstringRouterIntegrationStateoptional*string #routerIntegrationTransitDecryptionoptionalIResolvable | CfnFlow.router_integration_transit_decryptionoptionaltyping.Union[IResolvable, FlowTransitEncryptionProperty]routerIntegrationTransitDecryptionoptionalIResolvableRouterIntegrationTransitDecryptionoptionalIResolvableRouterIntegrationTransitDecryptionoptionalinterface{} #rtmpPushDetailsoptionalIResolvable | CfnFlow.RtmpPushDetailsPropertyrtmp_push_detailsoptionaltyping.Union[IResolvable, RtmpPushDetailsProperty]rtmpPushDetailsoptionalIResolvableRtmpPushDetailsoptionalIResolvableRtmpPushDetailsoptionalinterface{} #rtmpPushSettingsoptionalIResolvable | CfnFlow.RtmpPushSettingsPropertyrtmp_push_settingsoptionaltyping.Union[IResolvable, RtmpPushSettingsProperty]rtmpPushSettingsoptionalIResolvableRtmpPushSettingsoptionalIResolvableRtmpPushSettingsoptionalinterface{} #senderControlPortoptionalnumbersender_control_portoptionalint | floatsenderControlPortoptionalNumberSenderControlPortoptionaldoubleSenderControlPortoptional*float64 #senderIpAddressoptionalstringsender_ip_addressoptionalstrsenderIpAddressoptionalStringSenderIpAddressoptionalstringSenderIpAddressoptional*string #sourceArnoptionalstringsource_arnoptionalstrsourceArnoptionalStringSourceArnoptionalstringSourceArnoptional*string #sourceIngestPortoptionalstringsource_ingest_portoptionalstrsourceIngestPortoptionalStringSourceIngestPortoptionalstringSourceIngestPortoptional*string #If the protocol of the source is Zixi, the port must be set to 2088.
sourceListenerAddressoptionalstringsource_listener_addressoptionalstrsourceListenerAddressoptionalStringSourceListenerAddressoptionalstringSourceListenerAddressoptional*string #sourceListenerPortoptionalnumbersource_listener_portoptionalint | floatsourceListenerPortoptionalNumberSourceListenerPortoptionaldoubleSourceListenerPortoptional*float64 #streamIdoptionalstringstream_idoptionalstrstreamIdoptionalStringStreamIdoptionalstringStreamIdoptional*string #This parameter applies only to Zixi-based streams.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #vpcInterfaceNameoptionalstringvpc_interface_nameoptionalstrvpcInterfaceNameoptionalStringVpcInterfaceNameoptionalstringVpcInterfaceNameoptional*string #whitelistCidroptionalstringwhitelist_cidroptionalstrwhitelistCidroptionalStringWhitelistCidroptionalstringWhitelistCidroptional*string #These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.