File: //usr/lib/python3/dist-packages/boto/vpc/__pycache__/vpnconnection.cpython-310.pyc
o
ckF[* � @ sr d dl Z d dlmZ d dlmZ d dlmZ G dd� de�ZG dd� de�ZG d d
� d
e�Z G dd� de�Z
dS )
� N)�datetime)� ResultSet)�TaggedEC2Objectc @ �2 e Zd ZdZddd�Zdd� Zdd� Zd d
� ZdS )�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 C s
|| _ d S �N)�static_routes_only)�selfr � r
�8/usr/lib/python3/dist-packages/boto/vpc/vpnconnection.py�__init__( �
zVpnConnectionOptions.__init__c C s dS )Nr r
�r r
r
r �__repr__+ � zVpnConnectionOptions.__repr__c C � d S r r
�r �name�attrs�
connectionr
r
r �startElement. r z!VpnConnectionOptions.startElementc C s4 |dkr|dkr
d| _ d S d| _ d S t| ||� d S )N�staticRoutesOnly�trueTF)r �setattr�r r �valuer r
r
r �
endElement1 s zVpnConnectionOptions.endElementr ��__name__�
__module__�__qualname__�__doc__r r r r r
r
r
r r s
r c @ r )�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 C s || _ || _|| _d S r )�destination_cidr_block�source� available)r r# r$ �stater
r
r r @ s
zVpnStaticRoute.__init__c C �
d| j S )NzVpnStaticRoute: %s)r# r r
r
r r E r
zVpnStaticRoute.__repr__c C r r r
r r
r
r r H r zVpnStaticRoute.startElementc C sF |dkr || _ d S |dkr|| _d S |dkr|| _d S t| ||� d S )N�destinationCidrBlockr$ r&