describeNFSFileShares method

Future<DescribeNFSFileSharesOutput> describeNFSFileShares({
  1. required List<String> fileShareARNList,
})

Gets a description for one or more Network File System (NFS) file shares from a file gateway. This operation is only supported for file gateways.

May throw InvalidGatewayRequestException. May throw InternalServerError.

Parameter fileShareARNList : An array containing the Amazon Resource Name (ARN) of each file share to be described.

Implementation

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

  return DescribeNFSFileSharesOutput.fromJson(jsonResponse.body);
}