Skip to content

ListSubjects

Source: src/AWS/RolesAnywhere/ListSubjects.ts

Runtime binding for rolesanywhere:ListSubjects.

Lists the subjects — the audit records IAM Roles Anywhere keeps for each certificate identity that has requested credentials in the account and Region. The backbone of workload-identity auditing: which certificates authenticated, and when they were last seen. Account-level operation — the binding takes no resource argument. Provide the implementation with Effect.provide(AWS.RolesAnywhere.ListSubjectsHttp).

// init — account-level binding, no resource argument
const listSubjects = yield* AWS.RolesAnywhere.ListSubjects();
// runtime
const { subjects } = yield* listSubjects();