HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/__pycache__/s3errormsg.cpython-310.pyc
o

.&�a�	�@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)�event_handlers�r�B/usr/lib/python3/dist-packages/awscli/customizations/s3errormsg.py�register_s3_error_msgsrcKs�|dusd|vr
dSt|�rd}|t7}||dd<dSt|�rB|dd}|dd}|dd�d|}|t7}||dd<dSt|�rR|ddt7<dSdS)N�ErrorzZYou are attempting to operate on a bucket in a region that requires Signature Version 4.  �Message�Endpoint���z: %s
)�_is_sigv4_error_message�REGION_ERROR_MSG�_is_permanent_redirect_message�_is_kms_sigv4_error_message�ENABLE_SIGV4_MSG)�parsed�kwargs�message�endpoint�new_messagerrrr#s ��rcC�d|�di��dd�vS)NzPlease use AWS4-HMAC-SHA256rr���get�rrrrr8��rcCs|�di��dd�dkS)Nr�Coder�PermanentRedirectrrrrrr
=sr
cCr)Nz4AWS KMS managed keys require AWS Signature Version 4rrrrrrrrrArrN)�__doc__rrrrrr
rrrrr�<module>s�	