Class NestedStackSynthesizer
- All Implemented Interfaces:
IStackSynthesizer
,software.amazon.jsii.JsiiSerializable
Forwards all calls to the parent stack's synthesizer.
This synthesizer is automatically used for NestedStack
constructs.
App builder do not need to use this class 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.*; StackSynthesizer stackSynthesizer; NestedStackSynthesizer nestedStackSynthesizer = new NestedStackSynthesizer(stackSynthesizer);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.IStackSynthesizer
IStackSynthesizer.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionNestedStackSynthesizer
(IStackSynthesizer parentDeployment) protected
NestedStackSynthesizer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
NestedStackSynthesizer
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionRegister a Docker Image Asset.addFileAsset
(FileAssetSource asset) Register a File Asset.The qualifier used to bootstrap this stack.The role used to lookup for this stack.void
synthesize
(ISynthesisSession session) Synthesize the associated stack to the session.Methods inherited from class software.amazon.awscdk.StackSynthesizer
addBootstrapVersionRule, bind, cloudFormationLocationFromDockerImageAsset, cloudFormationLocationFromFileAsset, emitArtifact, emitArtifact, emitStackArtifact, emitStackArtifact, getBoundStack, synthesizeStackTemplate, 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
-
NestedStackSynthesizer
protected NestedStackSynthesizer(software.amazon.jsii.JsiiObjectRef objRef) -
NestedStackSynthesizer
protected NestedStackSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
NestedStackSynthesizer
- Parameters:
parentDeployment
- This parameter is required.
-
-
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
- Specified by:
addDockerImageAsset
in classStackSynthesizer
- 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
- Specified by:
addFileAsset
in classStackSynthesizer
- Parameters:
asset
- This parameter is required.
-
synthesize
Synthesize the associated stack to the session.- Specified by:
synthesize
in interfaceIStackSynthesizer
- Specified by:
synthesize
in classStackSynthesizer
- Parameters:
session
- This parameter is required.
-
getBootstrapQualifier
The qualifier used to bootstrap this stack.- Specified by:
getBootstrapQualifier
in interfaceIStackSynthesizer
- Overrides:
getBootstrapQualifier
in classStackSynthesizer
-
getLookupRole
The role used to lookup for this stack.- Specified by:
getLookupRole
in interfaceIStackSynthesizer
- Overrides:
getLookupRole
in classStackSynthesizer
-