describeStorediSCSIVolumes method

Future<DescribeStorediSCSIVolumesOutput> describeStorediSCSIVolumes({
  1. required List<String> volumeARNs,
})

Returns the description of the gateway volumes specified in the request. The list of gateway volumes in the request must be from one gateway. In the response, AWS Storage Gateway returns volume information sorted by volume ARNs. This operation is only supported in stored volume gateway type.

May throw InvalidGatewayRequestException. May throw InternalServerError.

Parameter volumeARNs : An array of strings where each string represents the Amazon Resource Name (ARN) of a stored volume. All of the specified stored volumes must be from the same gateway. Use ListVolumes to get volume ARNs for a gateway.

Implementation

Future<DescribeStorediSCSIVolumesOutput> describeStorediSCSIVolumes({
  required List<String> volumeARNs,
}) async {
  ArgumentError.checkNotNull(volumeARNs, 'volumeARNs');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'StorageGateway_20130630.DescribeStorediSCSIVolumes'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'VolumeARNs': volumeARNs,
    },
  );

  return DescribeStorediSCSIVolumesOutput.fromJson(jsonResponse.body);
}