channel_policies
Creates, updates, deletes, gets or lists a channel_policies resource.
Overview
| Name | channel_policies |
| Type | Resource |
| Id | aws.mediatailor.channel_policies |
Fields
The following fields are returned by SELECT queries:
- get_channel_policy
| Name | Datatype | Description |
|---|---|---|
policy | string | The IAM policy for the channel. IAM policies are used to control access to your channel. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_channel_policy | select | channel_name, region | Returns the channel's IAM policy. IAM policies are used to control access to your channel. | |
put_channel_policy | replace | channel_name, region | Creates an IAM policy for the channel. IAM policies are used to control access to your channel. | |
delete_channel_policy | delete | channel_name, region | The channel policy to delete. |
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 |
|---|---|---|
channel_name | string | The name of the channel associated with this channel policy. |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_channel_policy
Returns the channel's IAM policy. IAM policies are used to control access to your channel.
SELECT
policy
FROM aws.mediatailor.channel_policies
WHERE channel_name = '{{ channel_name }}' -- required
AND region = '{{ region }}' -- required
;
REPLACE examples
- put_channel_policy
Creates an IAM policy for the channel. IAM policies are used to control access to your channel.
REPLACE aws.mediatailor.channel_policies
SET
Policy = '{{ Policy }}'
WHERE
channel_name = '{{ channel_name }}' --required
AND region = '{{ region }}' --required;
DELETE examples
- delete_channel_policy
The channel policy to delete.
DELETE FROM aws.mediatailor.channel_policies
WHERE channel_name = '{{ channel_name }}' --required
AND region = '{{ region }}' --required
;