File: //usr/lib/python3/dist-packages/boto/vpc/__pycache__/__init__.cpython-310.pyc
o
ckF[o � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl m
Z
ddlmZ ddl
mZ dd lmZmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZmZ ddlmZ dd� Z dd� Z!G dd� de�Z"dS )z-
Represents a connection to the EC2 service.
� )�
EC2Connection)� ResultSet)�VPC)�CustomerGateway)�
NetworkAcl)�
RouteTable)�InternetGateway)�
VpnGateway�
Attachment)�DhcpOptions)�Subnet)�
VpnConnection)�VpcPeeringConnection)�
RegionData)�
RegionInfo�get_regions)�connectc K s t dtd�S )a:
Get all available regions for the EC2 service.
You may pass any of the arguments accepted by the VPCConnection
object's constructor as keyword arguments and they will be
passed along to the VPCConnection object.
:rtype: list
:return: A list of :class:`boto.ec2.regioninfo.RegionInfo`
�ec2)�connection_cls)r �
VPCConnection)� kw_params� r �3/usr/lib/python3/dist-packages/boto/vpc/__init__.py�regions+ s
r c K s t d| fdti|��S )a�
Given a valid region name, return a
:class:`boto.vpc.VPCConnection`.
Any additional parameters after the region_name are passed on to
the connect method of the region object.
:type: str
:param region_name: The name of the region to connect to.
:rtype: :class:`boto.vpc.VPCConnection` or ``None``
:return: A connection to the given region, or None if an invalid region
name is given
r r )r r )�region_namer r r r �connect_to_region8 s �r c @ s� e Zd Zd{dd�Zd|dd�Zd}dd�Z d{d d
�Z d{dd�Zd}d
d�Zd}dd�Z d}dd�Z
d}dd�Z d}dd�Z d}dd�Z
d}dd�Z d~dd�Z d~dd�Z d}dd �Zdd!d"�Zd#d$� Zd�d%d&�Zd'd(� Zd)d*� Z d�d+d,�Z d�d-d.�Zd�d/d0�Z d{d1d2�Zd}d3d4�Zd}d5d6�Z d}d7d8�Z d}d9d:�Z d{d;d<�Zd}d=d>�Z d}d?d@�Z! d{dAdB�Z"d|dCdD�Z#d}dEdF�Z$d}dGdH�Z%d}dIdJ�Z&d{dKdL�Z' d|dMdN�Z(d}dOdP�Z)d{dQdR�Z* d�dSdT�Z+d}dUdV�Z,d}dWdX�Z- d{dYdZ�Z. d|d[d\�Z/d}d]d^�Z0 d}d_d`�Z1 d}dadb�Z2 d}dcdd�Z3 d}dedf�Z4 d{dgdh�Z5 d|didj�Z6d}dkdl�Z7d}dmdn�Z8d}dodp�Z9 d{dqdr�Z: d}dsdt�Z;d}dudv�Z<d}dwdx�Z=d}dydz�Z>dS )�r NFc C �F i }|r| � ||d� |r| �||� |rd|d<