HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/customizations/__pycache__/s3errormsg.cpython-36.pyc
3

�T_�	�@s8dZdZdZdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)zGive better S3 error messages.
a-You can fix this issue by explicitly providing the correct region location using the --region argument, the AWS_DEFAULT_REGION environment variable, or the region variable in the AWS CLI configuration file.  You can get the bucket's location by running "aws s3api get-bucket-location --bucket BUCKET".zl You can enable AWS Signature Version 4 by running the command: 
aws configure set s3.signature_version s3v4cCs|jdt�dS)Nz
after-call.s3)�register�enhance_error_msg)Zevent_handlers�r� /usr/lib/python3.6/s3errormsg.py�register_s3_error_msgsrcKs�|dksd|krdSt|�r6d}|t7}||dd<nft|�r�|dd}|dd}|dd�d|}|t7}||dd<nt|�r�|ddt7<dS)N�ErrorzZYou are attempting to operate on a bucket in a region that requires Signature Version 4.  �MessageZEndpoint�z: %s
���)�_is_sigv4_error_message�REGION_ERROR_MSG�_is_permanent_redirect_message�_is_kms_sigv4_error_message�ENABLE_SIGV4_MSG)�parsed�kwargs�messageZendpointZnew_messagerrrr#srcCsd|jdi�jdd�kS)NzPlease use AWS4-HMAC-SHA256rr�)�get)rrrrr
8sr
cCs|jdi�jdd�dkS)NrZCoderZPermanentRedirect)r)rrrrr=srcCsd|jdi�jdd�kS)Nz4AWS KMS managed keys require AWS Signature Version 4rrr)r)rrrrr
Asr
N)�__doc__rrrrr
rr
rrrr�<module>s