Interface BootstrapRoles

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
BootstrapRoles.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-10-05T03:43:53.068Z") @Stability(Experimental) public interface BootstrapRoles extends software.amazon.jsii.JsiiSerializable
(experimental) Roles that are bootstrapped to your account.

Example:

 import software.amazon.awscdk.services.s3.BucketEncryption;
 App app = App.Builder.create()
         .defaultStackSynthesizer(AppStagingSynthesizer.defaultResources(DefaultResourcesOptions.builder()
                 .appId("my-app-id")
                 .stagingBucketEncryption(BucketEncryption.S3_MANAGED)
                 .deploymentIdentities(DeploymentIdentities.specifyRoles(BootstrapRoles.builder()
                         .cloudFormationExecutionRole(BootstrapRole.fromRoleArn("arn:aws:iam::123456789012:role/Execute"))
                         .deploymentRole(BootstrapRole.fromRoleArn("arn:aws:iam::123456789012:role/Deploy"))
                         .lookupRole(BootstrapRole.fromRoleArn("arn:aws:iam::123456789012:role/Lookup"))
                         .build()))
                 .build()))
         .build();
 
  • Method Details

    • getCloudFormationExecutionRole

      @Stability(Experimental) @Nullable default BootstrapRole getCloudFormationExecutionRole()
      (experimental) CloudFormation Execution Role.

      Default: - use bootstrapped role

    • getDeploymentRole

      @Stability(Experimental) @Nullable default BootstrapRole getDeploymentRole()
      (experimental) Deployment Action Role.

      Default: - use boostrapped role

    • getLookupRole

      @Stability(Experimental) @Nullable default BootstrapRole getLookupRole()
      (experimental) Lookup Role.

      Default: - use bootstrapped role

    • builder

      @Stability(Experimental) static BootstrapRoles.Builder builder()
      Returns:
      a BootstrapRoles.Builder of BootstrapRoles