getFirewallRuleGroupPolicy method

Future<GetFirewallRuleGroupPolicyResponse> getFirewallRuleGroupPolicy({
  1. required String arn,
})

Returns the Identity and Access Management (Amazon Web Services IAM) policy for sharing the specified rule group. You can use the policy to share the rule group using Resource Access Manager (RAM).

May throw AccessDeniedException. May throw InternalServiceErrorException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter arn : The ARN (Amazon Resource Name) for the rule group.

Implementation

Future<GetFirewallRuleGroupPolicyResponse> getFirewallRuleGroupPolicy({
  required String arn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Route53Resolver.GetFirewallRuleGroupPolicy'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Arn': arn,
    },
  );

  return GetFirewallRuleGroupPolicyResponse.fromJson(jsonResponse.body);
}