describe_capacity_blocks
async
¶
describe_capacity_blocks(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
capacity_block_ids: Optional[CapacityBlockIds] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeCapacityBlocksMaxResults] = None,
filters: Optional[FilterList] = None,
dry_run: Optional[Boolean] = None,
) -> DescribeCapacityBlocksResult
Describes details about Capacity Blocks in the Amazon Web Services Region that you're currently using.
Parameters:
-
capacity_block_ids(Optional[CapacityBlockIds], default:None) –The IDs of the Capacity Blocks.
-
next_token(Optional[String], default:None) –The token to use to retrieve the next page of results.
-
max_results(Optional[DescribeCapacityBlocksMaxResults], default:None) –The 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.
-
filters(Optional[FilterList], default:None) –One or more filters.
-
capacity-block-id- The ID of the Capacity Block. -
ultraserver-type- The Capacity Block type. The type can beinstancesorultraservers. -
availability-zone- The Availability Zone of the Capacity Block. -
start-date- The date and time at which the Capacity Block was started. -
end-date- The date and time at which the Capacity Block expires. When a Capacity Block expires, all instances in the Capacity Block are terminated. -
create-date- The date and time at which the Capacity Block was created. -
state- The state of the Capacity Block (active|expired|unavailable|cancelled|failed|scheduled|payment-pending|payment-failed). -
tags- The tags assigned to the Capacity Block.
-
-
dry_run(Optional[Boolean], default:None) –Checks 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 isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 | |