aws-sdk-states 1.99.0 → 1.100.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61a333c5e3c473390de92a7f96c2d97e0aa9467be44c45877e6d58a3d8748613
4
- data.tar.gz: e1e3638ff683a09fb4515c3d15cdc8a73692257a3af5478e689ffb871f4d79c1
3
+ metadata.gz: d277ca375e92c2e4f39802aa904a12a50524ce18607367d87ef6b2a4daddfbd8
4
+ data.tar.gz: be2d380ca1d0ecee2838db2888a3eca262d1d237a40ac9fce440916d7c227d99
5
5
  SHA512:
6
- metadata.gz: df7f0917169931b5ce079125569ea2fef9cf0cdc89f4145c5a400ebc550cf28419323ab8d57d67babca4a57aacb29157fc248e48808d5de6601117d803077868
7
- data.tar.gz: 43d626f250f7b3ecbbf5cec4f6a482cce986e725d6b649b760ffe3bc57b8eb6956efbe62210515b4fe115ecbc96c39195095bc0ecf998c39aa8794811fc007fd
6
+ metadata.gz: f9737d3bdfa389d836ec1aad7d058f322b05a7ea534bd8c863eaf82fbbede6a37b0548cfc68bf1bcf388f6280b127cb6f41344ba2c0a254ed8b568e927470709
7
+ data.tar.gz: e6bb08e62585dead32d4d5580daa2f5ce125b0db6836056102f153bc50dea65d0725eef9534daf6e42f06a63957a560838834e3bb0b451df55cf6fd7b0f45dab
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.100.0 (2025-11-19)
5
+ ------------------
6
+
7
+ * Feature - Adds support to TestState for mocked results and exceptions, along with additional inspection data.
8
+
4
9
  1.99.0 (2025-10-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.99.0
1
+ 1.100.0
@@ -2991,9 +2991,9 @@ module Aws::States
2991
2991
  # of a state exceeds this duration, it fails with the `States.Timeout`
2992
2992
  # error.
2993
2993
  #
2994
- # `TestState` doesn't support [Activity tasks][5], `.sync` or
2995
- # `.waitForTaskToken` [service integration patterns][12],
2996
- # [Parallel][13], or [Map][14] states.
2994
+ # `TestState` only supports the following when a mock is specified:
2995
+ # [Activity tasks][5], `.sync` or `.waitForTaskToken` [service
2996
+ # integration patterns][12], [Parallel][13], or [Map][14] states.
2997
2997
  #
2998
2998
  #
2999
2999
  #
@@ -3013,7 +3013,8 @@ module Aws::States
3013
3013
  # [14]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-map-state.html
3014
3014
  #
3015
3015
  # @option params [required, String] :definition
3016
- # The [Amazon States Language][1] (ASL) definition of the state.
3016
+ # The [Amazon States Language][1] (ASL) definition of the state or state
3017
+ # machine.
3017
3018
  #
3018
3019
  #
3019
3020
  #
@@ -3067,6 +3068,25 @@ module Aws::States
3067
3068
  # JSON object literal that sets variables used in the state under test.
3068
3069
  # Object keys are the variable names and values are the variable values.
3069
3070
  #
3071
+ # @option params [String] :state_name
3072
+ # Denotes the particular state within a state machine definition to be
3073
+ # tested. If this field is specified, the `definition` must contain a
3074
+ # fully-formed state machine definition.
3075
+ #
3076
+ # @option params [Types::MockInput] :mock
3077
+ # Defines a mocked result or error for the state under test.
3078
+ #
3079
+ # A mock can only be specified for Task, Map, or Parallel states. If it
3080
+ # is specified for another state type, an exception will be thrown.
3081
+ #
3082
+ # @option params [String] :context
3083
+ # A JSON string representing a valid Context object for the state under
3084
+ # test. This field may only be specified if a mock is specified in the
3085
+ # same request.
3086
+ #
3087
+ # @option params [Types::TestStateConfiguration] :state_configuration
3088
+ # Contains configurations for the state under test.
3089
+ #
3070
3090
  # @return [Types::TestStateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3071
3091
  #
3072
3092
  # * {Types::TestStateOutput#output #output} => String
@@ -3085,6 +3105,22 @@ module Aws::States
3085
3105
  # inspection_level: "INFO", # accepts INFO, DEBUG, TRACE
3086
3106
  # reveal_secrets: false,
3087
3107
  # variables: "SensitiveData",
3108
+ # state_name: "TestStateStateName",
3109
+ # mock: {
3110
+ # result: "SensitiveData",
3111
+ # error_output: {
3112
+ # error: "SensitiveError",
3113
+ # cause: "SensitiveCause",
3114
+ # },
3115
+ # field_validation_mode: "STRICT", # accepts STRICT, PRESENT, NONE
3116
+ # },
3117
+ # context: "SensitiveData",
3118
+ # state_configuration: {
3119
+ # retrier_retry_count: 1,
3120
+ # error_caused_by_state: "TestStateStateName",
3121
+ # map_iteration_failure_count: 1,
3122
+ # map_item_reader_data: "SensitiveData",
3123
+ # },
3088
3124
  # })
3089
3125
  #
3090
3126
  # @example Response structure
@@ -3110,6 +3146,16 @@ module Aws::States
3110
3146
  # resp.inspection_data.response.headers #=> String
3111
3147
  # resp.inspection_data.response.body #=> String
3112
3148
  # resp.inspection_data.variables #=> String
3149
+ # resp.inspection_data.error_details.catch_index #=> Integer
3150
+ # resp.inspection_data.error_details.retry_index #=> Integer
3151
+ # resp.inspection_data.error_details.retry_backoff_interval_seconds #=> Integer
3152
+ # resp.inspection_data.after_items_path #=> String
3153
+ # resp.inspection_data.after_item_selector #=> String
3154
+ # resp.inspection_data.after_item_batcher #=> String
3155
+ # resp.inspection_data.after_items_pointer #=> String
3156
+ # resp.inspection_data.tolerated_failure_count #=> Integer
3157
+ # resp.inspection_data.tolerated_failure_percentage #=> Float
3158
+ # resp.inspection_data.max_concurrency #=> Integer
3113
3159
  # resp.next_state #=> String
3114
3160
  # resp.status #=> String, one of "SUCCEEDED", "FAILED", "RETRIABLE", "CAUGHT_ERROR"
3115
3161
  #
@@ -3532,7 +3578,7 @@ module Aws::States
3532
3578
  tracer: tracer
3533
3579
  )
