delete_organization_config_rule

ConfigService.Client.delete_organization_config_rule(**kwargs)

Deletes the specified organization Config rule and all of its evaluation results from all member accounts in that organization.

Only a management account and a delegated administrator account can delete an organization Config rule. When calling this API with a delegated administrator, you must ensure Organizations ListDelegatedAdministrator permissions are added.

Config sets the state of a rule to DELETE_IN_PROGRESS until the deletion is complete. You cannot update a rule while it is in this state.

See also: AWS API Documentation

Request Syntax

response = client.delete_organization_config_rule(
    OrganizationConfigRuleName='string'
)
Parameters
OrganizationConfigRuleName (string) --

[REQUIRED]

The name of organization Config rule that you want to delete.

Returns
None

Exceptions

  • ConfigService.Client.exceptions.NoSuchOrganizationConfigRuleException
  • ConfigService.Client.exceptions.ResourceInUseException
  • ConfigService.Client.exceptions.OrganizationAccessDeniedException