MockInput
¶
Used by
-
AsyncSFNClient Operationstest_state -
SFNClient Operationstest_state
Source code in docs_src/capo_sfn/types/mock_input.py
error_output
instance-attribute
¶
error_output: NotRequired[MockErrorOutput]
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.
field_validation_mode
instance-attribute
¶
field_validation_mode: NotRequired[MockResponseValidationMode]
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.
result
instance-attribute
¶
result: NotRequired[SensitiveData]
A JSON string containing the mocked result of the state invocation.