C# Класс Amazon.EC2.Util.VPCUtilities

This class has utility methods used for setting up a VPC.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

FindNATImage() публичный статический метод

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.
Результат Image

LaunchNATInstance() публичный статический метод

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.
Результат Amazon.EC2.Model.Instance

LaunchVPCWithPublicAndPrivateSubnets() публичный статический метод

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.
Результат Amazon.EC2.Util.LaunchVPCWithPublicAndPrivateSubnetsResponse

LaunchVPCWithPublicSubnet() публичный статический метод

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.
Результат Amazon.EC2.Util.LaunchVPCWithPublicSubnetResponse