disassociateFirewallRuleGroup method

Future<DisassociateFirewallRuleGroupResponse> disassociateFirewallRuleGroup({
  1. required String firewallRuleGroupAssociationId,
})

Disassociates a FirewallRuleGroup from a VPC, to remove DNS filtering from the VPC.

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

Parameter firewallRuleGroupAssociationId : The identifier of the FirewallRuleGroupAssociation.

Implementation

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

  return DisassociateFirewallRuleGroupResponse.fromJson(jsonResponse.body);
}