SecurityHub / Client / delete_configuration_policy
delete_configuration_policy#
- SecurityHub.Client.delete_configuration_policy(**kwargs)#
Deletes a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region. For the deletion to succeed, you must first disassociate a configuration policy from target accounts, organizational units, or the root by invoking the
StartConfigurationPolicyDisassociation
operation.See also: AWS API Documentation
Request Syntax
response = client.delete_configuration_policy( Identifier='string' )
- Parameters:
Identifier (string) –
[REQUIRED]
The Amazon Resource Name (ARN) or universally unique identifier (UUID) of the configuration policy.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
SecurityHub.Client.exceptions.AccessDeniedException
SecurityHub.Client.exceptions.InternalException
SecurityHub.Client.exceptions.InvalidAccessException
SecurityHub.Client.exceptions.InvalidInputException
SecurityHub.Client.exceptions.LimitExceededException
SecurityHub.Client.exceptions.ResourceNotFoundException
SecurityHub.Client.exceptions.ResourceConflictException