describeSMBFileShares method
Gets a description for one or more Server Message Block (SMB) 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<DescribeSMBFileSharesOutput> describeSMBFileShares({
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.DescribeSMBFileShares'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'FileShareARNList': fileShareARNList,
},
);
return DescribeSMBFileSharesOutput.fromJson(jsonResponse.body);
}