getAdminAccount method
Returns the Organizations account that is associated with Firewall Manager as the Firewall Manager default administrator.
May throw InternalErrorException.
May throw InvalidOperationException.
May throw ResourceNotFoundException.
Implementation
Future<GetAdminAccountResponse> getAdminAccount() async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSFMS_20180101.GetAdminAccount'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
);
return GetAdminAccountResponse.fromJson(jsonResponse.body);
}