getResolverRule method
Gets information about a specified Resolver rule, such as the domain name that the rule forwards DNS queries for and the ID of the outbound Resolver endpoint that the rule is associated with.
May throw ResourceNotFoundException. May throw InvalidParameterException. May throw InternalServiceErrorException. May throw ThrottlingException.
Parameter resolverRuleId
:
The ID of the Resolver rule that you want to get information about.
Implementation
Future<GetResolverRuleResponse> getResolverRule({
required String resolverRuleId,
}) async {
ArgumentError.checkNotNull(resolverRuleId, 'resolverRuleId');
_s.validateStringLength(
'resolverRuleId',
resolverRuleId,
1,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Route53Resolver.GetResolverRule'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ResolverRuleId': resolverRuleId,
},
);
return GetResolverRuleResponse.fromJson(jsonResponse.body);
}