Sha256: 10c3b7be4e13cef87385b85a2fd298a162a24822c763dad37d0419706bef2b16

Contents?: true

Size: 1.58 KB

Versions: 83

Compression:

Stored size: 1.58 KB

Contents

module Fog
  module AWS
    class ElasticBeanstalk
      class Real

        require 'fog/aws/parsers/beanstalk/update_environment'

        # Updates the environment description, deploys a new application version, updates the configuration settings
        # to an entirely new configuration template, or updates select configuration option values in
        # the running environment.
        #
        # ==== Options
        # * ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions
        #   to include only those that are associated with this application.
        # * EnvironmentIds
        # * EnvironmentNames
        # * IncludeDeleted
        # * IncludedDeletedBackTo
        # * VersionLabel<~String>:
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateEnvironment.html
        #
        def update_environment(options={})
          if option_settings = options.delete('OptionSettings')
            options.merge!(AWS.indexed_param('OptionSettings.member.%d', [*option_settings]))
          end
          if options_to_remove = options.delete('OptionsToRemove')
            options.merge!(AWS.indexed_param('OptionsToRemove.member.%d', [*options_to_remove]))
          end
          request({
                      'Operation'    => 'UpdateEnvironment',
                      :parser     => Fog::Parsers::AWS::ElasticBeanstalk::UpdateEnvironment.new
                  }.merge(options))
        end
      end
    end
  end
end

Version data entries

83 entries across 83 versions & 13 rubygems

Version Path
fog-1.22.0 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-1.21.0 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.20.0.20140305101839 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-1.20.0 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-1.19.0 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/aws/requests/beanstalk/update_environment.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/aws/requests/beanstalk/update_environment.rb