Struct aws_sdk_connect::types::Rule
source · #[non_exhaustive]pub struct Rule {
pub name: Option<String>,
pub rule_id: Option<String>,
pub rule_arn: Option<String>,
pub trigger_event_source: Option<RuleTriggerEventSource>,
pub function: Option<String>,
pub actions: Option<Vec<RuleAction>>,
pub publish_status: Option<RulePublishStatus>,
pub created_time: Option<DateTime>,
pub last_updated_time: Option<DateTime>,
pub last_updated_by: Option<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: Option<String>
The name of the rule.
rule_id: Option<String>
A unique identifier for the rule.
rule_arn: Option<String>
The Amazon Resource Name (ARN) of the rule.
trigger_event_source: Option<RuleTriggerEventSource>
The event source to trigger the rule.
function: Option<String>
The conditions of the rule.
actions: Option<Vec<RuleAction>>
A list of actions to be run when the rule is triggered.
publish_status: Option<RulePublishStatus>
The publish status of the rule.
created_time: Option<DateTime>
The timestamp for when the rule was created.
last_updated_time: Option<DateTime>
The timestamp for the when the rule was last updated.
last_updated_by: Option<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) -> Option<&[RuleAction]>
pub fn actions(&self) -> Option<&[RuleAction]>
A list of actions to be run when the rule is triggered.
sourcepub fn publish_status(&self) -> Option<&RulePublishStatus>
pub fn publish_status(&self) -> Option<&RulePublishStatus>
The publish status of the rule.
sourcepub fn created_time(&self) -> Option<&DateTime>
pub fn created_time(&self) -> Option<&DateTime>
The timestamp for when the rule was created.
sourcepub fn last_updated_time(&self) -> Option<&DateTime>
pub fn last_updated_time(&self) -> Option<&DateTime>
The timestamp for the when the rule was last updated.
sourcepub fn last_updated_by(&self) -> Option<&str>
pub fn last_updated_by(&self) -> Option<&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"} }.