Skip to content

GenerateCredentialReport

Source: src/AWS/IAM/GenerateCredentialReport.ts

Runtime binding for iam:GenerateCredentialReport — kick off generation of the account-wide credential report (per-user password/key/MFA hygiene as CSV). Pair with GetCredentialReport to retrieve the report once the returned State is COMPLETE.

Account-singleton operation: the binding takes no arguments and grants iam:GenerateCredentialReport on *. Provide the implementation with Effect.provide(AWS.IAM.GenerateCredentialReportHttp).

// init
const generateCredentialReport = yield* IAM.GenerateCredentialReport();
// runtime
const { State } = yield* generateCredentialReport();
// "STARTED" | "INPROGRESS" | "COMPLETE"