interface Key {
    createdAt?: Date;
    description?: string;
    id: string;
    locked: boolean;
    name: string;
    origin: KeyOrigin;
    projectId: string;
    protected: boolean;
    region: Region;
    rotatedAt?: Date;
    rotationCount: number;
    rotationPolicy?: KeyRotationPolicy;
    state: KeyState;
    tags: string[];
    updatedAt?: Date;
    usage?: KeyUsage;
}

Properties

createdAt?: Date

Key creation date.

description?: string

Description of the key.

id: string

ID of the key.

locked: boolean

Returns true if the key is locked.

name: string

Name of the key.

origin: KeyOrigin

Refer to the Key.Origin enum for a description of values.

projectId: string

ID of the Project containing the key.

protected: boolean

Returns true if key protection is applied to the key.

region: Region

Region of the key.

rotatedAt?: Date

Key last rotation date.

rotationCount: number

The rotation count tracks the amount of times that the key was rotated.

rotationPolicy?: KeyRotationPolicy

Key rotation policy.

state: KeyState

See the Key.State enum for a description of values.

tags: string[]

List of the key's tags.

updatedAt?: Date

Key last modification date.

usage?: KeyUsage

Keys with a usage set to symmetric_encryption are used to encrypt and decrypt data. The only key algorithm currently supported by Key Manager is AES-256-GCM.