LayerVersionProps

class aws_cdk.aws_lambda.LayerVersionProps(*, code, compatible_runtimes=None, description=None, layer_version_name=None, license=None)

Bases: object

__init__(*, code, compatible_runtimes=None, description=None, layer_version_name=None, license=None)
Parameters
  • code (Code) – The content of this Layer. Using Code.fromInline is not supported.

  • compatible_runtimes (Optional[List[Runtime]]) – The runtimes compatible with this Layer. Default: - All runtimes are supported.

  • description (Optional[str]) – The description the this Lambda Layer. Default: - No description.

  • layer_version_name (Optional[str]) – The name of the layer. Default: - A name will be generated.

  • license (Optional[str]) – The SPDX licence identifier or URL to the license file for this layer. Default: - No license information will be recorded.

Attributes

code

The content of this Layer.

Using Code.fromInline is not supported.

Return type

Code

compatible_runtimes

The runtimes compatible with this Layer.

default :default: - All runtimes are supported.

Return type

Optional[List[Runtime]]

description

The description the this Lambda Layer.

default :default: - No description.

Return type

Optional[str]

layer_version_name

The name of the layer.

default :default: - A name will be generated.

Return type

Optional[str]

license

The SPDX licence identifier or URL to the license file for this layer.

default :default: - No license information will be recorded.

Return type

Optional[str]