Skip to content

Home > @opengovsg/logging > ApiKeyChangedInput

ApiKeyChangedInput interface ​

Input for UserManagementAudit.apiKeyChanged().

Signature:

typescript
export interface ApiKeyChangedInput extends AuditInputBase

Extends: AuditInputBase

Properties ​

PropertyModifiersTypeDescription
action'created' | 'rotated' | 'revoked'The lifecycle action performed on the key.
keyIdstringThe key's identifier — a reference, never the key value.
targetUserIdstringThe account that owns the key. Emitted as context.target_user_id.