Skip to content

remove_layer_version_permission

Operation

remove_layer_version_permission

remove_layer_version_permission(request: RemoveLayerVersionPermissionInput | RemoveLayerVersionPermissionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[RemoveLayerVersionPermissionInputDict]) -> RemoveLayerVersionPermissionOutput

Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

Parameters:

Name Type Description Default
request RemoveLayerVersionPermissionInput | RemoveLayerVersionPermissionInputDict | 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[RemoveLayerVersionPermissionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
RemoveLayerVersionPermissionOutput

An instance of RemoveLayerVersionPermissionOutput.

remove_layer_version_permission async

remove_layer_version_permission(request: RemoveLayerVersionPermissionInput | RemoveLayerVersionPermissionInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[RemoveLayerVersionPermissionInputDict]) -> RemoveLayerVersionPermissionOutput

Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

Parameters:

Name Type Description Default
request RemoveLayerVersionPermissionInput | RemoveLayerVersionPermissionInputDict | 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[RemoveLayerVersionPermissionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
RemoveLayerVersionPermissionOutput

An instance of RemoveLayerVersionPermissionOutput.

Input

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

RemoveLayerVersionPermissionInputDict

Bases: TypedDict

Dictionary form of RemoveLayerVersionPermissionInput.

Attributes

layer_name instance-attribute
layer_name: Required[str]

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

revision_id instance-attribute
revision_id: str | None

Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

statement_id instance-attribute
statement_id: Required[str]

The identifier that was specified when the statement was added.

version_number instance-attribute
version_number: int | None

The version number.

RemoveLayerVersionPermissionInput dataclass

Bases: _SerdeShape

Dataclass for RemoveLayerVersionPermissionInput structure.

Attributes

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

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

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

Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

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

The identifier that was specified when the statement was added.

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

The version number.

Output

RemoveLayerVersionPermissionOutput dataclass

Bases: _SerdeShape

Dataclass for RemoveLayerVersionPermissionOutput 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.