get_inventory
async
¶
get_inventory(
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
filters: Optional[InventoryFilterList] = None,
aggregators: Optional[InventoryAggregatorList] = None,
result_attributes: Optional[ResultAttributeList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> GetInventoryResult
Query inventory information. This includes managed node status, such as Stopped or Terminated.
Parameters:
-
filters(Optional[InventoryFilterList], default:None) –One or more filters. Use a filter to return a more specific list of results.
-
aggregators(Optional[InventoryAggregatorList], default:None) –Returns counts of inventory types based on one or more expressions. For example, if you aggregate by using an expression that uses the
AWS:InstanceInformation.PlatformTypetype, you can see a count of how many Windows and Linux managed nodes exist in your inventoried fleet. -
result_attributes(Optional[ResultAttributeList], default:None) –The list of inventory item types to return.
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.)
-
max_results(Optional[MaxResults], default:None) –The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.
Raises:
-
InternalServerError–An error occurred on the server side.
-
InvalidAggregatorException–The specified aggregator isn't valid for the group type. Verify that the aggregator you provided is supported.
-
InvalidFilter–The filter name isn't valid. Verify that you entered the correct name and try again.
-
InvalidInventoryGroupException–The specified inventory group isn't valid.
-
InvalidNextToken–The specified token isn't valid.
-
InvalidResultAttributeException–The specified inventory item result attribute isn't valid.
-
InvalidTypeNameException–The parameter type name isn't valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ssm/_services/async_ssm.py
6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 | |