getAdminAccount method

Future<GetAdminAccountResponse> getAdminAccount()

Returns the AWS Organizations master account that is associated with AWS Firewall Manager as the AWS Firewall Manager administrator.

May throw InvalidOperationException. May throw ResourceNotFoundException. May throw InternalErrorException.

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);
}