Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListQueryLoggingConfigsCommandProtected

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 CreateQueryLoggingConfig. Additional information, including the format of DNS query logs, appears in Logging DNS Queries in the Amazon Route 53 Developer Guide.

Example

Use a bare-bones client and the command you need to make an API call.

import { Route53Client, ListQueryLoggingConfigsCommand } from "@aws-sdk/client-route-53"; // ES Modules import
// const { Route53Client, ListQueryLoggingConfigsCommand } = require("@aws-sdk/client-route-53"); // CommonJS import
const client = new Route53Client(config);
const input = { // ListQueryLoggingConfigsRequest
HostedZoneId: "STRING_VALUE",
NextToken: "STRING_VALUE",
MaxResults: Number("int"),
};
const command = new ListQueryLoggingConfigsCommand(input);
const response = await client.send(command);
// { // ListQueryLoggingConfigsResponse
// QueryLoggingConfigs: [ // QueryLoggingConfigs // required
// { // QueryLoggingConfig
// Id: "STRING_VALUE", // required
// HostedZoneId: "STRING_VALUE", // required
// CloudWatchLogsLogGroupArn: "STRING_VALUE", // required
// },
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListQueryLoggingConfigsCommandInput

Returns

ListQueryLoggingConfigsCommandOutput

See

Throws

InvalidInput (client fault)

The input is not valid.

Throws

InvalidPaginationToken (client fault)

The value that you specified to get the second or subsequent page of results is invalid.

Throws

NoSuchHostedZone (client fault)

No hosted zone exists with the ID that you specified.

Throws

Route53ServiceException

Base exception class for all service exceptions from Route53 service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods