class AWS::EC2::SecurityGroup

def authorize_ingress protocol, ports, *sources

Returns:
  • (nil) -

Parameters:
  • sources (Mixed) -- One or more CIDR IP addresses,
  • ports (Integer, Range) -- The port (or port range) to allow
  • protocol (String, Symbol) -- Should be :tcp, :udp or :icmp
def authorize_ingress protocol, ports, *sources
  client.authorize_security_group_ingress(
    :group_id => id,
    :ip_permissions => [ingress_opts(protocol, ports, sources)]
  )
  nil
end