Class BootstraplessSynthesizer

java.lang.Object
software.amazon.jsii.JsiiObject
All Implemented Interfaces:
IBoundStackSynthesizer, IReusableStackSynthesizer, IStackSynthesizer, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:01.458Z") @Stability(Stable) public class BootstraplessSynthesizer extends DefaultStackSynthesizer
Synthesizer that reuses bootstrap roles from a different region.

A special synthesizer that behaves similarly to DefaultStackSynthesizer, but doesn't require bootstrapping the environment it operates in. Instead, it will re-use the Roles that were created for a different region (which is possible because IAM is a global service).

However, it will not assume asset buckets or repositories have been created, and therefore does not support assets.

The name is poorly chosen -- it does still require bootstrapping, it just does not support assets.

Used by the CodePipeline construct for the support stacks needed for cross-region replication S3 buckets. App builders do not need to use this synthesizer directly.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 BootstraplessSynthesizer bootstraplessSynthesizer = BootstraplessSynthesizer.Builder.create()
         .cloudFormationExecutionRoleArn("cloudFormationExecutionRoleArn")
         .deployRoleArn("deployRoleArn")
         .build();
 
  • Constructor Details

    • BootstraplessSynthesizer

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

      protected BootstraplessSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • BootstraplessSynthesizer

      @Stability(Stable) public BootstraplessSynthesizer(@Nullable BootstraplessSynthesizerProps props)
      Parameters:
      props -
    • BootstraplessSynthesizer

      @Stability(Stable) public BootstraplessSynthesizer()
  • Method Details

    • addDockerImageAsset

      @Stability(Stable) @NotNull public DockerImageAssetLocation addDockerImageAsset(@NotNull DockerImageAssetSource _asset)
      Register a Docker Image Asset.

      Returns the parameters that can be used to refer to the asset inside the template.

      The synthesizer must rely on some out-of-band mechanism to make sure the given files are actually placed in the returned location before the deployment happens. This can be by writing the instructions to the asset manifest (for use by the cdk-assets tool), by relying on the CLI to upload files (legacy behavior), or some other operator controlled mechanism.

      Specified by:
      addDockerImageAsset in interface IStackSynthesizer
      Overrides:
      addDockerImageAsset in class DefaultStackSynthesizer
      Parameters:
      _asset - This parameter is required.
    • addFileAsset

      @Stability(Stable) @NotNull public FileAssetLocation addFileAsset(@NotNull FileAssetSource _asset)
      Register a File Asset.

      Returns the parameters that can be used to refer to the asset inside the template.

      The synthesizer must rely on some out-of-band mechanism to make sure the given files are actually placed in the returned location before the deployment happens. This can be by writing the instructions to the asset manifest (for use by the cdk-assets tool), by relying on the CLI to upload files (legacy behavior), or some other operator controlled mechanism.

      Specified by:
      addFileAsset in interface IStackSynthesizer
      Overrides:
      addFileAsset in class DefaultStackSynthesizer
      Parameters:
      _asset - This parameter is required.
    • synthesize

      @Stability(Stable) public void synthesize(@NotNull ISynthesisSession session)
      Synthesize the associated stack to the session.

      Specified by:
      synthesize in interface IStackSynthesizer
      Overrides:
      synthesize in class DefaultStackSynthesizer
      Parameters:
      session - This parameter is required.