HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: sport3497 (1034)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/local/CyberCP/lib64/python3.10/site-packages/botocore/__pycache__/client.cpython-310.pyc
o

�h���@s�ddlZddlmZmZddlmZddlmZddlm	Z	ddl
mZddlm
Z
ddlmZdd	lmZmZmZdd
lmZmZddlmZmZmZmZmZddlmZdd
lm Z ddl!m"Z"m#Z#ddl$m%Z%ddl&m'Z'ddl(m)Z)m*Z*ddl+m,Z,ddl-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4ddlm5Z5ddl-m6Z6ddl-m7Z7ddl-m8Z8ddl-m9Z9ddl-m:Z:ddlm;Z;e<d�Z=e�>e?�Z@e�ZAGdd�d�ZBGdd�d�ZCGd d!�d!�ZDGd"d#�d#�ZEd$d%�ZFdS)&�N)�waiter�
xform_name)�ClientArgsCreator)�AUTH_TYPE_MAPS)�prepare_request_dict)�maybe_compress_request)�Config)�RefreshableCredentials)�EndpointDiscoveryHandler�EndpointDiscoveryManager�,block_endpoint_discovery_required_operations)�ClientMethodDocstring�PaginatorDocstring)�DataNotFoundError�*InvalidEndpointDiscoveryConfigurationError�OperationNotPageableError�UnknownServiceError�UnknownSignatureVersionError)�get_global_history_recorder)�first_non_none_response)�apply_request_checksum�resolve_checksum_context)�ServiceModel)�	Paginator)�adaptive�standard)�UserAgentString)�CachedProperty�EventbridgeSignerSetter�S3ControlArnParamHandlerv2�S3ExpressIdentityResolver�S3RegionRedirectorv2�ensure_boolean�get_service_module_name)�ClientError)�S3ArnParamHandler)�S3ControlArnParamHandler)�S3ControlEndpointSetter)�S3EndpointSetter)�S3RegionRedirector)�UNSIGNED)�v2�v3�v3https�v4�s3�s3v4c@seZdZdZ				d:dd�Z								d;dd�Zd<dd	�Zd
d�Zdd
�Zd<dd�Z	d<dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%�Z				d:d&d'�Zd(d)�Z				d:d*d+�Zd,d-�Zd.d/�Zd0d1�Zd2d3�Zd4d5�Zd6d7�Zd8d9�ZdS)=�
ClientCreatorz%Creates client objects for a service.NcCs@||_||_||_||_||_||_||_||_|	|_|
|_	dS�N)
�_loader�_endpoint_resolver�_user_agent�_event_emitter�_retry_handler_factory�_retry_config_translator�_response_parser_factory�_exceptions_factory�
_config_store�_user_agent_creator)�self�loader�endpoint_resolver�
user_agent�
event_emitter�retry_handler_factory�retry_config_translator�response_parser_factory�exceptions_factory�config_store�user_agent_creator�rH�B/usr/local/CyberCP/lib/python3.10/site-packages/botocore/client.py�__init__Ws

