CfnAssetPropsMixin
- class aws_cdk.mixins_preview.aws_mediapackage.mixins.CfnAssetPropsMixin(props, *, strategy=None)
Bases:
MixinCreates an asset to ingest VOD content.
After it’s created, the asset starts ingesting content and generates playback URLs for the packaging configurations associated with it. When ingest is complete, downstream devices use the appropriate URL to request VOD content from AWS Elemental MediaPackage .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html
- CloudformationResource:
AWS::MediaPackage::Asset
- 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_mediapackage import mixins as mediapackage_mixins cfn_asset_props_mixin = mediapackage_mixins.CfnAssetPropsMixin(mediapackage_mixins.CfnAssetMixinProps( egress_endpoints=[mediapackage_mixins.CfnAssetPropsMixin.EgressEndpointProperty( packaging_configuration_id="packagingConfigurationId", url="url" )], id="id", packaging_group_id="packagingGroupId", resource_id="resourceId", source_arn="sourceArn", source_role_arn="sourceRoleArn", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::MediaPackage::Asset.- Parameters:
props (
Union[CfnAssetMixinProps,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 = ['egressEndpoints', 'id', 'packagingGroupId', 'resourceId', 'sourceArn', 'sourceRoleArn', 'tags']
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
EgressEndpointProperty
- class CfnAssetPropsMixin.EgressEndpointProperty(*, packaging_configuration_id=None, url=None)
Bases:
objectThe playback endpoint for a packaging configuration on an asset.
- Parameters:
packaging_configuration_id (
Optional[str]) – The ID of a packaging configuration that’s applied to this asset.url (
Optional[str]) – The URL that’s used to request content from this endpoint.
- 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_mediapackage import mixins as mediapackage_mixins egress_endpoint_property = mediapackage_mixins.CfnAssetPropsMixin.EgressEndpointProperty( packaging_configuration_id="packagingConfigurationId", url="url" )
Attributes
- packaging_configuration_id
The ID of a packaging configuration that’s applied to this asset.
- url
The URL that’s used to request content from this endpoint.