getResolverQueryLogConfigAssociation method
Future<GetResolverQueryLogConfigAssociationResponse>
getResolverQueryLogConfigAssociation({
- required String resolverQueryLogConfigAssociationId,
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.
May throw ResourceNotFoundException. May throw InvalidRequestException. May throw InvalidParameterException. May throw InternalServiceErrorException. May throw ThrottlingException. May throw AccessDeniedException.
Parameter resolverQueryLogConfigAssociationId
:
The ID of the Resolver query logging configuration association that you
want to get information about.
Implementation
Future<GetResolverQueryLogConfigAssociationResponse>
getResolverQueryLogConfigAssociation({
required String resolverQueryLogConfigAssociationId,
}) async {
ArgumentError.checkNotNull(resolverQueryLogConfigAssociationId,
'resolverQueryLogConfigAssociationId');
_s.validateStringLength(
'resolverQueryLogConfigAssociationId',
resolverQueryLogConfigAssociationId,
1,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Resolver.GetResolverQueryLogConfigAssociation'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResolverQueryLogConfigAssociationId':
resolverQueryLogConfigAssociationId,
},
);
return GetResolverQueryLogConfigAssociationResponse.fromJson(
jsonResponse.body);
}