listNodesSummary

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.

Samples

// This example illustrates one usage of ListNodesSummary
val resp = ssmClient.listNodesSummary {
    syncName = "AWS-QuickSetup-ManagedNode"
    aggregators = listOf<NodeAggregator>(
        NodeAggregator {
            aggregatorType = NodeAggregatorType.fromValue("Count")
            typeName = NodeTypeName.fromValue("Instance")
            attributeName = NodeAttributeName.fromValue("Region")
        }            
    )
    filters = listOf<NodeFilter>(
        NodeFilter {
            key = NodeFilterKey.fromValue("InstanceStatus")
            values = listOf<String>(
                "Active"
            )
            type = NodeFilterOperatorType.fromValue("Equal")
        }            
    )
    maxResults = 2
    nextToken = "A9lT8CAxj9aDFRi+MNAoFq08I---EXAMPLE"
}