Skip to content
v2.273.0

CfnFlowOutput L1 construct ​

The AWS::MediaConnect::FlowOutput resource defines the destination address, protocol, and port that AWS Elemental MediaConnect sends the ingested video to.

Each flow can have up to 50 outputs. An output can have the same protocol or a different protocol from the source. The following protocols are supported: RIST, RTP, RTP-FEC, SRT-listener, SRT-caller, Zixi pull, and Zixi push. CDI and ST 2110 JPEG XS protocols are not currently supported by AWS CloudFormation.

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 cfnFlowOutput = new mediaconnect.CfnFlowOutput(this, 'MyCfnFlowOutput', {
  flowArn: 'flowArn',

  // the properties below are optional
  cidrAllowList: ['cidrAllowList'],
  description: 'description',
  destination: 'destination',
  encryption: {
    roleArn: 'roleArn',
    secretArn: 'secretArn',

    // the properties below are optional
    algorithm: 'algorithm',
    keyType: 'keyType',
  },
  maxLatency: 123,
  mediaStreamOutputConfigurations: [{
    encodingName: 'encodingName',
    mediaStreamName: 'mediaStreamName',

    // the properties below are optional
    destinationConfigurations: [{
      destinationIp: 'destinationIp',
      destinationPort: 123,
      interface: {
        name: 'name',
      },
    }],
    encodingParameters: {
      compressionFactor: 123,

      // the properties below are optional
      encoderProfile: 'encoderProfile',
    },
  }],
  minLatency: 123,
  name: 'name',
  ndiOutputTimecodeSource: 'ndiOutputTimecodeSource',
  ndiProgramName: 'ndiProgramName',
  ndiSpeedHqQuality: 123,
  outputStatus: 'outputStatus',
  port: 123,
  protocol: 'protocol',
  remoteId: 'remoteId',
  routerIntegrationState: 'routerIntegrationState',
  routerIntegrationTransitEncryption: {
    encryptionKeyConfiguration: {
      automatic: automatic,
      secretsManager: {
        roleArn: 'roleArn',
        secretArn: 'secretArn',
      },
    },

    // the properties below are optional
    encryptionKeyType: 'encryptionKeyType',
  },
  smoothingLatency: 123,
  streamId: 'streamId',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcInterfaceAttachment: {
    vpcInterfaceName: 'vpcInterfaceName',
  },
});
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_mediaconnect as mediaconnect

# automatic: Any

cfn_flow_output = mediaconnect.CfnFlowOutput(self, "MyCfnFlowOutput",
    flow_arn="flowArn",

    # the properties below are optional
    cidr_allow_list=["cidrAllowList"],
    description="description",
    destination="destination",
    encryption=mediaconnect.CfnFlowOutput.EncryptionProperty(
        role_arn="roleArn",
        secret_arn="secretArn",

        # the properties below are optional
        algorithm="algorithm",
        key_type="keyType"
    ),
    max_latency=123,
    media_stream_output_configurations=[mediaconnect.CfnFlowOutput.MediaStreamOutputConfigurationProperty(
        encoding_name="encodingName",
        media_stream_name="mediaStreamName",

        # the properties below are optional
        destination_configurations=[mediaconnect.CfnFlowOutput.DestinationConfigurationProperty(
            destination_ip="destinationIp",
            destination_port=123,
            interface=mediaconnect.CfnFlowOutput.InterfaceProperty(
                name="name"
            )
        )],
        encoding_parameters=mediaconnect.CfnFlowOutput.EncodingParametersProperty(
            compression_factor=123,

            # the properties below are optional
            encoder_profile="encoderProfile"
        )
    )],
    min_latency=123,
    name="name",
    ndi_output_timecode_source="ndiOutputTimecodeSource",
    ndi_program_name="ndiProgramName",
    ndi_speed_hq_quality=123,
    output_status="outputStatus",
    port=123,
    protocol="protocol",
    remote_id="remoteId",
    router_integration_state="routerIntegrationState",
    router_integration_transit_encryption=mediaconnect.CfnFlowOutput.FlowTransitEncryptionProperty(
        encryption_key_configuration=mediaconnect.CfnFlowOutput.FlowTransitEncryptionKeyConfigurationProperty(
            automatic=automatic,
            secrets_manager=mediaconnect.CfnFlowOutput.SecretsManagerEncryptionKeyConfigurationProperty(
                role_arn="roleArn",
                secret_arn="secretArn"
            )
        ),

        # the properties below are optional
        encryption_key_type="encryptionKeyType"
    ),
    smoothing_latency=123,
    stream_id="streamId",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_interface_attachment=mediaconnect.CfnFlowOutput.VpcInterfaceAttachmentProperty(
        vpc_interface_name="vpcInterfaceName"
    )
)
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;

