Creates an AWS Lambda layer
from a ZIP archive. Each time you call PublishLayerVersion
with the
same version name, a new version is created.
lambda_publish_layer_version(LayerName, Description, Content,
CompatibleRuntimes, LicenseInfo)
[required] The name or Amazon Resource Name (ARN) of the layer.
The description of the version.
[required] The function layer archive.
A list of compatible function runtimes. Used for filtering with ListLayers and ListLayerVersions.
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.
svc$publish_layer_version( LayerName = "string", Description = "string", Content = list( S3Bucket = "string", S3Key = "string", S3ObjectVersion = "string", ZipFile = raw ), CompatibleRuntimes = list( "nodejs"|"nodejs4.3"|"nodejs6.10"|"nodejs8.10"|"java8"|"python2.7"|"python3.6"|"python3.7"|"dotnetcore1.0"|"dotnetcore2.0"|"dotnetcore2.1"|"nodejs4.3-edge"|"go1.x"|"ruby2.5"|"provided" ), LicenseInfo = "string" )
Add layers to your function with CreateFunction or UpdateFunctionConfiguration.