Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

get_lifecycle_policy

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

  • MediaStore.Client.exceptions.ContainerInUseException
  • MediaStore.Client.exceptions.ContainerNotFoundException
  • MediaStore.Client.exceptions.PolicyNotFoundException
  • MediaStore.Client.exceptions.InternalServerError