Submit
Path:
~
/
/
lib
/
python2.7
/
site-packages
/
awscli
/
customizations
/
File Content:
s3errormsg.pyc
� =��Xc @ sC d Z d Z d Z d � Z d � Z d � Z d � Z d � Z d S( s Give better S3 error messages. s- 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".sl You can enable AWS Signature Version 4 by running the command: aws configure set s3.signature_version s3v4c C s | j d t � d S( Ns after-call.s3( t registert enhance_error_msg( t event_handlers( ( s@ /tmp/pip-build-uEGWVr/awscli/awscli/customizations/s3errormsg.pyt register_s3_error_msg s c K s� | d k s d | k r d St | � rI d } | t 7} | | d d <nx t | � r� | d d } | d d } | d d | } | t 7} | | d d <n# t | � r� | d d c t 7<n d S( Nt ErrorsZ You are attempting to operate on a bucket in a region that requires Signature Version 4. t Messaget Endpointi����s : %s ( t Nonet _is_sigv4_error_messaget REGION_ERROR_MSGt _is_permanent_redirect_messaget _is_kms_sigv4_error_messaget ENABLE_SIGV4_MSG( t parsedt kwargst messaget endpointt new_message( ( s@ /tmp/pip-build-uEGWVr/awscli/awscli/customizations/s3errormsg.pyR # s c C s"