import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListLocationsRequest, ListLocationsResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListLocationsCommand}. */ export interface ListLocationsCommandInput extends ListLocationsRequest { } /** * @public * * The output of {@link ListLocationsCommand}. */ export interface ListLocationsCommandOutput extends ListLocationsResponse, __MetadataBearer { } declare const ListLocationsCommand_base: { new (input: ListLocationsCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [ListLocationsCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Returns a list of source and destination locations.

*

If you have more locations than are returned in a response (that is, the response * returns only a truncated list of your agents), the response contains a token that you can * specify in your next request to fetch the next page of locations.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { DataSyncClient, ListLocationsCommand } from "@aws-sdk/client-datasync"; // ES Modules import * // const { DataSyncClient, ListLocationsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import * // import type { DataSyncClientConfig } from "@aws-sdk/client-datasync"; * const config = {}; // type is DataSyncClientConfig * const client = new DataSyncClient(config); * const input = { // ListLocationsRequest * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * Filters: [ // LocationFilters * { // LocationFilter * Name: "LocationUri" || "LocationType" || "CreationTime", // required * Values: [ // FilterValues // required * "STRING_VALUE", * ], * Operator: "Equals" || "NotEquals" || "In" || "LessThanOrEqual" || "LessThan" || "GreaterThanOrEqual" || "GreaterThan" || "Contains" || "NotContains" || "BeginsWith", // required * }, * ], * }; * const command = new ListLocationsCommand(input); * const response = await client.send(command); * // { // ListLocationsResponse * // Locations: [ // LocationList * // { // LocationListEntry * // LocationArn: "STRING_VALUE", * // LocationUri: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param ListLocationsCommandInput - {@link ListLocationsCommandInput} * @returns {@link ListLocationsCommandOutput} * @see {@link ListLocationsCommandInput} for command's `input` shape. * @see {@link ListLocationsCommandOutput} for command's `response` shape. * @see {@link DataSyncClientResolvedConfig | config} for DataSyncClient's `config` shape. * * @throws {@link InternalException} (server fault) *

This exception is thrown when an error occurs in the DataSync * service.

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

This exception is thrown when the client submits a malformed request.

* * @throws {@link DataSyncServiceException} *

Base exception class for all service exceptions from DataSync service.

* * * @public */ export declare class ListLocationsCommand extends ListLocationsCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListLocationsRequest; output: ListLocationsResponse; }; sdk: { input: ListLocationsCommandInput; output: ListLocationsCommandOutput; }; }; }