Skip to content

Commit

Permalink
docs(aws-events): Swap previously swapped docs for exists and doesNot…
Browse files Browse the repository at this point in the history
…Exist (aws#23566)

aws#23469 Addressing this issue. There seems to have accidentally been a documentation swap for these 2 methods somehow. Went ahead and swapped documentation for the 2 so they accurately described the functionality of the 2 methods. 


----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Construct Runtime Dependencies:

* [ ] This PR adds new construct runtime dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-construct-runtime-dependencies)

### New Features

* [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [ ] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
HBobertz authored Jan 4, 2023
1 parent 22d3341 commit 0f4f985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-events/lib/event-pattern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ export class Match implements IResolvable {
}

/**
* Matches when the field is absent from the JSON of the event
* Matches when the field is present in the JSON of the event
*/
public static exists(): string[] {
return this.fromObjects([{ exists: true }]);
}

/**
* Matches when the field is present in the JSON of the event
* Matches when the field is absent from the JSON of the event
*/
public static doesNotExist(): string[] {
return this.fromObjects([{ exists: false }]);
Expand Down

0 comments on commit 0f4f985

Please sign in to comment.