| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.9/site-packages/awscli/__pycache__/ |
Upload File : |
a
wA�i�S � @ s. d Z ddlZddlZddlmZmZ ddlmZ ddlm Z m
Z
mZ ddlm
Z
mZmZ e�d�ZG dd � d e�ZG d
d� de�ZG dd
� d
e�ZG dd� de�Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd-d!d"�Zd#d$� Z d%d&� Z!G d'd(� d(�Z"G d)d*� d*e"�Z#G d+d,� d,e"�Z$dS ).zModule for processing CLI args.� N)�OrderedDict�json)�is_json_value_header)�
COMPLEX_TYPES�SCALAR_TYPES� shorthand)�%find_service_and_method_in_event_name�is_document_type�is_document_type_containerzawscli.argprocessc s e Zd Z� fdd�Z� ZS )�
ParamErrorc s, d||f }t t| ��|� || _|| _dS )aB
:type cli_name: string
:param cli_name: The complete cli argument name,
e.g. "--foo-bar". It should include the leading
hyphens if that's how a user would specify the name.
:type message: string
:param message: The error message to display to the user.
z Error parsing parameter '%s': %sN)�superr �__init__�cli_name�message)�selfr r �full_message�� __class__� �5/usr/lib/python3.9/site-packages/awscli/argprocess.pyr
s zParamError.__init__��__name__�
__module__�__qualname__r
�
__classcell__r r r r r s r c @ s e Zd ZdS )�ParamSyntaxErrorN�r r r r r r r r 2 s r c s e Zd Z� fdd�Z� ZS )�ParamUnknownKeyErrorc s. d� |�}d|� d|� �}tt| ��|� d S )N�, z
Unknown key 'z', valid choices are: )�joinr r r
)r �keyZ
valid_keysr r r r r
7 s
zParamUnknownKeyError.__init__r r r r r r 6 s r c @ s e Zd ZdS )�TooComplexErrorNr r r r r r! = s r! c C s: t |dd�}| jd|||f ||||d�}|dur6|}|S )a
Unpack an argument's value from the commandline. This is part one of a two
step process in handling commandline arguments. Emits the load-cli-arg
event with service, operation, and parameter names. Example::
load-cli-arg.ec2.describe-instances.foo
�nameZ anonymouszload-cli-arg.%s.%s.%s)�param�value�service_name�operation_nameN)�getattrZemit_first_non_none_response)Zsessionr% r&