File: //usr/lib/python3/dist-packages/boto/ec2/elb/__pycache__/__init__.cpython-310.pyc
o
ckF[ � @ s� d Z ddlmZ ddlmZ ddlmZmZ ddlm Z ddl
mZ ddlm
Z
mZmZ ddlmZ dd lZdd
lmZ e� �di �Zdd
� Zdd� ZG dd� de�Zd S )zg
This module provides an interface to the Elastic Compute Cloud (EC2)
load balancing service from AWS.
� )�AWSQueryConnection)�InstanceInfo)�LoadBalancer�LoadBalancerZones)�
InstanceState)�HealthCheck)�
RegionInfo�get_regions�load_regions)�connectN)�six�elasticloadbalancingc C s t dtd�S )z�
Get all available regions for the ELB service.
:rtype: list
:return: A list of :class:`boto.RegionInfo` instances
r
)�connection_cls)r �
ELBConnection� r r �7/usr/lib/python3/dist-packages/boto/ec2/elb/__init__.py�regions) s r c K s t d| fdti|��S )a4
Given a valid region name, return a
:class:`boto.ec2.elb.ELBConnection`.
:param str region_name: The name of the region to connect to.
:rtype: :class:`boto.ec2.ELBConnection` or ``None``
:return: A connection to the given region, or None if an invalid region
name is given
r
r )r r )�region_name� kw_paramsr r r �connect_to_region3 s
��r c s: e Zd Zej�ddd�Zej�ddd�Zej�ddd�Z
dC� fdd
� Z dd� Z
dd� ZdDdd�Z dEdd�Z
dDdd�Zdd� Zdd� Zdd� Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� ZdFd+d,�Zd-d.� Zd/d0� Zd1d2� Zd3d4� Zd5d6� Zd7d8� Zd9d:� Zd;d<� Z d=d>� Z!d?d@� Z"dAdB� Z#� Z$S )Gr �Boto�elb_versionz
2012-06-01�elb_region_namez us-east-1�elb_region_endpointz,elasticloadbalancing.us-east-1.amazonaws.comNTr �/c sP |s
t | | j| j�}|| _tt| �j||||||||| jj| |
||
||d� dS )z�
Init method to create a new connection to EC2 Load Balancing Service.
.. note:: The region argument is overridden by the region specified in
the boto configuration file.
)�validate_certs�profile_nameN)r �DefaultRegionName�DefaultRegionEndpoint�region�superr �__init__�endpoint)�self�aws_access_key_id�aws_secret_access_key� is_secure�port�proxy�
proxy_port�
proxy_user�
proxy_pass�debug�https_connection_factoryr �path�security_tokenr r �� __class__r r r! J s �
�zELBConnection.__init__c C s dgS )Nzhmac-v4r )r# r r r �_required_auth_capabilityc s z'ELBConnection._required_auth_capabilityc C s8 t |tj�r |g}t|�D ]\}}||||d <