    # File lib/fog/aws/models/beanstalk/environment.rb, line 74
            def swap_cnames(source)
              requires :name
              connection.swap_environment_cnames({
                  'SourceEnvironmentName' => source.name,
                  'DestinationEnvironmentName' => name
                                                 })
              source.reload
              reload
            end