# ProvideItems

The array that the Map state will iterate over.

- Source: [`aws-stepfunctions/lib/states/map-base.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-stepfunctions/lib/states/map-base.ts#L63)
- Type last changed: v2.178.0 · 6 Feb 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_stepfunctions as stepfunctions } from 'aws-cdk-lib';

declare const array: any;
const provideItems = stepfunctions.ProvideItems.jsonArray([array]);
```

## Initializer

```ts
new ProvideItems()
```

## Properties

- `items`: any (required) — The array that the Map state will iterate over.

## Methods

- `jsonArray(array: any[]): ProvideItems // chainable` (static) — Use a JSON array as Map state items.

  Example value: `[1, "{% $two %}", 3]`

- `jsonata(jsonataExpression: string): ProvideItems // chainable` (static) — Use a JSONata expression as Map state items.

  Example value: `{% $states.input.items %}`
