Class AwsDestination.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.AwsDestination.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AwsDestination>
- Enclosing interface:
- AwsDestination
@Stability(Stable) public static final class AwsDestination.Builder extends Object implements software.amazon.jsii.Builder<AwsDestination>
A builder forAwsDestination
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwsDestination.BuilderassumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)Sets the value ofAwsDestination.getAssumeRoleAdditionalOptions()AwsDestination.BuilderassumeRoleArn(String assumeRoleArn)Sets the value ofAwsDestination.getAssumeRoleArn()AwsDestination.BuilderassumeRoleExternalId(String assumeRoleExternalId)Sets the value ofAwsDestination.getAssumeRoleExternalId()AwsDestinationbuild()Builds the configured instance.AwsDestination.Builderregion(String region)Sets the value ofAwsDestination.getRegion()
-
-
-
Method Detail
-
assumeRoleAdditionalOptions
@Stability(Stable) public AwsDestination.Builder assumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)
Sets the value ofAwsDestination.getAssumeRoleAdditionalOptions()- Parameters:
assumeRoleAdditionalOptions- Additional options to pass to STS when assuming the role.RoleArnshould not be used. Use the dedicatedassumeRoleArnproperty instead.ExternalIdshould not be used. Use the dedicatedassumeRoleExternalIdinstead.
- Returns:
this
-
assumeRoleArn
@Stability(Stable) public AwsDestination.Builder assumeRoleArn(String assumeRoleArn)
Sets the value ofAwsDestination.getAssumeRoleArn()- Parameters:
assumeRoleArn- The role that needs to be assumed while publishing this asset.- Returns:
this
-
assumeRoleExternalId
@Stability(Stable) public AwsDestination.Builder assumeRoleExternalId(String assumeRoleExternalId)
Sets the value ofAwsDestination.getAssumeRoleExternalId()- Parameters:
assumeRoleExternalId- The ExternalId that needs to be supplied while assuming this role.- Returns:
this
-
region
@Stability(Stable) public AwsDestination.Builder region(String region)
Sets the value ofAwsDestination.getRegion()- Parameters:
region- The region where this asset will need to be published.- Returns:
this
-
build
@Stability(Stable) public AwsDestination build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AwsDestination>- Returns:
- a new instance of
AwsDestination - Throws:
NullPointerException- if any required attribute was not provided
-
-