@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:35.920Z") @Stability(value=Stable) public class LegacyStackSynthesizer extends StackSynthesizer
This synthesizer will generate CloudFormation parameters for every referenced asset, and use the CLI's current credentials to deploy the stack.
DefaultStackSynthesizer.CliCredentialsStackSynthesizer.Be aware that your CLI credentials must be valid for the duration of the entire deployment. If you are using session credentials, make sure the session lifetime is long enough.
This is the only StackSynthesizer that supports customizing asset behavior
by overriding Stack.addFileAsset() and Stack.addDockerImageAsset().
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; LegacyStackSynthesizer legacyStackSynthesizer = new LegacyStackSynthesizer();
software.amazon.jsii.JsiiObject.InitializationModeIStackSynthesizer.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
LegacyStackSynthesizer() |
protected |
LegacyStackSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
LegacyStackSynthesizer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
DockerImageAssetLocation |
addDockerImageAsset(DockerImageAssetSource asset)
Register a Docker Image Asset.
|
FileAssetLocation |
addFileAsset(FileAssetSource asset)
Register a File Asset.
|
void |
bind(Stack stack)
Bind to the stack this environment is going to be used on.
|
void |
synthesize(ISynthesisSession session)
Synthesize the associated stack to the session.
|
emitStackArtifact, emitStackArtifact, synthesizeStackTemplatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected LegacyStackSynthesizer(software.amazon.jsii.JsiiObjectRef objRef)
protected LegacyStackSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public LegacyStackSynthesizer()
@Stability(value=Stable) @NotNull public DockerImageAssetLocation addDockerImageAsset(@NotNull DockerImageAssetSource asset)
Returns the parameters that can be used to refer to the asset inside the template.
addDockerImageAsset in interface IStackSynthesizeraddDockerImageAsset in class StackSynthesizerasset - This parameter is required.@Stability(value=Stable) @NotNull public FileAssetLocation addFileAsset(@NotNull FileAssetSource asset)
Returns the parameters that can be used to refer to the asset inside the template.
addFileAsset in interface IStackSynthesizeraddFileAsset in class StackSynthesizerasset - This parameter is required.@Stability(value=Stable)
public void bind(@NotNull
Stack stack)
Must be called before any of the other methods are called.
bind in interface IStackSynthesizerbind in class StackSynthesizerstack - This parameter is required.@Stability(value=Stable)
public void synthesize(@NotNull
ISynthesisSession session)
synthesize in interface IStackSynthesizersynthesize in class StackSynthesizersession - This parameter is required.Copyright © 2022. All rights reserved.