Class: Aws::States::Types::MockInput

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-states/lib/aws-sdk-states/types.rb

Overview

A JSON object that contains a mocked result or errorOutput.

Constant Summary collapse

SENSITIVE =
[:result]

Instance Attribute Summary collapse

Instance Attribute Details

#error_outputTypes::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.



3439
3440
3441
3442
3443
3444
3445
# File 'gems/aws-sdk-states/lib/aws-sdk-states/types.rb', line 3439

class MockInput < Struct.new(
  :result,
  :error_output,
  :field_validation_mode)
  SENSITIVE = [:result]
  include Aws::Structure
end

#field_validation_modeString

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.

Returns:

  • (String)


3439
3440
3441
3442
3443
3444
3445
# File 'gems/aws-sdk-states/lib/aws-sdk-states/types.rb', line 3439

class MockInput < Struct.new(
  :result,
  :error_output,
  :field_validation_mode)
  SENSITIVE = [:result]
  include Aws::Structure
end

#resultString

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

Returns:

  • (String)


3439
3440
3441
3442
3443
3444
3445
# File 'gems/aws-sdk-states/lib/aws-sdk-states/types.rb', line 3439

class MockInput < Struct.new(
  :result,
  :error_output,
  :field_validation_mode)
  SENSITIVE = [:result]
  include Aws::Structure
end