Skip to main content

origin_endpoints

Creates, updates, deletes or gets an origin_endpoint resource or lists origin_endpoints in a region

Overview

Nameorigin_endpoints
TypeResource
Description

Represents an origin endpoint that is associated with a channel, offering a dynamically repackaged version of its content through various streaming media protocols. The content can be efficiently disseminated to end-users via a Content Delivery Network (CDN), like Amazon CloudFront.

Idaws.mediapackagev2.origin_endpoints

Fields

NameDatatypeDescription
arnstring

The Amazon Resource Name (ARN) associated with the resource.

channel_group_namestring
channel_namestring
container_typestring
created_atstring

The date and time the origin endpoint was created.

dash_manifestsarray

A DASH manifest configuration.

descriptionstring

Enter any descriptive text that helps you to identify the origin endpoint.

hls_manifestsarray

An HTTP live streaming (HLS) manifest configuration.

low_latency_hls_manifestsarray

A low-latency HLS manifest configuration.

modified_atstring

The date and time the origin endpoint was modified.

origin_endpoint_namestring
segmentobject

The segment configuration, including the segment name, duration, and other configuration values.

startover_window_secondsinteger

The size of the window (in seconds) to create a window of the live stream that's available for on-demand viewing. Viewers can start-over or catch-up on content that falls within the window. The maximum startover window is 1,209,600 seconds (14 days).

tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTChannelGroupName, ChannelName, OriginEndpointName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all origin_endpoints in a region.

SELECT
region,
arn,
channel_group_name,
channel_name,
container_type,
created_at,
dash_manifests,
description,
hls_manifests,
low_latency_hls_manifests,
modified_at,
origin_endpoint_name,
segment,
startover_window_seconds,
tags
FROM aws.mediapackagev2.origin_endpoints
WHERE region = 'us-east-1';

Gets all properties from an individual origin_endpoint.

SELECT
region,
arn,
channel_group_name,
channel_name,
container_type,
created_at,
dash_manifests,
description,
hls_manifests,
low_latency_hls_manifests,
modified_at,
origin_endpoint_name,
segment,
startover_window_seconds,
tags
FROM aws.mediapackagev2.origin_endpoints
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.mediapackagev2.origin_endpoints (
ChannelGroupName,
ChannelName,
OriginEndpointName,
region
)
SELECT
'{{ ChannelGroupName }}',
'{{ ChannelName }}',
'{{ OriginEndpointName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.mediapackagev2.origin_endpoints
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

mediapackagev2:TagResource,
mediapackagev2:CreateOriginEndpoint,
iam:PassRole

Read

mediapackagev2:GetOriginEndpoint

Update

mediapackagev2:TagResource,
mediapackagev2:UntagResource,
mediapackagev2:ListTagsForResource,
mediapackagev2:UpdateOriginEndpoint,
iam:PassRole

Delete

mediapackagev2:GetOriginEndpoint,
mediapackagev2:DeleteOriginEndpoint

List

mediapackagev2:ListOriginEndpoints