Home > @opengovsg/logging > ApiKeyChangedInput
ApiKeyChangedInput interface
Input for UserManagementAudit.apiKeyChanged().
Signature:
typescript
export interface ApiKeyChangedInput extends AuditInputBaseExtends: AuditInputBase
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| action | 'created' | 'rotated' | 'revoked' | The lifecycle action performed on the key. | |
| keyId | string | The key's identifier — a reference, never the key value. | |
| targetUserId | string | The account that owns the key. Emitted as context.target_user_id. |