import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListServicesRequest, ListServicesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListServicesCommand}. */ export interface ListServicesCommandInput extends ListServicesRequest { } /** * @public * * The output of {@link ListServicesCommand}. */ export interface ListServicesCommandOutput extends ListServicesResponse, __MetadataBearer { } declare const ListServicesCommand_base: { new (input: ListServicesCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListServicesCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Lists summary information for all the services that are associated with one or more * namespaces.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ServiceDiscoveryClient, ListServicesCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import * // const { ServiceDiscoveryClient, ListServicesCommand } = 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 = { // ListServicesRequest * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * Filters: [ // ServiceFilters * { // ServiceFilter * Name: "NAMESPACE_ID" || "RESOURCE_OWNER", // required * Values: [ // FilterValues // required * "STRING_VALUE", * ], * Condition: "EQ" || "IN" || "BETWEEN" || "BEGINS_WITH", * }, * ], * }; * const command = new ListServicesCommand(input); * const response = await client.send(command); * // { // ListServicesResponse * // Services: [ // ServiceSummariesList * // { // ServiceSummary * // Id: "STRING_VALUE", * // Arn: "STRING_VALUE", * // ResourceOwner: "STRING_VALUE", * // Name: "STRING_VALUE", * // Type: "HTTP" || "DNS_HTTP" || "DNS", * // Description: "STRING_VALUE", * // InstanceCount: Number("int"), * // DnsConfig: { // DnsConfig * // NamespaceId: "STRING_VALUE", * // RoutingPolicy: "MULTIVALUE" || "WEIGHTED", * // DnsRecords: [ // DnsRecordList // required * // { // DnsRecord * // Type: "SRV" || "A" || "AAAA" || "CNAME", // required * // TTL: Number("long"), // required * // }, * // ], * // }, * // HealthCheckConfig: { // HealthCheckConfig * // Type: "HTTP" || "HTTPS" || "TCP", // required * // ResourcePath: "STRING_VALUE", * // FailureThreshold: Number("int"), * // }, * // HealthCheckCustomConfig: { // HealthCheckCustomConfig * // FailureThreshold: Number("int"), * // }, * // CreateDate: new Date("TIMESTAMP"), * // CreatedByAccount: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListServicesCommandInput - {@link ListServicesCommandInput} * @returns {@link ListServicesCommandOutput} * @see {@link ListServicesCommandInput} for command's `input` shape. * @see {@link ListServicesCommandOutput} 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 ServiceDiscoveryServiceException} *

Base exception class for all service exceptions from ServiceDiscovery service.

* * * @example Example: List services * ```javascript * // Example: List services * const input = { /* empty *\/ }; * const command = new ListServicesCommand(input); * const response = await client.send(command); * /* response is * { * Services: [ * { * Arn: "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita", * CreateDate: 1.587081768334E9, * CreatedByAccount: "123456789012", * DnsConfig: { * DnsRecords: [ * { * TTL: 60, * Type: "A" * } * ], * RoutingPolicy: "MULTIVALUE" * }, * Id: "srv-p5zdwlg5uvvzjita", * Name: "myservice", * ResourceOwner: "123456789012", * Type: "DNS" * } * ] * } * *\/ * ``` * * @public */ export declare class ListServicesCommand extends ListServicesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListServicesRequest; output: ListServicesResponse; }; sdk: { input: ListServicesCommandInput; output: ListServicesCommandOutput; }; }; }