Class CreateSimpleFunctionAlarmCommandProtected

Create a new simple function alarm with default alarm values.

Example

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

import { MonitoringClient, CreateSimpleFunctionAlarmCommand } from "@stedi/sdk-client-monitoring"; // ES Modules import
// const { MonitoringClient, CreateSimpleFunctionAlarmCommand } = require("@stedi/sdk-client-monitoring"); // CommonJS import
const client = new MonitoringClient(config);
const input = { // CreateSimpleFunctionAlarmInput
functionName: "STRING_VALUE", // required
idempotencyKey: "STRING_VALUE",
actionsEnabled: "ENABLED" || "DISABLED",
};
const command = new CreateSimpleFunctionAlarmCommand(input);
const response = await client.send(command);
// { // CreateSimpleFunctionAlarmOutput
// functionName: "STRING_VALUE", // required
// idempotencyKey: "STRING_VALUE",
// resourceDetail: { // CreateResourceDetail
// idempotencyKey: "STRING_VALUE", // required
// },
// };

Param

CreateSimpleFunctionAlarmCommandInput

Returns

CreateSimpleFunctionAlarmCommandOutput

See

Throws

ProductUnavailableException (client fault)

Throws

ResourceAlreadyExistsException (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

ResourceUnderChangeException (client fault)

Throws

ServiceException (server fault)

Throws

MonitoringServiceException

Base exception class for all service exceptions from Monitoring service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Returns EndpointParameterInstructions