File manager - Edit - /usr/local/CyberPanel/lib/python3.10/site-packages/boto3/dynamodb/__pycache__/transform.cpython-310.pyc
Back
o �hm2 � @ 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)�base_classes�kwargs� r �N/usr/local/CyberPanel/lib/python3.10/site-packages/boto3/dynamodb/transform.py�register_high_level_interface � 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# r r c s e Zd Z� fdd�Z� ZS )r c s t � j|i |�� | 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_type�new_description�new_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 �TransformationInjector� _injector�inject_condition_expressions�inject_attribute_value_input�inject_attribute_value_outputr �(replace_documentation_for_matching_shape)r �argsr �attr_value_shape_docs�key_expression_shape_docs�con_expression_shape_docs�� __class__r r r'