DescribeBackups
Source:
src/AWS/FSx/DescribeBackups.ts
Runtime binding for the DescribeBackups operation (IAM action
fsx:DescribeBackups on *).
Lists FSx backups — optionally filtered by file-system-id,
backup-type, or explicit BackupIds — from inside a function runtime.
Pairs with CreateBackup to poll a runtime-initiated backup until
it reaches AVAILABLE. Provide the implementation with
Effect.provide(AWS.FSx.DescribeBackupsHttp).
Managing Backups at Runtime
Section titled “Managing Backups at Runtime”const describeBackups = yield* AWS.FSx.DescribeBackups();
const response = yield* describeBackups({ Filters: [{ Name: "file-system-id", Values: [fileSystemId] }],});yield* Effect.log(`${response.Backups?.length ?? 0} backups`);