# File lib/AWS/EC2/security_groups.rb, line 85
 85:       def authorize_security_group_ingress( options = {} )
 86:         options = { :group_name => nil,
 87:                     :ip_protocol => nil,
 88:                     :from_port => nil,
 89:                     :to_port => nil,
 90:                     :cidr_ip => nil,
 91:                     :source_security_group_name => nil,
 92:                     :source_security_group_owner_id => nil }.merge(options)
 93: 
 94:         # lets not validate the rest of the possible permutations of required params and instead let
 95:         # EC2 sort it out on the server side.  We'll only require :group_name as that is always needed.
 96:         raise ArgumentError, "No :group_name provided" if options[:group_name].nil? || options[:group_name].empty?
 97: 
 98:         params = { "GroupName" => options[:group_name],
 99:                    "IpProtocol" => options[:ip_protocol],
100:                    "FromPort" => options[:from_port].to_s,
101:                    "ToPort" => options[:to_port].to_s,
102:                    "CidrIp" => options[:cidr_ip],
103:                    "SourceSecurityGroupName" => options[:source_security_group_name],
104:                    "SourceSecurityGroupOwnerId" => options[:source_security_group_owner_id]
105:                    }
106:         return response_generator(:action => "AuthorizeSecurityGroupIngress", :params => params)
107:       end