describeLocationFsxOpenZfs method

Future<DescribeLocationFsxOpenZfsResponse> describeLocationFsxOpenZfs({
  1. required String locationArn,
})

Provides details about how an DataSync transfer location for an Amazon FSx for OpenZFS file system is configured.

May throw InternalException. May throw InvalidRequestException.

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

Implementation

Future<DescribeLocationFsxOpenZfsResponse> describeLocationFsxOpenZfs({
  required String locationArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'FmrsService.DescribeLocationFsxOpenZfs'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LocationArn': locationArn,
    },
  );

  return DescribeLocationFsxOpenZfsResponse.fromJson(jsonResponse.body);
}