1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/requests/beanstalk/validate_configuration_settings.rb
2015-01-02 09:42:20 -08:00

32 lines
1.2 KiB
Ruby

module Fog
module AWS
class ElasticBeanstalk
class Real
require 'fog/aws/parsers/beanstalk/validate_configuration_settings'
# 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 validate_configuration_settings(options={})
if option_settings = options.delete('OptionSettings')
options.merge!(AWS.indexed_param('OptionSettings.member.%d', [*option_settings]))
end
request({
'Operation' => 'ValidateConfigurationSettings',
:parser => Fog::Parsers::AWS::ElasticBeanstalk::ValidateConfigurationSettings.new
}.merge(options))
end
end
end
end
end