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"} }.