Skip to content

delete_layer_version

Operation

delete_layer_version

delete_layer_version(request: DeleteLayerVersionInput | DeleteLayerVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteLayerVersionInputDict]) -> 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
request DeleteLayerVersionInput | DeleteLayerVersionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteLayerVersionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteLayerVersionOutput

An instance of DeleteLayerVersionOutput.

delete_layer_version async

delete_layer_version(request: DeleteLayerVersionInput | DeleteLayerVersionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[DeleteLayerVersionInputDict]) -> 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
request DeleteLayerVersionInput | DeleteLayerVersionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[DeleteLayerVersionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
DeleteLayerVersionOutput

An instance of DeleteLayerVersionOutput.

Input

Pass the input as keyword arguments, a positional dictionary, or a positional model object. Pass plugins separately as a keyword argument.

DeleteLayerVersionInputDict

Bases: TypedDict

Dictionary form of DeleteLayerVersionInput.

Attributes

layer_name instance-attribute
layer_name: Required[str]

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

version_number instance-attribute
version_number: int | None

The version number.

DeleteLayerVersionInput dataclass

Bases: _SerdeShape

Dataclass for DeleteLayerVersionInput structure.

Attributes

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

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

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

The version number.

Output

DeleteLayerVersionOutput dataclass

Bases: _SerdeShape

Dataclass for DeleteLayerVersionOutput structure.

Attributes

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.