Skip to content
v2.274.0

CfnInput L1 construct ​

The AWS::MediaLive::Input resource is a MediaLive resource type that creates an input.

A MediaLive input holds information that describes how the MediaLive channel is connected to the upstream system that is providing the source content that is to be transcoded.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_medialive as medialive } from 'aws-cdk-lib';

declare const tags: any;
const cfnInput = new medialive.CfnInput(this, 'MyCfnInput', /* all optional props */ {
  destinations: [{
    network: 'network',
    networkRoutes: [{
      cidr: 'cidr',
      gateway: 'gateway',
    }],
    staticIpAddress: 'staticIpAddress',
    streamName: 'streamName',
  }],
  inputDevices: [{
    id: 'id',
  }],
  inputNetworkLocation: 'inputNetworkLocation',
  inputSecurityGroups: ['inputSecurityGroups'],
  mediaConnectFlows: [{
    flowArn: 'flowArn',
  }],
  multicastSettings: {
    sources: [{
      sourceIp: 'sourceIp',
      url: 'url',
    }],
  },
  name: 'name',
  roleArn: 'roleArn',
  routerSettings: {
    destinations: [{
      availabilityZoneName: 'availabilityZoneName',
    }],
    encryptionType: 'encryptionType',
    secretArn: 'secretArn',
  },
  sdiSources: ['sdiSources'],
  smpte2110ReceiverGroupSettings: {
    smpte2110ReceiverGroups: [{
      sdpSettings: {
        ancillarySdps: [{
          mediaIndex: 123,
          sdpUrl: 'sdpUrl',
        }],
        audioSdps: [{
          mediaIndex: 123,
          sdpUrl: 'sdpUrl',
        }],
        videoSdp: {
          mediaIndex: 123,
          sdpUrl: 'sdpUrl',
        },
      },
    }],
  },
  sources: [{
    passwordParam: 'passwordParam',
    url: 'url',
    username: 'username',
  }],
  srtSettings: {
    srtCallerSources: [{
      decryption: {
        algorithm: 'algorithm',
        passphraseSecretArn: 'passphraseSecretArn',
      },
      minimumLatency: 123,
      srtListenerAddress: 'srtListenerAddress',
      srtListenerPort: 'srtListenerPort',
      streamId: 'streamId',
    }],
    srtListenerSettings: {
      decryption: {
        algorithm: 'algorithm',
        passphraseSecretArn: 'passphraseSecretArn',
      },
      minimumLatency: 123,
      streamId: 'streamId',
    },
  },
  tags: tags,
  type: 'type',
  vpc: {
    securityGroupIds: ['securityGroupIds'],
    subnetIds: ['subnetIds'],
  },
});
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_medialive as medialive

# tags: Any

