Skip to main content

origin_endpoints

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

Overview

Nameorigin_endpoints
TypeResource
Idaws.mediapackage.origin_endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) assigned to the OriginEndpoint.
authorizationobjectCDN Authorization credentials
channel_idstringThe ID of the Channel the OriginEndpoint is associated with.
cmaf_packageobjectA Common Media Application Format (CMAF) packaging configuration.
created_atstringThe date and time the OriginEndpoint was created.
dash_packageobjectA Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
descriptionstringA short text description of the OriginEndpoint.
hls_packageobjectAn HTTP Live Streaming (HLS) packaging configuration.
idstringThe ID of the OriginEndpoint.
manifest_namestringA short string appended to the end of the OriginEndpoint URL.
mss_packageobjectA Microsoft Smooth Streaming (MSS) packaging configuration.
originationstringControl whether origination of video is allowed for this OriginEndpoint. If set to ALLOW, the OriginEndpoint may by requested, pursuant to any other form of access control. If set to DENY, the OriginEndpoint may not be requested. This can be helpful for Live to VOD harvesting, or for temporarily disabling origination (ALLOW, DENY)
startover_window_secondsintegerMaximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
tagsobject
time_delay_secondsintegerAmount of delay (seconds) to enforce on the playback of live content. If not specified, there will be no time delay in effect for the OriginEndpoint.
urlstringThe URL of the packaged OriginEndpoint for consumption.
whitelistarrayA list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_origin_endpointselectid, regionGets details about an existing OriginEndpoint.
list_origin_endpointsselectregionchannelId, maxResults, nextTokenReturns a collection of OriginEndpoint records.
create_origin_endpointinsertregion, ChannelIdCreates a new OriginEndpoint record.
update_origin_endpointupdateid, regionUpdates an existing OriginEndpoint.
delete_origin_endpointdeleteid, regionDeletes an existing OriginEndpoint.

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
idstringThe ID of the OriginEndpoint to delete.
regionstringAWS region (default: us-east-1)
channelIdstringWhen specified, the request will return only OriginEndpoints associated with the given Channel ID.
maxResultsintegerThe upper bound on the number of records to return.
nextTokenstringA token used to resume pagination from the end of a previous request.

SELECT examples

Gets details about an existing OriginEndpoint.

SELECT
arn,
authorization,
channel_id,
cmaf_package,
created_at,
dash_package,
description,
hls_package,
id,
manifest_name,
mss_package,
origination,
startover_window_seconds,
tags,
time_delay_seconds,
url,
whitelist
FROM aws.mediapackage.origin_endpoints
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new OriginEndpoint record.

INSERT INTO aws.mediapackage.origin_endpoints (
Authorization,
ChannelId,
CmafPackage,
DashPackage,
Description,
HlsPackage,
Id,
ManifestName,
MssPackage,
Origination,
StartoverWindowSeconds,
Tags,
TimeDelaySeconds,
Whitelist,
region
)
SELECT
'{{ Authorization }}',
'{{ ChannelId }}' /* required */,
'{{ CmafPackage }}',
'{{ DashPackage }}',
'{{ Description }}',
'{{ HlsPackage }}',
'{{ Id }}',
'{{ ManifestName }}',
'{{ MssPackage }}',
'{{ Origination }}',
{{ StartoverWindowSeconds }},
'{{ Tags }}',
{{ TimeDelaySeconds }},
'{{ Whitelist }}',
'{{ region }}'
RETURNING
arn,
authorization,
channel_id,
cmaf_package,
created_at,
dash_package,
description,
hls_package,
id,
manifest_name,
mss_package,
origination,
startover_window_seconds,
tags,
time_delay_seconds,
url,
whitelist
;

UPDATE examples

Updates an existing OriginEndpoint.

UPDATE aws.mediapackage.origin_endpoints
SET
Authorization = '{{ Authorization }}',
CmafPackage = '{{ CmafPackage }}',
DashPackage = '{{ DashPackage }}',
Description = '{{ Description }}',
HlsPackage = '{{ HlsPackage }}',
ManifestName = '{{ ManifestName }}',
MssPackage = '{{ MssPackage }}',
Origination = '{{ Origination }}',
StartoverWindowSeconds = {{ StartoverWindowSeconds }},
TimeDelaySeconds = {{ TimeDelaySeconds }},
Whitelist = '{{ Whitelist }}'
WHERE
id = '{{ id }}' --required
AND region = '{{ region }}' --required
RETURNING
arn,
authorization,
channel_id,
cmaf_package,
created_at,
dash_package,
description,
hls_package,
id,
manifest_name,
mss_package,
origination,
startover_window_seconds,
tags,
time_delay_seconds,
url,
whitelist;

DELETE examples

Deletes an existing OriginEndpoint.

DELETE FROM aws.mediapackage.origin_endpoints
WHERE id = '{{ id }}' --required
AND region = '{{ region }}' --required
;