auths objectThe IP to check
Is the IP in this list of subnets? Provide a value in CIDR notation, e.g. 10.4.5.0/16. To add another subnet, click on the + button on the right.
return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, params) => {}const { isInSubnet } = require('is-in-subnet');
return isInSubnet(params.ip, params.subnets)auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps) => {}if (!steps.is_ip_in_list_of_subnets.$return_value) {
$end("IP not in range. Exiting")
}