> **Experimental**
>
> `@aws-cdk/integ-tests-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# Match

Partial and special matching during assertions.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/assertions/match.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0-alpha.0/packages/@aws-cdk/integ-tests-alpha/lib/assertions/match.ts#L5)

## Initializer

```ts
new Match()
```

## Methods

- `arrayWith(pattern: any[]): { [key: string]: any[] }` (static) — Matches the specified pattern with the array found in the same relative path of the target.

  The set of elements (or matchers) must be in the same order as would be found.

  **Parameters**

  - `pattern` — the pattern to match.

- `objectLike(pattern: { [key: string]: any }): { [key: string]: { [key: string]: any } }` (static) — Matches the specified pattern to an object found in the same relative path of the target.

  The keys and their values (or matchers) must be present in the target but the target can be a superset.

  **Parameters**

  - `pattern` — the pattern to match.

- `serializedJson(pattern: { [key: string]: any }): { [key: string]: { [key: string]: any } }` (static) — Matches any string-encoded JSON and applies the specified pattern after parsing it.

  **Parameters**

  - `pattern` — the pattern to match after parsing the encoded JSON.

- `stringLikeRegexp(pattern: string): { [key: string]: string }` (static) — Matches targets according to a regular expression.
