Skip to content

get_layer_version_policy

Operation

get_layer_version_policy

get_layer_version_policy(request: GetLayerVersionPolicyInput | GetLayerVersionPolicyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetLayerVersionPolicyInputDict]) -> GetLayerVersionPolicyOutput

Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

Parameters:

Name Type Description Default
request GetLayerVersionPolicyInput | GetLayerVersionPolicyInputDict | 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[GetLayerVersionPolicyInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetLayerVersionPolicyOutput

An instance of GetLayerVersionPolicyOutput.

get_layer_version_policy async

get_layer_version_policy(request: GetLayerVersionPolicyInput | GetLayerVersionPolicyInputDict | None = None, /, *, plugins: list[Plugin] | None = None, **kwargs: Unpack[GetLayerVersionPolicyInputDict]) -> GetLayerVersionPolicyOutput

Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.

Parameters:

Name Type Description Default
request GetLayerVersionPolicyInput | GetLayerVersionPolicyInputDict | 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[GetLayerVersionPolicyInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
GetLayerVersionPolicyOutput

An instance of GetLayerVersionPolicyOutput.

Input

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

GetLayerVersionPolicyInputDict

Bases: TypedDict

Dictionary form of GetLayerVersionPolicyInput.

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.

GetLayerVersionPolicyInput dataclass

Bases: _SerdeShape

Dataclass for GetLayerVersionPolicyInput 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

GetLayerVersionPolicyOutput dataclass

Bases: _SerdeShape

Dataclass for GetLayerVersionPolicyOutput structure.

Attributes

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

The policy document.

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.

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

A unique identifier for the current revision of the policy.