class StackSynthesizer
Language | Type name |
---|---|
![]() | Amazon.CDK.StackSynthesizer |
![]() | software.amazon.awscdk.core.StackSynthesizer |
![]() | aws_cdk.core.StackSynthesizer |
![]() | @aws-cdk/core » StackSynthesizer |
Implements
IStack
Implemented by
Bootstrapless
, Cli
, Default
, Legacy
, Nested
Base class for implementing an IStackSynthesizer.
This class needs to exist to provide public surface area for external implementations of stack synthesizers. The protected methods give access to functions that are otherwise @_internal to the framework and could not be accessed by external implementors.
Initializer
new StackSynthesizer()
Methods
Name | Description |
---|---|
add | Register a Docker Image Asset. |
add | Register a File Asset. |
bind(stack) | Bind to the stack this environment is going to be used on. |
synthesize(session) | Synthesize the associated stack to the session. |
protected emit | Write the stack artifact to the session. |
protected synthesize | Have the stack write out its template. |
addDockerImageAsset(asset)
public addDockerImageAsset(asset: DockerImageAssetSource): DockerImageAssetLocation
Parameters
- asset
Docker
Image Asset Source
Returns
Register a Docker Image Asset.
Returns the parameters that can be used to refer to the asset inside the template.
addFileAsset(asset)
public addFileAsset(asset: FileAssetSource): FileAssetLocation
Parameters
- asset
File
Asset Source
Returns
Register a File Asset.
Returns the parameters that can be used to refer to the asset inside the template.
bind(stack)
public bind(stack: Stack): void
Parameters
- stack
Stack
Bind to the stack this environment is going to be used on.
Must be called before any of the other methods are called.
synthesize(session)
public synthesize(session: ISynthesisSession): void
Parameters
- session
ISynthesis
Session
Synthesize the associated stack to the session.
protected emitStackArtifact(stack, session, options?)
protected emitStackArtifact(stack: Stack, session: ISynthesisSession, options?: SynthesizeStackArtifactOptions): void
Parameters
- stack
Stack
- session
ISynthesis
Session - options
Synthesize
Stack Artifact Options
Write the stack artifact to the session.
Use default settings to add a CloudFormationStackArtifact artifact to the given synthesis session.
protected synthesizeStackTemplate(stack, session)
protected synthesizeStackTemplate(stack: Stack, session: ISynthesisSession): void
Parameters
- stack
Stack
- session
ISynthesis
Session
Have the stack write out its template.