Class CfnAsset.Builder

java.lang.Object
software.amazon.awscdk.services.mediapackage.CfnAsset.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAsset>
Enclosing class:
CfnAsset

@Stability(Stable) public static final class CfnAsset.Builder extends Object implements software.amazon.jsii.Builder<CfnAsset>
A fluent builder for CfnAsset.
  • Method Details

    • create

      @Stability(Stable) public static CfnAsset.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnAsset.Builder.
    • id

      @Stability(Stable) public CfnAsset.Builder id(String id)
      Unique identifier that you assign to the asset.

      Parameters:
      id - Unique identifier that you assign to the asset. This parameter is required.
      Returns:
      this
    • packagingGroupId

      @Stability(Stable) public CfnAsset.Builder packagingGroupId(String packagingGroupId)
      The ID of the packaging group associated with this asset.

      Parameters:
      packagingGroupId - The ID of the packaging group associated with this asset. This parameter is required.
      Returns:
      this
    • sourceArn

      @Stability(Stable) public CfnAsset.Builder sourceArn(String sourceArn)
      The ARN for the source content in Amazon S3.

      Parameters:
      sourceArn - The ARN for the source content in Amazon S3. This parameter is required.
      Returns:
      this
    • sourceRoleArn

      @Stability(Stable) public CfnAsset.Builder sourceRoleArn(String sourceRoleArn)
      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}

      Parameters:
      sourceRoleArn - The ARN for the IAM role that provides AWS Elemental MediaPackage access to the Amazon S3 bucket where the source content is stored. This parameter is required.
      Returns:
      this
    • egressEndpoints

      @Stability(Stable) public CfnAsset.Builder egressEndpoints(IResolvable egressEndpoints)
      List of playback endpoints that are available for this asset.

      Parameters:
      egressEndpoints - List of playback endpoints that are available for this asset. This parameter is required.
      Returns:
      this
    • egressEndpoints

      @Stability(Stable) public CfnAsset.Builder egressEndpoints(List<? extends Object> egressEndpoints)
      List of playback endpoints that are available for this asset.

      Parameters:
      egressEndpoints - List of playback endpoints that are available for this asset. This parameter is required.
      Returns:
      this
    • resourceId

      @Stability(Stable) public CfnAsset.Builder resourceId(String resourceId)
      Unique identifier for this asset, as it's configured in the key provider service.

      Parameters:
      resourceId - Unique identifier for this asset, as it's configured in the key provider service. This parameter is required.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnAsset.Builder tags(List<? extends CfnTag> tags)
      The tags to assign to the asset.

      Parameters:
      tags - The tags to assign to the asset. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAsset build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAsset>
      Returns:
      a newly built instance of CfnAsset.