container_policies
Creates, updates, deletes, gets or lists a container_policies resource.
Overview
| Name | container_policies |
| Type | Resource |
| Id | aws.mediastore.container_policies |
Fields
The following fields are returned by SELECT queries:
- get_container_policy
| Name | Datatype | Description |
|---|---|---|
policy | string | The contents of the access policy. (pattern: <code>[\x00-\x7F]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_container_policy | select | region | 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. | |
put_container_policy | replace | region, ContainerName | 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. | |
delete_container_policy | delete | region | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_container_policy
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
- put_container_policy
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
- delete_container_policy
Deletes the access policy that is associated with the specified container.
DELETE FROM aws.mediastore.container_policies
WHERE region = '{{ region }}' --required
;