v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14218161.2 KB

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.

post/#X-Amz-Target=MediaStore_20170901.PutContainerPolicy

Headers

X-Amz-Target'MediaStore_20170901.PutContainerPolicy' required

Request body

ContainerNamestring required

The name of the container.

Policystring required
<p>The contents of the policy, which includes the following: </p> <ul> <li> <p>One <code>Version</code> tag</p> </li> <li> <p>One <code>Statement</code> tag that contains the standard tags for the policy.</p> </li> </ul>

Response

Success

PutContainerPolicyOutput required