amazonka-lambda-2.0: Amazon Lambda SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Lambda.Types.FunctionCode

Description

 
Synopsis

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

Instances details
ToJSON FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

Generic FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

Associated Types

type Rep FunctionCode :: Type -> Type #

Show FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

NFData FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

Methods

rnf :: FunctionCode -> () #

Eq FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

Hashable FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

type Rep FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

type Rep FunctionCode = D1 ('MetaData "FunctionCode" "Amazonka.Lambda.Types.FunctionCode" "amazonka-lambda-2.0-FcjxCCKaCGK94C2lDO9alC" 'False) (C1 ('MetaCons "FunctionCode'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "imageUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "s3Bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "s3Key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "s3ObjectVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "zipFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Base64)))))))

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.