Skip to main content

offerings

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

Overview

Nameofferings
TypeResource
Idaws.mediaconnect.offerings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
currency_codestringThe type of currency that is used for billing. The currencyCode used for all reservations is US dollars.
durationintegerThe length of time that your reservation would be active.
duration_unitsstringThe unit of measurement for the duration of the offering. (MONTHS)
offering_arnstringThe Amazon Resource Name (ARN) that MediaConnect assigns to the offering.
offering_descriptionstringA description of the offering.
price_per_unitstringThe cost of a single unit. This value, in combination with priceUnits, makes up the rate.
price_unitsstringThe unit of measurement that is used for billing. This value, in combination with pricePerUnit, makes up the rate. (HOURLY)
resource_specificationobjectA definition of the amount of outbound bandwidth that you would be reserving if you purchase the offering.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_offeringselectoffering_arn, regionDisplays the details of an offering. The response includes the offering description, duration, outbound bandwidth, price, and Amazon Resource Name (ARN).
list_offeringsselectregionmaxResults, nextTokenDisplays a list of all offerings that are available to this account in the current Amazon Web Services Region. If you have an active reservation (which means you've purchased an offering that has already started and hasn't expired yet), your account isn't eligible for other offerings.

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
offering_arnstringThe ARN of the offering.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return per API request. For example, you submit a ListOfferings request with MaxResults set at 5. Although 20 items match your request, the service returns no more than the first 5 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 10 results per page.
nextTokenstringThe token that identifies the batch of results that you want to see. For example, you submit a ListOfferings request with MaxResults set at 5. The service returns the first batch of results (up to 5) and a NextToken value. To see the next batch of results, you can submit the ListOfferings request a second time and specify the NextToken value.

SELECT examples

Displays the details of an offering. The response includes the offering description, duration, outbound bandwidth, price, and Amazon Resource Name (ARN).

SELECT
currency_code,
duration,
duration_units,
offering_arn,
offering_description,
price_per_unit,
price_units,
resource_specification
FROM aws.mediaconnect.offerings
WHERE offering_arn = '{{ offering_arn }}' -- required
AND region = '{{ region }}' -- required
;