aws_sdk_securityhub/client/
enable_security_hub.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 [`EnableSecurityHub`](crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to add to the hub resource when you enable Security Hub.</p><br>
7    ///   - [`enable_default_standards(bool)`](crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder::enable_default_standards) / [`set_enable_default_standards(Option<bool>)`](crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder::set_enable_default_standards):<br>required: **false**<br><p>Whether to enable the security standards that Security Hub has designated as automatically enabled. If you don't provide a value for <code>EnableDefaultStandards</code>, it is set to <code>true</code>. To not enable the automatically enabled standards, set <code>EnableDefaultStandards</code> to <code>false</code>.</p><br>
8    ///   - [`control_finding_generator(ControlFindingGenerator)`](crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder::control_finding_generator) / [`set_control_finding_generator(Option<ControlFindingGenerator>)`](crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder::set_control_finding_generator):<br>required: **false**<br><p>This field, used when enabling Security Hub, specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to <code>SECURITY_CONTROL</code>, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.</p> <p>If the value for this field is set to <code>STANDARD_CONTROL</code>, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.</p> <p>The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is <code>SECURITY_CONTROL</code> if you enabled Security Hub on or after February 23, 2023.</p><br>
9    /// - On success, responds with [`EnableSecurityHubOutput`](crate::operation::enable_security_hub::EnableSecurityHubOutput)
10    /// - On failure, responds with [`SdkError<EnableSecurityHubError>`](crate::operation::enable_security_hub::EnableSecurityHubError)
11    pub fn enable_security_hub(&self) -> crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder {
12        crate::operation::enable_security_hub::builders::EnableSecurityHubFluentBuilder::new(self.handle.clone())
13    }
14}