paws.compute (version 0.1.0)

lambda_publish_layer_version: Creates an AWS Lambda layer from a ZIP archive

Description

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

Usage

lambda_publish_layer_version(LayerName, Description, Content,
  CompatibleRuntimes, LicenseInfo)

Arguments

LayerName

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

Description

The description of the version.

Content

[required] The function layer archive.

CompatibleRuntimes

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

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.

Request syntax

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"
)

Details

Add layers to your function with CreateFunction or UpdateFunctionConfiguration.