@cloud-copilot/iam-simulate
Version:
Simulate evaluation of AWS IAM policies
24 lines • 913 B
TypeScript
/**
* Determines if a given IPv6 address is within a specified CIDR block.
*
* @param ip - The IPv6 address to check (e.g., '2001:0db8:85a3::8a2e:0370:7334').
* @param cidr - The IPv6 CIDR block (e.g., '2001:0db8::/32').
* @returns True if the IP address is within the CIDR block; otherwise, false.
* @throws Error if either the IP address or CIDR block is invalid.
*/
export declare function isIpInCidrV6(ip: string, cidr: string): boolean;
/**
* Validates an IPv6 address.
*
* @param ip - The IPv6 address to validate.
* @returns True if the IPv6 address is valid; otherwise, false.
*/
export declare function isValidIpV6(ip: string): boolean;
/**
* Validates an IPv6 CIDR block.
*
* @param cidr - The IPv6 CIDR block to validate.
* @returns True if the CIDR block is valid; otherwise, false.
*/
export declare function isValidIpCidrV6(cidr: string): boolean;
//# sourceMappingURL=ipv6.d.ts.map