Class AssetManifestArtifact

All Implemented Interfaces:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:29:54.714Z") @Stability(Stable) public class AssetManifestArtifact extends CloudArtifact
Asset manifest is a description of a set of assets which need to be built and published.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 CloudAssembly cloudAssembly;
 AssetManifestArtifact assetManifestArtifact = AssetManifestArtifact.Builder.create(cloudAssembly, "name")
         // the properties below are optional
                 "metadataKey", List.of(MetadataEntry.builder()
                         // the properties below are optional
                 // the properties below are optional
                         // the properties below are optional
                         "parametersKey", "parameters"))
                         "tagsKey", "tags"))
  • Constructor Details

    • AssetManifestArtifact

      protected AssetManifestArtifact( objRef)
    • AssetManifestArtifact

      protected AssetManifestArtifact( initializationMode)
    • AssetManifestArtifact

      @Stability(Stable) public AssetManifestArtifact(@NotNull CloudAssembly assembly, @NotNull String name, @NotNull ArtifactManifest artifact)
      assembly - This parameter is required.
      name - This parameter is required.
      artifact - This parameter is required.
  • Method Details

    • isAssetManifestArtifact

      @Stability(Stable) @NotNull public static Boolean isAssetManifestArtifact(@NotNull Object art)
      Checks if art is an instance of this class.

      Use this method instead of instanceof to properly detect AssetManifestArtifact instances, even when the construct library is symlinked.

      Explanation: in JavaScript, multiple copies of the cx-api library on disk are seen as independent, completely different libraries. As a consequence, the class AssetManifestArtifact in each copy of the cx-api library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the cx-api library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

      art - This parameter is required.
    • getFile

      @Stability(Stable) @NotNull public String getFile()
      The file name of the asset manifest.
    • getRequiresBootstrapStackVersion

      @Stability(Stable) @NotNull public Number getRequiresBootstrapStackVersion()
      Version of bootstrap stack required to deploy this stack.
    • getBootstrapStackVersionSsmParameter

      @Stability(Stable) @Nullable public String getBootstrapStackVersionSsmParameter()
      Name of SSM parameter with bootstrap stack version.

      Default: - Discover SSM parameter by reading stack