Class CanonicalTemplateResolver
java.lang.Object
com.cloudforgeci.api.deploy.CanonicalTemplateResolver
Resolves the canonical synthesized CloudFormation template on disk.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Pathmaterialize(software.amazon.awscdk.cxapi.CloudFormationStackArtifact stack, Path expectedPath) Ensure the synthesized stack template exists atexpectedPath.static Pathresolve(Path outputDirectory, String stackName, software.amazon.awscdk.cxapi.CloudAssembly assembly) Prefer an on-disk template underoutputDirectory; otherwise materialize fromassembly.static PathresolveExisting(Path outputDirectory, String stackName) ReturnoutputDirectory/{stackName}.template.jsonwhen it already exists.
-
Method Details
-
resolveExisting
ReturnoutputDirectory/{stackName}.template.jsonwhen 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 underoutputDirectory; otherwise materialize fromassembly.- Throws:
IOException
-
materialize
public static Path materialize(software.amazon.awscdk.cxapi.CloudFormationStackArtifact stack, Path expectedPath) throws IOException Ensure the synthesized stack template exists atexpectedPath.- Throws:
IOException
-