CmdID

CmdID / aws / aws mediapackage-vod

aws mediapackage-vod create-asset

Creates a new MediaPackage VOD Asset resource. AWS CLI reference

1 example 6 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create an asset

The following create-asset example creates an asset named Chicken_Asset in the current AWS account. The asset ingests the file 30sec_chicken.smil to MediaPackage.

aws mediapackage-vod create-asset --id chicken_asset --packaging-group-id hls_chicken_gp --source-role-arn arn:aws:iam::123456789012:role/EMP_Vod --source-arn arn:aws:s3::123456789012:video-bucket/A/30sec_chicken.smilIdentify
--idThe unique identifier for the Asset.
--packaging-group-idThe ID of the PackagingGroup for the Asset.
--source-role-arnThe IAM role ARN used to access the source S3 bucket.
--source-arnARN of the source object in S3.
Its output
{
    "Arn":"arn:aws:mediapackage-vod:us-west-2:123456789012:assets/chicken_asset",
    "Id":"chicken_asset",
    "PackagingGroupId":"hls_chicken_gp",
    "SourceArn":"arn:aws:s3::123456789012:video-bucket/A/30sec_chicken.smil",
    "SourceRoleArn":"arn:aws:iam::123456789012:role/EMP_Vod",
    "EgressEndpoints":[
        {
            "PackagingConfigurationId":"New_config_1",
            "Url":"https://c75ea2668ab49d02bca7ae10ef31c59e.egress.mediapackage-vod.us-west-2.amazonaws.com/out/v1/6644b55df1744261ab3732a8e5cdaf07/904b06a58c7645e08d57d40d064216ac/f5b2e633ff4942228095d164c10074f3/index.m3u8"
        },
        {
            "PackagingConfigurationId":"new_hls",
            "Url":" https://c75ea2668ab49d02bca7ae10ef31c59e.egress.mediapackage-vod.us-west-2.amazonaws.com/out/v1/6644b55df1744261ab3732a8e5cdaf07/fe8f1f00a80e424cb4f8da4095835e9e/7370ec57432343af816332356d2bd5c6/string.m3u8"
        }
    ]
}

For more information, see Ingest an Asset in the AWS Elemental MediaPackage User Guide.

Options

6 in the AWS CLI reference
--idThe unique identifier for the Asset.
--packaging-group-idThe ID of the PackagingGroup for the Asset.
--resource-idThe resource ID to include in SPEKE key requests.
--source-arnARN of the source object in S3.
--source-role-arnThe IAM role ARN used to access the source S3 bucket.
--tagsA collection of tags associated with a resource