forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sfn): Task
parameters
property does nothing (aws#5408)
Make `Task`'s `parameters` property be respected, while at the same time making it very clear that it actually shouldn't be used at all via documentation. It got added in a previous commit but wasn't actually respected. We have the option between deprecating it (since it never really worked), or making it work but disrecommending it. Could still serve as a useful location to add overrides in cases where people want to use Tokens in place of enum-typed parameters, which today is not possible. Fixes aws#5267.
- Loading branch information
Showing
4 changed files
with
73 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export function noEmptyObject<A>(o: Record<string, A>): Record<string, A> | undefined { | ||
if (Object.keys(o).length === 0) { return undefined; } | ||
return o; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters