FunctionCode
The deployment package for a Lambda function.
Syntax
To declare this entity in your AWS Serverless Application Model (AWS SAM) template, use the following syntax.
Properties
- 
                
Bucket - 
                
An Amazon S3 bucket in the same AWS Region as your function.
Type: String
Required: Yes
AWS CloudFormation compatibility: This property is passed directly to the
S3Bucketproperty of theAWS::Lambda::FunctionCodedata type. - 
                
Key - 
                
The Amazon S3 key of the deployment package.
Type: String
Required: Yes
AWS CloudFormation compatibility: This property is passed directly to the
S3Keyproperty of theAWS::Lambda::FunctionCodedata type. - 
                
Version - 
                
For versioned objects, the version of the deployment package object to use.
Type: String
Required: No
AWS CloudFormation compatibility: This property is passed directly to the
S3ObjectVersionproperty of theAWS::Lambda::FunctionCodedata type. 
Examples
FunctionCode
CodeUri: Function Code example
YAML
CodeUri: Bucket: sam-s3-demo-bucket-name Key: mykey-name Version: 121212