MockInput - Amazon Step Functions
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

MockInput

A JSON object that contains a mocked result or errorOutput.

Contents

errorOutput

The mocked error output when calling TestState. When specified, the mocked response is returned as a JSON object that contains an error and cause field.

Type: MockErrorOutput object

Required: No

fieldValidationMode

Determines the level of strictness when validating mocked results against their respective API models. Values include:

  • STRICT: All required fields must be present, and all present fields must conform to the API's schema.

  • PRESENT: All present fields must conform to the API's schema.

  • NONE: No validation is performed.

If no value is specified, the default value is STRICT.

Type: String

Valid Values: STRICT | PRESENT | NONE

Required: No

result

A JSON string containing the mocked result of the state invocation.

Type: String

Length Constraints: Maximum length of 262144.

Required: No

See Also

For more information about using this API in one of the language-specific Amazon SDKs, see the following: