java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.app.staging.synthesizer.alpha.BootstrapRole
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:28.943Z") @Stability(Experimental) public class BootstrapRole extends software.amazon.jsii.JsiiObject
(experimental) Bootstrapped role specifier.

These roles must exist already. This class does not create new IAM Roles.

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();
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    BootstrapRole(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    BootstrapRole(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (experimental) Use the currently assumed role/credentials.
    (experimental) Specify an existing IAM Role to assume.
    (experimental) Whether or not this is object was created using BootstrapRole.cliCredentials().

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • BootstrapRole

      protected BootstrapRole(software.amazon.jsii.JsiiObjectRef objRef)
    • BootstrapRole

      protected BootstrapRole(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • cliCredentials

      @Stability(Experimental) @NotNull public static BootstrapRole cliCredentials()
      (experimental) Use the currently assumed role/credentials.
    • fromRoleArn

      @Stability(Experimental) @NotNull public static BootstrapRole fromRoleArn(@NotNull String arn)
      (experimental) Specify an existing IAM Role to assume.

      Parameters:
      arn - This parameter is required.
    • isCliCredentials

      @Stability(Experimental) @NotNull public Boolean isCliCredentials()
      (experimental) Whether or not this is object was created using BootstrapRole.cliCredentials().