a 97aUQ@sfddlmZddlmZddlmZdddZGdddeZGd d d eZ Gd d d e Z Gd ddeZ GdddeZ GdddeZ GdddeZGdddeZGddde ZGddde ejjZGddde ZGddde ejjejjZGdd d e ejjZGd!d"d"e ejjZGd#d$d$eZGd%d&d&eZGd'd(d(eZGd)d*d*eZGd+d,d,eZGd-d.d.eZGd/d0d0eZ Gd1d2d2ee!Z"Gd3d4d4eZ#Gd5d6d6eZ$Gd7d8d8eZ%Gd9d:d:eZ&Gd;d<dd>eZ(Gd?d@d@eZ)GdAdBdBe(Z*GdCdDdDe(Z+GdEdFdFe(Z,GdGdHdHe(e!Z-GdIdJdJe(Z.GdKdLdLeZ/GdMdNdNeZ0GdOdPdPeZ1GdQdRdReZ2GdSdTdTeZ3GdUdVdVeZ4GdWdXdXeZ5GdYdZdZeZ6Gd[d\d\eZ7Gd]d^d^eZ8Gd_d`d`eZ9GdadbdbeZ:GdcddddeZ;Gdedfdfe;ZGdidjdje=Z?GdkdldleZ@GdmdndneZAGdodpdpeZBGdqdrdreZCGdsdtdteZDGdudvdveZEGdwdxdxeZFGdydzdzeZGGd{d|d|eZHGd}d~d~eZIGdddeZJGdddeJZKGdddeJZLGdddeZMGdddeZNGdddeZOGdddeOePZQGdddeOZRGdddeZSGdddeSZTGdddeZUGdddeZVGdddeZWGdddeZXGdddeZYGdddeYZZGdddeZ[Gddde[Z\Gddde[Z]GdddeZ^GdddeZ_dS))unicode_literals)requests)urllib3NcCs&|dur d}|duri}||i|S)Nr)Z exception_clsargskwargsrrn/private/var/folders/s6/9n5zrl012gv99k63s4q6ccsd4s6mqz/T/pip-target-f5cq3f2q/lib/python/botocore/exceptions.py_exception_from_packed_argss r c@s$eZdZdZdZddZddZdS) BotoCoreErrorz~ The base exception class for BotoCore exceptions. :ivar msg: The descriptive message associated with the error. zAn unspecified error occurredcKs(|jjfi|}t||||_dSNfmtformat Exception__init__rselfrmsgrrrr's zBotoCoreError.__init__cCst|jd|jffSr )r __class__rrrrr __reduce__,szBotoCoreError.__reduce__N)__name__ __module__ __qualname____doc__r rrrrrrr sr c@seZdZdZdZdS)DataNotFoundErrorz The data associated with a particular path could not be loaded. :ivar data_path: The data path that the user attempted to load. z$Unable to load data for: {data_path}Nrrrrr rrrrr0src@seZdZdZdZdS)UnknownServiceErrorzwRaised when trying to load data for an unknown service. :ivar service_name: The name of the unknown service. zQUnknown service: '{service_name}'. Valid service names are: {known_service_names}Nrrrrrr9src@seZdZdZdZdS)ApiVersionNotFoundErrorz The data associated with either the API version or a compatible one could not be loaded. :ivar data_path: The data path that the user attempted to load. :ivar api_version: The API version that the user attempted to load. z2Unable to load data {data_path} for: {api_version}NrrrrrrDsrcs*eZdZdZdfdd ZddZZS)HTTPClientErrorz5An HTTP Client raised an unhandled exception: {error}Nc s&||_||_tt|jfi|dSr )requestresponsesuperrr)rr r!rrrrrQszHTTPClientError.__init__cCst|j|j|jf|jffSr )r rr r!rrrrrrVszHTTPClientError.__reduce__)NN)rrrr rr __classcell__rrr#rrOsrc@seZdZdZdS)ConnectionErrorz8An HTTP Client failed to establish a connection: {error}Nrrrr rrrrr%[sr%c@seZdZdZdS)InvalidIMDSEndpointErrorz;Invalid endpoint EC2 Instance Metadata endpoint: {endpoint}Nr&rrrrr'_sr'c@seZdZdZdS)InvalidIMDSEndpointModeErrorzkInvalid EC2 Instance Metadata endpoint mode: {mode} Valid endpoint modes (case-insensitive): {valid_modes}.Nr&rrrrr(csr(c@seZdZdZdS)EndpointConnectionErrorz7Could not connect to the endpoint URL: "{endpoint_url}"Nr&rrrrr)hsr)c@seZdZdZdS)SSLErrorz0SSL validation failed for {endpoint_url} {error}Nr&rrrrr*lsr*c@seZdZdZdS)ConnectionClosedErrorz^Connection was closed before we received a valid response from endpoint URL: "{endpoint_url}".Nr&rrrrr+psr+c@seZdZdZdS)ReadTimeoutErrorz.Read timeout on endpoint URL: "{endpoint_url}"Nr&rrrrr,vsr,c@seZdZdZdS)ConnectTimeoutErrorz1Connect timeout on endpoint URL: "{endpoint_url}"Nr&rrrrr-{sr-c@seZdZdZdS)ProxyConnectionErrorz-Failed to connect to proxy URL: "{proxy_url}"Nr&rrrrr.sr.c@seZdZdZdZdS)NoCredentialsErrorz( No credentials could be found. zUnable to locate credentialsNrrrrrr/sr/c@seZdZdZdZdS)PartialCredentialsErrorzj Only partial credentials were found. :ivar cred_var: The missing credential variable name. zError when retrieving credentials from {provider}: {error_msg}Nrrrrrr1sr1c@seZdZdZdZdS)UnknownSignatureVersionErrorz~ Requested Signature Version is not known. :ivar signature_version: The name of the requested signature version. z/Unknown Signature Version: {signature_version}.Nrrrrrr2sr2c@seZdZdZdZdS)ServiceNotInRegionErrorz The service is not available in requested region. :ivar service_name: The name of the service. :ivar region_name: The name of the region. zsr>c@seZdZdZdZdS)UnknownKeyErrorz Unknown key in a struct parameter. :ivar value: The value that was being checked. :ivar param: The name of the parameter. :ivar choices: The valid choices the value can be. zEUnknown key '{value}' for param '{param}'. Must be one of: {choices}Nrrrrrr?sr?c@seZdZdZdZdS) RangeErrora A parameter value was out of the valid range. :ivar value: The value that was being checked. :ivar param: The parameter that failed validation. :ivar min_value: The specified minimum value. :ivar max_value: The specified maximum value. zKValue out of range for param {param}: {min_value} <= {value} <= {max_value}Nrrrrrr@)sr@c@seZdZdZdZdS)UnknownParameterErrorz Unknown top level parameter. :ivar name: The name of the unknown parameter. :ivar operation: The name of the operation. :ivar choices: The valid choices the parameter name can be. zPUnknown parameter '{name}' for operation {operation}. Must be one of: {choices}NrrrrrrA6srAc@seZdZdZdZdS)InvalidRegionErrorz{ Invalid region_name provided to client or resource. :ivar region_name: region_name that was being validated. zFProvided region_name '{region_name}' doesn't match a supported format.NrrrrrrBDsrBc@seZdZdZdZdS)AliasConflictParameterErrorz Error when an alias is provided for a parameter as well as the original. :ivar original: The name of the original parameter. :ivar alias: The name of the alias :ivar operation: The name of the operation. zvParameter '{original}' and its alias '{alias}' were provided for operation {operation}. Only one of them may be used.NrrrrrrCOsrCc@seZdZdZdZdS)UnknownServiceStylez] Unknown style of service invocation. :ivar service_style: The style requested. z6The service style ({service_style}) is not understood.NrrrrrrD]srDc@seZdZdZdS)PaginationErrorz"Error during pagination: {message}Nr&rrrrrEfsrEc@seZdZdZdS)OperationNotPageableErrorz/Operation cannot be paginated: {operation_name}Nr&rrrrrFjsrFc@seZdZdZdZdS) ChecksumErrorzBThe expected checksum did not match the calculated checksum. z{Checksum {checksum_type} failed, expected checksum {expected_checksum} did not match calculated checksum {actual_checksum}.NrrrrrrGnsrGc@seZdZdZdZdS)UnseekableStreamErrorzANeed to seek a stream, but stream does not support seeking. zFNeed to rewind the stream {stream_object}, but stream is not seekable.NrrrrrrHwsrHcs$eZdZdZdZfddZZS) WaiterErrorz%Waiter failed to reach desired state.zWaiter {name} failed: {reason}cstt|j||d||_dS)N)namereason)r"rIr last_response)rrJrKrLr#rrrszWaiterError.__init__)rrrrr rr$rrr#rrIsrIc@seZdZdZdZdS)IncompleteReadErrorz6HTTP response did not return expected number of bytes.zB{actual_bytes} read, but total bytes expected is {expected_bytes}.NrrrrrrMsrMc@seZdZdZdZdS)InvalidExpressionErrorz,Expression is either invalid or too complex.zCInvalid expression {expression}: Only dotted lookups are supported.NrrrrrrNsrNc@seZdZdZdZdS)UnknownCredentialErrorz=Tried to insert before/after an unregistered credential type.z"Credential named {name} not found.NrrrrrrOsrOc@seZdZdZdZdS)WaiterConfigErrorz+Error when processing waiter configuration.z+Error processing waiter config: {error_msg}NrrrrrrPsrPc@seZdZdZdZdS)UnknownClientMethodErrorzEError when trying to access a method on a client that does not exist.z*Client does not have method: {method_name}NrrrrrrQsrQc@seZdZdZdZdS) UnsupportedSignatureVersionErrorz:Error when trying to use an unsupported Signature Version.z7Signature version is not supported: {signature_version}NrrrrrrRsrRcs0eZdZdZfddZddZddZZS) ClientErrorziAn error occurred ({error_code}) when calling the {operation_name} operation{retry_info}: {error_message}csZ||}|di}|jj|dd|dd||d}tt||||_||_dS)NErrorZCodeUnknownMessage)Z error_code error_messageoperation_name retry_info) _get_retry_infoget MSG_TEMPLATErr"rSrr!rX)rZerror_responserXrYerrorrr#rrrs    zClientError.__init__cCs8d}d|vr4|d}|ddr4d|vr4d|d}|S)NZResponseMetadataZMaxAttemptsReachedFZ RetryAttemptsz (reached max retries: %s))r[)rr!rYmetadatarrrrZs zClientError._get_retry_infocCst|j|jffSr )rSr!rXrrrrrszClientError.__reduce__)rrrr\rrZrr$rrr#rrSs   rSc@s eZdZdS)EventStreamErrorNrrrrrrrr`sr`c@seZdZdZdS)UnsupportedTLSVersionWarningz:Warn when an openssl version that uses TLS 1.2 is requiredNr5rrrrrbsrbc@s eZdZdS)ImminentRemovalWarningNrarrrrrcsrcc@seZdZdZdZdS)InvalidDNSNameErrorzEError when virtual host path is forced on a non-DNS compatible bucketaBucket named {bucket_name} is not DNS compatible. Virtual hosted-style addressing cannot be used. The addressing style can be configured by removing the addressing_style value or setting that value to 'path' or 'auto' in the AWS Config file or in the botocore.client.Config object.Nrrrrrrdsrdc@seZdZdZdZdS)InvalidS3AddressingStyleErrorz-Error when an invalid path style is specifiedzfS3 addressing style {s3_addressing_style} is invalid. Valid options are: 'auto', 'virtual', and 'path'Nrrrrrresrec@seZdZdZdZdS)UnsupportedS3ArnErrorz?Error when S3 ARN provided to Bucket parameter is not supportedzeS3 ARN {arn} provided to "Bucket" parameter is invalid. Only ARNs for S3 access-points are supported.Nrrrrrrfsrfc@seZdZdZdZdS)UnsupportedS3ControlArnErrorzCError when S3 ARN provided to S3 control parameter is not supportedzError when an invalid host label would be bound to an endpointzJInvalid host label to be bound to the hostname of the endpoint: "{label}".Nrrrrrrhsrhc@seZdZdZdZdS)UnsupportedOutpostResourceErrorzDError when S3 Outpost ARN provided to Bucket parameter is incompletezS3 Outpost ARN resource "{resource_name}" provided to "Bucket" parameter is invalid. Only ARNs for S3 Outpost arns with an access-point sub-resource are supported.Nrrrrrrisric@seZdZdZdZdS)UnsupportedS3ConfigurationErrorBError when an unsupported configuration is used with access-pointsz.Unsupported configuration when using S3: {msg}Nrrrrrrj srjc@seZdZdZdZdS)*UnsupportedS3AccesspointConfigurationErrorrkzr?r@rArBrCrDrErFrGrHrIrMrNrOrPrQrRrSr`WarningrbrcrdrerfrgrhrirjrlrmrnrorqrrrsrtruAssertionErrorrvrwrxryrzr{r|r}r~rrrrrrrrrrs                       #