Skip to content

SearchJob

Source: src/AWS/BackupSearch/SearchJob.ts

An AWS Backup Search job — a data-plane search over AWS Backup recovery points (S3 and EBS) whose backup indexes are active. A search job is immutable once started: it runs to completion, retains its results for seven days, and can only be stopped while RUNNING (destroying the resource stops a running job; completed jobs age out server-side).

Search All S3 Backups

const search = yield* BackupSearch.SearchJob("FindReports", {
searchScope: { backupResourceTypes: ["S3"] },
itemFilters: {
s3ItemFilters: [
{ objectKeys: [{ value: "reports/", operator: "BEGINS_WITH" }] },
],
},
});

Search Specific Recovery Points

const search = yield* BackupSearch.SearchJob("AuditSearch", {
searchScope: {
backupResourceTypes: ["EBS"],
backupResourceArns: [recoveryPointArn],
backupResourceCreationTime: { createdAfter: "2026-01-01T00:00:00Z" },
},
});