Skip to main content

origin_endpoints

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

Overview

Nameorigin_endpoints
TypeResource
Idaws.mediapackagev2.origin_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) associated with the resource.
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>)
container_typestringThe type of container attached to this origin endpoint. (TS, CMAF, ISM)
created_atstring (date-time)The date and time the origin endpoint was created.
dash_manifestsarrayA DASH manifest configuration.
descriptionstringThe description for your origin endpoint.
e_tagstringThe current Entity Tag (ETag) associated with this resource. The entity tag can be used to safely make concurrent updates to the resource. (pattern: <code>[\S]+</code>)
force_endpoint_error_configurationobjectThe failover settings for the endpoint.
hls_manifestsarrayAn HTTP live streaming (HLS) manifest configuration.
low_latency_hls_manifestsarrayA low-latency HLS manifest configuration.
modified_atstring (date-time)The date and time the origin endpoint was modified.
mss_manifestsarrayThe Microsoft Smooth Streaming (MSS) manifest configurations associated with this origin endpoint.
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>)
reset_atstring (date-time)The time that the origin endpoint was last reset.
segmentobjectThe segment configuration, including the segment name, duration, and other configuration values.
startover_window_secondsintegerThe 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.
stream_name_output_modestringThe output mode for stream names in egress manifests for this origin endpoint. (INDEX, PASSTHROUGH_NAME)
tagsobjectThe comma-separated list of tag key:value pairs assigned to the origin endpoint.
uri_separatorstringThe separator character used in generated URIs for this origin endpoint. (UNDERSCORE, HYPHEN)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_origin_endpointselectchannel_group_name, channel_name, origin_endpoint_name, regionRetrieves the specified origin endpoint that's configured in AWS Elemental MediaPackage to obtain its playback URL and to view the packaging settings that it's currently using.
list_origin_endpointsselectchannel_group_name, channel_name, regionmaxResults, nextTokenRetrieves all origin endpoints in a specific channel that are configured in AWS Elemental MediaPackage.
create_origin_endpointinsertchannel_group_name, channel_name, region, OriginEndpointName, ContainerTypex-amzn-client-tokenThe endpoint is attached to a channel, and represents the output of the live content. You can associate multiple endpoints to a single channel. Each endpoint gives players and downstream CDNs (such as Amazon CloudFront) access to the content for playback. Content can't be served from a channel until it has an endpoint. You can create only one endpoint with each request.
update_origin_endpointupdatechannel_group_name, channel_name, origin_endpoint_name, region, ContainerTypex-amzn-update-if-matchUpdate the specified origin endpoint. Edit the packaging preferences on an endpoint to optimize the viewing experience. You can't edit the name of the endpoint. Any edits you make that impact the video output may not be reflected for a few minutes.
delete_origin_endpointdeletechannel_group_name, channel_name, origin_endpoint_name, regionOrigin endpoints can serve content until they're deleted. Delete the endpoint if it should no longer respond to playback requests. You must delete all endpoints from a channel before you can delete the channel.
cancel_harvest_jobexecchannel_group_name, channel_name, origin_endpoint_name, harvest_job_name, regionx-amzn-update-if-matchCancels an in-progress harvest job.
reset_origin_endpoint_stateexecchannel_group_name, channel_name, origin_endpoint_name, regionResetting the origin endpoint can help to resolve unexpected behavior and other content packaging issues. It also helps to preserve special events when you don't want the previous content to be available for viewing. A reset clears out all previous content from the origin endpoint. MediaPackage might return old content from this endpoint in the first 30 seconds after the endpoint reset. For best results, when possible, wait 30 seconds from endpoint reset to send playback requests to this endpoint.

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 of the channel group that contains the channel with the origin endpoint that you are resetting.
channel_namestringThe name of the channel with the origin endpoint that you are resetting.
harvest_job_namestringThe name of the harvest job to cancel. This name must be unique within the channel and cannot be changed after the harvest job is submitted.
origin_endpoint_namestringThe name of the origin endpoint that you are resetting.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in the response.
nextTokenstringThe pagination token from the GET list request. Use the token to fetch the next page of results.
x-amzn-client-tokenstringA unique, case-sensitive token that you provide to ensure the idempotency of the request.
x-amzn-update-if-matchstringThe current Entity Tag (ETag) associated with the harvest job. Used for concurrency control.

SELECT examples

Retrieves the specified origin endpoint that's configured in AWS Elemental MediaPackage to obtain its playback URL and to view the packaging settings that it's currently using.

