libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data
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.IoTEventsData.Types.CustomerAction

Description

 
Synopsis

Documentation

data CustomerAction Source #

Contains information about the action that you can take to respond to the alarm.

See: newCustomerAction smart constructor.

Constructors

CustomerAction' 

Fields

Instances

Instances details
Eq CustomerAction Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.CustomerAction

Read CustomerAction Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.CustomerAction

Show CustomerAction Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.CustomerAction

Generic CustomerAction Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.CustomerAction

Associated Types

type Rep CustomerAction :: Type -> Type #

NFData CustomerAction Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.CustomerAction

Methods

rnf :: CustomerAction -> () #

Hashable CustomerAction Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.CustomerAction

FromJSON CustomerAction Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.CustomerAction

type Rep CustomerAction Source # 
Instance details

Defined in Amazonka.IoTEventsData.Types.CustomerAction

type Rep CustomerAction = D1 ('MetaData "CustomerAction" "Amazonka.IoTEventsData.Types.CustomerAction" "libZSservicesZSamazonka-iotevents-dataZSamazonka-iotevents-data" 'False) (C1 ('MetaCons "CustomerAction'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "resetActionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResetActionConfiguration)) :*: (S1 ('MetaSel ('Just "actionName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CustomerActionName)) :*: S1 ('MetaSel ('Just "snoozeActionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SnoozeActionConfiguration)))) :*: (S1 ('MetaSel ('Just "enableActionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EnableActionConfiguration)) :*: (S1 ('MetaSel ('Just "disableActionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DisableActionConfiguration)) :*: S1 ('MetaSel ('Just "acknowledgeActionConfiguration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AcknowledgeActionConfiguration))))))

newCustomerAction :: CustomerAction Source #

Create a value of CustomerAction 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:resetActionConfiguration:CustomerAction', customerAction_resetActionConfiguration - Contains the configuration information of a reset action.

$sel:actionName:CustomerAction', customerAction_actionName - The name of the action. The action name can be one of the following values:

  • SNOOZE - When you snooze the alarm, the alarm state changes to SNOOZE_DISABLED.
  • ENABLE - When you enable the alarm, the alarm state changes to NORMAL.
  • DISABLE - When you disable the alarm, the alarm state changes to DISABLED.
  • ACKNOWLEDGE - When you acknowledge the alarm, the alarm state changes to ACKNOWLEDGED.
  • RESET - When you reset the alarm, the alarm state changes to NORMAL.

For more information, see the AlarmState API.

$sel:snoozeActionConfiguration:CustomerAction', customerAction_snoozeActionConfiguration - Contains the configuration information of a snooze action.

$sel:enableActionConfiguration:CustomerAction', customerAction_enableActionConfiguration - Contains the configuration information of an enable action.

$sel:disableActionConfiguration:CustomerAction', customerAction_disableActionConfiguration - Contains the configuration information of a disable action.

$sel:acknowledgeActionConfiguration:CustomerAction', customerAction_acknowledgeActionConfiguration - Contains the configuration information of an acknowledge action.

customerAction_resetActionConfiguration :: Lens' CustomerAction (Maybe ResetActionConfiguration) Source #

Contains the configuration information of a reset action.

customerAction_actionName :: Lens' CustomerAction (Maybe CustomerActionName) Source #

The name of the action. The action name can be one of the following values:

  • SNOOZE - When you snooze the alarm, the alarm state changes to SNOOZE_DISABLED.
  • ENABLE - When you enable the alarm, the alarm state changes to NORMAL.
  • DISABLE - When you disable the alarm, the alarm state changes to DISABLED.
  • ACKNOWLEDGE - When you acknowledge the alarm, the alarm state changes to ACKNOWLEDGED.
  • RESET - When you reset the alarm, the alarm state changes to NORMAL.

For more information, see the AlarmState API.

customerAction_snoozeActionConfiguration :: Lens' CustomerAction (Maybe SnoozeActionConfiguration) Source #

Contains the configuration information of a snooze action.

customerAction_enableActionConfiguration :: Lens' CustomerAction (Maybe EnableActionConfiguration) Source #

Contains the configuration information of an enable action.

customerAction_disableActionConfiguration :: Lens' CustomerAction (Maybe DisableActionConfiguration) Source #

Contains the configuration information of a disable action.

customerAction_acknowledgeActionConfiguration :: Lens' CustomerAction (Maybe AcknowledgeActionConfiguration) Source #

Contains the configuration information of an acknowledge action.