pub struct CreateRuleFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateRule
.
Creates a rule for the specified Amazon Connect instance.
Use the Rules Function language to code conditions for the rule.
Implementations§
source§impl CreateRuleFluentBuilder
impl CreateRuleFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateRule, AwsResponseRetryClassifier>, SdkError<CreateRuleError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateRule, AwsResponseRetryClassifier>, SdkError<CreateRuleError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<CreateRuleOutput, SdkError<CreateRuleError>>
pub async fn send(self) -> Result<CreateRuleOutput, SdkError<CreateRuleError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn instance_id(self, input: impl Into<String>) -> Self
pub fn instance_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn set_instance_id(self, input: Option<String>) -> Self
pub fn set_instance_id(self, input: Option<String>) -> Self
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
sourcepub fn trigger_event_source(self, input: RuleTriggerEventSource) -> Self
pub fn trigger_event_source(self, input: RuleTriggerEventSource) -> Self
The event source to trigger the rule.
sourcepub fn set_trigger_event_source(
self,
input: Option<RuleTriggerEventSource>
) -> Self
pub fn set_trigger_event_source( self, input: Option<RuleTriggerEventSource> ) -> Self
The event source to trigger the rule.
sourcepub fn set_function(self, input: Option<String>) -> Self
pub fn set_function(self, input: Option<String>) -> Self
The conditions of the rule.
sourcepub fn actions(self, input: RuleAction) -> Self
pub fn actions(self, input: RuleAction) -> Self
Appends an item to Actions
.
To override the contents of this collection use set_actions
.
A list of actions to be run when the rule is triggered.
sourcepub fn set_actions(self, input: Option<Vec<RuleAction>>) -> Self
pub fn set_actions(self, input: Option<Vec<RuleAction>>) -> Self
A list of actions to be run when the rule is triggered.
sourcepub fn publish_status(self, input: RulePublishStatus) -> Self
pub fn publish_status(self, input: RulePublishStatus) -> Self
The publish status of the rule.
sourcepub fn set_publish_status(self, input: Option<RulePublishStatus>) -> Self
pub fn set_publish_status(self, input: Option<RulePublishStatus>) -> Self
The publish status of the rule.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
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.
Trait Implementations§
source§impl Clone for CreateRuleFluentBuilder
impl Clone for CreateRuleFluentBuilder
source§fn clone(&self) -> CreateRuleFluentBuilder
fn clone(&self) -> CreateRuleFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more