PartitionKey

class aws_cdk.aws_appsync.PartitionKey(pkey)

Bases: aws_cdk.aws_appsync.PrimaryKey

Specifies the assignment to the partition key.

It can be enhanced with the assignment of the sort key.

stability :stability: experimental

__init__(pkey)
Parameters

pkey (Assign) –

stability :stability: experimental

Return type

None

Methods

render_template()

Renders the key assignment to a VTL string.

stability :stability: experimental

Return type

str

sort(key)

Allows assigning a value to the sort key.

Parameters

key (str) –

stability :stability: experimental

Return type

SortKeyStep

Static Methods

classmethod partition(key)

Allows assigning a value to the partition key.

Parameters

key (str) –

stability :stability: experimental

Return type

PartitionKeyStep