@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:58.198Z") @Stability(value=Experimental) public interface ContainerImageAssetMetadataEntry extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cloudassembly.schema.*;
ContainerImageAssetMetadataEntry containerImageAssetMetadataEntry = ContainerImageAssetMetadataEntry.builder()
.id("id")
.packaging("packaging")
.path("path")
.sourceHash("sourceHash")
// the properties below are optional
.buildArgs(Map.of(
"buildArgsKey", "buildArgs"))
.file("file")
.imageNameParameter("imageNameParameter")
.imageTag("imageTag")
.networkMode("networkMode")
.platform("platform")
.repositoryName("repositoryName")
.target("target")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ContainerImageAssetMetadataEntry.Builder
A builder for
ContainerImageAssetMetadataEntry |
static class |
ContainerImageAssetMetadataEntry.Jsii$Proxy
An implementation for
ContainerImageAssetMetadataEntry |
| Modifier and Type | Method and Description |
|---|---|
static ContainerImageAssetMetadataEntry.Builder |
builder() |
default Map<String,String> |
getBuildArgs()
(experimental) Build args to pass to the `docker build` command.
|
default String |
getFile()
(experimental) Path to the Dockerfile (relative to the directory).
|
String |
getId()
(experimental) Logical identifier for the asset.
|
default String |
getImageNameParameter()
Deprecated.
specify `repositoryName` and `imageTag` instead, and then you
know where the image will go.
|
default String |
getImageTag()
(experimental) The docker image tag to use for tagging pushed images.
|
default String |
getNetworkMode()
(experimental) Networking mode for the RUN commands during build.
|
String |
getPackaging()
(experimental) Type of asset.
|
String |
getPath()
(experimental) Path on disk to the asset.
|
default String |
getPlatform()
(experimental) Platform to build for.
|
default String |
getRepositoryName()
(experimental) ECR repository name, if omitted a default name based on the asset's ID is used instead.
|
String |
getSourceHash()
(experimental) The hash of the asset source.
|
default String |
getTarget()
(experimental) Docker target to build to.
|
@Stability(value=Experimental) @NotNull String getId()
@Stability(value=Experimental) @NotNull String getPackaging()
@Stability(value=Experimental) @NotNull String getPath()
@Stability(value=Experimental) @NotNull String getSourceHash()
@Stability(value=Experimental) @Nullable default Map<String,String> getBuildArgs()
Default: no build args are passed
@Stability(value=Experimental) @Nullable default String getFile()
Default: - no file is passed
@Stability(value=Deprecated) @Deprecated @Nullable default String getImageNameParameter()
Default: undefined If not specified, `repositoryName` and `imageTag` are required because otherwise how will the stack know where to find the asset, ha?
@Stability(value=Experimental) @Nullable default String getImageTag()
This field is
required if imageParameterName is ommited (otherwise, the app won't be
able to find the image).
Default: - this parameter is REQUIRED after 1.21.0
@Stability(value=Experimental) @Nullable default String getNetworkMode()
Default: - no networking mode specified
@Stability(value=Experimental) @Nullable default String getPlatform()
Requires Docker Buildx.
Default: - current machine platform
@Stability(value=Experimental) @Nullable default String getRepositoryName()
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
@Stability(value=Experimental) @Nullable default String getTarget()
Default: no build target
@Stability(value=Experimental) static ContainerImageAssetMetadataEntry.Builder builder()
Copyright © 2022. All rights reserved.