cfn_input = medialive.CfnInput(self, "MyCfnInput",
    destinations=[medialive.CfnInput.InputDestinationRequestProperty(
        network="network",
        network_routes=[medialive.CfnInput.InputRequestDestinationRouteProperty(
            cidr="cidr",
            gateway="gateway"
        )],
        static_ip_address="staticIpAddress",
        stream_name="streamName"
    )],
    input_devices=[medialive.CfnInput.InputDeviceSettingsProperty(
        id="id"
    )],
    input_network_location="inputNetworkLocation",
    input_security_groups=["inputSecurityGroups"],
    media_connect_flows=[medialive.CfnInput.MediaConnectFlowRequestProperty(
        flow_arn="flowArn"
    )],
    multicast_settings=medialive.CfnInput.MulticastSettingsCreateRequestProperty(
        sources=[medialive.CfnInput.MulticastSourceCreateRequestProperty(
            source_ip="sourceIp",
            url="url"
        )]
    ),
    name="name",
    role_arn="roleArn",
    router_settings=medialive.CfnInput.RouterSettingsProperty(
        destinations=[medialive.CfnInput.RouterDestinationSettingsProperty(
            availability_zone_name="availabilityZoneName"
        )],
        encryption_type="encryptionType",
        secret_arn="secretArn"
    ),
    sdi_sources=["sdiSources"],
    smpte2110_receiver_group_settings=medialive.CfnInput.Smpte2110ReceiverGroupSettingsProperty(
        smpte2110_receiver_groups=[medialive.CfnInput.Smpte2110ReceiverGroupProperty(
            sdp_settings=medialive.CfnInput.Smpte2110ReceiverGroupSdpSettingsProperty(
                ancillary_sdps=[medialive.CfnInput.InputSdpLocationProperty(
                    media_index=123,
                    sdp_url="sdpUrl"
                )],
                audio_sdps=[medialive.CfnInput.InputSdpLocationProperty(
                    media_index=123,
                    sdp_url="sdpUrl"
                )],
                video_sdp=medialive.CfnInput.InputSdpLocationProperty(
                    media_index=123,
                    sdp_url="sdpUrl"
                )
            )
        )]
    ),
    sources=[medialive.CfnInput.InputSourceRequestProperty(
        password_param="passwordParam",
        url="url",
        username="username"
    )],
    srt_settings=medialive.CfnInput.SrtSettingsRequestProperty(
        srt_caller_sources=[medialive.CfnInput.SrtCallerSourceRequestProperty(
            decryption=medialive.CfnInput.SrtCallerDecryptionRequestProperty(
                algorithm="algorithm",
                passphrase_secret_arn="passphraseSecretArn"
            ),
            minimum_latency=123,
            srt_listener_address="srtListenerAddress",
            srt_listener_port="srtListenerPort",
            stream_id="streamId"
        )],
        srt_listener_settings=medialive.CfnInput.SrtListenerSettingsRequestProperty(
            decryption=medialive.CfnInput.SrtListenerDecryptionRequestProperty(
                algorithm="algorithm",
                passphrase_secret_arn="passphraseSecretArn"
            ),
            minimum_latency=123,
            stream_id="streamId"
        )
    ),
    tags=tags,
    type="type",
    vpc=medialive.CfnInput.InputVpcRequestProperty(
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"]
    )
)
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.medialive.*;

Object tags;

