#NEWLINE# def rule_create( self , parent_group_id , direction = None , ethertype = None , ip_protocol = None , from_port = None , to_port = None , cidr = None , group_id = None ) : #NEWLINE# #INDENT# sg = self . client . security_group_rules . create ( parent_group_id , ip_protocol , from_port , to_port , cidr , parent_group_id ) #NEWLINE# return SecurityGroupRule ( sg )