403Webshell
Server IP : 172.67.201.108  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/awscli/botocore/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/awscli/botocore/__pycache__/config.cpython-39.pyc
a

wA�i�C�@sNddlZddlmZddlmZmZddlmZmZm	Z	m
Z
Gdd�d�ZdS)�N)�OrderedDict)�DEFAULT_TIMEOUT�MAX_POOL_CONNECTIONS)�InvalidMaxRetryAttemptsError�InvalidRetryConfigurationError�InvalidRetryModeError�InvalidS3AddressingStyleErrorc@s�eZdZdZeddddddefdefd	d
efddd
ddddddddddddddg�Zedd��Z	e	j
dd��Z	dd �Zd!d"�Zd#d$�Z
d%d&�Zd'd(�Zd)S)*�Configa�&Advanced configuration for Botocore clients.

    :type region_name: str
    :param region_name: The region to use in instantiating the client

    :type signature_version: str
    :param signature_version: The signature version when signing requests.

    :type user_agent: str
    :param user_agent: The value to use in the User-Agent header.

    :type user_agent_extra: str
    :param user_agent_extra: The value to append to the current User-Agent
        header value.

    :type user_agent_appid: str
    :param user_agent_appid: A value that gets included in the User-Agent
        string in the format "app/<user_agent_appid>". Allowed characters are
        ASCII alphanumerics and ``!#$%&'*+-.^_`|~``. All other characters will
        be replaced by a ``-``.

    :type connect_timeout: float or int
    :param connect_timeout: The time in seconds till a timeout exception is
        thrown when attempting to make a connection. The default is 60
        seconds.

    :type read_timeout: float or int
    :param read_timeout: The time in seconds till a timeout exception is
        thrown when attempting to read from a connection. The default is
        60 seconds.

    :type parameter_validation: bool
    :param parameter_validation: Whether parameter validation should occur
        when serializing requests. The default is True.  You can disable
        parameter validation for performance reasons.  Otherwise, it's
        recommended to leave parameter validation enabled.

    :type max_pool_connections: int
    :param max_pool_connections: The maximum number of connections to
        keep in a connection pool.  If this value is not set, the default
        value of 10 is used.

    :type proxies: dict
    :param proxies: A dictionary of proxy servers to use by protocol or
        endpoint, e.g.:
        {'http': 'foo.bar:3128', 'http://hostname': 'foo.bar:4012'}.
        The proxies are used on each request.

    :type proxies_config: dict
    :param proxies_config: A dictionary of additional proxy configurations.
        Valid keys are:

        * 'proxy_ca_bundle' -- The path to a custom certificate bundle to use
          when establishing SSL/TLS connections with proxy.

        * 'proxy_client_cert' -- The path to a certificate for proxy
          TLS client authentication.

          When a str is provided it is treated as a path to a proxy client
          certificate. When a two element tuple is provided, it will be
          interpreted as the path to the client certificate, and the path
          to the certificate key.

        * 'proxy_use_forwarding_for_https' -- For HTTPS proxies,
          forward your requests to HTTPS destinations with an absolute
          URI. We strongly recommend you only use this option with
          trusted or corporate proxies. Value must be boolean.

    :type s3: dict
    :param s3: A dictionary of s3 specific configurations.
        Valid keys are:

        * 'use_accelerate_endpoint' -- Refers to whether to use the S3
          Accelerate endpoint. The value must be a boolean. If True, the
          client will use the S3 Accelerate endpoint. If the S3 Accelerate
          endpoint is being used then the addressing style will always
          be virtual.

        * 'payload_signing_enabled' -- Refers to whether or not to SHA256
          sign sigv4 payloads. By default, this is disabled for streaming
          uploads (UploadPart and PutObject).

        * 'addressing_style' -- Refers to the style in which to address
          s3 endpoints. Values must be a string that equals:

          * auto -- Addressing style is chosen for user. Depending
            on the configuration of client, the endpoint may be addressed in
            the virtual or the path style. Note that this is the default
            behavior if no style is specified.

          * virtual -- Addressing style is always virtual. The name of the
            bucket must be DNS compatible or an exception will be thrown.
            Endpoints will be addressed as such: mybucket.s3.amazonaws.com

          * path -- Addressing style is always by path. Endpoints will be
            addressed as such: s3.amazonaws.com/mybucket

    :type retries: dict
    :param retries: A dictionary for retry specific configurations.
        Valid keys are:

        * 'max_attempts' -- An integer representing the maximum number of total
        attempts that will be made on a single API call, including the initial
        attempt. For example, setting this value to 3 will result in the
        request being retried at most two times after the initial request.
        Setting this value to 1 will result in no retries ever being attempted
        on the initial request. If not provided, the number of retries will
        default to whatever is modeled, which is typically four retries.
        * 'mode' -- A string representing the type of retry mode botocore
          should use.  Valid values are:
              * ``standard`` - The standardized set of retry rules.  This
                will also default to 3 max attempts unless overridden.
              * ``adaptive`` - Retries with additional client side throttling.

    :type client_cert: str, (str, str)
    :param client_cert: The path to a certificate for TLS client authentication.

        When a str is provided it is treated as a path to a client certificate
        to be used when creating a TLS connection.

        If a client key is to be provided alongside the client certificate the
        client_cert should be set to a tuple of length two where the first
        element is the path to the client certificate and the second element is
        the path to the certificate key.

    :type inject_host_prefix: bool
    :param inject_host_prefix: Whether host prefix injection should occur.

        Defaults to None.

        The default of None is equivalent to setting to True, which enables
        the injection of operation parameters into the prefix of the hostname.
        Setting this to False disables the injection of operation parameters
        into the prefix of the hostname. Setting this to False is useful for
        clients providing custom endpoints that should not have their host
        prefix modified.

    :type use_dualstack_endpoint: bool
    :param use_dualstack_endpoint: Setting to True enables dualstack
        endpoint resolution.

        Defaults to None.

    :type use_fips_endpoint: bool
    :param use_fips_endpoint: Setting to True enables fips
        endpoint resolution.

        Defaults to None.

    :type ignore_configured_endpoint_urls: bool
    :param ignore_configured_endpoint_urls: Setting to True disables use
        of endpoint URLs provided via environment variables and
        the shared configuration file.

        Defaults to None.

    :type request_min_compression_size_bytes: int
    :param request_min_compression_bytes: The minimum size in bytes that a
    request body should be to trigger compression. All requests with streaming
    input that don't contain the `requiresLength` trait will be compressed
    regardless of this setting.

        Defaults to None.

    :type disable_request_compression: bool
    :param disable_request_compression: Disables request body compression if
    set to True.

        Defaults to None.

    :type sigv4a_signing_region_set: string
    :param sigv4a_signing_region_set: A set of AWS regions to apply the signature for
        when using SigV4a for signing. Set to ``*`` to represent all regions.
        Defaults to None.

    :type request_checksum_calculation: str
    :param request_checksum_calculation: Determines when a checksum will be
        calculated for request payloads. Valid values are:

        * ``when_supported`` -- When set, a checksum will be calculated for
          all request payloads of operations modeled with the ``httpChecksum``
          trait where ``requestChecksumRequired`` is ``true`` or a
          ``requestAlgorithmMember`` is modeled.

        * ``when_required`` -- When set, a checksum will only be calculated
          for request payloads of operations modeled with the ``httpChecksum``
          trait where ``requestChecksumRequired`` is ``true`` or where a
          ``requestAlgorithmMember`` is modeled and supplied.

        Defaults to None.

    :type response_checksum_validation: str
    :param response_checksum_validation: Determines when checksum validation
        will be performed on response payloads. Valid values are:

        * ``when_supported`` -- When set, checksum validation is performed on
          all response payloads of operations modeled with the ``httpChecksum``
          trait where ``responseAlgorithms`` is modeled, except when no modeled
          checksum algorithms are supported.

        * ``when_required`` -- When set, checksum validation is not performed
          on response payloads of operations unless the checksum algorithm is
          supported and the ``requestValidationModeMember`` member is set to ``ENABLED``.

        Defaults to None.

    :type account_id_endpoint_mode: str
    :param account_id_endpoint_mode: The value used to determine the client's
        behavior for account ID based endpoint routing. Valid values are:

        * ``preferred`` - The endpoint should include account ID if available.
        * ``disabled`` - A resolved endpoint does not include account ID.
        * ``required`` - The endpoint must include account ID. If the account ID
          isn't available, an exception will be raised.

        If a value is not provided, the client will default to ``preferred``.

        Defaults to None.

    :type auth_scheme_preference: str
    :param auth_scheme_preference: A comma-delimited string of case-sensitive
        auth scheme names used to determine the client's auth scheme preference.

        Defaults to None.
    )Zregion_nameN)Zsignature_versionN)Z
