Skip to content

Lambda  >  Operations  >  delete_layer_version

delete_layer_version

Operation

delete_layer_version async

delete_layer_version(input: DeleteLayerVersionInput, plugins: list[Plugin] | None = None) -> DeleteLayerVersionOutput

Deletes a version of an Lambda layer. Deleted versions can no longer be viewed or added to functions. To avoid breaking functions, a copy of the version remains in Lambda until no functions refer to it.

Parameters:

Name Type Description Default
input DeleteLayerVersionInput

An instance of DeleteLayerVersionInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteLayerVersionOutput

An instance of DeleteLayerVersionOutput.

Input

DeleteLayerVersionInput dataclass

Dataclass for DeleteLayerVersionInput structure.

Attributes

layer_name class-attribute instance-attribute
layer_name: str | None = None

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

version_number class-attribute instance-attribute
version_number: int | None = None

The version number.

Output

DeleteLayerVersionOutput dataclass

Dataclass for DeleteLayerVersionOutput structure.