UNPKG

@aws-sdk/client-ssm

Version:

AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native

165 lines (164 loc) 6.33 kB
import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListNodesSummaryRequest, ListNodesSummaryResult } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListNodesSummaryCommand}. */ export interface ListNodesSummaryCommandInput extends ListNodesSummaryRequest { } /** * @public * * The output of {@link ListNodesSummaryCommand}. */ export interface ListNodesSummaryCommandOutput extends ListNodesSummaryResult, __MetadataBearer { } declare const ListNodesSummaryCommand_base: { new (input: ListNodesSummaryCommandInput): import("@smithy/core/client").CommandImpl<ListNodesSummaryCommandInput, ListNodesSummaryCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; new (input: ListNodesSummaryCommandInput): import("@smithy/core/client").CommandImpl<ListNodesSummaryCommandInput, ListNodesSummaryCommandOutput, import("..").SSMClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** * <p>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.</p> * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SSMClient, ListNodesSummaryCommand } from "@aws-sdk/client-ssm"; // ES Modules import * // const { SSMClient, ListNodesSummaryCommand } = require("@aws-sdk/client-ssm"); // CommonJS import * // import type { SSMClientConfig } from "@aws-sdk/client-ssm"; * const config = {}; // type is SSMClientConfig * const client = new SSMClient(config); * const input = { // ListNodesSummaryRequest * SyncName: "STRING_VALUE", * Filters: [ // NodeFilterList * { // NodeFilter * Key: "AgentType" || "AgentVersion" || "ComputerName" || "InstanceId" || "InstanceStatus" || "IpAddress" || "ManagedStatus" || "PlatformName" || "PlatformType" || "PlatformVersion" || "ResourceType" || "OrganizationalUnitId" || "OrganizationalUnitPath" || "Region" || "AccountId" || "SourceType" || "SourceId" || "SourceLocation" || "AvailabilityZone" || "AvailabilityZoneId", // required * Values: [ // NodeFilterValueList // required * "STRING_VALUE", * ], * Type: "Equal" || "NotEqual" || "BeginWith", * }, * ], * Aggregators: [ // NodeAggregatorList // required * { // NodeAggregator * AggregatorType: "Count", // required * TypeName: "Instance", // required * AttributeName: "AgentVersion" || "PlatformName" || "PlatformType" || "PlatformVersion" || "Region" || "ResourceType" || "SourceType" || "AvailabilityZone", // required * Aggregators: [ * { * AggregatorType: "Count", // required * TypeName: "Instance", // required * AttributeName: "AgentVersion" || "PlatformName" || "PlatformType" || "PlatformVersion" || "Region" || "ResourceType" || "SourceType" || "AvailabilityZone", // required * Aggregators: "<NodeAggregatorList>", * }, * ], * }, * ], * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new ListNodesSummaryCommand(input); * const response = await client.send(command); * // { // ListNodesSummaryResult * // Summary: [ // NodeSummaryList * // { // NodeSummary * // "<keys>": "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListNodesSummaryCommandInput - {@link ListNodesSummaryCommandInput} * @returns {@link ListNodesSummaryCommandOutput} * @see {@link ListNodesSummaryCommandInput} for command's `input` shape. * @see {@link ListNodesSummaryCommandOutput} for command's `response` shape. * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. * * @throws {@link InternalServerError} (server fault) * <p>An error occurred on the server side.</p> * * @throws {@link InvalidAggregatorException} (client fault) * <p>The specified aggregator isn't valid for the group type. Verify that the aggregator you * provided is supported.</p> * * @throws {@link InvalidFilter} (client fault) * <p>The filter name isn't valid. Verify that you entered the correct name and try again.</p> * * @throws {@link InvalidNextToken} (client fault) * <p>The specified token isn't valid.</p> * * @throws {@link ResourceDataSyncNotFoundException} (client fault) * <p>The specified sync name wasn't found.</p> * * @throws {@link UnsupportedOperationException} (client fault) * <p>This operation is not supported for the current account. You must first enable the Systems Manager integrated experience in your account.</p> * * @throws {@link SSMServiceException} * <p>Base exception class for all service exceptions from SSM service.</p> * * * @example ListNodesSummary * ```javascript * // This example illustrates one usage of ListNodesSummary * const input = { * Aggregators: [ * { * AggregatorType: "Count", * AttributeName: "Region", * TypeName: "Instance" * } * ], * Filters: [ * { * Key: "InstanceStatus", * Type: "Equal", * Values: [ * "Active" * ] * } * ], * MaxResults: 2, * NextToken: "A9lT8CAxj9aDFRi+MNAoFq08I---EXAMPLE", * SyncName: "AWS-QuickSetup-ManagedNode" * }; * const command = new ListNodesSummaryCommand(input); * const response = await client.send(command); * /* response is * { * Summary: [ * { * Count: "26", * Region: "us-east-1" * }, * { * Count: "7", * Region: "us-east-2" * } * ] * } * *\/ * ``` * * @public */ export declare class ListNodesSummaryCommand extends ListNodesSummaryCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListNodesSummaryRequest; output: ListNodesSummaryResult; }; sdk: { input: ListNodesSummaryCommandInput; output: ListNodesSummaryCommandOutput; }; }; }