interface LocationActionProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoT.Mixins.CfnTopicRulePropsMixin.LocationActionProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiot/mixins#CfnTopicRulePropsMixin_LocationActionProperty |
Java | software.amazon.awscdk.mixins.preview.services.iot.mixins.CfnTopicRulePropsMixin.LocationActionProperty |
Python | aws_cdk.mixins_preview.aws_iot.mixins.CfnTopicRulePropsMixin.LocationActionProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iot » mixins » CfnTopicRulePropsMixin » LocationActionProperty |
Describes an action to send device location updates from an MQTT message to an Amazon Location tracker resource.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as iot_mixins } from '@aws-cdk/mixins-preview/aws-iot';
const locationActionProperty: iot_mixins.CfnTopicRulePropsMixin.LocationActionProperty = {
deviceId: 'deviceId',
latitude: 'latitude',
longitude: 'longitude',
roleArn: 'roleArn',
timestamp: {
unit: 'unit',
value: 'value',
},
trackerName: 'trackerName',
};
Properties
| Name | Type | Description |
|---|---|---|
| device | string | The unique ID of the device providing the location data. |
| latitude? | string | A string that evaluates to a double value that represents the latitude of the device's location. |
| longitude? | string | A string that evaluates to a double value that represents the longitude of the device's location. |
| role | string | The IAM role that grants permission to write to the Amazon Location resource. |
| timestamp? | IResolvable | Timestamp | The time that the location data was sampled. |
| tracker | string | The name of the tracker resource in Amazon Location in which the location is updated. |
deviceId?
Type:
string
(optional)
The unique ID of the device providing the location data.
latitude?
Type:
string
(optional)
A string that evaluates to a double value that represents the latitude of the device's location.
longitude?
Type:
string
(optional)
A string that evaluates to a double value that represents the longitude of the device's location.
roleArn?
Type:
string
(optional)
The IAM role that grants permission to write to the Amazon Location resource.
timestamp?
Type:
IResolvable | Timestamp
(optional)
The time that the location data was sampled.
The default value is the time the MQTT message was processed.
trackerName?
Type:
string
(optional)
The name of the tracker resource in Amazon Location in which the location is updated.

.NET
Go
Java
Python
TypeScript