class SortKeyStep
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppSync.SortKeyStep |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#SortKeyStep |
Java | software.amazon.awscdk.services.appsync.SortKeyStep |
Python | aws_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
Name | Description |
---|---|
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
Assign an auto-generated value to the sort key.
is(val)
public is(val: string): PrimaryKey
Parameters
- val
string
Returns
Assign an auto-generated value to the sort key.