amazonka-iotwireless-2.0: Amazon IoT Wireless SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.IoTWireless.GetResourcePosition

Description

Get the position information for a given wireless device or a wireless gateway resource. The postion information uses the World Geodetic System (WGS84).

Synopsis

Creating a Request

data GetResourcePosition Source #

See: newGetResourcePosition smart constructor.

Constructors

GetResourcePosition' 

Fields

  • resourceIdentifier :: Text

    The identifier of the resource for which position information is retrieved. It can be the wireless device ID or the wireless gateway ID depending on the resource type.

  • resourceType :: PositionResourceType

    The type of resource for which position information is retrieved, which can be a wireless device or a wireless gateway.

Instances

Instances details
ToHeaders GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

ToPath GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

ToQuery GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

AWSRequest GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

Associated Types

type AWSResponse GetResourcePosition #

Generic GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

Associated Types

type Rep GetResourcePosition :: Type -> Type #

Read GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

Show GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

NFData GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

Methods

rnf :: GetResourcePosition -> () #

Eq GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

Hashable GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

type AWSResponse GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

type Rep GetResourcePosition Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

type Rep GetResourcePosition = D1 ('MetaData "GetResourcePosition" "Amazonka.IoTWireless.GetResourcePosition" "amazonka-iotwireless-2.0-Dzx6Wen5AK9DyNP5TQU7zN" 'False) (C1 ('MetaCons "GetResourcePosition'" 'PrefixI 'True) (S1 ('MetaSel ('Just "resourceIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "resourceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PositionResourceType)))

newGetResourcePosition Source #

Create a value of GetResourcePosition 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:resourceIdentifier:GetResourcePosition', getResourcePosition_resourceIdentifier - The identifier of the resource for which position information is retrieved. It can be the wireless device ID or the wireless gateway ID depending on the resource type.

$sel:resourceType:GetResourcePosition', getResourcePosition_resourceType - The type of resource for which position information is retrieved, which can be a wireless device or a wireless gateway.

Request Lenses

getResourcePosition_resourceIdentifier :: Lens' GetResourcePosition Text Source #

The identifier of the resource for which position information is retrieved. It can be the wireless device ID or the wireless gateway ID depending on the resource type.

getResourcePosition_resourceType :: Lens' GetResourcePosition PositionResourceType Source #

The type of resource for which position information is retrieved, which can be a wireless device or a wireless gateway.

Destructuring the Response

data GetResourcePositionResponse Source #

See: newGetResourcePositionResponse smart constructor.

Constructors

GetResourcePositionResponse' 

Fields

  • geoJsonPayload :: Maybe ByteString

    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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic GetResourcePositionResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

Associated Types

type Rep GetResourcePositionResponse :: Type -> Type #

Read GetResourcePositionResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

Show GetResourcePositionResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

NFData GetResourcePositionResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

Eq GetResourcePositionResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

type Rep GetResourcePositionResponse Source # 
Instance details

Defined in Amazonka.IoTWireless.GetResourcePosition

type Rep GetResourcePositionResponse = D1 ('MetaData "GetResourcePositionResponse" "Amazonka.IoTWireless.GetResourcePosition" "amazonka-iotwireless-2.0-Dzx6Wen5AK9DyNP5TQU7zN" 'False) (C1 ('MetaCons "GetResourcePositionResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "geoJsonPayload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ByteString)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetResourcePositionResponse Source #

Create a value of GetResourcePositionResponse 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:GetResourcePositionResponse', getResourcePositionResponse_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:httpStatus:GetResourcePositionResponse', getResourcePositionResponse_httpStatus - The response's http status code.

Response Lenses

getResourcePositionResponse_geoJsonPayload :: Lens' GetResourcePositionResponse (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.