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") .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forBootstraplessSynthesizer
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.IBoundStackSynthesizer
IBoundStackSynthesizer.Jsii$Default, IBoundStackSynthesizer.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IReusableStackSynthesizer
IReusableStackSynthesizer.Jsii$Default, IReusableStackSynthesizer.Jsii$Proxy
Nested 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
ModifierConstructorDescriptionprotected
BootstraplessSynthesizer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
BootstraplessSynthesizer
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionRegister a Docker Image Asset.addFileAsset
(FileAssetSource _asset) Register a File Asset.void
synthesize
(ISynthesisSession session) Synthesize the associated stack to the session.Methods inherited from class software.amazon.awscdk.DefaultStackSynthesizer
bind, getBootstrapQualifier, getCloudFormationExecutionRoleArn, getDeployRoleArn, getLookupRole, getStack, reusableBind, synthesizeStackTemplate
Methods inherited from class software.amazon.awscdk.StackSynthesizer
addBootstrapVersionRule, cloudFormationLocationFromDockerImageAsset, cloudFormationLocationFromFileAsset, emitArtifact, emitArtifact, emitStackArtifact, emitStackArtifact, getBoundStack, synthesizeTemplate, synthesizeTemplate, synthesizeTemplate, synthesizeTemplate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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-assets
tool), by relying on the CLI to upload files (legacy behavior), or some other operator controlled mechanism.- Specified by:
addDockerImageAsset
in interfaceIStackSynthesizer
- Overrides:
addDockerImageAsset
in 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-assets
tool), by relying on the CLI to upload files (legacy behavior), or some other operator controlled mechanism.- Specified by:
addFileAsset
in interfaceIStackSynthesizer
- Overrides:
addFileAsset
in classDefaultStackSynthesizer
- Parameters:
_asset
- This parameter is required.
-
synthesize
Synthesize the associated stack to the session.- Specified by:
synthesize
in interfaceIStackSynthesizer
- Overrides:
synthesize
in classDefaultStackSynthesizer
- Parameters:
session
- This parameter is required.
-