HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/__pycache__/s3errormsg.cpython-38.pyc
U

<�^�	�@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|�dt�dS)Nz
after-call.s3)�register�enhance_error_msg)Zevent_handlers�r�B/usr/lib/python3/dist-packages/awscli/customizations/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|�di��dd�kS)NzPlease use AWS4-HMAC-SHA256rr���get�rrrrr	8s�r	cCs|�di��dd�dkS)NrZCoderZPermanentRedirectrrrrrr=srcCsd|�di��dd�kS)Nz4AWS KMS managed keys require AWS Signature Version 4rrrrrrrrrAs�rN)�__doc__r
r
rrr	rrrrrr�<module>
s�	