Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListEnvironmentsCommand

Lists Amazon Web Services Migration Hub Refactor Spaces environments owned by a caller account or shared with the caller account.

example

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

import { MigrationHubRefactorSpacesClient, ListEnvironmentsCommand } from "@aws-sdk/client-migration-hub-refactor-spaces"; // ES Modules import
// const { MigrationHubRefactorSpacesClient, ListEnvironmentsCommand } = require("@aws-sdk/client-migration-hub-refactor-spaces"); // CommonJS import
const client = new MigrationHubRefactorSpacesClient(config);
const command = new ListEnvironmentsCommand(input);
const response = await client.send(command);
see

ListEnvironmentsCommandInput for command's input shape.

see

ListEnvironmentsCommandOutput for command's response shape.

see

config for MigrationHubRefactorSpacesClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ListEnvironmentsCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions

  • Returns EndpointParameterInstructions