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/dynamodb/__pycache__/ |
Upload File : |
o ckF[�] � @ sl d dl Z d dlmZ d dlZd dlmZ d dlmZ d dlm Z d dl mZ d dl mZ G dd � d e�ZdS ) � N)�crc32)�AWSAuthConnection)�DynamoDBResponseError)�Provider)� exceptions)�jsonc s e Zd ZdZdZ dZ dZ dZ dZ dZ dZ eZd Z d5� fd d� Zdd� Zdd� Zd6dd�Zdd� Zdd� Zd7dd�Zdd� Zdd� Zd d!� Zd"d#� Z d8d%d&�Zd9d'd(�Zd9d)d*�Z d:d+d,�Z d:d-d.�Z d:d/d0�Z $ $d;d1d2�Z $d<d3d4�Z � Z!S )=�Layer1ae This is the lowest-level interface to DynamoDB. Methods at this layer map directly to API requests and parameters to the methods are either simple, scalar values or they are the Python equivalent of the JSON input as defined in the DynamoDB Developer's Guide. All responses are direct decoding of the JSON response bodies to Python data structures via the json or simplejson modules. :ivar throughput_exceeded_events: An integer variable that keeps a running total of the number of ThroughputExceeded responses this connection has received from Amazon DynamoDB. z us-east-1�DynamoDB�20111205�&ProvisionedThroughputExceededExceptionz.com.amazon.coral.service#ExpiredTokenException�ConditionalCheckFailedException�ValidationException� NTr c s� | st j�dd| j�} t j�� D ]}|j| kr|} nq| | _tt | �j | jj||||||||| |d� d| _t j� dd|�| _d S )Nr �region)�debug�security_token�validate_certs�profile_namer �validate_checksums)�boto�config�get�DefaultRegionName�dynamodb�regions�namer �superr �__init__�endpoint�throughput_exceeded_events�getbool�_validate_checksums)�self�aws_access_key_id�aws_secret_access_key� is_secure�port�proxy� proxy_portr r r r r r �region_name�reg�� __class__� �6/usr/lib/python3/dist-packages/boto/dynamodb/layer1.pyr J s, � �� �zLayer1.__init__c C s t | j�| _| j�| j� d S �N)r �_provider_type�provider� _auth_handler�update_provider�r"