SortKeyStep

class aws_cdk.aws_appsync.SortKeyStep(pkey, skey)

Bases: object

Utility class to allow assigning a value or an auto-generated id to a sort key.

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appsync as appsync

# assign: appsync.Assign

sort_key_step = appsync.SortKeyStep(assign, "skey")
Parameters:
  • pkey (Assign) –

  • skey (str) –

Methods

auto()

Assign an auto-generated value to the sort key.

Return type:

PrimaryKey

is_(val)

Assign an auto-generated value to the sort key.

Parameters:

val (str) –

Return type:

PrimaryKey