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

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.

force_endpoint_error_configurationobject

The failover settings for the 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).

dash_manifest_urlsarray
hls_manifest_urlsarray
low_latency_hls_manifest_urlsarray
tagsarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourceorigin_endpointsINSERTChannelGroupName, ChannelName, OriginEndpointName, ContainerType, region
delete_resourceorigin_endpointsDELETEIdentifier, region
update_resourceorigin_endpointsUPDATEIdentifier, PatchDocument, region
list_resourcesorigin_endpoints_list_onlySELECTregion
get_resourceorigin_endpointsSELECTIdentifier, 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 = '{{ region }}' AND
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
'{{ channel_group_name }}',
'{{ channel_name }}',
'{{ container_type }}',
'{{ origin_endpoint_name }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.mediapackagev2.origin_endpoints
SET PatchDocument = string('{{ {
"ContainerType": container_type,
"DashManifests": dash_manifests,
"Description": description,
"ForceEndpointErrorConfiguration": force_endpoint_error_configuration,
"Segment": segment,
"StartoverWindowSeconds": startover_window_seconds,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.mediapackagev2.origin_endpoints
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

mediapackagev2:TagResource,
mediapackagev2:CreateOriginEndpoint,
iam:PassRole