case class Code(S3Bucket: Option[Token[String]] = None, S3Key: Option[Token[String]] = None, S3ObjectVersion: Option[Token[String]] = None, ZipFile: Option[Token[String]] = None) extends Product with Serializable
Code is a property of the AWS::Lambda::Function resource that enables you to specify the source code of an AWS Lambda function. Your source code can be located in either the template or a file in an Amazon Simple Storage Service (Amazon S3) bucket. For nodejs4.3, nodejs6.10, python2.7, and python3.6 runtime environments only, you can provide source code as inline text in your template.
*Note:* To update a Lambda function whose source code is in an Amazon S3 bucket, you must trigger an update by updating the S3Bucket, S3Key, or S3ObjectVersion property. Updating the source code alone doesn't update the function.
- S3Bucket
The name of the Amazon S3 bucket where the .zip file that contains your deployment package is stored. This bucket must reside in the same AWS Region that you're creating the Lambda function in. You can specify a bucket from another AWS account as long as the Lambda function and the bucket are in the same region. *Note:* The cfn-response module isn't available for source code that's stored in Amazon S3 buckets. To send responses, write your own functions.
- S3Key
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
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
For nodejs4.3, nodejs6.10, python2.7, and python3.6 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.
- Alphabetic
- By Inheritance
- Code
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
Code(S3Bucket: Option[Token[String]] = None, S3Key: Option[Token[String]] = None, S3ObjectVersion: Option[Token[String]] = None, ZipFile: Option[Token[String]] = None)
- S3Bucket
The name of the Amazon S3 bucket where the .zip file that contains your deployment package is stored. This bucket must reside in the same AWS Region that you're creating the Lambda function in. You can specify a bucket from another AWS account as long as the Lambda function and the bucket are in the same region. *Note:* The cfn-response module isn't available for source code that's stored in Amazon S3 buckets. To send responses, write your own functions.
- S3Key
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
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
For nodejs4.3, nodejs6.10, python2.7, and python3.6 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.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val S3Bucket: Option[Token[String]]
- val S3Key: Option[Token[String]]
- val S3ObjectVersion: Option[Token[String]]
- val ZipFile: Option[Token[String]]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )