Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Lists all the Amazon Web Services Migration Hub Refactor Spaces routes within an application.

Example

Use a bare-bones client and the command you need to make an API call.

import { MigrationHubRefactorSpacesClient, ListRoutesCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import
// const { MigrationHubRefactorSpacesClient, ListRoutesCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import
const client = new MigrationHubRefactorSpacesClient(config);
const input = { // ListRoutesRequest
EnvironmentIdentifier: "STRING_VALUE", // required
ApplicationIdentifier: "STRING_VALUE", // required
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new ListRoutesCommand(input);
const response = await client.send(command);
// { // ListRoutesResponse
// RouteSummaryList: [ // RouteSummaries
// { // RouteSummary
// RouteId: "STRING_VALUE",
// Arn: "STRING_VALUE",
// OwnerAccountId: "STRING_VALUE",
// CreatedByAccountId: "STRING_VALUE",
// RouteType: "STRING_VALUE",
// ServiceId: "STRING_VALUE",
// ApplicationId: "STRING_VALUE",
// EnvironmentId: "STRING_VALUE",
// SourcePath: "STRING_VALUE",
// Methods: [ // HttpMethods
// "STRING_VALUE",
// ],
// IncludeChildPaths: true || false,
// PathResourceToId: { // PathResourceToId
// "<keys>": "STRING_VALUE",
// },
// State: "STRING_VALUE",
// Tags: { // TagMap
// "<keys>": "STRING_VALUE",
// },
// Error: { // ErrorResponse
// Code: "STRING_VALUE",
// Message: "STRING_VALUE",
// AccountId: "STRING_VALUE",
// ResourceIdentifier: "STRING_VALUE",
// ResourceType: "STRING_VALUE",
// AdditionalDetails: { // AdditionalDetails
// "<keys>": "STRING_VALUE",
// },
// },
// LastUpdatedTime: new Date("TIMESTAMP"),
// CreatedTime: new Date("TIMESTAMP"),
// AppendSourcePath: true || false,
// },
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListRoutesCommandInput

Returns

ListRoutesCommandOutput

See

Throws

AccessDeniedException (client fault)

The user does not have sufficient access to perform this action.

Throws

ConflictException (client fault)

Updating or deleting a resource can cause an inconsistent state.

Throws

InternalServerException (server fault)

An unexpected error occurred while processing the request.

Throws

ResourceNotFoundException (client fault)

The request references a resource that does not exist.

Throws

ServiceQuotaExceededException (client fault)

The request would cause a service quota to be exceeded.

Throws

ThrottlingException (client fault)

Request was denied because the request was throttled.

Throws

ValidationException (client fault)

The input does not satisfy the constraints specified by an Amazon Web Service.

Throws

MigrationHubRefactorSpacesServiceException

Base exception class for all service exceptions from MigrationHubRefactorSpaces service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<ListRoutesCommandInput, ListRoutesCommandOutput>

Methods