Skip to content

delete_query_logging_config

delete_query_logging_config(
    id: QueryLoggingConfigId, *, config_overrides: Optional[Route53ClientConfig] = None
) -> DeleteQueryLoggingConfigResponse

Deletes a configuration for DNS query logging. If you delete a configuration, Amazon Route 53 stops sending query logs to CloudWatch Logs. Route 53 doesn't delete any logs that are already in CloudWatch Logs.

For more information about DNS query logs, see CreateQueryLoggingConfig.

Parameters:

Raises:

Source code in docs_src/capo_route_53/_services/route53.py
def delete_query_logging_config(
    self,
    id: "capo_route_53.types.query_logging_config_id.QueryLoggingConfigId",
    *,
    config_overrides: Optional[Route53ClientConfig] = None,
) -> "capo_route_53.types.delete_query_logging_config_response.DeleteQueryLoggingConfigResponse":
    """<p>Deletes a configuration for DNS query logging. If you delete a configuration, Amazon Route 53 stops sending query logs to CloudWatch Logs. Route 53 doesn't delete any logs that are already in CloudWatch Logs.</p> <p>For more information about DNS query logs, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_CreateQueryLoggingConfig.html">CreateQueryLoggingConfig</a>.</p>

    Args:
        id: <p>The ID of the configuration that you want to delete. </p>

    Raises:
        capo_route_53.errors.concurrent_modification.ConcurrentModification: <p>Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request. </p>
        capo_route_53.errors.invalid_input.InvalidInput: <p>The input is not valid.</p>
        capo_route_53.errors.no_such_query_logging_config.NoSuchQueryLoggingConfig: <p>There is no DNS query logging configuration with the specified ID.</p>
        capo_route_53.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_route_53.types.delete_query_logging_config_request.DeleteQueryLoggingConfigRequest]",
    ) -> OperationResponse[
        "capo_route_53.types.delete_query_logging_config_response.DeleteQueryLoggingConfigResponse"
    ]:
        import capo_route_53._operations.aws_dns_v20130401.delete_query_logging_config

        output, http_response = (
            capo_route_53._operations.aws_dns_v20130401.delete_query_logging_config.delete_query_logging_config(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteQueryLoggingConfig")
    )
    input_: capo_route_53.types.delete_query_logging_config_request.DeleteQueryLoggingConfigRequest = {
        "id": id
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output