# MatchCapture

Information about a value captured during match.

- Source: [`assertions/lib/matcher.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/assertions/lib/matcher.ts#L63)
- Type last changed: v2.1.0 · 8 Dec 2021

## Example

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

declare const capture: assertions.Capture;
declare const value: any;
const matchCapture: assertions.MatchCapture = {
  capture: capture,
  value: value,
};
```

## Properties

- `capture`: [Capture](/cdk/api/v2/docs/aws-cdk-lib.assertions.Capture.html) (required) — The instance of Capture class to which this capture is associated with.

- `value`: any (required) — The value that was captured.
