Code |
AWSLambdaFunctionCode
|
Required: Yes. The source code of your Lambda function. You can point to a file in an Amazon Simple Storage Service
(Amazon S3) bucket or specify your source code as inline text.Update requires: No interruption |
Description |
String
|
Required: No. A description of the function.Update requires: No interruption |
FunctionName |
String
|
Required: No. A name for the function. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the function's name. For more information, see Name Type.ImportantIf you specify a name, you cannot do updates that require this resource to be replaced.
You can still do updates that require no or some interruption. If you must replace the resource, specify a new name.Update requires: Replacement |
Handler |
String
|
Required: Yes. The name of the function (within your source code) that Lambda calls to start running
your code. For more information, see the Handler property in the
AWS Lambda Developer Guide.NoteIf you specify your source code as inline text by specifying the ZipFile property within the Code property, specify index.function_name as the handler.Update requires: No interruption |
MemorySize |
Number
|
Required: No. The amount of memory, in MB, that is allocated to your Lambda function. Lambda
uses this value to proportionally allocate the amount of CPU power. For more
information, see Resource
Model in the AWS Lambda Developer Guide.Your function use case determines your CPU and memory requirements. For
example, a database operation might need less memory than an image processing
function. You must specify a value that is greater than or equal to
128, and it must be a multiple of 64. You cannot specify a size
larger than 1536. The default value is 128 MB.Update requires: No interruption |
Role |
String
|
Required: Yes. The Amazon Resource Name (ARN) of the AWS Identity and Access Management (IAM) execution role that
Lambda assumes when it runs your code to access AWS services.Update requires: No interruption |
Runtime |
String
|
Required: Yes. The runtime environment for the Lambda function that you are uploading. For valid values, see the Runtime property in the AWS Lambda Developer Guide.Update requires: Replacement |
Timeout |
Number
|
Required: No. The function execution time (in seconds) after which Lambda terminates the
function. Because the execution time affects cost, set this value based on the
function's expected execution time. By default, Timeout is set to
3 seconds. Update requires: No interruption |
VpcConfig |
AWSLambdaFunctionVPCConfig
|
Required: No. If the Lambda function requires access to resources in a VPC, specify a VPC configuration that Lambda uses to set up an elastic network interface (ENI). The ENI enables your function to connect to other resources in your VPC, but it doesn't provide public Internet access. If your function requires Internet access (for example, to access AWS services that don't have VPC endpoints), configure a Network Address Translation (NAT) instance inside your VPC or use an Amazon Virtual Private Cloud
(Amazon VPC) NAT gateway. For more information, see NAT Gateways in the Amazon VPC User Guide.Update requires: No interruption |