Class CanonicalTemplateResolver

java.lang.Object
com.cloudforgeci.api.deploy.CanonicalTemplateResolver

public final class CanonicalTemplateResolver extends Object
Resolves the canonical synthesized CloudFormation template on disk.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Path
    materialize(software.amazon.awscdk.cxapi.CloudFormationStackArtifact stack, Path expectedPath)
    Ensure the synthesized stack template exists at expectedPath.
    static Path
    resolve(Path outputDirectory, String stackName, software.amazon.awscdk.cxapi.CloudAssembly assembly)
    Prefer an on-disk template under outputDirectory; otherwise materialize from assembly.
    static Path
    resolveExisting(Path outputDirectory, String stackName)
    Return outputDirectory/{stackName}.template.json when it already exists.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • resolveExisting

      public static Path resolveExisting(Path outputDirectory, String stackName) throws IOException
      Return outputDirectory/{stackName}.template.json when it already exists.
      Throws:
      IOException
    • resolve

      public static Path resolve(Path outputDirectory, String stackName, software.amazon.awscdk.cxapi.CloudAssembly assembly) throws IOException
      Prefer an on-disk template under outputDirectory; otherwise materialize from assembly.
      Throws:
      IOException
    • materialize

      public static Path materialize(software.amazon.awscdk.cxapi.CloudFormationStackArtifact stack, Path expectedPath) throws IOException
      Ensure the synthesized stack template exists at expectedPath.
      Throws:
      IOException