Module ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr If CompareIn Str AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad NameLoad Index Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad NameLoad Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str
N/A __future__ unicode_literals moto.core.responses BaseResponse moto.ec2.utils sequence_from_querystring filters_from_querystring InternetGateways N/A BaseResponse N/A attach_internet_gateway N/A N/A self N/A N/A N/A igw_id N/A N/A N/A N/A self querystring get InternetGatewayId N/A None N/A 0 N/A vpc_id N/A N/A N/A N/A self querystring get VpcId N/A None N/A 0 N/A N/A N/A N/A self ec2_backend attach_internet_gateway igw_id vpc_id N/A template N/A N/A self response_template ATTACH_INTERNET_GATEWAY_RESPONSE N/A N/A N/A template render N/A create_internet_gateway N/A N/A self N/A N/A N/A igw N/A N/A N/A self ec2_backend create_internet_gateway N/A template N/A N/A self response_template CREATE_INTERNET_GATEWAY_RESPONSE N/A N/A N/A template render internet_gateway igw N/A delete_internet_gateway N/A N/A self N/A N/A N/A igw_id N/A N/A N/A N/A self querystring get InternetGatewayId N/A None N/A 0 N/A N/A N/A N/A self ec2_backend delete_internet_gateway igw_id N/A template N/A N/A self response_template DELETE_INTERNET_GATEWAY_RESPONSE N/A N/A N/A template render N/A describe_internet_gateways N/A N/A self N/A N/A N/A filter_dict N/A filters_from_querystring N/A self querystring N/A N/A InternetGatewayId.1 N/A self querystring N/A N/A igw_ids N/A sequence_from_querystring InternetGatewayId N/A self querystring N/A igws N/A N/A N/A self ec2_backend describe_internet_gateways igw_ids filters filter_dict N/A N/A igws N/A N/A N/A self ec2_backend describe_internet_gateways filters filter_dict N/A template N/A N/A self response_template DESCRIBE_INTERNET_GATEWAYS_RESPONSE N/A N/A N/A template render internet_gateways igws N/A detach_internet_gateway N/A N/A self N/A N/A N/A igw_id N/A N/A N/A N/A self querystring get InternetGatewayId N/A None N/A 0 N/A vpc_id N/A N/A N/A N/A self querystring get VpcId N/A None N/A 0 N/A N/A N/A N/A self ec2_backend detach_internet_gateway igw_id vpc_id N/A template N/A N/A self response_template DETACH_INTERNET_GATEWAY_RESPONSE N/A N/A N/A template render N/A N/A N/A ATTACH_INTERNET_GATEWAY_RESPONSE <AttachInternetGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
  <return>true</return>
</AttachInternetGatewayResponse> N/A CREATE_INTERNET_GATEWAY_RESPONSE <CreateInternetGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
  <internetGateway>
    <internetGatewayId>{{ internet_gateway.id }}</internetGatewayId>
    <attachmentSet/>
    <tagSet>
      {% for tag in internet_gateway.get_tags() %}
        <item>
          <resourceId>{{ tag.resource_id }}</resourceId>
          <resourceType>{{ tag.resource_type }}</resourceType>
          <key>{{ tag.key }}</key>
          <value>{{ tag.value }}</value>
        </item>
      {% endfor %}
    </tagSet>
  </internetGateway>
</CreateInternetGatewayResponse> N/A DELETE_INTERNET_GATEWAY_RESPONSE <DeleteInternetGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
    <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
    <return>true</return>
</DeleteInternetGatewayResponse> N/A DESCRIBE_INTERNET_GATEWAYS_RESPONSE <DescribeInternetGatewaysResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-
15/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
  <internetGatewaySet>
    {% for igw in internet_gateways %}
    <item>
      <internetGatewayId>{{ igw.id }}</internetGatewayId>
      {% if igw.vpc  %}
        <attachmentSet>
          <item>
            <vpcId>{{ igw.vpc.id }}</vpcId>
            <state>available</state>
          </item>
        </attachmentSet>
      {% else %}
        <attachmentSet/>
      {% endif %}
      <tagSet>
        {% for tag in igw.get_tags() %}
          <item>
            <resourceId>{{ tag.resource_id }}</resourceId>
            <resourceType>{{ tag.resource_type }}</resourceType>
            <key>{{ tag.key }}</key>
            <value>{{ tag.value }}</value>
          </item>
        {% endfor %}
      </tagSet>
    </item>
    {% endfor %}
  </internetGatewaySet>
</DescribeInternetGatewaysResponse> N/A DETACH_INTERNET_GATEWAY_RESPONSE <DetachInternetGatewayResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
  <requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
  <return>true</return>
</DetachInternetGatewayResponse>