Skip to content

ReleaseFileSystemNfsV3Locks

Source: src/AWS/FSx/ReleaseFileSystemNfsV3Locks.ts

Runtime binding for the ReleaseFileSystemNfsV3Locks operation scoped to one OpenZFS file system (IAM action fsx:ReleaseFileSystemNfsV3Locks on the file system ARN).

Releases all NFSv3 byte-range locks held on the bound OpenZFS FileSystem — the recovery action for clients that crashed while holding locks and left files stuck. Provide the implementation with Effect.provide(AWS.FSx.ReleaseFileSystemNfsV3LocksHttp).

const releaseLocks = yield* AWS.FSx.ReleaseFileSystemNfsV3Locks(zfs);
const response = yield* releaseLocks();
yield* Effect.log(`file system ${response.FileSystem?.FileSystemId} locks released`);