dynamodb.transform

Module Contents

Classes

DynamoDBHighLevelResource(self,*args,**kwargs)
TransformationInjector(self,transformer=None,condition_builder=None,serializer=None,deserializer=None) Injects the transformations into the user provided parameters.
ConditionExpressionTransformation(self,condition_builder,placeholder_names,placeholder_values,is_key_condition=False) Provides a transformation for condition expressions
ParameterTransformer() Transforms the input to and output from botocore based on shape

Functions

register_high_level_interface(base_classes,**kwargs)
copy_dynamodb_params(params,**kwargs)
register_high_level_interface(base_classes, **kwargs)
copy_dynamodb_params(params, **kwargs)
class DynamoDBHighLevelResource(*args, **kwargs)
__init__(*args, **kwargs)
class TransformationInjector(transformer=None, condition_builder=None, serializer=None, deserializer=None)

Injects the transformations into the user provided parameters.

__init__(transformer=None, condition_builder=None, serializer=None, deserializer=None)
inject_condition_expressions(params, model, **kwargs)

Injects the condition expression transformation into the parameters

This injection includes transformations for ConditionExpression shapes and KeyExpression shapes. It also handles any placeholder names and values that are generated when transforming the condition expressions.

inject_attribute_value_input(params, model, **kwargs)

Injects DynamoDB serialization into parameter input

inject_attribute_value_output(parsed, model, **kwargs)

Injects DynamoDB deserialization into responses

class ConditionExpressionTransformation(condition_builder, placeholder_names, placeholder_values, is_key_condition=False)

Provides a transformation for condition expressions

The ParameterTransformer class can call this class directly to transform the condition expressions in the parameters provided.

__init__(condition_builder, placeholder_names, placeholder_values, is_key_condition=False)
__call__(value)
class ParameterTransformer

Transforms the input to and output from botocore based on shape

transform(params, model, transformation, target_shape)

Transforms the dynamodb input to or output from botocore

It applies a specified transformation whenever a specific shape name is encountered while traversing the parameters in the dictionary.

Parameters:
  • params – The parameters structure to transform.
  • model – The operation model.
  • transformation – The function to apply the parameter
  • target_shape – The name of the shape to apply the transformation to
_transform_parameters(model, params, transformation, target_shape)
_transform_structure(model, params, transformation, target_shape)
_transform_map(model, params, transformation, target_shape)
_transform_list(model, params, transformation, target_shape)