Deletes one or more remediation exceptions mentioned in the resource keys.
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.
Parameters:
-
config_rule_name
(ConfigRuleName)
–
The name of the Config rule for which you want to delete remediation exception configuration.
-
resource_keys
(RemediationExceptionResourceKeys)
–
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.
Raises:
Source code in docs_src/capo_config_service/_services/config_service.py
| def delete_remediation_exceptions(
self,
config_rule_name: "capo_config_service.types.config_rule_name.ConfigRuleName",
resource_keys: "capo_config_service.types.remediation_exception_resource_keys.RemediationExceptionResourceKeys",
*,
config_overrides: Optional[ConfigServiceClientConfig] = None,
) -> "capo_config_service.types.delete_remediation_exceptions_response.DeleteRemediationExceptionsResponse":
"""<p>Deletes one or more remediation exceptions mentioned in the resource keys.</p> <note> <p>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.</p> </note>
Args:
config_rule_name: <p>The name of the Config rule for which you want to delete remediation exception configuration.</p>
resource_keys: <p>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. </p>
Raises:
capo_config_service.errors.no_such_remediation_exception_exception.NoSuchRemediationExceptionException: <p>You tried to delete a remediation exception that does not exist.</p>
capo_config_service.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_config_service.types.delete_remediation_exceptions_request.DeleteRemediationExceptionsRequest]",
) -> OperationResponse[
"capo_config_service.types.delete_remediation_exceptions_response.DeleteRemediationExceptionsResponse"
]:
import capo_config_service._operations.starling_dove_service.delete_remediation_exceptions
output, http_response = (
capo_config_service._operations.starling_dove_service.delete_remediation_exceptions.delete_remediation_exceptions(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteRemediationExceptions")
)
input_: capo_config_service.types.delete_remediation_exceptions_request.DeleteRemediationExceptionsRequest = {
"config_rule_name": config_rule_name,
"resource_keys": resource_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|