delete_remediation_exceptions

delete_remediation_exceptions(**kwargs)

Deletes one or more remediation exceptions mentioned in the resource keys.

Note

Config generates a remediation exception when a problem occurs executing a remediation action to a specific resource. Remediation exceptions blocks auto-remediation until the exception is cleared.

See also: AWS API Documentation

Request Syntax

response = client.delete_remediation_exceptions(
    ConfigRuleName='string',
    ResourceKeys=[
        {
            'ResourceType': 'string',
            'ResourceId': 'string'
        },
    ]
)
Parameters
  • ConfigRuleName (string) --

    [REQUIRED]

    The name of the Config rule for which you want to delete remediation exception configuration.

  • ResourceKeys (list) --

    [REQUIRED]

    An exception list of resource exception keys to be processed with the current request. Config adds exception for each resource key. For example, Config adds 3 exceptions for 3 resource keys.

    • (dict) --

      The details that identify a resource within Config, including the resource type and resource ID.

      • ResourceType (string) --

        The type of a resource.

      • ResourceId (string) --

        The ID of the resource (for example., sg-xxxxxx).

Return type

dict

Returns

Response Syntax

{
    'FailedBatches': [
        {
            'FailureMessage': 'string',
            'FailedItems': [
                {
                    'ResourceType': 'string',
                    'ResourceId': 'string'
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • FailedBatches (list) --

      Returns a list of failed delete remediation exceptions batch objects. Each object in the batch consists of a list of failed items and failure messages.

      • (dict) --

        List of each of the failed delete remediation exceptions with specific reasons.

        • FailureMessage (string) --

          Returns a failure message for delete remediation exception. For example, Config creates an exception due to an internal error.

        • FailedItems (list) --

          Returns remediation exception resource key object of the failed items.

          • (dict) --

            The details that identify a resource within Config, including the resource type and resource ID.

            • ResourceType (string) --

              The type of a resource.

            • ResourceId (string) --

              The ID of the resource (for example., sg-xxxxxx).

Exceptions

  • ConfigService.Client.exceptions.NoSuchRemediationExceptionException