DefaultBootstrapRolesOptions

class aws_cdk.app_staging_synthesizer_alpha.DefaultBootstrapRolesOptions(*, bootstrap_region=None)

Bases: object

(experimental) Options for DeploymentIdentities.defaultBootstrappedRoles.

Parameters:

bootstrap_region (Optional[str]) – (experimental) The region where the default bootstrap roles have been created. By default, the region in which the stack is deployed is used. Default: - the stack’s current region

Stability:

experimental

ExampleMetadata:

infused

Example:

from aws_cdk.aws_s3 import BucketEncryption


app = App(
    default_stack_synthesizer=AppStagingSynthesizer.default_resources(
        app_id="my-app-id",
        staging_bucket_encryption=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.
        deployment_identities=DeploymentIdentities.default_bootstrap_roles(bootstrap_region="us-east-1")
    )
)

Attributes

bootstrap_region

(experimental) The region where the default bootstrap roles have been created.

By default, the region in which the stack is deployed is used.

Default:
  • the stack’s current region

Stability:

experimental