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 a device's metadata.
Synopsis
- data UpdateDeviceMetadata = UpdateDeviceMetadata' {
- description :: Maybe Text
- deviceId :: Text
- newUpdateDeviceMetadata :: Text -> UpdateDeviceMetadata
- updateDeviceMetadata_description :: Lens' UpdateDeviceMetadata (Maybe Text)
- updateDeviceMetadata_deviceId :: Lens' UpdateDeviceMetadata Text
- data UpdateDeviceMetadataResponse = UpdateDeviceMetadataResponse' {
- deviceId :: Maybe Text
- httpStatus :: Int
- newUpdateDeviceMetadataResponse :: Int -> UpdateDeviceMetadataResponse
- updateDeviceMetadataResponse_deviceId :: Lens' UpdateDeviceMetadataResponse (Maybe Text)
- updateDeviceMetadataResponse_httpStatus :: Lens' UpdateDeviceMetadataResponse Int
Creating a Request
data UpdateDeviceMetadata Source #
See: newUpdateDeviceMetadata
smart constructor.
UpdateDeviceMetadata' | |
|
Instances
newUpdateDeviceMetadata Source #
Create a value of UpdateDeviceMetadata
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:description:UpdateDeviceMetadata'
, updateDeviceMetadata_description
- A description for the device.
$sel:deviceId:UpdateDeviceMetadata'
, updateDeviceMetadata_deviceId
- The device's ID.
Request Lenses
updateDeviceMetadata_description :: Lens' UpdateDeviceMetadata (Maybe Text) Source #
A description for the device.
updateDeviceMetadata_deviceId :: Lens' UpdateDeviceMetadata Text Source #
The device's ID.
Destructuring the Response
data UpdateDeviceMetadataResponse Source #
See: newUpdateDeviceMetadataResponse
smart constructor.
UpdateDeviceMetadataResponse' | |
|
Instances
newUpdateDeviceMetadataResponse Source #
Create a value of UpdateDeviceMetadataResponse
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:deviceId:UpdateDeviceMetadata'
, updateDeviceMetadataResponse_deviceId
- The device's ID.
$sel:httpStatus:UpdateDeviceMetadataResponse'
, updateDeviceMetadataResponse_httpStatus
- The response's http status code.
Response Lenses
updateDeviceMetadataResponse_deviceId :: Lens' UpdateDeviceMetadataResponse (Maybe Text) Source #
The device's ID.
updateDeviceMetadataResponse_httpStatus :: Lens' UpdateDeviceMetadataResponse Int Source #
The response's http status code.