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
8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 | |