-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SFN: Flatten source tree to reduce change of hitting the MAX_PATH in …
…Windows (#7550)
- Loading branch information
Showing
107 changed files
with
242 additions
and
242 deletions.
There are no files selected for viewing
File renamed without changes.
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
2 changes: 1 addition & 1 deletion
2
...ponent/state/state_choice/choices_decl.py → ...sl/component/state/choice/choices_decl.py
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
..._choice/comparison/comparison_variable.py → .../choice/comparison/comparison_variable.py
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
File renamed without changes.
20 changes: 20 additions & 0 deletions
20
moto/stepfunctions/parser/asl/component/state/choice/comparison/operator/factory.py
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,20 @@ | ||
from moto.stepfunctions.parser.asl.component.state.choice.comparison.comparison_operator_type import ( | ||
ComparisonOperatorType, | ||
) | ||
from moto.stepfunctions.parser.asl.component.state.choice.comparison.operator.implementations.boolean_equals import * # noqa | ||
from moto.stepfunctions.parser.asl.component.state.choice.comparison.operator.implementations.is_operator import * # noqa | ||
from moto.stepfunctions.parser.asl.component.state.choice.comparison.operator.implementations.numeric import * # noqa | ||
from moto.stepfunctions.parser.asl.component.state.choice.comparison.operator.implementations.string_operators import * # noqa | ||
from moto.stepfunctions.parser.asl.component.state.choice.comparison.operator.implementations.timestamp_operators import * # noqa | ||
from moto.stepfunctions.parser.asl.component.state.choice.comparison.operator.operator import ( | ||
Operator, | ||
) | ||
|
||
|
||
class OperatorFactory: | ||
@staticmethod | ||
def get(typ: ComparisonOperatorType) -> Operator: | ||
op = Operator.get((str(typ))) | ||
if op is None: | ||
raise NotImplementedError(f"{typ} is not supported.") | ||
return op |
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...perator/implementations/boolean_equals.py → ...perator/implementations/boolean_equals.py
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
4 changes: 2 additions & 2 deletions
4
...rison/operator/implementations/numeric.py → ...rison/operator/implementations/numeric.py
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
4 changes: 2 additions & 2 deletions
4
...rator/implementations/string_operators.py → ...rator/implementations/string_operators.py
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
6 changes: 3 additions & 3 deletions
6
...or/implementations/timestamp_operators.py → ...or/implementations/timestamp_operators.py
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tem_reader/resource_eval/resource_eval.py → ...ate_map/item_reader/eval/resource_eval.py
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
6 changes: 3 additions & 3 deletions
6
...er/resource_eval/resource_eval_factory.py → ...item_reader/eval/resource_eval_factory.py
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
File renamed without changes.
File renamed without changes.
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
22 changes: 22 additions & 0 deletions
22
.../state/exec/state_map/item_reader/eval/resource_output_transformer/transformer_factory.py
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,22 @@ | ||
from moto.stepfunctions.parser.asl.component.state.exec.state_map.item_reader.eval.resource_output_transformer.transformer import ( | ||
ResourceOutputTransformer, | ||
) | ||
from moto.stepfunctions.parser.asl.component.state.exec.state_map.item_reader.eval.resource_output_transformer.transformer_csv import ( | ||
ResourceOutputTransformerCSV, | ||
) | ||
from moto.stepfunctions.parser.asl.component.state.exec.state_map.item_reader.eval.resource_output_transformer.transformer_json import ( | ||
ResourceOutputTransformerJson, | ||
) | ||
from moto.stepfunctions.parser.asl.component.state.exec.state_map.item_reader.reader_config.input_type import ( | ||
InputType, | ||
InputTypeValue, | ||
) | ||
|
||
|
||
def resource_output_transformer_for(input_type: InputType) -> ResourceOutputTransformer: | ||
if input_type.input_type_value == InputTypeValue.CSV: | ||
return ResourceOutputTransformerCSV() | ||
elif input_type.input_type_value == InputTypeValue.JSON: | ||
return ResourceOutputTransformerJson() | ||
else: | ||
raise ValueError(f"Unknown InputType value: '{input_type.input_type_value}'.") |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
...eader/reader_config/reader_config_decl.py → ...eader/reader_config/reader_config_decl.py
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.