Module Values.CreateAlarmModelRequestSource

Creates an alarm model to monitor an AWS IoT Events input attribute. You can use the alarm to get notified when the value is outside a specified range. For more information, see Create an alarm model in the AWS IoT Events Developer Guide.

Sourcetype nonrec t = {
  1. alarmModelName : AlarmModelName.t;
    (*

    A unique name that helps you identify the alarm model. You can't change this name after you create the alarm model.

    *)
  2. alarmModelDescription : AlarmModelDescription.t option;
    (*

    A description that tells you what the alarm model detects.

    *)
  3. roleArn : AmazonResourceName.t;
    (*

    The ARN of the IAM role that allows the alarm to perform actions and access AWS resources. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

    *)
  4. tags : Tags.t option;
    (*

    A list of key-value pairs that contain metadata for the alarm model. The tags help you manage the alarm model. For more information, see Tagging your AWS IoT Events resources in the AWS IoT Events Developer Guide. You can create up to 50 tags for one alarm model.

    *)
  5. key : AttributeJsonPath.t option;
    (*

    An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.

    *)
  6. severity : Severity.t option;
    (*

    A non-negative integer that reflects the severity level of the alarm.

    *)
  7. alarmRule : AlarmRule.t;
    (*

    Defines when your alarm is invoked.

    *)
  8. alarmNotification : AlarmNotification.t option;
    (*

    Contains information about one or more notification actions.

    *)
  9. alarmEventActions : AlarmEventActions.t option;
    (*

    Contains information about one or more alarm actions.

    *)
  10. alarmCapabilities : AlarmCapabilities.t option;
    (*

    Contains the configuration information of alarm state changes.

    *)
}
Sourceval context_ : string
Sourceval make : ?alarmModelDescription:??? -> ?tags:??? -> ?key:??? -> ?severity:??? -> ?alarmNotification:??? -> ?alarmEventActions:??? -> ?alarmCapabilities:??? -> alarmModelName:AlarmModelName.t -> roleArn:AmazonResourceName.t -> alarmRule:AlarmRule.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Integer of Severity.t | `List of [> `Structure of (string * [> `String of TagKey.t ]) list ] list | `String of AlarmModelName.t | `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `String of IdentityStoreId.t ]) list ]) list ] list | `String of SMSSenderId.t | `Structure of (string * [> `List of [> `Structure of (string * [> `Structure of (string * [> `String of IdentityStoreId.t ]) list ]) list ] list | `String of EmailSubject.t ]) list ]) list ] list | `Structure of (string * [> `Boolean of UseBase64.t | `String of AmazonResourceName.t | `Structure of (string * [> `Enum of string | `String of AmazonResourceName.t | `Structure of (string * [> `Enum of string | `String of ContentExpression.t ]) list ]) list ]) list ]) list ] list | `Structure of (string * [> `Boolean of DisabledOnInitialization.t | `Enum of string | `String of InputProperty.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t