describeLocationFsxWindows method

Future<DescribeLocationFsxWindowsResponse> describeLocationFsxWindows({
  1. required String locationArn,
})

Returns metadata, such as the path information about an Amazon FSx for Windows location.

May throw InvalidRequestException. May throw InternalException.

Parameter locationArn : The Amazon Resource Name (ARN) of the FSx for Windows location to describe.

Implementation

Future<DescribeLocationFsxWindowsResponse> describeLocationFsxWindows({
  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.DescribeLocationFsxWindows'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LocationArn': locationArn,
    },
  );

  return DescribeLocationFsxWindowsResponse.fromJson(jsonResponse.body);
}