declineInvitations method
Declines 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 decline invitations from.
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: '/invitation/decline',
exceptionFnMap: _exceptionFns,
);
return DeclineInvitationsResponse.fromJson(response);
}