getResolverRulePolicy method

Future<GetResolverRulePolicyResponse> getResolverRulePolicy({
  1. required String arn,
})

Gets information about the Resolver rule policy for a specified rule. A Resolver rule policy includes the rule that you want to share with another account, the account that you want to share the rule with, and the Resolver operations that you want to allow the account to use.

May throw InvalidParameterException. May throw UnknownResourceException. May throw InternalServiceErrorException.

Parameter arn : The ID of the Resolver rule that you want to get the Resolver rule policy for.

Implementation

Future<GetResolverRulePolicyResponse> getResolverRulePolicy({
  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.GetResolverRulePolicy'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Arn': arn,
    },
  );

  return GetResolverRulePolicyResponse.fromJson(jsonResponse.body);
}