Reference documentation and code samples for the Google Cloud Spanner Database Administration v1 API enum CopyBackupEncryptionConfig.Types.EncryptionType.
Use customer managed encryption. If specified, either kms_key_name or
kms_key_names must contain valid Cloud KMS key(s).
GoogleDefaultEncryption
Use Google default encryption.
Unspecified
Unspecified. Do not use.
UseConfigDefaultOrBackupEncryption
This is the default option for
[CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
when
[encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig]
is not specified. For example, if the source backup is using
Customer_Managed_Encryption, the backup will be using the same Cloud
KMS key as the source backup.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the Google Cloud Spanner Database Administration v1 API enum \u003ccode\u003eCopyBackupEncryptionConfig.Types.EncryptionType\u003c/code\u003e is \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, with multiple prior versions available, going down to version \u003ccode\u003e3.5.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis enum defines the encryption types available for backups within the Google Cloud Spanner Database Administration v1 API, such as \u003ccode\u003eCustomerManagedEncryption\u003c/code\u003e, \u003ccode\u003eGoogleDefaultEncryption\u003c/code\u003e, \u003ccode\u003eUnspecified\u003c/code\u003e, and \u003ccode\u003eUseConfigDefaultOrBackupEncryption\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCustomerManagedEncryption\u003c/code\u003e requires a valid Cloud KMS key to be specified, while \u003ccode\u003eGoogleDefaultEncryption\u003c/code\u003e utilizes Google's default encryption.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eUseConfigDefaultOrBackupEncryption\u003c/code\u003e is the option that allows for default copying of the source backup encryption when encrypting, for instance if the original is \u003ccode\u003eCustomer_Managed_Encryption\u003c/code\u003e, the backup will use the same Cloud KMS key.\u003c/p\u003e\n"],["\u003cp\u003eThe enum's purpose is to provide clear options for how backups are encrypted within Google Cloud Spanner.\u003c/p\u003e\n"]]],[],null,[]]