Struct aws_sdk_connect::types::Rule
source · #[non_exhaustive]pub struct Rule {
pub name: String,
pub rule_id: String,
pub rule_arn: String,
pub trigger_event_source: Option<RuleTriggerEventSource>,
pub function: String,
pub actions: Vec<RuleAction>,
pub publish_status: RulePublishStatus,
pub created_time: DateTime,
pub last_updated_time: DateTime,
pub last_updated_by: String,
pub tags: Option<HashMap<String, String>>,
}
Expand description
Information about 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.name: String
The name of the rule.
rule_id: String
A unique identifier for the rule.
rule_arn: String
The Amazon Resource Name (ARN) of the rule.
trigger_event_source: Option<RuleTriggerEventSource>
The event source to trigger the rule.
function: String
The conditions of the rule.
actions: Vec<RuleAction>
A list of actions to be run when the rule is triggered.
publish_status: RulePublishStatus
The publish status of the rule.
created_time: DateTime
The timestamp for when the rule was created.
last_updated_time: DateTime
The timestamp for the when the rule was last updated.
last_updated_by: String
The Amazon Resource Name (ARN) of the user who last updated the rule.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
Implementations§
source§impl Rule
impl Rule
sourcepub fn trigger_event_source(&self) -> Option<&RuleTriggerEventSource>
pub fn trigger_event_source(&self) -> Option<&RuleTriggerEventSource>
The event source to trigger the rule.
sourcepub fn actions(&self) -> &[RuleAction]
pub fn actions(&self) -> &[RuleAction]
A list of actions to be run when the rule is triggered.
sourcepub fn publish_status(&self) -> &RulePublishStatus
pub fn publish_status(&self) -> &RulePublishStatus
The publish status of the rule.
sourcepub fn created_time(&self) -> &DateTime
pub fn created_time(&self) -> &DateTime
The timestamp for when the rule was created.
sourcepub fn last_updated_time(&self) -> &DateTime
pub fn last_updated_time(&self) -> &DateTime
The timestamp for the when the rule was last updated.
sourcepub fn last_updated_by(&self) -> &str
pub fn last_updated_by(&self) -> &str
The Amazon Resource Name (ARN) of the user who last updated the rule.
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
Trait Implementations§
source§impl PartialEq for Rule
impl PartialEq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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