Commit 60506e5
authored
fix(toolkit-lib): drift detection options are unnecessarily required (#552)
## Description
This PR improves the drift detection implementation in the CDK
toolkit-lib by making the 'stacks' parameter optional in the
DriftOptions interface and providing default options in the
toolkit.drift() method. These changes enhance the API's usability and
consistency.
### Changes:
1. Made 'stacks' parameter optional in DriftOptions interface
2. Added default empty options object to toolkit.drift() method
3. Added a test case to verify that drift action can be invoked without
options
These changes make the drift detection API more flexible and consistent
with other toolkit methods that typically provide default options.
---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license1 parent 4d467ca commit 60506e5
File tree
3 files changed
+20
-3
lines changed- packages/@aws-cdk/toolkit-lib
- lib
- actions/drift
- toolkit
- test/actions
3 files changed
+20
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | | - | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
76 | 91 | | |
0 commit comments