Amazon.EC2.Util.ImageUtilities.DescriptorFromKeyAsync C# (CSharp) Method

DescriptorFromKeyAsync() public static method

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. /// ///
return Task
        public static async Task<ImageDescriptor> DescriptorFromKeyAsync(string key, IAmazonEC2 ec2Client)
        {
            await LoadDefinitionsFromWebAsync(ConfigFromClient(ec2Client)).ConfigureAwait(false);
            return FindDescriptorWithKey(key);
        }

Same methods

ImageUtilities::DescriptorFromKeyAsync ( string key ) : Task