Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListMilestonesCommandProtected

List all milestones for an existing workload.

Example

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

import { WellArchitectedClient, ListMilestonesCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
// const { WellArchitectedClient, ListMilestonesCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
const client = new WellArchitectedClient(config);
const input = { // ListMilestonesInput
WorkloadId: "STRING_VALUE", // required
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new ListMilestonesCommand(input);
const response = await client.send(command);
// { // ListMilestonesOutput
// WorkloadId: "STRING_VALUE",
// MilestoneSummaries: [ // MilestoneSummaries
// { // MilestoneSummary
// MilestoneNumber: Number("int"),
// MilestoneName: "STRING_VALUE",
// RecordedAt: new Date("TIMESTAMP"),
// WorkloadSummary: { // WorkloadSummary
// WorkloadId: "STRING_VALUE",
// WorkloadArn: "STRING_VALUE",
// WorkloadName: "STRING_VALUE",
// Owner: "STRING_VALUE",
// UpdatedAt: new Date("TIMESTAMP"),
// Lenses: [ // WorkloadLenses
// "STRING_VALUE",
// ],
// RiskCounts: { // RiskCounts
// "<keys>": Number("int"),
// },
// ImprovementStatus: "NOT_APPLICABLE" || "NOT_STARTED" || "IN_PROGRESS" || "COMPLETE" || "RISK_ACKNOWLEDGED",
// Profiles: [ // WorkloadProfiles
// { // WorkloadProfile
// ProfileArn: "STRING_VALUE",
// ProfileVersion: "STRING_VALUE",
// },
// ],
// PrioritizedRiskCounts: {
// "<keys>": Number("int"),
// },
// },
// },
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListMilestonesCommandInput

Returns

ListMilestonesCommandOutput

See

Throws

AccessDeniedException (client fault)

User does not have sufficient access to perform this action.

Throws

InternalServerException (server fault)

There is a problem with the Well-Architected Tool API service.

Throws

ResourceNotFoundException (client fault)

The requested resource was not found.

Throws

ThrottlingException (client fault)

Request was denied due to request throttling.

Throws

ValidationException (client fault)

The user input is not valid.

Throws

WellArchitectedServiceException

Base exception class for all service exceptions from WellArchitected service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods