aws-cdk-lib.aws_appsync.SortKeyStep

class SortKeyStep

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

Utility class to allow assigning a value or an auto-generated id to a 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 sortKeyStep = new appsync.SortKeyStep(assign, 'skey');

Initializer

new SortKeyStep(pkey: Assign, skey: string)

Parameters

  • pkey Assign
  • skey string

Methods

NameDescription
auto()Assign an auto-generated value to the sort key.
is(val)Assign an auto-generated value to the sort key.

auto()

public auto(): PrimaryKey

Returns

  • PrimaryKey

Assign an auto-generated value to the sort key.


is(val)

public is(val: string): PrimaryKey

Parameters

  • val string

Returns

  • PrimaryKey

Assign an auto-generated value to the sort key.