GetResolverQueryLogConfigAssociationCommand

Gets information about a specified association between a Resolver query logging configuration and an Amazon VPC. When you associate a VPC with a query logging configuration, Resolver logs DNS queries that originate in that VPC.

Example Syntax

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

import { Route53ResolverClient, GetResolverQueryLogConfigAssociationCommand } from "@aws-sdk/client-route53resolver"; // ES Modules import
// const { Route53ResolverClient, GetResolverQueryLogConfigAssociationCommand } = require("@aws-sdk/client-route53resolver"); // CommonJS import
const client = new Route53ResolverClient(config);
const input = { // GetResolverQueryLogConfigAssociationRequest
  ResolverQueryLogConfigAssociationId: "STRING_VALUE", // required
};
const command = new GetResolverQueryLogConfigAssociationCommand(input);
const response = await client.send(command);
// { // GetResolverQueryLogConfigAssociationResponse
//   ResolverQueryLogConfigAssociation: { // ResolverQueryLogConfigAssociation
//     Id: "STRING_VALUE",
//     ResolverQueryLogConfigId: "STRING_VALUE",
//     ResourceId: "STRING_VALUE",
//     Status: "CREATING" || "ACTIVE" || "ACTION_NEEDED" || "DELETING" || "FAILED",
//     Error: "NONE" || "DESTINATION_NOT_FOUND" || "ACCESS_DENIED" || "INTERNAL_SERVICE_ERROR",
//     ErrorMessage: "STRING_VALUE",
//     CreationTime: "STRING_VALUE",
//   },
// };

GetResolverQueryLogConfigAssociationCommand Input

Parameter
Type
Description
ResolverQueryLogConfigAssociationId
Required
string | undefined

The ID of the Resolver query logging configuration association that you want to get information about.

GetResolverQueryLogConfigAssociationCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
ResolverQueryLogConfigAssociation
ResolverQueryLogConfigAssociation | undefined

Information about the Resolver query logging configuration association that you specified in a GetQueryLogConfigAssociation request.

Throws

Name
Fault
Details
AccessDeniedException
client

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
client

We encountered an unknown error. Try again in a few minutes.

InvalidParameterException
client

One or more parameters in this request are not valid.

InvalidRequestException
client

The request is invalid.

ResourceNotFoundException
client

The specified resource doesn't exist.

ThrottlingException
client

The request was throttled. Try again in a few minutes.

Route53ResolverServiceException
Base exception class for all service exceptions from Route53Resolver service.