GetSubject
Source:
src/AWS/RolesAnywhere/GetSubject.ts
Runtime binding for rolesanywhere:GetSubject.
Reads a subject — the audit record IAM Roles Anywhere keeps for each
certificate identity that has requested credentials, including the
certificates presented and the time of the last authentication attempt.
Account-level operation — subjects are chosen per request at runtime, so
the binding takes no resource argument. Provide the implementation with
Effect.provide(AWS.RolesAnywhere.GetSubjectHttp).
Auditing Certificate Identities
Section titled “Auditing Certificate Identities”// init — account-level binding, no resource argumentconst getSubject = yield* AWS.RolesAnywhere.GetSubject();
// runtimeconst { subject } = yield* getSubject({ subjectId });const lastSeen = subject?.lastSeenAt;