amazonka-iot-2.0: Amazon IoT 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.IoT.Types.LocationAction

Description

 
Synopsis

Documentation

data LocationAction Source #

The Amazon Location rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.

See: newLocationAction smart constructor.

Constructors

LocationAction' 

Fields

  • timestamp :: Maybe LocationTimestamp

    The time that the location data was sampled. The default value is the time the MQTT message was processed.

  • roleArn :: Text

    The IAM role that grants permission to write to the Amazon Location resource.

  • trackerName :: Text

    The name of the tracker resource in Amazon Location in which the location is updated.

  • deviceId :: Text

    The unique ID of the device providing the location data.

  • latitude :: Text

    A string that evaluates to a double value that represents the latitude of the device's location.

  • longitude :: Text

    A string that evaluates to a double value that represents the longitude of the device's location.

Instances

Instances details
FromJSON LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

ToJSON LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

Generic LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

Associated Types

type Rep LocationAction :: Type -> Type #

Read LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

Show LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

NFData LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

Methods

rnf :: LocationAction -> () #

Eq LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

Hashable LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

type Rep LocationAction Source # 
Instance details

Defined in Amazonka.IoT.Types.LocationAction

newLocationAction Source #

Create a value of LocationAction 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:timestamp:LocationAction', locationAction_timestamp - The time that the location data was sampled. The default value is the time the MQTT message was processed.

$sel:roleArn:LocationAction', locationAction_roleArn - The IAM role that grants permission to write to the Amazon Location resource.

$sel:trackerName:LocationAction', locationAction_trackerName - The name of the tracker resource in Amazon Location in which the location is updated.

$sel:deviceId:LocationAction', locationAction_deviceId - The unique ID of the device providing the location data.

$sel:latitude:LocationAction', locationAction_latitude - A string that evaluates to a double value that represents the latitude of the device's location.

$sel:longitude:LocationAction', locationAction_longitude - A string that evaluates to a double value that represents the longitude of the device's location.

locationAction_timestamp :: Lens' LocationAction (Maybe LocationTimestamp) Source #

The time that the location data was sampled. The default value is the time the MQTT message was processed.

locationAction_roleArn :: Lens' LocationAction Text Source #

The IAM role that grants permission to write to the Amazon Location resource.

locationAction_trackerName :: Lens' LocationAction Text Source #

The name of the tracker resource in Amazon Location in which the location is updated.

locationAction_deviceId :: Lens' LocationAction Text Source #

The unique ID of the device providing the location data.

locationAction_latitude :: Lens' LocationAction Text Source #

A string that evaluates to a double value that represents the latitude of the device's location.

locationAction_longitude :: Lens' LocationAction Text Source #

A string that evaluates to a double value that represents the longitude of the device's location.