3534
3580
  context[:gem_name] = 'aws-sdk-states'
3535
- context[:gem_version] = '1.99.0'
3581
+ context[:gem_version] = '1.100.0'
3536
3582
  Seahorse::Client::Request.new(handlers, context)
3537
3583
  end
3538
3584
 
@@ -73,6 +73,7 @@ module Aws::States
73
73
  EvaluationFailedEventDetails = Shapes::StructureShape.new(name: 'EvaluationFailedEventDetails')
74
74
  EvaluationFailureLocation = Shapes::StringShape.new(name: 'EvaluationFailureLocation')
75
75
  EventId = Shapes::IntegerShape.new(name: 'EventId')
76
+ ExceptionHandlerIndex = Shapes::IntegerShape.new(name: 'ExceptionHandlerIndex')
76
77
  ExecutionAbortedEventDetails = Shapes::StructureShape.new(name: 'ExecutionAbortedEventDetails')
77
78
  ExecutionAlreadyExists = Shapes::StructureShape.new(name: 'ExecutionAlreadyExists')
78
79
  ExecutionDoesNotExist = Shapes::StructureShape.new(name: 'ExecutionDoesNotExist')
@@ -109,7 +110,11 @@ module Aws::States
109
110
  InspectionData = Shapes::StructureShape.new(name: 'InspectionData')
110
111
  InspectionDataRequest = Shapes::StructureShape.new(name: 'InspectionDataRequest')
111
112
  InspectionDataResponse = Shapes::StructureShape.new(name: 'InspectionDataResponse')
113
+ InspectionErrorDetails = Shapes::StructureShape.new(name: 'InspectionErrorDetails')
112
114
  InspectionLevel = Shapes::StringShape.new(name: 'InspectionLevel')
115
+ InspectionMaxConcurrency = Shapes::IntegerShape.new(name: 'InspectionMaxConcurrency')
116
+ InspectionToleratedFailureCount = Shapes::IntegerShape.new(name: 'InspectionToleratedFailureCount')
117
+ InspectionToleratedFailurePercentage = Shapes::FloatShape.new(name: 'InspectionToleratedFailurePercentage')
113
118
  InvalidArn = Shapes::StructureShape.new(name: 'InvalidArn')
114
119
  InvalidDefinition = Shapes::StructureShape.new(name: 'InvalidDefinition')
115
120
  InvalidEncryptionConfiguration = Shapes::StructureShape.new(name: 'InvalidEncryptionConfiguration')
