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:
parent
e92c2ae610
commit
32af875386
4 changed files with 137 additions and 22 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue