rebuildEnvironment

abstract suspend fun rebuildEnvironment(input: RebuildEnvironmentRequest = RebuildEnvironmentRequest { }): RebuildEnvironmentResponse

Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart.

Samples


fun main() { 
   //sampleStart 
   // The following operation terminates and recreates the resources in an environment named my env
elasticBeanstalkClient.rebuildEnvironment {
    environmentName = "my-env"
} 
   //sampleEnd
}