CfnAssetProps Struct
Properties for defining a CfnAsset.
Example
ts
// 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
egressEndpointsoptionalIResolvable | IResolvable | CfnAsset.EgressEndpointProperty[]egress_endpointsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EgressEndpointProperty]]]egressEndpointsoptionalIResolvableEgressEndpointsoptionalIResolvableEgressEndpointsoptionalinterface{}#List of playback endpoints that are available for this asset.
Unique identifier that you assign to the asset.
packagingGroupIdstringpackaging_group_idstrpackagingGroupIdStringPackagingGroupIdstringPackagingGroupId*stringrequired#The ID of the packaging group associated with this asset.
resourceIdoptionalstringresource_idoptionalstrresourceIdoptionalStringResourceIdoptionalstringResourceIdoptional*string#Unique identifier for this asset, as it's configured in the key provider service.
The ARN for the source content in Amazon S3.
sourceRoleArnstringsource_role_arnstrsourceRoleArnStringSourceRoleArnstringSourceRoleArn*stringrequired#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}