user_agentN)Zuser_agent_extraN)Zuser_agent_appidNZconnect_timeoutZread_timeout)Zparameter_validationTZmax_pool_connections)ZproxiesN)Zproxies_configN)�s3N)�retriesN)Zclient_certN)�inject_host_prefixN)Zendpoint_discovery_enabledN)Zuse_dualstack_endpointN)Zuse_fips_endpointN)Zignore_configured_endpoint_urlsN)Z"request_min_compression_size_bytesN)Zdisable_request_compressionN)Zsigv4a_signing_region_setN)Zrequest_checksum_calculationN)Zresponse_checksum_validationN)Zaccount_id_endpoint_modeN)Zauth_scheme_preferenceNcCs|jdkrdS|jS)N�UNSETT��_inject_host_prefix)�self�r�:/usr/lib/python3.9/site-packages/awscli/botocore/config.pyr"s
zConfig.inject_host_prefixcCs
||_dS)Nr)r�valuerrrr+scOs~|�||�|_d|_t�|j�}|�|j�|��D],\}}|dkrTd|j��vrTq4t|||�q4|�	|j
�|�|j�dS)Nr
r)
�_record_user_provided_options�_user_provided_optionsr�copy�OPTION_DEFAULTS�update�items�keys�setattr�_validate_s3_configurationr
�_validate_retry_configurationr)r�args�kwargsZconfig_vars�keyrrrr�__init__/s"����zConfig.__init__c	Cs�t|j�}i}|��D],\}}||jvr2|||<qtd|�d���qt|�t|�krrtdt|��dt|��d���t|�D]4\}}|||vr�td||�d���||||<qz|S)Nz!Got unexpected keyword argument '�'zTakes at most z arguments (z given)z*Got multiple values for keyword argument ')�listrr�	TypeError�len�	enumerate)	rrrZoption_orderZuser_provided_optionsr r�i�argrrrrOs"


