Struct aws_sdk_connect::operation::create_rule::CreateRuleInput
source · #[non_exhaustive]pub struct CreateRuleInput {
pub instance_id: Option<String>,
pub name: Option<String>,
pub trigger_event_source: Option<RuleTriggerEventSource>,
pub function: Option<String>,
pub actions: Option<Vec<RuleAction>>,
pub publish_status: Option<RulePublishStatus>,
pub client_token: Option<String>,
}
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.instance_id: Option<String>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
name: Option<String>
A unique name for 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.
client_token: Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Implementations§
source§impl CreateRuleInput
impl CreateRuleInput
sourcepub fn instance_id(&self) -> Option<&str>
pub fn instance_id(&self) -> Option<&str>
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
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.
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 publish_status(&self) -> Option<&RulePublishStatus>
pub fn publish_status(&self) -> Option<&RulePublishStatus>
The publish status of the rule.
sourcepub fn client_token(&self) -> Option<&str>
pub fn client_token(&self) -> Option<&str>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
source§impl CreateRuleInput
impl CreateRuleInput
sourcepub fn builder() -> CreateRuleInputBuilder
pub fn builder() -> CreateRuleInputBuilder
Creates a new builder-style object to manufacture CreateRuleInput
.
Trait Implementations§
source§impl Clone for CreateRuleInput
impl Clone for CreateRuleInput
source§fn clone(&self) -> CreateRuleInput
fn clone(&self) -> CreateRuleInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateRuleInput
impl Debug for CreateRuleInput
source§impl PartialEq for CreateRuleInput
impl PartialEq for CreateRuleInput
source§fn eq(&self, other: &CreateRuleInput) -> bool
fn eq(&self, other: &CreateRuleInput) -> bool
self
and other
values to be equal, and is used
by ==
.