deleteInvitations method

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

Deletes invitations received by the AWS account to become a member account.

This operation is only used by accounts that are not part of an organization. Organization accounts do not receive invitations.

May throw InternalException. May throw InvalidInputException. May throw LimitExceededException. May throw ResourceNotFoundException. May throw InvalidAccessException.

Parameter accountIds : The list of the account IDs that sent the invitations to delete.

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: '/invitations/delete',
    exceptionFnMap: _exceptionFns,
  );
  return DeleteInvitationsResponse.fromJson(response);
}