CfnFlowOutput cfnFlowOutput = CfnFlowOutput.Builder.create(this, "MyCfnFlowOutput")
        .flowArn("flowArn")

        // the properties below are optional
        .cidrAllowList(List.of("cidrAllowList"))
        .description("description")
        .destination("destination")
        .encryption(EncryptionProperty.builder()
                .roleArn("roleArn")
                .secretArn("secretArn")

                // the properties below are optional
                .algorithm("algorithm")
                .keyType("keyType")
                .build())
        .maxLatency(123)
        .mediaStreamOutputConfigurations(List.of(MediaStreamOutputConfigurationProperty.builder()
                .encodingName("encodingName")
                .mediaStreamName("mediaStreamName")

                // the properties below are optional
                .destinationConfigurations(List.of(DestinationConfigurationProperty.builder()
                        .destinationIp("destinationIp")
                        .destinationPort(123)
                        .interface(InterfaceProperty.builder()
                                .name("name")
                                .build())
                        .build()))
                .encodingParameters(EncodingParametersProperty.builder()
                        .compressionFactor(123)

                        // the properties below are optional
                        .encoderProfile("encoderProfile")
                        .build())
                .build()))
        .minLatency(123)
        .name("name")
        .ndiOutputTimecodeSource("ndiOutputTimecodeSource")
        .ndiProgramName("ndiProgramName")
        .ndiSpeedHqQuality(123)
        .outputStatus("outputStatus")
        .port(123)
        .protocol("protocol")
        .remoteId("remoteId")
        .routerIntegrationState("routerIntegrationState")
        .routerIntegrationTransitEncryption(FlowTransitEncryptionProperty.builder()
                .encryptionKeyConfiguration(FlowTransitEncryptionKeyConfigurationProperty.builder()
                        .automatic(automatic)
                        .secretsManager(SecretsManagerEncryptionKeyConfigurationProperty.builder()
                                .roleArn("roleArn")
                                .secretArn("secretArn")
                                .build())
                        .build())

                // the properties below are optional
                .encryptionKeyType("encryptionKeyType")
                .build())
        .smoothingLatency(123)
        .streamId("streamId")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .vpcInterfaceAttachment(VpcInterfaceAttachmentProperty.builder()
                .vpcInterfaceName("vpcInterfaceName")
                .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 cfnFlowOutput = new CfnFlowOutput(this, "MyCfnFlowOutput", new CfnFlowOutputProps {
    FlowArn = "flowArn",

    // the properties below are optional
    CidrAllowList = new [] { "cidrAllowList" },
    Description = "description",
    Destination = "destination",
    Encryption = new EncryptionProperty {
        RoleArn = "roleArn",
        SecretArn = "secretArn",

        // the properties below are optional
        Algorithm = "algorithm",
        KeyType = "keyType"
    },
    MaxLatency = 123,
    MediaStreamOutputConfigurations = new [] { new MediaStreamOutputConfigurationProperty {
        EncodingName = "encodingName",
        MediaStreamName = "mediaStreamName",

        // the properties below are optional
        DestinationConfigurations = new [] { new DestinationConfigurationProperty {
            DestinationIp = "destinationIp",
            DestinationPort = 123,
            Interface = new InterfaceProperty {
                Name = "name"
            }
        } },
        EncodingParameters = new EncodingParametersProperty {
            CompressionFactor = 123,

            // the properties below are optional
            EncoderProfile = "encoderProfile"
        }
    } },
    MinLatency = 123,
    Name = "name",
    NdiOutputTimecodeSource = "ndiOutputTimecodeSource",
    NdiProgramName = "ndiProgramName",
    NdiSpeedHqQuality = 123,
    OutputStatus = "outputStatus",
    Port = 123,
    Protocol = "protocol",
    RemoteId = "remoteId",
    RouterIntegrationState = "routerIntegrationState",
    RouterIntegrationTransitEncryption = new FlowTransitEncryptionProperty {
        EncryptionKeyConfiguration = new FlowTransitEncryptionKeyConfigurationProperty {
            Automatic = automatic,
            SecretsManager = new SecretsManagerEncryptionKeyConfigurationProperty {
                RoleArn = "roleArn",
                SecretArn = "secretArn"
            }
        },

        // the properties below are optional
        EncryptionKeyType = "encryptionKeyType"
    },
    SmoothingLatency = 123,
    StreamId = "streamId",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VpcInterfaceAttachment = new VpcInterfaceAttachmentProperty {
        VpcInterfaceName = "vpcInterfaceName"
    }
});
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{}

cfnFlowOutput := awscdk.Aws_mediaconnect.NewCfnFlowOutput(this, jsii.String("MyCfnFlowOutput"), &CfnFlowOutputProps{
	FlowArn: jsii.String("flowArn"),

	// the properties below are optional
	CidrAllowList: []*string{
		jsii.String("cidrAllowList"),
	},
	Description: jsii.String("description"),
	Destination: jsii.String("destination"),
	Encryption: &EncryptionProperty{
		RoleArn: jsii.String("roleArn"),
		SecretArn: jsii.String("secretArn"),

		// the properties below are optional
		Algorithm: jsii.String("algorithm"),
		KeyType: jsii.String("keyType"),
	},
	MaxLatency: jsii.Number(123),
	MediaStreamOutputConfigurations: []interface{}{
		&MediaStreamOutputConfigurationProperty{
			EncodingName: jsii.String("encodingName"),
			MediaStreamName: jsii.String("mediaStreamName"),

			// the properties below are optional
			DestinationConfigurations: []interface{}{
				&DestinationConfigurationProperty{
					DestinationIp: jsii.String("destinationIp"),
					DestinationPort: jsii.Number(123),
					Interface: &InterfaceProperty{
						Name: jsii.String("name"),
					},
				},
			},
			EncodingParameters: &EncodingParametersProperty{
				CompressionFactor: jsii.Number(123),

				// the properties below are optional
				EncoderProfile: jsii.String("encoderProfile"),
			},
		},
	},
	MinLatency: jsii.Number(123),
	Name: jsii.String("name"),
	NdiOutputTimecodeSource: jsii.String("ndiOutputTimecodeSource"),
	NdiProgramName: jsii.String("ndiProgramName"),
	NdiSpeedHqQuality: jsii.Number(123),
	OutputStatus: jsii.String("outputStatus"),
	Port: jsii.Number(123),
	Protocol: jsii.String("protocol"),
	RemoteId: jsii.String("remoteId"),
	RouterIntegrationState: jsii.String("routerIntegrationState"),
	RouterIntegrationTransitEncryption: &FlowTransitEncryptionProperty{
		EncryptionKeyConfiguration: &FlowTransitEncryptionKeyConfigurationProperty{
			Automatic: automatic,
			SecretsManager: &SecretsManagerEncryptionKeyConfigurationProperty{
				RoleArn: jsii.String("roleArn"),
				SecretArn: jsii.String("secretArn"),
			},
		},

		// the properties below are optional
		EncryptionKeyType: jsii.String("encryptionKeyType"),
	},
	SmoothingLatency: jsii.Number(123),
	StreamId: jsii.String("streamId"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VpcInterfaceAttachment: &VpcInterfaceAttachmentProperty{
		VpcInterfaceName: jsii.String("vpcInterfaceName"),
	},
})

Initializer ​

ts
new CfnFlowOutput(scope: Construct, id: string, props: CfnFlowOutputProps)
python
CfnFlowOutput(scope: Construct, id: str, props: CfnFlowOutputProps)
java
new CfnFlowOutput(Construct scope, String id, CfnFlowOutputProps props)
csharp
new CfnFlowOutput(Construct scope, string id, CfnFlowOutputProps props)
go
NewCfnFlowOutput(Scope Construct, Id *string, Props CfnFlowOutputProps)

Construct Props ​

cidrAllowListstring[]cidr_allow_listtyping.List[str]cidrAllowListList<String>CidrAllowListstring[]CidrAllowList*[]*string#
The range of IP addresses that should be allowed to initiate output requests to this flow.

These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.

descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string#
A description of the output.

This description appears only on the MediaConnect console and will not be seen by the end user.

destinationstringdestinationstrdestinationStringDestinationstringDestination*string#
The IP address where you want to send the output.
encryptionIResolvable | CfnFlowOutput.EncryptionPropertyencryptiontyping.Union[IResolvable, EncryptionProperty]encryptionIResolvableEncryptionIResolvableEncryptioninterface{}#
The type of key used for the encryption.

If no keyType is provided, the service will use the default setting (static-key). Allowable encryption types: static-key.

flowArnstringflow_arnstrflowArnStringFlowArnstringFlowArn*stringrequired#
The Amazon Resource Name (ARN) of the flow this output is attached to.
maxLatencynumbermax_latencyint | floatmaxLatencyNumberMaxLatencydoubleMaxLatency*float64#
The maximum latency in milliseconds.

This parameter applies only to RIST-based and Zixi-based streams.

mediaStreamOutputConfigurationsIResolvable | IResolvable | CfnFlowOutput.MediaStreamOutputConfigurationProperty[]media_stream_output_configurationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaStreamOutputConfigurationProperty]]]mediaStreamOutputConfigurationsIResolvableMediaStreamOutputConfigurationsIResolvableMediaStreamOutputConfigurationsinterface{}#
The media streams that are associated with the output, and the parameters for those associations.
minLatencynumbermin_latencyint | floatminLatencyNumberMinLatencydoubleMinLatency*float64#
The minimum latency in milliseconds for SRT-based streams.
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.

