|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/site-packages/boto3/dynamodb/__pycache__/ |
U
Q��gm2 � @ s� d dl Z d dlmZ d dlmZ d dlmZmZ d dlm Z m
Z
dd� ZG dd � d e�Z
d
d� ZG dd
� d
�ZG dd� d�ZG dd� d�ZG dd� d�ZdS )� N)�collections_abc)�DocumentModifiedShape)�
ConditionBase�ConditionExpressionBuilder)�TypeDeserializer�TypeSerializerc K s | � dt� d S )Nr )�insert�DynamoDBHighLevelResource)Zbase_classes�kwargs� r �E/opt/cppython/lib/python3.8/site-packages/boto3/dynamodb/transform.py�register_high_level_interface s r
c @ s e Zd ZdZdd� ZdS )�_ForgetfulDictz�A dictionary that discards any items set on it. For use as `memo` in
`copy.deepcopy()` when every instance of a repeated object in the deepcopied
data structure should result in a separate copy.
c C s d S �Nr )�self�key�valuer r r �__setitem__ s z_ForgetfulDict.__setitem__N)�__name__�
__module__�__qualname__�__doc__r r r r r r s r c K s t j| t� d�S )N)�memo)�copy�deepcopyr )�paramsr
r r r �copy_dynamodb_params# s r c s e Zd Z� fdd�Z� ZS )r c s t � j||� | jjjjjdtdd� t� | _| jjjjjd| jj dd� | jjjjjd| jj
dd� | jjjjjd| jjdd� td d
ddd
�}tddddd
�}tddddd
�}| jjjjjd|j
dd� | jjjjjd|j
dd� | jjjjjd|j
dd� d S )Nzprovide-client-params.dynamodbzdynamodb-create-params-copy)� unique_idzbefore-parameter-build.dynamodbzdynamodb-condition-expressionzdynamodb-attr-value-inputzafter-call.dynamodbzdynamodb-attr-value-output�AttributeValuezvalid DynamoDB typez�- The value of the attribute. The valid value types are listed in the :ref:`DynamoDB Reference Guide<ref_valid_dynamodb_types>`.z`'string'|123|Binary(b'bytes')|True|None|set(['string'])|set([123])|set([Binary(b'bytes')])|[]|{})�new_typeZnew_descriptionZnew_example_value�
KeyExpressionz?condition from :py:class:`boto3.dynamodb.conditions.Key` methodz�The condition(s) a key(s) must meet. Valid conditions are listed in the :ref:`DynamoDB Reference Guide<ref_dynamodb_conditions>`.zKey('mykey').eq('myvalue')�ConditionExpressionz@condition from :py:class:`boto3.dynamodb.conditions.Attr` methodz�The condition(s) an attribute(s) must meet. Valid conditions are listed in the :ref:`DynamoDB Reference Guide<ref_dynamodb_conditions>`.z!Attr('myattribute').eq('myvalue')z"docs.*.dynamodb.*.complete-sectionzdynamodb-attr-value-docszdynamodb-key-expression-docszdynamodb-cond-expression-docs)�super�__init__�meta�client�events�registerr �TransformationInjectorZ _injector�inject_condition_expressions�inject_attribute_value_input�inject_attribute_value_outputr Z(replace_documentation_for_matching_shape)r �argsr
Zattr_value_shape_docsZkey_expression_shape_docsZcon_expression_shape_docs�� __class__r r r# ( sn ����������z"DynamoDBHighLevelResource.__init__)r r r r# �
__classcell__r r r- r r '