describeLocationNfs method
Returns metadata, such as the path information, about an NFS location.
May throw InvalidRequestException. May throw InternalException.
Parameter locationArn
:
The Amazon Resource Name (ARN) of the NFS location to describe.
Implementation
Future<DescribeLocationNfsResponse> describeLocationNfs({
required String locationArn,
}) async {
ArgumentError.checkNotNull(locationArn, 'locationArn');
_s.validateStringLength(
'locationArn',
locationArn,
0,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'FmrsService.DescribeLocationNfs'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'LocationArn': locationArn,
},
);
return DescribeLocationNfsResponse.fromJson(jsonResponse.body);
}