Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class CreateMilestoneCommandProtected

Create a milestone for an existing workload.

Example

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

import { WellArchitectedClient, CreateMilestoneCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import
// const { WellArchitectedClient, CreateMilestoneCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS import
const client = new WellArchitectedClient(config);
const input = { // CreateMilestoneInput
WorkloadId: "STRING_VALUE", // required
MilestoneName: "STRING_VALUE", // required
ClientRequestToken: "STRING_VALUE", // required
};
const command = new CreateMilestoneCommand(input);
const response = await client.send(command);
// { // CreateMilestoneOutput
// WorkloadId: "STRING_VALUE",
// MilestoneNumber: Number("int"),
// };

Param

CreateMilestoneCommandInput

Returns

CreateMilestoneCommandOutput

See

Throws

AccessDeniedException (client fault)

User does not have sufficient access to perform this action.

Throws

ConflictException (client fault)

The resource has already been processed, was deleted, or is too large.

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

ServiceQuotaExceededException (client fault)

The user has reached their resource quota.

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