Skip to main content

channel_policies

Creates, updates, deletes or gets a channel_policy resource or lists channel_policies in a region

Overview

Namechannel_policies
TypeResource
DescriptionDefinition of AWS::MediaTailor::ChannelPolicy Resource Type
Idaws.mediatailor.channel_policies

Fields

NameDatatypeDescription
channel_namestring
policyobject

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

regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTChannelName, Policy, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual channel_policy.

SELECT
region,
channel_name,
policy
FROM aws.mediatailor.channel_policies
WHERE region = 'us-east-1' AND data__Identifier = '<ChannelName>';

INSERT example

Use the following StackQL query and manifest file to create a new channel_policy resource, using stack-deploy.

/*+ create */
INSERT INTO aws.mediatailor.channel_policies (
ChannelName,
Policy,
region
)
SELECT
'{{ ChannelName }}',
'{{ Policy }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediatailor.channel_policies
WHERE data__Identifier = '<ChannelName>'
AND region = 'us-east-1';

Permissions

To operate on the channel_policies resource, the following permissions are required:

Create

mediatailor:PutChannelPolicy,
mediatailor:GetChannelPolicy

Read

mediatailor:GetChannelPolicy

Update

mediatailor:PutChannelPolicy,
mediatailor:GetChannelPolicy

Delete

mediatailor:DeleteChannelPolicy,
mediatailor:GetChannelPolicy