describe_instance_topology
async
¶
describe_instance_topology(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
next_token: Optional[String] = None,
max_results: Optional[DescribeInstanceTopologyMaxResults] = None,
instance_ids: Optional[DescribeInstanceTopologyInstanceIdSet] = None,
group_names: Optional[DescribeInstanceTopologyGroupNameSet] = None,
filters: Optional[FilterList] = None,
) -> DescribeInstanceTopologyResult
Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone. You can use this information to determine the relative proximity of your EC2 instances within the Amazon Web Services network to support your tightly coupled workloads.
Instance topology is supported for specific instance types only. For more information, see Prerequisites for Amazon EC2 instance topology in the Amazon EC2 User Guide.
The Amazon EC2 API follows an eventual consistency model due to the distributed nature of the system supporting it. As a result, when you call the DescribeInstanceTopology API command immediately after launching instances, the response might return a null value for capacityBlockId because the data might not have fully propagated across all subsystems. For more information, see Eventual consistency in the Amazon EC2 API in the Amazon EC2 Developer Guide.
For more information, see Amazon EC2 topology in the Amazon EC2 User Guide.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
next_token(Optional[String], default:None) –The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
-
max_results(Optional[DescribeInstanceTopologyMaxResults], 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.
You can't specify this parameter and the instance IDs parameter in the same request.
Default:
20 -
instance_ids(Optional[DescribeInstanceTopologyInstanceIdSet], default:None) –The instance IDs.
Default: Describes all your instances.
Constraints: Maximum 100 explicitly specified instance IDs.
-
group_names(Optional[DescribeInstanceTopologyGroupNameSet], default:None) –The name of the placement group that each instance is in.
Constraints: Maximum 100 explicitly specified placement group names.
-
filters(Optional[FilterList], default:None) –The filters.
-
availability-zone- The name of the Availability Zone (for example,us-west-2a) or Local Zone (for example,us-west-2-lax-1b) that the instance is in. -
instance-type- The instance type (for example,p4d.24xlarge) or instance family (for example,p4d*). You can use the*wildcard to match zero or more characters, or the?wildcard to match zero or one character. -
zone-id- The ID of the Availability Zone (for example,usw2-az2) or Local Zone (for example,usw2-lax1-az1) that the instance is in.
-
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
27492 27493 27494 27495 27496 27497 27498 27499 27500 27501 27502 27503 27504 27505 27506 27507 27508 27509 27510 27511 27512 27513 27514 27515 27516 27517 27518 27519 27520 27521 27522 27523 27524 27525 27526 27527 27528 27529 27530 27531 27532 27533 27534 27535 27536 27537 27538 27539 27540 27541 27542 27543 27544 27545 27546 27547 27548 27549 27550 27551 27552 27553 27554 27555 27556 27557 27558 27559 27560 27561 | |