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.
Protected
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.
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 importconst client = new CloudWatchClient(config);const input = { // DisableAlarmActionsInput AlarmNames: [ // AlarmNames // required "STRING_VALUE", ],};const command = new DisableAlarmActionsCommand(input);const response = await client.send(command);// {};
DisableAlarmActionsCommandInput
DisableAlarmActionsCommandOutput
input
response
config
CloudWatchServiceException
Base exception class for all service exceptions from CloudWatch service.
Readonly
Static
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.
Param
DisableAlarmActionsCommandInput
Returns
DisableAlarmActionsCommandOutput
See
input
shape.response
shape.config
shape.Throws
CloudWatchServiceException
Base exception class for all service exceptions from CloudWatch service.