Skip to main content

reservations

Creates, updates, deletes, gets or lists a reservations resource.

Overview

Namereservations
TypeResource
Idaws.medialive.reservations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringPlaceholder documentation for __string
countintegerPlaceholder documentation for __integer
currency_codestringPlaceholder documentation for __string
durationintegerPlaceholder documentation for __integer
duration_unitsstringUnits for duration, e.g. 'MONTHS' (MONTHS)
endstringPlaceholder documentation for __string
fixed_pricenumber (double)Placeholder documentation for __double
namestringPlaceholder documentation for __string
offering_descriptionstringPlaceholder documentation for __string
offering_idstringPlaceholder documentation for __string
offering_typestringOffering type, e.g. 'NO_UPFRONT' (NO_UPFRONT)
regionstringPlaceholder documentation for __string
renewal_settingsobjectRenewal settings for the reservation
reservation_idstringPlaceholder documentation for __string
resource_specificationobjectResource configuration details
startstringPlaceholder documentation for __string
statestringCurrent state of reservation, e.g. 'ACTIVE' (ACTIVE, EXPIRED, CANCELED, DELETED)
tagsobjectA collection of key-value pairs
usage_pricenumber (double)Placeholder documentation for __double

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_reservationselectreservation_id, regionGet details for a reservation.
list_reservationsselectregionchannelClass, codec, maxResults, maximumBitrate, maximumFramerate, nextToken, resolution, resourceType, specialFeature, videoQualityList purchased reservations.
update_reservationupdatereservation_id, regionUpdate reservation.
delete_reservationdeletereservation_id, regionDelete an expired reservation.

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
regionstringAWS region (default: us-east-1)
reservation_idstringUnique reservation ID, e.g. '1234567'
channelClassstringFilter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'
codecstringFilter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', 'LINK', or 'AV1'
maxResultsinteger
maximumBitratestringFilter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'
maximumFrameratestringFilter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'
nextTokenstring
resolutionstringFilter by resolution, 'SD', 'HD', 'FHD', or 'UHD'
resourceTypestringFilter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'
specialFeaturestringFilter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'
videoQualitystringFilter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'

SELECT examples

Get details for a reservation.

SELECT
arn,
count,
currency_code,
duration,
duration_units,
end,
fixed_price,
name,
offering_description,
offering_id,
offering_type,
region,
renewal_settings,
reservation_id,
resource_specification,
start,
state,
tags,
usage_price
FROM aws.medialive.reservations
WHERE reservation_id = '{{ reservation_id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Update reservation.

UPDATE aws.medialive.reservations
SET
Name = '{{ Name }}',
RenewalSettings = '{{ RenewalSettings }}'
WHERE
reservation_id = '{{ reservation_id }}' --required
AND region = '{{ region }}' --required
RETURNING
reservation;

DELETE examples

Delete an expired reservation.

DELETE FROM aws.medialive.reservations
WHERE reservation_id = '{{ reservation_id }}' --required
AND region = '{{ region }}' --required
;