zClientCreator.__init__TcCs&|jjd|d�}t||d�}|�||�}z|�||�}
|j�d�}Wnty5d}
d}t�	d|�Ynw|�
||�}|�||	�\}}	t|j
||	|j�d�|j|j�d�d�}|�||||||||	||
|
|�}|di|��}|�|�|j|dd|	|d	�|j|d
�|j|d
�|�|||	�|S)Nzchoose-service-name��service_name��default�
partitionszSNo endpoints ruleset found for service %s, falling back to legacy endpoint routing.�signingName�signatureVersion)�service_signing_namerF�service_signature_version)�client�endpoint_bridge�endpoint_url�
client_config�
scoped_config�rTrH)r6�emitr�_load_service_model�_load_service_endpoints_rulesetr3�	load_datar�logger�info�_create_client_class�_normalize_fips_region�ClientEndpointBridger4�metadata�getr;�_get_client_args�_register_retries�_register_s3_events�_register_s3express_events�_register_s3_control_events�_register_endpoint_discovery)r=rL�region_name�	is_securerV�verify�credentialsrX�api_versionrW�
auth_token�	responses�
service_model�endpoints_ruleset_data�partition_data�clsrU�client_args�service_clientrHrHrI�
create_clientssz
����	�
��
�
��zClientCreator.create_clientcCs|�||�}|�||�Sr2)r[r`)r=rLrorrrHrHrI�create_client_class�sz!ClientCreator.create_client_classc	Csd|�|�}|�|�}||d<tg}|j��}|jjd|��||d�t|�}tt	|�t
|�|�}|S)N�_PY_TO_OP_NAMEzcreating-client-class.)�class_attributes�base_classes)�_create_methods�_create_name_mapping�
BaseClient�
service_id�	hyphenizer6rZr#�type�str�tuple)	r=rLrrr{�py_name_to_operation_name�basesr��
class_namerurHrHrIr`�s


�z"ClientCreator._create_client_classcCsf|dur/|�dd��dd�}||kr/tdd�}|r|�|�}n|}t�d|�d|�d��|}||fS)	Nzfips-�z-fipsT)�use_fips_endpointztransforming region from z to zb and setting use_fips_endpoint to true. client should not be configured with a fips psuedo region.)�replacer�merger^�warning)r=rkrW�normalized_region_name�config_use_fips_endpointrHrHrIra�s$�
���z$ClientCreator._normalize_fips_regioncCs"|jj|d|d�}t||d�}|S)Nz	service-2�rorK)r3�load_service_modelr)r=rLro�
json_modelrrrHrHrIr[�s
�z!ClientCreator._load_service_modelcCs|jj|d|d�S)Nzendpoint-rule-set-1r�)r3r�)r=rLrorHrHrIr\�s�z-ClientCreator._load_service_endpoints_rulesetcCs^|jjjd}|dkr|�|�dS|dkr"|�|�|�|�dS|dkr-|�|�dSdS)N�moderr�legacy)�meta�config�retries�_register_v2_standard_retries�_register_v2_adaptive_retries�_register_legacy_retries)r=rT�
retry_moderHrHrIrf�s
�zClientCreator._register_retriescCs<|jjj�d�}d|i}|dur||d<tjdi|��dS)N�total_max_attemptsrT�max_attemptsrH)r�r�r�rdr�register_retry_handler)r=rTr��kwargsrHrHrIr�s
z+ClientCreator._register_v2_standard_retriescCst�|�dSr2)rr�)r=rTrHrHrIr�sz+ClientCreator._register_v2_adaptive_retriesc
Cs�|jjj}|jjj}|��}|j�d�}|sdS|�|jjj	�}|j
�||�di�|�di�|�}t
�d|jjj�|j�||�}d|��}	|jjjd|��||	d�dS)N�_retry�retry�definitionsz*Registering retry handlers for service: %sz
retry-config-zneeds-retry.)�	unique_id)r�rr�endpoint_prefixr�r�r3r]�_transform_legacy_retriesr�r�r8�build_retry_configrdr^�debugrLr7�create_retry_handler�events�register)
r=rTr�r��service_event_name�original_configr��retry_config�handlerr�rHrHrIr�
s0



���

�z&ClientCreator._register_legacy_retriescCs:|durdS|��}d|vr|��}|�d�d|d<|S)Nr��r�)�copy�pop)r=r��copied_argsrHrHrIr�)s�z'ClientCreator._transform_legacy_retriescCs6|jjj}|dur|�d�dur|dS|�d�pdS)Nr�r�r�)r�r�r�rd�get_config_variable)r=rTrF�client_retriesrHrHrI�_get_retry_mode4s

zClientCreator._get_retry_modec
Cs�|durdS|jjjdurdS|jj}|jjj��}d}|r'|jdur'|j}n	|jr0|j�d�}|�	|�}|rS|�
||�rS|du}t||d�}t|�}	|	�
||�dS|�
dt�dS)NF�endpoint_discovery_enabledT)�always_discoverzbefore-parameter-build)r�rr�endpoint_discovery_operationr�r�r�r�r;r��$_normalize_endpoint_discovery_config�_requires_endpoint_discoveryrr
r�r)
r=rTrVr�r�r��enabled�discover�managerr�rHrHrIrj=s2�
��z*ClientCreator._register_endpoint_discoverycCsLt|t�r|����}|dkr|S|dvrt|�Snt|t�r!|St|d��)z?Config must either be a boolean-string or string-literal 'auto'�auto)�true�false)�config_value)�
isinstancer��lower�stripr"�boolr)r=r�rHrHrIr�\s
�

