@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.853Z") @Stability(value=Stable) 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")
.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()
Build args to pass to the `docker build` command.
|
default String |
getFile()
Path to the Dockerfile (relative to the directory).
|
String |
getId()
Logical identifier for the asset.
|
default String |
getImageTag()
The docker image tag to use for tagging pushed images.
|
default String |
getNetworkMode()
Networking mode for the RUN commands during build.
|
String |
getPackaging()
Type of asset.
|
String |
getPath()
Path on disk to the asset.
|
default String |
getPlatform()
Platform to build for.
|
default String |
getRepositoryName()
ECR repository name, if omitted a default name based on the asset's ID is used instead.
|
String |
getSourceHash()
The hash of the asset source.
|
default String |
getTarget()
Docker target to build to.
|
@Stability(value=Stable) @NotNull String getId()
@Stability(value=Stable) @NotNull String getPackaging()
@Stability(value=Stable) @NotNull String getPath()
@Stability(value=Stable) @NotNull String getSourceHash()
@Stability(value=Stable) @Nullable default Map<String,String> getBuildArgs()
Default: no build args are passed
@Stability(value=Stable) @Nullable default String getFile()
Default: - no file is passed
@Stability(value=Stable) @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=Stable) @Nullable default String getNetworkMode()
Default: - no networking mode specified
@Stability(value=Stable) @Nullable default String getPlatform()
Requires Docker Buildx.
Default: - current machine platform
@Stability(value=Stable) @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=Stable) @Nullable default String getTarget()
Default: no build target
@Stability(value=Stable) static ContainerImageAssetMetadataEntry.Builder builder()
Copyright © 2022. All rights reserved.