Interface ContainerImageAssetMetadataEntry
-
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ContainerImageAssetMetadataEntry.Jsii$Proxy
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)", date="2025-11-06T20:25:05.772Z") @Stability(Stable) public interface ContainerImageAssetMetadataEntry extends software.amazon.jsii.JsiiSerializable
Metadata Entry spec for container images.Example:
Map<String, String> entry = Map.of( "packaging", "container-image", "repositoryName", "repository-name", "imageTag", "tag");
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classContainerImageAssetMetadataEntry.BuilderA builder forContainerImageAssetMetadataEntrystatic classContainerImageAssetMetadataEntry.Jsii$ProxyAn implementation forContainerImageAssetMetadataEntry
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description static ContainerImageAssetMetadataEntry.Builderbuilder()default Map<String,String>getBuildArgs()Build args to pass to thedocker buildcommand.default Map<String,String>getBuildSecrets()Build secrets to pass to thedocker buildcommand.default StringgetBuildSsh()SSH agent socket or keys to pass to thedocker buildcommand.default BooleangetCacheDisabled()Disable the cache and pass--no-cacheto thedocker buildcommand.default List<ContainerImageAssetCacheOption>getCacheFrom()Cache from options to pass to thedocker buildcommand.default ContainerImageAssetCacheOptiongetCacheTo()Cache to options to pass to thedocker buildcommand.default StringgetFile()Path to the Dockerfile (relative to the directory).StringgetId()Logical identifier for the asset.default StringgetImageNameParameter()Deprecated.specifyrepositoryNameandimageTaginstead, and then you know where the image will go.default StringgetImageTag()The docker image tag to use for tagging pushed images.default StringgetNetworkMode()Networking mode for the RUN commands during build.default List<String>getOutputs()Outputs to pass to thedocker buildcommand.StringgetPackaging()Type of asset.StringgetPath()Path on disk to the asset.default StringgetPlatform()Platform to build for.default StringgetRepositoryName()ECR repository name, if omitted a default name based on the asset's ID is used instead.StringgetSourceHash()The hash of the asset source.default StringgetTarget()Docker target to build to.
-
-
-
Method Detail
-
getId
@Stability(Stable) @NotNull String getId()
Logical identifier for the asset.
-
getPackaging
@Stability(Stable) @NotNull String getPackaging()
Type of asset.
-
getPath
@Stability(Stable) @NotNull String getPath()
Path on disk to the asset.
-
getSourceHash
@Stability(Stable) @NotNull String getSourceHash()
The hash of the asset source.
-
getBuildArgs
@Stability(Stable) @Nullable default Map<String,String> getBuildArgs()
Build args to pass to thedocker buildcommand.Default: no build args are passed
-
getBuildSecrets
@Stability(Stable) @Nullable default Map<String,String> getBuildSecrets()
Build secrets to pass to thedocker buildcommand.Default: no build secrets are passed
-
getBuildSsh
@Stability(Stable) @Nullable default String getBuildSsh()
SSH agent socket or keys to pass to thedocker buildcommand.Default: no ssh arg is passed
-
getCacheDisabled
@Stability(Stable) @Nullable default Boolean getCacheDisabled()
Disable the cache and pass--no-cacheto thedocker buildcommand.Default: - cache is used
-
getCacheFrom
@Stability(Stable) @Nullable default List<ContainerImageAssetCacheOption> getCacheFrom()
Cache from options to pass to thedocker buildcommand.Default: - no cache from options are passed to the build command
-
getCacheTo
@Stability(Stable) @Nullable default ContainerImageAssetCacheOption getCacheTo()
Cache to options to pass to thedocker buildcommand.Default: - no cache to options are passed to the build command
-
getFile
@Stability(Stable) @Nullable default String getFile()
Path to the Dockerfile (relative to the directory).Default: - no file is passed
-
getImageNameParameter
@Stability(Deprecated) @Deprecated @Nullable default String getImageNameParameter()
Deprecated.specifyrepositoryNameandimageTaginstead, and then you know where the image will go.(deprecated) ECR Repository name and repo digest (separated by "@sha256:") where this image is stored.Default: undefined If not specified, `repositoryName` and `imageTag` are required because otherwise how will the stack know where to find the asset, ha?
-
getImageTag
@Stability(Stable) @Nullable default String getImageTag()
The docker image tag to use for tagging pushed images.This field is required if
imageParameterNameis ommited (otherwise, the app won't be able to find the image).Default: - this parameter is REQUIRED after 1.21.0
-
getNetworkMode
@Stability(Stable) @Nullable default String getNetworkMode()
Networking mode for the RUN commands during build.Default: - no networking mode specified
-
getOutputs
@Stability(Stable) @Nullable default List<String> getOutputs()
Outputs to pass to thedocker buildcommand.Default: - no outputs are passed to the build command (default outputs are used)
-
getPlatform
@Stability(Stable) @Nullable default String getPlatform()
Platform to build for.Requires Docker Buildx.
Default: - current machine platform
-
getRepositoryName
@Stability(Stable) @Nullable default String getRepositoryName()
ECR repository name, if omitted a default name based on the asset's ID is used instead.Specify this property if you need to statically address the image, e.g. from a Kubernetes Pod. Note, this is only the repository name, without the registry and the tag parts.
Default: - this parameter is REQUIRED after 1.21.0
-
getTarget
@Stability(Stable) @Nullable default String getTarget()
Docker target to build to.Default: no build target
-
builder
@Stability(Stable) static ContainerImageAssetMetadataEntry.Builder builder()
-
-