# PartitionKeyStep

Utility class to allow assigning a value or an auto-generated id to a partition key.

- Source: [`aws-appsync/lib/key.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-appsync/lib/key.ts#L107)
- Type last changed: v2.60.0 · 12 Jan 2023

## 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');
```

## Initializer

```ts
new PartitionKeyStep(key: string)
```

## Methods

- `auto(): PartitionKey` — Assign an auto-generated value to the partition key.

- `is(val: string): PartitionKey` — Assign an auto-generated value to the partition key.
