getVolume method

Future<GetVolumeResponse> getVolume({
  1. required String farmId,
  2. required String fleetId,
  3. required String volumeId,
})

Gets a persistent volume.

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

Parameter farmId : The farm ID of the farm that contains the fleet.

Parameter fleetId : The fleet ID of the fleet that contains the volume.

Parameter volumeId : The volume ID of the volume to retrieve.

Implementation

Future<GetVolumeResponse> getVolume({
  required String farmId,
  required String fleetId,
  required String volumeId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/2023-10-12/farms/${Uri.encodeComponent(farmId)}/fleets/${Uri.encodeComponent(fleetId)}/volumes/${Uri.encodeComponent(volumeId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetVolumeResponse.fromJson(response);
}