getFirewallRuleGroup method

Future<GetFirewallRuleGroupResponse> getFirewallRuleGroup({
  1. required String firewallRuleGroupId,
})

Retrieves the specified firewall rule group.

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

Parameter firewallRuleGroupId : The unique identifier of the firewall rule group.

Implementation

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

  return GetFirewallRuleGroupResponse.fromJson(jsonResponse.body);
}