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 EnableAlarmActionsCommandProtected

Enables the actions for the specified alarms.

Example

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

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

Param

EnableAlarmActionsCommandInput

Returns

EnableAlarmActionsCommandOutput

See

Throws

CloudWatchServiceException

Base exception class for all service exceptions from CloudWatch service.

Hierarchy

Constructors

Properties

Methods