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 the details for an existing device. To remove information for any of the parameters, specify an empty string.
Synopsis
- data UpdateDevice = UpdateDevice' {}
- newUpdateDevice :: Text -> Text -> UpdateDevice
- updateDevice_vendor :: Lens' UpdateDevice (Maybe Text)
- updateDevice_location :: Lens' UpdateDevice (Maybe Location)
- updateDevice_aWSLocation :: Lens' UpdateDevice (Maybe AWSLocation)
- updateDevice_model :: Lens' UpdateDevice (Maybe Text)
- updateDevice_type :: Lens' UpdateDevice (Maybe Text)
- updateDevice_serialNumber :: Lens' UpdateDevice (Maybe Text)
- updateDevice_siteId :: Lens' UpdateDevice (Maybe Text)
- updateDevice_description :: Lens' UpdateDevice (Maybe Text)
- updateDevice_globalNetworkId :: Lens' UpdateDevice Text
- updateDevice_deviceId :: Lens' UpdateDevice Text
- data UpdateDeviceResponse = UpdateDeviceResponse' {
- device :: Maybe Device
- httpStatus :: Int
- newUpdateDeviceResponse :: Int -> UpdateDeviceResponse
- updateDeviceResponse_device :: Lens' UpdateDeviceResponse (Maybe Device)
- updateDeviceResponse_httpStatus :: Lens' UpdateDeviceResponse Int
Creating a Request
data UpdateDevice Source #
See: newUpdateDevice
smart constructor.
UpdateDevice' | |
|
Instances
Create a value of UpdateDevice
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:vendor:UpdateDevice'
, updateDevice_vendor
- The vendor of the device.
Length Constraints: Maximum length of 128 characters.
$sel:location:UpdateDevice'
, updateDevice_location
- Undocumented member.
$sel:aWSLocation:UpdateDevice'
, updateDevice_aWSLocation
- The AWS location of the device.
$sel:model:UpdateDevice'
, updateDevice_model
- The model of the device.
Length Constraints: Maximum length of 128 characters.
$sel:type':UpdateDevice'
, updateDevice_type
- The type of the device.
$sel:serialNumber:UpdateDevice'
, updateDevice_serialNumber
- The serial number of the device.
Length Constraints: Maximum length of 128 characters.
$sel:siteId:UpdateDevice'
, updateDevice_siteId
- The ID of the site.
$sel:description:UpdateDevice'
, updateDevice_description
- A description of the device.
Length Constraints: Maximum length of 256 characters.
$sel:globalNetworkId:UpdateDevice'
, updateDevice_globalNetworkId
- The ID of the global network.
$sel:deviceId:UpdateDevice'
, updateDevice_deviceId
- The ID of the device.
Request Lenses
updateDevice_vendor :: Lens' UpdateDevice (Maybe Text) Source #
The vendor of the device.
Length Constraints: Maximum length of 128 characters.
updateDevice_location :: Lens' UpdateDevice (Maybe Location) Source #
Undocumented member.
updateDevice_aWSLocation :: Lens' UpdateDevice (Maybe AWSLocation) Source #
The AWS location of the device.
updateDevice_model :: Lens' UpdateDevice (Maybe Text) Source #
The model of the device.
Length Constraints: Maximum length of 128 characters.
updateDevice_type :: Lens' UpdateDevice (Maybe Text) Source #
The type of the device.
updateDevice_serialNumber :: Lens' UpdateDevice (Maybe Text) Source #
The serial number of the device.
Length Constraints: Maximum length of 128 characters.
updateDevice_siteId :: Lens' UpdateDevice (Maybe Text) Source #
The ID of the site.
updateDevice_description :: Lens' UpdateDevice (Maybe Text) Source #
A description of the device.
Length Constraints: Maximum length of 256 characters.
updateDevice_globalNetworkId :: Lens' UpdateDevice Text Source #
The ID of the global network.
updateDevice_deviceId :: Lens' UpdateDevice Text Source #
The ID of the device.
Destructuring the Response
data UpdateDeviceResponse Source #
See: newUpdateDeviceResponse
smart constructor.
UpdateDeviceResponse' | |
|
Instances
newUpdateDeviceResponse Source #
Create a value of UpdateDeviceResponse
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:UpdateDeviceResponse'
, updateDeviceResponse_device
- Information about the device.
$sel:httpStatus:UpdateDeviceResponse'
, updateDeviceResponse_httpStatus
- The response's http status code.
Response Lenses
updateDeviceResponse_device :: Lens' UpdateDeviceResponse (Maybe Device) Source #
Information about the device.
updateDeviceResponse_httpStatus :: Lens' UpdateDeviceResponse Int Source #
The response's http status code.