getFirewallConfig method

Future<GetFirewallConfigResponse> getFirewallConfig({
  1. required String resourceId,
})

Retrieves the configuration of the firewall behavior provided by DNS Firewall for a single VPC from Amazon Virtual Private Cloud (Amazon VPC).

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

Parameter resourceId : The ID of the VPC from Amazon VPC that the configuration is for.

Implementation

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

  return GetFirewallConfigResponse.fromJson(jsonResponse.body);
}