Class BootstraplessSynthesizer
- All Implemented Interfaces:
IBoundStackSynthesizer,IReusableStackSynthesizer,IStackSynthesizer,software.amazon.jsii.JsiiSerializable
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")
.qualifier("qualifier")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forBootstraplessSynthesizer.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.IBoundStackSynthesizer
IBoundStackSynthesizer.Jsii$Default, IBoundStackSynthesizer.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IReusableStackSynthesizer
IReusableStackSynthesizer.Jsii$Default, IReusableStackSynthesizer.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IStackSynthesizer
IStackSynthesizer.Jsii$Default -
Field Summary
Fields inherited from class software.amazon.awscdk.DefaultStackSynthesizer
DEFAULT_BOOTSTRAP_STACK_VERSION_SSM_PARAMETER, DEFAULT_CLOUDFORMATION_ROLE_ARN, DEFAULT_DEPLOY_ROLE_ARN, DEFAULT_DOCKER_ASSET_PREFIX, DEFAULT_FILE_ASSET_KEY_ARN_EXPORT_NAME, DEFAULT_FILE_ASSET_PREFIX, DEFAULT_FILE_ASSET_PUBLISHING_ROLE_ARN, DEFAULT_FILE_ASSETS_BUCKET_NAME, DEFAULT_IMAGE_ASSET_PUBLISHING_ROLE_ARN, DEFAULT_IMAGE_ASSETS_REPOSITORY_NAME, DEFAULT_LOOKUP_ROLE_ARN, DEFAULT_QUALIFIER -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBootstraplessSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedBootstraplessSynthesizer(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionRegister a Docker Image Asset.addFileAsset(FileAssetSource _asset) Register a File Asset.voidsynthesize(ISynthesisSession session) Synthesize the associated stack to the session.Methods inherited from class software.amazon.awscdk.DefaultStackSynthesizer
bind, getBootstrapQualifier, getCloudFormationExecutionRoleArn, getDeployRoleArn, getLookupRole, getStack, reusableBind, synthesizeStackTemplateMethods inherited from class software.amazon.awscdk.StackSynthesizer
addBootstrapVersionRule, cloudFormationLocationFromDockerImageAsset, cloudFormationLocationFromFileAsset, emitArtifact, emitArtifact, emitStackArtifact, emitStackArtifact, getBoundStack, synthesizeTemplate, synthesizeTemplate, synthesizeTemplate, synthesizeTemplateMethods 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
-
BootstraplessSynthesizer
protected BootstraplessSynthesizer(software.amazon.jsii.JsiiObjectRef objRef) -
BootstraplessSynthesizer
protected BootstraplessSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BootstraplessSynthesizer
- 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-assetstool), by relying on the CLI to upload files (legacy behavior), or some other operator controlled mechanism.- Specified by:
addDockerImageAssetin interfaceIStackSynthesizer- Overrides:
addDockerImageAssetin classDefaultStackSynthesizer- Parameters:
_asset- This parameter is required.
-
addFileAsset
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-assetstool), by relying on the CLI to upload files (legacy behavior), or some other operator controlled mechanism.- Specified by:
addFileAssetin interfaceIStackSynthesizer- Overrides:
addFileAssetin classDefaultStackSynthesizer- Parameters:
_asset- This parameter is required.
-
synthesize
Synthesize the associated stack to the session.- Specified by:
synthesizein interfaceIStackSynthesizer- Overrides:
synthesizein classDefaultStackSynthesizer- Parameters:
session- This parameter is required.
-