AWS SDK for .NET Documentation
SetAlarmStateRequest Class
AmazonAmazon.CloudWatch.ModelSetAlarmStateRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the SetAlarmState operation.

Temporarily sets the state of an alarm. When the updated StateValue differs from the previous value, the action configured for the appropriate state is invoked. This is not a permanent change. The next periodic alarm check (in about a minute) will set the alarm to its actual state.

Declaration Syntax
C#
public class SetAlarmStateRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
SetAlarmStateRequest()()()()
Initializes a new instance of the SetAlarmStateRequest class

AlarmName
The descriptive name for the alarm. This name must be unique within the user's AWS account. The maximum length is 255 characters.

Constraints:

Length
1 - 255


Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
StateReason
The reason that this alarm is set to this specific state (in human-readable text format)

Constraints:

Length
0 - 1023


StateReasonData
The reason that this alarm is set to this specific state (in machine-readable JSON format)

Constraints:

Length
0 - 4000


StateValue
The value of the state.

Constraints:

Allowed Values
OK, ALARM, INSUFFICIENT_DATA


ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithAlarmName(String) Obsolete.
Sets the AlarmName property

WithStateReason(String) Obsolete.
Sets the StateReason property

WithStateReasonData(String) Obsolete.
Sets the StateReasonData property

WithStateValue(String) Obsolete.
Sets the StateValue property

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 SetAlarmStateRequest
See Also

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