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
Modifier 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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
-
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.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.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, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 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:
inspect
in 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:
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
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.
-