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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnAsset.Builder
egressEndpoints
(List<? extends Object> egressEndpoints) List of playback endpoints that are available for this asset.egressEndpoints
(IResolvable egressEndpoints) List of playback endpoints that are available for this asset.Unique identifier that you assign to the asset.packagingGroupId
(String packagingGroupId) The ID of the packaging group associated with this asset.resourceId
(String resourceId) Unique identifier for this asset, as it's configured in the key provider service.The ARN for the source content in Amazon S3.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.The tags to assign to the asset.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnAsset.Builder
.
-
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
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
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
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
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
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
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
The tags to assign to the asset.- Parameters:
tags
- The tags to assign to the asset. This parameter is required.- Returns:
this
-
build
-