Struct aws_sdk_iot::types::TopicRule
source · #[non_exhaustive]pub struct TopicRule {
pub rule_name: Option<String>,
pub sql: Option<String>,
pub description: Option<String>,
pub created_at: Option<DateTime>,
pub actions: Option<Vec<Action>>,
pub rule_disabled: Option<bool>,
pub aws_iot_sql_version: Option<String>,
pub error_action: Option<Action>,
}
Expand description
Describes a rule.
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.rule_name: Option<String>
The name of the rule.
sql: Option<String>
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.
description: Option<String>
The description of the rule.
created_at: Option<DateTime>
The date and time the rule was created.
actions: Option<Vec<Action>>
The actions associated with the rule.
rule_disabled: Option<bool>
Specifies whether the rule is disabled.
aws_iot_sql_version: Option<String>
The version of the SQL rules engine to use when evaluating the rule.
error_action: Option<Action>
The action to perform when an error occurs.
Implementations§
source§impl TopicRule
impl TopicRule
sourcepub fn sql(&self) -> Option<&str>
pub fn sql(&self) -> Option<&str>
The SQL statement used to query the topic. When using a SQL query with multiple lines, be sure to escape the newline characters.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the rule.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The date and time the rule was created.
sourcepub fn actions(&self) -> &[Action]
pub fn actions(&self) -> &[Action]
The actions associated with the rule.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .actions.is_none()
.
sourcepub fn rule_disabled(&self) -> Option<bool>
pub fn rule_disabled(&self) -> Option<bool>
Specifies whether the rule is disabled.
sourcepub fn aws_iot_sql_version(&self) -> Option<&str>
pub fn aws_iot_sql_version(&self) -> Option<&str>
The version of the SQL rules engine to use when evaluating the rule.
sourcepub fn error_action(&self) -> Option<&Action>
pub fn error_action(&self) -> Option<&Action>
The action to perform when an error occurs.
Trait Implementations§
source§impl PartialEq for TopicRule
impl PartialEq for TopicRule
impl StructuralPartialEq for TopicRule
Auto Trait Implementations§
impl Freeze for TopicRule
impl RefUnwindSafe for TopicRule
impl Send for TopicRule
impl Sync for TopicRule
impl Unpin for TopicRule
impl UnwindSafe for TopicRule
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more