lib/chef/provider/aws_rds_parameter_group.rb
# Given an existing parameter group, return an array of update descriptions
# representing the updates that need to be made.
#
# Also returns Chef warnings for all the fields required for create that
# are not updateable, which is currently every field but parameters :(
#
# If no updates are needed, an empty array is returned.
Given an existing parameter group, return an array of update descriptions
representing the updates that need to be made.

Also returns Chef warnings for all the fields required for create that
are not updateable, which is currently every field but parameters :(

If no updates are needed, an empty array is returned.
Given an existing parameter group return an array of update descriptions representing the updates that need to be made . Also returns Chef warnings for all the fields required for create that are not updateable which is currently every field but parameters : ( If no updates are needed an empty array is returned .
def required_updates
    ret = []
    if update_parameters
      ret << "  set group parameters to #{desired_options[:parameters]}"
    end
    unless desired_options[:db_parameter_group_family].nil?
      Chef::Log.warn "Updating description for RDS parameter groups is not supported by RDS client."
    end
    unless desired_options[:description].nil?
      Chef::Log.warn "Updating description for RDS parameter groups is not supported by RDS client."
    end
    unless desired_options[:aws_tags].nil? || desired_options[:aws_tags].empty?
      Chef::Log.warn "Updating tags for RDS parameter groups is not supported by RDS client."
    end
    ret.unshift("update RDS parameter group #{new_resource.name} in #{region}") unless ret.empty?
    ret
  end
def required_updates ret = [ ] if update_parameters ret << "  set group parameters to #{desired_options[:parameters]}" end unless desired_options [ :db_parameter_group_family ] . nil? Chef :: Log . warn "Updating description for RDS parameter groups is not supported by RDS client." end unless desired_options [ :description ] . nil? Chef :: Log . warn "Updating description for RDS parameter groups is not supported by RDS client." end unless desired_options [ :aws_tags ] . nil? || desired_options [ :aws_tags ] . empty? Chef :: Log . warn "Updating tags for RDS parameter groups is not supported by RDS client." end ret . unshift ( "update RDS parameter group #{new_resource.name} in #{region}" ) unless ret . empty? ret end
Given an existing parameter group, return an array of update descriptions
representing the updates that need to be made.
Given an existing parameter group return an array of update descriptions representing the updates that need to be made .
# this is the only updateable field # modify_db_parameter_group doesn't support updating the db_parameter_group_family  according to # http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/RDS/Client.html#modify_db_parameter_group-instance_method # which is frustrating because it is required for create # modify_db_parameter_group doesn't support updating the description according to # http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/RDS/Client.html#modify_db_parameter_group-instance_method # which is frustrating because it is required for create # modify_db_parameter_group doesn't support the tags key according to # http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/RDS/Client.html#modify_db_parameter_group-instance_method