File: //usr/lib/python3/dist-packages/boto/ec2/autoscale/__pycache__/__init__.cpython-310.pyc
o
ckF[� � @ s d Z ddlZddlZddlmZ ddlmZmZmZ ddlm Z ddl
mZ ddlm
Z
ddlmZ dd lmZ dd
lmZ ddlmZ ddlmZ dd
lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl m!Z! e� �"di �Z#dd� Z$dd� Z%G dd� de�Z&dS )z\
This module provides an interface to the Elastic Compute Cloud (EC2)
Auto Scaling service.
� N)�AWSQueryConnection)�
RegionInfo�get_regions�load_regions)�connect)�Request)�LaunchConfiguration)�AutoScalingGroup)�ProcessType)�Activity)�AdjustmentType)�MetricCollectionTypes)�
ScalingPolicy)�TerminationPolicies)�Instance)�ScheduledUpdateGroupAction)�Tag)�
AccountLimits)�six�autoscalingc C s t dtd�S )z�
Get all available regions for the Auto Scaling service.
:rtype: list
:return: A list of :class:`boto.RegionInfo` instances
r )�connection_cls)r �AutoScaleConnection� r r �=/usr/lib/python3/dist-packages/boto/ec2/autoscale/__init__.py�regions6 s r c K s t d| fdti|��S )aF
Given a valid region name, return a
:class:`boto.ec2.autoscale.AutoScaleConnection`.
:param str region_name: The name of the region to connect to.
:rtype: :class:`boto.ec2.AutoScaleConnection` 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_region@ s
��r c s� e Zd Zej�ddd�Zej�ddd�Zej�ddd�Z
dY� fd
d� Z dd� Z
dd� Zdd� Zdd� Z
dZdd�Zdd� Zd[dd�Zdd� Zdd � Zd!d"� Zd#d$� Zd\d%d&�Zd'd(� Z d\d)d*�Zd+d,� Z d]d-d.�ZdZd/d0�Zd]d1d2�Zd3d4� Z d\d5d6�Zd7d8� Z d^d9d:�Zd;d<� Z d]d=d>�Z!d]d?d@�Z" d_dAdB�Z# d`dCdD�Z$d]dEdF�Z%d]dGdH�Z&dadIdJ�Z'dKdL� Z(dMdN� Z) dZdOdP�Z*d[dQdR�Z+d\dSdT�Z,dUdV� Z-dWdX� Z.� Z/S )br �Boto�autoscale_versionz
2011-01-01�autoscale_endpointz#autoscaling.us-east-1.amazonaws.com�autoscale_region_namez us-east-1NTr �/Fc sX |st | | j| jt�}|| _|| _tt| �j||||||||| jj| |
||
||d� dS )z�
Init method to create a new connection to the AutoScaling service.
B{Note:} The host argument is overridden by the host specified in the
boto configuration file.
)�path�security_token�validate_certs�profile_nameN) r �DefaultRegionName�DefaultRegionEndpointr �region�use_block_device_types�super�__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) r# r$ r% r&