Python boto3.dynamodb.conditions 模块,ConditionBase() 实例源码

我们从Python开源项目中,提取了以下5个代码示例,用于说明如何使用boto3.dynamodb.conditions.ConditionBase()

项目:aws-cfn-plex    作者:lordmuffin    | 项目源码 | 文件源码
def __call__(self, value):
        if isinstance(value, ConditionBase):
            # Create a conditional expression string with placeholders
            # for the provided condition.
            built_expression = self._condition_builder.build_expression(
                value, is_key_condition=self._is_key_condition)

            self._placeholder_names.update(
                built_expression.attribute_name_placeholders)
            self._placeholder_values.update(
                built_expression.attribute_value_placeholders)

            return built_expression.condition_expression
        # Use the user provided value if it is not a ConditonBase object.
        return value
项目:aws-ec2rescue-linux    作者:awslabs    | 项目源码 | 文件源码
def __call__(self, value):
        if isinstance(value, ConditionBase):
            # Create a conditional expression string with placeholders
            # for the provided condition.
            built_expression = self._condition_builder.build_expression(
                value, is_key_condition=self._is_key_condition)

            self._placeholder_names.update(
                built_expression.attribute_name_placeholders)
            self._placeholder_values.update(
                built_expression.attribute_value_placeholders)

            return built_expression.condition_expression
        # Use the user provided value if it is not a ConditonBase object.
        return value
项目:jepsen-training-vpc    作者:bloomberg    | 项目源码 | 文件源码
def __call__(self, value):
        if isinstance(value, ConditionBase):
            # Create a conditional expression string with placeholders
            # for the provided condition.
            built_expression = self._condition_builder.build_expression(
                value, is_key_condition=self._is_key_condition)

            self._placeholder_names.update(
                built_expression.attribute_name_placeholders)
            self._placeholder_values.update(
                built_expression.attribute_value_placeholders)

            return built_expression.condition_expression
        # Use the user provided value if it is not a ConditonBase object.
        return value
项目:AWS-AutoTag    作者:cpollard0    | 项目源码 | 文件源码
def __call__(self, value):
        if isinstance(value, ConditionBase):
            # Create a conditional expression string with placeholders
            # for the provided condition.
            built_expression = self._condition_builder.build_expression(
                value, is_key_condition=self._is_key_condition)

            self._placeholder_names.update(
                built_expression.attribute_name_placeholders)
            self._placeholder_values.update(
                built_expression.attribute_value_placeholders)

            return built_expression.condition_expression
        # Use the user provided value if it is not a ConditonBase object.
        return value
项目:tf_aws_ecs_instance_draining_on_scale_in    作者:terraform-community-modules    | 项目源码 | 文件源码
def __call__(self, value):
        if isinstance(value, ConditionBase):
            # Create a conditional expression string with placeholders
            # for the provided condition.
            built_expression = self._condition_builder.build_expression(
                value, is_key_condition=self._is_key_condition)

            self._placeholder_names.update(
                built_expression.attribute_name_placeholders)
            self._placeholder_values.update(
                built_expression.attribute_value_placeholders)

            return built_expression.condition_expression
        # Use the user provided value if it is not a ConditonBase object.
        return value