| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT1ClickDevices.Types
Description
Synopsis
- defaultService :: Service
- _ForbiddenException :: AsError a => Fold a ServiceError
- _InternalFailureException :: AsError a => Fold a ServiceError
- _InvalidRequestException :: AsError a => Fold a ServiceError
- _PreconditionFailedException :: AsError a => Fold a ServiceError
- _RangeNotSatisfiableException :: AsError a => Fold a ServiceError
- _ResourceConflictException :: AsError a => Fold a ServiceError
- _ResourceNotFoundException :: AsError a => Fold a ServiceError
- data Attributes = Attributes' {
- newAttributes :: Attributes
- data Device = Device' {
- attributes :: Maybe Attributes
- deviceId :: Maybe Text
- type' :: Maybe Text
- newDevice :: Device
- device_attributes :: Lens' Device (Maybe Attributes)
- device_deviceId :: Lens' Device (Maybe Text)
- device_type :: Lens' Device (Maybe Text)
- data DeviceDescription = DeviceDescription' {}
- newDeviceDescription :: DeviceDescription
- deviceDescription_arn :: Lens' DeviceDescription (Maybe Text)
- deviceDescription_attributes :: Lens' DeviceDescription (Maybe (HashMap Text Text))
- deviceDescription_deviceId :: Lens' DeviceDescription (Maybe Text)
- deviceDescription_enabled :: Lens' DeviceDescription (Maybe Bool)
- deviceDescription_remainingLife :: Lens' DeviceDescription (Maybe Double)
- deviceDescription_tags :: Lens' DeviceDescription (Maybe (HashMap Text Text))
- deviceDescription_type :: Lens' DeviceDescription (Maybe Text)
- data DeviceEvent = DeviceEvent' {}
- newDeviceEvent :: DeviceEvent
- deviceEvent_device :: Lens' DeviceEvent (Maybe Device)
- deviceEvent_stdEvent :: Lens' DeviceEvent (Maybe Text)
- data DeviceMethod = DeviceMethod' {
- deviceType :: Maybe Text
- methodName :: Maybe Text
- newDeviceMethod :: DeviceMethod
- deviceMethod_deviceType :: Lens' DeviceMethod (Maybe Text)
- deviceMethod_methodName :: Lens' DeviceMethod (Maybe Text)
Service Configuration
defaultService :: Service Source #
API version 2018-05-14 of the Amazon IoT 1-Click Devices Service SDK configuration.
Errors
_ForbiddenException :: AsError a => Fold a ServiceError Source #
Prism for ForbiddenException' errors.
_InternalFailureException :: AsError a => Fold a ServiceError Source #
Prism for InternalFailureException' errors.
_InvalidRequestException :: AsError a => Fold a ServiceError Source #
Prism for InvalidRequestException' errors.
_PreconditionFailedException :: AsError a => Fold a ServiceError Source #
Prism for PreconditionFailedException' errors.
_RangeNotSatisfiableException :: AsError a => Fold a ServiceError Source #
Prism for RangeNotSatisfiableException' errors.
_ResourceConflictException :: AsError a => Fold a ServiceError Source #
Prism for ResourceConflictException' errors.
_ResourceNotFoundException :: AsError a => Fold a ServiceError Source #
Prism for ResourceNotFoundException' errors.
Attributes
data Attributes Source #
See: newAttributes smart constructor.
Constructors
| Attributes' | |
Instances
| FromJSON Attributes Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Attributes | |
| Generic Attributes Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Attributes Associated Types type Rep Attributes :: Type -> Type # | |
| Read Attributes Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Attributes Methods readsPrec :: Int -> ReadS Attributes # readList :: ReadS [Attributes] # readPrec :: ReadPrec Attributes # readListPrec :: ReadPrec [Attributes] # | |
| Show Attributes Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Attributes Methods showsPrec :: Int -> Attributes -> ShowS # show :: Attributes -> String # showList :: [Attributes] -> ShowS # | |
| NFData Attributes Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Attributes Methods rnf :: Attributes -> () # | |
| Eq Attributes Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Attributes | |
| Hashable Attributes Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Attributes | |
| type Rep Attributes Source # | |
newAttributes :: Attributes Source #
Create a value of Attributes with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
Device
See: newDevice smart constructor.
Constructors
| Device' | |
Fields
| |
Instances
| FromJSON Device Source # | |
| Generic Device Source # | |
| Read Device Source # | |
| Show Device Source # | |
| NFData Device Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Device | |
| Eq Device Source # | |
| Hashable Device Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Device | |
| type Rep Device Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Device type Rep Device = D1 ('MetaData "Device" "Amazonka.IoT1ClickDevices.Types.Device" "amazonka-iot1click-devices-2.0-9HUhsuXK7LTlqVc7Joztr" 'False) (C1 ('MetaCons "Device'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Attributes)) :*: (S1 ('MetaSel ('Just "deviceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) | |
Create a value of Device 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:attributes:Device', device_attributes - The user specified attributes associated with the device for an event.
$sel:deviceId:Device', device_deviceId - The unique identifier of the device.
$sel:type':Device', device_type - The device type, such as "button".
device_attributes :: Lens' Device (Maybe Attributes) Source #
The user specified attributes associated with the device for an event.
DeviceDescription
data DeviceDescription Source #
See: newDeviceDescription smart constructor.
Constructors
| DeviceDescription' | |
Fields
| |
Instances
newDeviceDescription :: DeviceDescription Source #
Create a value of DeviceDescription 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:arn:DeviceDescription', deviceDescription_arn - The ARN of the device.
$sel:attributes:DeviceDescription', deviceDescription_attributes - An array of zero or more elements of DeviceAttribute objects providing
user specified device attributes.
$sel:deviceId:DeviceDescription', deviceDescription_deviceId - The unique identifier of the device.
$sel:enabled:DeviceDescription', deviceDescription_enabled - A Boolean value indicating whether or not the device is enabled.
$sel:remainingLife:DeviceDescription', deviceDescription_remainingLife - A value between 0 and 1 inclusive, representing the fraction of life
remaining for the device.
$sel:tags:DeviceDescription', deviceDescription_tags - The tags currently associated with the AWS IoT 1-Click device.
$sel:type':DeviceDescription', deviceDescription_type - The type of the device, such as "button".
deviceDescription_arn :: Lens' DeviceDescription (Maybe Text) Source #
The ARN of the device.
deviceDescription_attributes :: Lens' DeviceDescription (Maybe (HashMap Text Text)) Source #
An array of zero or more elements of DeviceAttribute objects providing user specified device attributes.
deviceDescription_deviceId :: Lens' DeviceDescription (Maybe Text) Source #
The unique identifier of the device.
deviceDescription_enabled :: Lens' DeviceDescription (Maybe Bool) Source #
A Boolean value indicating whether or not the device is enabled.
deviceDescription_remainingLife :: Lens' DeviceDescription (Maybe Double) Source #
A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.
deviceDescription_tags :: Lens' DeviceDescription (Maybe (HashMap Text Text)) Source #
The tags currently associated with the AWS IoT 1-Click device.
deviceDescription_type :: Lens' DeviceDescription (Maybe Text) Source #
The type of the device, such as "button".
DeviceEvent
data DeviceEvent Source #
See: newDeviceEvent smart constructor.
Constructors
| DeviceEvent' | |
Instances
newDeviceEvent :: DeviceEvent Source #
Create a value of DeviceEvent 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:device:DeviceEvent', deviceEvent_device - An object representing the device associated with the event.
$sel:stdEvent:DeviceEvent', deviceEvent_stdEvent - A serialized JSON object representing the device-type specific event.
deviceEvent_device :: Lens' DeviceEvent (Maybe Device) Source #
An object representing the device associated with the event.
deviceEvent_stdEvent :: Lens' DeviceEvent (Maybe Text) Source #
A serialized JSON object representing the device-type specific event.
DeviceMethod
data DeviceMethod Source #
See: newDeviceMethod smart constructor.
Constructors
| DeviceMethod' | |
Fields
| |
Instances
newDeviceMethod :: DeviceMethod Source #
Create a value of DeviceMethod 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:deviceType:DeviceMethod', deviceMethod_deviceType - The type of the device, such as "button".
$sel:methodName:DeviceMethod', deviceMethod_methodName - The name of the method applicable to the deviceType.
deviceMethod_deviceType :: Lens' DeviceMethod (Maybe Text) Source #
The type of the device, such as "button".
deviceMethod_methodName :: Lens' DeviceMethod (Maybe Text) Source #
The name of the method applicable to the deviceType.