Struct aws_sdk_iot::types::LocationAction
source · #[non_exhaustive]pub struct LocationAction {
pub role_arn: String,
pub tracker_name: String,
pub device_id: String,
pub timestamp: Option<LocationTimestamp>,
pub latitude: String,
pub longitude: String,
}
Expand description
The Amazon Location rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.role_arn: String
The IAM role that grants permission to write to the Amazon Location resource.
tracker_name: String
The name of the tracker resource in Amazon Location in which the location is updated.
device_id: String
The unique ID of the device providing the location data.
timestamp: Option<LocationTimestamp>
The time that the location data was sampled. The default value is the time the MQTT message was processed.
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.
Implementations§
source§impl LocationAction
impl LocationAction
sourcepub fn role_arn(&self) -> &str
pub fn role_arn(&self) -> &str
The IAM role that grants permission to write to the Amazon Location resource.
sourcepub fn tracker_name(&self) -> &str
pub fn tracker_name(&self) -> &str
The name of the tracker resource in Amazon Location in which the location is updated.
sourcepub fn timestamp(&self) -> Option<&LocationTimestamp>
pub fn timestamp(&self) -> Option<&LocationTimestamp>
The time that the location data was sampled. The default value is the time the MQTT message was processed.
source§impl LocationAction
impl LocationAction
sourcepub fn builder() -> LocationActionBuilder
pub fn builder() -> LocationActionBuilder
Creates a new builder-style object to manufacture LocationAction
.
Trait Implementations§
source§impl Clone for LocationAction
impl Clone for LocationAction
source§fn clone(&self) -> LocationAction
fn clone(&self) -> LocationAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationAction
impl Debug for LocationAction
source§impl PartialEq for LocationAction
impl PartialEq for LocationAction
source§fn eq(&self, other: &LocationAction) -> bool
fn eq(&self, other: &LocationAction) -> bool
self
and other
values to be equal, and is used
by ==
.