Skip to content
v2.278.0

CfnFlowProps Struct ​

Properties for defining a CfnFlow.

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';

declare const automatic: any;
const cfnFlowProps: mediaconnect.CfnFlowProps = {
  name: 'name',
  source: {
    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',
  },

  // the properties below are optional
  availabilityZone: 'availabilityZone',
  encodingConfig: {
    encodingProfile: 'encodingProfile',
    videoMaxBitrate: 123,
  },
  flowSize: 'flowSize',
  maintenance: {
    maintenanceDay: 'maintenanceDay',
    maintenanceStartHour: 'maintenanceStartHour',
  },
  mediaStreams: [{
    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',
    fmt: 123,
    tags: [{
      key: 'key',
      value: 'value',
    }],
    videoFormat: 'videoFormat',
  }],
  ndiConfig: {
    machineName: 'machineName',
    ndiDiscoveryServers: [{
      discoveryServerAddress: 'discoveryServerAddress',
      vpcInterfaceAdapter: 'vpcInterfaceAdapter',

      // the properties below are optional
      discoveryServerPort: 123,
    }],
    ndiState: 'ndiState',
  },
  sourceFailoverConfig: {
    failoverMode: 'failoverMode',
    recoveryWindow: 123,
    sourcePriority: {
      primarySource: 'primarySource',
    },
    state: 'state',
  },
  sourceMonitoringConfig: {
    audioMonitoringSettings: [{
      silentAudio: {
        state: 'state',
        thresholdSeconds: 123,
      },
    }],
    contentQualityAnalysisState: 'contentQualityAnalysisState',
    thumbnailState: 'thumbnailState',
    videoMonitoringSettings: [{
      blackFrames: {
        state: 'state',
        thresholdSeconds: 123,
      },
      frozenFrames: {
        state: 'state',
        thresholdSeconds: 123,
      },
    }],
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcInterfaces: [{
    name: 'name',
    roleArn: 'roleArn',
    securityGroupIds: ['securityGroupIds'],
    subnetId: 'subnetId',

    // the properties below are optional
    networkInterfaceIds: ['networkInterfaceIds'],
    networkInterfaceType: 'networkInterfaceType',
    tags: [{
      key: 'key',
      value: 'value',
    }],
  }],
};
python
from aws_cdk import CfnTag, CfnTag, CfnTag, 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

cfn_flow_props = mediaconnect.CfnFlowProps(
    name="name",
    source=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 properties below are optional
    availability_zone="availabilityZone",
    encoding_config=mediaconnect.CfnFlow.EncodingConfigProperty(
        encoding_profile="encodingProfile",
        video_max_bitrate=123
    ),
    flow_size="flowSize",
    maintenance=mediaconnect.CfnFlow.MaintenanceProperty(
        maintenance_day="maintenanceDay",
        maintenance_start_hour="maintenanceStartHour"
    ),
    media_streams=[mediaconnect.CfnFlow.MediaStreamProperty(
        media_stream_id=123,
        media_stream_name="mediaStreamName",
        media_stream_type="mediaStreamType",

        # the properties below are optional
        attributes=mediaconnect.CfnFlow.MediaStreamAttributesProperty(
            fmtp=mediaconnect.CfnFlow.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",
        fmt=123,
        tags=[CfnTag(
            key="key",
            value="value"
        )],
        video_format="videoFormat"
    )],
    ndi_config=mediaconnect.CfnFlow.NdiConfigProperty(
        machine_name="machineName",
        ndi_discovery_servers=[mediaconnect.CfnFlow.NdiDiscoveryServerConfigProperty(
            discovery_server_address="discoveryServerAddress",
            vpc_interface_adapter="vpcInterfaceAdapter",

            # the properties below are optional
            discovery_server_port=123
        )],
        ndi_state="ndiState"
    ),
    source_failover_config=mediaconnect.CfnFlow.FailoverConfigProperty(
        failover_mode="failoverMode",
        recovery_window=123,
        source_priority=mediaconnect.CfnFlow.SourcePriorityProperty(
            primary_source="primarySource"
        ),
        state="state"
    ),
    source_monitoring_config=mediaconnect.CfnFlow.SourceMonitoringConfigProperty(
        audio_monitoring_settings=[mediaconnect.CfnFlow.AudioMonitoringSettingProperty(
            silent_audio=mediaconnect.CfnFlow.SilentAudioProperty(
                state="state",
                threshold_seconds=123
            )
        )],
        content_quality_analysis_state="contentQualityAnalysisState",
        thumbnail_state="thumbnailState",
        video_monitoring_settings=[mediaconnect.CfnFlow.VideoMonitoringSettingProperty(
            black_frames=mediaconnect.CfnFlow.BlackFramesProperty(
                state="state",
                threshold_seconds=123
            ),
            frozen_frames=mediaconnect.CfnFlow.FrozenFramesProperty(
                state="state",
                threshold_seconds=123
            )
        )]
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_interfaces=[mediaconnect.CfnFlow.VpcInterfaceProperty(
        name="name",
        role_arn="roleArn",
        security_group_ids=["securityGroupIds"],
        subnet_id="subnetId",

        # the properties below are optional
        network_interface_ids=["networkInterfaceIds"],
        network_interface_type="networkInterfaceType",
        tags=[CfnTag(
            key="key",
            value="value"
        )]
    )]
)
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.*;

Object automatic;

CfnFlowProps cfnFlowProps = CfnFlowProps.builder()
        .name("name")
        .source(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())

        // the properties below are optional
        .availabilityZone("availabilityZone")
        .encodingConfig(EncodingConfigProperty.builder()
                .encodingProfile("encodingProfile")
                .videoMaxBitrate(123)
                .build())
        .flowSize("flowSize")
        .maintenance(MaintenanceProperty.builder()
                .maintenanceDay("maintenanceDay")
                .maintenanceStartHour("maintenanceStartHour")
                .build())
        .mediaStreams(List.of(MediaStreamProperty.builder()
                .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")
                .fmt(123)
                .tags(List.of(CfnTag.builder()
                        .key("key")
                        .value("value")
                        .build()))
                .videoFormat("videoFormat")
                .build()))
        .ndiConfig(NdiConfigProperty.builder()
                .machineName("machineName")
                .ndiDiscoveryServers(List.of(NdiDiscoveryServerConfigProperty.builder()
                        .discoveryServerAddress("discoveryServerAddress")
                        .vpcInterfaceAdapter("vpcInterfaceAdapter")

                        // the properties below are optional
                        .discoveryServerPort(123)
                        .build()))
                .ndiState("ndiState")
                .build())
        .sourceFailoverConfig(FailoverConfigProperty.builder()
                .failoverMode("failoverMode")
                .recoveryWindow(123)
                .sourcePriority(SourcePriorityProperty.builder()
                        .primarySource("primarySource")
                        .build())
                .state("state")
                .build())
        .sourceMonitoringConfig(SourceMonitoringConfigProperty.builder()
                .audioMonitoringSettings(List.of(AudioMonitoringSettingProperty.builder()
                        .silentAudio(SilentAudioProperty.builder()
                                .state("state")
                                .thresholdSeconds(123)
                                .build())
                        .build()))
                .contentQualityAnalysisState("contentQualityAnalysisState")
                .thumbnailState("thumbnailState")
                .videoMonitoringSettings(List.of(VideoMonitoringSettingProperty.builder()
                        .blackFrames(BlackFramesProperty.builder()
                                .state("state")
                                .thresholdSeconds(123)
                                .build())
                        .frozenFrames(FrozenFramesProperty.builder()
                                .state("state")
                                .thresholdSeconds(123)
                                .build())
                        .build()))
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .vpcInterfaces(List.of(VpcInterfaceProperty.builder()
                .name("name")
                .roleArn("roleArn")
                .securityGroupIds(List.of("securityGroupIds"))
                .subnetId("subnetId")

                // the properties below are optional
                .networkInterfaceIds(List.of("networkInterfaceIds"))
                .networkInterfaceType("networkInterfaceType")
                .tags(List.of(CfnTag.builder()
                        .key("key")
                        .value("value")
                        .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 automatic;

var cfnFlowProps = new CfnFlowProps {
    Name = "name",
    Source = 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"
    },

    // the properties below are optional
    AvailabilityZone = "availabilityZone",
    EncodingConfig = new EncodingConfigProperty {
        EncodingProfile = "encodingProfile",
        VideoMaxBitrate = 123
    },
    FlowSize = "flowSize",
    Maintenance = new MaintenanceProperty {
        MaintenanceDay = "maintenanceDay",
        MaintenanceStartHour = "maintenanceStartHour"
    },
    MediaStreams = new [] { new MediaStreamProperty {
        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",
        Fmt = 123,
        Tags = new [] { new CfnTag {
            Key = "key",
            Value = "value"
        } },
        VideoFormat = "videoFormat"
    } },
    NdiConfig = new NdiConfigProperty {
        MachineName = "machineName",
        NdiDiscoveryServers = new [] { new NdiDiscoveryServerConfigProperty {
            DiscoveryServerAddress = "discoveryServerAddress",
            VpcInterfaceAdapter = "vpcInterfaceAdapter",

            // the properties below are optional
            DiscoveryServerPort = 123
        } },
        NdiState = "ndiState"
    },
    SourceFailoverConfig = new FailoverConfigProperty {
        FailoverMode = "failoverMode",
        RecoveryWindow = 123,
        SourcePriority = new SourcePriorityProperty {
            PrimarySource = "primarySource"
        },
        State = "state"
    },
    SourceMonitoringConfig = new SourceMonitoringConfigProperty {
        AudioMonitoringSettings = new [] { new AudioMonitoringSettingProperty {
            SilentAudio = new SilentAudioProperty {
                State = "state",
                ThresholdSeconds = 123
            }
        } },
        ContentQualityAnalysisState = "contentQualityAnalysisState",
        ThumbnailState = "thumbnailState",
        VideoMonitoringSettings = new [] { new VideoMonitoringSettingProperty {
            BlackFrames = new BlackFramesProperty {
                State = "state",
                ThresholdSeconds = 123
            },
            FrozenFrames = new FrozenFramesProperty {
                State = "state",
                ThresholdSeconds = 123
            }
        } }
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VpcInterfaces = new [] { new VpcInterfaceProperty {
        Name = "name",
        RoleArn = "roleArn",
        SecurityGroupIds = new [] { "securityGroupIds" },
        SubnetId = "subnetId",

        // the properties below are optional
        NetworkInterfaceIds = new [] { "networkInterfaceIds" },
        NetworkInterfaceType = "networkInterfaceType",
        Tags = new [] { new CfnTag {
            Key = "key",
            Value = "value"
        } }
    } }
};
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"

var automatic interface{}

cfnFlowProps := &CfnFlowProps{
	Name: jsii.String("name"),
	Source: &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"),
	},

	// the properties below are optional
	AvailabilityZone: jsii.String("availabilityZone"),
	EncodingConfig: &EncodingConfigProperty{
		EncodingProfile: jsii.String("encodingProfile"),
		VideoMaxBitrate: jsii.Number(123),
	},
	FlowSize: jsii.String("flowSize"),
	Maintenance: &MaintenanceProperty{
		MaintenanceDay: jsii.String("maintenanceDay"),
		MaintenanceStartHour: jsii.String("maintenanceStartHour"),
	},
	MediaStreams: []interface{}{
		&MediaStreamProperty{
			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"),
			Fmt: jsii.Number(123),
			Tags: []CfnTag{
				&CfnTag{
					Key: jsii.String("key"),
					Value: jsii.String("value"),
				},
			},
			VideoFormat: jsii.String("videoFormat"),
		},
	},
	NdiConfig: &NdiConfigProperty{
		MachineName: jsii.String("machineName"),
		NdiDiscoveryServers: []interface{}{
			&NdiDiscoveryServerConfigProperty{
				DiscoveryServerAddress: jsii.String("discoveryServerAddress"),
				VpcInterfaceAdapter: jsii.String("vpcInterfaceAdapter"),

				// the properties below are optional
				DiscoveryServerPort: jsii.Number(123),
			},
		},
		NdiState: jsii.String("ndiState"),
	},
	SourceFailoverConfig: &FailoverConfigProperty{
		FailoverMode: jsii.String("failoverMode"),
		RecoveryWindow: jsii.Number(123),
		SourcePriority: &SourcePriorityProperty{
			PrimarySource: jsii.String("primarySource"),
		},
		State: jsii.String("state"),
	},
	SourceMonitoringConfig: &SourceMonitoringConfigProperty{
		AudioMonitoringSettings: []interface{}{
			&AudioMonitoringSettingProperty{
				SilentAudio: &SilentAudioProperty{
					State: jsii.String("state"),
					ThresholdSeconds: jsii.Number(123),
				},
			},
		},
		ContentQualityAnalysisState: jsii.String("contentQualityAnalysisState"),
		ThumbnailState: jsii.String("thumbnailState"),
		VideoMonitoringSettings: []interface{}{
			&VideoMonitoringSettingProperty{
				BlackFrames: &BlackFramesProperty{
					State: jsii.String("state"),
					ThresholdSeconds: jsii.Number(123),
				},
				FrozenFrames: &FrozenFramesProperty{
					State: jsii.String("state"),
					ThresholdSeconds: jsii.Number(123),
				},
			},
		},
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VpcInterfaces: []interface{}{
		&VpcInterfaceProperty{
			Name: jsii.String("name"),
			RoleArn: jsii.String("roleArn"),
			SecurityGroupIds: []*string{
				jsii.String("securityGroupIds"),
			},
			SubnetId: jsii.String("subnetId"),

			// the properties below are optional
			NetworkInterfaceIds: []*string{
				jsii.String("networkInterfaceIds"),
			},
			NetworkInterfaceType: jsii.String("networkInterfaceType"),
			Tags: []CfnTag{
				&CfnTag{
					Key: jsii.String("key"),
					Value: jsii.String("value"),
				},
			},
		},
	},
}

Properties ​

availabilityZoneoptionalstringavailability_zoneoptionalstravailabilityZoneoptionalStringAvailabilityZoneoptionalstringAvailabilityZoneoptional*string #
The Availability Zone that you want to create the flow in.

These options are limited to the Availability Zones within the current AWS Region.

encodingConfigoptionalIResolvable | CfnFlow.EncodingConfigPropertyencoding_configoptionaltyping.Union[IResolvable, EncodingConfigProperty]encodingConfigoptionalIResolvableEncodingConfigoptionalIResolvableEncodingConfigoptionalinterface{} #
flowSizeoptionalstringflow_sizeoptionalstrflowSizeoptionalStringFlowSizeoptionalstringFlowSizeoptional*string #
Determines the processing capacity and feature set of the flow.

Set this optional parameter to LARGE if you want to enable NDI outputs on the flow.

maintenanceoptionalIResolvable | CfnFlow.MaintenancePropertymaintenanceoptionaltyping.Union[IResolvable, MaintenanceProperty]maintenanceoptionalIResolvableMaintenanceoptionalIResolvableMaintenanceoptionalinterface{} #
The maintenance settings you want to use for the flow.
mediaStreamsoptionalIResolvable | IResolvable | CfnFlow.MediaStreamProperty[]media_streamsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaStreamProperty]]]mediaStreamsoptionalIResolvableMediaStreamsoptionalIResolvableMediaStreamsoptionalinterface{} #
The media streams that are associated with the flow.

After you associate a media stream with a source, you can also associate it with outputs on the flow.

namestringnamestrnameStringNamestringName*string required #
The name of the flow.
ndiConfigoptionalIResolvable | CfnFlow.NdiConfigPropertyndi_configoptionaltyping.Union[IResolvable, NdiConfigProperty]ndiConfigoptionalIResolvableNdiConfigoptionalIResolvableNdiConfigoptionalinterface{} #
Specifies the configuration settings for NDI outputs.

Required when the flow includes NDI outputs.

sourceIResolvable | CfnFlow.SourcePropertysourcetyping.Union[IResolvable, SourceProperty]sourceIResolvableSourceIResolvableSourceinterface{} required #
The settings for the source that you want to use for the new flow.
sourceFailoverConfigoptionalIResolvable | CfnFlow.FailoverConfigPropertysource_failover_configoptionaltyping.Union[IResolvable, FailoverConfigProperty]sourceFailoverConfigoptionalIResolvableSourceFailoverConfigoptionalIResolvableSourceFailoverConfigoptionalinterface{} #
The settings for source failover.
sourceMonitoringConfigoptionalIResolvable | CfnFlow.SourceMonitoringConfigPropertysource_monitoring_configoptionaltyping.Union[IResolvable, SourceMonitoringConfigProperty]sourceMonitoringConfigoptionalIResolvableSourceMonitoringConfigoptionalIResolvableSourceMonitoringConfigoptionalinterface{} #
The settings for source monitoring.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Key-value pairs that can be used to tag this flow.
vpcInterfacesoptionalIResolvable | IResolvable | CfnFlow.VpcInterfaceProperty[]vpc_interfacesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, VpcInterfaceProperty]]]vpcInterfacesoptionalIResolvableVpcInterfacesoptionalIResolvableVpcInterfacesoptionalinterface{} #
The VPC Interfaces for this flow.