java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:09.902Z") @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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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 class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) for the asset.

      You can get this from the response to any request to the asset.

    • getAttrCreatedAt

      @Stability(Stable) @NotNull public String getAttrCreatedAt()
      The date and time that the asset was initially submitted for ingest.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getId

      @Stability(Stable) @NotNull public String getId()
      Unique identifier that you assign to the asset.
    • setId

      @Stability(Stable) public void setId(@NotNull String value)
      Unique identifier that you assign to the asset.
    • getPackagingGroupId

      @Stability(Stable) @NotNull public String getPackagingGroupId()
      The ID of the packaging group associated with this asset.
    • setPackagingGroupId

      @Stability(Stable) public void setPackagingGroupId(@NotNull String value)
      The ID of the packaging group associated with this asset.
    • getSourceArn

      @Stability(Stable) @NotNull public String getSourceArn()
      The ARN for the source content in Amazon S3.
    • setSourceArn

      @Stability(Stable) public void setSourceArn(@NotNull String value)
      The ARN for the source content in Amazon S3.
    • getSourceRoleArn

      @Stability(Stable) @NotNull public 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.
    • setSourceRoleArn

      @Stability(Stable) public void setSourceRoleArn(@NotNull 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.
    • getEgressEndpoints

      @Stability(Stable) @Nullable public Object getEgressEndpoints()
      List of playback endpoints that are available for this asset.
    • setEgressEndpoints

      @Stability(Stable) public void setEgressEndpoints(@Nullable IResolvable value)
      List of playback endpoints that are available for this asset.
    • setEgressEndpoints

      @Stability(Stable) public void setEgressEndpoints(@Nullable List<Object> value)
      List of playback endpoints that are available for this asset.
    • getResourceId

      @Stability(Stable) @Nullable public String getResourceId()
      Unique identifier for this asset, as it's configured in the key provider service.
    • setResourceId

      @Stability(Stable) public void setResourceId(@Nullable String value)
      Unique identifier for this asset, as it's configured in the key provider service.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      The tags to assign to the asset.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      The tags to assign to the asset.