ó FRTc@s˜ddlZddlmZddlmZddlmZdefd„ƒYZdefd„ƒYZd efd „ƒYZ d efd „ƒYZ dS( iÿÿÿÿN(tdatetime(t ResultSet(tTaggedEC2ObjecttVpnConnectionOptionscBs5eZdZdd„Zd„Zd„Zd„ZRS(sÙ Represents VPN connection options :ivar static_routes_only: Indicates whether the VPN connection uses static routes only. Static routes must be used for devices that don't support BGP. cCs ||_dS(N(tstatic_routes_only(tselfR((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyt__init__(scCsdS(NR((R((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyt__repr__+scCsdS(N((Rtnametattrst connection((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyt startElement.scCs>|dkr*|dkrtnt|_nt|||ƒdS(NtstaticRoutesOnlyttrue(tTruetFalseRtsetattr(RRtvalueR ((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyt endElement1s N(t__name__t __module__t__doc__tNoneRRR R(((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyRs    tVpnStaticRoutecBs;eZdZdddd„Zd„Zd„Zd„ZRS(s# Represents a static route for a VPN connection. :ivar destination_cidr_block: The CIDR block associated with the local subnet of the customer data center. :ivar source: Indicates how the routes were provided. :ivar state: The current state of the static route. cCs||_||_||_dS(N(tdestination_cidr_blocktsourcet available(RRRtstate((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR@s  cCs d|jS(NsVpnStaticRoute: %s(R(R((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyREscCsdS(N((RRR R ((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR HscCs\|dkr||_n@|dkr0||_n(|dkrH||_nt|||ƒdS(NtdestinationCidrBlockRR(RRRR(RRRR ((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyRKs      N(RRRRRRR R(((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR7s   t VpnTunnelcBsAeZdZdddddd„Zd„Zd„Zd„ZRS(sÊ Represents telemetry for a VPN tunnel :ivar outside_ip_address: The Internet-routable IP address of the virtual private gateway's outside interface. :ivar status: The status of the VPN tunnel. Valid values: UP | DOWN :ivar last_status_change: The date and time of the last change in status. :ivar status_message: If an error occurs, a description of the error. :ivar accepted_route_count: The number of accepted routes. cCs1||_||_||_||_||_dS(N(toutside_ip_addresststatustlast_status_changetstatus_messagetaccepted_route_count(RRRR R!R"((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR`s     cCs d|jS(Ns VpnTunnel: %s(R(R((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyRhscCsdS(N((RRR R ((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR kscCsÐ|dkr||_n´|dkr0||_nœ|dkrTtj|dƒ|_nx|dkrl||_n`|dkr¼yt|ƒ}Wn%tk r¯tj j d|ƒnX||_ nt |||ƒdS(NtoutsideIpAddressRtlastStatusChanges%Y-%m-%dT%H:%M:%S.%fZt statusMessagetacceptedRouteCounts!Error converting code (%s) to int( RRRtstrptimeR R!tintt ValueErrortbototlogtwarningR"R(RRRR ((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyRns            N(RRRRRRR R(((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyRUs     t VpnConnectioncBsAeZdZdd„Zd„Zd„Zd„Zed„Z RS(sq Represents a VPN Connection :ivar id: The ID of the VPN connection. :ivar state: The current state of the VPN connection. Valid values: pending | available | deleting | deleted :ivar customer_gateway_configuration: The configuration information for the VPN connection's customer gateway (in the native XML format). This element is always present in the :class:`boto.vpc.VPCConnection.create_vpn_connection` response; however, it's present in the :class:`boto.vpc.VPCConnection.get_all_vpn_connections` response only if the VPN connection is in the pending or available state. :ivar type: The type of VPN connection (ipsec.1). :ivar customer_gateway_id: The ID of the customer gateway at your end of the VPN connection. :ivar vpn_gateway_id: The ID of the virtual private gateway at the AWS side of the VPN connection. :ivar tunnels: A list of the vpn tunnels (always 2) :ivar options: The option set describing the VPN connection. :ivar static_routes: A list of static routes associated with a VPN connection. cCsktt|ƒj|ƒd|_d|_d|_d|_d|_d|_ g|_ d|_ g|_ dS(N( tsuperR-RRtidRtcustomer_gateway_configurationttypetcustomer_gateway_idtvpn_gateway_idttunnelstoptionst static_routes(RR ((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyRšs        cCs d|jS(NsVpnConnection:%s(R/(R((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR¦scCs§tt|ƒj|||ƒ}|dk r.|S|dkrYtdtfgƒ|_|jS|dkr„tdtfgƒ|_|jS|dkr£t ƒ|_ |j SdS(Nt vgwTelemetrytitemtroutesR5( R.R-R RRRR4RR6RR5(RRR R tretval((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR ©s     cCs¤|dkr||_nˆ|dkr0||_np|dkrH||_nX|dkr`||_n@|dkrx||_n(|dkr||_nt|||ƒdS(NtvpnConnectionIdRtcustomerGatewayConfigurationR1tcustomerGatewayIdt vpnGatewayId(R/RR0R1R2R3R(RRRR ((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR¸s            cCs|jj|jd|ƒS(Ntdry_run(R tdelete_vpn_connectionR/(RR?((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pytdeleteÈs  N( RRRRRRR RRRA(((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyR-s    ( R*Rtboto.resultsetRtboto.ec2.ec2objectRtobjectRRRR-(((sC/opt/freeware/lib/python2.7/site-packages/boto/vpc/vpnconnection.pyts ,