File: //lib/python3/dist-packages/awscli/customizations/codedeploy/__pycache__/install.cpython-310.pyc
o
.&�am � @ sT d dl Z d dlZd dlZd dlZd dlmZ d dlmZmZm Z G dd� de�Z
dS )� N)�BasicCommand)�validate_region�validate_s3_location�validate_instancec @ sd e Zd ZdZdZddddd�dd d
dd�d
dd
dd�gZdd� Zdd� Zdd� Zdd� Z dd� Z
dS )�Install�installzMConfigures and installs the AWS CodeDeploy Agent on the on-premises instance.zconfig-filez--config-file <path>TzBRequired. The path to the on-premises instance configuration file.)�name�synopsis�required� help_textzoverride-config�
store_trueFz@Optional. Overrides the on-premises instance configuration file.)r �action�defaultr zagent-installerz--agent-installer <s3-location>z2Optional. The AWS CodeDeploy Agent installer file.c
C s� |}| j |_t||� t|� |j�� | �|� | �|� z
| �|� | � |� W d S t
yL } ztj�
� tj�d�|�� W Y d }~d S d }~ww )Nz�ERROR
{0}
Install the AWS CodeDeploy Agent on the on-premises instance by following the instructions in "Configure Existing On-Premises Instances by Using AWS CodeDeploy" in the AWS CodeDeploy User Guide.
)�_session�sessionr r �system�validate_administrator�_validate_override_config�_validate_agent_installer�_create_config�_install_agent� Exception�sys�stdout�flush�stderr�write�format)�self�parsed_args�parsed_globals�params�e� r# �J/usr/lib/python3/dist-packages/awscli/customizations/codedeploy/install.py� _run_main= s$
���zInstall._run_mainc C s&