@@ -153,6 +158,7 @@ module Aws::States
153
158
  LongArn = Shapes::StringShape.new(name: 'LongArn')
154
159
  LongObject = Shapes::IntegerShape.new(name: 'LongObject')
155
160
  MapIterationEventDetails = Shapes::StructureShape.new(name: 'MapIterationEventDetails')
161
+ MapIterationFailureCount = Shapes::IntegerShape.new(name: 'MapIterationFailureCount')
156
162
  MapRunExecutionCounts = Shapes::StructureShape.new(name: 'MapRunExecutionCounts')
157
163
  MapRunFailedEventDetails = Shapes::StructureShape.new(name: 'MapRunFailedEventDetails')
158
164
  MapRunItemCounts = Shapes::StructureShape.new(name: 'MapRunItemCounts')
@@ -165,6 +171,9 @@ module Aws::States
165
171
  MapStateStartedEventDetails = Shapes::StructureShape.new(name: 'MapStateStartedEventDetails')
166
172
  MaxConcurrency = Shapes::IntegerShape.new(name: 'MaxConcurrency')
167
173
  MissingRequiredParameter = Shapes::StructureShape.new(name: 'MissingRequiredParameter')
174
+ MockErrorOutput = Shapes::StructureShape.new(name: 'MockErrorOutput')
175
+ MockInput = Shapes::StructureShape.new(name: 'MockInput')
176
+ MockResponseValidationMode = Shapes::StringShape.new(name: 'MockResponseValidationMode')
168
177
  Name = Shapes::StringShape.new(name: 'Name')
169
178
  PageSize = Shapes::IntegerShape.new(name: 'PageSize')
170
179
  PageToken = Shapes::StringShape.new(name: 'PageToken')
@@ -175,6 +184,8 @@ module Aws::States
175
184
  RedriveExecutionInput = Shapes::StructureShape.new(name: 'RedriveExecutionInput')
176
185
  RedriveExecutionOutput = Shapes::StructureShape.new(name: 'RedriveExecutionOutput')
177
186
  ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
187
+ RetrierRetryCount = Shapes::IntegerShape.new(name: 'RetrierRetryCount')
188
+ RetryBackoffIntervalSeconds = Shapes::IntegerShape.new(name: 'RetryBackoffIntervalSeconds')
178
189
  RevealSecrets = Shapes::BooleanShape.new(name: 'RevealSecrets')
179
190
  ReverseOrder = Shapes::BooleanShape.new(name: 'ReverseOrder')
180
191
  RevisionId = Shapes::StringShape.new(name: 'RevisionId')
@@ -234,8 +245,10 @@ module Aws::States
234
245
  TaskTimedOutEventDetails = Shapes::StructureShape.new(name: 'TaskTimedOutEventDetails')
235
246
  TaskToken = Shapes::StringShape.new(name: 'TaskToken')
236
247
  TestExecutionStatus = Shapes::StringShape.new(name: 'TestExecutionStatus')
248
+ TestStateConfiguration = Shapes::StructureShape.new(name: 'TestStateConfiguration')
237
249
  TestStateInput = Shapes::StructureShape.new(name: 'TestStateInput')
238
250
  TestStateOutput = Shapes::StructureShape.new(name: 'TestStateOutput')
251
+ TestStateStateName = Shapes::StringShape.new(name: 'TestStateStateName')
239
252
  TimeoutInSeconds = Shapes::IntegerShape.new(name: 'TimeoutInSeconds')
240
253
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
241
254
  ToleratedFailureCount = Shapes::IntegerShape.new(name: 'ToleratedFailureCount')
@@ -638,6 +651,14 @@ module Aws::States
638
651
  InspectionData.add_member(:request, Shapes::ShapeRef.new(shape: InspectionDataRequest, location_name: "request"))
639
652
  InspectionData.add_member(:response, Shapes::ShapeRef.new(shape: InspectionDataResponse, location_name: "response"))
640
653
  InspectionData.add_member(:variables, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "variables"))
