Class CfnAsset
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.mediapackage.CfnAsset
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:00.273Z")
@Stability(Stable)
public class CfnAsset
extends CfnResource
implements IInspectable
A CloudFormation
AWS::MediaPackage::Asset.
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
.egressEndpoints(List.of(EgressEndpointProperty.builder()
.packagingConfigurationId("packagingConfigurationId")
.url("url")
.build()))
.resourceId("resourceId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAsset.static interfaceThe playback endpoint for a packaging configuration on an asset.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) for the asset.The date and time that the asset was initially submitted for ingest.List of playback endpoints that are available for this asset.getId()Unique identifier that you assign to the asset.The ID of the packaging group associated with this asset.Unique identifier for this asset, as it's configured in the key provider service.The ARN for the source content in Amazon S3.The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored.getTags()The tags to assign to the asset.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetEgressEndpoints(List<Object> value) List of playback endpoints that are available for this asset.voidsetEgressEndpoints(IResolvable value) List of playback endpoints that are available for this asset.voidUnique identifier that you assign to the asset.voidsetPackagingGroupId(String value) The ID of the packaging group associated with this asset.voidsetResourceId(String value) Unique identifier for this asset, as it's configured in the key provider service.voidsetSourceArn(String value) The ARN for the source content in Amazon S3.voidsetSourceRoleArn(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.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAsset
protected CfnAsset(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAsset
protected CfnAsset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAsset
@Stability(Stable) public CfnAsset(@NotNull Construct scope, @NotNull String id, @NotNull CfnAssetProps props) Create a newAWS::MediaPackage::Asset.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) for the asset.You can get this from the response to any request to the asset.
-
getAttrCreatedAt
The date and time that the asset was initially submitted for ingest. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
The tags to assign to the asset. -
getId
Unique identifier that you assign to the asset. -
setId
Unique identifier that you assign to the asset. -
getPackagingGroupId
The ID of the packaging group associated with this asset. -
setPackagingGroupId
The ID of the packaging group associated with this asset. -
getSourceArn
The ARN for the source content in Amazon S3. -
setSourceArn
The ARN for the source content in Amazon S3. -
getSourceRoleArn
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}
-
setSourceRoleArn
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}
-
getEgressEndpoints
List of playback endpoints that are available for this asset. -
setEgressEndpoints
List of playback endpoints that are available for this asset. -
setEgressEndpoints
List of playback endpoints that are available for this asset. -
getResourceId
Unique identifier for this asset, as it's configured in the key provider service. -
setResourceId
Unique identifier for this asset, as it's configured in the key provider service.
-