<s> from __future__ import unicode_literals <EOL> from moto . core . responses import BaseResponse <EOL> from moto . ec2 . utils import filters_from_querystring <EOL> class CustomerGateways ( BaseResponse ) : <EOL> def create_customer_gateway ( self ) : <EOL> type = self . querystring . get ( '<STR_LIT>' , None ) [ <NUM_LIT:0> ] <EOL> ip_address = self . querystring . get ( '<STR_LIT>' , None ) [ <NUM_LIT:0> ] <EOL> bgp_asn = self . querystring . get ( '<STR_LIT>' , None ) [ <NUM_LIT:0> ] <EOL> customer_gateway = self . ec2_backend . create_customer_gateway ( type , ip_address = ip_address , bgp_asn = bgp_asn ) <EOL> template = self . response_template ( CREATE_CUSTOMER_GATEWAY_RESPONSE ) <EOL> return template . render ( customer_gateway = customer_gateway ) <EOL> def delete_customer_gateway ( self ) : <EOL> customer_gateway_id = self . querystring . get ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> delete_status = self . ec2_backend . delete_customer_gateway ( customer_gateway_id ) <EOL> template = self . response_template ( DELETE_CUSTOMER_GATEWAY_RESPONSE ) <EOL> return template . render ( customer_gateway = delete_status ) <EOL> def describe_customer_gateways ( self ) : <EOL> filters = filters_from_querystring ( self . querystring ) <EOL> customer_gateways = self . ec2_backend . get_all_customer_gateways ( filters ) <EOL> template = self . response_template ( DESCRIBE_CUSTOMER_GATEWAYS_RESPONSE ) <EOL> return template . render ( customer_gateways = customer_gateways ) <EOL> CREATE_CUSTOMER_GATEWAY_RESPONSE = """<STR_LIT>""" <EOL> DELETE_CUSTOMER_GATEWAY_RESPONSE = """<STR_LIT>""" <EOL> DESCRIBE_CUSTOMER_GATEWAYS_RESPONSE = """<STR_LIT>""" </s>
