update_security_hub_configuration
¶
update_security_hub_configuration(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
auto_enable_controls: Optional[Boolean] = None,
control_finding_generator: Optional[ControlFindingGenerator] = None,
) -> UpdateSecurityHubConfigurationResponse
Updates configuration options for Security Hub CSPM.
Parameters:
-
auto_enable_controls(Optional[Boolean], default:None) –Whether to automatically enable new controls when they are added to standards that are enabled.
By default, this is set to
true, and new controls are enabled automatically. To not automatically enable new controls, set this tofalse.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
DISABLED. It can take up to several days for Security Hub CSPM to process the control release and designate the control asENABLEDin your account. During the processing period, you can manually enable or disable a control, and Security Hub CSPM will maintain that designation regardless of whether you haveAutoEnableControlsset totrue. -
control_finding_generator(Optional[ControlFindingGenerator], default:None) –Updates whether the calling account has consolidated control findings turned on. If the value for this field is set to
SECURITY_CONTROL, Security Hub CSPM generates a single finding for a control check even when the check applies to multiple enabled standards.If the value for this field is set to
STANDARD_CONTROL, Security Hub CSPM generates separate findings for a control check when the check applies to multiple enabled standards.For accounts that are part of an organization, this value can only be updated in the administrator account.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
InternalException–Internal server error.
-
InvalidAccessException–The account doesn't have permission to perform this action.
-
InvalidInputException–The request was rejected because you supplied an invalid or out-of-range value for an input parameter.
-
LimitExceededException–The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update Security Hub settings The following example updates Security Hub settings to turn on consolidated control findings, and to automatically enable new controls in enabled standards.
>>> client.update_security_hub_configuration(auto_enable_controls=True, control_finding_generator='SECURITY_CONTROL')
Source code in docs_src/capo_securityhub/_services/security_hub.py
8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 | |