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
- https://lambda.{region}.amazonaws.com
- https://lambda.{region}.amazonaws.com.cn
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:
|
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
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.