Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListDeploymentsCommandProtected

Returns a list of all deployments of a specific application. A deployment is a combination of a specific application and a specific version of that application. Each deployment is mapped to a particular application version.

Example

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

import { M2Client, ListDeploymentsCommand } from "@aws-sdk/client-m2"; // ES Modules import
// const { M2Client, ListDeploymentsCommand } = require("@aws-sdk/client-m2"); // CommonJS import
const client = new M2Client(config);
const input = { // ListDeploymentsRequest
nextToken: "STRING_VALUE",
maxResults: Number("int"),
applicationId: "STRING_VALUE", // required
};
const command = new ListDeploymentsCommand(input);
const response = await client.send(command);
// { // ListDeploymentsResponse
// deployments: [ // DeploymentList // required
// { // DeploymentSummary
// deploymentId: "STRING_VALUE", // required
// applicationId: "STRING_VALUE", // required
// environmentId: "STRING_VALUE", // required
// applicationVersion: Number("int"), // required
// status: "STRING_VALUE", // required
// creationTime: new Date("TIMESTAMP"), // required
// statusReason: "STRING_VALUE",
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

ListDeploymentsCommandInput

Returns

ListDeploymentsCommandOutput

See

Throws

AccessDeniedException (client fault)

The account or role doesn't have the right permissions to make the request.

Throws

InternalServerException (server fault)

An unexpected error occurred during the processing of the request.

Throws

ResourceNotFoundException (client fault)

The specified resource was not found.

Throws

ThrottlingException (client fault)

The number of requests made exceeds the limit.

Throws

ValidationException (client fault)

One or more parameters provided in the request is not valid.

Throws

M2ServiceException

Base exception class for all service exceptions from M2 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods