Class AssetManifestBuilder
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
This class does not need to be used by app builders; it is only necessary for building Stack Synthesizers.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.*; AssetManifestBuilder assetManifestBuilder = new AssetManifestBuilder();
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
ModifierConstructorDescriptionprotected
AssetManifestBuilder
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
AssetManifestBuilder
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionaddDockerImageAsset
(Stack stack, String sourceHash, DockerImageSource source, DockerImageDestination dest) Add a docker asset source and destination to the manifest.addFileAsset
(Stack stack, String sourceHash, FileSource source, FileDestination dest) Add a file asset source and destination to the manifest.defaultAddDockerImageAsset
(Stack stack, DockerImageAssetSource asset, AssetManifestDockerImageDestination target) Add a docker image asset to the manifest with default settings.defaultAddFileAsset
(Stack stack, FileAssetSource asset, AssetManifestFileDestination target) Add a file asset to the manifest with default settings.emitManifest
(Stack stack, ISynthesisSession session) Write the manifest to disk, and add it to the synthesis session.emitManifest
(Stack stack, ISynthesisSession session, AssetManifestOptions options) Write the manifest to disk, and add it to the synthesis session.emitManifest
(Stack stack, ISynthesisSession session, AssetManifestOptions options, List<String> dependencies) Write the manifest to disk, and add it to the synthesis session.Whether there are any assets registered in the manifest.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
AssetManifestBuilder
protected AssetManifestBuilder(software.amazon.jsii.JsiiObjectRef objRef) -
AssetManifestBuilder
protected AssetManifestBuilder(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
AssetManifestBuilder
@Stability(Stable) public AssetManifestBuilder()
-
-
Method Details
-
addDockerImageAsset
@Stability(Stable) @NotNull public DockerImageDestination addDockerImageAsset(@NotNull Stack stack, @NotNull String sourceHash, @NotNull DockerImageSource source, @NotNull DockerImageDestination dest) Add a docker asset source and destination to the manifest.sourceHash should be unique for every source.
- Parameters:
stack
- This parameter is required.sourceHash
- This parameter is required.source
- This parameter is required.dest
- This parameter is required.
-
addFileAsset
@Stability(Stable) @NotNull public FileDestination addFileAsset(@NotNull Stack stack, @NotNull String sourceHash, @NotNull FileSource source, @NotNull FileDestination dest) Add a file asset source and destination to the manifest.sourceHash should be unique for every source.
- Parameters:
stack
- This parameter is required.sourceHash
- This parameter is required.source
- This parameter is required.dest
- This parameter is required.
-
defaultAddDockerImageAsset
@Stability(Stable) @NotNull public DockerImageDestination defaultAddDockerImageAsset(@NotNull Stack stack, @NotNull DockerImageAssetSource asset, @NotNull AssetManifestDockerImageDestination target) Add a docker image asset to the manifest with default settings.Derive the region from the stack, use the asset hash as the key, and set the prefix.
- Parameters:
stack
- This parameter is required.asset
- This parameter is required.target
- This parameter is required.
-
defaultAddFileAsset
@Stability(Stable) @NotNull public FileDestination defaultAddFileAsset(@NotNull Stack stack, @NotNull FileAssetSource asset, @NotNull AssetManifestFileDestination target) Add a file asset to the manifest with default settings.Derive the region from the stack, use the asset hash as the key, copy the file extension over, and set the prefix.
- Parameters:
stack
- This parameter is required.asset
- This parameter is required.target
- This parameter is required.
-
emitManifest
@Stability(Stable) @NotNull public String emitManifest(@NotNull Stack stack, @NotNull ISynthesisSession session, @Nullable AssetManifestOptions options, @Nullable List<String> dependencies) Write the manifest to disk, and add it to the synthesis session.Return the artifact id, which should be added to the
additionalDependencies
field of the stack artifact.- Parameters:
stack
- This parameter is required.session
- This parameter is required.options
-dependencies
-
-
emitManifest
@Stability(Stable) @NotNull public String emitManifest(@NotNull Stack stack, @NotNull ISynthesisSession session, @Nullable AssetManifestOptions options) Write the manifest to disk, and add it to the synthesis session.Return the artifact id, which should be added to the
additionalDependencies
field of the stack artifact.- Parameters:
stack
- This parameter is required.session
- This parameter is required.options
-
-
emitManifest
@Stability(Stable) @NotNull public String emitManifest(@NotNull Stack stack, @NotNull ISynthesisSession session) Write the manifest to disk, and add it to the synthesis session.Return the artifact id, which should be added to the
additionalDependencies
field of the stack artifact.- Parameters:
stack
- This parameter is required.session
- This parameter is required.
-
getHasAssets
Whether there are any assets registered in the manifest.
-