Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/awscli/customizations/codedeploy/__pycache__/ |
Upload File : |
o .&�a�) � @ s� d dl Z d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZ dZd e ZG d d� de �ZdS )� N)�datetime)�ClientError)�six)�validate_s3_location)�BasicCommand)�ZIP_COMPRESSION_MODEi � c @ s� e Zd ZdZdZddddd�dd dd d�ddd ddd�ddd dd�ddddd�dddd�gZdd� Zdd� Zdd � Ze j d,d!d"��Zd#d$� Zd%d&� Z d'd(� Zd)d*� Zd+S )-�Push�pusha� Bundles and uploads to Amazon Simple Storage Service (Amazon S3) an application revision, which is a zip archive file that contains deployable content and an accompanying Application Specification file (AppSpec file). If the upload is successful, a message is returned that describes how to call the create-deployment command to deploy the application revision from Amazon S3 to target Amazon Elastic Compute Cloud (Amazon EC2) instances.zapplication-namez--application-name <app-name>TzdRequired. The name of the AWS CodeDeploy application to be associated with the application revision.)�name�synopsis�required� help_textzs3-locationz!--s3-location s3://<bucket>/<key>a Required. Information about the location of the application revision to be uploaded to Amazon S3. You must specify both a bucket and a key that represent the Amazon S3 bucket name and the object key name. Content will be zipped before uploading. Use the format s3://\<bucket\>/\<key\>zignore-hidden-files� store_trueFz�Optional. Set the --ignore-hidden-files flag to not bundle and upload hidden files to Amazon S3; otherwise, set the --no-ignore-hidden-files flag (the default) to bundle and upload hidden files to Amazon S3.)r �action�default� group_namer zno-ignore-hidden-files)r r r r �sourcez--source <path>�.z�Optional. The location of the deployable content and the accompanying AppSpec file on the development machine to be zipped and uploaded to Amazon S3. If not specified, the current directory is used.)r r r r �descriptionz--description <description>z�Optional. A comment that summarizes the application revision. If not specified, the default string "Uploaded by AWS CLI 'time' UTC" is used, where 'time' is the current system time in Coordinated Universal Time (UTC).)r r r c C sH | � |� | jjd|j|j|jd�| _| jjd|jd�| _| �|� d S )N� codedeploy)�region_name�endpoint_url�verify�s3)r ) �_validate_args�_session� create_client�regionr � verify_sslr r �_push)�self�parsed_args�parsed_globals� r$ �G/usr/lib/python3/dist-packages/awscli/customizations/codedeploy/push.py� _run_mainm s ��zPush._run_mainc C s@ t |d� |jr|jrtd��|jsd�t�� �� �|_d S d S )N�s3_locationzKYou cannot specify both --ignore-hidden-files and --no-ignore-hidden-files.zUploaded by AWS CLI {0} UTC) r �ignore_hidden_files�no_ignore_hidden_files�RuntimeErrorr �formatr �utcnow� isoformat)r! r"