Interface CfnTopicRule.LocationActionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTopicRule.LocationActionProperty.Jsii$Proxy
- Enclosing class:
CfnTopicRule
@Stability(Stable)
public static interface CfnTopicRule.LocationActionProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.iot.*; LocationActionProperty locationActionProperty = LocationActionProperty.builder() .deviceId("deviceId") .latitude("latitude") .longitude("longitude") .roleArn("roleArn") .trackerName("trackerName") // the properties below are optional .timestamp(TimestampProperty.builder() .value("value") // the properties below are optional .unit("unit") .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnTopicRule.LocationActionProperty
static final class
An implementation forCfnTopicRule.LocationActionProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The unique ID of the device providing the location data.A string that evaluates to a double value that represents the latitude of the device's location.A string that evaluates to a double value that represents the longitude of the device's location.The IAM role that grants permission to write to the Amazon Location resource.default Object
The time that the location data was sampled.The name of the tracker resource in Amazon Location in which the location is updated.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDeviceId
The unique ID of the device providing the location data.- See Also:
-
getLatitude
A string that evaluates to a double value that represents the latitude of the device's location.- See Also:
-
getLongitude
A string that evaluates to a double value that represents the longitude of the device's location.- See Also:
-
getRoleArn
The IAM role that grants permission to write to the Amazon Location resource.- See Also:
-
getTrackerName
The name of the tracker resource in Amazon Location in which the location is updated.- See Also:
-
getTimestamp
The time that the location data was sampled.The default value is the time the MQTT message was processed.
- See Also:
-
builder
-