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
6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 | |