MediaStore / Client / get_container_policy

get_container_policy#

MediaStore.Client.get_container_policy(**kwargs)#

Retrieves the access policy for the specified container. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.

See also: AWS API Documentation

Request Syntax

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

ContainerName (string) –

[REQUIRED]

The name of the container.

Return type:

dict

Returns:

Response Syntax

{
    'Policy': 'string'
}

Response Structure

  • (dict) –

    • Policy (string) –

      The contents of the access policy.

Exceptions

  • MediaStore.Client.exceptions.ContainerInUseException

  • MediaStore.Client.exceptions.ContainerNotFoundException

  • MediaStore.Client.exceptions.PolicyNotFoundException

  • MediaStore.Client.exceptions.InternalServerError