aws_sdk_securityhub/client/
get_automation_rule_v2.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 [`GetAutomationRuleV2`](crate::operation::get_automation_rule_v2::builders::GetAutomationRuleV2FluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`identifier(impl Into<String>)`](crate::operation::get_automation_rule_v2::builders::GetAutomationRuleV2FluentBuilder::identifier) / [`set_identifier(Option<String>)`](crate::operation::get_automation_rule_v2::builders::GetAutomationRuleV2FluentBuilder::set_identifier):<br>required: **true**<br><p>The ARN of the V2 automation rule.</p><br>
7    /// - On success, responds with [`GetAutomationRuleV2Output`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output) with field(s):
8    ///   - [`rule_arn(Option<String>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::rule_arn): <p>The ARN of the V2 automation rule.</p>
9    ///   - [`rule_id(Option<String>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::rule_id): <p>The ID of the V2 automation rule.</p>
10    ///   - [`rule_order(Option<f32>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::rule_order): <p>The value for the rule priority.</p>
11    ///   - [`rule_name(Option<String>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::rule_name): <p>The name of the V2 automation rule.</p>
12    ///   - [`rule_status(Option<RuleStatusV2>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::rule_status): <p>The status of the V2 automation automation rule.</p>
13    ///   - [`description(Option<String>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::description): <p>A description of the automation rule.</p>
14    ///   - [`criteria(Option<Criteria>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::criteria): <p>The filtering type and configuration of the V2 automation rule.</p>
15    ///   - [`actions(Option<Vec::<AutomationRulesActionV2>>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::actions): <p>A list of actions performed when the rule criteria is met.</p>
16    ///   - [`created_at(Option<DateTime>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::created_at): <p>The timestamp when the V2 automation rule was created.</p>
17    ///   - [`updated_at(Option<DateTime>)`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Output::updated_at): <p>The timestamp when the V2 automation rule was updated.</p>
18    /// - On failure, responds with [`SdkError<GetAutomationRuleV2Error>`](crate::operation::get_automation_rule_v2::GetAutomationRuleV2Error)
19    pub fn get_automation_rule_v2(&self) -> crate::operation::get_automation_rule_v2::builders::GetAutomationRuleV2FluentBuilder {
20        crate::operation::get_automation_rule_v2::builders::GetAutomationRuleV2FluentBuilder::new(self.handle.clone())
21    }
22}