Skip to content

UpdateInvestigationState

Source: src/AWS/Detective/UpdateInvestigationState.ts

Runtime binding for detective:UpdateInvestigationState.

Moves an investigation between ACTIVE and ARCHIVED — close out a triaged investigation from the same function that opened it. The graph ARN is injected from the bound Graph. Provide the implementation with Effect.provide(AWS.Detective.UpdateInvestigationStateHttp).

// init
const updateInvestigationState =
yield* AWS.Detective.UpdateInvestigationState(graph);
// runtime
yield* updateInvestigationState({ InvestigationId: id, State: "ARCHIVED" });