| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Lambda.Types.FunctionCode
Description
Synopsis
- data FunctionCode = FunctionCode' {}
- newFunctionCode :: FunctionCode
- functionCode_imageUri :: Lens' FunctionCode (Maybe Text)
- functionCode_s3Bucket :: Lens' FunctionCode (Maybe Text)
- functionCode_s3Key :: Lens' FunctionCode (Maybe Text)
- functionCode_s3ObjectVersion :: Lens' FunctionCode (Maybe Text)
- functionCode_zipFile :: Lens' FunctionCode (Maybe ByteString)
Documentation
data FunctionCode Source #
The code for the Lambda function. You can either specify an object in Amazon S3, upload a .zip file archive deployment package directly, or specify the URI of a container image.
See: newFunctionCode smart constructor.
Constructors
| FunctionCode' | |
Fields
| |
Instances
newFunctionCode :: FunctionCode Source #
Create a value of FunctionCode with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:imageUri:FunctionCode', functionCode_imageUri - URI of a
container image
in the Amazon ECR registry.
$sel:s3Bucket:FunctionCode', functionCode_s3Bucket - An Amazon S3 bucket in the same Amazon Web Services Region as your
function. The bucket can be in a different Amazon Web Services account.
$sel:s3Key:FunctionCode', functionCode_s3Key - The Amazon S3 key of the deployment package.
$sel:s3ObjectVersion:FunctionCode', functionCode_s3ObjectVersion - For versioned objects, the version of the deployment package object to
use.
$sel:zipFile:FunctionCode', functionCode_zipFile - The base64-encoded contents of the deployment package. Amazon Web
Services SDK and CLI clients handle the encoding for you.--
-- Note: This Lens automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens accepts and returns only raw unencoded data.
functionCode_imageUri :: Lens' FunctionCode (Maybe Text) Source #
URI of a container image in the Amazon ECR registry.
functionCode_s3Bucket :: Lens' FunctionCode (Maybe Text) Source #
An Amazon S3 bucket in the same Amazon Web Services Region as your function. The bucket can be in a different Amazon Web Services account.
functionCode_s3Key :: Lens' FunctionCode (Maybe Text) Source #
The Amazon S3 key of the deployment package.
functionCode_s3ObjectVersion :: Lens' FunctionCode (Maybe Text) Source #
For versioned objects, the version of the deployment package object to use.
functionCode_zipFile :: Lens' FunctionCode (Maybe ByteString) Source #
The base64-encoded contents of the deployment package. Amazon Web
Services SDK and CLI clients handle the encoding for you.--
-- Note: This Lens automatically encodes and decodes Base64 data.
-- The underlying isomorphism will encode to Base64 representation during
-- serialisation, and decode from Base64 representation during deserialisation.
-- This Lens accepts and returns only raw unencoded data.