describeSMBFileShares method

Future<DescribeSMBFileSharesOutput> describeSMBFileShares({
  1. required List<String> fileShareARNList,
})

Gets a description for one or more Server Message Block (SMB) file shares from a S3 File Gateway. This operation is only supported for S3 File Gateways.

May throw InternalServerError. May throw InvalidGatewayRequestException.

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

Implementation

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

  return DescribeSMBFileSharesOutput.fromJson(jsonResponse.body);
}