AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

This class has utility methods used for setting up a VPC.

Inheritance Hierarchy

System.Object
  Amazon.EC2.Util.VPCUtilities

Namespace: Amazon.EC2.Util
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z

Syntax

C#
public static class VPCUtilities

The VPCUtilities type exposes the following members

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method Static Method FindNATImage(IAmazonEC2)

Find the current VPC NAT image in the region for the AmazonEC2 client.

Public Method Static Method LaunchNATInstance(IAmazonEC2, LaunchNATInstanceRequest)

This method will look up the current VPC NAT ami in the region and create an instance in the subnet specified.

Public Method Static Method LaunchVPCWithPublicAndPrivateSubnets(IAmazonEC2, LaunchVPCWithPublicAndPrivateSubnetsRequest)

This method will create a VPC, a public subnet, private subnet and a NAT EC2 instance to allow EC2 instances in the private subnet to establish outbound connections to the internet.

Public Method Static Method LaunchVPCWithPublicSubnet(IAmazonEC2, LaunchVPCWithPublicSubnetRequest)

This method will create a VPC with a subnet that will have an internet gateway attached making instances available to the internet.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5