File: //lib/python3/dist-packages/boto/vpc/__pycache__/vpnconnection.cpython-312.pyc
�
ckF[* � � � d dl Z d dlmZ d dlmZ d dlmZ G d� de� Z G d� de� Z G d � d
e� Z G d� de� Z
y)
� N)�datetime)� ResultSet)�TaggedEC2Objectc �* � e Zd ZdZdd�Zd� Zd� Zd� Zy)�VpnConnectionOptionsz�
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.
Nc � � || _ y �N)�static_routes_only)�selfr
s �8/usr/lib/python3/dist-packages/boto/vpc/vpnconnection.py�__init__zVpnConnectionOptions.__init__( s
� �"4��� c � � y)Nr � �r s r �__repr__zVpnConnectionOptions.__repr__+ s � �%r c � � y r r �r �name�attrs�
connections r �startElementz!VpnConnectionOptions.startElement. � � �r c �R � |dk( r|dk( rd| _ y d| _ y t | ||� y )N�staticRoutesOnly�trueTF)r
�setattr�r r �valuer s r �
endElementzVpnConnectionOptions.endElement1 s, � ��%�%�.3�v�o�d�D�#�5�D�#��D�$��&r r ��__name__�
__module__�__qualname__�__doc__r
r r r r r r r r s � ��5�&�
�'r r c �* � e Zd ZdZdd�Zd� Zd� Zd� Zy)�VpnStaticRoutea#
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.
Nc �. � || _ || _ || _ y r )�destination_cidr_block�source� available)r r) r* �states r r
zVpnStaticRoute.__init__@ s � �&<��#������r c � � d| j z S )NzVpnStaticRoute: %s)r) r s r r zVpnStaticRoute.__repr__E s � �#�d�&A�&A�A�Ar c � � y r r r s r r zVpnStaticRoute.startElementH r r c �l � |dk( r|| _ y |dk( r|| _ y |dk( r|| _ y t | ||� y )N�destinationCidrBlockr* r, )r) r* r, r r s r r zVpnStaticRoute.endElementK s<