Skip to content

ListInvestigationGroups

Source: src/AWS/AIOps/ListInvestigationGroups.ts

Runtime binding for aiops:ListInvestigationGroups.

Enumerates the Region’s investigation groups (each item carries the group’s name and ARN). An account holds at most one investigation group per Region, so this doubles as an existence probe. Provide the implementation with Effect.provide(AWS.AIOps.ListInvestigationGroupsHttp).

// init — account-level binding, no resource argument
const listInvestigationGroups = yield* AWS.AIOps.ListInvestigationGroups();
// runtime
const { investigationGroups } = yield* listInvestigationGroups();
for (const group of investigationGroups ?? []) {
yield* Effect.log(`${group.name}: ${group.arn}`);
}