@Stability(value=Stable) public static final class CfnFunction.CodeProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnFunction.CodeProperty>
CfnFunction.CodeProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnFunction.CodeProperty |
build()
Builds the configured instance.
|
CfnFunction.CodeProperty.Builder |
imageUri(String imageUri)
Sets the value of
CfnFunction.CodeProperty.getImageUri() |
CfnFunction.CodeProperty.Builder |
s3Bucket(String s3Bucket)
Sets the value of
CfnFunction.CodeProperty.getS3Bucket() |
CfnFunction.CodeProperty.Builder |
s3Key(String s3Key)
Sets the value of
CfnFunction.CodeProperty.getS3Key() |
CfnFunction.CodeProperty.Builder |
s3ObjectVersion(String s3ObjectVersion)
Sets the value of
CfnFunction.CodeProperty.getS3ObjectVersion() |
CfnFunction.CodeProperty.Builder |
zipFile(String zipFile)
Sets the value of
CfnFunction.CodeProperty.getZipFile() |
@Stability(value=Stable) public CfnFunction.CodeProperty.Builder imageUri(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
@Stability(value=Stable) public CfnFunction.CodeProperty.Builder s3Bucket(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
@Stability(value=Stable) public CfnFunction.CodeProperty.Builder s3Key(String s3Key)
CfnFunction.CodeProperty.getS3Key()
s3Key
- The Amazon S3 key of the deployment package.this
@Stability(value=Stable) public CfnFunction.CodeProperty.Builder s3ObjectVersion(String s3ObjectVersion)
CfnFunction.CodeProperty.getS3ObjectVersion()
s3ObjectVersion
- For versioned objects, the version of the deployment package object to use.this
@Stability(value=Stable) public CfnFunction.CodeProperty.Builder zipFile(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) . For the `Handler` property, the first part of the handler identifier must be `index` . For example, `index.handler` .
Your source code can contain up to 4096 characters. 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
@Stability(value=Stable) public CfnFunction.CodeProperty build()
build
in interface software.amazon.jsii.Builder<CfnFunction.CodeProperty>
CfnFunction.CodeProperty
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.