title: How to use revoke_ingress method of boto3 to remove a particular security group from inbound rules
body: <p>I want to delete particular security sg-yy group from the inbound rules of another security group sg-ZZ using  <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/ec2.html#EC2.SecurityGroup.revoke_ingress" rel="nofollow noreferrer">revoke_ingress</a> method boto3 </p>
  
  <p>source: sg-ZZ
  target: sg-yy</p>
  
  <p>I tried:</p>
  
  <pre><code>    response = security_group_source.revoke_ingress(
          FromPort=FromPort,
          GroupName=groupName_source,
          IpPermissions=[
              {'ToPort': ToPort,
               'UserIdGroupPairs': [
                   {
                       'Description': description_target,
                       'GroupId': group_id_target,
                       'GroupName': groupName_target,
                       'VpcId': VpcId_target,
  
                   },
               ]
               },
          ],
          SourceSecurityGroupName=groupName_source,
          SourceSecurityGroupOwnerId=owner_id_source,
          ToPort=ToPort,
          DryRun=True
      )
      print( response )
  </code></pre>
  
  <p>But I am getting error:  An error occurred (InvalidGroup.NotFound) when calling the RevokeSecurityGroupIngress operation: The security group 'sg_group_name' does not exist in default VPC 'vpc-1111'</p>
  
  <p>I can not use: </p>
  
  <pre><code>security_group.revoke_ingress(
      IpPermissions = IpPermissions,
  )
  </code></pre>
  
  <p>as I need to delete a specific security group</p>
  
  <p>Can someone please help me here?</p>