diff --git a/aws_quota/check/vpc.py b/aws_quota/check/vpc.py index f07391e..24b92c7 100644 --- a/aws_quota/check/vpc.py +++ b/aws_quota/check/vpc.py @@ -81,6 +81,18 @@ def current(self): return len(self.boto_session.client('ec2').describe_internet_gateways()['InternetGateways']) +class VpcEndpointCountCheck(QuotaCheck): + key = "vpc_endpoint" + description = "Gateway VPC endpoints per Region" + scope = QuotaScope.REGION + service_code = 'vpc' + quota_code = 'L-1B52E74A' + + @property + def current(self): + return len(self.boto_session.client('ec2').describe_vpc_endpoints()['VpcEndpoints']) + + class NetworkInterfaceCountCheck(QuotaCheck): key = "ni_count" description = "VPC network interfaces per Region" @@ -105,6 +117,18 @@ def current(self): return len(self.boto_session.client('ec2').describe_security_groups()['SecurityGroups']) +class NatGatewayCountCheck(QuotaCheck): + key = "nat_count" + description = "NAT gateways per Region" + scope = QuotaScope.REGION + service_code = 'vpc' + quota_code = 'L-FE5A380F' + + @property + def current(self): + return len(self.boto_session.client('ec2').describe_nat_gateways()['NatGateways']) + + class RulesPerSecurityGroupCheck(InstanceQuotaCheck): key = "vpc_rules_per_sg" description = "Rules per VPC security group"