rejectInvitation method
Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has received an invitation to create a member and join a network.
Applies only to Hyperledger Fabric.
May throw InvalidRequestException. May throw IllegalActionException. May throw AccessDeniedException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceErrorException.
Parameter invitationId
:
The unique identifier of the invitation to reject.
Implementation
Future<void> rejectInvitation({
required String invitationId,
}) async {
ArgumentError.checkNotNull(invitationId, 'invitationId');
_s.validateStringLength(
'invitationId',
invitationId,
1,
32,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/invitations/${Uri.encodeComponent(invitationId)}',
exceptionFnMap: _exceptionFns,
);
}