Skip to main content

origin_endpoint_policies

Creates, updates, deletes, gets or lists an origin_endpoint_policies resource.

Overview

Nameorigin_endpoint_policies
TypeResource
Idaws.mediapackagev2.origin_endpoint_policies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cdn_auth_configurationobjectThe settings for using authorization headers between the MediaPackage endpoint and your CDN. For information about CDN authorization, see CDN authorization in Elemental MediaPackage in the MediaPackage user guide.
channel_group_namestringThe name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region. (pattern: <code>[a-zA-Z0-9_-]+</code>)
channel_namestringThe name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group. (pattern: <code>[a-zA-Z0-9_-]+</code>)
origin_endpoint_namestringThe name that describes the origin endpoint. The name is the primary identifier for the origin endpoint, and and must be unique for your account in the AWS Region and channel. (pattern: <code>[a-zA-Z0-9_-]+</code>)
policystringThe policy assigned to the origin endpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_origin_endpoint_policyselectchannel_group_name, channel_name, origin_endpoint_name, regionRetrieves the specified origin endpoint policy that's configured in AWS Elemental MediaPackage.
put_origin_endpoint_policyreplacechannel_group_name, channel_name, origin_endpoint_name, regionAttaches an IAM policy to the specified origin endpoint. You can attach only one policy with each request.
delete_origin_endpoint_policydeletechannel_group_name, channel_name, origin_endpoint_name, regionDelete an origin endpoint policy.

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_group_namestringThe name that describes the channel group. The name is the primary identifier for the channel group, and must be unique for your account in the AWS Region.
channel_namestringThe name that describes the channel. The name is the primary identifier for the channel, and must be unique for your account in the AWS Region and channel group.
origin_endpoint_namestringThe name that describes the origin endpoint. The name is the primary identifier for the origin endpoint, and and must be unique for your account in the AWS Region and channel.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the specified origin endpoint policy that's configured in AWS Elemental MediaPackage.

SELECT
cdn_auth_configuration,
channel_group_name,
channel_name,
origin_endpoint_name,
policy
FROM aws.mediapackagev2.origin_endpoint_policies
WHERE channel_group_name = '{{ channel_group_name }}' -- required
AND channel_name = '{{ channel_name }}' -- required
AND origin_endpoint_name = '{{ origin_endpoint_name }}' -- required
AND region = '{{ region }}' -- required
;

REPLACE examples

Attaches an IAM policy to the specified origin endpoint. You can attach only one policy with each request.

REPLACE aws.mediapackagev2.origin_endpoint_policies
SET
Policy = '{{ Policy }}',
CdnAuthConfiguration = '{{ CdnAuthConfiguration }}'
WHERE
channel_group_name = '{{ channel_group_name }}' --required
AND channel_name = '{{ channel_name }}' --required
AND origin_endpoint_name = '{{ origin_endpoint_name }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Delete an origin endpoint policy.

DELETE FROM aws.mediapackagev2.origin_endpoint_policies
WHERE channel_group_name = '{{ channel_group_name }}' --required
AND channel_name = '{{ channel_name }}' --required
AND origin_endpoint_name = '{{ origin_endpoint_name }}' --required
AND region = '{{ region }}' --required
;