# DynamoProjectionExpression

Class to generate projection expression.

- Source: [`aws-stepfunctions-tasks/lib/dynamodb/shared-types.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-stepfunctions-tasks/lib/dynamodb/shared-types.ts#L75)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';
const dynamoProjectionExpression = new stepfunctions_tasks.DynamoProjectionExpression();
```

## Initializer

```ts
new DynamoProjectionExpression()
```

## Methods

- `atIndex(index: number): DynamoProjectionExpression // chainable` — Adds the array literal access for passed index.

  **Parameters**

  - `index` — array index.

- `toString(): string` — converts and return the string expression.

- `withAttribute(attr: string): DynamoProjectionExpression // chainable` — Adds the passed attribute to the chain.

  **Parameters**

  - `attr` — Attribute name.
