public void ElasticBeanstalkCreateStorageLocation() { #region to-create-a-new-environment-for-an-application-1456269380396 var response = client.CreateStorageLocation(new CreateStorageLocationRequest { }); string s3Bucket = response.S3Bucket; #endregion }
private Amazon.ElasticBeanstalk.Model.CreateStorageLocationResponse CallAWSServiceOperation(IAmazonElasticBeanstalk client, Amazon.ElasticBeanstalk.Model.CreateStorageLocationRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Elastic Beanstalk", "CreateStorageLocation"); try { #if DESKTOP return(client.CreateStorageLocation(request)); #elif CORECLR return(client.CreateStorageLocationAsync(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; } }