| 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.NetworkManager.UpdateDevice
Description
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_aWSLocation :: Lens' UpdateDevice (Maybe AWSLocation)
- updateDevice_description :: Lens' UpdateDevice (Maybe Text)
- updateDevice_location :: Lens' UpdateDevice (Maybe Location)
- updateDevice_model :: Lens' UpdateDevice (Maybe Text)
- updateDevice_serialNumber :: Lens' UpdateDevice (Maybe Text)
- updateDevice_siteId :: Lens' UpdateDevice (Maybe Text)
- updateDevice_type :: Lens' UpdateDevice (Maybe Text)
- updateDevice_vendor :: 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.
Constructors
| UpdateDevice' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> UpdateDevice |
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:
UpdateDevice, updateDevice_aWSLocation - The Amazon Web Services location of the device, if applicable. For an
on-premises device, you can omit this parameter.
UpdateDevice, updateDevice_description - A description of the device.
Constraints: Maximum length of 256 characters.
UpdateDevice, updateDevice_location - Undocumented member.
UpdateDevice, updateDevice_model - The model of the device.
Constraints: Maximum length of 128 characters.
UpdateDevice, updateDevice_serialNumber - The serial number of the device.
Constraints: Maximum length of 128 characters.
UpdateDevice, updateDevice_siteId - The ID of the site.
UpdateDevice, updateDevice_type - The type of the device.
UpdateDevice, updateDevice_vendor - The vendor of the device.
Constraints: Maximum length of 128 characters.
UpdateDevice, updateDevice_globalNetworkId - The ID of the global network.
UpdateDevice, updateDevice_deviceId - The ID of the device.
Request Lenses
updateDevice_aWSLocation :: Lens' UpdateDevice (Maybe AWSLocation) Source #
The Amazon Web Services location of the device, if applicable. For an on-premises device, you can omit this parameter.
updateDevice_description :: Lens' UpdateDevice (Maybe Text) Source #
A description of the device.
Constraints: Maximum length of 256 characters.
updateDevice_location :: Lens' UpdateDevice (Maybe Location) Source #
Undocumented member.
updateDevice_model :: Lens' UpdateDevice (Maybe Text) Source #
The model of the device.
Constraints: Maximum length of 128 characters.
updateDevice_serialNumber :: Lens' UpdateDevice (Maybe Text) Source #
The serial number of the device.
Constraints: Maximum length of 128 characters.
updateDevice_siteId :: Lens' UpdateDevice (Maybe Text) Source #
The ID of the site.
updateDevice_type :: Lens' UpdateDevice (Maybe Text) Source #
The type of the device.
updateDevice_vendor :: Lens' UpdateDevice (Maybe Text) Source #
The vendor of the device.
Constraints: Maximum length of 128 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.
Constructors
| UpdateDeviceResponse' | |
Fields
| |
Instances
newUpdateDeviceResponse Source #
Arguments
| :: Int | |
| -> UpdateDeviceResponse |
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.