list_nodes_summary
¶
list_nodes_summary(
aggregators: NodeAggregatorList,
*,
config_overrides: Optional[SSMClientConfig] = None,
sync_name: Optional[ResourceDataSyncName] = None,
filters: Optional[NodeFilterList] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
) -> ListNodesSummaryResult
Generates a summary of managed instance/node metadata based on the filters and aggregators you specify. Results are grouped by the input aggregator you specify.
Parameters:
-
sync_name(Optional[ResourceDataSyncName], default:None) –The name of the Amazon Web Services managed resource data sync to retrieve information about.
For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is
AWS-QuickSetup-ManagedNode.For single account/single-Region configurations, the parameter is not required.
-
filters(Optional[NodeFilterList], default:None) –One or more filters. Use a filter to generate a summary that matches your specified filter criteria.
-
aggregators(NodeAggregatorList) –Specify one or more aggregators to return a count of managed nodes that match that expression. For example, a count of managed nodes by operating system.
-
next_token(Optional[NextToken], default:None) –The token for the next set of items to return. (You received this token from a previous call.) The call also returns a token that you can specify in a subsequent call to get the next set of results.
-
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.
-
InvalidNextToken–The specified token isn't valid.
-
ResourceDataSyncNotFoundException–The specified sync name wasn't found.
-
UnsupportedOperationException–This operation is not supported for the current account. You must first enable the Systems Manager integrated experience in your account.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
ListNodesSummary This example illustrates one usage of ListNodesSummary
>>> client.list_nodes_summary(sync_name='AWS-QuickSetup-ManagedNode', aggregators=[{'AggregatorType': 'Count', 'TypeName': 'Instance', 'AttributeName': 'Region'}], filters=[{'Key': 'InstanceStatus', 'Values': ['Active'], 'Type': 'Equal'}], max_results=2, next_token='A9lT8CAxj9aDFRi+MNAoFq08I---EXAMPLE')
Source code in docs_src/capo_ssm/_services/ssm.py
8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 | |