��z$Config._record_user_provided_optionscCs(|dur$|�d�}|dvr$t|d��dS)N�addressing_style)Zvirtual�auto�pathN)Zs3_addressing_style)�getr)rr
r)rrrros
�z!Config._validate_s3_configurationcCsd|dur`|��D]N\}}|dvr*t|d��|dkrD|dkrDt|d��|dkr|dvrt|d��qdS)	N)�max_attempts�mode)Zretry_config_optionr-�)Zprovided_max_attemptsr.)ZstandardZadaptive)Zprovided_retry_mode)rrrr)rrr rrrrrws��z$Config._validate_retry_configurationcCs&t�|j�}|�|j�tfi|��S)a�Merges the config object with another config object

        This will merge in all non-default values from the provided config
        and return a new config object

        :type other_config: botocore.config.Config
        :param other config: Another config object to merge with. The values
            in the provided config object will take precedence in the merging

        :returns: A config object built from the merged values of both
            config objects.
        )rrrr	)rZother_configZconfig_optionsrrr�merge�szConfig.mergeN)�__name__�
__module__�__qualname__�__doc__rrrr�propertyr�setterr!rrrr0rrrrr	sPc��&

  r	)rZbotocore.compatrZbotocore.endpointrrZbotocore.exceptionsrrrrr	rrrr�<module>
s

Youez - 2016 - github.com/yon3zu
LinuXploit