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

This class has utility methods for finding common Amazon machine images.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ImageKeys IEnumerable
VPC_NAT ImageDescriptor
WINDOWS_2008R2_BASE ImageDescriptor
WINDOWS_2008R2_SQL_SERVER_EXPRESS_2008 ImageDescriptor
WINDOWS_2008R2_SQL_SERVER_EXPRESS_2012 ImageDescriptor
WINDOWS_2008R2_SQL_SERVER_STANDARD_2008 ImageDescriptor
WINDOWS_2008R2_SQL_SERVER_STANDARD_2012 ImageDescriptor
WINDOWS_2008R2_SQL_SERVER_WEB_2008 ImageDescriptor
WINDOWS_2008R2_SQL_SERVER_WEB_2012 ImageDescriptor
WINDOWS_2008RTM_BASE ImageDescriptor
WINDOWS_2008RTM_SQL_SERVER_EXPRESS_2008 ImageDescriptor
WINDOWS_2008RTM_SQL_SERVER_STANDARD_2008 ImageDescriptor
WINDOWS_2008_BEANSTALK_IIS75 ImageDescriptor
WINDOWS_2012R2_BASE ImageDescriptor
WINDOWS_2012R2_SQL_SERVER_EXPRESS_2014 ImageDescriptor
WINDOWS_2012R2_SQL_SERVER_STANDARD_2014 ImageDescriptor
WINDOWS_2012R2_SQL_SERVER_WEB_2014 ImageDescriptor
WINDOWS_2012_BASE ImageDescriptor
WINDOWS_2012_BEANSTALK_IIS8 ImageDescriptor
WINDOWS_2012_SQL_SERVER_EXPRESS_2008 ImageDescriptor
WINDOWS_2012_SQL_SERVER_EXPRESS_2012 ImageDescriptor
WINDOWS_2012_SQL_SERVER_EXPRESS_2014 ImageDescriptor
WINDOWS_2012_SQL_SERVER_STANDARD_2008 ImageDescriptor
WINDOWS_2012_SQL_SERVER_STANDARD_2012 ImageDescriptor
WINDOWS_2012_SQL_SERVER_STANDARD_2014 ImageDescriptor
WINDOWS_2012_SQL_SERVER_WEB_2008 ImageDescriptor
WINDOWS_2012_SQL_SERVER_WEB_2012 ImageDescriptor
WINDOWS_2012_SQL_SERVER_WEB_2014 ImageDescriptor
WINDOWS_2016_BASE ImageDescriptor
WINDOWS_2016_CONTAINER ImageDescriptor
WINDOWS_2016_NANO ImageDescriptor
WINDOWS_2016_SQL_SERVER_ENTERPRISE_2016 ImageDescriptor
WINDOWS_2016_SQL_SERVER_EXPRESS_2016 ImageDescriptor
WINDOWS_2016_SQL_SERVER_STANDARD_2016 ImageDescriptor
WINDOWS_2016_SQL_SERVER_WEB_2016 ImageDescriptor

Private Properties

Свойство Тип Описание
ConfigFromClient AmazonEC2Config
CreateConfigFromClient AmazonEC2Config
CreateDescribeImagesRequest Amazon.EC2.Model.DescribeImagesRequest
DownloadControlFile System.Net.HttpWebResponse
DownloadControlFileAsync Task
FindDescriptorWithKey ImageDescriptor
LoadDefinitionsFromWeb void
LoadDefinitionsFromWebAsync System.Threading.Task
ParseAMIDefinitions void

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

Метод Описание
DescriptorFromKey ( string key ) : ImageDescriptor

Returns the ImageDescriptor instance for a known key.

DescriptorFromKey ( string key, IAmazonEC2 ec2Client ) : ImageDescriptor

Returns the ImageDescriptor instance for a known key.

DescriptorFromKeyAsync ( string key ) : Task

Returns the ImageDescriptor instance for a known key.

DescriptorFromKeyAsync ( string key, IAmazonEC2 ec2Client ) : Task

Returns the ImageDescriptor instance for a known key.

FindImage ( IAmazonEC2 ec2Client, ImageDescriptor descriptor ) : Image

Find the Amazon machine image identified by the ImageDescriptor.

FindImage ( IAmazonEC2 ec2Client, string imageKey ) : Image

Find the Amazon machine image identified by the version-independent key name.

FindImageAsync ( IAmazonEC2 ec2Client, ImageDescriptor descriptor ) : Task

