| 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.IoTWireless.UpdateResourcePosition
Description
Update the position information of a given wireless device or a wireless gateway resource. The postion coordinates are based on the World Geodetic System (WGS84).
Synopsis
- data UpdateResourcePosition = UpdateResourcePosition' {}
- newUpdateResourcePosition :: Text -> PositionResourceType -> UpdateResourcePosition
- updateResourcePosition_geoJsonPayload :: Lens' UpdateResourcePosition (Maybe ByteString)
- updateResourcePosition_resourceIdentifier :: Lens' UpdateResourcePosition Text
- updateResourcePosition_resourceType :: Lens' UpdateResourcePosition PositionResourceType
- data UpdateResourcePositionResponse = UpdateResourcePositionResponse' {
- httpStatus :: Int
- newUpdateResourcePositionResponse :: Int -> UpdateResourcePositionResponse
- updateResourcePositionResponse_httpStatus :: Lens' UpdateResourcePositionResponse Int
Creating a Request
data UpdateResourcePosition Source #
See: newUpdateResourcePosition smart constructor.
Constructors
| UpdateResourcePosition' | |
Fields
| |
Instances
newUpdateResourcePosition Source #
Arguments
| :: Text | |
| -> PositionResourceType | |
| -> UpdateResourcePosition |
Create a value of UpdateResourcePosition 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:geoJsonPayload:UpdateResourcePosition', updateResourcePosition_geoJsonPayload - The position information of the resource, displayed as a JSON payload.
The payload uses the GeoJSON format, which a format that's used to
encode geographic data structures. For more information, see
GeoJSON.
$sel:resourceIdentifier:UpdateResourcePosition', updateResourcePosition_resourceIdentifier - The identifier of the resource for which position information is
updated. It can be the wireless device ID or the wireless gateway ID
depending on the resource type.
$sel:resourceType:UpdateResourcePosition', updateResourcePosition_resourceType - The type of resource for which position information is updated, which
can be a wireless device or a wireless gateway.
Request Lenses
updateResourcePosition_geoJsonPayload :: Lens' UpdateResourcePosition (Maybe ByteString) Source #
The position information of the resource, displayed as a JSON payload. The payload uses the GeoJSON format, which a format that's used to encode geographic data structures. For more information, see GeoJSON.
updateResourcePosition_resourceIdentifier :: Lens' UpdateResourcePosition Text Source #
The identifier of the resource for which position information is updated. It can be the wireless device ID or the wireless gateway ID depending on the resource type.
updateResourcePosition_resourceType :: Lens' UpdateResourcePosition PositionResourceType Source #
The type of resource for which position information is updated, which can be a wireless device or a wireless gateway.
Destructuring the Response
data UpdateResourcePositionResponse Source #
See: newUpdateResourcePositionResponse smart constructor.
Constructors
| UpdateResourcePositionResponse' | |
Fields
| |
Instances
newUpdateResourcePositionResponse Source #
Create a value of UpdateResourcePositionResponse 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:UpdateResourcePositionResponse', updateResourcePositionResponse_httpStatus - The response's http status code.
Response Lenses
updateResourcePositionResponse_httpStatus :: Lens' UpdateResourcePositionResponse Int Source #
The response's http status code.