Class BootstrapRole
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.126.0 (build 206d44b)",
date="2026-02-03T13:58:34.203Z")
@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
ConstructorsModifierConstructorDescriptionprotectedBootstrapRole(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBootstrapRole(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic BootstrapRole(experimental) Use the currently assumed role/credentials.static BootstrapRolefromRoleArn(String arn) (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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
(experimental) Use the currently assumed role/credentials. -
fromRoleArn
(experimental) Specify an existing IAM Role to assume.- Parameters:
arn- This parameter is required.
-
isCliCredentials
(experimental) Whether or not this is object was created using BootstrapRole.cliCredentials().
-