libZSservicesZSamazonka-ioteventsZSamazonka-iotevents
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoTEvents.DescribeAlarmModel

Description

Retrieves information about an alarm model. If you don't specify a value for the alarmModelVersion parameter, the latest version is returned.

Synopsis

Creating a Request

data DescribeAlarmModel Source #

See: newDescribeAlarmModel smart constructor.

Constructors

DescribeAlarmModel' 

Fields

Instances

Instances details
Eq DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Read DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Show DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Generic DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Associated Types

type Rep DescribeAlarmModel :: Type -> Type #

NFData DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Methods

rnf :: DescribeAlarmModel -> () #

Hashable DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

AWSRequest DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Associated Types

type AWSResponse DescribeAlarmModel #

ToHeaders DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

ToPath DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

ToQuery DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

type Rep DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

type Rep DescribeAlarmModel = D1 ('MetaData "DescribeAlarmModel" "Amazonka.IoTEvents.DescribeAlarmModel" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "DescribeAlarmModel'" 'PrefixI 'True) (S1 ('MetaSel ('Just "alarmModelVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "alarmModelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DescribeAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

newDescribeAlarmModel Source #

Create a value of DescribeAlarmModel with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:alarmModelVersion:DescribeAlarmModel', describeAlarmModel_alarmModelVersion - The version of the alarm model.

$sel:alarmModelName:DescribeAlarmModel', describeAlarmModel_alarmModelName - The name of the alarm model.

Request Lenses

Destructuring the Response

data DescribeAlarmModelResponse Source #

See: newDescribeAlarmModelResponse smart constructor.

Constructors

DescribeAlarmModelResponse' 

Fields

Instances

Instances details
Eq DescribeAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Read DescribeAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Show DescribeAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Generic DescribeAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

Associated Types

type Rep DescribeAlarmModelResponse :: Type -> Type #

NFData DescribeAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

type Rep DescribeAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.DescribeAlarmModel

type Rep DescribeAlarmModelResponse = D1 ('MetaData "DescribeAlarmModelResponse" "Amazonka.IoTEvents.DescribeAlarmModel" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "DescribeAlarmModelResponse'" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlarmModelVersionStatus))) :*: (S1 ('MetaSel ('Just "alarmRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlarmRule)) :*: S1 ('MetaSel ('Just "alarmModelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "severity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "alarmNotification") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlarmNotification))) :*: (S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "statusMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: (((S1 ('MetaSel ('Just "alarmModelDescription") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "alarmEventActions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlarmEventActions))) :*: (S1 ('MetaSel ('Just "alarmCapabilities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AlarmCapabilities)) :*: S1 ('MetaSel ('Just "lastUpdateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "alarmModelVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "alarmModelArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "roleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newDescribeAlarmModelResponse Source #

Create a value of DescribeAlarmModelResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:creationTime:DescribeAlarmModelResponse', describeAlarmModelResponse_creationTime - The time the alarm model was created, in the Unix epoch format.

$sel:status:DescribeAlarmModelResponse', describeAlarmModelResponse_status - The status of the alarm model. The status can be one of the following values:

  • ACTIVE - The alarm model is active and it's ready to evaluate data.
  • ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes.
  • INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model.
  • FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.

$sel:alarmRule:DescribeAlarmModelResponse', describeAlarmModelResponse_alarmRule - Defines when your alarm is invoked.

$sel:alarmModelName:DescribeAlarmModel', describeAlarmModelResponse_alarmModelName - The name of the alarm model.

$sel:severity:DescribeAlarmModelResponse', describeAlarmModelResponse_severity - A non-negative integer that reflects the severity level of the alarm.

$sel:alarmNotification:DescribeAlarmModelResponse', describeAlarmModelResponse_alarmNotification - Contains information about one or more notification actions.

$sel:key:DescribeAlarmModelResponse', describeAlarmModelResponse_key - An input attribute used as a key to create an alarm. AWS IoT Events routes inputs associated with this key to the alarm.

$sel:statusMessage:DescribeAlarmModelResponse', describeAlarmModelResponse_statusMessage - Contains information about the status of the alarm model.

$sel:alarmModelDescription:DescribeAlarmModelResponse', describeAlarmModelResponse_alarmModelDescription - The description of the alarm model.

$sel:alarmEventActions:DescribeAlarmModelResponse', describeAlarmModelResponse_alarmEventActions - Contains information about one or more alarm actions.

$sel:alarmCapabilities:DescribeAlarmModelResponse', describeAlarmModelResponse_alarmCapabilities - Contains the configuration information of alarm state changes.

$sel:lastUpdateTime:DescribeAlarmModelResponse', describeAlarmModelResponse_lastUpdateTime - The time the alarm model was last updated, in the Unix epoch format.

$sel:alarmModelVersion:DescribeAlarmModel', describeAlarmModelResponse_alarmModelVersion - The version of the alarm model.

$sel:alarmModelArn:DescribeAlarmModelResponse', describeAlarmModelResponse_alarmModelArn - The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

$sel:roleArn:DescribeAlarmModelResponse', describeAlarmModelResponse_roleArn - 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.

$sel:httpStatus:DescribeAlarmModelResponse', describeAlarmModelResponse_httpStatus - The response's http status code.

Response Lenses

describeAlarmModelResponse_creationTime :: Lens' DescribeAlarmModelResponse (Maybe UTCTime) Source #

The time the alarm model was created, in the Unix epoch format.

describeAlarmModelResponse_status :: Lens' DescribeAlarmModelResponse (Maybe AlarmModelVersionStatus) Source #

The status of the alarm model. The status can be one of the following values:

  • ACTIVE - The alarm model is active and it's ready to evaluate data.
  • ACTIVATING - AWS IoT Events is activating your alarm model. Activating an alarm model can take up to a few minutes.
  • INACTIVE - The alarm model is inactive, so it isn't ready to evaluate data. Check your alarm model information and update the alarm model.
  • FAILED - You couldn't create or update the alarm model. Check your alarm model information and try again.

describeAlarmModelResponse_severity :: Lens' DescribeAlarmModelResponse (Maybe Natural) Source #

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

describeAlarmModelResponse_alarmNotification :: Lens' DescribeAlarmModelResponse (Maybe AlarmNotification) Source #

Contains information about one or more notification actions.

describeAlarmModelResponse_key :: Lens' DescribeAlarmModelResponse (Maybe Text) Source #

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

describeAlarmModelResponse_statusMessage :: Lens' DescribeAlarmModelResponse (Maybe Text) Source #

Contains information about the status of the alarm model.

describeAlarmModelResponse_alarmCapabilities :: Lens' DescribeAlarmModelResponse (Maybe AlarmCapabilities) Source #

Contains the configuration information of alarm state changes.

describeAlarmModelResponse_lastUpdateTime :: Lens' DescribeAlarmModelResponse (Maybe UTCTime) Source #

The time the alarm model was last updated, in the Unix epoch format.

describeAlarmModelResponse_alarmModelArn :: Lens' DescribeAlarmModelResponse (Maybe Text) Source #

The ARN of the alarm model. For more information, see Amazon Resource Names (ARNs) in the AWS General Reference.

describeAlarmModelResponse_roleArn :: Lens' DescribeAlarmModelResponse (Maybe Text) Source #

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.