// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`DeleteRule`](crate::operation::delete_rule::builders::DeleteRuleFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::delete_rule::builders::DeleteRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::delete_rule::builders::DeleteRuleFluentBuilder::set_name):<br>required: **true**<br><p>The name of the rule.</p><br>
/// - [`event_bus_name(impl Into<String>)`](crate::operation::delete_rule::builders::DeleteRuleFluentBuilder::event_bus_name) / [`set_event_bus_name(Option<String>)`](crate::operation::delete_rule::builders::DeleteRuleFluentBuilder::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>
/// - [`force(bool)`](crate::operation::delete_rule::builders::DeleteRuleFluentBuilder::force) / [`set_force(Option<bool>)`](crate::operation::delete_rule::builders::DeleteRuleFluentBuilder::set_force):<br>required: **false**<br><p>If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify <code>Force</code> as <code>True</code> to delete the rule. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using <code>DescribeRule</code> or <code>ListRules</code> and checking the <code>ManagedBy</code> field of the response.</p><br>
/// - On success, responds with [`DeleteRuleOutput`](crate::operation::delete_rule::DeleteRuleOutput)
/// - On failure, responds with [`SdkError<DeleteRuleError>`](crate::operation::delete_rule::DeleteRuleError)
pub fn delete_rule(&self) -> crate::operation::delete_rule::builders::DeleteRuleFluentBuilder {
crate::operation::delete_rule::builders::DeleteRuleFluentBuilder::new(self.handle.clone())
}
}