Implement InternetGateway filters support

More information about IGW filters: http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInternetGateways.html#query-DescribeInternetGateways-filters
This commit is contained in:
Hugo Lopes Tavares 2014-11-05 12:11:56 -05:00
commit 32af875386
4 changed files with 137 additions and 22 deletions

View file

@ -1867,6 +1867,13 @@ class InternetGateway(TaggedEC2Resource):
def physical_resource_id(self):
return self.id
@property
def attachment_state(self):
if self.vpc:
return "available"
else:
return "detached"
class InternetGatewayBackend(object):
def __init__(self):