<s> from __future__ import unicode_literals <EOL> from moto . core . responses import BaseResponse <EOL> class VPCPeeringConnections ( BaseResponse ) : <EOL> def create_vpc_peering_connection ( self ) : <EOL> vpc = self . ec2_backend . get_vpc ( self . querystring . get ( '<STR_LIT>' ) [ <NUM_LIT:0> ] ) <EOL> peer_vpc = self . ec2_backend . get_vpc ( self . querystring . get ( '<STR_LIT>' ) [ <NUM_LIT:0> ] ) <EOL> vpc_pcx = self . ec2_backend . create_vpc_peering_connection ( vpc , peer_vpc ) <EOL> template = self . response_template ( CREATE_VPC_PEERING_CONNECTION_RESPONSE ) <EOL> return template . render ( vpc_pcx = vpc_pcx ) <EOL> def delete_vpc_peering_connection ( self ) : <EOL> vpc_pcx_id = self . querystring . get ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> vpc_pcx = self . ec2_backend . delete_vpc_peering_connection ( vpc_pcx_id ) <EOL> template = self . response_template ( DELETE_VPC_PEERING_CONNECTION_RESPONSE ) <EOL> return template . render ( vpc_pcx = vpc_pcx ) <EOL> def describe_vpc_peering_connections ( self ) : <EOL> vpc_pcxs = self . ec2_backend . get_all_vpc_peering_connections ( ) <EOL> template = self . response_template ( DESCRIBE_VPC_PEERING_CONNECTIONS_RESPONSE ) <EOL> return template . render ( vpc_pcxs = vpc_pcxs ) <EOL> def accept_vpc_peering_connection ( self ) : <EOL> vpc_pcx_id = self . querystring . get ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> vpc_pcx = self . ec2_backend . accept_vpc_peering_connection ( vpc_pcx_id ) <EOL> template = self . response_template ( ACCEPT_VPC_PEERING_CONNECTION_RESPONSE ) <EOL> return template . render ( vpc_pcx = vpc_pcx ) <EOL> def reject_vpc_peering_connection ( self ) : <EOL> vpc_pcx_id = self . querystring . get ( '<STR_LIT>' ) [ <NUM_LIT:0> ] <EOL> self . ec2_backend . reject_vpc_peering_connection ( vpc_pcx_id ) <EOL> template = self . response_template ( REJECT_VPC_PEERING_CONNECTION_RESPONSE ) <EOL> return template . render ( ) <EOL> CREATE_VPC_PEERING_CONNECTION_RESPONSE = """<STR_LIT>""" <EOL> DESCRIBE_VPC_PEERING_CONNECTIONS_RESPONSE = """<STR_LIT>""" <EOL> DELETE_VPC_PEERING_CONNECTION_RESPONSE = """<STR_LIT>""" <EOL> ACCEPT_VPC_PEERING_CONNECTION_RESPONSE = """<STR_LIT>""" <EOL> REJECT_VPC_PEERING_CONNECTION_RESPONSE = """<STR_LIT>""" </s>
