C# Class Amazon.EC2.Util.VPCUtilities

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat Image

LaunchNATInstance() public static méthode

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.
Résultat Amazon.EC2.Model.Instance

LaunchVPCWithPublicAndPrivateSubnets() public static méthode

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.
Résultat Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsResponse

LaunchVPCWithPublicSubnet() public static méthode

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.
Résultat Amazon.EC2.Util.LaunchVPCWithPublicSubnetResponse