aws-cdk-lib.aws_mediapackage.CfnAssetProps

interface CfnAssetProps

LanguageType name
.NETAmazon.CDK.AWS.MediaPackage.CfnAssetProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsmediapackage#CfnAssetProps
Javasoftware.amazon.awscdk.services.mediapackage.CfnAssetProps
Pythonaws_cdk.aws_mediapackage.CfnAssetProps
TypeScript aws-cdk-lib » 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 { aws_mediapackage as mediapackage } from 'aws-cdk-lib';
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

NameTypeDescription
idstringUnique identifier that you assign to the asset.
packagingGroupIdstringThe ID of the packaging group associated with this asset.
sourceArnstringThe ARN for the source content in Amazon S3.
sourceRoleArnstringThe ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.
egressEndpoints?IResolvable | IResolvable | EgressEndpointProperty[]List of playback endpoints that are available for this asset.
resourceId?stringUnique identifier for this asset, as it's configured in the key provider service.
tags?CfnTag[]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 | IResolvable | EgressEndpointProperty[] (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: CfnTag[] (optional)

The tags to assign to the asset.