Class CfnAsset
Creates an asset to ingest VOD content.
Inherited Members
Namespace: Amazon.CDK.AWS.MediaPackage
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAsset : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnAsset
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
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 .
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-mediapackage-asset.html
CloudformationResource: AWS::MediaPackage::Asset
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(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 |
CfnAsset(Construct, String, ICfnAssetProps) |
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 | Tag Manager which manages the tags for this resource. |
TagsRaw | The tags to assign to the asset. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
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
CfnAsset(Construct, String, ICfnAssetProps)
public CfnAsset(Construct scope, string id, ICfnAssetProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnAssetProps
Resource properties.
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
Id
Unique identifier that you assign to the asset.
public virtual string Id { get; set; }
Property Value
System.String
PackagingGroupId
The ID of the packaging group associated with this asset.
public virtual string PackagingGroupId { get; set; }
Property Value
System.String
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
SourceArn
The ARN for the source content in Amazon S3.
public virtual string SourceArn { get; set; }
Property Value
System.String
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
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
The tags to assign to the asset.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
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>