Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListLocationsCommand

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.

import { DataSyncClient, ListLocationsCommand } from "@aws-sdk/client-datasync"; // ES Modules import
// const { DataSyncClient, ListLocationsCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
const client = new DataSyncClient(config);
const command = new ListLocationsCommand(input);
const response = await client.send(command);
see

ListLocationsCommandInput for command's input shape.

see

ListLocationsCommandOutput for command's response shape.

see

config for DataSyncClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ListLocationsCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<ListLocationsCommandInput, ListLocationsCommandOutput>

Methods

Static getEndpointParameterInstructions