Interface CfnTopicRule.ILocationActionProperty
Describes an action to send device location updates from an MQTT message to an Amazon Location tracker resource.
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.AWS.IoT.dll
Syntax (csharp)
public interface ILocationActionProperty
Syntax (vb)
Public Interface 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
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. |
Properties
DeviceId
The unique ID of the device providing the location data.
string DeviceId { get; }
Property Value
System.String
Remarks
Latitude
A string that evaluates to a double value that represents the latitude of the device's location.
string Latitude { get; }
Property Value
System.String
Remarks
Longitude
A string that evaluates to a double value that represents the longitude of the device's location.
string Longitude { get; }
Property Value
System.String
Remarks
RoleArn
The IAM role that grants permission to write to the Amazon Location resource.
string RoleArn { get; }
Property Value
System.String
Remarks
Timestamp
The time that the location data was sampled.
virtual object Timestamp { get; }
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.
string TrackerName { get; }
Property Value
System.String