rejectInvitation method

Future<void> rejectInvitation({
  1. required String graphArn,
})

Rejects an invitation to contribute the account data to a behavior graph. This operation must be called by a member account that has the INVITED status.

May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter graphArn : The ARN of the behavior graph to reject the invitation to.

The member account's current member status in the behavior graph must be INVITED.

Implementation

Future<void> rejectInvitation({
  required String graphArn,
}) async {
  ArgumentError.checkNotNull(graphArn, 'graphArn');
  final $payload = <String, dynamic>{
    'GraphArn': graphArn,
  };
  await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/invitation/removal',
    exceptionFnMap: _exceptionFns,
  );
}