getInvitationsCount method

Future<GetInvitationsCountResponse> getInvitationsCount()

Returns the count of all GuardDuty membership invitations that were sent to the current member account except the currently accepted invitation.

May throw BadRequestException. May throw InternalServerErrorException.

Implementation

Future<GetInvitationsCountResponse> getInvitationsCount() async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/invitation/count',
    exceptionFnMap: _exceptionFns,
  );
  return GetInvitationsCountResponse.fromJson(response);
}