UNPKG

@cloud-copilot/iam-simulate

Version:
11 lines 651 B
import { ConditionValueExplain } from '../../explain/statementExplain.js'; /** * Check if the request value is within the policy value CIDR block if the policy value is a valid CIDR block. * * @param policyValue - The CIDR block to check against. * @param requestValue - The IP address to check. * @param expectInCidr - If true, the function checks if the request value is within the CIDR block; if false, it checks if it is outside. * @returns An object explaining the result. */ export declare function checkIfIpAddress(policyValue: string, requestValue: string, expectInCidr: boolean): ConditionValueExplain; //# sourceMappingURL=ip.d.ts.map