1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
module Fog
module AWS
class ElasticBeanstalk
class Real
require 'fog/aws/parsers/beanstalk/update_configuration_template'
# Updates the specified configuration template to have the specified properties or configuration option values.
#
# ==== Options
# * ApplicationName<~String>: If specified, AWS Elastic Beanstalk restricts the returned descriptions
# to include only those that are associated with this application.
# * VersionLabel<~String>:
#
# ==== Returns
# * response<~Excon::Response>:
#
# ==== See Also
# http://docs.amazonwebservices.com/elasticbeanstalk/latest/api/API_CreateConfigurationTemplate.html
#
def update_configuration_template(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' => 'UpdateConfigurationTemplate',
:parser => Fog::Parsers::AWS::ElasticBeanstalk::UpdateConfigurationTemplate.new
}.merge(options))
end
end
end
end
end
|