Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/boto/sts/__pycache__/ |
Upload File : |
o ckF[�} � @ s� d dl mZ d dlmZmZ d dlmZ d dlmZm Z m Z d dlmZ d dlZd dl Zd dlZd dlZi ZG dd� de�ZdS ) � )�AWSQueryConnection)�Provider�NO_CREDENTIALS_PROVIDED)� RegionInfo)�Credentials�FederationToken�AssumedRole)�DecodeAuthorizationMessageNc s� e Zd ZdZdZdZdZ d� fd d� Zdd � Zd dd�Z d!dd�Z d"dd�Zd#dd�Z d$dd�Z d#dd�Z d!dd�Zdd� Z� ZS )%� STSConnectiona� AWS Security Token Service The AWS Security Token Service is a web service that enables you to request temporary, limited-privilege credentials for AWS Identity and Access Management (IAM) users or for users that you authenticate (federated users). This guide provides descriptions of the AWS Security Token Service API. For more detailed information about using this service, go to `Using Temporary Security Credentials`_. For information about setting up signatures and authorization through the API, go to `Signing AWS API Requests`_ in the AWS General Reference . For general information about the Query API, go to `Making Query Requests`_ in Using IAM . For information about using security tokens with other AWS products, go to `Using Temporary Security Credentials to Access AWS`_ in Using Temporary Security Credentials . If you're new to AWS and need additional technical information about a specific AWS product, you can find the product's technical documentation at `http://aws.amazon.com/documentation/`_. We will refer to Amazon Identity and Access Management using the abbreviated form IAM. All copyrights and legal protections still apply. z us-east-1zsts.amazonaws.comz 2011-06-15NTr �/Fc s~ |st | | j| jtd�}|| _|| _t�� | _d}| jr#t dt t t �}tt| �j||||||||| jj | | |||||d� dS )a :type anon: boolean :param anon: If this parameter is True, the ``STSConnection`` object will make anonymous requests, and it will not use AWS Credentials or even search for AWS Credentials to make these requests. )�connection_cls�aws)�validate_certs�security_token�profile_name�providerN)r �DefaultRegionName�DefaultRegionEndpointr �region�anon� threading� Semaphore�_mutexr r �super�__init__�endpoint)�self�aws_access_key_id�aws_secret_access_key� is_secure�port�proxy� proxy_port� proxy_user� proxy_pass�debug�https_connection_factoryr �path� converterr r r r r �� __class__� �5/usr/lib/python3/dist-packages/boto/sts/connection.pyr E s2 � � �zSTSConnection.__init__c C s | j rdgS dgS )Nzsts-anonzhmac-v4)r )r r+ r+ r, �_required_auth_capabilitym s z'STSConnection._required_auth_capability�<