Interface CodeImageConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CodeImageConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-17T21:37:33.378Z")
@Stability(Stable)
public interface CodeImageConfig
extends software.amazon.jsii.JsiiSerializable
Result of the bind when an ECR image is used.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.lambda.*; CodeImageConfig codeImageConfig = CodeImageConfig.builder() .imageUri("imageUri") // the properties below are optional .cmd(List.of("cmd")) .entrypoint(List.of("entrypoint")) .workingDirectory("workingDirectory") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCodeImageConfig
static final class
An implementation forCodeImageConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodeImageConfig.Builder
builder()
getCmd()
Specify or override the CMD on the specified Docker image or Dockerfile.Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.URI to the Docker image.default String
Specify or override the WORKDIR on the specified Docker image or Dockerfile.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImageUri
URI to the Docker image. -
getCmd
Specify or override the CMD on the specified Docker image or Dockerfile.This needs to be in the 'exec form', viz.,
[ 'executable', 'param1', 'param2' ]
.Default: - use the CMD specified in the docker image or Dockerfile.
- See Also:
-
getEntrypoint
Specify or override the ENTRYPOINT on the specified Docker image or Dockerfile.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.
- See Also:
-
getWorkingDirectory
Specify or override the WORKDIR on the specified Docker image or Dockerfile.A WORKDIR allows you to configure the working directory the container will use.
Default: - use the WORKDIR in the docker image or Dockerfile.
- See Also:
-
builder
- Returns:
- a
CodeImageConfig.Builder
ofCodeImageConfig
-