z2ClientCreator._normalize_endpoint_discovery_configcCs|dkr	|jjjS|S)Nr�)r�rr�endpoint_discovery_required)r=rTr�rHrHrIr�is
z*ClientCreator._requires_endpoint_discoverycCs4|jjjdkr	dSt|j|jj|d��|jj�dS)Nr�)r?�regionrV)r�rrrLrr4rkr�r�)r=rTrUrVrHrHrI�_register_eventbridge_eventsns�z*ClientCreator._register_eventbridge_eventscCs$|jjjdkr	dSt|t���dS)Nr/)r�rrrLr r	r��r=rTrUrVrWrXrHrHrIrhysz(ClientCreator._register_s3express_eventscCsF|jjjdkr	dStd|���|�|j||�|jj�d|j�dS)Nr/zbefore-parameter-build.s3)r�rrrLr!r��!_set_s3_presign_signature_versionr��_inject_s3_input_parametersr�rHrHrIrg�s��z!ClientCreator._register_s3_eventscCs&|jjjdkr	dSt��|jj�dS)N�	s3control)r�rrrLrr�r�r�rHrHrIri�sz)ClientCreator._register_s3_control_eventscCsxtd||�}|durdS|j�d|j�}|jdkr |j|vr dS|j�d|j�}|d}d|vr2dS|j�d|j�dS)Nr/z
aws-global�signatureVersionszchoose-signer.s3)	�!_get_configured_signature_versionr4�get_available_endpoints�	partitionrk�construct_endpointr�r��_default_s3_presign_to_sigv2)r=�client_metarWrX�provided_signature_version�regions�endpoint�signature_versionsrHrHrIr��s(��

��z/ClientCreator._set_s3_presign_signature_versioncKs2i|d<d}|D]}||vr|||d|<qdS)N�input_params)�Bucket�Delete�Key�PrefixrH)r=�params�contextr��inject_parameters�inject_parameterrHrHrIr��s���z)ClientCreator._inject_s3_input_parameterscKsD|�d�rdS|�d�r|�SdD]}|�|�rd|��SqdS)a@
        Returns the 's3' (sigv2) signer if presigning an s3 request. This is
        intended to be used to set the default signature version for the signer
        to sigv2. Situations where an asymmetric signature is required are the
        exception, for example MRAP needs v4a.

        :type signature_version: str
        :param signature_version: The current client signature version.

        :type signing_name: str
        :param signing_name: The signing name of the service.

        :return: 's3' if the request is an s3 presign request, None otherwise
        �v4aNzv4-s3express)z-queryz
-presign-postr/)�
startswith�endswith)r=�signature_versionr��suffixrHrHrIr��s


��z*ClientCreator._default_s3_presign_to_sigv2c
CsDt|j|j|j|j|j|j|jd�}
|
�|||||||||	|
||�S)N)rFrG)	rr6r5r9r3r:r;r<�get_client_args)r=rrrkrlrVrmrnrXrWrUrprsrt�args_creatorrHrHrIre�s.�	�zClientCreator._get_client_argscCs.i}|jD]}t|�}|�|||�||<q|Sr2)�operation_namesr�_create_api_method)r=rr�op_dict�operation_name�py_operation_namerHrHrIr}s

�zClientCreator._create_methodscCs$i}|jD]
}t|�}|||<q|Sr2)r�r)r=rr�mappingr�r�rHrHrIr~ s


z"ClientCreator._create_name_mappingcsJ��fdd�}t��|_|���}t|�|j|jd���dd�}||_|S)Ncs|r	t��d���|��|�S)Nz"() only accepts keyword arguments.)�	TypeError�_make_api_call)r=�argsr��r�r�rHrI�	_api_call,s
�z3ClientCreator._create_api_method.<locals>._api_callzresponse = client.F)�operation_model�method_namerA�method_description�example_prefix�include_signature)r��__name__r�r
r6�
documentation�__doc__)r=r�r�rrr�r��	docstringrHr�rIr�)s

