Interface CodeConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CodeConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:08.476Z")
@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())
.sourceKMSKeyArn("sourceKMSKeyArn")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCodeConfigstatic final classAn implementation forCodeConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic CodeConfig.Builderbuilder()default CodeImageConfiggetImage()Docker image configuration (mutually exclusive withs3LocationandinlineCode).default StringInline code (mutually exclusive withs3Locationandimage).default LocationThe location of the code in S3 (mutually exclusive withinlineCodeandimage).default StringThe ARN of the KMS key used to encrypt the handler code.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getImage
Docker image configuration (mutually exclusive withs3LocationandinlineCode).Default: - code is not an ECR container image
-
getInlineCode
Inline code (mutually exclusive withs3Locationandimage).Default: - code is not inline code
-
getS3Location
The location of the code in S3 (mutually exclusive withinlineCodeandimage).Default: - code is not an s3 location
-
getSourceKMSKeyArn
The ARN of the KMS key used to encrypt the handler code.Default: - the default server-side encryption with Amazon S3 managed keys(SSE-S3) key will be used.
-
builder
- Returns:
- a
CodeConfig.BuilderofCodeConfig
-