CfnInput cfnInput = CfnInput.Builder.create(this, "MyCfnInput")
        .destinations(List.of(InputDestinationRequestProperty.builder()
                .network("network")
                .networkRoutes(List.of(InputRequestDestinationRouteProperty.builder()
                        .cidr("cidr")
                        .gateway("gateway")
                        .build()))
                .staticIpAddress("staticIpAddress")
                .streamName("streamName")
                .build()))
        .inputDevices(List.of(InputDeviceSettingsProperty.builder()
                .id("id")
                .build()))
        .inputNetworkLocation("inputNetworkLocation")
        .inputSecurityGroups(List.of("inputSecurityGroups"))
        .mediaConnectFlows(List.of(MediaConnectFlowRequestProperty.builder()
                .flowArn("flowArn")
                .build()))
        .multicastSettings(MulticastSettingsCreateRequestProperty.builder()
                .sources(List.of(MulticastSourceCreateRequestProperty.builder()
                        .sourceIp("sourceIp")
                        .url("url")
                        .build()))
                .build())
        .name("name")
        .roleArn("roleArn")
        .routerSettings(RouterSettingsProperty.builder()
                .destinations(List.of(RouterDestinationSettingsProperty.builder()
                        .availabilityZoneName("availabilityZoneName")
                        .build()))
                .encryptionType("encryptionType")
                .secretArn("secretArn")
                .build())
        .sdiSources(List.of("sdiSources"))
        .smpte2110ReceiverGroupSettings(Smpte2110ReceiverGroupSettingsProperty.builder()
                .smpte2110ReceiverGroups(List.of(Smpte2110ReceiverGroupProperty.builder()
                        .sdpSettings(Smpte2110ReceiverGroupSdpSettingsProperty.builder()
                                .ancillarySdps(List.of(InputSdpLocationProperty.builder()
                                        .mediaIndex(123)
                                        .sdpUrl("sdpUrl")
                                        .build()))
                                .audioSdps(List.of(InputSdpLocationProperty.builder()
                                        .mediaIndex(123)
                                        .sdpUrl("sdpUrl")
                                        .build()))
                                .videoSdp(InputSdpLocationProperty.builder()
                                        .mediaIndex(123)
                                        .sdpUrl("sdpUrl")
                                        .build())
                                .build())
                        .build()))
                .build())
        .sources(List.of(InputSourceRequestProperty.builder()
                .passwordParam("passwordParam")
                .url("url")
                .username("username")
                .build()))
        .srtSettings(SrtSettingsRequestProperty.builder()
                .srtCallerSources(List.of(SrtCallerSourceRequestProperty.builder()
                        .decryption(SrtCallerDecryptionRequestProperty.builder()
                                .algorithm("algorithm")
                                .passphraseSecretArn("passphraseSecretArn")
                                .build())
                        .minimumLatency(123)
                        .srtListenerAddress("srtListenerAddress")
                        .srtListenerPort("srtListenerPort")
                        .streamId("streamId")
                        .build()))
                .srtListenerSettings(SrtListenerSettingsRequestProperty.builder()
                        .decryption(SrtListenerDecryptionRequestProperty.builder()
                                .algorithm("algorithm")
                                .passphraseSecretArn("passphraseSecretArn")
                                .build())
                        .minimumLatency(123)
                        .streamId("streamId")
                        .build())
                .build())
        .tags(tags)
        .type("type")
        .vpc(InputVpcRequestProperty.builder()
                .securityGroupIds(List.of("securityGroupIds"))
                .subnetIds(List.of("subnetIds"))
                .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.MediaLive;

var tags;

var cfnInput = new CfnInput(this, "MyCfnInput", new CfnInputProps {
    Destinations = new [] { new InputDestinationRequestProperty {
        Network = "network",
        NetworkRoutes = new [] { new InputRequestDestinationRouteProperty {
            Cidr = "cidr",
            Gateway = "gateway"
        } },
        StaticIpAddress = "staticIpAddress",
        StreamName = "streamName"
    } },
    InputDevices = new [] { new InputDeviceSettingsProperty {
        Id = "id"
    } },
    InputNetworkLocation = "inputNetworkLocation",
    InputSecurityGroups = new [] { "inputSecurityGroups" },
    MediaConnectFlows = new [] { new MediaConnectFlowRequestProperty {
        FlowArn = "flowArn"
    } },
    MulticastSettings = new MulticastSettingsCreateRequestProperty {
        Sources = new [] { new MulticastSourceCreateRequestProperty {
            SourceIp = "sourceIp",
            Url = "url"
        } }
    },
    Name = "name",
    RoleArn = "roleArn",
    RouterSettings = new RouterSettingsProperty {
        Destinations = new [] { new RouterDestinationSettingsProperty {
            AvailabilityZoneName = "availabilityZoneName"
        } },
        EncryptionType = "encryptionType",
        SecretArn = "secretArn"
    },
    SdiSources = new [] { "sdiSources" },
    Smpte2110ReceiverGroupSettings = new Smpte2110ReceiverGroupSettingsProperty {
        Smpte2110ReceiverGroups = new [] { new Smpte2110ReceiverGroupProperty {
            SdpSettings = new Smpte2110ReceiverGroupSdpSettingsProperty {
                AncillarySdps = new [] { new InputSdpLocationProperty {
                    MediaIndex = 123,
                    SdpUrl = "sdpUrl"
                } },
                AudioSdps = new [] { new InputSdpLocationProperty {
                    MediaIndex = 123,
                    SdpUrl = "sdpUrl"
                } },
                VideoSdp = new InputSdpLocationProperty {
                    MediaIndex = 123,
                    SdpUrl = "sdpUrl"
                }
            }
        } }
    },
    Sources = new [] { new InputSourceRequestProperty {
        PasswordParam = "passwordParam",
        Url = "url",
        Username = "username"
    } },
    SrtSettings = new SrtSettingsRequestProperty {
        SrtCallerSources = new [] { new SrtCallerSourceRequestProperty {
            Decryption = new SrtCallerDecryptionRequestProperty {
                Algorithm = "algorithm",
                PassphraseSecretArn = "passphraseSecretArn"
            },
            MinimumLatency = 123,
            SrtListenerAddress = "srtListenerAddress",
            SrtListenerPort = "srtListenerPort",
            StreamId = "streamId"
        } },
        SrtListenerSettings = new SrtListenerSettingsRequestProperty {
            Decryption = new SrtListenerDecryptionRequestProperty {
                Algorithm = "algorithm",
                PassphraseSecretArn = "passphraseSecretArn"
            },
            MinimumLatency = 123,
            StreamId = "streamId"
        }
    },
    Tags = tags,
    Type = "type",
    Vpc = new InputVpcRequestProperty {
        SecurityGroupIds = new [] { "securityGroupIds" },
        SubnetIds = new [] { "subnetIds" }
    }
});
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 tags interface{}

cfnInput := awscdk.Aws_medialive.NewCfnInput(this, jsii.String("MyCfnInput"), &CfnInputProps{
	Destinations: []interface{}{
		&InputDestinationRequestProperty{
			Network: jsii.String("network"),
			NetworkRoutes: []interface{}{
				&InputRequestDestinationRouteProperty{
					Cidr: jsii.String("cidr"),
					Gateway: jsii.String("gateway"),
				},
			},
			StaticIpAddress: jsii.String("staticIpAddress"),
			StreamName: jsii.String("streamName"),
		},
	},
	InputDevices: []interface{}{
		&InputDeviceSettingsProperty{
			Id: jsii.String("id"),
		},
	},
	InputNetworkLocation: jsii.String("inputNetworkLocation"),
	InputSecurityGroups: []*string{
		jsii.String("inputSecurityGroups"),
	},
	MediaConnectFlows: []interface{}{
		&MediaConnectFlowRequestProperty{
			FlowArn: jsii.String("flowArn"),
		},
	},
	MulticastSettings: &MulticastSettingsCreateRequestProperty{
		Sources: []interface{}{
			&MulticastSourceCreateRequestProperty{
				SourceIp: jsii.String("sourceIp"),
				Url: jsii.String("url"),
			},
		},
	},
	Name: jsii.String("name"),
	RoleArn: jsii.String("roleArn"),
	RouterSettings: &RouterSettingsProperty{
		Destinations: []interface{}{
			&RouterDestinationSettingsProperty{
				AvailabilityZoneName: jsii.String("availabilityZoneName"),
			},
		},
		EncryptionType: jsii.String("encryptionType"),
		SecretArn: jsii.String("secretArn"),
	},
	SdiSources: []*string{
		jsii.String("sdiSources"),
	},
	Smpte2110ReceiverGroupSettings: &Smpte2110ReceiverGroupSettingsProperty{
		Smpte2110ReceiverGroups: []interface{}{
			&Smpte2110ReceiverGroupProperty{
				SdpSettings: &Smpte2110ReceiverGroupSdpSettingsProperty{
					AncillarySdps: []interface{}{
						&InputSdpLocationProperty{
							MediaIndex: jsii.Number(123),
							SdpUrl: jsii.String("sdpUrl"),
						},
					},
					AudioSdps: []interface{}{
						&InputSdpLocationProperty{
							MediaIndex: jsii.Number(123),
							SdpUrl: jsii.String("sdpUrl"),
						},
					},
					VideoSdp: &InputSdpLocationProperty{
						MediaIndex: jsii.Number(123),
						SdpUrl: jsii.String("sdpUrl"),
					},
				},
			},
		},
	},
	Sources: []interface{}{
		&InputSourceRequestProperty{
			PasswordParam: jsii.String("passwordParam"),
			Url: jsii.String("url"),
			Username: jsii.String("username"),
		},
	},
	SrtSettings: &SrtSettingsRequestProperty{
		SrtCallerSources: []interface{}{
			&SrtCallerSourceRequestProperty{
				Decryption: &SrtCallerDecryptionRequestProperty{
					Algorithm: jsii.String("algorithm"),
					PassphraseSecretArn: jsii.String("passphraseSecretArn"),
				},
				MinimumLatency: jsii.Number(123),
				SrtListenerAddress: jsii.String("srtListenerAddress"),
				SrtListenerPort: jsii.String("srtListenerPort"),
				StreamId: jsii.String("streamId"),
			},
		},
		SrtListenerSettings: &SrtListenerSettingsRequestProperty{
			Decryption: &SrtListenerDecryptionRequestProperty{
				Algorithm: jsii.String("algorithm"),
				PassphraseSecretArn: jsii.String("passphraseSecretArn"),
			},
			MinimumLatency: jsii.Number(123),
			StreamId: jsii.String("streamId"),
		},
	},
	Tags: tags,
	Type: jsii.String("type"),
	Vpc: &InputVpcRequestProperty{
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		SubnetIds: []*string{
			jsii.String("subnetIds"),
		},
	},
})

Initializer ​

ts
new CfnInput(scope: Construct, id: string, props?: CfnInputProps)
python
CfnInput(scope: Construct, id: str, props: typing.Optional[CfnInputProps] = None)
java
new CfnInput(Construct scope, String id, CfnInputProps props)
csharp
new CfnInput(Construct scope, string id, CfnInputProps? props = null)
go
NewCfnInput(Scope Construct, Id *string, Props CfnInputProps)

Construct Props ​

destinationsoptionalIResolvable | IResolvable | CfnInput.InputDestinationRequestProperty[]destinationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InputDestinationRequestProperty]]]destinationsoptionalIResolvableDestinationsoptionalIResolvableDestinationsoptionalinterface{}#
Settings that apply only if the input is a push type of input.
inputDevicesoptionalIResolvable | IResolvable | CfnInput.InputDeviceSettingsProperty[]input_devicesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InputDeviceSettingsProperty]]]inputDevicesoptionalIResolvableInputDevicesoptionalIResolvableInputDevicesoptionalinterface{}#
Settings that apply only if the input is an Elemental Link input.
inputNetworkLocationoptionalstringinput_network_locationoptionalstrinputNetworkLocationoptionalStringInputNetworkLocationoptionalstringInputNetworkLocationoptional*string#
inputSecurityGroupsoptionalstring[]input_security_groupsoptionaltyping.List[str]inputSecurityGroupsoptionalList<String>InputSecurityGroupsoptionalstring[]InputSecurityGroupsoptional*[]*string#
The list of input security groups (referenced by IDs) to attach to the input if the input is a push type.
mediaConnectFlowsoptionalIResolvable | IResolvable | CfnInput.MediaConnectFlowRequestProperty[]media_connect_flowsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaConnectFlowRequestProperty]]]mediaConnectFlowsoptionalIResolvableMediaConnectFlowsoptionalIResolvableMediaConnectFlowsoptionalinterface{}#
Settings that apply only if the input is a MediaConnect input.
multicastSettingsoptionalIResolvable | CfnInput.MulticastSettingsCreateRequestPropertymulticast_settingsoptionaltyping.Union[IResolvable, MulticastSettingsCreateRequestProperty]multicastSettingsoptionalIResolvableMulticastSettingsoptionalIResolvableMulticastSettingsoptionalinterface{}#
nameoptionalstringnameoptionalstrnameoptionalStringNameoptionalstringNameoptional*string#
A name for the input.
roleArnoptionalstringrole_arnoptionalstrroleArnoptionalStringRoleArnoptionalstringRoleArnoptional*string#
The IAM role for MediaLive to assume when creating a MediaConnect input or Amazon VPC input.