�z ClientCreator._create_api_method)NNNN)TNNNNNNNr2)r��
__module__�__qualname__r�rJrxryr`rar[r\rfr�r�r�r�r�rjr�r�r�rhrgrir�r�r�rer}r~r�rHrHrHrIr1Tsb

� 
�
L


	

�
�+	'		r1c@s�eZdZdZdZddgZ						d#dd�Z	d$d	d
�Zdd�Zd
d�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�Zdd�Zdd�Zdd �Zd!d"�ZdS)%rba�Bridges endpoint data and client creation

    This class handles taking out the relevant arguments from the endpoint
    resolver and determining which values to use, taking into account any
    client configuration options and scope configuration options.

    This class also handles determining what, if any, region to use if no
    explicit region setting is provided. For example, Amazon S3 client will
    utilize "us-east-1" by default if no region can be resolved.z {service}.{region}.amazonaws.comr/z
s3-controlNcCs4||_||_||_||_|p|j|_||_||_dSr2)rRr?rXrW�DEFAULT_ENDPOINT�default_endpointrFrS)r=r?rXrWr�rRrFrSrHrHrIrJUs

zClientEndpointBridge.__init__TcCst|�||�}|�|�}|�d�}|jj||||d�}|s'|jj||d||d�}|r2|�|||||�S|�||||�S)Nr�)�use_dualstack_endpointr��aws)�partition_namer�r�)�_check_default_region�_resolve_use_dualstack_endpoint�$_resolve_endpoint_variant_config_varr?r��_create_endpoint�_assume_endpoint)r=rLrkrVrlr�r��resolvedrHrHrI�resolvegs8���	�
��zClientEndpointBridge.resolvecC�|jjSr2)r?�uses_builtin_data�r=rHrHrI�resolver_uses_builtin_data�sz/ClientEndpointBridge.resolver_uses_builtin_datacCs.|dur|S|jr|jjdur|jjSdSdSr2)rWrk)r=rLrkrHrHrIr�s
�z*ClientEndpointBridge._check_default_regionc		Csf|�|||�\}}|dur|�|�d�||�dg��}|�||�}|�||�}|j|||||||d�S)N�hostname�	protocols)rLrk�signing_region�signing_namerVrcr�)�_pick_region_values�	_make_urlrd�_resolve_signature_version�_resolve_signing_name�_create_result)	r=rrLrkrVrlrr�rrHrHrIr�s,�
���z%ClientEndpointBridge._create_endpointcCs@|j}d}|rt||�durt||�S|jdur|j�|�}|S)NF)rW�getattrrFr�)r=�
config_varrW�
config_valrHrHrIr�s

z9ClientEndpointBridge._resolve_endpoint_variant_config_varcCs |�|�}|dur|S|�d�S)Nr�)�_is_s3_dualstack_moder)r=rL�s3_dualstack_moderHrHrIr�s
�z4ClientEndpointBridge._resolve_use_dualstack_endpointcCsl||jvrdS|j}|dur|jdurd|jvr|jdS|jdur2|j�di��d�}|dvr4dSdSdS)Nr�r/)T�Truer�T)�_DUALSTACK_CUSTOMIZED_SERVICESrWr/rXrd)r=rLrWr�rHrHrIr�s




��z*ClientEndpointBridge._is_s3_dualstack_modec	Cs~|dur|jj||d�}|�||ddg�}t�d|�d|�d|���|�|ddgi�}|j|id	�}|j||||||id
�S)N)�servicer��http�httpszAssuming an endpoint for z, z: r�r.)r)rLrkrrr�rVrc)r��formatrr^r�rrr)r=rLrkrVrlr
r�rrHrHrIr�s.�
��
��z%ClientEndpointBridge._assume_endpointcCs|||||||d�S)N)rLrkrrrVr�rcrH)r=rLrkrrrVr�rcrHrHrIr�s�z#ClientEndpointBridge._create_resultcCs$|r	d|vr	d}nd}|�d|��S)Nrrz://rH)r=r
rl�supported_protocols�schemerHrHrIr
szClientEndpointBridge._make_urlcCs0d|vrd|dvr|ddS|jr|jS|S)N�credentialScoper)rR)r=rLrrHrHrIrsz*ClientEndpointBridge._resolve_signing_namecCs@|}|dur|d}|}d|vrd|dvr|dd}||fS)N�endpointNamer#r�rH)r=rrkrVrrHrHrIr!sz(ClientEndpointBridge._pick_region_valuescCs�t||j|j�}|dur|S|�dg�}|jdur"|jtvr"|jg}d|vr?|dkr,dSd|vr2dS|D]
}|tvr>|Sq4t|d��)Nr�r/r0r.)r�)r�rWrXrdrS�_LEGACY_SIGNATURE_VERSIONSrr)r=rLr�configured_version�potential_versions�knownrHrHrIr7s.
�
���z/ClientEndpointBridge._resolve_signature_version)NNNNNN�NNT)r�r�r�r�r�rrJrrrrrrrrrrrrrrHrHrHrIrbGs2

�
�'
rbc@s�eZdZiZ		d(dd�Zdd�Zdd�Zdd	�Zed
d��Z	dd
�Z
dd�Z			d)dd�Zdd�Z
	d*dd�Zdd�Zdd�Zdd�Zdd�Zed d!��Zed"d#��Zd$d%�Zd&d'�ZdS)+rNc

Cs�||_||_||_||_||_i|_||_||_t||j|j	||j
|	�|_|
|_d|_
||_|jdur<t���|j�|_|��dSr2)�_serializer�	_endpoint�_ruleset_resolver�_response_parser�_request_signer�_cacher3�_client_config�
ClientMeta�hostrzr�r:�_exceptionsr<r�from_environment�with_client_config�_register_handlers)
r=�
serializerr��response_parserrA�request_signerrrr>rWr�rE�endpoint_ruleset_resolverrGrHrHrIrJas2�
��zBaseClient.__init__cCsX|jj��}d|�d|��}|jjj||d�\}}|dur|Std|jj�d|�d���)Nzgetattr.�.rY�'z' object has no attribute ')	�_service_modelr�r�r�r��emit_until_response�AttributeError�	__class__r�)r=�itemr��
event_namer��event_responserHrHrI�__getattr__�s
��zBaseClient.__getattr__cCs|j��dS)z'Closes underlying endpoint connections.N)r+�closerrHrHrIrE�szBaseClient.closecCs,|jjj��}|jj�d|��|jj�dS)Nzrequest-created.)r�rrr�r�r�r�r.r�)r=r�rHrHrIr6�s�zBaseClient._register_handlerscCr	r2)r�rrrrHrHrIr=��zBaseClient._service_modelcCs�|j�|�}|jj}t�d|||d��|jrt�d||�|jj	|jj
|j|jd�}|j
|||d�}|�|||�\}}}|rC||d<|j|||||d�}	t|	||�|jj��}
|jjjd|
�d	|��||	|j|d
�\}}|durw|\}
}nt|jj
|	|�t|	�|�||	|�\}
}|jjjd|
�d	|��|
|||d�|
jd
kr�|�di�}|�d�p�|�d�}|j�|�}|||��|S)N�API_CALL)r�	operationr�zWarning: %s.%s() is deprecated)�
client_regionrW�has_streaming_input�	auth_type)�
api_paramsr�r��endpoint_properties)rLr�rVr��headerszbefore-call.r;)�modelr�r9r�zafter-call.)�
http_response�parsedrOr�i,�Error�QueryErrorCode�Code)r=r�rL�history_recorder�record�
deprecatedr^r�r�rkr�rJrK�_emit_api_params�_resolve_endpoint_ruleset�_convert_to_request_dictrr�r�r�r>r.rr�
_make_requestrZ�status_coderd�
exceptions�	from_code)r=r�rLr�rL�request_contextrV�additional_headers�
properties�request_dictr�r�rCr�parsed_response�
error_info�
error_code�error_classrHrHrIr��s������	���
�

���
�
zBaseClient._make_api_callc
CsVz|j�||�WSty*}z|jjjd|jj���d|j	��||d��d}~ww)Nzafter-call-error.r;)�	exceptionr�)
r+�make_request�	Exceptionr�r�rZr=r�r��name)r=r�rbr_�erHrHrIr[�s���zBaseClient._make_requestTc	Cs`|j�||�}|jjs|�dd�|dur|d�|�|r$|j��}nd}t||||d�|S)N�host_prefixrN)rVr@r�)	r*�serialize_to_requestr0�inject_host_prefixr��updater<�	to_stringr)	r=rLr�rVr�rN�set_user_agent_headerrbr@rHrHrIrZs"	��z#BaseClient._convert_to_request_dictcCsf|j}|jj��}|jjjd|�d|��|||d�}t||d�}|jjjd|�d|��|||d�|S)Nzprovide-client-params.r;)r�rOr�rMzbefore-parameter-build.)rjr=r�r�r�r�rZr)r=rLr�r�r�r�rqrHrHrIrX$s ��zBaseClient._emit_api_paramsFc
Cs�|jdur|jj}i}i}nC|jj|||d�}|j}|j}|j}|j�d�}	|	durQ|j�|	�}
|
\}}||d<d|vrA|rA|d=d|vrM|d�	|�n||d<|||fS)a�Returns endpoint URL and list of additional headers returned from
        EndpointRulesetResolver for the given operation and params. If the
        ruleset resolver is not available, for example because the service has
        no endpoints ruleset file, the legacy endpoint resolver's value is
        returned.

        Use ignore_signing_region for generating presigned URLs or any other
        situation where the signing region information from the ruleset
        resolver should be ignored.

        Returns tuple of URL and headers dictionary. Additionally, the
        request_context dict is modified in place with any signing information
        returned from the ruleset resolver.
        N)r��	call_argsr_�authSchemesrKr��signing)
