libZSservicesZSamazonka-lambdaZSamazonka-lambda
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Lambda.Types.FunctionCode

Description

 
Synopsis

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.

Constructors

FunctionCode' 

Fields

  • s3ObjectVersion :: Maybe Text

    For versioned objects, the version of the deployment package object to use.

  • s3Key :: Maybe Text

    The Amazon S3 key of the deployment package.

  • zipFile :: Maybe (Sensitive Base64)

    The base64-encoded contents of the deployment package. Amazon Web Services SDK and Amazon Web Services CLI clients handle the encoding for you.

  • imageUri :: Maybe Text

    URI of a container image in the Amazon ECR registry.

  • s3Bucket :: Maybe Text

    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.

Instances

Instances details
Eq FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

Show 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 #

NFData FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

Methods

rnf :: FunctionCode -> () #

Hashable FunctionCode Source # 
Instance details

Defined in Amazonka.Lambda.Types.FunctionCode

ToJSON 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" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" 'False) (C1 ('MetaCons "FunctionCode'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "s3ObjectVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "s3Key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "zipFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Base64))) :*: (S1 ('MetaSel ('Just "imageUri") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "s3Bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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.