Skip to content

Update Security Hub Configuration

securityhub_update_security_hub_configuration R Documentation

Updates configuration options for Security Hub

Description

Updates configuration options for Security Hub.

Usage

securityhub_update_security_hub_configuration(AutoEnableControls,
  ControlFindingGenerator)

Arguments

AutoEnableControls

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 to false.

ControlFindingGenerator

Updates whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL, Security Hub 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 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.

Value

An empty list.

Request syntax

svc$update_security_hub_configuration(
  AutoEnableControls = TRUE|FALSE,
  ControlFindingGenerator = "STANDARD_CONTROL"|"SECURITY_CONTROL"
)

Examples

## Not run: 
# The following example updates Security Hub settings to turn on
# consolidated control findings, and to automatically enable new controls
# in enabled standards.
svc$update_security_hub_configuration(
  AutoEnableControls = TRUE,
  ControlFindingGenerator = "SECURITY_CONTROL"
)

## End(Not run)