# EncryptionInfo describes the encryption information of a cluster or a backup.

| JSON representation |
|---|
| ``` { "encryptionType": enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/EncryptionInfo#Type`), "kmsKeyVersions": [ string ] } ``` |

| Fields ||
|---|---|
| `encryptionType` | ``enum (`https://docs.cloud.google.com/alloydb/docs/reference/rest/v1beta/EncryptionInfo#Type`)`` Output only. Type of encryption. |
| `kmsKeyVersions[]` | `string` Output only. Cloud KMS key versions that are being used to protect the database or the backup. |

## Type

Possible encryption types.

| Enums ||
|---|---|
| `TYPE_UNSPECIFIED` | Encryption type not specified. Defaults to GOOGLE_DEFAULT_ENCRYPTION. |
| `GOOGLE_DEFAULT_ENCRYPTION` | The data is encrypted at rest with a key that is fully managed by Google. No key version will be populated. This is the default state. |
| `CUSTOMER_MANAGED_ENCRYPTION` | The data is encrypted at rest with a key that is managed by the customer. KMS key versions will be populated. |