class PartitionKey
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.PartitionKey |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#PartitionKey |
Java | software.amazon.awscdk.services.appsync.PartitionKey |
Python | aws_cdk.aws_appsync.PartitionKey |
TypeScript (source) | aws-cdk-lib » aws_appsync » PartitionKey |
Extends
Primary
Specifies the assignment to the partition key.
It can be enhanced with the assignment of the sort key.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as appsync } from 'aws-cdk-lib';
declare const assign: appsync.Assign;
const partitionKey = new appsync.PartitionKey(assign);
Initializer
new PartitionKey(pkey: Assign)
Parameters
- pkey
Assign
Methods
Name | Description |
---|---|
render | Renders the key assignment to a VTL string. |
sort(key) | Allows assigning a value to the sort key. |
Template()
renderpublic renderTemplate(): string
Returns
string
Renders the key assignment to a VTL string.
sort(key)
public sort(key: string): SortKeyStep
Parameters
- key
string
Returns
Allows assigning a value to the sort key.