swapEnvironmentCnames

Swaps the CNAMEs of two environments.

Samples


fun main() { 
   //sampleStart 
   // The following operation swaps the assigned subdomains of two environments
elasticBeanstalkClient.swapEnvironmentCnames {
    sourceEnvironmentName = "my-env-blue"
    destinationEnvironmentName = "my-env-green"
} 
   //sampleEnd
}