@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.429Z") @Stability(value=Stable) public interface CodeConfig extends software.amazon.jsii.JsiiSerializable
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.*;
CodeConfig codeConfig = CodeConfig.builder()
.image(CodeImageConfig.builder()
.imageUri("imageUri")
// the properties below are optional
.cmd(List.of("cmd"))
.entrypoint(List.of("entrypoint"))
.workingDirectory("workingDirectory")
.build())
.inlineCode("inlineCode")
.s3Location(Location.builder()
.bucketName("bucketName")
.objectKey("objectKey")
// the properties below are optional
.objectVersion("objectVersion")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CodeConfig.Builder
A builder for
CodeConfig |
static class |
CodeConfig.Jsii$Proxy
An implementation for
CodeConfig |
| Modifier and Type | Method and Description |
|---|---|
static CodeConfig.Builder |
builder() |
default CodeImageConfig |
getImage()
Docker image configuration (mutually exclusive with `s3Location` and `inlineCode`).
|
default String |
getInlineCode()
Inline code (mutually exclusive with `s3Location` and `image`).
|
default Location |
getS3Location()
The location of the code in S3 (mutually exclusive with `inlineCode` and `image`).
|
@Stability(value=Stable) @Nullable default CodeImageConfig getImage()
Default: - code is not an ECR container image
@Stability(value=Stable) @Nullable default String getInlineCode()
Default: - code is not inline code
@Stability(value=Stable) @Nullable default Location getS3Location()
Default: - code is not an s3 location
@Stability(value=Stable) static CodeConfig.Builder builder()
CodeConfig.Builder of CodeConfigCopyright © 2022. All rights reserved.