Skip to content

GetInvestigationGroup

Source: src/AWS/AIOps/GetInvestigationGroup.ts

Runtime binding for aiops:GetInvestigationGroup.

Reads the bound InvestigationGroup’s full configuration — the telemetry-access role, retention period, encryption, tag key boundaries, chatbot notification channels, and cross-account configurations — so an ops function can audit or report on the Region’s investigation setup. The group’s ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.AIOps.GetInvestigationGroupHttp).

// init — grants aiops:GetInvestigationGroup on the group
const getInvestigationGroup = yield* AWS.AIOps.GetInvestigationGroup(group);
// runtime
const detail = yield* getInvestigationGroup();
yield* Effect.log(
`${detail.name} retains investigations for ${detail.retentionInDays} days`,
);