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 DisableAlarmActionsCommandProtected

Disables the actions for the specified alarms. When an alarm's actions are disabled, the alarm actions do not execute when the alarm state changes.

Example

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

import { CloudWatchClient, DisableAlarmActionsCommand } from "@aws-sdk/client-cloudwatch"; // ES Modules import
// const { CloudWatchClient, DisableAlarmActionsCommand } = require("@aws-sdk/client-cloudwatch"); // CommonJS import
const client = new CloudWatchClient(config);
const input = { // DisableAlarmActionsInput
AlarmNames: [ // AlarmNames // required
"STRING_VALUE",
],
};
const command = new DisableAlarmActionsCommand(input);
const response = await client.send(command);
// {};

Param

DisableAlarmActionsCommandInput

Returns

DisableAlarmActionsCommandOutput

See

Throws

CloudWatchServiceException

Base exception class for all service exceptions from CloudWatch service.

Hierarchy

Constructors

Properties

Methods