Skip to content

UpdateDatasourcePackages

Source: src/AWS/Detective/UpdateDatasourcePackages.ts

Runtime binding for detective:UpdateDatasourcePackages.

Starts ingest for additional data source packages (e.g. EKS_AUDIT, ASFF_SECURITYHUB_FINDING) on the behavior graph. Enabling a package is irreversible through this API and affects Detective billing. The graph ARN is injected from the bound Graph. Provide the implementation with Effect.provide(AWS.Detective.UpdateDatasourcePackagesHttp).

// init
const updateDatasourcePackages =
yield* AWS.Detective.UpdateDatasourcePackages(graph);
// runtime
yield* updateDatasourcePackages({ DatasourcePackages: ["EKS_AUDIT"] });