DescribeVolumes
Source:
src/AWS/FSx/DescribeVolumes.ts
Runtime binding for the DescribeVolumes operation (IAM action
fsx:DescribeVolumes on *).
Lists FSx for ONTAP / OpenZFS volumes — optionally filtered by
file-system-id or storage-virtual-machine-id — from inside a function
runtime. Useful for discovering the volume ids that the snapshot bindings
operate on. Provide the implementation with
Effect.provide(AWS.FSx.DescribeVolumesHttp).
Inspecting File Systems
Section titled “Inspecting File Systems”const describeVolumes = yield* AWS.FSx.DescribeVolumes();
const response = yield* describeVolumes({ Filters: [{ Name: "file-system-id", Values: [fileSystemId] }],});yield* Effect.log(`${response.Volumes?.length ?? 0} volumes`);