PartitionKeyStep

class aws_cdk.aws_appsync.PartitionKeyStep(key)

Bases: object

Utility class to allow assigning a value or an auto-generated id to a partition 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

partition_key_step = appsync.PartitionKeyStep("key")
Parameters:

key (str) –

Methods

auto()

Assign an auto-generated value to the partition key.

Return type:

PartitionKey

is_(val)

Assign an auto-generated value to the partition key.

Parameters:

val (str) –

Return type:

PartitionKey