POST /2018-10-31/layers/{LayerName}/versions

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.

Servers

Path parameters

Name Type Required Description
LayerName String Yes

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

Request headers

Name Type Required Description
X-Amz-Content-Sha256 String No
X-Amz-Credential String No
Content-Type String Yes The media type of the request body.

Default value: "application/json"

X-Amz-Date String No
X-Amz-Algorithm String No
X-Amz-SignedHeaders String No
X-Amz-Security-Token String No
X-Amz-Signature String No

Request body fields

Name Type Required Description
Content Object Yes

A ZIP archive that contains the contents of an Lambda layer. You can specify either an Amazon S3 location, or upload a layer archive directly.

Content.S3Bucket String No

The Amazon S3 bucket of the layer archive.

Content.S3ObjectVersion String No

For versioned objects, the version of the layer archive object to use.

Content.ZipFile String No

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

Content.S3Key String No

The Amazon S3 key of the layer archive.

CompatibleArchitectures[] Array No

A list of compatible instruction set architectures.

LicenseInfo String No

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.

CompatibleRuntimes[] Array No

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

Description String No

The description of the version.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.