aws_sdk_securityhub/client/
batch_delete_automation_rules.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 [`BatchDeleteAutomationRules`](crate::operation::batch_delete_automation_rules::builders::BatchDeleteAutomationRulesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`automation_rules_arns(impl Into<String>)`](crate::operation::batch_delete_automation_rules::builders::BatchDeleteAutomationRulesFluentBuilder::automation_rules_arns) / [`set_automation_rules_arns(Option<Vec::<String>>)`](crate::operation::batch_delete_automation_rules::builders::BatchDeleteAutomationRulesFluentBuilder::set_automation_rules_arns):<br>required: **true**<br><p>A list of Amazon Resource Names (ARNs) for the rules that are to be deleted.</p><br>
7    /// - On success, responds with [`BatchDeleteAutomationRulesOutput`](crate::operation::batch_delete_automation_rules::BatchDeleteAutomationRulesOutput) with field(s):
8    ///   - [`processed_automation_rules(Option<Vec::<String>>)`](crate::operation::batch_delete_automation_rules::BatchDeleteAutomationRulesOutput::processed_automation_rules): <p>A list of properly processed rule ARNs.</p>
9    ///   - [`unprocessed_automation_rules(Option<Vec::<UnprocessedAutomationRule>>)`](crate::operation::batch_delete_automation_rules::BatchDeleteAutomationRulesOutput::unprocessed_automation_rules): <p>A list of objects containing <code>RuleArn</code>, <code>ErrorCode</code>, and <code>ErrorMessage</code>. This parameter tells you which automation rules the request didn't delete and why.</p>
10    /// - On failure, responds with [`SdkError<BatchDeleteAutomationRulesError>`](crate::operation::batch_delete_automation_rules::BatchDeleteAutomationRulesError)
11    pub fn batch_delete_automation_rules(
12        &self,
13    ) -> crate::operation::batch_delete_automation_rules::builders::BatchDeleteAutomationRulesFluentBuilder {
14        crate::operation::batch_delete_automation_rules::builders::BatchDeleteAutomationRulesFluentBuilder::new(self.handle.clone())
15    }
16}