This doesn't apply to other types of inputs. The role is identified by its ARN.

routerSettingsoptionalIResolvable | CfnInput.RouterSettingsPropertyrouter_settingsoptionaltyping.Union[IResolvable, RouterSettingsProperty]routerSettingsoptionalIResolvableRouterSettingsoptionalIResolvableRouterSettingsoptionalinterface{}#
sdiSourcesoptionalstring[]sdi_sourcesoptionaltyping.List[str]sdiSourcesoptionalList<String>SdiSourcesoptionalstring[]SdiSourcesoptional*[]*string#
smpte2110ReceiverGroupSettingsoptionalIResolvable | CfnInput.Smpte2110ReceiverGroupSettingsPropertysmpte2110_receiver_group_settingsoptionaltyping.Union[IResolvable, Smpte2110ReceiverGroupSettingsProperty]smpte2110ReceiverGroupSettingsoptionalIResolvableSmpte2110ReceiverGroupSettingsoptionalIResolvableSmpte2110ReceiverGroupSettingsoptionalinterface{}#
sourcesoptionalIResolvable | IResolvable | CfnInput.InputSourceRequestProperty[]sourcesoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InputSourceRequestProperty]]]sourcesoptionalIResolvableSourcesoptionalIResolvableSourcesoptionalinterface{}#
Settings that apply only if the input is a pull type of input.
srtSettingsoptionalIResolvable | CfnInput.SrtSettingsRequestPropertysrt_settingsoptionaltyping.Union[IResolvable, SrtSettingsRequestProperty]srtSettingsoptionalIResolvableSrtSettingsoptionalIResolvableSrtSettingsoptionalinterface{}#
tagsoptionalanytagsoptionalAnytagsoptionalObjectTagsoptionalobjectTagsoptionalinterface{}#
A collection of tags for this input.

