Class StackSynthesizer

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.core.StackSynthesizer
All Implemented Interfaces:
IStackSynthesizer, software.amazon.jsii.JsiiSerializable
Direct Known Subclasses:
CliCredentialsStackSynthesizer, DefaultStackSynthesizer, LegacyStackSynthesizer, NestedStackSynthesizer

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:55.139Z") @Stability(Stable) public abstract class StackSynthesizer extends software.amazon.jsii.JsiiObject implements IStackSynthesizer
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.

  • Constructor Details

    • StackSynthesizer

      protected StackSynthesizer(software.amazon.jsii.JsiiObjectRef objRef)
    • StackSynthesizer

      protected StackSynthesizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • StackSynthesizer

      @Stability(Stable) protected StackSynthesizer()
  • Method Details

    • addDockerImageAsset

      @Stability(Stable) @NotNull public abstract 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.

      Specified by:
      addDockerImageAsset in interface IStackSynthesizer
      Parameters:
      asset - This parameter is required.
    • addFileAsset

      @Stability(Stable) @NotNull public abstract FileAssetLocation addFileAsset(@NotNull FileAssetSource asset)
      Register a File Asset.

      Returns the parameters that can be used to refer to the asset inside the template.

      Specified by:
      addFileAsset in interface IStackSynthesizer
      Parameters:
      asset - This parameter is required.
    • bind

      @Stability(Stable) public abstract void bind(@NotNull 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.

      Specified by:
      bind in interface IStackSynthesizer
      Parameters:
      stack - This parameter is required.
    • emitStackArtifact

      @Stability(Stable) protected void emitStackArtifact(@NotNull Stack stack, @NotNull ISynthesisSession session, @Nullable SynthesizeStackArtifactOptions options)
      Write the stack artifact to the session.

      Use default settings to add a CloudFormationStackArtifact artifact to the given synthesis session.

      Parameters:
      stack - This parameter is required.
      session - This parameter is required.
      options -
    • emitStackArtifact

      @Stability(Stable) protected void emitStackArtifact(@NotNull Stack stack, @NotNull ISynthesisSession session)
      Write the stack artifact to the session.

      Use default settings to add a CloudFormationStackArtifact artifact to the given synthesis session.

      Parameters:
      stack - This parameter is required.
      session - This parameter is required.
    • synthesize

      @Stability(Stable) public abstract void synthesize(@NotNull ISynthesisSession session)
      Synthesize the associated stack to the session.

      Specified by:
      synthesize in interface IStackSynthesizer
      Parameters:
      session - This parameter is required.
    • synthesizeStackTemplate

      @Stability(Stable) protected void synthesizeStackTemplate(@NotNull Stack stack, @NotNull ISynthesisSession session)
      Have the stack write out its template.

      Parameters:
      stack - This parameter is required.
      session - This parameter is required.