@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.915Z") @Stability(value=Stable) public class CfnAsset extends CfnResource implements IInspectable
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.mediapackage.*;
CfnAsset cfnAsset = CfnAsset.Builder.create(this, "MyCfnAsset")
.id("id")
.packagingGroupId("packagingGroupId")
.sourceArn("sourceArn")
.sourceRoleArn("sourceRoleArn")
// the properties below are optional
.resourceId("resourceId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAsset.Builder
A fluent builder for
CfnAsset. |
static interface |
CfnAsset.EgressEndpointProperty
The playback endpoint for a packaging configuration on an asset.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAsset(software.constructs.Construct scope,
String id,
CfnAssetProps props)
Create a new `AWS::MediaPackage::Asset`.
|
protected |
CfnAsset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAsset(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) for the asset.
|
String |
getAttrCreatedAt()
The time that the asset was initially submitted for ingest.
|
IResolvable |
getAttrEgressEndpoints() |
protected Map<String,Object> |
getCfnProperties() |
String |
getId()
Unique identifier that you assign to the asset.
|
String |
getPackagingGroupId()
The ID of the packaging group associated with this asset.
|
String |
getResourceId()
Unique identifier for this asset, as it's configured in the key provider service.
|
String |
getSourceArn()
The ARN for the source content in Amazon S3.
|
String |
getSourceRoleArn()
The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.
|
TagManager |
getTags()
The tags to assign to the asset.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setId(String value)
Unique identifier that you assign to the asset.
|
void |
setPackagingGroupId(String value)
The ID of the packaging group associated with this asset.
|
void |
setResourceId(String value)
Unique identifier for this asset, as it's configured in the key provider service.
|
void |
setSourceArn(String value)
The ARN for the source content in Amazon S3.
|
void |
setSourceRoleArn(String value)
The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAsset(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAsset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAsset(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAssetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
You can get this from the response to any request to the asset.
@Stability(value=Stable) @NotNull public String getAttrCreatedAt()
@Stability(value=Stable) @NotNull public IResolvable getAttrEgressEndpoints()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getId()
@Stability(value=Stable)
public void setId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getPackagingGroupId()
@Stability(value=Stable)
public void setPackagingGroupId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getSourceArn()
@Stability(value=Stable)
public void setSourceArn(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getSourceRoleArn()
Valid format: arn:aws:iam::{accountID}:role/{name}
@Stability(value=Stable)
public void setSourceRoleArn(@NotNull
String value)
Valid format: arn:aws:iam::{accountID}:role/{name}
@Stability(value=Stable) @Nullable public String getResourceId()
@Stability(value=Stable)
public void setResourceId(@Nullable
String value)
Copyright © 2022. All rights reserved.