654
+ InspectionData.add_member(:error_details, Shapes::ShapeRef.new(shape: InspectionErrorDetails, location_name: "errorDetails"))
655
+ InspectionData.add_member(:after_items_path, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "afterItemsPath"))
656
+ InspectionData.add_member(:after_item_selector, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "afterItemSelector"))
657
+ InspectionData.add_member(:after_item_batcher, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "afterItemBatcher"))
658
+ InspectionData.add_member(:after_items_pointer, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "afterItemsPointer"))
659
+ InspectionData.add_member(:tolerated_failure_count, Shapes::ShapeRef.new(shape: InspectionToleratedFailureCount, location_name: "toleratedFailureCount", metadata: {"box" => true}))
660
+ InspectionData.add_member(:tolerated_failure_percentage, Shapes::ShapeRef.new(shape: InspectionToleratedFailurePercentage, location_name: "toleratedFailurePercentage", metadata: {"box" => true}))
661
+ InspectionData.add_member(:max_concurrency, Shapes::ShapeRef.new(shape: InspectionMaxConcurrency, location_name: "maxConcurrency", metadata: {"box" => true}))
641
662
  InspectionData.struct_class = Types::InspectionData
642
663
 
643
664
  InspectionDataRequest.add_member(:protocol, Shapes::ShapeRef.new(shape: HTTPProtocol, location_name: "protocol"))
@@ -654,6 +675,11 @@ module Aws::States
654
675
  InspectionDataResponse.add_member(:body, Shapes::ShapeRef.new(shape: HTTPBody, location_name: "body"))
655
676
  InspectionDataResponse.struct_class = Types::InspectionDataResponse
656
677
 
678
+ InspectionErrorDetails.add_member(:catch_index, Shapes::ShapeRef.new(shape: ExceptionHandlerIndex, location_name: "catchIndex", metadata: {"box" => true}))
679
+ InspectionErrorDetails.add_member(:retry_index, Shapes::ShapeRef.new(shape: ExceptionHandlerIndex, location_name: "retryIndex", metadata: {"box" => true}))
680
+ InspectionErrorDetails.add_member(:retry_backoff_interval_seconds, Shapes::ShapeRef.new(shape: RetryBackoffIntervalSeconds, location_name: "retryBackoffIntervalSeconds", metadata: {"box" => true}))
681
+ InspectionErrorDetails.struct_class = Types::InspectionErrorDetails
682
+
657
683
  InvalidArn.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
658
684
  InvalidArn.struct_class = Types::InvalidArn
659
685
 
@@ -843,6 +869,15 @@ module Aws::States
843
869
  MissingRequiredParameter.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
844
870
  MissingRequiredParameter.struct_class = Types::MissingRequiredParameter
845
871
 
872
+ MockErrorOutput.add_member(:error, Shapes::ShapeRef.new(shape: SensitiveError, location_name: "error"))
873
+ MockErrorOutput.add_member(:cause, Shapes::ShapeRef.new(shape: SensitiveCause, location_name: "cause"))
874
+ MockErrorOutput.struct_class = Types::MockErrorOutput
875
+
876
+ MockInput.add_member(:result, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "result"))
877
+ MockInput.add_member(:error_output, Shapes::ShapeRef.new(shape: MockErrorOutput, location_name: "errorOutput"))
878
+ MockInput.add_member(:field_validation_mode, Shapes::ShapeRef.new(shape: MockResponseValidationMode, location_name: "fieldValidationMode"))
879
+ MockInput.struct_class = Types::MockInput
880
+
846
881
  PublishStateMachineVersionInput.add_member(:state_machine_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "stateMachineArn"))
847
882
  PublishStateMachineVersionInput.add_member(:revision_id, Shapes::ShapeRef.new(shape: RevisionId, location_name: "revisionId"))
848
883
  PublishStateMachineVersionInput.add_member(:description, Shapes::ShapeRef.new(shape: VersionDescription, location_name: "description"))
@@ -1050,12 +1085,22 @@ module Aws::States
1050
1085
  TaskTimedOutEventDetails.add_member(:cause, Shapes::ShapeRef.new(shape: SensitiveCause, location_name: "cause"))
1051
1086
  TaskTimedOutEventDetails.struct_class = Types::TaskTimedOutEventDetails
1052
1087
 
1088
+ TestStateConfiguration.add_member(:retrier_retry_count, Shapes::ShapeRef.new(shape: RetrierRetryCount, location_name: "retrierRetryCount", metadata: {"box" => true}))
1089
+ TestStateConfiguration.add_member(:error_caused_by_state, Shapes::ShapeRef.new(shape: TestStateStateName, location_name: "errorCausedByState"))
1090
+ TestStateConfiguration.add_member(:map_iteration_failure_count, Shapes::ShapeRef.new(shape: MapIterationFailureCount, location_name: "mapIterationFailureCount", metadata: {"box" => true}))
1091
+ TestStateConfiguration.add_member(:map_item_reader_data, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "mapItemReaderData"))
1092
+ TestStateConfiguration.struct_class = Types::TestStateConfiguration
1093
+
1053
1094
  TestStateInput.add_member(:definition, Shapes::ShapeRef.new(shape: Definition, required: true, location_name: "definition"))
