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
8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 | |