Gets information about a specified configuration for DNS query logging.
For more information about DNS query logs, see CreateQueryLoggingConfig and Logging DNS Queries.
Parameters:
-
id
(QueryLoggingConfigId)
–
The ID of the configuration for DNS query logging that you want to get information about.
Raises:
Source code in docs_src/capo_route_53/_services/async_route53.py
| async def get_query_logging_config(
self,
id: "capo_route_53.types.query_logging_config_id.QueryLoggingConfigId",
*,
config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> "capo_route_53.types.get_query_logging_config_response.GetQueryLoggingConfigResponse":
"""<p>Gets information about a specified configuration for DNS query logging.</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> and <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/query-logs.html">Logging DNS Queries</a>.</p>
Args:
id: <p>The ID of the configuration for DNS query logging that you want to get information about.</p>
Raises:
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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_route_53.types.get_query_logging_config_request.GetQueryLoggingConfigRequest]",
) -> AsyncOperationResponse[
"capo_route_53.types.get_query_logging_config_response.GetQueryLoggingConfigResponse"
]:
import capo_route_53._operations.aws_dns_v20130401.get_query_logging_config
(
output,
http_response,
) = await capo_route_53._operations.aws_dns_v20130401.get_query_logging_config.async_get_query_logging_config(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetQueryLoggingConfig")
)
input_: capo_route_53.types.get_query_logging_config_request.GetQueryLoggingConfigRequest = {
"id": id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|