C# Class Amazon.EC2.Util.VPCUtilities

This class has utility methods used for setting up a VPC.
Mostrar archivo Open project: aws/aws-sdk-net

Public Methods

Method Description
FindNATImage ( IAmazonEC2 ec2Client ) : Image

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

LaunchNATInstance ( IAmazonEC2 ec2Client, LaunchNATInstanceRequest request ) : Instance

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

LaunchVPCWithPublicAndPrivateSubnets ( IAmazonEC2 ec2Client, Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsRequest request ) : Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsResponse

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.

LaunchVPCWithPublicSubnet ( IAmazonEC2 ec2Client, Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest request ) : Amazon.EC2.Util.LaunchVPCWithPublicSubnetResponse

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

Private Methods

Method Description
GetDefaultRouteTable ( IAmazonEC2 ec2Client, string vpcId ) : RouteTable
GetDefaultSecurityGroup ( IAmazonEC2 ec2Client, string vpcId ) : SecurityGroup
LaunchVPCWithPublicSubnet ( IAmazonEC2 ec2Client, Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest request, Amazon.EC2.Util.LaunchVPCWithPublicSubnetResponse response ) : void

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

WaitForInstanceToStartUp ( IAmazonEC2 ec2Client, string instanceId ) : Instance
WaitTillTrue ( Func func ) : void
WriteProgress ( System.Progress callback, string message ) : void

Method Details

FindNATImage() public static method

Find the current VPC NAT image in the region for the AmazonEC2 client.
public static FindNATImage ( IAmazonEC2 ec2Client ) : Image
ec2Client IAmazonEC2 The ec2client used to look up the image.
return Image

LaunchNATInstance() public static method

This method will look up the current VPC NAT ami in the region and create an instance in the subnet specified.
public static LaunchNATInstance ( IAmazonEC2 ec2Client, LaunchNATInstanceRequest request ) : Instance
ec2Client IAmazonEC2 The ec2client used to create the NAT instance
request LaunchNATInstanceRequest The properties used to launch the NAT instance.
return Amazon.EC2.Model.Instance

LaunchVPCWithPublicAndPrivateSubnets() public static method

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 static LaunchVPCWithPublicAndPrivateSubnets ( IAmazonEC2 ec2Client, Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsRequest request ) : Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsResponse
ec2Client IAmazonEC2 The ec2client used to create the VPC
request Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsRequest The properties used to create the VPC.
return Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsResponse

LaunchVPCWithPublicSubnet() public static method

This method will create a VPC with a subnet that will have an internet gateway attached making instances available to the internet.
public static LaunchVPCWithPublicSubnet ( IAmazonEC2 ec2Client, Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest request ) : Amazon.EC2.Util.LaunchVPCWithPublicSubnetResponse
ec2Client IAmazonEC2 The ec2client used to create the VPC
request Amazon.EC2.Util.LaunchVPCWithPublicSubnetRequest The properties used to create the VPC.
return Amazon.EC2.Util.LaunchVPCWithPublicSubnetResponse