Skip to main content

container_policies

Creates, updates, deletes, gets or lists a container_policies resource.

Overview

Namecontainer_policies
TypeResource
Idaws.mediastore.container_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
policystringThe contents of the access policy. (pattern: <code>[\x00-\x7F]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_container_policyselectregionRetrieves 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.
put_container_policyreplaceregion, ContainerNameCreates 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.
delete_container_policydeleteregionDeletes the access policy that is associated with the specified container.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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.

SELECT
policy
FROM aws.mediastore.container_policies
WHERE region = '{{ region }}' -- required
;

REPLACE examples

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.

REPLACE aws.mediastore.container_policies
SET
ContainerName = '{{ ContainerName }}',
Policy = '{{ Policy }}'
WHERE
region = '{{ region }}' --required
AND ContainerName = '{{ ContainerName }}' --required;

DELETE examples

Deletes the access policy that is associated with the specified container.

DELETE FROM aws.mediastore.container_policies
WHERE region = '{{ region }}' --required
;