@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:51.979Z") @Stability(value=Experimental) public interface AssetImageCodeProps extends software.amazon.jsii.JsiiSerializable, DockerImageAssetOptions
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.assets.*;
import software.amazon.awscdk.services.ecr.assets.*;
import software.amazon.awscdk.services.lambda.*;
NetworkMode networkMode;
Platform platform;
AssetImageCodeProps assetImageCodeProps = AssetImageCodeProps.builder()
.buildArgs(Map.of(
"buildArgsKey", "buildArgs"))
.cmd(List.of("cmd"))
.entrypoint(List.of("entrypoint"))
.exclude(List.of("exclude"))
.extraHash("extraHash")
.file("file")
.follow(FollowMode.NEVER)
.followSymlinks(SymlinkFollowMode.NEVER)
.ignoreMode(IgnoreMode.GLOB)
.invalidation(DockerImageAssetInvalidationOptions.builder()
.buildArgs(false)
.extraHash(false)
.file(false)
.networkMode(false)
.platform(false)
.repositoryName(false)
.target(false)
.build())
.networkMode(networkMode)
.platform(platform)
.repositoryName("repositoryName")
.target("target")
.workingDirectory("workingDirectory")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AssetImageCodeProps.Builder
A builder for
AssetImageCodeProps |
static class |
AssetImageCodeProps.Jsii$Proxy
An implementation for
AssetImageCodeProps |
| Modifier and Type | Method and Description |
|---|---|
static AssetImageCodeProps.Builder |
builder() |
default List<String> |
getCmd()
(experimental) Specify or override the CMD on the specified Docker image or Dockerfile.
|
default List<String> |
getEntrypoint()
(experimental) Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.
|
default String |
getWorkingDirectory()
(experimental) Specify or override the WORKDIR on the specified Docker image or Dockerfile.
|
getBuildArgs, getExclude, getExtraHash, getFile, getIgnoreMode, getInvalidation, getNetworkMode, getPlatform, getRepositoryName, getTargetgetFollowgetFollowSymlinks@Stability(value=Experimental) @Nullable default List<String> getCmd()
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ].
Default: - use the CMD specified in the docker image or Dockerfile.
@Stability(value=Experimental) @Nullable default List<String> getEntrypoint()
An ENTRYPOINT allows you to configure a container that will run as an executable.
This needs to be in the 'exec form', viz., [ 'executable', 'param1', 'param2' ].
Default: - use the ENTRYPOINT in the docker image or Dockerfile.
@Stability(value=Experimental) @Nullable default String getWorkingDirectory()
A WORKDIR allows you to configure the working directory the container will use.
Default: - use the WORKDIR in the docker image or Dockerfile.
@Stability(value=Experimental) static AssetImageCodeProps.Builder builder()
builder in interface CopyOptionsbuilder in interface DockerImageAssetOptionsbuilder in interface FileCopyOptionsbuilder in interface FileFingerprintOptionsbuilder in interface FingerprintOptionsAssetImageCodeProps.Builder of AssetImageCodePropsCopyright © 2022. All rights reserved.