getResolverQueryLogConfig method

Future<GetResolverQueryLogConfigResponse> getResolverQueryLogConfig({
  1. required String resolverQueryLogConfigId,
})

Gets information about a specified Resolver query logging configuration, such as the number of VPCs that the configuration is logging queries for and the location that logs are sent to.

May throw ResourceNotFoundException. May throw InvalidRequestException. May throw InvalidParameterException. May throw InternalServiceErrorException. May throw ThrottlingException. May throw AccessDeniedException.

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

Implementation

Future<GetResolverQueryLogConfigResponse> getResolverQueryLogConfig({
  required String resolverQueryLogConfigId,
}) async {
  ArgumentError.checkNotNull(
      resolverQueryLogConfigId, 'resolverQueryLogConfigId');
  _s.validateStringLength(
    'resolverQueryLogConfigId',
    resolverQueryLogConfigId,
    1,
    64,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Resolver.GetResolverQueryLogConfig'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResolverQueryLogConfigId': resolverQueryLogConfigId,
    },
  );

  return GetResolverQueryLogConfigResponse.fromJson(jsonResponse.body);
}