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 for 
BootstrapRole- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionSets the value ofBootstrapRole.getArn()assumeRoleExternalId(String assumeRoleExternalId) Sets the value ofBootstrapRole.getAssumeRoleExternalId()bootstrapStackVersionSsmParameter(String bootstrapStackVersionSsmParameter) Sets the value ofBootstrapRole.getBootstrapStackVersionSsmParameter()build()Builds the configured instance.requiresBootstrapStackVersion(Number requiresBootstrapStackVersion) Sets the value ofBootstrapRole.getRequiresBootstrapStackVersion() 
- 
Constructor Details
- 
Builder
public Builder() 
 - 
 - 
Method Details
- 
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
 - 
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
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
 
 -