PartitionKeyStep Class
Utility class to allow assigning a value or an auto-generated id to a partition key.
Example
ts
// 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');
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appsync as appsync
partition_key_step = appsync.PartitionKeyStep("key")
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.appsync.*;
PartitionKeyStep partitionKeyStep = new PartitionKeyStep("key");
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppSync;
var partitionKeyStep = new PartitionKeyStep("key");
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
partitionKeyStep := awscdk.Aws_appsync.NewPartitionKeyStep(jsii.String("key"))
Initializer
ts
new PartitionKeyStep(key: string)
python
PartitionKeyStep(key: str)
java
new PartitionKeyStep(String key)
csharp
new PartitionKeyStep(string key)
go
NewPartitionKeyStep(Key *string)
Methods
auto(): PartitionKeydef auto(self, ) -> PartitionKeypublic PartitionKey auto()public PartitionKey Auto()func Auto() PartitionKey#Assign an auto-generated value to the partition key.
is(val: string): PartitionKeydef is(self, val: str) -> PartitionKeypublic PartitionKey is(String val)public PartitionKey Is(string val)func Is(Val *string) PartitionKey#Assign an auto-generated value to the partition key.