Each tag is a key-value pair.

typeoptionalstringtypeoptionalstrtypeoptionalStringTypeoptionalstringTypeoptional*string#
The type for this input.
vpcoptionalIResolvable | CfnInput.InputVpcRequestPropertyvpcoptionaltyping.Union[IResolvable, InputVpcRequestProperty]vpcoptionalIResolvableVpcoptionalIResolvableVpcoptionalinterface{}#
Settings that apply only if the input is an push input where the source is on Amazon VPC.

Properties ​

attrArnstringattr_arnstrattrArnStringAttrArnstringAttrArn*stringrequired#
The ARN of the MediaLive input.

For example: arn:aws:medialive:us-west-1:111122223333:medialive:input:1234567. MediaLive creates this ARN when it creates the input.

attrDestinationsstring[]attr_destinationstyping.List[str]attrDestinationsList<String>AttrDestinationsstring[]AttrDestinations*[]*stringrequired#
For a push input, the the destination or destinations for the input.

The destinations are the URLs of locations on MediaLive where the upstream system pushes the content to, for this input. MediaLive creates these addresses when it creates the input.

attrIdstringattr_idstrattrIdStringAttrIdstringAttrId*stringrequired#
The unique ID for the device.
attrSourcesstring[]attr_sourcestyping.List[str]attrSourcesList<String>AttrSourcesstring[]AttrSources*[]*stringrequired#
For a pull input, the source or sources for the input.

The sources are the URLs of locations on the upstream system where MediaLive pulls the content from, for this input. You included these URLs in the create request.

CFN_RESOURCE_TYPE_NAMEstringcfn_resource_type_namestrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*stringrequiredstatic#
The CloudFormation resource type name for this resource class.
Options for this resource, such as condition, update policy etc.
cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*stringrequired#
AWS resource type.
creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*stringrequired#
destinationsmay be undefinedIResolvable | IResolvable | CfnInput.InputDestinationRequestProperty[]destinationsmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InputDestinationRequestProperty]]]destinationsmay be undefinedIResolvableDestinationsmay be undefinedIResolvableDestinationsmay be undefinedinterface{}#
Settings that apply only if the input is a push type of input.
inputDevicesmay be undefinedIResolvable | IResolvable | CfnInput.InputDeviceSettingsProperty[]input_devicesmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InputDeviceSettingsProperty]]]inputDevicesmay be undefinedIResolvableInputDevicesmay be undefinedIResolvableInputDevicesmay be undefinedinterface{}#
Settings that apply only if the input is an Elemental Link input.
inputNetworkLocationmay be undefinedstringinput_network_locationmay be undefinedstrinputNetworkLocationmay be undefinedStringInputNetworkLocationmay be undefinedstringInputNetworkLocationmay be undefined*string#
inputRefInputReferenceinput_refInputReferenceinputRefInputReferenceInputRefInputReferenceInputRefInputReferencerequired#
A reference to a Input resource.
inputSecurityGroupsmay be undefinedstring[]input_security_groupsmay be undefinedtyping.List[str]inputSecurityGroupsmay be undefinedList<String>InputSecurityGroupsmay be undefinedstring[]InputSecurityGroupsmay be undefined*[]*string#
The list of input security groups (referenced by IDs) to attach to the input if the input is a push type.
logicalIdstringlogical_idstrlogicalIdStringLogicalIdstringLogicalId*stringrequired#
The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

