Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- defaultService :: Service
- _InvalidRequestException :: AsError a => Getting (First ServiceError) a ServiceError
- _PreconditionFailedException :: AsError a => Getting (First ServiceError) a ServiceError
- _ForbiddenException :: AsError a => Getting (First ServiceError) a ServiceError
- _RangeNotSatisfiableException :: AsError a => Getting (First ServiceError) a ServiceError
- _InternalFailureException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError
- _ResourceNotFoundException :: AsError a => Getting (First ServiceError) 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_remainingLife :: Lens' DeviceDescription (Maybe Double)
- deviceDescription_enabled :: Lens' DeviceDescription (Maybe Bool)
- deviceDescription_arn :: Lens' DeviceDescription (Maybe Text)
- deviceDescription_attributes :: Lens' DeviceDescription (Maybe (HashMap Text Text))
- deviceDescription_deviceId :: Lens' DeviceDescription (Maybe Text)
- deviceDescription_type :: Lens' DeviceDescription (Maybe Text)
- deviceDescription_tags :: Lens' DeviceDescription (Maybe (HashMap Text Text))
- data DeviceEvent = DeviceEvent' {}
- newDeviceEvent :: DeviceEvent
- deviceEvent_stdEvent :: Lens' DeviceEvent (Maybe Text)
- deviceEvent_device :: Lens' DeviceEvent (Maybe Device)
- data DeviceMethod = DeviceMethod' {
- methodName :: Maybe Text
- deviceType :: Maybe Text
- newDeviceMethod :: DeviceMethod
- deviceMethod_methodName :: Lens' DeviceMethod (Maybe Text)
- deviceMethod_deviceType :: 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
_InvalidRequestException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InvalidRequestException' errors.
_PreconditionFailedException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for PreconditionFailedException' errors.
_ForbiddenException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for ForbiddenException' errors.
_RangeNotSatisfiableException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for RangeNotSatisfiableException' errors.
_InternalFailureException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for InternalFailureException' errors.
_ResourceConflictException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for ResourceConflictException' errors.
_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Prism for ResourceNotFoundException' errors.
Attributes
data Attributes Source #
See: newAttributes
smart constructor.
Instances
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.
Device' | |
|
Instances
Eq Device Source # | |
Read Device Source # | |
Show Device Source # | |
Generic Device Source # | |
NFData Device Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Device | |
Hashable Device Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Device | |
FromJSON Device Source # | |
type Rep Device Source # | |
Defined in Amazonka.IoT1ClickDevices.Types.Device type Rep Device = D1 ('MetaData "Device" "Amazonka.IoT1ClickDevices.Types.Device" "libZSservicesZSamazonka-iot1click-devicesZSamazonka-iot1click-devices" '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.
DeviceDescription' | |
|
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:remainingLife:DeviceDescription'
, deviceDescription_remainingLife
- A value between 0 and 1 inclusive, representing the fraction of life
remaining for the device.
$sel:enabled:DeviceDescription'
, deviceDescription_enabled
- A Boolean value indicating whether or not the device is enabled.
$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:type':DeviceDescription'
, deviceDescription_type
- The type of the device, such as "button".
$sel:tags:DeviceDescription'
, deviceDescription_tags
- The tags currently associated with the AWS IoT 1-Click device.
deviceDescription_remainingLife :: Lens' DeviceDescription (Maybe Double) Source #
A value between 0 and 1 inclusive, representing the fraction of life remaining for the device.
deviceDescription_enabled :: Lens' DeviceDescription (Maybe Bool) Source #
A Boolean value indicating whether or not the device is enabled.
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_type :: Lens' DeviceDescription (Maybe Text) Source #
The type of the device, such as "button".
deviceDescription_tags :: Lens' DeviceDescription (Maybe (HashMap Text Text)) Source #
The tags currently associated with the AWS IoT 1-Click device.
DeviceEvent
data DeviceEvent Source #
See: newDeviceEvent
smart constructor.
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:stdEvent:DeviceEvent'
, deviceEvent_stdEvent
- A serialized JSON object representing the device-type specific event.
$sel:device:DeviceEvent'
, deviceEvent_device
- 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.
deviceEvent_device :: Lens' DeviceEvent (Maybe Device) Source #
An object representing the device associated with the event.
DeviceMethod
data DeviceMethod Source #
See: newDeviceMethod
smart constructor.
DeviceMethod' | |
|
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:methodName:DeviceMethod'
, deviceMethod_methodName
- The name of the method applicable to the deviceType.
$sel:deviceType:DeviceMethod'
, deviceMethod_deviceType
- The type of the device, such as "button".
deviceMethod_methodName :: Lens' DeviceMethod (Maybe Text) Source #
The name of the method applicable to the deviceType.
deviceMethod_deviceType :: Lens' DeviceMethod (Maybe Text) Source #
The type of the device, such as "button".