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()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
-
sourceKmsKeyArn
Sets the value ofinvalid reference
CodeConfig#getSourceKmsKeyArn- Parameters:
sourceKmsKeyArn- The ARN of the KMS key used to encrypt the handler code.- 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
-