aws_sdk_securityhub/client/
enable_security_hub_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 [`EnableSecurityHubV2`](crate::operation::enable_security_hub_v2::builders::EnableSecurityHubV2FluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::enable_security_hub_v2::builders::EnableSecurityHubV2FluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::enable_security_hub_v2::builders::EnableSecurityHubV2FluentBuilder::set_tags):<br>required: **false**<br><p>The tags to add to the hub V2 resource when you enable Security Hub.</p><br>
7    /// - On success, responds with [`EnableSecurityHubV2Output`](crate::operation::enable_security_hub_v2::EnableSecurityHubV2Output) with field(s):
8    ///   - [`hub_v2_arn(Option<String>)`](crate::operation::enable_security_hub_v2::EnableSecurityHubV2Output::hub_v2_arn): <p>The ARN of the V2 resource that was created.</p>
9    /// - On failure, responds with [`SdkError<EnableSecurityHubV2Error>`](crate::operation::enable_security_hub_v2::EnableSecurityHubV2Error)
10    pub fn enable_security_hub_v2(&self) -> crate::operation::enable_security_hub_v2::builders::EnableSecurityHubV2FluentBuilder {
11        crate::operation::enable_security_hub_v2::builders::EnableSecurityHubV2FluentBuilder::new(self.handle.clone())
12    }
13}