Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class PutAlertManagerDefinitionCommandProtected

Update an alert manager definition.

Example

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

import { AmpClient, PutAlertManagerDefinitionCommand } from "@aws-sdk/client-amp"; // ES Modules import
// const { AmpClient, PutAlertManagerDefinitionCommand } = require("@aws-sdk/client-amp"); // CommonJS import
const client = new AmpClient(config);
const input = { // PutAlertManagerDefinitionRequest
workspaceId: "STRING_VALUE", // required
data: "BLOB_VALUE", // required
clientToken: "STRING_VALUE",
};
const command = new PutAlertManagerDefinitionCommand(input);
const response = await client.send(command);
// { // PutAlertManagerDefinitionResponse
// status: { // AlertManagerDefinitionStatus
// statusCode: "STRING_VALUE", // required
// statusReason: "STRING_VALUE",
// },
// };

Param

PutAlertManagerDefinitionCommandInput

Returns

PutAlertManagerDefinitionCommandOutput

See

Throws

AccessDeniedException (client fault) User does not have sufficient access to perform this action.

Throws

ConflictException (client fault) Updating or deleting a resource can cause an inconsistent state.

Throws

InternalServerException (server fault) Unexpected error during processing of request.

Throws

ResourceNotFoundException (client fault) Request references a resource which does not exist.

Throws

ServiceQuotaExceededException (client fault) Request would cause a service quota to be exceeded.

Throws

ThrottlingException (client fault) Request was denied due to request throttling.

Throws

ValidationException (client fault) The input fails to satisfy the constraints specified by an AWS service.

Throws

AmpServiceException

Base exception class for all service exceptions from Amp service.

Hierarchy

Constructors

Properties

Methods