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
Idawscc.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.

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

Methods

NameResourceAccessible byRequired Params
create_resourceorigin_endpointsINSERTId, ChannelId, 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,
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 awscc.mediapackage.origin_endpoints
WHERE
region = 'us-east-1' AND
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 awscc.mediapackage.origin_endpoints (
Id,
ChannelId,
region
)
SELECT
'{{ id }}',
'{{ channel_id }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.mediapackage.origin_endpoints
SET PatchDocument = string('{{ {
"ChannelId": channel_id,
"Description": description,
"Whitelist": whitelist,
"StartoverWindowSeconds": startover_window_seconds,
"TimeDelaySeconds": time_delay_seconds,
"ManifestName": manifest_name,
"Origination": origination,
"Authorization": authorization,
"HlsPackage": hls_package,
"DashPackage": dash_package,
"MssPackage": mss_package,
"CmafPackage": cmaf_package,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';

DELETE example

/*+ delete */
DELETE FROM awscc.mediapackage.origin_endpoints
WHERE
Identifier = '{{ id }}' AND
region = 'us-east-1';

Permissions

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

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