PartitionKey

class aws_cdk.aws_appsync.PartitionKey(pkey)

Bases: PrimaryKey

Specifies the assignment to the partition key.

It can be enhanced with the assignment of the 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

partition_key = appsync.PartitionKey(assign)
Parameters:

pkey (Assign) –

Methods

render_template()

Renders the key assignment to a VTL string.

Return type:

str

sort(key)

Allows assigning a value to the sort key.

Parameters:

key (str) –

Return type:

SortKeyStep

Static Methods

classmethod partition(key)

Allows assigning a value to the partition key.

Parameters:

key (str) –

Return type:

PartitionKeyStep