vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/ec2/ec2.rb
# Remove permission from a security group. Returns +true+ or an exception. +protocol+ is one of :'tcp'|'udp'|'icmp' ('tcp' is default).
#
#  ec2.revoke_security_group_IP_ingress('my_awesome_group', 80, 82, 'udp', '192.168.1.0/8') #=> true
#
Remove permission from a security group. Returns +true+ or an exception.
Remove permission from a security group . Returns + true + or an exception .
def revoke_security_group_IP_ingress(name, from_port, to_port, protocol='tcp', cidr_ip='0.0.0.0/0')
      link = generate_request("RevokeSecurityGroupIngress",
                              'GroupName'  => name.to_s,
                              'IpProtocol' => protocol.to_s,
                              'FromPort'   => from_port.to_s,
                              'ToPort'     => to_port.to_s,
                              'CidrIp'     => cidr_ip.to_s)
      request_info(link, RightBoolResponseParser.new(:logger => @logger))
    rescue Exception
      on_exception
    end
def revoke_security_group_IP_ingress ( name , from_port , to_port , protocol = 'tcp' , cidr_ip = '0.0.0.0/0' ) link = generate_request ( "RevokeSecurityGroupIngress" , 'GroupName' => name . to_s , 'IpProtocol' => protocol . to_s , 'FromPort' => from_port . to_s , 'ToPort' => to_port . to_s , 'CidrIp' => cidr_ip . to_s ) request_info ( link , RightBoolResponseParser . new ( :logger => @logger ) ) rescue Exception on_exception end
Remove permission from a security group.
Remove permission from a security group .
name
from_port
to_port
protocol
cidr_ip