AWS SDK for .NET Documentation
PutMetricAlarm Method (putMetricAlarmRequest)
AmazonAmazon.CloudWatchAmazonCloudWatchPutMetricAlarm(PutMetricAlarmRequest) Did this page help you?   Yes   No    Tell us about it...

Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA . The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue is then executed.

NOTE: When updating an existing alarm, its StateValue is left unchanged.

Declaration Syntax
C#
PutMetricAlarmResponse PutMetricAlarm(
	PutMetricAlarmRequest putMetricAlarmRequest
)
Parameters
putMetricAlarmRequest (PutMetricAlarmRequest)
Container for the necessary parameters to execute the PutMetricAlarm service method on AmazonCloudWatch.
Exceptions
ExceptionCondition
LimitExceededException

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)