stratosphere-0.2.0: EDSL for AWS CloudFormation

Safe HaskellNone
LanguageHaskell2010

Stratosphere.ResourceProperties.LambdaFunctionCode

Description

Code is a property of the AWS::Lambda::Function resource that enables you to specify the source code of an AWS Lambda (Lambda) function. Source code can be located in a file in an S3 bucket. For nodejs, nodejs4.3, and python2.7 runtime environments only, you can provide source code as inline text.

Synopsis

Documentation

data LambdaFunctionCode Source #

Full data type definition for LambdaFunctionCode. See lambdaFunctionCode for a more convenient constructor.

Instances

Show LambdaFunctionCode Source # 
Generic LambdaFunctionCode Source # 
ToJSON LambdaFunctionCode Source # 
FromJSON LambdaFunctionCode Source # 
type Rep LambdaFunctionCode Source # 
type Rep LambdaFunctionCode = D1 (MetaData "LambdaFunctionCode" "Stratosphere.ResourceProperties.LambdaFunctionCode" "stratosphere-0.2.0-B1WeL9cnxuQ3qer3csMa6f" False) (C1 (MetaCons "LambdaFunctionCode" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_lambdaFunctionCodeS3Bucket") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_lambdaFunctionCodeS3Key") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_lambdaFunctionCodeS3ObjectVersion") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))) (S1 (MetaSel (Just Symbol "_lambdaFunctionCodeZipFile") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Val Text)))))))

lambdaFunctionCode :: LambdaFunctionCode Source #

Constructor for LambdaFunctionCode containing required fields as arguments.

lfcS3Bucket :: Lens' LambdaFunctionCode (Maybe (Val Text)) Source #

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. Note The cfn-response module isn't available for source code stored in S3 buckets. You must write your own functions to send responses.

lfcS3Key :: Lens' LambdaFunctionCode (Maybe (Val Text)) Source #

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.

lfcS3ObjectVersion :: Lens' LambdaFunctionCode (Maybe (Val Text)) Source #

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.

lfcZipFile :: Lens' LambdaFunctionCode (Maybe (Val Text)) Source #

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.