deleteInvitations method

Future<DeleteInvitationsResponse> deleteInvitations({
  1. required List<String> accountIds,
})

Deletes invitations sent to the current member account by AWS accounts specified by their account IDs.

May throw BadRequestException. May throw InternalServerErrorException.

Parameter accountIds : A list of account IDs of the AWS accounts that sent invitations to the current member account that you want to delete invitations from.

Implementation

Future<DeleteInvitationsResponse> deleteInvitations({
  required List<String> accountIds,
}) async {
  ArgumentError.checkNotNull(accountIds, 'accountIds');
  final $payload = <String, dynamic>{
    'accountIds': accountIds,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/invitation/delete',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteInvitationsResponse.fromJson(response);
}