1054
1095
  TestStateInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "roleArn"))
1055
1096
  TestStateInput.add_member(:input, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "input"))
1056
1097
  TestStateInput.add_member(:inspection_level, Shapes::ShapeRef.new(shape: InspectionLevel, location_name: "inspectionLevel"))
1057
1098
  TestStateInput.add_member(:reveal_secrets, Shapes::ShapeRef.new(shape: RevealSecrets, location_name: "revealSecrets"))
1058
1099
  TestStateInput.add_member(:variables, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "variables"))
1100
+ TestStateInput.add_member(:state_name, Shapes::ShapeRef.new(shape: TestStateStateName, location_name: "stateName"))
1101
+ TestStateInput.add_member(:mock, Shapes::ShapeRef.new(shape: MockInput, location_name: "mock"))
1102
+ TestStateInput.add_member(:context, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "context"))
1103
+ TestStateInput.add_member(:state_configuration, Shapes::ShapeRef.new(shape: TestStateConfiguration, location_name: "stateConfiguration"))
1059
1104
  TestStateInput.struct_class = Types::TestStateInput
1060
1105
 
1061
1106
  TestStateOutput.add_member(:output, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "output"))
@@ -1843,7 +1843,9 @@ module Aws::States
1843
1843
  # Contains details about the events of an execution.
1844
1844
  #
1845
1845
  # @!attribute [rw] timestamp
1846
- # The date and time the event occurred.
1846
+ # The date and time the event occurred, expressed in seconds and
1847
+ # fractional milliseconds since the Unix epoch, which is defined as
1848
+ # January 1, 1970, at 00:00:00 Coordinated Universal Time (UTC).
1847
1849
  # @return [Time]
1848
1850
  #
1849
1851
  # @!attribute [rw] type
@@ -2159,6 +2161,45 @@ module Aws::States
2159
2161
  # the state and variables set up as test state input.
2160
2162
  # @return [String]
2161
2163
  #
2164
+ # @!attribute [rw] error_details
2165
+ # An object containing data about a handled exception in the tested
2166
+ # state.
2167
+ # @return [Types::InspectionErrorDetails]
2168
+ #
2169
+ # @!attribute [rw] after_items_path
2170
+ # The effective input after the ItemsPath filter is applied. Not
2171
+ # populated when the QueryLanguage is JSONata.
2172
+ # @return [String]
2173
+ #
2174
+ # @!attribute [rw] after_item_selector
2175
+ # An array containing the inputs for each Map iteration, transformed
2176
+ # by the ItemSelector specified in a Map state.
2177
+ # @return [String]
2178
+ #
2179
+ # @!attribute [rw] after_item_batcher
2180
+ # The effective input after the ItemBatcher filter is applied in a Map
2181
+ # state.
2182
+ # @return [String]
2183
+ #
2184
+ # @!attribute [rw] after_items_pointer
2185
+ # The effective input after the ItemsPointer filter is applied in a
2186
+ # Map state.
2187
+ # @return [String]
2188
+ #
2189
+ # @!attribute [rw] tolerated_failure_count
2190
+ # The tolerated failure threshold for a Map state as defined in number
2191
+ # of Map state iterations.
2192
+ # @return [Integer]
2193
+ #
2194
+ # @!attribute [rw] tolerated_failure_percentage
2195
+ # The tolerated failure threshold for a Map state as defined in
2196
+ # percentage of Map state iterations.
2197
+ # @return [Float]
2198
+ #
2199
+ # @!attribute [rw] max_concurrency
2200
+ # The max concurrency of the Map state.
2201
+ # @return [Integer]
2202
+ #
2162
2203
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/InspectionData AWS API Documentation
2163
2204
  #
2164
2205
  class InspectionData < Struct.new(
@@ -2171,8 +2212,16 @@ module Aws::States
2171
2212
  :after_result_path,
2172
2213
  :request,
2173
2214
  :response,
2174
- :variables)
2175
- SENSITIVE = [:input, :after_arguments, :after_input_path, :after_parameters, :result, :after_result_selector, :after_result_path, :variables]
2215
+ :variables,
2216
+ :error_details,
2217
+ :after_items_path,
2218
+ :after_item_selector,
2219
+ :after_item_batcher,
2220
+ :after_items_pointer,
2221
+ :tolerated_failure_count,
2222
+ :tolerated_failure_percentage,
2223
+ :max_concurrency)
2224
+ SENSITIVE = [:input, :after_arguments, :after_input_path, :after_parameters, :result, :after_result_selector, :after_result_path, :variables, :after_items_path, :after_item_selector, :after_item_batcher, :after_items_pointer, :tolerated_failure_count, :tolerated_failure_percentage, :max_concurrency]
2176
2225
  include Aws::Structure
