describe_capacity_blocks
¶
describe_capacity_blocks(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 22344 22345 22346 22347 22348 22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 | |