r,r�rVr��urlrNrard�auth_schemes_to_signing_ctxro)
r=r�r�r_�ignore_signing_regionrVr`rM�
endpoint_info�auth_schemes�	auth_inforK�signing_contextrHrHrIrY=s2
��
z$BaseClient._resolve_endpoint_rulesetc
Cs�|�|�s
t|d��|j|}dd�}|jd|}t||jj|jj|dd�|_t	|jj�}|�d|��}t
|tfd|i�}|j�
|�}|t||�||�}	|	S)	aCreate a paginator for an operation.

        :type operation_name: string
        :param operation_name: The operation name.  This is the same name
            as the method name on the client.  For example, if the
            method name is ``create_foo``, and you'd normally invoke the
            operation as ``client.create_foo(**kwargs)``, if the
            ``create_foo`` operation can be paginated, you can use the
            call ``client.get_paginator("create_foo")``.

        :raise OperationNotPageableError: Raised if the operation is not
            pageable.  You can use the ``client.can_paginate`` method to
            check if an operation is pageable.

        :rtype: ``botocore.paginate.Paginator``
        :return: A paginator object.

        )r�c[stj|fi|��Sr2)r�paginate)r=r�rHrHrIr|�sz*BaseClient.get_paginator.<locals>.paginate�page_configF)�paginator_namerArr�paginator_configr�z.Paginator.r|)�can_paginaterrzr/rr�r�rrr�r#r�rr=r�r)
r=r��actual_operation_namer|r�service_module_name�paginator_class_name�documented_paginator_clsr��	paginatorrHrHrI�
get_paginatorqs>


��	�����zBaseClient.get_paginatorcCsjd|jvr)z|j�|jjd|jj�d}||jd<Wnty(i|jd<Ynw|j|}||jdvS)aMCheck if an operation can be paginated.

        :type operation_name: string
        :param operation_name: The operation name.  This is the same name
            as the method name on the client.  For example, if the
            method name is ``create_foo``, and you'd normally invoke the
            operation as ``client.create_foo(**kwargs)``, if the
            ``create_foo`` operation can be paginated, you can use the
            call ``client.get_paginator("create_foo")``.

        :return: ``True`` if the operation can be paginated,
            ``False`` otherwise.

        r}zpaginators-1�
pagination)r/r3r�r=rLrorrz)r=r�r}r�rHrHrIr��s
���
zBaseClient.can_paginatecCsXd|jvr'z|j�|jjd|jj�}||jd<Wnty&i|jd<Ynw|jdS)N�
waiter_configz	waiters-2)r/r3r�r=rLror)r=r�rHrHrI�_get_waiter_config�s
��
zBaseClient._get_waiter_configcCsh|��}|s
td|����t�|�}i}|jD]}||t|�<q||vr+td|����t�||||�S)aKReturns an object that can wait for some condition.

        :type waiter_name: str
        :param waiter_name: The name of the waiter to get. See the waiters
            section of the service docs for a list of available waiters.

        :returns: The specified waiter object.
        :rtype: ``botocore.waiter.Waiter``
        zWaiter does not exist: )r��
ValueErrorr�WaiterModel�waiter_namesr�create_waiter_with_client)r=�waiter_namer�rOr�rjrHrHrI�
get_waiter�s



�zBaseClient.get_waitercCs*|��}|sgSt�|�}dd�|jD�S)z(Returns a list of all available waiters.cSsg|]}t|��qSrH)r)�.0rjrHrHrI�
<listcomp>�sz+BaseClient.waiter_names.<locals>.<listcomp>)r�rr�r�)r=r�rOrHrHrIr��s

zBaseClient.waiter_namescCs|jdur
|��|_|jSr2)r3�_load_exceptionsrrHrHrIr]�s

zBaseClient.exceptionscCs|j�|j�Sr2)r:�create_client_exceptionsr=rrHrHrIr�s�zBaseClient._load_exceptionscCr	)z�
        This private interface is subject to abrupt breaking changes, including
        removal, in any botocore release.
        )r.�_credentialsrrHrHrI�_get_credentials	szBaseClient._get_credentials)NNr))F)r�r�r�rzrJrDrEr6�propertyr=r�r[rZrXrYr�r�r�r�rr�r]r�r�rHrHrHrIrXs:
�*
T
�
�4A



rc@s`eZdZdZdd�Zedd��Zedd��Zedd	��Zed
d��Z	edd
��Z
edd��ZdS)r1a~Holds additional client methods.

    This class holds additional information for clients.  It exists for
    two reasons:

        * To give advanced functionality to clients
        * To namespace additional client attributes from the operation
          names which are mapped to methods at runtime.  This avoids
          ever running into collisions with operation names.

    cCs(||_||_||_||_||_||_dSr2)r�r0�
