KeyCondition

class aws_cdk.aws_appsync.KeyCondition

Bases: object

Factory class for DynamoDB key conditions.

stability :stability: experimental

Methods

and_(key_cond)

Conjunction between two conditions.

Parameters

key_cond (KeyCondition) –

stability :stability: experimental

Return type

KeyCondition

render_template()

Renders the key condition to a VTL string.

stability :stability: experimental

Return type

str

Static Methods

classmethod begins_with(key_name, arg)

Condition (k, arg).

True if the key attribute k begins with the Query argument.

Parameters
  • key_name (str) –

  • arg (str) –

stability :stability: experimental

Return type

KeyCondition

classmethod between(key_name, arg1, arg2)

Condition k BETWEEN arg1 AND arg2, true if k >= arg1 and k <= arg2.

Parameters
  • key_name (str) –

  • arg1 (str) –

  • arg2 (str) –

stability :stability: experimental

Return type

KeyCondition

classmethod eq(key_name, arg)

Condition k = arg, true if the key attribute k is equal to the Query argument.

Parameters
  • key_name (str) –

  • arg (str) –

stability :stability: experimental

Return type

KeyCondition

classmethod ge(key_name, arg)

Condition k >= arg, true if the key attribute k is greater or equal to the Query argument.

Parameters
  • key_name (str) –

  • arg (str) –

stability :stability: experimental

Return type

KeyCondition

classmethod gt(key_name, arg)

Condition k > arg, true if the key attribute k is greater than the the Query argument.

Parameters
  • key_name (str) –

  • arg (str) –

stability :stability: experimental

Return type

KeyCondition

classmethod le(key_name, arg)

Condition k <= arg, true if the key attribute k is less than or equal to the Query argument.

Parameters
  • key_name (str) –

  • arg (str) –

stability :stability: experimental

Return type

KeyCondition

classmethod lt(key_name, arg)

Condition k < arg, true if the key attribute k is less than the Query argument.

Parameters
  • key_name (str) –

  • arg (str) –

stability :stability: experimental

Return type

KeyCondition