aws-cdk-lib.aws_appsync.PartitionKey

class PartitionKey

LanguageType name
.NETAmazon.CDK.AWS.AppSync.PartitionKey
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappsync#PartitionKey
Javasoftware.amazon.awscdk.services.appsync.PartitionKey
Pythonaws_cdk.aws_appsync.PartitionKey
TypeScript (source)aws-cdk-lib » aws_appsync » PartitionKey

Extends PrimaryKey

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

NameDescription
renderTemplate()Renders the key assignment to a VTL string.
sort(key)Allows assigning a value to the sort key.

renderTemplate()

public renderTemplate(): string

Returns

  • string

Renders the key assignment to a VTL string.


sort(key)

public sort(key: string): SortKeyStep

Parameters

  • key string

Returns

  • SortKeyStep

Allows assigning a value to the sort key.