Skip to content

List Query Logging Configs

route53_list_query_logging_configs R Documentation

Lists the configurations for DNS query logging that are associated with the current Amazon Web Services account or the configuration that is associated with a specified hosted zone

Description

Lists the configurations for DNS query logging that are associated with the current Amazon Web Services account or the configuration that is associated with a specified hosted zone.

For more information about DNS query logs, see create_query_logging_config. Additional information, including the format of DNS query logs, appears in Logging DNS Queries in the Amazon Route 53 Developer Guide.

Usage

route53_list_query_logging_configs(HostedZoneId, NextToken, MaxResults)

Arguments

HostedZoneId

(Optional) If you want to list the query logging configuration that is associated with a hosted zone, specify the ID in HostedZoneId.

If you don't specify a hosted zone ID, list_query_logging_configs returns all of the configurations that are associated with the current Amazon Web Services account.

NextToken

(Optional) If the current Amazon Web Services account has more than MaxResults query logging configurations, use NextToken to get the second and subsequent pages of results.

For the first list_query_logging_configs request, omit this value.

For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.

MaxResults

(Optional) The maximum number of query logging configurations that you want Amazon Route 53 to return in response to the current request. If the current Amazon Web Services account has more than MaxResults configurations, use the value of NextToken in the response to get the next page of results.

If you don't specify a value for MaxResults, Route 53 returns up to 100 configurations.

Value

A list with the following syntax:

list(
  QueryLoggingConfigs = list(
    list(
      Id = "string",
      HostedZoneId = "string",
      CloudWatchLogsLogGroupArn = "string"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_query_logging_configs(
  HostedZoneId = "string",
  NextToken = "string",
  MaxResults = "string"
)