assumeFleetRoleForWorker method
Get credentials from the fleet role for a worker.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerErrorException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter farmId :
The farm ID for the fleet's farm.
Parameter fleetId :
The fleet ID that contains the worker.
Parameter workerId :
The ID of the worker assuming the fleet role.
Implementation
Future<AssumeFleetRoleForWorkerResponse> assumeFleetRoleForWorker({
required String farmId,
required String fleetId,
required String workerId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/2023-10-12/farms/${Uri.encodeComponent(farmId)}/fleets/${Uri.encodeComponent(fleetId)}/workers/${Uri.encodeComponent(workerId)}/fleet-roles',
exceptionFnMap: _exceptionFns,
);
return AssumeFleetRoleForWorkerResponse.fromJson(response);
}