    # File lib/fog/aws/models/beanstalk/environment.rb, line 119
            def save
              requires :name, :application_name
              requires_one :template_name, :solution_stack_name

              options = {
                  'ApplicationName' => application_name,
                  'CNAMEPrefix' => cname_prefix,
                  'Description' => description,
                  'EnvironmentName' => name,
                  'OptionSettings' => option_settings,
                  'OptionsToRemove' => options_to_remove,
                  'SolutionStackName' => solution_stack_name,
                  'TemplateName' => template_name,
                  'VersionLabel' => version_label
              }
              options.delete_if {|key, value| value.nil?}

              data = connection.create_environment(options).body['CreateEnvironmentResult']
              merge_attributes(data)
              true
            end