class PartitionKeyStep
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppSync.PartitionKeyStep |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsappsync#PartitionKeyStep |
![]() | software.amazon.awscdk.services.appsync.PartitionKeyStep |
![]() | aws_cdk.aws_appsync.PartitionKeyStep |
![]() | aws-cdk-lib » aws_appsync » PartitionKeyStep |
Utility class to allow assigning a value or an auto-generated id to a partition 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';
const partitionKeyStep = new appsync.PartitionKeyStep('key');
Initializer
new PartitionKeyStep(key: string)
Parameters
- key
string
Methods
Name | Description |
---|---|
auto() | Assign an auto-generated value to the partition key. |
is(val) | Assign an auto-generated value to the partition key. |
auto()
public auto(): PartitionKey
Returns
Assign an auto-generated value to the partition key.
is(val)
public is(val: string): PartitionKey
Parameters
- val
string
Returns
Assign an auto-generated value to the partition key.