Skip to content

aws.medialive.list_reservations

Example SQL Queries

SELECT * FROM
aws.medialive.list_reservations;

Description

List purchased reservations.

Table Definition

Column NameColumn Data Type
channel_class Input Column

Filter by channel class, 'STANDARD' or 'SINGLE_PIPELINE'

VARCHAR
codec Input Column

Filter by codec, 'AVC', 'HEVC', 'MPEG2', 'AUDIO', or 'LINK'

VARCHAR
maximum_bitrate Input Column

Filter by bitrate, 'MAX_10_MBPS', 'MAX_20_MBPS', or 'MAX_50_MBPS'

VARCHAR
maximum_framerate Input Column

Filter by framerate, 'MAX_30_FPS' or 'MAX_60_FPS'

VARCHAR
resolution Input Column

Filter by resolution, 'SD', 'HD', 'FHD', or 'UHD'

VARCHAR
resource_type Input Column

Filter by resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'

VARCHAR
special_feature Input Column

Filter by special feature, 'ADVANCED_AUDIO' or 'AUDIO_NORMALIZATION'

VARCHAR
video_quality Input Column

Filter by video quality, 'STANDARD', 'ENHANCED', or 'PREMIUM'

VARCHAR
_aws_profile Input Column

The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role.

STRUCT(
"type" VARCHAR,
"name" VARCHAR,
"account_id" VARCHAR,
"via_profile_name" VARCHAR,
"assumed_role_arn" VARCHAR,
"organization" STRUCT(
"account_name" VARCHAR,
"id" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[],
"master_account" STRUCT(
"id" VARCHAR,
"email" VARCHAR
),
"parents" STRUCT(
"type" VARCHAR,
"id" VARCHAR,
"name" VARCHAR,
"tags" STRUCT(
"key" VARCHAR,
"value" VARCHAR
)[]
)[]
)
)
Show child fields
_aws_profile.account_id

The AWS account id

_aws_profile.assumed_role_arn

The ARN of the assumed role

_aws_profile.name

The unique name of the profile.

_aws_profile.organization

Information about this profile's membership in the AWS organization.

Show child fields
_aws_profile.organization.account_name

The name of account speciifed by the organization

_aws_profile.organization.id

The organization id

_aws_profile.organization.master_account
Show child fields
_aws_profile.organization.master_account.email

The organization master account email address

_aws_profile.organization.master_account.id

The organization master account id

_aws_profile.organization.parents[]
Show child fields
_aws_profile.organization.parents[].id

The id of the parent

_aws_profile.organization.parents[].name

The name of the parent

_aws_profile.organization.parents[].tags[]
Show child fields
_aws_profile.organization.parents[].tags[].key
_aws_profile.organization.parents[].tags[].value
_aws_profile.organization.parents[].type

The type of parent can be an organization unit or a root

_aws_profile.organization.tags[]
Show child fields
_aws_profile.organization.tags[].key
_aws_profile.organization.tags[].value
_aws_profile.type

The type of profile, either 'credentials' or 'assumed_role'

_aws_profile.via_profile_name

This IAM role for this profile is assumed by first utilizing another profile with this name to obtain credentials.

_aws_region Input Column

The AWS region to use.

VARCHAR
arn

Unique reservation ARN, e.g. 'arn:aws:medialive:us-west-2:123456789012:reservation:1234567'

VARCHAR
count

Number of reserved resources

BIGINT
currency_code

Currency code for usagePrice and fixedPrice in ISO-4217 format, e.g. 'USD'

VARCHAR
duration

Lease duration, e.g. '12'

BIGINT
duration_units

Units for duration, e.g. 'MONTHS'

VARCHAR
end

Reservation UTC end date and time in ISO-8601 format, e.g. '2019-03-01T00:00:00'

VARCHAR
fixed_price

One-time charge for each reserved resource, e.g. '0.0' for a NO_UPFRONT offering

DOUBLE
name

User specified reservation name

VARCHAR
offering_description

Offering description, e.g. 'HD AVC output at 10-20 Mbps, 30 fps, and standard VQ in US West (Oregon)'

VARCHAR
offering_id

Unique offering ID, e.g. '87654321'

VARCHAR
offering_type

Offering type, e.g. 'NO_UPFRONT'

VARCHAR
region

AWS region, e.g. 'us-west-2'

VARCHAR
renewal_settings

Renewal settings for the reservation

STRUCT(
"automatic_renewal" VARCHAR,
"renewal_count" BIGINT
)
Show child fields
renewal_settings.automatic_renewal

Automatic renewal status for the reservation

renewal_settings.renewal_count

Count for the reservation renewal

reservation_id

Unique reservation ID, e.g. '1234567'

VARCHAR
resource_specification

Resource configuration details

STRUCT(
"channel_class" VARCHAR,
"codec" VARCHAR,
"maximum_bitrate" VARCHAR,
"maximum_framerate" VARCHAR,
"resolution" VARCHAR,
"resource_type" VARCHAR,
"special_feature" VARCHAR,
"video_quality" VARCHAR
)
Show child fields
resource_specification.channel_class

Channel class, e.g. 'STANDARD'

resource_specification.codec

Codec, e.g. 'AVC'

resource_specification.maximum_bitrate

Maximum bitrate, e.g. 'MAX_20_MBPS'

resource_specification.maximum_framerate

Maximum framerate, e.g. 'MAX_30_FPS' (Outputs only)

resource_specification.resolution

Resolution, e.g. 'HD'

resource_specification.resource_type

Resource type, 'INPUT', 'OUTPUT', 'MULTIPLEX', or 'CHANNEL'

resource_specification.special_feature

Special feature, e.g. 'AUDIO_NORMALIZATION' (Channels only)

resource_specification.video_quality

Video quality, e.g. 'STANDARD' (Outputs only)

start

Reservation UTC start date and time in ISO-8601 format, e.g. '2018-03-01T00:00:00'

VARCHAR
state

Current state of reservation, e.g. 'ACTIVE'

VARCHAR
tags

A collection of key-value pairs

MAP(VARCHAR, VARCHAR)
usage_price

Recurring usage charge for each reserved resource, e.g. '157.0'

DOUBLE