namestringnamestrnameStringNamestringName*string#
The name of the bridge's output.
ndiOutputTimecodeSourcestringndi_output_timecode_sourcestrndiOutputTimecodeSourceStringNdiOutputTimecodeSourcestringNdiOutputTimecodeSource*string#
The timecode source for the NDI output.
ndiProgramNamestringndi_program_namestrndiProgramNameStringNdiProgramNamestringNdiProgramName*string#
A suffix for the names of the NDI sources that the flow creates.

If a custom name isn't specified, MediaConnect uses the output name.

ndiSpeedHqQualitynumberndi_speed_hq_qualityint | floatndiSpeedHqQualityNumberNdiSpeedHqQualitydoubleNdiSpeedHqQuality*float64#
A quality setting for the NDI Speed HQ encoder.
outputStatusstringoutput_statusstroutputStatusStringOutputStatusstringOutputStatus*string#
An indication of whether the output should transmit data or not.
portnumberportint | floatportNumberPortdoublePort*float64#
The port to use when content is distributed to this output.
protocolstringprotocolstrprotocolStringProtocolstringProtocol*string#
The protocol to use for the output.

AWS Elemental MediaConnect no longer supports the Fujitsu QoS protocol. This reference is maintained for legacy purposes only.

remoteIdstringremote_idstrremoteIdStringRemoteIdstringRemoteId*string#
The remote ID for the Zixi-pull stream.
routerIntegrationStatestringrouter_integration_statestrrouterIntegrationStateStringRouterIntegrationStatestringRouterIntegrationState*string#
routerIntegrationTransitEncryptionIResolvable | CfnFlowOutput.FlowTransitEncryptionPropertyrouter_integration_transit_encryptiontyping.Union[IResolvable, FlowTransitEncryptionProperty]routerIntegrationTransitEncryptionIResolvableRouterIntegrationTransitEncryptionIResolvableRouterIntegrationTransitEncryptioninterface{}#
Encryption information.
smoothingLatencynumbersmoothing_latencyint | floatsmoothingLatencyNumberSmoothingLatencydoubleSmoothingLatency*float64#
The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
streamIdstringstream_idstrstreamIdStringStreamIdstringStreamId*string#
The stream ID that you want to use for this transport.

