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
DescriptionResource schema for AWS::MediaPackage::OriginEndpoint
Idaws.mediapackage.origin_endpoints

Fields

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) assigned to the OriginEndpoint.
urlstringThe URL of the packaged OriginEndpoint for consumption.
idstringThe ID of the OriginEndpoint.
channel_idstringThe ID of the Channel the OriginEndpoint is associated with.
descriptionstringA short text description of the OriginEndpoint.
whitelistarrayA list of source IP CIDR blocks that will be allowed to access the OriginEndpoint.
startover_window_secondsintegerMaximum duration (seconds) of content to retain for startover playback. If not specified, startover playback will be disabled for the OriginEndpoint.
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.
manifest_namestringA short string appended to the end of the OriginEndpoint URL.
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
authorizationobject
hls_packageobjectAn HTTP Live Streaming (HLS) packaging configuration.
dash_packageobjectA Dynamic Adaptive Streaming over HTTP (DASH) packaging configuration.
mss_packageobjectA Microsoft Smooth Streaming (MSS) PackagingConfiguration.
cmaf_packageobjectA CMAF packaging configuration.
tagsarrayA collection of tags associated with a resource
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTId, ChannelId, 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,
url,
id,
channel_id,
description,
whitelist,
startover_window_seconds,
time_delay_seconds,
manifest_name,
origination,
authorization,
hls_package,
dash_package,
mss_package,
cmaf_package,
tags
FROM aws.mediapackage.origin_endpoints
WHERE region = 'us-east-1';

Gets all properties from an individual origin_endpoint.

SELECT
region,
arn,
url,
id,
channel_id,
description,
whitelist,
startover_window_seconds,
time_delay_seconds,
manifest_name,
origination,
authorization,
hls_package,
dash_package,
mss_package,
cmaf_package,
tags
FROM aws.mediapackage.origin_endpoints
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

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

/*+ create */
INSERT INTO aws.mediapackage.origin_endpoints (
Id,
ChannelId,
region
)
SELECT
'{{ Id }}',
'{{ ChannelId }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

mediapackage:CreateOriginEndpoint,
mediapackage:DescribeOriginEndpoint,
mediapackage:DescribeChannel,
mediapackage:TagResource,
iam:PassRole,
acm:DescribeCertificate

Read

mediapackage:DescribeOriginEndpoint

Update

mediapackage:UpdateOriginEndpoint,
iam:PassRole

Delete

mediapackage:DeleteOriginEndpoint

List

mediapackage:ListOriginEndpoints