def delete_metric_filter_dimension()

in src/lambda_functions/cw_metric_filter_cr/lambda_function.py [0:0]


def delete_metric_filter_dimension(event, _):
    """Delete Resource"""
    # ignore all exceptions when deleting. TODO: target specific scenarios
    # when an exeption is generated when the resource does not exists or has
    # been deleted
    try:
        create_or_update_metric_filter_dimension(event, _)
    except Exception as exception:  # pylint: disable=broad-except
        LOGGER.error("failed to delete exception: %s", exception)