updateEnvironment

Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment.

Attempting to update both the release and configuration is not allowed and AWS Elastic Beanstalk returns an InvalidParameterCombination error.

When updating the configuration settings to a new template or individual settings, a draft configuration is created and DescribeConfigurationSettings for this environment returns two setting descriptions with different DeploymentStatus values.

Samples


fun main() { 
   //sampleStart 
   // The following operation updates an environment named "my-env" to version "v2" of the application to
// which it belongs
val resp = elasticBeanstalkClient.updateEnvironment {
    environmentName = "my-env"
    versionLabel = "v2"
} 
   //sampleEnd
}