list_nodes_summary
async
¶
list_nodes_summary(
aggregators: NodeAggregatorList,
*,
config_overrides: Optional[AsyncSSMClientConfig] = 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
>>> await 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/async_ssm.py
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 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 | |