get_query_logging_config

Route53.Client.get_query_logging_config(**kwargs)

Gets information about a specified configuration for DNS query logging.

For more information about DNS query logs, see CreateQueryLoggingConfig and Logging DNS Queries.

See also: AWS API Documentation

Request Syntax

response = client.get_query_logging_config(
    Id='string'
)
Parameters
Id (string) --

[REQUIRED]

The ID of the configuration for DNS query logging that you want to get information about.

Return type
dict
Returns
Response Syntax
{
    'QueryLoggingConfig': {
        'Id': 'string',
        'HostedZoneId': 'string',
        'CloudWatchLogsLogGroupArn': 'string'
    }
}

Response Structure

  • (dict) --
    • QueryLoggingConfig (dict) --

      A complex type that contains information about the query logging configuration that you specified in a GetQueryLoggingConfig request.

      • Id (string) --

        The ID for a configuration for DNS query logging.

      • HostedZoneId (string) --

        The ID of the hosted zone that CloudWatch Logs is logging queries for.

      • CloudWatchLogsLogGroupArn (string) --

        The Amazon Resource Name (ARN) of the CloudWatch Logs log group that Amazon Route 53 is publishing logs to.

Exceptions

  • Route53.Client.exceptions.NoSuchQueryLoggingConfig
  • Route53.Client.exceptions.InvalidInput