public sealed class EncryptionConfig : IMessage<EncryptionConfig>, IEquatable<EncryptionConfig>, IDeepCloneable<EncryptionConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1alpha API class EncryptionConfig.
EncryptionConfig describes the encryption config of a cluster or a backup
that is encrypted with a CMEK (customer-managed encryption key).
The fully-qualified resource name of the KMS key.
Each Cloud KMS key is regionalized and has the following format:
projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME]
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eEncryptionConfig\u003c/code\u003e class is part of the AlloyDB v1alpha API, providing configuration for cluster or backup encryption using customer-managed encryption keys (CMEK).\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, as well as \u003ccode\u003eIMessage<EncryptionConfig>\u003c/code\u003e, \u003ccode\u003eIEquatable<EncryptionConfig>\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable<EncryptionConfig>\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available for \u003ccode\u003eEncryptionConfig\u003c/code\u003e: a default constructor and one that takes another \u003ccode\u003eEncryptionConfig\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a \u003ccode\u003eKmsKeyName\u003c/code\u003e property, which stores the fully-qualified resource name of the KMS key used for encryption, and it is of string type.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is \u003ccode\u003e1.0.0-alpha10\u003c/code\u003e, and it can also be accessed at version \u003ccode\u003e1.0.0-alpha09\u003c/code\u003e in the linked documentation.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1alpha API - Class EncryptionConfig (1.0.0-alpha12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.EncryptionConfig)\n- [1.0.0-alpha11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/1.0.0-alpha11/Google.Cloud.AlloyDb.V1Alpha.EncryptionConfig) \n\n public sealed class EncryptionConfig : IMessage\u003cEncryptionConfig\u003e, IEquatable\u003cEncryptionConfig\u003e, IDeepCloneable\u003cEncryptionConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1alpha API class EncryptionConfig.\n\nEncryptionConfig describes the encryption config of a cluster or a backup\nthat is encrypted with a CMEK (customer-managed encryption key). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e EncryptionConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[EncryptionConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.EncryptionConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EncryptionConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.EncryptionConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[EncryptionConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.EncryptionConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AlloyDb.V1Alpha](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Alpha.dll\n\nConstructors\n------------\n\n### EncryptionConfig()\n\n public EncryptionConfig()\n\n### EncryptionConfig(EncryptionConfig)\n\n public EncryptionConfig(EncryptionConfig other)\n\nProperties\n----------\n\n### KmsKeyName\n\n public string KmsKeyName { get; set; }\n\nThe fully-qualified resource name of the KMS key.\nEach Cloud KMS key is regionalized and has the following format:\nprojects/\\[PROJECT\\]/locations/\\[REGION\\]/keyRings/\\[RING\\]/cryptoKeys/\\[KEY_NAME\\]"]]