CfnFlowSourcePropsMixin

class aws_cdk.mixins_preview.aws_mediaconnect.mixins.CfnFlowSourcePropsMixin(props, *, strategy=None)

Bases: Mixin

The AWS::MediaConnect::FlowSource resource is usedt to add additional sources to an existing flow.

Adding an additional source requires Failover to be enabled. When you enable Failover, the additional source must use the same protocol as the existing source. A source is the external video content that includes configuration information (encryption and source type) and a network address. Each flow has at least one source. A standard source comes from a source other than another AWS Elemental MediaConnect flow, such as an on-premises encoder.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediaconnect-flowsource.html

CloudformationResource:

AWS::MediaConnect::FlowSource

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_mediaconnect import mixins as mediaconnect_mixins

cfn_flow_source_props_mixin = mediaconnect_mixins.CfnFlowSourcePropsMixin(mediaconnect_mixins.CfnFlowSourceMixinProps(
    decryption=mediaconnect_mixins.CfnFlowSourcePropsMixin.EncryptionProperty(
        algorithm="algorithm",
        constant_initialization_vector="constantInitializationVector",
        device_id="deviceId",
        key_type="keyType",
        region="region",
        resource_id="resourceId",
        role_arn="roleArn",
        secret_arn="secretArn",
        url="url"
    ),
    description="description",
    entitlement_arn="entitlementArn",
    flow_arn="flowArn",
    gateway_bridge_source=mediaconnect_mixins.CfnFlowSourcePropsMixin.GatewayBridgeSourceProperty(
        bridge_arn="bridgeArn",
        vpc_interface_attachment=mediaconnect_mixins.CfnFlowSourcePropsMixin.VpcInterfaceAttachmentProperty(
            vpc_interface_name="vpcInterfaceName"
        )
    ),
    ingest_port=123,
    max_bitrate=123,
    max_latency=123,
    min_latency=123,
    name="name",
    protocol="protocol",
    sender_control_port=123,
    sender_ip_address="senderIpAddress",
    source_listener_address="sourceListenerAddress",
    source_listener_port=123,
    stream_id="streamId",
    vpc_interface_name="vpcInterfaceName",
    whitelist_cidr="whitelistCidr"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::MediaConnect::FlowSource.

Parameters:
  • props (Union[CfnFlowSourceMixinProps, Dict[str, Any]]) – L1 properties to apply.

  • strategy (Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['decryption', 'description', 'entitlementArn', 'flowArn', 'gatewayBridgeSource', 'ingestPort', 'maxBitrate', 'maxLatency', 'minLatency', 'name', 'protocol', 'senderControlPort', 'senderIpAddress', 'sourceListenerAddress', 'sourceListenerPort', 'streamId', 'vpcInterfaceName', 'whitelistCidr']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental

EncryptionProperty

class CfnFlowSourcePropsMixin.EncryptionProperty(*, algorithm=None, constant_initialization_vector=None, device_id=None, key_type=None, region=None, resource_id=None, role_arn=None, secret_arn=None, url=None)

Bases: object

Encryption information.

Parameters:
  • algorithm (Optional[str]) – The type of algorithm that is used for static key encryption (such as aes128, aes192, or aes256). If you are using SPEKE or SRT-password encryption, this property must be left blank.

  • constant_initialization_vector (Optional[str]) – A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.

  • device_id (Optional[str]) – The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.

  • key_type (Optional[str]) – The type of key that is used for the encryption. If you don’t specify a keyType value, the service uses the default setting ( static-key ). Valid key types are: static-key , speke , and srt-password . Default: - “static-key”

  • region (Optional[str]) – The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.

  • resource_id (Optional[str]) – An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.

  • role_arn (Optional[str]) – The ARN of the role that you created during setup (when you set up MediaConnect as a trusted entity).

  • secret_arn (Optional[str]) – The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.

  • url (Optional[str]) – The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediaconnect import mixins as mediaconnect_mixins

encryption_property = mediaconnect_mixins.CfnFlowSourcePropsMixin.EncryptionProperty(
    algorithm="algorithm",
    constant_initialization_vector="constantInitializationVector",
    device_id="deviceId",
    key_type="keyType",
    region="region",
    resource_id="resourceId",
    role_arn="roleArn",
    secret_arn="secretArn",
    url="url"
)

Attributes

algorithm

The type of algorithm that is used for static key encryption (such as aes128, aes192, or aes256).

If you are using SPEKE or SRT-password encryption, this property must be left blank.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-algorithm

constant_initialization_vector

A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content.

This parameter is not valid for static key encryption.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-constantinitializationvector

device_id

The value of one of the devices that you configured with your digital rights management (DRM) platform key provider.

This parameter is required for SPEKE encryption and is not valid for static key encryption.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-deviceid

key_type

The type of key that is used for the encryption.

If you don’t specify a keyType value, the service uses the default setting ( static-key ). Valid key types are: static-key , speke , and srt-password .

Default:
  • “static-key”

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-keytype

region

The AWS Region that the API Gateway proxy endpoint was created in.

This parameter is required for SPEKE encryption and is not valid for static key encryption.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-region

resource_id

An identifier for the content.

The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-resourceid

role_arn

The ARN of the role that you created during setup (when you set up MediaConnect as a trusted entity).

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-rolearn

secret_arn

The ARN of the secret that you created in AWS Secrets Manager to store the encryption key.

This parameter is required for static key encryption and is not valid for SPEKE encryption.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-secretarn

url

The URL from the API Gateway proxy that you set up to talk to your key server.

This parameter is required for SPEKE encryption and is not valid for static key encryption.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-encryption.html#cfn-mediaconnect-flowsource-encryption-url

GatewayBridgeSourceProperty

class CfnFlowSourcePropsMixin.GatewayBridgeSourceProperty(*, bridge_arn=None, vpc_interface_attachment=None)

Bases: object

The source configuration for cloud flows receiving a stream from a bridge.

Parameters:
  • bridge_arn (Optional[str]) – The ARN of the bridge feeding this flow.

  • vpc_interface_attachment (Union[IResolvable, VpcInterfaceAttachmentProperty, Dict[str, Any], None]) – The name of the VPC interface attachment to use for this bridge source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-gatewaybridgesource.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediaconnect import mixins as mediaconnect_mixins

gateway_bridge_source_property = mediaconnect_mixins.CfnFlowSourcePropsMixin.GatewayBridgeSourceProperty(
    bridge_arn="bridgeArn",
    vpc_interface_attachment=mediaconnect_mixins.CfnFlowSourcePropsMixin.VpcInterfaceAttachmentProperty(
        vpc_interface_name="vpcInterfaceName"
    )
)

Attributes

bridge_arn

The ARN of the bridge feeding this flow.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-gatewaybridgesource.html#cfn-mediaconnect-flowsource-gatewaybridgesource-bridgearn

vpc_interface_attachment

The name of the VPC interface attachment to use for this bridge source.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-gatewaybridgesource.html#cfn-mediaconnect-flowsource-gatewaybridgesource-vpcinterfaceattachment

VpcInterfaceAttachmentProperty

class CfnFlowSourcePropsMixin.VpcInterfaceAttachmentProperty(*, vpc_interface_name=None)

Bases: object

The settings for attaching a VPC interface to an resource.

Parameters:

vpc_interface_name (Optional[str]) – The name of the VPC interface to use for this resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-vpcinterfaceattachment.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_mediaconnect import mixins as mediaconnect_mixins

vpc_interface_attachment_property = mediaconnect_mixins.CfnFlowSourcePropsMixin.VpcInterfaceAttachmentProperty(
    vpc_interface_name="vpcInterfaceName"
)

Attributes

vpc_interface_name

The name of the VPC interface to use for this resource.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-mediaconnect-flowsource-vpcinterfaceattachment.html#cfn-mediaconnect-flowsource-vpcinterfaceattachment-vpcinterfacename