Skip to main content

channel_policies

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

Overview

Namechannel_policies
TypeResource
Idaws.mediatailor.channel_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
policystringThe IAM policy for the channel. IAM policies are used to control access to your channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_channel_policyselectchannel_name, regionReturns the channel's IAM policy. IAM policies are used to control access to your channel.
put_channel_policyreplacechannel_name, regionCreates an IAM policy for the channel. IAM policies are used to control access to your channel.
delete_channel_policydeletechannel_name, regionThe 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.

NameDatatypeDescription
channel_namestringThe name of the channel associated with this channel policy.
regionstringAWS region (default: us-east-1)

SELECT examples

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

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

The channel policy to delete.

DELETE FROM aws.mediatailor.channel_policies
WHERE channel_name = '{{ channel_name }}' --required
AND region = '{{ region }}' --required
;