describeLocationEfs method
Returns metadata, such as the path information about an Amazon EFS location.
May throw InvalidRequestException. May throw InternalException.
Parameter locationArn
:
The Amazon Resource Name (ARN) of the EFS location to describe.
Implementation
Future<DescribeLocationEfsResponse> describeLocationEfs({
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.DescribeLocationEfs'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'LocationArn': locationArn,
},
);
return DescribeLocationEfsResponse.fromJson(jsonResponse.body);
}