title: How can I clone an Elastic Beanstalk environment from the AWS SDK for Java?
body: <p>I need to clone an Elastic Beanstalk environment from the AWS SDK for Java.</p>
  
  <p>I found <a href="https://stackoverflow.com/a/27134502/1535071">this</a> answer explaining how to create an environment but I can't find any example or documentation showing how to clone an environment.</p>
  
  <p>I found a <code>clone</code> method for <code>CreateEnvironmentRequest</code> but according to the <a href="http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/elasticbeanstalk/model/CreateEnvironmentRequest.html" rel="nofollow noreferrer">documentation</a> it clones the <code>CreateEnvironmentRequest</code> object, not the environment.</p>
  
  <p><a href="https://i.stack.imgur.com/lK4nI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lK4nI.png" alt="enter image description here"></a> </p>