import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListInstancesRequest, ListInstancesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListInstancesCommand}. */ export interface ListInstancesCommandInput extends ListInstancesRequest { } /** * @public * * The output of {@link ListInstancesCommand}. */ export interface ListInstancesCommandOutput extends ListInstancesResponse, __MetadataBearer { } declare const ListInstancesCommand_base: { new (input: ListInstancesCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListInstancesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Lists summary information about the instances that you registered by using a specified * service.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, ListInstancesCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, ListInstancesCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import * // import type { ServiceDiscoveryClientConfig } from "@aws-sdk/client-servicediscovery"; * const config = {}; // type is ServiceDiscoveryClientConfig * const client = new ServiceDiscoveryClient(config); * const input = { // ListInstancesRequest * ServiceId: "STRING_VALUE", // required * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new ListInstancesCommand(input); * const response = await client.send(command); * // { // ListInstancesResponse * // ResourceOwner: "STRING_VALUE", * // Instances: [ // InstanceSummaryList * // { // InstanceSummary * // Id: "STRING_VALUE", * // Attributes: { // Attributes * // "": "STRING_VALUE", * // }, * // CreatedByAccount: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListInstancesCommandInput - {@link ListInstancesCommandInput} * @returns {@link ListInstancesCommandOutput} * @see {@link ListInstancesCommandInput} for command's `input` shape. * @see {@link ListInstancesCommandOutput} for command's `response` shape. * @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape. * * @throws {@link InvalidInput} (client fault) *

One or more specified values aren't valid. For example, a required value might be missing, a * numeric value might be outside the allowed range, or a string value might exceed length * constraints.

* * @throws {@link ServiceNotFound} (client fault) *

No service exists with the specified ID.

* * @throws {@link ServiceDiscoveryServiceException} *

Base exception class for all service exceptions from ServiceDiscovery service.

* * * @example Example: List service instances * ```javascript * // Example: List service instances * const input = { * ServiceId: "srv-qzpwvt2tfqcegapy" * }; * const command = new ListInstancesCommand(input); * const response = await client.send(command); * /* response is * { * Instances: [ * { * Attributes: { * AWS_INSTANCE_IPV4: "172.2.1.3", * AWS_INSTANCE_PORT: "808" * }, * Id: "i-06bdabbae60f65a4e" * } * ] * } * *\/ * ``` * * @example List instances using service ARN for shared namespace * ```javascript * // This example lists instances using a service ARN instead of service ID. This is useful for listing instances associated with shared namespaces. * const input = { * ServiceId: "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004" * }; * const command = new ListInstancesCommand(input); * const response = await client.send(command); * /* response is * { * Instances: [ * { * Attributes: { * AWS_INSTANCE_IPV4: "192.0.2.44", * AWS_INSTANCE_PORT: "80" * }, * Id: "i-abcd1234" * } * ], * ResourceOwner: "123456789012" * } * *\/ * ``` * * @public */ export declare class ListInstancesCommand extends ListInstancesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListInstancesRequest; output: ListInstancesResponse; }; sdk: { input: ListInstancesCommandInput; output: ListInstancesCommandOutput; }; }; }