update_organization_configuration
async
¶
update_organization_configuration(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
auto_enable: Optional[Boolean] = None,
auto_enable_standards: Optional[AutoEnableStandards] = None,
organization_configuration: Optional[OrganizationConfiguration] = None,
) -> UpdateOrganizationConfigurationResponse
Updates the configuration of your organization in Security Hub CSPM. Only the Security Hub CSPM administrator account can invoke this operation.
Parameters:
-
auto_enable(Optional[Boolean], default:None) –Whether to automatically enable Security Hub CSPM in new member accounts when they join the organization.
If set to
true, then Security Hub CSPM is automatically enabled in new accounts. If set tofalse, then Security Hub CSPM isn't enabled in new accounts automatically. The default value isfalse.If the
ConfigurationTypeof your organization is set toCENTRAL, then this field is set tofalseand can't be changed in the home Region and linked Regions. However, in that case, the delegated administrator can create a configuration policy in which Security Hub CSPM is enabled and associate the policy with new organization accounts. -
auto_enable_standards(Optional[AutoEnableStandards], default:None) –Whether to automatically enable Security Hub CSPM default standards in new member accounts when they join the organization.
The default value of this parameter is equal to
DEFAULT.If equal to
DEFAULT, then Security Hub CSPM default standards are automatically enabled for new member accounts. If equal toNONE, then default standards are not automatically enabled for new member accounts.If the
ConfigurationTypeof your organization is set toCENTRAL, then this field is set toNONEand can't be changed in the home Region and linked Regions. However, in that case, the delegated administrator can create a configuration policy in which specific security standards are enabled and associate the policy with new organization accounts.
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.
-
ResourceConflictException–The resource specified in the request conflicts with an existing resource.
-
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 organization configuration This operation updates the way your organization is configured in Security Hub. Only a Security Hub administrator account can invoke this operation.
>>> await client.update_organization_configuration(auto_enable=False, auto_enable_standards='NONE', organization_configuration={'ConfigurationType': 'CENTRAL'})
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 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 | |