public sealed class AlloyDbSettings.Types.EncryptionConfig : IMessage<AlloyDbSettings.Types.EncryptionConfig>, IEquatable<AlloyDbSettings.Types.EncryptionConfig>, IDeepCloneable<AlloyDbSettings.Types.EncryptionConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class AlloyDbSettings.Types.EncryptionConfig.
EncryptionConfig describes the encryption config of a cluster 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\u003eThis webpage provides documentation for the \u003ccode\u003eAlloyDbSettings.Types.EncryptionConfig\u003c/code\u003e class within the Google Cloud Database Migration v1 API, focusing on how to configure encryption for AlloyDB clusters.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEncryptionConfig\u003c/code\u003e class describes the configuration for clusters encrypted with a customer-managed encryption key (CMEK).\u003c/p\u003e\n"],["\u003cp\u003eThe documentation outlines the class's inheritance, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e, as well as available constructors and properties.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eKmsKeyName\u003c/code\u003e property allows users to set the fully-qualified resource name of the KMS key used for encryption, which follows a specific regionalized format.\u003c/p\u003e\n"],["\u003cp\u003eThe page includes a version history of the documentation, ranging from version 1.0.0 up to the latest version, 2.5.0, allowing to check back on older documentation.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class AlloyDbSettings.Types.EncryptionConfig (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig) \n\n public sealed class AlloyDbSettings.Types.EncryptionConfig : IMessage\u003cAlloyDbSettings.Types.EncryptionConfig\u003e, IEquatable\u003cAlloyDbSettings.Types.EncryptionConfig\u003e, IDeepCloneable\u003cAlloyDbSettings.Types.EncryptionConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class AlloyDbSettings.Types.EncryptionConfig.\n\nEncryptionConfig describes the encryption config of a cluster that is\nencrypted with a CMEK (customer-managed encryption key). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AlloyDbSettings.Types.EncryptionConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AlloyDbSettings](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings)[Types](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types)[EncryptionConfig](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AlloyDbSettings](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings)[Types](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types)[EncryptionConfig](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.EncryptionConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AlloyDbSettings](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings)[Types](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types)[EncryptionConfig](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings.Types.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.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### EncryptionConfig()\n\n public EncryptionConfig()\n\n### EncryptionConfig(EncryptionConfig)\n\n public EncryptionConfig(AlloyDbSettings.Types.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\\]"]]