aws_sdk_securityhub/client/
update_security_hub_configuration.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 [`UpdateSecurityHubConfiguration`](crate::operation::update_security_hub_configuration::builders::UpdateSecurityHubConfigurationFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`auto_enable_controls(bool)`](crate::operation::update_security_hub_configuration::builders::UpdateSecurityHubConfigurationFluentBuilder::auto_enable_controls) / [`set_auto_enable_controls(Option<bool>)`](crate::operation::update_security_hub_configuration::builders::UpdateSecurityHubConfigurationFluentBuilder::set_auto_enable_controls):<br>required: **false**<br><p>Whether to automatically enable new controls when they are added to standards that are enabled.</p> <p>By default, this is set to <code>true</code>, and new controls are enabled automatically. To not automatically enable new controls, set this to <code>false</code>.</p> <p>When you automatically enable new controls, you can interact with the controls in the console and programmatically immediately after release. However, automatically enabled controls have a temporary default status of <code>DISABLED</code>. It can take up to several days for Security Hub to process the control release and designate the control as <code>ENABLED</code> in your account. During the processing period, you can manually enable or disable a control, and Security Hub will maintain that designation regardless of whether you have <code>AutoEnableControls</code> set to <code>true</code>.</p><br>
7    ///   - [`control_finding_generator(ControlFindingGenerator)`](crate::operation::update_security_hub_configuration::builders::UpdateSecurityHubConfigurationFluentBuilder::control_finding_generator) / [`set_control_finding_generator(Option<ControlFindingGenerator>)`](crate::operation::update_security_hub_configuration::builders::UpdateSecurityHubConfigurationFluentBuilder::set_control_finding_generator):<br>required: **false**<br><p>Updates 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>For accounts that are part of an organization, this value can only be updated in the administrator account.</p><br>
8    /// - On success, responds with [`UpdateSecurityHubConfigurationOutput`](crate::operation::update_security_hub_configuration::UpdateSecurityHubConfigurationOutput)
9    /// - On failure, responds with [`SdkError<UpdateSecurityHubConfigurationError>`](crate::operation::update_security_hub_configuration::UpdateSecurityHubConfigurationError)
10    pub fn update_security_hub_configuration(
11        &self,
12    ) -> crate::operation::update_security_hub_configuration::builders::UpdateSecurityHubConfigurationFluentBuilder {
13        crate::operation::update_security_hub_configuration::builders::UpdateSecurityHubConfigurationFluentBuilder::new(self.handle.clone())
14    }
15}