AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to CreateResolverQueryLogConfigAsync.

Namespace: Amazon.Route53Resolver
Assembly: AWSSDK.Route53Resolver.dll
Version: 3.x.y.z

Syntax

C#
public virtual CreateResolverQueryLogConfigResponse CreateResolverQueryLogConfig(
         CreateResolverQueryLogConfigRequest request
)

Parameters

request
Type: Amazon.Route53Resolver.Model.CreateResolverQueryLogConfigRequest

Container for the necessary parameters to execute the CreateResolverQueryLogConfig service method.

Return Value


The response from the CreateResolverQueryLogConfig service method, as returned by Route53Resolver.

Exceptions

ExceptionCondition
AccessDeniedException The current account doesn't have the IAM permissions required to perform the specified Resolver operation. This error can also be thrown when a customer has reached the 5120 character limit for a resource policy for CloudWatch Logs.
InternalServiceErrorException We encountered an unknown error. Try again in a few minutes.
InvalidParameterException One or more parameters in this request are not valid.
InvalidRequestException The request is invalid.
LimitExceededException The request caused one or more limits to be exceeded.
ResourceExistsException The resource that you tried to create already exists.
ResourceNotFoundException The specified resource doesn't exist.
ThrottlingException The request was throttled. Try again in a few minutes.

Version Information

.NET Framework:
Supported in: 4.7.2 and newer

See Also