S3Bucket |
String
|
Required: Conditional. The name of the S3 bucket that contains the source code of your Lambda function. The S3 bucket must be in the same region as the stack.NoteThe cfn-response module isn't available for source code stored in S3 buckets. You must write your own functions to send responses. |
S3Key |
String
|
Required: Conditional. The location and name of the .zip file that contains your source code. If you specify this property, you must also specify the S3Bucket property. |
S3ObjectVersion |
String
|
Required: No. If you have S3 versioning enabled, the version ID of the.zip file that contains your source code. You can specify this property only if you specify the S3Bucket and S3Key properties. |
ZipFile |
String
|
Required: Conditional. For nodejs, nodejs4.3, and python2.7 runtime environments, the source code of your Lambda function. You can't use this property with other runtime environments.You can specify up to 4096 characters. You must precede certain special characters in your source code, such as quotation marks ("), newlines (\n), and tabs (\t), with a backslash (\). For a list of special characters, see http://json.org/.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 that simplifies sending responses. For more information, see cfn-response Module. |
event |
undefined
|
Required: undefined. The fields in a custom resource request. |
context |
undefined
|
Required: undefined. An object, specific to Lambda functions, that you can use to specify when the function and any callbacks have completed execution or to access information from within the Lambda execution environment. For more information, see Programming Model (Node.js) in the AWS Lambda Developer Guide. |
responseStatus |
undefined
|
Required: undefined. Whether the function successfully completed. Use the cfnresponse module constants to specify the status: SUCCESS for successful executions and FAILED for failed executions. |
responseData |
undefined
|
Required: undefined. The Data field of a custom resource response object. The data is a list of name-value pairs. |
physicalResourceId |
undefined
|
Required: undefined. Optional. The unique identifier of the custom resource that invoked the function. By default, the module uses the name of the Amazon CloudWatch Logs log stream that is associated with the Lambda function. |