public sealed class AlloyDbSettings : IMessage<AlloyDbSettings>, IEquatable<AlloyDbSettings>, IDeepCloneable<AlloyDbSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class AlloyDbSettings.
public AlloyDbSettings.Types.EncryptionConfig EncryptionConfig { get; set; }
Optional. The encryption config can be specified to encrypt the data disks
and other persistent data resources of a cluster with a
customer-managed encryption key (CMEK). When this field is not
specified, the cluster will then use default encryption scheme to
protect the user data.
Required. The resource link for the VPC network in which cluster resources
are created and from which they are accessible via Private IP. The network
must belong to the same project as the cluster. It is specified in the
form: "projects/{project_number}/global/networks/{network_id}". This is
required to create a cluster.
[[["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 document provides reference information for the \u003ccode\u003eAlloyDbSettings\u003c/code\u003e class within the Database Migration v1 API, specifically for the .NET library.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAlloyDbSettings\u003c/code\u003e is used to configure settings when creating an AlloyDB cluster, including encryption, initial user setup, labels, and primary instance settings.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eAlloyDbSettings\u003c/code\u003e class is 2.5.0, with previous versions also available for reference down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCreating a cluster requires the \u003ccode\u003eVpcNetwork\u003c/code\u003e property to be set, which specifies the VPC network for resource creation, and the \u003ccode\u003eInitialUser\u003c/code\u003e property to be set, which is to setup the initial user during cluster creation.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class AlloyDbSettings (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)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.AlloyDbSettings)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.AlloyDbSettings)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.AlloyDbSettings)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.AlloyDbSettings)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.AlloyDbSettings)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.AlloyDbSettings)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.AlloyDbSettings)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.AlloyDbSettings) \n\n public sealed class AlloyDbSettings : IMessage\u003cAlloyDbSettings\u003e, IEquatable\u003cAlloyDbSettings\u003e, IDeepCloneable\u003cAlloyDbSettings\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class AlloyDbSettings.\n\nSettings for creating an AlloyDB cluster. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AlloyDbSettings \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), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AlloyDbSettings](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.AlloyDbSettings), [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), [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### AlloyDbSettings()\n\n public AlloyDbSettings()\n\n### AlloyDbSettings(AlloyDbSettings)\n\n public AlloyDbSettings(AlloyDbSettings other)\n\nProperties\n----------\n\n### EncryptionConfig\n\n public AlloyDbSettings.Types.EncryptionConfig EncryptionConfig { get; set; }\n\nOptional. The encryption config can be specified to encrypt the data disks\nand other persistent data resources of a cluster with a\ncustomer-managed encryption key (CMEK). When this field is not\nspecified, the cluster will then use default encryption scheme to\nprotect the user data.\n\n### InitialUser\n\n public AlloyDbSettings.Types.UserPassword InitialUser { get; set; }\n\nRequired. Input only. Initial user to setup during cluster creation.\nRequired.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nLabels for the AlloyDB cluster created by DMS. An object containing a list\nof 'key', 'value' pairs.\n\n### PrimaryInstanceSettings\n\n public AlloyDbSettings.Types.PrimaryInstanceSettings PrimaryInstanceSettings { get; set; }\n\n### VpcNetwork\n\n public string VpcNetwork { get; set; }\n\nRequired. The resource link for the VPC network in which cluster resources\nare created and from which they are accessible via Private IP. The network\nmust belong to the same project as the cluster. It is specified in the\nform: \"projects/{project_number}/global/networks/{network_id}\". This is\nrequired to create a cluster."]]