getResolverQueryLogConfigPolicy method
Future<GetResolverQueryLogConfigPolicyResponse>
getResolverQueryLogConfigPolicy({
- required String arn,
Gets information about a query logging policy. A query logging policy specifies the Resolver query logging operations and resources that you want to allow another AWS account to be able to use.
May throw InvalidParameterException. May throw InvalidRequestException. May throw UnknownResourceException. May throw InternalServiceErrorException. May throw AccessDeniedException.
Parameter arn
:
The ARN of the query logging configuration that you want to get the query
logging policy for.
Implementation
Future<GetResolverQueryLogConfigPolicyResponse>
getResolverQueryLogConfigPolicy({
required String arn,
}) async {
ArgumentError.checkNotNull(arn, 'arn');
_s.validateStringLength(
'arn',
arn,
1,
255,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Resolver.GetResolverQueryLogConfigPolicy'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Arn': arn,
},
);
return GetResolverQueryLogConfigPolicyResponse.fromJson(jsonResponse.body);
}