aws-sdk-states 1.60.0 → 1.62.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f8b6e4e00f98fbb223abb347c42bb40a28e6a84d491b9f8394e3b5b6c35ab52d
4
- data.tar.gz: b4e4340bf7854f06b5de3e9b038212a6564e95ea4c07ba97653a2eff1bed12c7
3
+ metadata.gz: cbbd43f4b15ab975195243bcf474670186fb6c6e813b58436cefe03dc45d0cf9
4
+ data.tar.gz: a9479935c9fecba65a2247ed26e05eb61f0bbb593bbc94b3db0f2d44fe671afa
5
5
  SHA512:
6
- metadata.gz: f9ae3f34e941d65aa897f4a6aef8c07f9d8fbe742d7289a467258978792fddaf3b943f386e183e282126d45765919ddd8f8dcc2dbc32cc34b2260b8eedb0f306
7
- data.tar.gz: 4d033aa31cb09929b232f4dd660b3c8ba192a51dd458037c9eef71fc54c14b055136ebf4ef9914e8529c9e39a4e1e95b5419270b24b0c81bd4d4d0abd20d6e52
6
+ metadata.gz: f3e26ca5050d5bbc104d9cf196fed6fbb06caeb2d279b35ac399dd1acfe125d434ad31cd28d46c22eb4d2f80ea033819c45934ed11a97455825faf0785ba0ac4
7
+ data.tar.gz: 8505b94996b2ae3353f0cef164f5ef9cd25c7397e3cb857f302f094e8afcaedb3398250238c6d207e9345ece650f6f2c073007ffdee33a0fb17175c2ffb28c7b
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.62.0 (2023-11-27)
5
+ ------------------
6
+
7
+ * Feature - Adds new TestState operation which accepts the definition of a single state and executes it. You can test a state without creating a state machine or updating an existing state machine.
8
+
9
+ 1.61.0 (2023-11-22)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.60.0 (2023-11-14)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.60.0
1
+ 1.62.0
@@ -2157,10 +2157,11 @@ module Aws::States
2157
2157
  # `RedriveExecution` API action reschedules and redrives only the
2158
2158
  # iterations and branches that failed or aborted.
2159
2159
  #
2160
- # To redrive a workflow that includes a Distributed Map state with
2161
- # failed child workflow executions, you must redrive the [parent
2162
- # workflow][4]. The parent workflow redrives all the unsuccessful
2163
- # states, including Distributed Map.
2160
+ # To redrive a workflow that includes a Distributed Map state whose Map
2161
+ # Run failed, you must redrive the [parent workflow][4]. The parent
2162
+ # workflow redrives all the unsuccessful states, including a failed Map
2163
+ # Run. If a Map Run was not started in the original execution attempt,
2164
+ # the redriven parent workflow starts the Map Run.
2164
2165
  #
2165
2166
  # <note markdown="1"> This API action is not supported by `EXPRESS` state machines.
2166
2167
  #
@@ -2208,8 +2209,10 @@ module Aws::States
2208
2209
  # A unique, case-sensitive identifier that you provide to ensure the
2209
2210
  # idempotency of the request. If you don’t specify a client token, the
2210
2211
  # Amazon Web Services SDK automatically generates a client token and
2211
- # uses it for the request to ensure idempotency. The API uses one of the
2212
- # last 10 client tokens provided.
2212
+ # uses it for the request to ensure idempotency. The API will return
2213
+ # idempotent responses for the last 10 client tokens used to
2214
+ # successfully redrive the execution. These client tokens are valid for
2215
+ # up to 15 minutes after they are first used.
2213
2216
  #
2214
2217
  # **A suitable default value is auto-generated.** You should normally
2215
2218
  # not need to pass this option.**
@@ -2722,6 +2725,164 @@ module Aws::States
2722
2725
  req.send_request(options)
2723
2726
  end
2724
2727
 
