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 |
Updates properties of a wireless device.
Synopsis
- data UpdateWirelessDevice = UpdateWirelessDevice' {
- loRaWAN :: Maybe LoRaWANUpdateDevice
- name :: Maybe Text
- destinationName :: Maybe Text
- description :: Maybe Text
- id :: Text
- newUpdateWirelessDevice :: Text -> UpdateWirelessDevice
- updateWirelessDevice_loRaWAN :: Lens' UpdateWirelessDevice (Maybe LoRaWANUpdateDevice)
- updateWirelessDevice_name :: Lens' UpdateWirelessDevice (Maybe Text)
- updateWirelessDevice_destinationName :: Lens' UpdateWirelessDevice (Maybe Text)
- updateWirelessDevice_description :: Lens' UpdateWirelessDevice (Maybe Text)
- updateWirelessDevice_id :: Lens' UpdateWirelessDevice Text
- data UpdateWirelessDeviceResponse = UpdateWirelessDeviceResponse' {
- httpStatus :: Int
- newUpdateWirelessDeviceResponse :: Int -> UpdateWirelessDeviceResponse
- updateWirelessDeviceResponse_httpStatus :: Lens' UpdateWirelessDeviceResponse Int
Creating a Request
data UpdateWirelessDevice Source #
See: newUpdateWirelessDevice
smart constructor.
UpdateWirelessDevice' | |
|
Instances
newUpdateWirelessDevice Source #
Create a value of UpdateWirelessDevice
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:loRaWAN:UpdateWirelessDevice'
, updateWirelessDevice_loRaWAN
- The updated wireless device's configuration.
$sel:name:UpdateWirelessDevice'
, updateWirelessDevice_name
- The new name of the resource.
$sel:destinationName:UpdateWirelessDevice'
, updateWirelessDevice_destinationName
- The name of the new destination for the device.
$sel:description:UpdateWirelessDevice'
, updateWirelessDevice_description
- A new description of the resource.
$sel:id:UpdateWirelessDevice'
, updateWirelessDevice_id
- The ID of the resource to update.
Request Lenses
updateWirelessDevice_loRaWAN :: Lens' UpdateWirelessDevice (Maybe LoRaWANUpdateDevice) Source #
The updated wireless device's configuration.
updateWirelessDevice_name :: Lens' UpdateWirelessDevice (Maybe Text) Source #
The new name of the resource.
updateWirelessDevice_destinationName :: Lens' UpdateWirelessDevice (Maybe Text) Source #
The name of the new destination for the device.
updateWirelessDevice_description :: Lens' UpdateWirelessDevice (Maybe Text) Source #
A new description of the resource.
updateWirelessDevice_id :: Lens' UpdateWirelessDevice Text Source #
The ID of the resource to update.
Destructuring the Response
data UpdateWirelessDeviceResponse Source #
See: newUpdateWirelessDeviceResponse
smart constructor.
UpdateWirelessDeviceResponse' | |
|
Instances
newUpdateWirelessDeviceResponse Source #
Create a value of UpdateWirelessDeviceResponse
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:httpStatus:UpdateWirelessDeviceResponse'
, updateWirelessDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
updateWirelessDeviceResponse_httpStatus :: Lens' UpdateWirelessDeviceResponse Int Source #
The response's http status code.