aws_sdk_securityhub/client/
batch_get_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 [`BatchGetAutomationRules`](crate::operation::batch_get_automation_rules::builders::BatchGetAutomationRulesFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`automation_rules_arns(impl Into<String>)`](crate::operation::batch_get_automation_rules::builders::BatchGetAutomationRulesFluentBuilder::automation_rules_arns) / [`set_automation_rules_arns(Option<Vec::<String>>)`](crate::operation::batch_get_automation_rules::builders::BatchGetAutomationRulesFluentBuilder::set_automation_rules_arns):<br>required: **true**<br><p>A list of rule ARNs to get details for.</p><br>
7    /// - On success, responds with [`BatchGetAutomationRulesOutput`](crate::operation::batch_get_automation_rules::BatchGetAutomationRulesOutput) with field(s):
8    ///   - [`rules(Option<Vec::<AutomationRulesConfig>>)`](crate::operation::batch_get_automation_rules::BatchGetAutomationRulesOutput::rules): <p>A list of rule details for the provided rule ARNs.</p>
9    ///   - [`unprocessed_automation_rules(Option<Vec::<UnprocessedAutomationRule>>)`](crate::operation::batch_get_automation_rules::BatchGetAutomationRulesOutput::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 retrieve and why.</p>
10    /// - On failure, responds with [`SdkError<BatchGetAutomationRulesError>`](crate::operation::batch_get_automation_rules::BatchGetAutomationRulesError)
11    pub fn batch_get_automation_rules(&self) -> crate::operation::batch_get_automation_rules::builders::BatchGetAutomationRulesFluentBuilder {
12        crate::operation::batch_get_automation_rules::builders::BatchGetAutomationRulesFluentBuilder::new(self.handle.clone())
13    }
14}