Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListEnvironmentsCommandProtected

Gets a list of Cloud9 development environment identifiers.

Example

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

import { Cloud9Client, ListEnvironmentsCommand } from "@aws-sdk/client-cloud9"; // ES Modules import
// const { Cloud9Client, ListEnvironmentsCommand } = require("@aws-sdk/client-cloud9"); // CommonJS import
const client = new Cloud9Client(config);
const input = { // ListEnvironmentsRequest
nextToken: "STRING_VALUE",
maxResults: Number("int"),
};
const command = new ListEnvironmentsCommand(input);
const response = await client.send(command);
// { // ListEnvironmentsResult
// nextToken: "STRING_VALUE",
// environmentIds: [ // EnvironmentIdList
// "STRING_VALUE",
// ],
// };

Param

ListEnvironmentsCommandInput

Returns

ListEnvironmentsCommandOutput

See

Throws

BadRequestException (client fault)

The target request is invalid.

Throws

ConflictException (client fault)

A conflict occurred.

Throws

ForbiddenException (client fault)

An access permissions issue occurred.

Throws

InternalServerErrorException (server fault)

An internal server error occurred.

Throws

LimitExceededException (client fault)

A service limit was exceeded.

Throws

NotFoundException (client fault)

The target resource cannot be found.

Throws

TooManyRequestsException (client fault)

Too many service requests were made over the given time period.

Throws

Cloud9ServiceException

Base exception class for all service exceptions from Cloud9 service.

Example

ListEnvironments

//
const input = {};
const command = new ListEnvironmentsCommand(input);
const response = await client.send(command);
/* response ==
{
"environmentIds": [
"349c86d4579e4e7298d500ff57a6b2EX",
"45a3da47af0840f2b0c0824f5ee232EX"
]
}
*/
// example id: listenvironments-1516823687205

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods