public static final class CfnFunction.CodeProperty.Builder
extends java.lang.Object
CfnFunction.CodeProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnFunction.CodeProperty |
build()
Builds the configured instance.
|
CfnFunction.CodeProperty.Builder |
imageUri(java.lang.String imageUri)
Sets the value of
CfnFunction.CodeProperty.getImageUri() |
CfnFunction.CodeProperty.Builder |
s3Bucket(java.lang.String s3Bucket)
Sets the value of
CfnFunction.CodeProperty.getS3Bucket() |
CfnFunction.CodeProperty.Builder |
s3Key(java.lang.String s3Key)
Sets the value of
CfnFunction.CodeProperty.getS3Key() |
CfnFunction.CodeProperty.Builder |
s3ObjectVersion(java.lang.String s3ObjectVersion)
Sets the value of
CfnFunction.CodeProperty.getS3ObjectVersion() |
CfnFunction.CodeProperty.Builder |
zipFile(java.lang.String zipFile)
Sets the value of
CfnFunction.CodeProperty.getZipFile() |
public CfnFunction.CodeProperty.Builder imageUri(java.lang.String imageUri)
CfnFunction.CodeProperty.getImageUri()
imageUri
- URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry.this
public CfnFunction.CodeProperty.Builder s3Bucket(java.lang.String s3Bucket)
CfnFunction.CodeProperty.getS3Bucket()
s3Bucket
- An Amazon S3 bucket in the same AWS Region as your function.
The bucket can be in a different AWS account .this
public CfnFunction.CodeProperty.Builder s3Key(java.lang.String s3Key)
CfnFunction.CodeProperty.getS3Key()
s3Key
- The Amazon S3 key of the deployment package.this
public CfnFunction.CodeProperty.Builder s3ObjectVersion(java.lang.String s3ObjectVersion)
CfnFunction.CodeProperty.getS3ObjectVersion()
s3ObjectVersion
- For versioned objects, the version of the deployment package object to use.this
public CfnFunction.CodeProperty.Builder zipFile(java.lang.String zipFile)
CfnFunction.CodeProperty.getZipFile()
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 `index` and zips it to create a [deployment package](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-package.html) . This zip file cannot exceed 4MB. For the `Handler` property, the first part of the handler identifier must be `index` . For example, `index.handler` .
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.
this
public CfnFunction.CodeProperty build()
CfnFunction.CodeProperty
java.lang.NullPointerException
- if any required attribute was not provided