PartitionKey
- class aws_cdk.aws_appsync.PartitionKey(pkey)
Bases:
PrimaryKey
(experimental) Specifies the assignment to the partition key.
It can be enhanced with the assignment of the sort key.
- Stability:
experimental
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_appsync as appsync # assign: appsync.Assign partition_key = appsync.PartitionKey(assign)
- Parameters:
pkey (
Assign
) –- Stability:
experimental
Methods
- render_template()
(experimental) Renders the key assignment to a VTL string.
- Stability:
experimental
- Return type:
str
- sort(key)
(experimental) Allows assigning a value to the sort key.
- Parameters:
key (
str
) –- Stability:
experimental
- Return type:
Static Methods
- classmethod partition(key)
(experimental) Allows assigning a value to the partition key.
- Parameters:
key (
str
) –- Stability:
experimental
- Return type: