start_configuration_policy_disassociation
¶
start_configuration_policy_disassociation(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
target: Optional[Target] = None,
configuration_policy_identifier: Optional[NonEmptyString] = None,
) -> StartConfigurationPolicyDisassociationResponse
Disassociates a target account, organizational unit, or the root from a specified configuration. When you disassociate a configuration from its target, the target inherits the configuration of the closest parent. If there’s no configuration to inherit, the target retains its settings but becomes a self-managed account. A target can be disassociated from a configuration policy or self-managed behavior. Only the Security Hub CSPM delegated administrator can invoke this operation from the home Region.
Parameters:
-
target(Optional[Target], default:None) –The identifier of the target account, organizational unit, or the root to disassociate from the specified configuration.
-
configuration_policy_identifier(Optional[NonEmptyString], default:None) –The Amazon Resource Name (ARN) of a configuration policy, the universally unique identifier (UUID) of a configuration policy, or a value of
SELF_MANAGED_SECURITY_HUBfor a self-managed configuration.
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 disassociate a configuration from a target This operation disassociates a configuration policy or self-managed behavior from the target account, organizational unit, or the root.
>>> client.start_configuration_policy_disassociation(target={'RootId': 'r-f6g7h8i9j0example'}, configuration_policy_identifier='SELF_MANAGED_SECURITY_HUB')
Source code in docs_src/capo_securityhub/_services/security_hub.py
7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 | |