CfnAssetProps

class aws_cdk.aws_mediapackage.CfnAssetProps(*, id, packaging_group_id, source_arn, source_role_arn, egress_endpoints=None, resource_id=None, tags=None)

Bases: object

Properties for defining a CfnAsset.

Parameters:
  • id (str) – Unique identifier that you assign to the asset.

  • packaging_group_id (str) – The ID of the packaging group associated with this asset.

  • source_arn (str) – The ARN for the source content in Amazon S3.

  • source_role_arn (str) – The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored. Valid format: arn:aws:iam::{accountID}:role/{name}

  • egress_endpoints (Union[IResolvable, Sequence[Union[IResolvable, EgressEndpointProperty, Dict[str, Any]]], None]) – List of playback endpoints that are available for this asset.

  • resource_id (Optional[str]) – Unique identifier for this asset, as it’s configured in the key provider service.

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags to assign to the asset.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.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 import aws_mediapackage as mediapackage

cfn_asset_props = mediapackage.CfnAssetProps(
    id="id",
    packaging_group_id="packagingGroupId",
    source_arn="sourceArn",
    source_role_arn="sourceRoleArn",

    # the properties below are optional
    egress_endpoints=[mediapackage.CfnAsset.EgressEndpointProperty(
        packaging_configuration_id="packagingConfigurationId",
        url="url"
    )],
    resource_id="resourceId",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)

Attributes

egress_endpoints

List of playback endpoints that are available for this asset.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html#cfn-mediapackage-asset-egressendpoints

id

Unique identifier that you assign to the asset.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html#cfn-mediapackage-asset-id

packaging_group_id

The ID of the packaging group associated with this asset.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html#cfn-mediapackage-asset-packaginggroupid

resource_id

Unique identifier for this asset, as it’s configured in the key provider service.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html#cfn-mediapackage-asset-resourceid

source_arn

The ARN for the source content in Amazon S3.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html#cfn-mediapackage-asset-sourcearn

source_role_arn

The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.

Valid format: arn:aws:iam::{accountID}:role/{name}

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html#cfn-mediapackage-asset-sourcerolearn

tags

The tags to assign to the asset.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html#cfn-mediapackage-asset-tags