delete_lifecycle_policy

delete_lifecycle_policy(**kwargs)

Removes an object lifecycle policy from a container. It takes up to 20 minutes for the change to take effect.

See also: AWS API Documentation

Request Syntax

response = client.delete_lifecycle_policy(
    ContainerName='string'
)
Parameters
ContainerName (string) --

[REQUIRED]

The name of the container that holds the object lifecycle policy.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --

Exceptions

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