interface MatchFailure
Language | Type name |
---|---|
.NET | Amazon.CDK.Assertions.MatchFailure |
Java | software.amazon.awscdk.assertions.MatchFailure |
Python | aws_cdk.assertions.MatchFailure |
TypeScript (source) | @aws-cdk/assertions » MatchFailure |
Match failure details.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as assertions from '@aws-cdk/assertions';
declare const matcher: assertions.Matcher;
const matchFailure: assertions.MatchFailure = {
matcher: matcher,
message: 'message',
path: ['path'],
};
Properties
Name | Type | Description |
---|---|---|
matcher | Matcher | The matcher that had the failure. |
message | string | Failure message. |
path | string[] | The relative path in the target where the failure occurred. |
matcher
Type:
Matcher
The matcher that had the failure.
message
Type:
string
Failure message.
path
Type:
string[]
The relative path in the target where the failure occurred.
If the failure occurred at root of the match tree, set the path to an empty list.
If it occurs in the 5th index of an array nested within the 'foo' key of an object,
set the path as ['/foo', '[5]']
.