interface CfnAssetProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaPackage.CfnAssetProps |
Java | software.amazon.awscdk.services.mediapackage.CfnAssetProps |
Python | aws_cdk.aws_mediapackage.CfnAssetProps |
TypeScript | @aws-cdk/aws-mediapackage » CfnAssetProps |
Properties for defining a CfnAsset.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as mediapackage from '@aws-cdk/aws-mediapackage';
const cfnAssetProps: mediapackage.CfnAssetProps = {
id: 'id',
packagingGroupId: 'packagingGroupId',
sourceArn: 'sourceArn',
sourceRoleArn: 'sourceRoleArn',
// the properties below are optional
egressEndpoints: [{
packagingConfigurationId: 'packagingConfigurationId',
url: 'url',
}],
resourceId: 'resourceId',
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
| Name | Type | Description |
|---|---|---|
| id | string | Unique identifier that you assign to the asset. |
| packaging | string | The ID of the packaging group associated with this asset. |
| source | string | The ARN for the source content in Amazon S3. |
| source | string | The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored. |
| egress | IResolvable | Egress | IResolvable[] | List of playback endpoints that are available for this asset. |
| resource | string | Unique identifier for this asset, as it's configured in the key provider service. |
| tags? | Cfn[] | The tags to assign to the asset. |
id
Type:
string
Unique identifier that you assign to the asset.
packagingGroupId
Type:
string
The ID of the packaging group associated with this asset.
sourceArn
Type:
string
The ARN for the source content in Amazon S3.
sourceRoleArn
Type:
string
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}
egressEndpoints?
Type:
IResolvable | Egress | IResolvable[]
(optional)
List of playback endpoints that are available for this asset.
resourceId?
Type:
string
(optional)
Unique identifier for this asset, as it's configured in the key provider service.
tags?
Type:
Cfn[]
(optional)
The tags to assign to the asset.

.NET
Java
Python
TypeScript