Interface CodeConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CodeConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.689Z")
@Stability(Stable)
public interface CodeConfig
extends software.amazon.jsii.JsiiSerializable
Result of binding
Code
into a Function
.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCodeConfig
static final class
An implementation forCodeConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic CodeConfig.Builder
builder()
default CodeImageConfig
getImage()
Docker image configuration (mutually exclusive withs3Location
andinlineCode
).default String
Inline code (mutually exclusive withs3Location
andimage
).default Location
The location of the code in S3 (mutually exclusive withinlineCode
andimage
).Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImage
Docker image configuration (mutually exclusive withs3Location
andinlineCode
).Default: - code is not an ECR container image
-
getInlineCode
Inline code (mutually exclusive withs3Location
andimage
).Default: - code is not inline code
-
getS3Location
The location of the code in S3 (mutually exclusive withinlineCode
andimage
).Default: - code is not an s3 location
-
builder
- Returns:
- a
CodeConfig.Builder
ofCodeConfig
-