Class BootstrapRole.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.BootstrapRole.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<BootstrapRole>
- Enclosing interface:
- BootstrapRole
@Stability(Stable) public static final class BootstrapRole.Builder extends Object implements software.amazon.jsii.Builder<BootstrapRole>
A builder forBootstrapRole
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BootstrapRole.Builderarn(String arn)Sets the value ofBootstrapRole.getArn()BootstrapRole.BuilderassumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)Sets the value ofBootstrapRole.getAssumeRoleAdditionalOptions()BootstrapRole.BuilderassumeRoleExternalId(String assumeRoleExternalId)Sets the value ofBootstrapRole.getAssumeRoleExternalId()BootstrapRole.BuilderbootstrapStackVersionSsmParameter(String bootstrapStackVersionSsmParameter)Sets the value ofBootstrapRole.getBootstrapStackVersionSsmParameter()BootstrapRolebuild()Builds the configured instance.BootstrapRole.BuilderrequiresBootstrapStackVersion(Number requiresBootstrapStackVersion)Sets the value ofBootstrapRole.getRequiresBootstrapStackVersion()
-
-
-
Method Detail
-
arn
@Stability(Stable) public BootstrapRole.Builder arn(String arn)
Sets the value ofBootstrapRole.getArn()- Parameters:
arn- The ARN of the IAM role created as part of bootrapping e.g. lookupRoleArn. This parameter is required.- Returns:
this
-
assumeRoleAdditionalOptions
@Stability(Stable) public BootstrapRole.Builder assumeRoleAdditionalOptions(Map<String,? extends Object> assumeRoleAdditionalOptions)
Sets the value ofBootstrapRole.getAssumeRoleAdditionalOptions()- Parameters:
assumeRoleAdditionalOptions- Additional options to pass to STS when assuming the role.RoleArnshould not be used. Use the dedicatedarnproperty instead.ExternalIdshould not be used. Use the dedicatedassumeRoleExternalIdinstead.
- Returns:
this
-
assumeRoleExternalId
@Stability(Stable) public BootstrapRole.Builder assumeRoleExternalId(String assumeRoleExternalId)
Sets the value ofBootstrapRole.getAssumeRoleExternalId()- Parameters:
assumeRoleExternalId- External ID to use when assuming the bootstrap role.- Returns:
this
-
bootstrapStackVersionSsmParameter
@Stability(Stable) public BootstrapRole.Builder bootstrapStackVersionSsmParameter(String bootstrapStackVersionSsmParameter)
Sets the value ofBootstrapRole.getBootstrapStackVersionSsmParameter()- Parameters:
bootstrapStackVersionSsmParameter- Name of SSM parameter with bootstrap stack version.- Returns:
this
-
requiresBootstrapStackVersion
@Stability(Stable) public BootstrapRole.Builder requiresBootstrapStackVersion(Number requiresBootstrapStackVersion)
Sets the value ofBootstrapRole.getRequiresBootstrapStackVersion()- Parameters:
requiresBootstrapStackVersion- Version of bootstrap stack required to use this role.- Returns:
this
-
build
@Stability(Stable) public BootstrapRole build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BootstrapRole>- Returns:
- a new instance of
BootstrapRole - Throws:
NullPointerException- if any required attribute was not provided
-
-