Class DeploymentIdentities

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

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-30T02:11:15.796Z") @Stability(Experimental) public class DeploymentIdentities extends software.amazon.jsii.JsiiObject
(experimental) Deployment identities are the class of roles to be assumed by the CDK when deploying the App.

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)
                 // The following line is optional. By default it is assumed you have bootstrapped in the same
                 // region(s) as the stack(s) you are deploying.
                 .deploymentIdentities(DeploymentIdentities.defaultBootstrapRoles(DefaultBootstrapRolesOptions.builder().bootstrapRegion("us-east-1").build()))
                 .build()))
         .build();
 
  • Constructor Details

    • DeploymentIdentities

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

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

    • cliCredentials

      @Stability(Experimental) @NotNull public static DeploymentIdentities cliCredentials()
      (experimental) Use CLI credentials for all deployment identities.
    • defaultBootstrapRoles

      @Stability(Experimental) @NotNull public static DeploymentIdentities defaultBootstrapRoles(@Nullable DefaultBootstrapRolesOptions options)
      (experimental) Use the Roles that have been created by the default bootstrap stack.

      Parameters:
      options -
    • defaultBootstrapRoles

      @Stability(Experimental) @NotNull public static DeploymentIdentities defaultBootstrapRoles()
      (experimental) Use the Roles that have been created by the default bootstrap stack.
    • specifyRoles

      @Stability(Experimental) @NotNull public static DeploymentIdentities specifyRoles(@NotNull BootstrapRoles roles)
      (experimental) Specify your own roles for all deployment identities.

      These roles must already exist.

      Parameters:
      roles - This parameter is required.
    • getCloudFormationExecutionRole

      @Stability(Experimental) @Nullable public BootstrapRole getCloudFormationExecutionRole()
      (experimental) CloudFormation Execution Role.
    • getDeploymentRole

      @Stability(Experimental) @Nullable public BootstrapRole getDeploymentRole()
      (experimental) Deployment Action Role.
    • getLookupRole

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

      Default: - use bootstrapped role