get_inventory
¶
get_inventory(
*,
config_overrides: Optional[SSMClientConfig] = 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/ssm.py
6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 | |