#NEWLINE# def revoke_security_group_egress( context , group_id , ip_permissions = None ) : #NEWLINE# #INDENT# security_group = ec2utils . get_db_item ( context , group_id ) #NEWLINE# if ( not security_group . get ( 'vpc_id' ) ) : #NEWLINE# #INDENT# raise exception . InvalidParameterValue ( message = _ ( 'Only Amazon VPC security groups may be used with this operation.' ) ) #NEWLINE# #UNINDENT# return _revoke_security_group ( context , group_id , None , ip_permissions , 'egress' )