AWS Elemental MediaStore

2018/12/11 - AWS Elemental MediaStore - 3 new api methods

Changes  This release adds Delete Object Lifecycling to AWS MediaStore Containers.

GetLifecyclePolicy (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.get_lifecycle_policy(
    ContainerName='string'
)
type ContainerName

string

param ContainerName

[REQUIRED]

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

rtype

dict

returns

Response Syntax

{
    'LifecyclePolicy': 'string'
}

Response Structure

  • (dict) --

    • LifecyclePolicy (string) --

      The object lifecycle policy that is assigned to the container.

DeleteLifecyclePolicy (new) Link ¶

Removes an object lifecycle policy from a container.

See also: AWS API Documentation

Request Syntax

client.delete_lifecycle_policy(
    ContainerName='string'
)
type ContainerName

string

param ContainerName

[REQUIRED]

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

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --

PutLifecyclePolicy (new) Link ¶

Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy.

See also: AWS API Documentation

Request Syntax

client.put_lifecycle_policy(
    ContainerName='string',
    LifecyclePolicy='string'
)
type ContainerName

string

param ContainerName

[REQUIRED]

The name of the container that you want to assign the object lifecycle policy to.

type LifecyclePolicy

string

param LifecyclePolicy

[REQUIRED]

The object lifecycle policy to apply to the container.

rtype

dict

returns

Response Syntax

{}

Response Structure

  • (dict) --