Class CfnAsset
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.mediapackage.CfnAsset
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-03-04T22:57:27.559Z")
@Stability(Stable)
public class CfnAsset
extends CfnResource
implements IInspectable, ITaggable
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forCfnAsset
.static interface
The playback endpoint for a packaging configuration on an asset.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
CfnAsset
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnAsset
(software.amazon.jsii.JsiiObjectRef objRef) CfnAsset
(software.constructs.Construct scope, String id, CfnAssetProps props) -
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()
Tag Manager which manages the tags for this resource.The tags to assign to the asset.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setEgressEndpoints
(List<Object> value) List of playback endpoints that are available for this asset.void
setEgressEndpoints
(IResolvable value) List of playback endpoints that are available for this asset.void
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.void
setTagsRaw
(List<CfnTag> value) The tags to assign to the asset.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnAssetProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
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. -
setSourceRoleArn
The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored. -
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. -
getTagsRaw
The tags to assign to the asset. -
setTagsRaw
The tags to assign to the asset.
-