Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateResolverQueryLogConfigCommand

Creates a Resolver query logging configuration, which defines where you want Resolver to save DNS query logs that originate in your VPCs. Resolver can log queries only for VPCs that are in the same Region as the query logging configuration.

To specify which VPCs you want to log queries for, you use AssociateResolverQueryLogConfig. For more information, see AssociateResolverQueryLogConfig.

You can optionally use Resource Access Manager (RAM) to share a query logging configuration with other Amazon Web Services accounts. The other accounts can then associate VPCs with the configuration. The query logs that Resolver creates for a configuration include all DNS queries that originate in all VPCs that are associated with the configuration.

example

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

import { Route53ResolverClient, CreateResolverQueryLogConfigCommand } from "@aws-sdk/client-route53resolver"; // ES Modules import
// const { Route53ResolverClient, CreateResolverQueryLogConfigCommand } = require("@aws-sdk/client-route53resolver"); // CommonJS import
const client = new Route53ResolverClient(config);
const command = new CreateResolverQueryLogConfigCommand(input);
const response = await client.send(command);
see

CreateResolverQueryLogConfigCommandInput for command's input shape.

see

CreateResolverQueryLogConfigCommandOutput for command's response shape.

see

config for Route53ResolverClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: CreateResolverQueryLogConfigCommandInput

Readonly middlewareStack