Refactor StackSelector for public interface #32706
Labels
effort/medium
Medium work item – several days of effort
feature-request
A feature should be added or improved.
p2
Within the new programmatic toolkit,
StackSelector
will become part of the public interface. However the current API and implementation is not ideal.Goal
StackSelector
and all related options should adhere to the interface as defined here:aws-cdk/packages/@aws-cdk/toolkit/lib/types.ts
Lines 62 to 78 in 3b162fc
Steps
CloudAssembly
, mergeStackSelector
withSelectStacksOptions
so thatselectStacks()
only takes aStackSelector
.CdkToolkit
, change allselectStacksFor*
helper methods to take a single stack selector only with now other options. In other words, unify the syntax to always take aCloudAssembly
andStackSelector
. Merge other options into the stack selector.CdkToolkit
for actionssynth
,diff
,deploy
,watch
&destroy
- merge theexclusively
flag intoStackSelector
because that is the only place it is used.exclusively
should map directly toExtendedStackSelection.None
autoValidate
???ignoreNoStacks
should map to aStackSelectionStrategy.None
The text was updated successfully, but these errors were encountered: