PublishLayerVersion
with the same layer name, a new version is created.curl --location -g --request POST 'http://lambda.{region}.amazonaws.com/2018-10-31/layers//versions' \
--header 'Content-Type: application/json' \
--data-raw '{
"Description": "string",
"Content": {
"S3Bucket": "string",
"S3Key": "string",
"S3ObjectVersion": "string",
"ZipFile": "string"
},
"CompatibleRuntimes": [
"nodejs"
],
"LicenseInfo": "string"
}'
{
"Content": {
"Location": "string",
"CodeSha256": "string",
"CodeSize": 0,
"SigningProfileVersionArn": "string",
"SigningJobArn": "string"
},
"LayerArn": "string",
"LayerVersionArn": "string",
"Description": "string",
"CreatedDate": "string",
"Version": 0,
"CompatibleRuntimes": [],
"LicenseInfo": "string"
}