start_configuration_policy_association
¶
start_configuration_policy_association(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
configuration_policy_identifier: Optional[NonEmptyString] = None,
target: Optional[Target] = None,
) -> StartConfigurationPolicyAssociationResponse
Associates a target account, organizational unit, or the root with a specified configuration. The target can be associated with a configuration policy or self-managed behavior. Only the Security Hub CSPM delegated administrator can invoke this operation from the home Region.
Parameters:
-
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. -
target(Optional[Target], default:None) –The identifier of the target account, organizational unit, or the root to associate with the specified 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 associate a configuration with a target This operation associates a configuration policy or self-managed behavior with the target account, organizational unit, or the root.
>>> client.start_configuration_policy_association(configuration_policy_identifier='arn:aws:securityhub:us-east-1:123456789012:configuration-policy/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', target={'AccountId': '111122223333'})
Source code in docs_src/capo_securityhub/_services/security_hub.py
7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 | |