aws_sdk_computeoptimizerautomation/client/
delete_automation_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 [`DeleteAutomationRule`](crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`rule_arn(impl Into<String>)`](crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder::rule_arn) / [`set_rule_arn(Option<String>)`](crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder::set_rule_arn):<br>required: **true**<br><p>The ARN of the rule to delete.</p><br>
7    ///   - [`rule_revision(i64)`](crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder::rule_revision) / [`set_rule_revision(Option<i64>)`](crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder::set_rule_revision):<br>required: **true**<br><p>The revision number of the rule to delete.</p><br>
8    ///   - [`client_token(impl Into<String>)`](crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique identifier to ensure idempotency of the request.</p><br>
9    /// - On success, responds with [`DeleteAutomationRuleOutput`](crate::operation::delete_automation_rule::DeleteAutomationRuleOutput)
10    /// - On failure, responds with [`SdkError<DeleteAutomationRuleError>`](crate::operation::delete_automation_rule::DeleteAutomationRuleError)
11    pub fn delete_automation_rule(&self) -> crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder {
12        crate::operation::delete_automation_rule::builders::DeleteAutomationRuleFluentBuilder::new(self.handle.clone())
13    }
14}