2014-08-27 11:17:06 -04:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2017-07-17 23:33:40 +00:00
|
|
|
from .account_attributes import AccountAttributes
|
2013-02-21 23:13:01 -05:00
|
|
|
from .amazon_dev_pay import AmazonDevPay
|
2013-02-23 14:22:09 -05:00
|
|
|
from .amis import AmisResponse
|
2013-02-23 14:51:19 -05:00
|
|
|
from .availability_zones_and_regions import AvailabilityZonesAndRegions
|
2013-02-21 23:13:01 -05:00
|
|
|
from .customer_gateways import CustomerGateways
|
|
|
|
from .dhcp_options import DHCPOptions
|
|
|
|
from .elastic_block_store import ElasticBlockStore
|
|
|
|
from .elastic_ip_addresses import ElasticIPAddresses
|
|
|
|
from .elastic_network_interfaces import ElasticNetworkInterfaces
|
|
|
|
from .general import General
|
2013-02-23 16:35:25 -05:00
|
|
|
from .instances import InstanceResponse
|
2013-02-21 23:13:01 -05:00
|
|
|
from .internet_gateways import InternetGateways
|
|
|
|
from .ip_addresses import IPAddresses
|
|
|
|
from .key_pairs import KeyPairs
|
2019-08-14 16:11:05 -05:00
|
|
|
from .launch_templates import LaunchTemplates
|
2013-02-21 23:13:01 -05:00
|
|
|
from .monitoring import Monitoring
|
|
|
|
from .network_acls import NetworkACLs
|
|
|
|
from .placement_groups import PlacementGroups
|
|
|
|
from .reserved_instances import ReservedInstances
|
|
|
|
from .route_tables import RouteTables
|
|
|
|
from .security_groups import SecurityGroups
|
2016-11-07 09:53:44 -05:00
|
|
|
from .spot_fleets import SpotFleets
|
2013-02-21 23:13:01 -05:00
|
|
|
from .spot_instances import SpotInstances
|
|
|
|
from .subnets import Subnets
|
2020-09-28 08:16:06 +02:00
|
|
|
from .flow_logs import FlowLogs
|
2013-02-23 16:35:25 -05:00
|
|
|
from .tags import TagResponse
|
2013-02-21 23:13:01 -05:00
|
|
|
from .virtual_private_gateways import VirtualPrivateGateways
|
|
|
|
from .vm_export import VMExport
|
|
|
|
from .vm_import import VMImport
|
|
|
|
from .vpcs import VPCs
|
2014-07-31 14:41:30 -07:00
|
|
|
from .vpc_peering_connections import VPCPeeringConnections
|
2013-02-21 23:13:01 -05:00
|
|
|
from .vpn_connections import VPNConnections
|
|
|
|
from .windows import Windows
|
2016-02-29 18:22:15 -05:00
|
|
|
from .nat_gateways import NatGateways
|
2021-07-26 16:21:17 +02:00
|
|
|
from .transit_gateways import TransitGateways
|
|
|
|
from .transit_gateway_route_tables import TransitGatewayRouteTable
|
|
|
|
from .transit_gateway_attachments import TransitGatewayAttachment
|
2020-11-20 23:00:53 +01:00
|
|
|
from .iam_instance_profiles import IamInstanceProfiles
|
2013-02-21 23:13:01 -05:00
|
|
|
|
2013-02-20 22:21:55 -05:00
|
|
|
|
2013-05-03 19:33:13 -04:00
|
|
|
class EC2Response(
|
2017-07-17 23:33:40 +00:00
|
|
|
AccountAttributes,
|
2013-05-03 19:33:13 -04:00
|
|
|
AmazonDevPay,
|
|
|
|
AmisResponse,
|
|
|
|
AvailabilityZonesAndRegions,
|
|
|
|
CustomerGateways,
|
|
|
|
DHCPOptions,
|
|
|
|
ElasticBlockStore,
|
|
|
|
ElasticIPAddresses,
|
|
|
|
ElasticNetworkInterfaces,
|
|
|
|
General,
|
|
|
|
InstanceResponse,
|
|
|
|
InternetGateways,
|
|
|
|
IPAddresses,
|
|
|
|
KeyPairs,
|
2019-08-14 16:11:05 -05:00
|
|
|
LaunchTemplates,
|
2013-05-03 19:33:13 -04:00
|
|
|
Monitoring,
|
|
|
|
NetworkACLs,
|
|
|
|
PlacementGroups,
|
|
|
|
ReservedInstances,
|
|
|
|
RouteTables,
|
|
|
|
SecurityGroups,
|
2016-11-07 09:53:44 -05:00
|
|
|
SpotFleets,
|
2013-05-03 19:33:13 -04:00
|
|
|
SpotInstances,
|
|
|
|
Subnets,
|
2020-09-28 08:16:06 +02:00
|
|
|
FlowLogs,
|
2013-05-03 19:33:13 -04:00
|
|
|
TagResponse,
|
|
|
|
VirtualPrivateGateways,
|
|
|
|
VMExport,
|
|
|
|
VMImport,
|
|
|
|
VPCs,
|
2014-07-31 14:41:30 -07:00
|
|
|
VPCPeeringConnections,
|
2013-05-03 19:33:13 -04:00
|
|
|
VPNConnections,
|
|
|
|
Windows,
|
2016-02-29 18:22:15 -05:00
|
|
|
NatGateways,
|
2021-07-26 16:21:17 +02:00
|
|
|
TransitGateways,
|
|
|
|
TransitGatewayRouteTable,
|
|
|
|
TransitGatewayAttachment,
|
2020-11-20 23:00:53 +01:00
|
|
|
IamInstanceProfiles,
|
2013-05-03 19:33:13 -04:00
|
|
|
):
|
2014-08-26 16:42:08 -04:00
|
|
|
@property
|
|
|
|
def ec2_backend(self):
|
|
|
|
from moto.ec2.models import ec2_backends
|
2019-10-31 08:44:26 -07:00
|
|
|
|
2014-08-26 16:42:08 -04:00
|
|
|
return ec2_backends[self.region]
|
2015-11-03 09:25:47 -05:00
|
|
|
|
|
|
|
@property
|
|
|
|
def should_autoescape(self):
|
|
|
|
return True
|