Class CfnAsset
A CloudFormation AWS::MediaPackage::Asset
.
Inherited Members
Namespace: Amazon.CDK.AWS.MediaPackage
Assembly: Amazon.CDK.AWS.MediaPackage.dll
Syntax (csharp)
public class CfnAsset : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnAsset
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Creates an asset to ingest VOD content.
After it's created, the asset starts ingesting content and generates playback URLs for the packaging configurations associated with it. When ingest is complete, downstream devices use the appropriate URL to request VOD content from AWS Elemental MediaPackage .
CloudformationResource: AWS::MediaPackage::Asset
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.MediaPackage;
var cfnAsset = new CfnAsset(this, "MyCfnAsset", new CfnAssetProps {
Id = "id",
PackagingGroupId = "packagingGroupId",
SourceArn = "sourceArn",
SourceRoleArn = "sourceRoleArn",
// the properties below are optional
EgressEndpoints = new [] { new EgressEndpointProperty {
PackagingConfigurationId = "packagingConfigurationId",
Url = "url"
} },
ResourceId = "resourceId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
});
Synopsis
Constructors
CfnAsset(Construct, String, ICfnAssetProps) | Create a new |
CfnAsset(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnAsset(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrArn | The Amazon Resource Name (ARN) for the asset. |
AttrCreatedAt | The date and time that the asset was initially submitted for ingest. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
EgressEndpoints | List of playback endpoints that are available for this asset. |
Id | Unique identifier that you assign to the asset. |
PackagingGroupId | The ID of the packaging group associated with this asset. |
ResourceId | Unique identifier for this asset, as it's configured in the key provider service. |
SourceArn | The ARN for the source content in Amazon S3. |
SourceRoleArn | The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored. |
Tags | The tags to assign to the asset. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnAsset(Construct, String, ICfnAssetProps)
Create a new AWS::MediaPackage::Asset
.
public CfnAsset(Construct scope, string id, ICfnAssetProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnAssetProps
- resource properties.
CfnAsset(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnAsset(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnAsset(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnAsset(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrArn
The Amazon Resource Name (ARN) for the asset.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
You can get this from the response to any request to the asset.
CloudformationAttribute: Arn
AttrCreatedAt
The date and time that the asset was initially submitted for ingest.
public virtual string AttrCreatedAt { get; }
Property Value
System.String
Remarks
CloudformationAttribute: CreatedAt
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
EgressEndpoints
List of playback endpoints that are available for this asset.
public virtual object EgressEndpoints { get; set; }
Property Value
System.Object
Remarks
Id
Unique identifier that you assign to the asset.
public virtual string Id { get; set; }
Property Value
System.String
Remarks
PackagingGroupId
The ID of the packaging group associated with this asset.
public virtual string PackagingGroupId { get; set; }
Property Value
System.String
Remarks
ResourceId
Unique identifier for this asset, as it's configured in the key provider service.
public virtual string ResourceId { get; set; }
Property Value
System.String
Remarks
SourceArn
The ARN for the source content in Amazon S3.
public virtual string SourceArn { get; set; }
Property Value
System.String
Remarks
SourceRoleArn
The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.
public virtual string SourceRoleArn { get; set; }
Property Value
System.String
Remarks
Valid format: arn:aws:iam::{accountID}:role/{name}
Tags
The tags to assign to the asset.
public virtual TagManager Tags { get; }
Property Value
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>