Interface AssetImageProps
- All Superinterfaces:
DockerImageAssetOptions,FileCopyOptions,FileFingerprintOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AssetImageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:09.202Z")
@Stability(Stable)
public interface AssetImageProps
extends software.amazon.jsii.JsiiSerializable, DockerImageAssetOptions
The properties for building an AssetImage.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ecr.assets.*;
import software.amazon.awscdk.services.ecs.*;
NetworkMode networkMode;
Platform platform;
AssetImageProps assetImageProps = AssetImageProps.builder()
.assetName("assetName")
.buildArgs(Map.of(
"buildArgsKey", "buildArgs"))
.buildSecrets(Map.of(
"buildSecretsKey", "buildSecrets"))
.buildSsh("buildSsh")
.cacheDisabled(false)
.cacheFrom(List.of(DockerCacheOption.builder()
.type("type")
// the properties below are optional
.params(Map.of(
"paramsKey", "params"))
.build()))
.cacheTo(DockerCacheOption.builder()
.type("type")
// the properties below are optional
.params(Map.of(
"paramsKey", "params"))
.build())
.exclude(List.of("exclude"))
.extraHash("extraHash")
.file("file")
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.invalidation(DockerImageAssetInvalidationOptions.builder()
.buildArgs(false)
.buildSecrets(false)
.buildSsh(false)
.extraHash(false)
.file(false)
.networkMode(false)
.outputs(false)
.platform(false)
.repositoryName(false)
.target(false)
.build())
.networkMode(networkMode)
.outputs(List.of("outputs"))
.platform(platform)
.target("target")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAssetImagePropsstatic final classAn implementation forAssetImageProps -
Method Summary
Static MethodsMethods inherited from interface software.amazon.awscdk.services.ecr.assets.DockerImageAssetOptions
getAssetName, getBuildArgs, getBuildSecrets, getBuildSsh, getCacheDisabled, getCacheFrom, getCacheTo, getFile, getInvalidation, getNetworkMode, getOutputs, getPlatform, getTargetMethods inherited from interface software.amazon.awscdk.FileCopyOptions
getExclude, getFollowSymlinks, getIgnoreModeMethods inherited from interface software.amazon.awscdk.FileFingerprintOptions
getExtraHashMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
builder
- Returns:
- a
AssetImageProps.BuilderofAssetImageProps
-