if (FALSE) {
# The following example creates a new Python library layer version. The
# command retrieves the layer content a file named layer.zip in the
# specified S3 bucket.
svc$publish_layer_version(
CompatibleRuntimes = list(
"python3.6",
"python3.7"
),
Content = list(
S3Bucket = "lambda-layers-us-west-2-123456789012",
S3Key = "layer.zip"
),
Description = "My Python layer",
LayerName = "my-layer",
LicenseInfo = "MIT"
)
}
Run the code above in your browser using DataLab