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.UpdateAlarmModel

Description

Updates an alarm model. Any alarms that were created based on the previous version are deleted and then created again as new data arrives.

Synopsis

Creating a Request

data UpdateAlarmModel Source #

See: newUpdateAlarmModel smart constructor.

Constructors

UpdateAlarmModel' 

Fields

Instances

Instances details
Eq UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Read UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Show UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Generic UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Associated Types

type Rep UpdateAlarmModel :: Type -> Type #

NFData UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Methods

rnf :: UpdateAlarmModel -> () #

Hashable UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

ToJSON UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

AWSRequest UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Associated Types

type AWSResponse UpdateAlarmModel #

ToHeaders UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

ToPath UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

ToQuery UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

type Rep UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

type AWSResponse UpdateAlarmModel Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

newUpdateAlarmModel Source #

Create a value of UpdateAlarmModel 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:severity:UpdateAlarmModel', updateAlarmModel_severity - A non-negative integer that reflects the severity level of the alarm.

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

$sel:alarmModelDescription:UpdateAlarmModel', updateAlarmModel_alarmModelDescription - The description of the alarm model.

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

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

$sel:alarmModelName:UpdateAlarmModel', updateAlarmModel_alarmModelName - The name of the alarm model.

$sel:roleArn:UpdateAlarmModel', updateAlarmModel_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:alarmRule:UpdateAlarmModel', updateAlarmModel_alarmRule - Defines when your alarm is invoked.

Request Lenses

updateAlarmModel_severity :: Lens' UpdateAlarmModel (Maybe Natural) Source #

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

updateAlarmModel_alarmNotification :: Lens' UpdateAlarmModel (Maybe AlarmNotification) Source #

Contains information about one or more notification actions.

updateAlarmModel_alarmEventActions :: Lens' UpdateAlarmModel (Maybe AlarmEventActions) Source #

Contains information about one or more alarm actions.

updateAlarmModel_alarmCapabilities :: Lens' UpdateAlarmModel (Maybe AlarmCapabilities) Source #

Contains the configuration information of alarm state changes.

updateAlarmModel_roleArn :: Lens' UpdateAlarmModel 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.

updateAlarmModel_alarmRule :: Lens' UpdateAlarmModel AlarmRule Source #

Defines when your alarm is invoked.

Destructuring the Response

data UpdateAlarmModelResponse Source #

See: newUpdateAlarmModelResponse smart constructor.

Constructors

UpdateAlarmModelResponse' 

Fields

  • creationTime :: Maybe POSIX

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

  • status :: Maybe AlarmModelVersionStatus

    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.
  • lastUpdateTime :: Maybe POSIX

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

  • alarmModelVersion :: Maybe Text

    The version of the alarm model.

  • alarmModelArn :: Maybe Text

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq UpdateAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Read UpdateAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Show UpdateAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Generic UpdateAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

Associated Types

type Rep UpdateAlarmModelResponse :: Type -> Type #

NFData UpdateAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

type Rep UpdateAlarmModelResponse Source # 
Instance details

Defined in Amazonka.IoTEvents.UpdateAlarmModel

type Rep UpdateAlarmModelResponse = D1 ('MetaData "UpdateAlarmModelResponse" "Amazonka.IoTEvents.UpdateAlarmModel" "libZSservicesZSamazonka-ioteventsZSamazonka-iotevents" 'False) (C1 ('MetaCons "UpdateAlarmModelResponse'" '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 "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 "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newUpdateAlarmModelResponse Source #

Create a value of UpdateAlarmModelResponse 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:UpdateAlarmModelResponse', updateAlarmModelResponse_creationTime - The time the alarm model was created, in the Unix epoch format.

$sel:status:UpdateAlarmModelResponse', updateAlarmModelResponse_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:lastUpdateTime:UpdateAlarmModelResponse', updateAlarmModelResponse_lastUpdateTime - The time the alarm model was last updated, in the Unix epoch format.

$sel:alarmModelVersion:UpdateAlarmModelResponse', updateAlarmModelResponse_alarmModelVersion - The version of the alarm model.

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

$sel:httpStatus:UpdateAlarmModelResponse', updateAlarmModelResponse_httpStatus - The response's http status code.

Response Lenses

updateAlarmModelResponse_creationTime :: Lens' UpdateAlarmModelResponse (Maybe UTCTime) Source #

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

updateAlarmModelResponse_status :: Lens' UpdateAlarmModelResponse (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.

updateAlarmModelResponse_lastUpdateTime :: Lens' UpdateAlarmModelResponse (Maybe UTCTime) Source #

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

updateAlarmModelResponse_alarmModelArn :: Lens' UpdateAlarmModelResponse (Maybe Text) Source #

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