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

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