Class CfnFunction.CodeProperty.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnFunction.CodeProperty>
- Enclosing interface:
- CfnFunction.CodeProperty
CfnFunction.CodeProperty- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnFunction.CodeProperty.getImageUri()Sets the value ofCfnFunction.CodeProperty.getS3Bucket()Sets the value ofCfnFunction.CodeProperty.getS3Key()s3ObjectVersion(String s3ObjectVersion) Sets the value ofCfnFunction.CodeProperty.getS3ObjectVersion()sourceKmsKeyArn(String sourceKmsKeyArn) Sets the value ofCfnFunction.CodeProperty.getSourceKmsKeyArn()Sets the value ofCfnFunction.CodeProperty.getZipFile()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
imageUriSets the value ofCfnFunction.CodeProperty.getImageUri()- Parameters:
- imageUri- URI of a container image in the Amazon ECR registry.
- Returns:
- this
 
- 
s3BucketSets the value ofCfnFunction.CodeProperty.getS3Bucket()- Parameters:
- s3Bucket- An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account .
- Returns:
- this
 
- 
s3KeySets the value ofCfnFunction.CodeProperty.getS3Key()- Parameters:
- s3Key- The Amazon S3 key of the deployment package.
- Returns:
- this
 
- 
s3ObjectVersionSets the value ofCfnFunction.CodeProperty.getS3ObjectVersion()- Parameters:
- s3ObjectVersion- For versioned objects, the version of the deployment package object to use.
- Returns:
- this
 
- 
sourceKmsKeyArnSets the value ofCfnFunction.CodeProperty.getSourceKmsKeyArn()- Parameters:
- sourceKmsKeyArn- The ARN of the AWS Key Management Service ( AWS KMS ) customer managed key that's used to encrypt your function's .zip deployment package. If you don't provide a customer managed key, Lambda uses an AWS owned key .
- Returns:
- this
 
- 
zipFileSets the value ofCfnFunction.CodeProperty.getZipFile()- Parameters:
- zipFile- (Node.js and Python) The source code of your Lambda function. If you include your function source inline with this parameter, AWS CloudFormation places it in a file named- indexand zips it to create a deployment package . This zip file cannot exceed 4MB. For the- Handlerproperty, the first part of the handler identifier must be- index. For example,- index.handler.- When you specify source code inline for a Node.js function, the - indexfile that AWS CloudFormation creates uses the extension- .js. This means that Lambda treats the file as a CommonJS module. ES modules aren't supported for inline functions.- For JSON, you must escape quotes and special characters such as newline ( - \n) with a backslash.- If you specify a function that interacts with an AWS CloudFormation custom resource, you don't have to write your own functions to send responses to the custom resource that invoked the function. AWS CloudFormation provides a response module ( cfn-response ) that simplifies sending responses. See Using AWS Lambda with AWS CloudFormation for details. 
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnFunction.CodeProperty>
- Returns:
- a new instance of CfnFunction.CodeProperty
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-