    # File lib/fog/aws/models/compute/security_group.rb, line 84
            def authorize_port_range(range, options = {})
              requires_one :name, :group_id

              ip_permission = {
                'FromPort'   => range.min,
                'ToPort'     => range.max,
                'IpProtocol' => options[:ip_protocol] || 'tcp'
              }

              if options[:group].nil?
                ip_permission['IpRanges'] = [
                  { 'CidrIp' => options[:cidr_ip] || '0.0.0.0/0' }
                ]
              else
                ip_permission['Groups'] = [
                  group_info(options[:group])
                ]
              end

              connection.authorize_security_group_ingress(
                name,
                'GroupId'       => group_id,
                'IpPermissions' => [ ip_permission ]
              )
            end