aws_sdk_eventbridge/client/disable_rule.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`DisableRule`](crate::operation::disable_rule::builders::DisableRuleFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`name(impl Into<String>)`](crate::operation::disable_rule::builders::DisableRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::disable_rule::builders::DisableRuleFluentBuilder::set_name):<br>required: **true**<br><p>The name of the rule.</p><br>
7 /// - [`event_bus_name(impl Into<String>)`](crate::operation::disable_rule::builders::DisableRuleFluentBuilder::event_bus_name) / [`set_event_bus_name(Option<String>)`](crate::operation::disable_rule::builders::DisableRuleFluentBuilder::set_event_bus_name):<br>required: **false**<br><p>The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.</p><br>
8 /// - On success, responds with [`DisableRuleOutput`](crate::operation::disable_rule::DisableRuleOutput)
9 /// - On failure, responds with [`SdkError<DisableRuleError>`](crate::operation::disable_rule::DisableRuleError)
10 pub fn disable_rule(&self) -> crate::operation::disable_rule::builders::DisableRuleFluentBuilder {
11 crate::operation::disable_rule::builders::DisableRuleFluentBuilder::new(self.handle.clone())
12 }
13}