async revokeIngress(id, ip, permission) {
    const revokeParams = {
      GroupId: permission.securitygroup,
      IpPermissions: [
        {
          FromPort: permission.port,
          IpProtocol: permission.protocol,
          IpRanges: [
            {
              CidrIp: ip + "/32",
              Description: AWS_DESCRIPTION_PREFIX + id
            }
          ],
          ToPort: permission.port
        }
      ]
    };
    console.log("ID=" + id + " Revoking " + JSON.stringify(revokeParams));
    await this.ec2.revokeSecurityGroupIngress(revokeParams).promise().catch((error) => { console.log(error); return false; });
    return true;
  }
/**
   * Removes permission from the ingress.
   * Returns true in case permission removed or in case permission not present. 
   * 
   * @param {string} id ID used when adding the permission
   * @param {string} ip IP in IPv4 format, IPv6 not supported yet.
   * @param {Object} permission 
   */
Removes permission from the ingress.
Returns true in case permission removed or in case permission not present.

@param {string} id ID used when adding the permission
@param {string} ip IP in IPv4 format, IPv6 not supported yet.
@param {Object} permission
Removes permission from the ingress . Returns true in case permission removed or in case permission not present . @param { string } id ID used when adding the permission @param { string } ip IP in IPv4 format IPv6 not supported yet . @param { Object } permission
async revokeIngress(id, ip, permission) {
    const revokeParams = {
      GroupId: permission.securitygroup,
      IpPermissions: [
        {
          FromPort: permission.port,
          IpProtocol: permission.protocol,
          IpRanges: [
            {
              CidrIp: ip + "/32",
              Description: AWS_DESCRIPTION_PREFIX + id
            }
          ],
          ToPort: permission.port
        }
      ]
    };
    console.log("ID=" + id + " Revoking " + JSON.stringify(revokeParams));
    await this.ec2.revokeSecurityGroupIngress(revokeParams).promise().catch((error) => { console.log(error); return false; });
    return true;
  }
async revokeIngress ( id , ip , permission ) { const revokeParams = { GroupId : permission . securitygroup , IpPermissions : [ { FromPort : permission . port , IpProtocol : permission . protocol , IpRanges : [ { CidrIp : ip + "/32" , Description : AWS_DESCRIPTION_PREFIX + id } ] , ToPort : permission . port } ] } ; console . log ( "ID=" + id + " Revoking " + JSON . stringify ( revokeParams ) ) ; await this . ec2 . revokeSecurityGroupIngress ( revokeParams ) . promise ( ) . catch ( ( error ) => { console . log ( error ) ; return false ; } ) ; return true ; }
Removes permission from the ingress.
Removes permission from the ingress .