This parameter applies only to Zixi and SRT caller-based streams.

tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
Key-value pairs that can be used to tag and organize this flow output.
vpcInterfaceAttachmentIResolvable | CfnFlowOutput.VpcInterfaceAttachmentPropertyvpc_interface_attachmenttyping.Union[IResolvable, VpcInterfaceAttachmentProperty]vpcInterfaceAttachmentIResolvableVpcInterfaceAttachmentIResolvableVpcInterfaceAttachmentinterface{}#
The name of the VPC interface attachment to use for this output.

Properties ​

attrOutputArnstringattr_output_arnstrattrOutputArnStringAttrOutputArnstringAttrOutputArn*stringrequired#
The ARN of the output.
cdkTagManagerTagManagercdk_tag_managerTagManagercdkTagManagerTagManagerCdkTagManagerTagManagerCdkTagManagerTagManagerrequired#
Tag Manager which manages the tags for this resource.
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.
cidrAllowListstring[]cidr_allow_listtyping.List[str]cidrAllowListList<String>CidrAllowListstring[]CidrAllowList*[]*string#
The range of IP addresses that should be allowed to initiate output requests to this flow.
creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*stringrequired#
descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string#
A description of the output.
destinationstringdestinationstrdestinationStringDestinationstringDestination*string#
The IP address where you want to send the output.
encryptionIResolvable | CfnFlowOutput.EncryptionPropertyencryptiontyping.Union[IResolvable, EncryptionProperty]encryptionIResolvableEncryptionIResolvableEncryptioninterface{}#
The type of key used for the encryption.
flowArnstringflow_arnstrflowArnStringFlowArnstringFlowArn*stringrequired#
The Amazon Resource Name (ARN) of the flow this output is attached to.
flowOutputRefFlowOutputReferenceflow_output_refFlowOutputReferenceflowOutputRefFlowOutputReferenceFlowOutputRefFlowOutputReferenceFlowOutputRefFlowOutputReferencerequired#
A reference to a FlowOutput resource.
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).

