aws-cdk-lib.assertions.MatchCapture

interface MatchCapture

LanguageType name
.NETAmazon.CDK.Assertions.MatchCapture
Gogithub.com/aws/aws-cdk-go/awscdk/v2/assertions#MatchCapture
Javasoftware.amazon.awscdk.assertions.MatchCapture
Pythonaws_cdk.assertions.MatchCapture
TypeScript (source)aws-cdk-lib » assertions » MatchCapture

Information about a value captured during match.

Example

// 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

NameTypeDescription
captureCaptureThe instance of Capture class to which this capture is associated with.
valueanyThe value that was captured.

capture

Type: Capture

The instance of Capture class to which this capture is associated with.


value

Type: any

The value that was captured.