Class RestoreDatabaseEncryptionConfig (3.45.0)

RestoreDatabaseEncryptionConfig(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

Encryption configuration for the restored database.

Attributes

NameDescription
encryption_type google.cloud.spanner_admin_database_v1.types.RestoreDatabaseEncryptionConfig.EncryptionType
Required. The encryption type of the restored database.
kms_key_name str
Optional. The Cloud KMS key that will be used to encrypt/decrypt the restored database. This field should be set only when encryption_type][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type] is CUSTOMER_MANAGED_ENCRYPTION. Values are of the form projects/.

Classes

EncryptionType

EncryptionType(value)

Encryption types for the database to be restored.

Values: ENCRYPTION_TYPE_UNSPECIFIED (0): Unspecified. Do not use. USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION (1): This is the default option when encryption_config][google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig] is not specified. GOOGLE_DEFAULT_ENCRYPTION (2): Use Google default encryption. CUSTOMER_MANAGED_ENCRYPTION (3): Use customer managed encryption. If specified, kms_key_name must must contain a valid Cloud KMS key.