public void ElasticBeanstalkDescribeApplicationVersions() { #region to-view-information-about-an-application-version-1456269947428 var response = client.DescribeApplicationVersions(new DescribeApplicationVersionsRequest { ApplicationName = "my-app", VersionLabels = new List <string> { "v2" } }); List <ApplicationVersionDescription> applicationVersions = response.ApplicationVersions; #endregion }
private Amazon.ElasticBeanstalk.Model.DescribeApplicationVersionsResponse CallAWSServiceOperation(IAmazonElasticBeanstalk client, Amazon.ElasticBeanstalk.Model.DescribeApplicationVersionsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Elastic Beanstalk", "DescribeApplicationVersions"); try { #if DESKTOP return(client.DescribeApplicationVersions(request)); #elif CORECLR return(client.DescribeApplicationVersionsAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }