aws-doc-sdk-examples icon indicating copy to clipboard operation
aws-doc-sdk-examples copied to clipboard

JavaScript (v3): Deprecate ScenarioOutput

Open cpyle0819 opened this issue 1 year ago • 0 comments

ScenarioOutput is a sub-class of a scenario Step that offers logging capability for a scenario.

In practice ScenarioOutput has proven to be a bit unwieldy. It puts a lot of distance between logs and functionality, and the output steps obfuscate what's actually happening in a list of scenario steps.

ScenarioOutput should be marked as deprecated, and the shared logger should be copied into to the Step sub-classes and provided as an argument to step functions, e.g.

new ScenarioAction('my-action', (state, logger) => {});
new ScenarioInput('my-input', (state, logger) => {});

cpyle0819 avatar Nov 06 '24 19:11 cpyle0819