mediaConnectFlowsmay be undefinedIResolvable | IResolvable | CfnInput.MediaConnectFlowRequestProperty[]media_connect_flowsmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaConnectFlowRequestProperty]]]mediaConnectFlowsmay be undefinedIResolvableMediaConnectFlowsmay be undefinedIResolvableMediaConnectFlowsmay be undefinedinterface{}#
Settings that apply only if the input is a MediaConnect input.
multicastSettingsmay be undefinedIResolvable | CfnInput.MulticastSettingsCreateRequestPropertymulticast_settingsmay be undefinedtyping.Union[IResolvable, MulticastSettingsCreateRequestProperty]multicastSettingsmay be undefinedIResolvableMulticastSettingsmay be undefinedIResolvableMulticastSettingsmay be undefinedinterface{}#
namemay be undefinedstringnamemay be undefinedstrnamemay be undefinedStringNamemay be undefinedstringNamemay be undefined*string#
A name for the input.
nodeNodenodeNodenodeNodeNodeNodeNodeNoderequired#
The tree node.
refstringrefstrrefStringRefstringRef*stringrequired#
Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

roleArnmay be undefinedstringrole_arnmay be undefinedstrroleArnmay be undefinedStringRoleArnmay be undefinedstringRoleArnmay be undefined*string#
The IAM role for MediaLive to assume when creating a MediaConnect input or Amazon VPC input.
routerSettingsmay be undefinedIResolvable | CfnInput.RouterSettingsPropertyrouter_settingsmay be undefinedtyping.Union[IResolvable, RouterSettingsProperty]routerSettingsmay be undefinedIResolvableRouterSettingsmay be undefinedIResolvableRouterSettingsmay be undefinedinterface{}#
sdiSourcesmay be undefinedstring[]sdi_sourcesmay be undefinedtyping.List[str]sdiSourcesmay be undefinedList<String>SdiSourcesmay be undefinedstring[]SdiSourcesmay be undefined*[]*string#
smpte2110ReceiverGroupSettingsmay be undefinedIResolvable | CfnInput.Smpte2110ReceiverGroupSettingsPropertysmpte2110_receiver_group_settingsmay be undefinedtyping.Union[IResolvable, Smpte2110ReceiverGroupSettingsProperty]smpte2110ReceiverGroupSettingsmay be undefinedIResolvableSmpte2110ReceiverGroupSettingsmay be undefinedIResolvableSmpte2110ReceiverGroupSettingsmay be undefinedinterface{}#
sourcesmay be undefinedIResolvable | IResolvable | CfnInput.InputSourceRequestProperty[]sourcesmay be undefinedtyping.Union[IResolvable, typing.List[typing.Union[IResolvable, InputSourceRequestProperty]]]sourcesmay be undefinedIResolvableSourcesmay be undefinedIResolvableSourcesmay be undefinedinterface{}#
Settings that apply only if the input is a pull type of input.
srtSettingsmay be undefinedIResolvable | CfnInput.SrtSettingsRequestPropertysrt_settingsmay be undefinedtyping.Union[IResolvable, SrtSettingsRequestProperty]srtSettingsmay be undefinedIResolvableSrtSettingsmay be undefinedIResolvableSrtSettingsmay be undefinedinterface{}#
stackStackstackStackstackStackStackStackStackStackrequired#
The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Tag Manager which manages the tags for this resource.
tagsRawanytags_rawAnytagsRawObjectTagsRawobjectTagsRawinterface{}required#
A collection of tags for this input.
typemay be undefinedstringtypemay be undefinedstrtypemay be undefinedStringTypemay be undefinedstringTypemay be undefined*string#
The type for this input.
vpcmay be undefinedIResolvable | CfnInput.InputVpcRequestPropertyvpcmay be undefinedtyping.Union[IResolvable, InputVpcRequestProperty]vpcmay be undefinedIResolvableVpcmay be undefinedIResolvableVpcmay be undefinedinterface{}#
Settings that apply only if the input is an push input where the source is on Amazon VPC.

Methods ​

addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string)#
Syntactic sugar for `addOverride(path, undefined)`.
1 parameter

Parameters

  • pathpathpathpathPath — The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource)deprecated#
