describeFirewallMetadata method
Returns the high-level information about a firewall, including the Availability Zones where the Firewall is currently in use.
May throw InternalServerError.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter firewallArn :
The Amazon Resource Name (ARN) of the firewall.
Implementation
Future<DescribeFirewallMetadataResponse> describeFirewallMetadata({
String? firewallArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'NetworkFirewall_20201112.DescribeFirewallMetadata'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (firewallArn != null) 'FirewallArn': firewallArn,
},
);
return DescribeFirewallMetadataResponse.fromJson(jsonResponse.body);
}