Class CfnTopicRule.LocationActionProperty
Describes an action to send device location updates from an MQTT message to an Amazon Location tracker resource.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.AWS.IoT.dll
Syntax (csharp)
public class LocationActionProperty : Object, CfnTopicRule.ILocationActionProperty
Syntax (vb)
Public Class LocationActionProperty
Inherits Object
Implements CfnTopicRule.ILocationActionProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.IoT;
var locationActionProperty = new LocationActionProperty {
DeviceId = "deviceId",
Latitude = "latitude",
Longitude = "longitude",
RoleArn = "roleArn",
TrackerName = "trackerName",
// the properties below are optional
Timestamp = new Date()
};
Synopsis
Constructors
LocationActionProperty() |
Properties
DeviceId | The unique ID of the device providing the location data. |
Latitude | A string that evaluates to a double value that represents the latitude of the device's location. |
Longitude | A string that evaluates to a double value that represents the longitude of the device's location. |
RoleArn | The IAM role that grants permission to write to the Amazon Location resource. |
Timestamp | The time that the location data was sampled. |
TrackerName | The name of the tracker resource in Amazon Location in which the location is updated. |
Constructors
LocationActionProperty()
public LocationActionProperty()
Properties
DeviceId
The unique ID of the device providing the location data.
public string DeviceId { get; set; }
Property Value
System.String
Remarks
Latitude
A string that evaluates to a double value that represents the latitude of the device's location.
public string Latitude { get; set; }
Property Value
System.String
Remarks
Longitude
A string that evaluates to a double value that represents the longitude of the device's location.
public string Longitude { get; set; }
Property Value
System.String
Remarks
RoleArn
The IAM role that grants permission to write to the Amazon Location resource.
public string RoleArn { get; set; }
Property Value
System.String
Remarks
Timestamp
The time that the location data was sampled.
public object Timestamp { get; set; }
Property Value
System.Object
Remarks
The default value is the time the MQTT message was processed.
TrackerName
The name of the tracker resource in Amazon Location in which the location is updated.
public string TrackerName { get; set; }
Property Value
System.String