disassociateMembership method
Removes the member account from the specified behavior graph. This
operation can only be called by a member account that has the
ENABLED
status.
May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.
Parameter graphArn
:
The ARN of the behavior graph to remove the member account from.
The member account's member status in the behavior graph must be
ENABLED
.
Implementation
Future<void> disassociateMembership({
required String graphArn,
}) async {
ArgumentError.checkNotNull(graphArn, 'graphArn');
final $payload = <String, dynamic>{
'GraphArn': graphArn,
};
await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/membership/removal',
exceptionFnMap: _exceptionFns,
);
}