MediaStore / Client / put_container_policy
put_container_policy#
- MediaStore.Client.put_container_policy(**kwargs)#
Creates an access policy for the specified container to restrict the users and clients that can access it. For information about the data that is included in an access policy, see the AWS Identity and Access Management User Guide.
For this release of the REST API, you can create only one policy for a container. If you enter
PutContainerPolicy
twice, the second command modifies the existing policy.See also: AWS API Documentation
Request Syntax
response = client.put_container_policy( ContainerName='string', Policy='string' )
- Parameters:
ContainerName (string) –
[REQUIRED]
The name of the container.
Policy (string) –
[REQUIRED]
The contents of the policy, which includes the following:
One
Version
tagOne
Statement
tag that contains the standard tags for the policy.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
MediaStore.Client.exceptions.ContainerNotFoundException
MediaStore.Client.exceptions.ContainerInUseException
MediaStore.Client.exceptions.InternalServerError