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
8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 | |