o .&ßa° ã@s8dZdZdZdd„Zdd„Zdd„Zd d „Zd d „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©rrrrr 8óÿr cCs| di¡ dd¡dkS)NrÚCoderÚPermanentRedirectrrrrrr =sr cCr)Nz4AWS KMS managed keys require AWS Signature Version 4rrrrrrrrrArrN)Ú__doc__r rrrr r rrrrrÚs ÿ ÿ