Find the Amazon machine image identified by the ImageDescriptor.

FindImageAsync ( IAmazonEC2 ec2Client, string imageKey ) : Task

Find the Amazon machine image identified by the version-independent key name.

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

Метод Описание
ConfigFromClient ( IAmazonEC2 ec2Client ) : AmazonEC2Config
CreateConfigFromClient ( IAmazonEC2 ec2Client, ImageDescriptor descriptor ) : AmazonEC2Config
CreateDescribeImagesRequest ( ImageDescriptor descriptor ) : DescribeImagesRequest
DownloadControlFile ( string location, IWebProxy proxy ) : HttpWebResponse
DownloadControlFileAsync ( string location, IWebProxy proxy ) : Task
FindDescriptorWithKey ( string key ) : ImageDescriptor
LoadDefinitionsFromWeb ( AmazonEC2Config ec2Config ) : void
LoadDefinitionsFromWebAsync ( AmazonEC2Config ec2Config ) : System.Threading.Task
ParseAMIDefinitions ( StreamReader reader ) : void

Parses the ami definition content into the ImageDescriptor members.

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

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

Returns the ImageDescriptor instance for a known key.
public static DescriptorFromKey ( string key ) : ImageDescriptor
key string The version-independent key identifying the descriptor
Результат ImageDescriptor

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

Returns the ImageDescriptor instance for a known key.
public static DescriptorFromKey ( string key, IAmazonEC2 ec2Client ) : ImageDescriptor
key string /// The version-independent key identifying the descriptor ///
ec2Client IAmazonEC2 /// /// Optional. Configured client object from which proxy settings, if needed, can be /// determined. If no client is supplied the application configuration will be /// inspected for proxy details. /// /// /// If a proxy is configured (either on the client or in the configuration file) it /// will be used when downloading the metadata file containing the key to filter /// mappings. /// ///
Результат ImageDescriptor

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

Returns the ImageDescriptor instance for a known key.
public static DescriptorFromKeyAsync ( string key ) : Task
key string The version-independent key identifying the descriptor
Результат Task

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

Returns the ImageDescriptor instance for a known key.
public static DescriptorFromKeyAsync ( string key, IAmazonEC2 ec2Client ) : Task
key string /// The version-independent key identifying the descriptor ///
ec2Client IAmazonEC2 /// /// Optional. Configured client object from which proxy settings, if needed, can be /// determined. If no client is supplied the application configuration will be /// inspected for proxy details. /// /// /// If a proxy is configured (either on the client or in the configuration file) it /// will be used when downloading the metadata file containing the key to filter /// mappings. /// ///
Результат Task

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

Find the Amazon machine image identified by the ImageDescriptor.
public static FindImage ( IAmazonEC2 ec2Client, ImageDescriptor descriptor ) : Image
ec2Client IAmazonEC2 The EC2 client used to search for the image.
descriptor ImageDescriptor The descriptor used to identify the image.
Результат Image

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

Find the Amazon machine image identified by the version-independent key name.
public static FindImage ( IAmazonEC2 ec2Client, string imageKey ) : Image
ec2Client IAmazonEC2 The EC2 client used to search for the image.
imageKey string The keyname used to identify the image.
Результат Image

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

Find the Amazon machine image identified by the ImageDescriptor.
public static FindImageAsync ( IAmazonEC2 ec2Client, ImageDescriptor descriptor ) : Task
ec2Client IAmazonEC2 The EC2 client used to search for the image.
descriptor ImageDescriptor The descriptor used to identify the image.
Результат Task

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

Find the Amazon machine image identified by the version-independent key name.
public static FindImageAsync ( IAmazonEC2 ec2Client, string imageKey ) : Task
ec2Client IAmazonEC2 The EC2 client used to search for the image.
imageKey string The keyname used to identify the image.
Результат Task

Описание свойств

ImageKeys публичное статическое свойство

The collection of keys that can be used to address images.
public static IEnumerable ImageKeys
Результат IEnumerable

VPC_NAT публичное статическое свойство

public static ImageDescriptor VPC_NAT
Результат ImageDescriptor

WINDOWS_2008R2_BASE публичное статическое свойство

public static ImageDescriptor WINDOWS_2008R2_BASE
Результат ImageDescriptor

WINDOWS_2008R2_SQL_SERVER_EXPRESS_2008 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008R2_SQL_SERVER_EXPRESS_2008
Результат ImageDescriptor

