public void ElasticBeanstalkCreateApplicationVersion()
        {
            #region to-create-a-new-application-1456268895683

            var response = client.CreateApplicationVersion(new CreateApplicationVersionRequest
            {
                ApplicationName       = "my-app",
                AutoCreateApplication = true,
                Description           = "my-app-v1",
                Process      = true,
                SourceBundle = new S3Location {
                    S3Bucket = "my-bucket",
                    S3Key    = "sample.war"
                },
                VersionLabel = "v1"
            });

            ApplicationVersionDescription applicationVersion = response.ApplicationVersion;

            #endregion
        }
 private Amazon.ElasticBeanstalk.Model.CreateApplicationVersionResponse CallAWSServiceOperation(IAmazonElasticBeanstalk client, Amazon.ElasticBeanstalk.Model.CreateApplicationVersionRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Elastic Beanstalk", "CreateApplicationVersion");
     try
     {
         #if DESKTOP
         return(client.CreateApplicationVersion(request));
         #elif CORECLR
         return(client.CreateApplicationVersionAsync(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;
     }
 }