2728
+ # Accepts the definition of a single state and executes it. You can test
2729
+ # a state without creating a state machine or updating an existing state
2730
+ # machine. Using this API, you can test the following:
2731
+ #
2732
+ # * A state's [input and output processing][1] data flow
2733
+ #
2734
+ # * An [Amazon Web Services service integration][2] request and response
2735
+ #
2736
+ # * An [HTTP Task][3] request and response
2737
+ #
2738
+ # You can call this API on only one state at a time. The states that you
2739
+ # can test include the following:
2740
+ #
2741
+ # * [All Task types][4] except [Activity][5]
2742
+ #
2743
+ # * [Pass][6]
2744
+ #
2745
+ # * [Wait][7]
2746
+ #
2747
+ # * [Choice][8]
2748
+ #
2749
+ # * [Succeed][9]
2750
+ #
2751
+ # * [Fail][10]
2752
+ #
2753
+ # The `TestState` API assumes an IAM role which must contain the
2754
+ # required IAM permissions for the resources your state is accessing.
2755
+ # For information about the permissions a state might need, see [IAM
2756
+ # permissions to test a state][11].
2757
+ #
2758
+ # The `TestState` API can run for up to five minutes. If the execution
2759
+ # of a state exceeds this duration, it fails with the `States.Timeout`
2760
+ # error.
2761
+ #
2762
+ # `TestState` doesn't support [Activity tasks][5], `.sync` or
2763
+ # `.waitForTaskToken` [service integration patterns][12],
2764
+ # [Parallel][13], or [Map][14] states.
2765
+ #
2766
+ #
2767
+ #
2768
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/test-state-isolation.html#test-state-input-output-dataflow
2769
+ # [2]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-services.html
2770
+ # [3]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-third-party-apis.html
2771
+ # [4]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-task-state.html#task-types
2772
+ # [5]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-activities.html
2773
+ # [6]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-pass-state.html
2774
+ # [7]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-wait-state.html
2775
+ # [8]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-choice-state.html
2776
+ # [9]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-succeed-state.html
2777
+ # [10]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-fail-state.html
2778
+ # [11]: https://docs.aws.amazon.com/step-functions/latest/dg/test-state-isolation.html#test-state-permissions
2779
+ # [12]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html
2780
+ # [13]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-parallel-state.html
2781
+ # [14]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-map-state.html
2782
+ #
2783
+ # @option params [required, String] :definition
2784
+ # The [Amazon States Language][1] (ASL) definition of the state.
2785
+ #
2786
+ #
2787
+ #
2788
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html
2789
+ #
2790
+ # @option params [required, String] :role_arn
2791
+ # The Amazon Resource Name (ARN) of the execution role with the required
2792
+ # IAM permissions for the state.
2793
+ #
2794
+ # @option params [String] :input
2795
+ # A string that contains the JSON input data for the state.
2796
+ #
2797
+ # @option params [String] :inspection_level
2798
+ # Determines the values to return when a state is tested. You can
2799
+ # specify one of the following types:
2800
+ #
2801
+ # * `INFO`: Shows the final state output. By default, Step Functions
2802
+ # sets `inspectionLevel` to `INFO` if you don't specify a level.
2803
+ #
2804
+ # * `DEBUG`: Shows the final state output along with the input and
2805
+ # output data processing result.
2806
+ #
2807
+ # * `TRACE`: Shows the HTTP request and response for an HTTP Task. This
2808
+ # level also shows the final state output along with the input and
2809
+ # output data processing result.
2810
+ #
2811
+ # Each of these levels also provide information about the status of the
2812
+ # state execution and the next state to transition to.
2813
+ #
2814
+ # @option params [Boolean] :reveal_secrets
2815
+ # Specifies whether or not to include secret information in the test
2816
+ # result. For HTTP Tasks, a secret includes the data that an EventBridge
2817
+ # connection adds to modify the HTTP request headers, query parameters,
2818
+ # and body. Step Functions doesn't omit any information included in the
2819
+ # state definition or the HTTP response.
2820
+ #
2821
+ # If you set `revealSecrets` to `true`, you must make sure that the IAM
2822
+ # user that calls the `TestState` API has permission for the
2823
+ # `states:RevealSecrets` action. For an example of IAM policy that sets
2824
+ # the `states:RevealSecrets` permission, see [IAM permissions to test a
2825
+ # state][1]. Without this permission, Step Functions throws an access
2826
+ # denied error.
2827
+ #
2828
+ # By default, `revealSecrets` is set to `false`.
2829
+ #
2830
+ #
2831
+ #
2832
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/test-state-isolation.html#test-state-permissions
2833
+ #
2834
+ # @return [Types::TestStateOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2835
+ #
2836
+ # * {Types::TestStateOutput#output #output} => String
2837
+ # * {Types::TestStateOutput#error #error} => String
2838
+ # * {Types::TestStateOutput#cause #cause} => String
2839
+ # * {Types::TestStateOutput#inspection_data #inspection_data} => Types::InspectionData
2840
+ # * {Types::TestStateOutput#next_state #next_state} => String
2841
+ # * {Types::TestStateOutput#status #status} => String
2842
+ #
2843
+ # @example Request syntax with placeholder values
2844
+ #
2845
+ # resp = client.test_state({
2846
+ # definition: "Definition", # required
2847
+ # role_arn: "Arn", # required
2848
+ # input: "SensitiveData",
2849
+ # inspection_level: "INFO", # accepts INFO, DEBUG, TRACE
2850
+ # reveal_secrets: false,
2851
+ # })
2852
+ #
2853
+ # @example Response structure
2854
+ #
2855
+ # resp.output #=> String
2856
+ # resp.error #=> String
2857
+ # resp.cause #=> String
2858
+ # resp.inspection_data.input #=> String
2859
+ # resp.inspection_data.after_input_path #=> String
2860
+ # resp.inspection_data.after_parameters #=> String
2861
+ # resp.inspection_data.result #=> String
2862
+ # resp.inspection_data.after_result_selector #=> String
2863
+ # resp.inspection_data.after_result_path #=> String
2864
+ # resp.inspection_data.request.protocol #=> String
2865
+ # resp.inspection_data.request.method #=> String
2866
+ # resp.inspection_data.request.url #=> String
2867
+ # resp.inspection_data.request.headers #=> String
2868
+ # resp.inspection_data.request.body #=> String
2869
+ # resp.inspection_data.response.protocol #=> String
2870
+ # resp.inspection_data.response.status_code #=> String
2871
+ # resp.inspection_data.response.status_message #=> String
2872
+ # resp.inspection_data.response.headers #=> String
2873
+ # resp.inspection_data.response.body #=> String
2874
+ # resp.next_state #=> String
2875
+ # resp.status #=> String, one of "SUCCEEDED", "FAILED", "RETRIABLE", "CAUGHT_ERROR"
2876
+ #
2877
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TestState AWS API Documentation
2878
+ #
2879
+ # @overload test_state(params = {})
2880
+ # @param [Hash] params ({})
2881
+ def test_state(params = {}, options = {})
2882
+ req = build_request(:test_state, params)
2883
+ req.send_request(options)
2884
+ end
2885
+
2725
2886
  # Remove a tag from a Step Functions resource
2726
2887
  #
2727
2888
  # @option params [required, String] :resource_arn
@@ -3018,7 +3179,7 @@ module Aws::States
3018
3179
  params: params,
3019
3180
  config: config)
3020
3181
  context[:gem_name] = 'aws-sdk-states'
3021
- context[:gem_version] = '1.60.0'
3182
+ context[:gem_version] = '1.62.0'
3022
3183
  Seahorse::Client::Request.new(handlers, context)
3023
3184
  end
3024
3185
 
@@ -84,6 +84,12 @@ module Aws::States
84
84
  GetActivityTaskOutput = Shapes::StructureShape.new(name: 'GetActivityTaskOutput')
85
85
  GetExecutionHistoryInput = Shapes::StructureShape.new(name: 'GetExecutionHistoryInput')
86
86
  GetExecutionHistoryOutput = Shapes::StructureShape.new(name: 'GetExecutionHistoryOutput')
87
+ HTTPBody = Shapes::StringShape.new(name: 'HTTPBody')
88
+ HTTPHeaders = Shapes::StringShape.new(name: 'HTTPHeaders')
89
+ HTTPMethod = Shapes::StringShape.new(name: 'HTTPMethod')
90
+ HTTPProtocol = Shapes::StringShape.new(name: 'HTTPProtocol')
91
+ HTTPStatusCode = Shapes::StringShape.new(name: 'HTTPStatusCode')
92
+ HTTPStatusMessage = Shapes::StringShape.new(name: 'HTTPStatusMessage')
87
93
  HistoryEvent = Shapes::StructureShape.new(name: 'HistoryEvent')
88
94
  HistoryEventExecutionDataDetails = Shapes::StructureShape.new(name: 'HistoryEventExecutionDataDetails')
89
95
  HistoryEventList = Shapes::ListShape.new(name: 'HistoryEventList')
@@ -91,6 +97,10 @@ module Aws::States
91
97
  Identity = Shapes::StringShape.new(name: 'Identity')
92
98
  IncludeExecutionData = Shapes::BooleanShape.new(name: 'IncludeExecutionData')
93
99
  IncludeExecutionDataGetExecutionHistory = Shapes::BooleanShape.new(name: 'IncludeExecutionDataGetExecutionHistory')
100
+ InspectionData = Shapes::StructureShape.new(name: 'InspectionData')
101
+ InspectionDataRequest = Shapes::StructureShape.new(name: 'InspectionDataRequest')
102
+ InspectionDataResponse = Shapes::StructureShape.new(name: 'InspectionDataResponse')
103
+ InspectionLevel = Shapes::StringShape.new(name: 'InspectionLevel')
94
104
  InvalidArn = Shapes::StructureShape.new(name: 'InvalidArn')
95
105
  InvalidDefinition = Shapes::StructureShape.new(name: 'InvalidDefinition')
96
106
  InvalidExecutionInput = Shapes::StructureShape.new(name: 'InvalidExecutionInput')
@@ -149,6 +159,7 @@ module Aws::States
149
159
  RedriveExecutionInput = Shapes::StructureShape.new(name: 'RedriveExecutionInput')
150
160
  RedriveExecutionOutput = Shapes::StructureShape.new(name: 'RedriveExecutionOutput')
151
161
  ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
162
+ RevealSecrets = Shapes::BooleanShape.new(name: 'RevealSecrets')
152
163
  ReverseOrder = Shapes::BooleanShape.new(name: 'ReverseOrder')
153
164
  RevisionId = Shapes::StringShape.new(name: 'RevisionId')
154
165
  RoutingConfigurationList = Shapes::ListShape.new(name: 'RoutingConfigurationList')
@@ -183,6 +194,7 @@ module Aws::States
183
194
  StateMachineTypeNotSupported = Shapes::StructureShape.new(name: 'StateMachineTypeNotSupported')
184
195
  StateMachineVersionList = Shapes::ListShape.new(name: 'StateMachineVersionList')
185
196
  StateMachineVersionListItem = Shapes::StructureShape.new(name: 'StateMachineVersionListItem')
197
+ StateName = Shapes::StringShape.new(name: 'StateName')
186
198
  StopExecutionInput = Shapes::StructureShape.new(name: 'StopExecutionInput')
187
199
  StopExecutionOutput = Shapes::StructureShape.new(name: 'StopExecutionOutput')
188
200
  SyncExecutionStatus = Shapes::StringShape.new(name: 'SyncExecutionStatus')
@@ -205,6 +217,9 @@ module Aws::States
205
217
  TaskTimedOut = Shapes::StructureShape.new(name: 'TaskTimedOut')
206
218
  TaskTimedOutEventDetails = Shapes::StructureShape.new(name: 'TaskTimedOutEventDetails')
207
219
  TaskToken = Shapes::StringShape.new(name: 'TaskToken')
220
+ TestExecutionStatus = Shapes::StringShape.new(name: 'TestExecutionStatus')
221
+ TestStateInput = Shapes::StructureShape.new(name: 'TestStateInput')
222
+ TestStateOutput = Shapes::StructureShape.new(name: 'TestStateOutput')
208
223
  TimeoutInSeconds = Shapes::IntegerShape.new(name: 'TimeoutInSeconds')
209
224
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
210
225
  ToleratedFailureCount = Shapes::IntegerShape.new(name: 'ToleratedFailureCount')
@@ -212,6 +227,7 @@ module Aws::States
212
227
  TooManyTags = Shapes::StructureShape.new(name: 'TooManyTags')
213
228
  TraceHeader = Shapes::StringShape.new(name: 'TraceHeader')
214
229
  TracingConfiguration = Shapes::StructureShape.new(name: 'TracingConfiguration')
230
+ URL = Shapes::StringShape.new(name: 'URL')
215
231
  UnsignedInteger = Shapes::IntegerShape.new(name: 'UnsignedInteger')
216
232
  UnsignedLong = Shapes::IntegerShape.new(name: 'UnsignedLong')
217
233
  UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
@@ -550,6 +566,30 @@ module Aws::States
550
566
 
551
567
  HistoryEventList.member = Shapes::ShapeRef.new(shape: HistoryEvent)
552
568
 
569
+ InspectionData.add_member(:input, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "input"))
570
+ InspectionData.add_member(:after_input_path, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "afterInputPath"))
571
+ InspectionData.add_member(:after_parameters, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "afterParameters"))
572
+ InspectionData.add_member(:result, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "result"))
573
+ InspectionData.add_member(:after_result_selector, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "afterResultSelector"))
574
+ InspectionData.add_member(:after_result_path, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "afterResultPath"))
575
+ InspectionData.add_member(:request, Shapes::ShapeRef.new(shape: InspectionDataRequest, location_name: "request"))
576
+ InspectionData.add_member(:response, Shapes::ShapeRef.new(shape: InspectionDataResponse, location_name: "response"))
577
+ InspectionData.struct_class = Types::InspectionData
578
+
579
+ InspectionDataRequest.add_member(:protocol, Shapes::ShapeRef.new(shape: HTTPProtocol, location_name: "protocol"))
580
+ InspectionDataRequest.add_member(:method, Shapes::ShapeRef.new(shape: HTTPMethod, location_name: "method"))
581
+ InspectionDataRequest.add_member(:url, Shapes::ShapeRef.new(shape: URL, location_name: "url"))
582
+ InspectionDataRequest.add_member(:headers, Shapes::ShapeRef.new(shape: HTTPHeaders, location_name: "headers"))
583
+ InspectionDataRequest.add_member(:body, Shapes::ShapeRef.new(shape: HTTPBody, location_name: "body"))
584
+ InspectionDataRequest.struct_class = Types::InspectionDataRequest
585
+
586
+ InspectionDataResponse.add_member(:protocol, Shapes::ShapeRef.new(shape: HTTPProtocol, location_name: "protocol"))
587
+ InspectionDataResponse.add_member(:status_code, Shapes::ShapeRef.new(shape: HTTPStatusCode, location_name: "statusCode"))
588
+ InspectionDataResponse.add_member(:status_message, Shapes::ShapeRef.new(shape: HTTPStatusMessage, location_name: "statusMessage"))
589
+ InspectionDataResponse.add_member(:headers, Shapes::ShapeRef.new(shape: HTTPHeaders, location_name: "headers"))
590
+ InspectionDataResponse.add_member(:body, Shapes::ShapeRef.new(shape: HTTPBody, location_name: "body"))
591
+ InspectionDataResponse.struct_class = Types::InspectionDataResponse
592
+
553
593
  InvalidArn.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
554
594
  InvalidArn.struct_class = Types::InvalidArn
555
595
 
@@ -930,6 +970,21 @@ module Aws::States
930
970
  TaskTimedOutEventDetails.add_member(:cause, Shapes::ShapeRef.new(shape: SensitiveCause, location_name: "cause"))
931
971
  TaskTimedOutEventDetails.struct_class = Types::TaskTimedOutEventDetails
932
972
 
973
+ TestStateInput.add_member(:definition, Shapes::ShapeRef.new(shape: Definition, required: true, location_name: "definition"))
974
+ TestStateInput.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "roleArn"))
975
+ TestStateInput.add_member(:input, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "input"))
976
+ TestStateInput.add_member(:inspection_level, Shapes::ShapeRef.new(shape: InspectionLevel, location_name: "inspectionLevel"))
977
+ TestStateInput.add_member(:reveal_secrets, Shapes::ShapeRef.new(shape: RevealSecrets, location_name: "revealSecrets"))
978
+ TestStateInput.struct_class = Types::TestStateInput
979
+
980
+ TestStateOutput.add_member(:output, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "output"))
981
+ TestStateOutput.add_member(:error, Shapes::ShapeRef.new(shape: SensitiveError, location_name: "error"))
982
+ TestStateOutput.add_member(:cause, Shapes::ShapeRef.new(shape: SensitiveCause, location_name: "cause"))
983
+ TestStateOutput.add_member(:inspection_data, Shapes::ShapeRef.new(shape: InspectionData, location_name: "inspectionData"))
984
+ TestStateOutput.add_member(:next_state, Shapes::ShapeRef.new(shape: StateName, location_name: "nextState"))
985
+ TestStateOutput.add_member(:status, Shapes::ShapeRef.new(shape: TestExecutionStatus, location_name: "status"))
986
+ TestStateOutput.struct_class = Types::TestStateOutput
987
+
933
988
  TooManyTags.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
934
989
  TooManyTags.add_member(:resource_name, Shapes::ShapeRef.new(shape: Arn, location_name: "resourceName"))
935
990
  TooManyTags.struct_class = Types::TooManyTags
@@ -1389,6 +1444,21 @@ module Aws::States
1389
1444
  o.errors << Shapes::ShapeRef.new(shape: TooManyTags)
1390
1445
  end)
1391
1446
 
1447
+ api.add_operation(:test_state, Seahorse::Model::Operation.new.tap do |o|
1448
+ o.name = "TestState"
1449
+ o.http_method = "POST"
1450
+ o.http_request_uri = "/"
1451
+ o.endpoint_pattern = {
1452
+ "hostPrefix" => "sync-",
1453
+ }
1454
+ o.input = Shapes::ShapeRef.new(shape: TestStateInput)
1455
+ o.output = Shapes::ShapeRef.new(shape: TestStateOutput)
1456
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArn)
1457
+ o.errors << Shapes::ShapeRef.new(shape: InvalidDefinition)
1458
+ o.errors << Shapes::ShapeRef.new(shape: InvalidExecutionInput)
1459
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
1460
+ end)
1461
+
1392
1462
  api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
1393
1463
  o.name = "UntagResource"
1394
1464
  o.http_method = "POST"
@@ -1438,6 +1508,7 @@ module Aws::States
1438
1508
  o.errors << Shapes::ShapeRef.new(shape: InvalidArn)
1439
1509
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFound)
1440
1510
  o.errors << Shapes::ShapeRef.new(shape: ConflictException)
1511
+ o.errors << Shapes::ShapeRef.new(shape: StateMachineDeleting)
1441
1512
  end)
1442
1513
  end
1443
1514
 
@@ -446,6 +446,20 @@ module Aws::States
446
446
  end
447
447
  end
448
448
 
449
+ class TestState
450
+ def self.build(context)
451
+ unless context.config.regional_endpoint
452
+ endpoint = context.config.endpoint.to_s
453
+ end
454
+ Aws::States::EndpointParameters.new(
455
+ region: context.config.region,
456
+ use_dual_stack: context.config.use_dualstack_endpoint,
457
+ use_fips: context.config.use_fips_endpoint,
458
+ endpoint: endpoint,
459
+ )
460
+ end
461
+ end
462
+
449
463
  class UntagResource
450
464
  def self.build(context)
451
465
  unless context.config.regional_endpoint
@@ -118,6 +118,8 @@ module Aws::States
118
118
  Aws::States::Endpoints::StopExecution.build(context)
119
119
  when :tag_resource
120
120
  Aws::States::Endpoints::TagResource.build(context)
121
+ when :test_state
122
+ Aws::States::Endpoints::TestState.build(context)
121
123
  when :untag_resource
122
124
  Aws::States::Endpoints::UntagResource.build(context)
123
125
  when :update_map_run
@@ -759,8 +759,7 @@ module Aws::States
759
759
  # @!attribute [rw] redrive_count
760
760
  # The number of times you've redriven an execution. If you have not
761
761
  # yet redriven an execution, the `redriveCount` is 0. This count is
762
- # not updated for redrives that failed to start or are pending to be
763
- # redriven.
762
+ # only updated if you successfully redrive an execution.
764
763
  # @return [Integer]
765
764
  #
766
765
  # @!attribute [rw] redrive_date
@@ -914,9 +913,8 @@ module Aws::States
914
913
  #
915
914
  # @!attribute [rw] redrive_count
916
915
  # The number of times you've redriven a Map Run. If you have not yet
917
- # redriven a Map Run, the `redriveCount` is 0. This count is not
918
- # updated for redrives that failed to start or are pending to be
919
- # redriven.
916
+ # redriven a Map Run, the `redriveCount` is 0. This count is only
917
+ # updated if you successfully redrive a Map Run.
920
918
  # @return [Integer]
921
919
  #
922
920
  # @!attribute [rw] redrive_date
@@ -1371,8 +1369,7 @@ module Aws::States
1371
1369
  # @!attribute [rw] redrive_count
1372
1370
  # The number of times you've redriven an execution. If you have not
1373
1371
  # yet redriven an execution, the `redriveCount` is 0. This count is
1374
- # not updated for redrives that failed to start or are pending to be
1375
- # redriven.
1372
+ # only updated when you successfully redrive an execution.
1376
1373
  # @return [Integer]
1377
1374
  #
1378
1375
  # @!attribute [rw] redrive_date
@@ -1852,6 +1849,149 @@ module Aws::States
1852
1849
  include Aws::Structure
1853
1850
  end
1854
1851
 
1852
+ # Contains additional details about the state's execution, including
1853
+ # its input and output data processing flow, and HTTP request and
1854
+ # response information.
1855
+ #
1856
+ # @!attribute [rw] input
1857
+ # The raw state input.
1858
+ # @return [String]
1859
+ #
1860
+ # @!attribute [rw] after_input_path
1861
+ # The input after Step Functions applies the [InputPath][1] filter.
1862
+ #
1863
+ #
1864
+ #
1865
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-inputpath
1866
+ # @return [String]
1867
+ #
1868
+ # @!attribute [rw] after_parameters
1869
+ # The effective input after Step Functions applies the [Parameters][1]
1870
+ # filter.
1871
+ #
1872
+ #
1873
+ #
1874
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-parameters
1875
+ # @return [String]
1876
+ #
1877
+ # @!attribute [rw] result
1878
+ # The state's raw result.
1879
+ # @return [String]
1880
+ #
1881
+ # @!attribute [rw] after_result_selector
1882
+ # The effective result after Step Functions applies the
1883
+ # [ResultSelector][1] filter.
1884
+ #
1885
+ #
1886
+ #
1887
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-inputpath-params.html#input-output-resultselector
1888
+ # @return [String]
1889
+ #
1890
+ # @!attribute [rw] after_result_path
1891
+ # The effective result combined with the raw state input after Step
1892
+ # Functions applies the [ResultPath][1] filter.
1893
+ #
1894
+ #
1895
+ #
1896
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultpath.html
1897
+ # @return [String]
1898
+ #
1899
+ # @!attribute [rw] request
1900
+ # The raw HTTP request that is sent when you test an HTTP Task.
1901
+ # @return [Types::InspectionDataRequest]
1902
+ #
1903
+ # @!attribute [rw] response
1904
+ # The raw HTTP response that is returned when you test an HTTP Task.
1905
+ # @return [Types::InspectionDataResponse]
1906
+ #
1907
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/InspectionData AWS API Documentation
1908
+ #
1909
+ class InspectionData < Struct.new(
1910
+ :input,
1911
+ :after_input_path,
1912
+ :after_parameters,
1913
+ :result,
1914
+ :after_result_selector,
1915
+ :after_result_path,
1916
+ :request,
1917
+ :response)
1918
+ SENSITIVE = [:input, :after_input_path, :after_parameters, :result, :after_result_selector, :after_result_path]
1919
+ include Aws::Structure
1920
+ end
1921
+
1922
+ # Contains additional details about the state's execution, including
1923
+ # its input and output data processing flow, and HTTP request
1924
+ # information.
1925
+ #
1926
+ # @!attribute [rw] protocol
1927
+ # The protocol used to make the HTTP request.
1928
+ # @return [String]
1929
+ #
1930
+ # @!attribute [rw] method
1931
+ # The HTTP method used for the HTTP request.
1932
+ # @return [String]
1933
+ #
1934
+ # @!attribute [rw] url
1935
+ # The API endpoint used for the HTTP request.
1936
+ # @return [String]
1937
+ #
1938
+ # @!attribute [rw] headers
1939
+ # The request headers associated with the HTTP request.
1940
+ # @return [String]
1941
+ #
1942
+ # @!attribute [rw] body
1943
+ # The request body for the HTTP request.
1944
+ # @return [String]
1945
+ #
1946
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/InspectionDataRequest AWS API Documentation
1947
+ #
1948
+ class InspectionDataRequest < Struct.new(
1949
+ :protocol,
1950
+ :method,
1951
+ :url,
1952
+ :headers,
1953
+ :body)
1954
+ SENSITIVE = []
1955
+ include Aws::Structure
1956
+ end
1957
+
1958
+ # Contains additional details about the state's execution, including
1959
+ # its input and output data processing flow, and HTTP response
1960
+ # information. The `inspectionLevel` request parameter specifies which
1961
+ # details are returned.
1962
+ #
1963
+ # @!attribute [rw] protocol
1964
+ # The protocol used to return the HTTP response.
1965
+ # @return [String]
1966
+ #
1967
+ # @!attribute [rw] status_code
1968
+ # The HTTP response status code for the HTTP response.
1969
+ # @return [String]
1970
+ #
1971
+ # @!attribute [rw] status_message
1972
+ # The message associated with the HTTP status code.
1973
+ # @return [String]
1974
+ #
1975
+ # @!attribute [rw] headers
1976
+ # The response headers associated with the HTTP response.
1977
+ # @return [String]
1978
+ #
1979
+ # @!attribute [rw] body
1980
+ # The HTTP response returned.
1981
+ # @return [String]
1982
+ #
1983
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/InspectionDataResponse AWS API Documentation
1984
+ #
1985
+ class InspectionDataResponse < Struct.new(
1986
+ :protocol,
1987
+ :status_code,
1988
+ :status_message,
1989
+ :headers,
1990
+ :body)
1991
+ SENSITIVE = []
1992
+ include Aws::Structure
1993
+ end
1994
+
1855
1995
  # The provided Amazon Resource Name (ARN) is not valid.
1856
1996
  #
1857
1997
  # @!attribute [rw] message
@@ -2610,9 +2750,9 @@ module Aws::States
2610
2750
  # @!attribute [rw] failures_not_redrivable
2611
2751
  # The number of `FAILED`, `ABORTED`, or `TIMED_OUT` child workflow
2612
2752
  # executions that cannot be redriven because their execution status is
2613
- # terminal. For example, if your execution event history contains
2614
- # 25,000 entries, or the `toleratedFailureCount` or
2615
- # `toleratedFailurePercentage` for the Distributed Map has exceeded.
2753
+ # terminal. For example, child workflows with an execution status of
2754
+ # `FAILED`, `ABORTED`, or `TIMED_OUT` and a `redriveStatus` of
2755
+ # `NOT_REDRIVABLE`.
2616
2756
  # @return [Integer]
2617
2757
  #
2618
2758
  # @!attribute [rw] pending_redrive
@@ -2711,10 +2851,9 @@ module Aws::States
2711
2851
  # @!attribute [rw] failures_not_redrivable
2712
2852
  # The number of `FAILED`, `ABORTED`, or `TIMED_OUT` items in child
2713
2853
  # workflow executions that cannot be redriven because the execution
2714
- # status of those child workflows is terminal. For example, if your
2715
- # execution event history contains 25,000 entries, or the
2716
- # `toleratedFailureCount` or `toleratedFailurePercentage` for the
2717
- # Distributed Map has exceeded.
2854
+ # status of those child workflows is terminal. For example, child
2855
+ # workflows with an execution status of `FAILED`, `ABORTED`, or
2856
+ # `TIMED_OUT` and a `redriveStatus` of `NOT_REDRIVABLE`.
2718
2857
  # @return [Integer]
2719
2858
  #
2720
2859
  # @!attribute [rw] pending_redrive
@@ -2900,8 +3039,10 @@ module Aws::States
2900
3039
  # A unique, case-sensitive identifier that you provide to ensure the
2901
3040
  # idempotency of the request. If you don’t specify a client token, the
2902
3041
  # Amazon Web Services SDK automatically generates a client token and
2903
- # uses it for the request to ensure idempotency. The API uses one of
2904
- # the last 10 client tokens provided.
3042
+ # uses it for the request to ensure idempotency. The API will return
3043
+ # idempotent responses for the last 10 client tokens used to
3044
+ # successfully redrive the execution. These client tokens are valid
3045
+ # for up to 15 minutes after they are first used.
2905
3046
  #
2906
3047
  # **A suitable default value is auto-generated.** You should normally
2907
3048
  # not need to pass this option.
@@ -3913,6 +4054,118 @@ module Aws::States
3913
4054
  include Aws::Structure
3914
4055
  end
3915
4056
 
4057
+ # @!attribute [rw] definition
4058
+ # The [Amazon States Language][1] (ASL) definition of the state.
4059
+ #
4060
+ #
4061
+ #
4062
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html
4063
+ # @return [String]
4064
+ #
4065
+ # @!attribute [rw] role_arn
4066
+ # The Amazon Resource Name (ARN) of the execution role with the
4067
+ # required IAM permissions for the state.
4068
+ # @return [String]
4069
+ #
4070
+ # @!attribute [rw] input
4071
+ # A string that contains the JSON input data for the state.
4072
+ # @return [String]
4073
+ #
4074
+ # @!attribute [rw] inspection_level
4075
+ # Determines the values to return when a state is tested. You can
4076
+ # specify one of the following types:
4077
+ #
4078
+ # * `INFO`: Shows the final state output. By default, Step Functions
4079
+ # sets `inspectionLevel` to `INFO` if you don't specify a level.
4080
+ #
4081
+ # * `DEBUG`: Shows the final state output along with the input and
4082
+ # output data processing result.
4083
+ #
4084
+ # * `TRACE`: Shows the HTTP request and response for an HTTP Task.
4085
+ # This level also shows the final state output along with the input
4086
+ # and output data processing result.
4087
+ #
4088
+ # Each of these levels also provide information about the status of
4089
+ # the state execution and the next state to transition to.
4090
+ # @return [String]
4091
+ #
4092
+ # @!attribute [rw] reveal_secrets
4093
+ # Specifies whether or not to include secret information in the test
4094
+ # result. For HTTP Tasks, a secret includes the data that an
4095
+ # EventBridge connection adds to modify the HTTP request headers,
4096
+ # query parameters, and body. Step Functions doesn't omit any
4097
+ # information included in the state definition or the HTTP response.
4098
+ #
4099
+ # If you set `revealSecrets` to `true`, you must make sure that the
4100
+ # IAM user that calls the `TestState` API has permission for the
4101
+ # `states:RevealSecrets` action. For an example of IAM policy that
4102
+ # sets the `states:RevealSecrets` permission, see [IAM permissions to
4103
+ # test a state][1]. Without this permission, Step Functions throws an
4104
+ # access denied error.
4105
+ #
4106
+ # By default, `revealSecrets` is set to `false`.
4107
+ #
4108
+ #
4109
+ #
4110
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/test-state-isolation.html#test-state-permissions
4111
+ # @return [Boolean]
4112
+ #
4113
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TestStateInput AWS API Documentation
4114
+ #
4115
+ class TestStateInput < Struct.new(
4116
+ :definition,
4117
+ :role_arn,
4118
+ :input,
4119
+ :inspection_level,
4120
+ :reveal_secrets)
4121
+ SENSITIVE = [:definition, :input]
4122
+ include Aws::Structure
4123
+ end
4124
+
4125
+ # @!attribute [rw] output
4126
+ # The JSON output data of the state. Length constraints apply to the
4127
+ # payload size, and are expressed as bytes in UTF-8 encoding.
4128
+ # @return [String]
4129
+ #
4130
+ # @!attribute [rw] error
4131
+ # The error returned when the execution of a state fails.
4132
+ # @return [String]
4133
+ #
4134
+ # @!attribute [rw] cause
4135
+ # A detailed explanation of the cause for the error when the execution
4136
+ # of a state fails.
4137
+ # @return [String]
4138
+ #
4139
+ # @!attribute [rw] inspection_data
4140
+ # Returns additional details about the state's execution, including
4141
+ # its input and output data processing flow, and HTTP request and
4142
+ # response information. The `inspectionLevel` request parameter
4143
+ # specifies which details are returned.
4144
+ # @return [Types::InspectionData]
4145
+ #
4146
+ # @!attribute [rw] next_state
4147
+ # The name of the next state to transition to. If you haven't defined
4148
+ # a next state in your definition or if the execution of the state
4149
+ # fails, this field doesn't contain a value.
4150
+ # @return [String]
4151
+ #
4152
+ # @!attribute [rw] status
4153
+ # The execution status of the state.
4154
+ # @return [String]
4155
+ #
4156
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/TestStateOutput AWS API Documentation
4157
+ #
4158
+ class TestStateOutput < Struct.new(
4159
+ :output,
4160
+ :error,
4161
+ :cause,
4162
+ :inspection_data,
4163
+ :next_state,
4164
+ :status)
4165
+ SENSITIVE = [:output, :error, :cause, :inspection_data]
4166
+ include Aws::Structure
4167
+ end
4168
+
3916
4169
  # You've exceeded the number of tags allowed for a resource. See the [
3917
4170
  # Limits Topic][1] in the Step Functions Developer Guide.
3918
4171
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-states/customizations'
52
52
  # @!group service
53
53
  module Aws::States
54
54
 
55
- GEM_VERSION = '1.60.0'
55
+ GEM_VERSION = '1.62.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-states
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.60.0
4
+ version: 1.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-14 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.184.0
22
+ version: 3.188.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.184.0
32
+ version: 3.188.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -80,7 +80,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '2.3'
83
+ version: '2.5'
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - ">="