CfnFlowSourcePropsMixin
- class aws_cdk.mixins_preview.aws_mediaconnect.mixins.CfnFlowSourcePropsMixin(props, *, strategy=None)
Bases:
MixinThe
AWS::MediaConnect::FlowSourceresource 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:
- 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:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- 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:
objectEncryption 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 akeyTypevalue, the service uses the default setting (static-key). Valid key types are:static-key,speke, andsrt-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:
- 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.
- 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.
- 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.
- key_type
The type of key that is used for the encryption.
If you don’t specify a
keyTypevalue, the service uses the default setting (static-key). Valid key types are:static-key,speke, andsrt-password.
- 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.
- 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.
- role_arn
The ARN of the role that you created during setup (when you set up MediaConnect as a trusted entity).
- 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.
- 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.
GatewayBridgeSourceProperty
- class CfnFlowSourcePropsMixin.GatewayBridgeSourceProperty(*, bridge_arn=None, vpc_interface_attachment=None)
Bases:
objectThe 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:
- 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.
- vpc_interface_attachment
The name of the VPC interface attachment to use for this bridge source.
VpcInterfaceAttachmentProperty
- class CfnFlowSourcePropsMixin.VpcInterfaceAttachmentProperty(*, vpc_interface_name=None)
Bases:
objectThe 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:
- 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.