Class NestedStackSynthesizer
Synthesizer for a nested stack.
public class NestedStackSynthesizer : StackSynthesizer, IStackSynthesizer
- Inheritance
-
NestedStackSynthesizer
- Implements
- Inherited Members
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
StackSynthesizer stackSynthesizer;
var nestedStackSynthesizer = new NestedStackSynthesizer(stackSynthesizer);
Remarks
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.
ExampleMetadata: fixture=_generated
Constructors
NestedStackSynthesizer(IStackSynthesizer)
public NestedStackSynthesizer(IStackSynthesizer parentDeployment)
Parameters
parentDeployment
IStackSynthesizer
Methods
AddDockerImageAsset(IDockerImageAssetSource)
Register a Docker Image Asset.
public override IDockerImageAssetLocation AddDockerImageAsset(IDockerImageAssetSource asset)
Parameters
asset
IDockerImageAssetSource
Returns
Remarks
Returns the parameters that can be used to refer to the asset inside the template.
AddFileAsset(IFileAssetSource)
Register a File Asset.
public override IFileAssetLocation AddFileAsset(IFileAssetSource asset)
Parameters
asset
IFileAssetSource
Returns
Remarks
Returns the parameters that can be used to refer to the asset inside the template.
Bind(Stack)
Bind to the stack this environment is going to be used on.
public override void Bind(Stack stack)
Parameters
stack
Stack
Remarks
Must be called before any of the other methods are called.
Synthesize(ISynthesisSession)
Synthesize the associated stack to the session.
public override void Synthesize(ISynthesisSession session)
Parameters
session
ISynthesisSession