disassociateMemberFromFarm method

Future<void> disassociateMemberFromFarm({
  1. required String farmId,
  2. required String principalId,
})

Disassociates a member from a farm.

May throw AccessDeniedException. May throw InternalServerErrorException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter farmId : The farm ID of the farm to disassociate from the member.

Parameter principalId : A member's principal ID to disassociate from a farm.

Implementation

Future<void> disassociateMemberFromFarm({
  required String farmId,
  required String principalId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/2023-10-12/farms/${Uri.encodeComponent(farmId)}/members/${Uri.encodeComponent(principalId)}',
    exceptionFnMap: _exceptionFns,
  );
}