2177
2226
  end
2178
2227
 
@@ -2249,6 +2298,32 @@ module Aws::States
2249
2298
  include Aws::Structure
2250
2299
  end
2251
2300
 
2301
+ # An object containing data about a handled exception in the tested
2302
+ # state.
2303
+ #
2304
+ # @!attribute [rw] catch_index
2305
+ # The array index of the Catch which handled the exception.
2306
+ # @return [Integer]
2307
+ #
2308
+ # @!attribute [rw] retry_index
2309
+ # The array index of the Retry which handled the exception.
2310
+ # @return [Integer]
2311
+ #
2312
+ # @!attribute [rw] retry_backoff_interval_seconds
2313
+ # The duration in seconds of the backoff for a retry on a failed state
2314
+ # invocation.
2315
+ # @return [Integer]
2316
+ #
2317
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/InspectionErrorDetails AWS API Documentation
2318
+ #
2319
+ class InspectionErrorDetails < Struct.new(
2320
+ :catch_index,
2321
+ :retry_index,
2322
+ :retry_backoff_interval_seconds)
2323
+ SENSITIVE = [:catch_index, :retry_index, :retry_backoff_interval_seconds]
2324
+ include Aws::Structure
2325
+ end
2326
+
2252
2327
  # The provided Amazon Resource Name (ARN) is not valid.
2253
2328
  #
2254
2329
  # @!attribute [rw] message
@@ -3311,6 +3386,64 @@ module Aws::States
3311
3386
  include Aws::Structure
3312
3387
  end
3313
3388
 
3389
+ # A JSON object that contains a mocked error.
3390
+ #
3391
+ # @!attribute [rw] error
3392
+ # A string denoting the error code of the exception thrown when
3393
+ # invoking the tested state. This field is required if
3394
+ # `mock.errorOutput` is specified.
3395
+ # @return [String]
3396
+ #
3397
+ # @!attribute [rw] cause
3398
+ # A string containing the cause of the exception thrown when executing
3399
+ # the state's logic.
3400
+ # @return [String]
3401
+ #
3402
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/MockErrorOutput AWS API Documentation
3403
+ #
3404
+ class MockErrorOutput < Struct.new(
3405
+ :error,
3406
+ :cause)
3407
+ SENSITIVE = [:error, :cause]
3408
+ include Aws::Structure
3409
+ end
3410
+
3411
+ # A JSON object that contains a mocked `result` or `errorOutput`.
3412
+ #
3413
+ # @!attribute [rw] result
3414
+ # A JSON string containing the mocked result of the state invocation.
3415
+ # @return [String]
3416
+ #
3417
+ # @!attribute [rw] error_output
3418
+ # The mocked error output when calling TestState. When specified, the
3419
+ # mocked response is returned as a JSON object that contains an
3420
+ # `error` and `cause` field.
3421
+ # @return [Types::MockErrorOutput]
3422
+ #
3423
+ # @!attribute [rw] field_validation_mode
3424
+ # Determines the level of strictness when validating mocked results
3425
+ # against their respective API models. Values include:
3426
+ #
3427
+ # * `STRICT`: All required fields must be present, and all present
3428
+ # fields must conform to the API's schema.
3429
+ #
3430
+ # * `PRESENT`: All present fields must conform to the API's schema.
3431
+ #
3432
+ # * `NONE`: No validation is performed.
3433
+ #
3434
+ # If no value is specified, the default value is `STRICT`.
3435
+ # @return [String]
3436
+ #
3437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/MockInput AWS API Documentation
3438
+ #
3439
+ class MockInput < Struct.new(
3440
+ :result,
3441
+ :error_output,
3442
+ :field_validation_mode)
3443
+ SENSITIVE = [:result]
3444
+ include Aws::Structure
3445
+ end
3446
+
3314
3447
  # @!attribute [rw] state_machine_arn
3315
3448
  # The Amazon Resource Name (ARN) of the state machine.
3316
3449
  # @return [String]
@@ -4452,8 +4585,42 @@ module Aws::States
4452
4585
  include Aws::Structure
