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.PublishLayerVersion

Description

Creates an Lambda layer from a ZIP archive. Each time you call PublishLayerVersion with the same layer name, a new version is created.

Add layers to your function with CreateFunction or UpdateFunctionConfiguration.

Synopsis

Creating a Request

data PublishLayerVersion Source #

See: newPublishLayerVersion smart constructor.

Constructors

PublishLayerVersion' 

Fields

Instances

Instances details
Eq PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Show PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Generic PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Associated Types

type Rep PublishLayerVersion :: Type -> Type #

NFData PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Methods

rnf :: PublishLayerVersion -> () #

Hashable PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

ToJSON PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

AWSRequest PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Associated Types

type AWSResponse PublishLayerVersion #

ToHeaders PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

ToPath PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

ToQuery PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

type Rep PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

type Rep PublishLayerVersion = D1 ('MetaData "PublishLayerVersion" "Amazonka.Lambda.PublishLayerVersion" "libZSservicesZSamazonka-lambdaZSamazonka-lambda" 'False) (C1 ('MetaCons "PublishLayerVersion'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "licenseInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "compatibleArchitectures") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Architecture])) :*: S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "compatibleRuntimes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Runtime])) :*: (S1 ('MetaSel ('Just "layerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LayerVersionContentInput)))))
type AWSResponse PublishLayerVersion Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

newPublishLayerVersion Source #

Create a value of PublishLayerVersion 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:licenseInfo:PublishLayerVersion', publishLayerVersion_licenseInfo - The layer's software license. It can be any of the following:

  • An SPDX license identifier. For example, MIT.
  • The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT.
  • The full text of the license.

$sel:compatibleArchitectures:PublishLayerVersion', publishLayerVersion_compatibleArchitectures - A list of compatible instruction set architectures.

$sel:description:PublishLayerVersion', publishLayerVersion_description - The description of the version.

$sel:compatibleRuntimes:PublishLayerVersion', publishLayerVersion_compatibleRuntimes - A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.

$sel:layerName:PublishLayerVersion', publishLayerVersion_layerName - The name or Amazon Resource Name (ARN) of the layer.

$sel:content:PublishLayerVersion', publishLayerVersion_content - The function layer archive.

Request Lenses

publishLayerVersion_licenseInfo :: Lens' PublishLayerVersion (Maybe Text) Source #

The layer's software license. It can be any of the following:

  • An SPDX license identifier. For example, MIT.
  • The URL of a license hosted on the internet. For example, https://opensource.org/licenses/MIT.
  • The full text of the license.

publishLayerVersion_compatibleRuntimes :: Lens' PublishLayerVersion (Maybe [Runtime]) Source #

A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.

publishLayerVersion_layerName :: Lens' PublishLayerVersion Text Source #

The name or Amazon Resource Name (ARN) of the layer.

Destructuring the Response

data PublishLayerVersionResponse Source #

See: newPublishLayerVersionResponse smart constructor.

Constructors

PublishLayerVersionResponse' 

Fields

Instances

Instances details
Eq PublishLayerVersionResponse Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Read PublishLayerVersionResponse Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Show PublishLayerVersionResponse Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Generic PublishLayerVersionResponse Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

Associated Types

type Rep PublishLayerVersionResponse :: Type -> Type #

NFData PublishLayerVersionResponse Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

type Rep PublishLayerVersionResponse Source # 
Instance details

Defined in Amazonka.Lambda.PublishLayerVersion

newPublishLayerVersionResponse Source #

Response Lenses

publishLayerVersionResponse_createdDate :: Lens' PublishLayerVersionResponse (Maybe Text) Source #

The date that the layer version was created, in ISO-8601 format (YYYY-MM-DDThh:mm:ss.sTZD).