| Server IP : 172.67.201.108 / Your IP : 216.73.217.73 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.9/site-packages/awscrt/__pycache__/ |
Upload File : |
a
ů�i\{ � @ s� d Z ddlZddlmZ ddlZddlmZmZ ddlm Z m
Z
ddlmZ ddl
Z
ddlmZ ddlmZmZmZ G d d
� d
e�ZG dd� de�ZG d
d� de�ZG dd� de�ZG dd� de�ZG dd� d�ZG dd� de�ZG dd� de�Zdd� ZdS )zM
AWS client-side authentication: standard credentials providers and signing.
� N)�NativeResource)�HttpRequest�HttpProxyOptions)�ClientBootstrap�ClientTlsContext)�Future)�IntEnum)�Optional�Sequence�Tuplec sr e Zd ZdZdZdZd� fdd� Ze� fdd��Ze d d
� �Z
e dd� �Ze d
d� �Ze dd� �Z
dd� Z� ZS )�AwsCredentialsa&
AwsCredentials are the public/private data needed to sign an authenticated AWS request.
AwsCredentials are immutable.
Args:
access_key_id (str): Access key ID
secret_access_key (str): Secret access key
session_token (Optional[str]): Optional security token associated with
the credentials.
expiration (Optional[datetime.datetime]): Optional expiration datetime,
that the credentials will no longer be valid past.
Converted to UTC timezone and rounded down to nearest second.
If not set, then credentials do not expire.
Attributes:
access_key_id (str): Access key ID
secret_access_key (str): Secret access key
session_token (Optional[str]): Security token associated with
the credentials. None if not set.
expiration (Optional[datetime.datetime]): Expiration datetime,
that the credentials will no longer be valid past.
None if credentials do not expire.
Timezone is always UTC.
� l ���� Nc s� t |t�sJ �t |t�sJ �t |t�s2|d u s2J �|d u rB| j}n&t|�� �}|dk s`|| jkrhtd��t� �� t� ||||�| _
d S )Nr z expiration datetime out of range)�
isinstance�str�_NONEXPIRING_TIMESTAMP�int� timestamp�
OverflowError�super�__init__�_awscrtZcredentials_new�_binding)�self�
access_key_id�secret_access_key�
session_token�
expirationZexpiration_timestamp�� __class__r
�1/usr/lib64/python3.9/site-packages/awscrt/auth.pyr 2 s
�zAwsCredentials.__init__c s"