declineInvitations method
Declines invitations 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 InvalidAccessException. May throw ResourceNotFoundException.
Parameter accountIds
:
The list of account IDs for the accounts from which to decline the
invitations to Security Hub.
Implementation
Future<DeclineInvitationsResponse> declineInvitations({
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/decline',
exceptionFnMap: _exceptionFns,
);
return DeclineInvitationsResponse.fromJson(response);
}