Skip to main content

capacity_block_status

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

Overview

Namecapacity_block_status
TypeResource
Idaws.ec2.capacity_block_status

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
capacity_block_idstringThe ID of the Capacity Block.
capacity_reservation_statusesstringThe availability of capacity for the Capacity Block reservations.
interconnect_statusstringThe status of the high-bandwidth accelerator interconnect. Possible states include: ok the accelerator interconnect is healthy. impaired - accelerator interconnect communication is impaired. insufficient-data - insufficient data to determine accelerator interconnect status.
total_available_capacityintegerThe remaining capacity. Indicates the number of resources that can be launched into the Capacity Block.
total_capacityintegerThe combined amount of Available and Unavailable capacity in the Capacity Block.
total_unavailable_capacityintegerThe unavailable capacity. Indicates the instance capacity that is unavailable for use due to a system status check failure.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_capacity_block_statusselectregionCapacityBlockId, NextToken, MaxResults, Filter, DryRunDescribes the availability of capacity for the specified Capacity blocks, or all of your Capacity Blocks.

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)
CapacityBlockIdarrayThe ID of the Capacity Block.
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. interconnect-status - The status of the interconnect for the Capacity Block (ok | impaired | insufficient-data).
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 availability of capacity for the specified Capacity blocks, or all of your Capacity Blocks.

SELECT
capacity_block_id,
capacity_reservation_statuses,
interconnect_status,
total_available_capacity,
total_capacity,
total_unavailable_capacity
FROM aws.ec2.capacity_block_status
WHERE region = '{{ region }}' -- required
AND CapacityBlockId = '{{ CapacityBlockId }}'
AND NextToken = '{{ NextToken }}'
AND MaxResults = '{{ MaxResults }}'
AND Filter = '{{ Filter }}'
AND DryRun = '{{ DryRun }}'
;