WINDOWS_2008R2_SQL_SERVER_EXPRESS_2012 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008R2_SQL_SERVER_EXPRESS_2012
Результат ImageDescriptor

WINDOWS_2008R2_SQL_SERVER_STANDARD_2008 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008R2_SQL_SERVER_STANDARD_2008
Результат ImageDescriptor

WINDOWS_2008R2_SQL_SERVER_STANDARD_2012 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008R2_SQL_SERVER_STANDARD_2012
Результат ImageDescriptor

WINDOWS_2008R2_SQL_SERVER_WEB_2008 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008R2_SQL_SERVER_WEB_2008
Результат ImageDescriptor

WINDOWS_2008R2_SQL_SERVER_WEB_2012 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008R2_SQL_SERVER_WEB_2012
Результат ImageDescriptor

WINDOWS_2008RTM_BASE публичное статическое свойство

public static ImageDescriptor WINDOWS_2008RTM_BASE
Результат ImageDescriptor

WINDOWS_2008RTM_SQL_SERVER_EXPRESS_2008 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008RTM_SQL_SERVER_EXPRESS_2008
Результат ImageDescriptor

WINDOWS_2008RTM_SQL_SERVER_STANDARD_2008 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008RTM_SQL_SERVER_STANDARD_2008
Результат ImageDescriptor

WINDOWS_2008_BEANSTALK_IIS75 публичное статическое свойство

public static ImageDescriptor WINDOWS_2008_BEANSTALK_IIS75
Результат ImageDescriptor

WINDOWS_2012R2_BASE публичное статическое свойство

public static ImageDescriptor WINDOWS_2012R2_BASE
Результат ImageDescriptor

WINDOWS_2012R2_SQL_SERVER_EXPRESS_2014 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012R2_SQL_SERVER_EXPRESS_2014
Результат ImageDescriptor

WINDOWS_2012R2_SQL_SERVER_STANDARD_2014 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012R2_SQL_SERVER_STANDARD_2014
Результат ImageDescriptor

WINDOWS_2012R2_SQL_SERVER_WEB_2014 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012R2_SQL_SERVER_WEB_2014
Результат ImageDescriptor

WINDOWS_2012_BASE публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_BASE
Результат ImageDescriptor

WINDOWS_2012_BEANSTALK_IIS8 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_BEANSTALK_IIS8
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_EXPRESS_2008 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_EXPRESS_2008
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_EXPRESS_2012 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_EXPRESS_2012
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_EXPRESS_2014 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_EXPRESS_2014
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_STANDARD_2008 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_STANDARD_2008
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_STANDARD_2012 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_STANDARD_2012
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_STANDARD_2014 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_STANDARD_2014
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_WEB_2008 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_WEB_2008
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_WEB_2012 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_WEB_2012
Результат ImageDescriptor

WINDOWS_2012_SQL_SERVER_WEB_2014 публичное статическое свойство

public static ImageDescriptor WINDOWS_2012_SQL_SERVER_WEB_2014
Результат ImageDescriptor

WINDOWS_2016_BASE публичное статическое свойство

public static ImageDescriptor WINDOWS_2016_BASE
Результат ImageDescriptor

WINDOWS_2016_CONTAINER публичное статическое свойство

public static ImageDescriptor WINDOWS_2016_CONTAINER
Результат ImageDescriptor

WINDOWS_2016_NANO публичное статическое свойство

public static ImageDescriptor WINDOWS_2016_NANO
Результат ImageDescriptor

WINDOWS_2016_SQL_SERVER_ENTERPRISE_2016 публичное статическое свойство

public static ImageDescriptor WINDOWS_2016_SQL_SERVER_ENTERPRISE_2016
Результат ImageDescriptor

WINDOWS_2016_SQL_SERVER_EXPRESS_2016 публичное статическое свойство

public static ImageDescriptor WINDOWS_2016_SQL_SERVER_EXPRESS_2016
Результат ImageDescriptor

WINDOWS_2016_SQL_SERVER_STANDARD_2016 публичное статическое свойство

public static ImageDescriptor WINDOWS_2016_SQL_SERVER_STANDARD_2016
Результат ImageDescriptor

WINDOWS_2016_SQL_SERVER_WEB_2016 публичное статическое свойство

public static ImageDescriptor WINDOWS_2016_SQL_SERVER_WEB_2016
Результат ImageDescriptor