public void ElasticBeanstalkCreateConfigurationTemplate() { #region to-create-a-configuration-template-1456269283586 var response = client.CreateConfigurationTemplate(new CreateConfigurationTemplateRequest { ApplicationName = "my-app", EnvironmentId = "e-rpqsewtp2j", TemplateName = "my-app-v1" }); string applicationName = response.ApplicationName; DateTime dateCreated = response.DateCreated; DateTime dateUpdated = response.DateUpdated; string solutionStackName = response.SolutionStackName; string templateName = response.TemplateName; #endregion }
private Amazon.ElasticBeanstalk.Model.CreateConfigurationTemplateResponse CallAWSServiceOperation(IAmazonElasticBeanstalk client, Amazon.ElasticBeanstalk.Model.CreateConfigurationTemplateRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Elastic Beanstalk", "CreateConfigurationTemplate"); try { #if DESKTOP return(client.CreateConfigurationTemplate(request)); #elif CORECLR return(client.CreateConfigurationTemplateAsync(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; } }