update_security_hub_configuration
async
¶
update_security_hub_configuration(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = 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.
>>> await client.update_security_hub_configuration(auto_enable_controls=True, control_finding_generator='SECURITY_CONTROL')
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 | |