public sealed class VpcPeeringConfig : IMessage<VpcPeeringConfig>, IEquatable<VpcPeeringConfig>, IDeepCloneable<VpcPeeringConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class VpcPeeringConfig.
The VPC peering configuration is used to create VPC peering with the
consumer's VPC.
[[["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 latest version of the \u003ccode\u003eVpcPeeringConfig\u003c/code\u003e class within the Database Migration v1 API is version 2.5.0, with several prior versions available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVpcPeeringConfig\u003c/code\u003e is a class for configuring VPC peering with a consumer's VPC for Database Migration Service.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities for message handling, equality checks, deep cloning, and buffer message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eVpcPeeringConfig\u003c/code\u003e class has properties for \u003ccode\u003eSubnet\u003c/code\u003e, \u003ccode\u003eVpcName\u003c/code\u003e, and \u003ccode\u003eVpcNameAsNetworksName\u003c/code\u003e, allowing for the configuration of a free subnet, the fully qualified VPC name, and the network name, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for this class, one parameterless and one that takes in a \u003ccode\u003eVpcPeeringConfig\u003c/code\u003e object, allowing for the creation of a new \u003ccode\u003eVpcPeeringConfig\u003c/code\u003e object or creating a copy of one.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class VpcPeeringConfig (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.VpcPeeringConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.VpcPeeringConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.VpcPeeringConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.VpcPeeringConfig)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.VpcPeeringConfig)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.VpcPeeringConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.VpcPeeringConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.VpcPeeringConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.VpcPeeringConfig) \n\n public sealed class VpcPeeringConfig : IMessage\u003cVpcPeeringConfig\u003e, IEquatable\u003cVpcPeeringConfig\u003e, IDeepCloneable\u003cVpcPeeringConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class VpcPeeringConfig.\n\nThe VPC peering configuration is used to create VPC peering with the\nconsumer's VPC. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e VpcPeeringConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[VpcPeeringConfig](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.VpcPeeringConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VpcPeeringConfig](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.VpcPeeringConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[VpcPeeringConfig](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.VpcPeeringConfig), [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### VpcPeeringConfig()\n\n public VpcPeeringConfig()\n\n### VpcPeeringConfig(VpcPeeringConfig)\n\n public VpcPeeringConfig(VpcPeeringConfig other)\n\nProperties\n----------\n\n### Subnet\n\n public string Subnet { get; set; }\n\nRequired. A free subnet for peering. (CIDR of /29)\n\n### VpcName\n\n public string VpcName { get; set; }\n\nRequired. Fully qualified name of the VPC that Database Migration Service\nwill peer to.\n\n### VpcNameAsNetworksName\n\n public NetworksName VpcNameAsNetworksName { get; set; }\n\n[NetworksName](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.NetworksName)-typed view over the [VpcName](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.VpcPeeringConfig#Google_Cloud_CloudDms_V1_VpcPeeringConfig_VpcName) resource name property."]]