@Stability(value=Stable)
public static interface CfnFunction.CodeProperty
extends software.amazon.jsii.JsiiSerializable
Changes to a deployment package in Amazon S3 are not detected automatically during stack updates. To update the function code, change the object key or version in the template.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;
CodeProperty codeProperty = CodeProperty.builder()
.imageUri("imageUri")
.s3Bucket("s3Bucket")
.s3Key("s3Key")
.s3ObjectVersion("s3ObjectVersion")
.zipFile("zipFile")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFunction.CodeProperty.Builder
A builder for
CfnFunction.CodeProperty |
static class |
CfnFunction.CodeProperty.Jsii$Proxy
An implementation for
CfnFunction.CodeProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnFunction.CodeProperty.Builder |
builder() |
default String |
getImageUri()
URI of a [container image](https://docs.aws.amazon.com/lambda/latest/dg/lambda-images.html) in the Amazon ECR registry.
|
default String |
getS3Bucket()
An Amazon S3 bucket in the same AWS Region as your function.
|
default String |
getS3Key()
The Amazon S3 key of the deployment package.
|
default String |
getS3ObjectVersion()
For versioned objects, the version of the deployment package object to use.
|
default String |
getZipFile()
(Node.js and Python) The source code of your Lambda function.
|
@Stability(value=Stable) @Nullable default String getImageUri()
@Stability(value=Stable) @Nullable default String getS3Bucket()
The bucket can be in a different AWS account.
@Stability(value=Stable) @Nullable default String getS3Key()
@Stability(value=Stable) @Nullable default String getS3ObjectVersion()
@Stability(value=Stable) @Nullable default String getZipFile()
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.
@Stability(value=Stable) static CfnFunction.CodeProperty.Builder builder()
CfnFunction.CodeProperty.Builder of CfnFunction.CodePropertyCopyright © 2022. All rights reserved.