SELECT
arn,
channel_group_name,
channel_name,
container_type,
created_at,
dash_manifests,
description,
e_tag,
force_endpoint_error_configuration,
hls_manifests,
low_latency_hls_manifests,
modified_at,
mss_manifests,
origin_endpoint_name,
reset_at,
segment,
startover_window_seconds,
stream_name_output_mode,
tags,
uri_separator
FROM aws.mediapackagev2.origin_endpoints
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
;

INSERT examples

The endpoint is attached to a channel, and represents the output of the live content. You can associate multiple endpoints to a single channel. Each endpoint gives players and downstream CDNs (such as Amazon CloudFront) access to the content for playback. Content can't be served from a channel until it has an endpoint. You can create only one endpoint with each request.

INSERT INTO aws.mediapackagev2.origin_endpoints (
OriginEndpointName,
ContainerType,
Segment,
Description,
StartoverWindowSeconds,
HlsManifests,
LowLatencyHlsManifests,
DashManifests,
MssManifests,
ForceEndpointErrorConfiguration,
UriSeparator,
StreamNameOutputMode,
Tags,
channel_group_name,
channel_name,
region,
`x-amzn-client-token`
)
SELECT
'{{ OriginEndpointName }}' /* required */,
'{{ ContainerType }}' /* required */,
'{{ Segment }}',
'{{ Description }}',
{{ StartoverWindowSeconds }},
'{{ HlsManifests }}',
'{{ LowLatencyHlsManifests }}',
'{{ DashManifests }}',
'{{ MssManifests }}',
'{{ ForceEndpointErrorConfiguration }}',
'{{ UriSeparator }}',
'{{ StreamNameOutputMode }}',
'{{ Tags }}',
'{{ channel_group_name }}',
'{{ channel_name }}',
'{{ region }}',
'{{ x-amzn-client-token }}'
RETURNING
arn,
channel_group_name,
channel_name,
container_type,
created_at,
dash_manifests,
description,
e_tag,
force_endpoint_error_configuration,
hls_manifests,
low_latency_hls_manifests,
modified_at,
mss_manifests,
origin_endpoint_name,
segment,
startover_window_seconds,
stream_name_output_mode,
tags,
uri_separator
;

UPDATE examples

Update the specified origin endpoint. Edit the packaging preferences on an endpoint to optimize the viewing experience. You can't edit the name of the endpoint. Any edits you make that impact the video output may not be reflected for a few minutes.

UPDATE aws.mediapackagev2.origin_endpoints
SET
ContainerType = '{{ ContainerType }}',
Segment = '{{ Segment }}',
Description = '{{ Description }}',
StartoverWindowSeconds = {{ StartoverWindowSeconds }},
HlsManifests = '{{ HlsManifests }}',
LowLatencyHlsManifests = '{{ LowLatencyHlsManifests }}',
DashManifests = '{{ DashManifests }}',
MssManifests = '{{ MssManifests }}',
ForceEndpointErrorConfiguration = '{{ ForceEndpointErrorConfiguration }}',
UriSeparator = '{{ UriSeparator }}',
StreamNameOutputMode = '{{ StreamNameOutputMode }}'
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
AND ContainerType = '{{ ContainerType }}' --required
AND `x-amzn-update-if-match` = '{{ x-amzn-update-if-match}}'
RETURNING
arn,
channel_group_name,
channel_name,
container_type,
created_at,
dash_manifests,
description,
e_tag,
force_endpoint_error_configuration,
hls_manifests,
low_latency_hls_manifests,
modified_at,
mss_manifests,
origin_endpoint_name,
segment,
startover_window_seconds,
stream_name_output_mode,
tags,
uri_separator;

DELETE examples

Origin endpoints can serve content until they're deleted. Delete the endpoint if it should no longer respond to playback requests. You must delete all endpoints from a channel before you can delete the channel.

DELETE FROM aws.mediapackagev2.origin_endpoints
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
;

Lifecycle Methods

Cancels an in-progress harvest job.

EXEC aws.mediapackagev2.origin_endpoints.cancel_harvest_job
@channel_group_name='{{ channel_group_name }}' --required,
@channel_name='{{ channel_name }}' --required,
@origin_endpoint_name='{{ origin_endpoint_name }}' --required,
@harvest_job_name='{{ harvest_job_name }}' --required,
@region='{{ region }}' --required,
@x-amzn-update-if-match='{{ x-amzn-update-if-match }}'
;