Skip to main content

capacity_block_extension_histories

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

Overview

Namecapacity_block_extension_histories
TypeResource
Idaws.ec2.capacity_block_extension_histories

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
availability_zonestringThe Availability Zone of the Capacity Block extension.
availability_zone_idstringThe Availability Zone ID of the Capacity Block extension.
capacity_block_extension_duration_hoursintegerThe duration of the Capacity Block extension in hours.
capacity_block_extension_end_datestringThe end date of the Capacity Block extension.
capacity_block_extension_offering_idstringThe ID of the Capacity Block extension offering.
capacity_block_extension_purchase_datestringThe date when the Capacity Block extension was purchased.
capacity_block_extension_start_datestringThe start date of the Capacity Block extension.
capacity_block_extension_statusstringThe status of the Capacity Block extension. A Capacity Block extension can have one of the following statuses: payment-pending - The Capacity Block extension payment is processing. If your payment can't be processed within 12 hours, the Capacity Block extension is failed. payment-failed - Payment for the Capacity Block extension request was not successful. payment-succeeded - Payment for the Capacity Block extension request was successful. You receive an invoice that reflects the one-time upfront payment. In the invoice, you can associate the paid amount with the Capacity Block reservation ID.
capacity_reservation_idstringThe reservation ID of the Capacity Block extension.
currency_codestringThe currency of the payment for the Capacity Block extension.
instance_countintegerThe number of instances in the Capacity Block extension.
instance_typestringThe instance type of the Capacity Block extension.
upfront_feestringThe total price to be paid up front.
zone_typestringThe type of zone where the Capacity Block extension is located.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_capacity_block_extension_historyselectregionCapacityReservationId, NextToken, MaxResults, Filter, DryRunDescribes the events for the specified Capacity Block extension during the specified time.

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)
CapacityReservationIdarrayThe IDs of Capacity Block reservations that you want to display the history for.
DryRunbooleanChecks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.
FilterarrayOne or more filters availability-zone - The Availability Zone of the extension. availability-zone-id - The Availability Zone ID of the extension. capacity-block-extension-offering-id - The ID of the extension offering. capacity-block-extension-status - The status of the extension (payment-pending | payment-failed | payment-succeeded). capacity-reservation-id - The reservation ID of the extension. instance-type - The instance type of the extension.
MaxResultsintegerThe maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
NextTokenstringThe token to use to retrieve the next page of results.

SELECT examples

Describes the events for the specified Capacity Block extension during the specified time.

SELECT
availability_zone,
availability_zone_id,
capacity_block_extension_duration_hours,
capacity_block_extension_end_date,
capacity_block_extension_offering_id,
capacity_block_extension_purchase_date,
capacity_block_extension_start_date,
capacity_block_extension_status,
capacity_reservation_id,
currency_code,
instance_count,
instance_type,
upfront_fee,
zone_type
FROM aws.ec2.capacity_block_extension_histories
WHERE region = '{{ region }}' -- required
AND CapacityReservationId = '{{ CapacityReservationId }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND Filter = '{{ Filter }}'
AND DryRun = '{{ DryRun }}'
;