releaseFileSystemNfsV3Locks method

Future<ReleaseFileSystemNfsV3LocksResponse> releaseFileSystemNfsV3Locks({
  1. required String fileSystemId,
  2. String? clientRequestToken,
})

Releases the file system lock from an Amazon FSx for OpenZFS file system.

May throw BadRequest. May throw FileSystemNotFound. May throw IncompatibleParameterError. May throw InternalServerError. May throw ServiceLimitExceeded.

Implementation

Future<ReleaseFileSystemNfsV3LocksResponse> releaseFileSystemNfsV3Locks({
  required String fileSystemId,
  String? clientRequestToken,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSSimbaAPIService_v20180301.ReleaseFileSystemNfsV3Locks'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'FileSystemId': fileSystemId,
      'ClientRequestToken':
          clientRequestToken ?? _s.generateIdempotencyToken(),
    },
  );

  return ReleaseFileSystemNfsV3LocksResponse.fromJson(jsonResponse.body);
}