Struct aws_sdk_iot::types::LocationAction
source · #[non_exhaustive]pub struct LocationAction {
pub role_arn: Option<String>,
pub tracker_name: Option<String>,
pub device_id: Option<String>,
pub timestamp: Option<LocationTimestamp>,
pub latitude: Option<String>,
pub longitude: Option<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: Option<String>
The IAM role that grants permission to write to the Amazon Location resource.
tracker_name: Option<String>
The name of the tracker resource in Amazon Location in which the location is updated.
device_id: Option<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: Option<String>
A string that evaluates to a double value that represents the latitude of the device's location.
longitude: Option<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) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The IAM role that grants permission to write to the Amazon Location resource.
sourcepub fn tracker_name(&self) -> Option<&str>
pub fn tracker_name(&self) -> Option<&str>
The name of the tracker resource in Amazon Location in which the location is updated.
sourcepub fn device_id(&self) -> Option<&str>
pub fn device_id(&self) -> Option<&str>
The unique ID of the device providing the location data.
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 ==
.