_endpoint_urlr=�_method_to_api_mapping�
_partition)r=r�rWrVrr�method_to_api_mappingr�rHrHrIrJs	
zClientMeta.__init__cC�|jSr2)r=rrHrHrIrr.�zClientMeta.service_modelcCr	r2)r0rkrrHrHrIrk2rFzClientMeta.region_namecCr�r2)r�rrHrHrIrV6r�zClientMeta.endpoint_urlcCr�r2)r0rrHrHrIr�:r�zClientMeta.configcCr�r2)r�rrHrHrIr�>r�z ClientMeta.method_to_api_mappingcCr�r2)r�rrHrHrIr�Br�zClientMeta.partitionN)r�r�r�r�rJr�rrrkrVr�r�r�rHrHrHrIr1s




r1cCs\|r
|jdur
|jS|dur,|�|�}|dur,t|t�r,|�d�}|r,t�d||�|SdS)z�
    Gets the manually configured signature version.

    :returns: the customer configured signature version, or None if no
        signature version was configured.
    Nr�zWSwitching signature version for service %s to version %s based on config file override.)r�rdr��dictr^r�)rLrWrX�service_config�versionrHrHrIr�Gs


�r�)G�logging�botocorerr�
botocore.argsr�
botocore.authr�botocore.awsrequestr�botocore.compressr�botocore.configr�botocore.credentialsr	�botocore.discoveryr
rr�botocore.docs.docstringr
r�botocore.exceptionsrrrrr�botocore.historyr�botocore.hooksr�botocore.httpchecksumrr�botocore.modelr�botocore.paginater�botocore.retriesrr�botocore.useragentr�botocore.utilsrrrr r!r"r#r$r%r&r'r(r)r*�	frozensetr%�	getLoggerr�r^rUr1rbrr1r�rHrHrHrI�<module>sX$�
v<6