Is the provided IP within one of the AWS CIDRs?
(self, ip)
| 270 | return None |
| 271 | |
| 272 | def is_aws_ip(self, ip): |
| 273 | """ |
| 274 | Is the provided IP within one of the AWS CIDRs? |
| 275 | """ |
| 276 | if isinstance(ip, str): |
| 277 | ip_addr = IPAddress(ip) |
| 278 | else: |
| 279 | ip_addr = ip |
| 280 | |
| 281 | if self.AWS_IPs is None: |
| 282 | self.__get_aws_ips() |
| 283 | self.__get_aws_ipv6s() |
| 284 | |
| 285 | return self.check_in_cidr(ip_addr, self.AWS_IPs) |
| 286 | |
| 287 | def is_azure_ip(self, ip): |
| 288 | """ |
no test coverage detected