4453
4586
  end
4454
4587
 
4588
+ # Contains configurations for the tested state.
4589
+ #
4590
+ # @!attribute [rw] retrier_retry_count
4591
+ # The number of retry attempts that have occurred for the state's
4592
+ # Retry that applies to the mocked error.
4593
+ # @return [Integer]
4594
+ #
4595
+ # @!attribute [rw] error_caused_by_state
4596
+ # The name of the state from which an error originates when an error
4597
+ # is mocked for a Map or Parallel state.
4598
+ # @return [String]
4599
+ #
4600
+ # @!attribute [rw] map_iteration_failure_count
4601
+ # The number of Map state iterations that failed during the Map state
4602
+ # invocation.
4603
+ # @return [Integer]
4604
+ #
4605
+ # @!attribute [rw] map_item_reader_data
4606
+ # The data read by ItemReader in Distributed Map states as found in
4607
+ # its original source.
4608
+ # @return [String]
4609
+ #
4610
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TestStateConfiguration AWS API Documentation
4611
+ #
4612
+ class TestStateConfiguration < Struct.new(
4613
+ :retrier_retry_count,
4614
+ :error_caused_by_state,
4615
+ :map_iteration_failure_count,
4616
+ :map_item_reader_data)
4617
+ SENSITIVE = [:error_caused_by_state, :map_item_reader_data]
4618
+ include Aws::Structure
4619
+ end
4620
+
4455
4621
  # @!attribute [rw] definition
4456
- # The [Amazon States Language][1] (ASL) definition of the state.
4622
+ # The [Amazon States Language][1] (ASL) definition of the state or
4623
+ # state machine.
4457
4624
  #
4458
4625
  #
4459
4626
  #
@@ -4514,6 +4681,29 @@ module Aws::States
4514
4681
  # values.
4515
4682
  # @return [String]
4516
4683
  #
4684
+ # @!attribute [rw] state_name
4685
+ # Denotes the particular state within a state machine definition to be
4686
+ # tested. If this field is specified, the `definition` must contain a
4687
+ # fully-formed state machine definition.
4688
+ # @return [String]
4689
+ #
4690
+ # @!attribute [rw] mock
4691
+ # Defines a mocked result or error for the state under test.
4692
+ #
4693
+ # A mock can only be specified for Task, Map, or Parallel states. If
4694
+ # it is specified for another state type, an exception will be thrown.
4695
+ # @return [Types::MockInput]
4696
+ #
4697
+ # @!attribute [rw] context
4698
+ # A JSON string representing a valid Context object for the state
4699
+ # under test. This field may only be specified if a mock is specified
4700
+ # in the same request.
4701
+ # @return [String]
4702
+ #
4703
+ # @!attribute [rw] state_configuration
4704
+ # Contains configurations for the state under test.
4705
+ # @return [Types::TestStateConfiguration]
4706
+ #
4517
4707
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TestStateInput AWS API Documentation
4518
4708
  #
4519
4709
  class TestStateInput < Struct.new(
@@ -4522,8 +4712,12 @@ module Aws::States
4522
4712
  :input,
4523
4713
  :inspection_level,
4524
4714
  :reveal_secrets,
4525
- :variables)
4526
- SENSITIVE = [:definition, :input, :variables]
4715
+ :variables,
4716
+ :state_name,
4717
+ :mock,
4718
+ :context,
4719
+ :state_configuration)
4720
+ SENSITIVE = [:definition, :input, :variables, :state_name, :context]
4527
4721
  include Aws::Structure
4528
4722
  end
4529
4723
 
@@ -54,7 +54,7 @@ module Aws::States
54
54
  autoload :EndpointProvider, 'aws-sdk-states/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-states/endpoints'
56
56
 
57
- GEM_VERSION = '1.99.0'
57
+ GEM_VERSION = '1.100.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -573,7 +573,23 @@ module Aws
573
573
  ?input: ::String,
574
574
  ?inspection_level: ("INFO" | "DEBUG" | "TRACE"),
575
575
  ?reveal_secrets: bool,
576
- ?variables: ::String
576
+ ?variables: ::String,
577
+ ?state_name: ::String,
578
+ ?mock: {
579
+ result: ::String?,
580
+ error_output: {
581
+ error: ::String?,
582
+ cause: ::String?
583
+ }?,
584
+ field_validation_mode: ("STRICT" | "PRESENT" | "NONE")?
585
+ },
586
+ ?context: ::String,
587
+ ?state_configuration: {
588
+ retrier_retry_count: ::Integer?,
589
+ error_caused_by_state: ::String?,
590
+ map_iteration_failure_count: ::Integer?,
591
+ map_item_reader_data: ::String?
592
+ }
577
593
  ) -> _TestStateResponseSuccess
