Class CodeConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CodeConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CodeConfig>
- Enclosing interface:
CodeConfig
@Stability(Stable)
public static final class CodeConfig.Builder
extends Object
implements software.amazon.jsii.Builder<CodeConfig>
A builder for
CodeConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.image(CodeImageConfig image) Sets the value ofCodeConfig.getImage()inlineCode(String inlineCode) Sets the value ofCodeConfig.getInlineCode()s3Location(Location s3Location) Sets the value ofCodeConfig.getS3Location()s3ObjectStorageMode(S3ObjectStorageMode s3ObjectStorageMode) Sets the value ofCodeConfig.getS3ObjectStorageMode()sourceKmsKeyArn(String sourceKmsKeyArn) Sets the value ofinvalid reference
CodeConfig#getSourceKmsKeyArn
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
image
Sets the value ofCodeConfig.getImage()- Parameters:
image- Docker image configuration (mutually exclusive withs3LocationandinlineCode).- Returns:
this
-
inlineCode
Sets the value ofCodeConfig.getInlineCode()- Parameters:
inlineCode- Inline code (mutually exclusive withs3Locationandimage).- Returns:
this
-
s3Location
Sets the value ofCodeConfig.getS3Location()- Parameters:
s3Location- The location of the code in S3 (mutually exclusive withinlineCodeandimage).- Returns:
this
-
s3ObjectStorageMode
@Stability(Stable) public CodeConfig.Builder s3ObjectStorageMode(S3ObjectStorageMode s3ObjectStorageMode) Sets the value ofCodeConfig.getS3ObjectStorageMode()- Parameters:
s3ObjectStorageMode- How Lambda manages the storage of your code package.- Returns:
this
-
sourceKmsKeyArn
Sets the value ofinvalid reference
CodeConfig#getSourceKmsKeyArn- Parameters:
sourceKmsKeyArn- The ARN of the KMS key that Lambda uses to encrypt the deployment package in Lambda-managed storage. This is not the key used to encrypt the source object in Amazon S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CodeConfig>- Returns:
- a new instance of
CodeConfig - Throws:
NullPointerException- if any required attribute was not provided
-