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.

Idawscc.mediapackagev2.origin_endpoints

Fields

NameDatatypeDescription
arnstring<p>The Amazon Resource Name (ARN) associated with the resource.</p>
channel_group_namestring
channel_namestring
container_typestring
created_atstring<p>The date and time the origin endpoint was created.</p>
dash_manifestsarray<p>A DASH manifest configuration.</p>
descriptionstring<p>Enter any descriptive text that helps you to identify the origin endpoint.</p>
force_endpoint_error_configurationobject<p>The failover settings for the endpoint.</p>
hls_manifestsarray<p>An HTTP live streaming (HLS) manifest configuration.</p>
low_latency_hls_manifestsarray<p>A low-latency HLS manifest configuration.</p>
modified_atstring<p>The date and time the origin endpoint was modified.</p>
origin_endpoint_namestring
segmentobject<p>The segment configuration, including the segment name, duration, and other configuration values.</p>
startover_window_secondsinteger<p>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).</p>
dash_manifest_urlsarray
hls_manifest_urlsarray
low_latency_hls_manifest_urlsarray
tagsarray
regionstringAWS region.

For more information, see AWS::MediaPackageV2::OriginEndpoint.

Methods

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

SELECT examples

Gets all properties from an individual origin_endpoint.

SELECT
region,
arn,
channel_group_name,
channel_name,
container_type,
created_at,
dash_manifests,
description,
force_endpoint_error_configuration,
hls_manifests,
low_latency_hls_manifests,
modified_at,
origin_endpoint_name,
segment,
startover_window_seconds,
dash_manifest_urls,
hls_manifest_urls,
low_latency_hls_manifest_urls,
tags
FROM awscc.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 awscc.mediapackagev2.origin_endpoints (
ChannelGroupName,
ChannelName,
ContainerType,
OriginEndpointName,
region
)
SELECT
'{{ ChannelGroupName }}',
'{{ ChannelName }}',
'{{ ContainerType }}',
'{{ OriginEndpointName }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.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