Use `addResourceDependency` instead.

This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.

addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource)deprecated#
Use `addResourceDependency` instead.
notes

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.

addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{})#
Add a value to the CloudFormation Resource Metadata.
addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{})#
Adds an override to the synthesized CloudFormation resource.
notes · 2 parameters

To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example,

typescript
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');

would add the overrides

json
"Properties": {
  "GlobalSecondaryIndexes": [
    {
      "Projection": {
        "NonKeyAttributes": [ "myattribute" ]
        ...
      }
      ...
    },
    {
      "ProjectionType": "INCLUDE"
      ...
    },
  ]
  ...
}

The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.

Parameters

  • pathpathpathpathPath — - The path of the property, you can use dot notation to override values in complex types.
  • valuevaluevaluevalueValue — - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string)#
Adds an override that deletes the value of a property from the resource definition.
1 parameter

Parameters

  • propertyPathproperty_pathpropertyPathpropertyPathPropertyPath — The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{})#
Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

2 parameters

Parameters

  • propertyPathproperty_pathpropertyPathpropertyPathPropertyPath — The path of the property.
  • valuevaluevaluevalueValue — The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string)#
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
notes

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.

applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength)#
Sets the cross-stack reference strength for this resource.

When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.

1 parameter

Parameters

  • strengthstrengthstrengthstrengthStrength — - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions)#
Sets the deletion policy of the resource based on the removal policy specified.
notes

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:

arnForInput(resource: IInputRef): string@staticmethod def arn_for_input(resource: IInputRef) -> strpublic static String arnForInput(IInputRef resource)public static string ArnForInput(IInputRef resource)func ArnForInput(Resource IInputRef) *stringstatic#
cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string#
fromInputArn(scope: Construct, id: string, arn: string): IInputRef@staticmethod def from_input_arn(scope: Construct, id: str, arn: str) -> IInputRefpublic static IInputRef fromInputArn(Construct scope, String id, String arn)public static IInputRef FromInputArn(Construct scope, string id, string arn)func FromInputArn(Scope Construct, Id *string, Arn *string) IInputRefstatic#
Creates a new IInputRef from an ARN.
fromInputId(scope: Construct, id: string, inputId: string): IInputRef@staticmethod def from_input_id(scope: Construct, id: str, input_id: str) -> IInputRefpublic static IInputRef fromInputId(Construct scope, String id, String inputId)public static IInputRef FromInputId(Construct scope, string id, string inputId)func FromInputId(Scope Construct, Id *string, InputId *string) IInputRefstatic#
Creates a new IInputRef from a inputId.
getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference#
Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

1 parameter

Parameters

  • attributeNameattribute_nameattributeNameattributeNameAttributeName — The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{}#
Retrieve a value value from the CloudFormation Resource Metadata.
inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector)#
Examines the CloudFormation resource and discloses attributes.
1 parameter

Parameters

  • inspectorinspectorinspectorinspectorInspector — tree inspector to collect and process attributes.
isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *boolstatic#
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

returns

Returns: The construct as a stack element or undefined if it is not a stack element.

isCfnInput(x: any): boolean@staticmethod def is_cfn_input(x: Any) -> boolpublic static Boolean isCfnInput(Object x)public static bool IsCfnInput(object x)func IsCfnInput(X interface{}) *boolstatic#
Checks whether the given object is a CfnInput.
isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *boolstatic#
Check whether the given object is a CfnResource.
isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *boolstatic#
Checks if `x` is a construct.
notes · 1 parameter · returns

Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Construct.

obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{}#
Retrieves an array of resources and stacks this resource depends on.

For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.

overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string)#
Overrides the auto-generated logical ID with a specific ID.
1 parameter

Parameters

  • newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId — The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource)deprecated#
Use `removeResourceDependency` instead

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource)#
Indicates that this resource no longer depends on another resource.

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource)#
Replaces one dependency with another.
2 parameters

Parameters

  • targettargettargettargetTarget — The dependency to replace.
  • newTargetnew_targetnewTargetnewTargetNewTarget — The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
Returns a string representation of this construct.
returns

Returns: a string representation of this resource

with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct#
Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.