MediaStore / Client / get_lifecycle_policy

get_lifecycle_policy#

MediaStore.Client.get_lifecycle_policy(**kwargs)#

Retrieves the object lifecycle policy that is assigned to a container.

See also: AWS API Documentation

Request Syntax

response = client.get_lifecycle_policy(
    ContainerName='string'
)
Parameters:

ContainerName (string) –

[REQUIRED]

The name of the container that the object lifecycle policy is assigned to.

Return type:

dict

Returns:

Response Syntax

{
    'LifecyclePolicy': 'string'
}

Response Structure

  • (dict) –

    • LifecyclePolicy (string) –

      The object lifecycle policy that is assigned to the container.

Exceptions