Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data FunctionCode = FunctionCode' {}
- newFunctionCode :: FunctionCode
- functionCode_s3ObjectVersion :: Lens' FunctionCode (Maybe Text)
- functionCode_s3Key :: Lens' FunctionCode (Maybe Text)
- functionCode_zipFile :: Lens' FunctionCode (Maybe ByteString)
- functionCode_imageUri :: Lens' FunctionCode (Maybe Text)
- functionCode_s3Bucket :: Lens' FunctionCode (Maybe Text)
Documentation
data FunctionCode Source #
The code for the Lambda function. You can specify either 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.
FunctionCode' | |
|
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:s3ObjectVersion:FunctionCode'
, functionCode_s3ObjectVersion
- For versioned objects, the version of the deployment package object to
use.
$sel:s3Key:FunctionCode'
, functionCode_s3Key
- The Amazon S3 key of the deployment package.
$sel:zipFile:FunctionCode'
, functionCode_zipFile
- The base64-encoded contents of the deployment package. Amazon Web
Services SDK and Amazon Web Services 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.
$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.
functionCode_s3ObjectVersion :: Lens' FunctionCode (Maybe Text) Source #
For versioned objects, the version of the deployment package object to use.
functionCode_s3Key :: Lens' FunctionCode (Maybe Text) Source #
The Amazon S3 key of the deployment package.
functionCode_zipFile :: Lens' FunctionCode (Maybe ByteString) Source #
The base64-encoded contents of the deployment package. Amazon Web
Services SDK and Amazon Web Services 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.