maxLatencynumbermax_latencyint | floatmaxLatencyNumberMaxLatencydoubleMaxLatency*float64#
The maximum latency in milliseconds.
mediaStreamOutputConfigurationsIResolvable | IResolvable | CfnFlowOutput.MediaStreamOutputConfigurationProperty[]media_stream_output_configurationstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, MediaStreamOutputConfigurationProperty]]]mediaStreamOutputConfigurationsIResolvableMediaStreamOutputConfigurationsIResolvableMediaStreamOutputConfigurationsinterface{}#
The media streams that are associated with the output, and the parameters for those associations.
minLatencynumbermin_latencyint | floatminLatencyNumberMinLatencydoubleMinLatency*float64#
The minimum latency in milliseconds for SRT-based streams.
namestringnamestrnameStringNamestringName*string#
The name of the bridge's output.
ndiOutputTimecodeSourcestringndi_output_timecode_sourcestrndiOutputTimecodeSourceStringNdiOutputTimecodeSourcestringNdiOutputTimecodeSource*string#
The timecode source for the NDI output.
ndiProgramNamestringndi_program_namestrndiProgramNameStringNdiProgramNamestringNdiProgramName*string#
A suffix for the names of the NDI sources that the flow creates.
ndiSpeedHqQualitynumberndi_speed_hq_qualityint | floatndiSpeedHqQualityNumberNdiSpeedHqQualitydoubleNdiSpeedHqQuality*float64#
A quality setting for the NDI Speed HQ encoder.
nodeNodenodeNodenodeNodeNodeNodeNodeNoderequired#
The tree node.
outputStatusstringoutput_statusstroutputStatusStringOutputStatusstringOutputStatus*string#
An indication of whether the output should transmit data or not.
portnumberportint | floatportNumberPortdoublePort*float64#
The port to use when content is distributed to this output.
protocolstringprotocolstrprotocolStringProtocolstringProtocol*string#
The protocol to use for the output.
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 }).

remoteIdstringremote_idstrremoteIdStringRemoteIdstringRemoteId*string#
The remote ID for the Zixi-pull stream.
routerIntegrationStatestringrouter_integration_statestrrouterIntegrationStateStringRouterIntegrationStatestringRouterIntegrationState*string#
routerIntegrationTransitEncryptionIResolvable | CfnFlowOutput.FlowTransitEncryptionPropertyrouter_integration_transit_encryptiontyping.Union[IResolvable, FlowTransitEncryptionProperty]routerIntegrationTransitEncryptionIResolvableRouterIntegrationTransitEncryptionIResolvableRouterIntegrationTransitEncryptioninterface{}#
Encryption information.
smoothingLatencynumbersmoothing_latencyint | floatsmoothingLatencyNumberSmoothingLatencydoubleSmoothingLatency*float64#
The smoothing latency in milliseconds for RIST, RTP, and RTP-FEC streams.
stackStackstackStackstackStackStackStackStackStackrequired#
The stack in which this element is defined.

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

streamIdstringstream_idstrstreamIdStringStreamIdstringStreamId*string#
The stream ID that you want to use for this transport.
tagsCfnTag[]tagstyping.List[CfnTag]tagsList<CfnTag>TagsCfnTag[]Tags*[]CfnTag#
Key-value pairs that can be used to tag and organize this flow output.
vpcInterfaceAttachmentIResolvable | CfnFlowOutput.VpcInterfaceAttachmentPropertyvpc_interface_attachmenttyping.Union[IResolvable, VpcInterfaceAttachmentProperty]vpcInterfaceAttachmentIResolvableVpcInterfaceAttachmentIResolvableVpcInterfaceAttachmentinterface{}#
The name of the VPC interface attachment to use for this output.

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:

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#
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.

isCfnFlowOutput(x: any): boolean@staticmethod def is_cfn_flow_output(x: Any) -> boolpublic static Boolean isCfnFlowOutput(Object x)public static bool IsCfnFlowOutput(object x)func IsCfnFlowOutput(X interface{}) *boolstatic#
Checks whether the given object is a CfnFlowOutput.
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.