578
594
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _TestStateResponseSuccess
579
595
 
data/sig/types.rbs CHANGED
@@ -480,7 +480,15 @@ module Aws::States
480
480
  attr_accessor request: Types::InspectionDataRequest
481
481
  attr_accessor response: Types::InspectionDataResponse
482
482
  attr_accessor variables: ::String
483
- SENSITIVE: [:input, :after_arguments, :after_input_path, :after_parameters, :result, :after_result_selector, :after_result_path, :variables]
483
+ attr_accessor error_details: Types::InspectionErrorDetails
484
+ attr_accessor after_items_path: ::String
485
+ attr_accessor after_item_selector: ::String
486
+ attr_accessor after_item_batcher: ::String
487
+ attr_accessor after_items_pointer: ::String
488
+ attr_accessor tolerated_failure_count: ::Integer
489
+ attr_accessor tolerated_failure_percentage: ::Float
490
+ attr_accessor max_concurrency: ::Integer
491
+ SENSITIVE: [:input, :after_arguments, :after_input_path, :after_parameters, :result, :after_result_selector, :after_result_path, :variables, :after_items_path, :after_item_selector, :after_item_batcher, :after_items_pointer, :tolerated_failure_count, :tolerated_failure_percentage, :max_concurrency]
484
492
  end
485
493
 
486
494
  class InspectionDataRequest
@@ -501,6 +509,13 @@ module Aws::States
501
509
  SENSITIVE: []
502
510
  end
503
511
 
512
+ class InspectionErrorDetails
513
+ attr_accessor catch_index: ::Integer
514
+ attr_accessor retry_index: ::Integer
515
+ attr_accessor retry_backoff_interval_seconds: ::Integer
516
+ SENSITIVE: [:catch_index, :retry_index, :retry_backoff_interval_seconds]
517
+ end
518
+
504
519
  class InvalidArn
505
520
  attr_accessor message: ::String
506
521
  SENSITIVE: []
@@ -772,6 +787,19 @@ module Aws::States
772
787
  SENSITIVE: []
773
788
  end
774
789
 
790
+ class MockErrorOutput
791
+ attr_accessor error: ::String
792
+ attr_accessor cause: ::String
793
+ SENSITIVE: [:error, :cause]
794
+ end
795
+
796
+ class MockInput
797
+ attr_accessor result: ::String
798
+ attr_accessor error_output: Types::MockErrorOutput
799
+ attr_accessor field_validation_mode: ("STRICT" | "PRESENT" | "NONE")
800
+ SENSITIVE: [:result]
801
+ end
802
+
775
803
  class PublishStateMachineVersionInput
776
804
  attr_accessor state_machine_arn: ::String
777
805
  attr_accessor revision_id: ::String
@@ -1049,6 +1077,14 @@ module Aws::States
1049
1077
  SENSITIVE: [:error, :cause]
1050
1078
  end
1051
1079
 
1080
+ class TestStateConfiguration
1081
+ attr_accessor retrier_retry_count: ::Integer
1082
+ attr_accessor error_caused_by_state: ::String
1083
+ attr_accessor map_iteration_failure_count: ::Integer
1084
+ attr_accessor map_item_reader_data: ::String
1085
+ SENSITIVE: [:error_caused_by_state, :map_item_reader_data]
1086
+ end
1087
+
1052
1088
  class TestStateInput
1053
1089
  attr_accessor definition: ::String
1054
1090
  attr_accessor role_arn: ::String
@@ -1056,7 +1092,11 @@ module Aws::States
1056
1092
  attr_accessor inspection_level: ("INFO" | "DEBUG" | "TRACE")
1057
1093
  attr_accessor reveal_secrets: bool
1058
1094
  attr_accessor variables: ::String
1059
- SENSITIVE: [:definition, :input, :variables]
1095
+ attr_accessor state_name: ::String
1096
+ attr_accessor mock: Types::MockInput
1097
+ attr_accessor context: ::String
1098
+ attr_accessor state_configuration: Types::TestStateConfiguration
1099
+ SENSITIVE: [:definition, :input, :variables, :state_name, :context]
1060
1100
  end
1061
1101
 
1062
1102
  class TestStateOutput
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-states
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.99.0
4
+ version: 1.100.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services