aws-sdk-states 1.59.0 → 1.60.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: f72f2765c754cc4e87ff5ad83a71db3b3df00a309be8417aa0e236175c652170
4
- data.tar.gz: 013c0f4effe7c638713dee1ad2c52b7f21161a792d806d9ba9c0fcad8c20eaae
3
+ metadata.gz: f8b6e4e00f98fbb223abb347c42bb40a28e6a84d491b9f8394e3b5b6c35ab52d
4
+ data.tar.gz: b4e4340bf7854f06b5de3e9b038212a6564e95ea4c07ba97653a2eff1bed12c7
5
5
  SHA512:
6
- metadata.gz: 4b6f0affed753fbf175cccaaa6551692f24776b8dfad00fb45c4f3f45a39365db15d76b871e8d9f394a83bbd9b28c70840b47df1da23d1de1b1b37df36d9e99c
7
- data.tar.gz: 84520451d13bb2f1a2acd3a3831f52818aa2c259e4df69ff93d24b146535228291a85d09232ea46373d284cc43adfc13b4184e16247fb1153fbc35b366750739
6
+ metadata.gz: f9ae3f34e941d65aa897f4a6aef8c07f9d8fbe742d7289a467258978792fddaf3b943f386e183e282126d45765919ddd8f8dcc2dbc32cc34b2260b8eedb0f306
7
+ data.tar.gz: 4d033aa31cb09929b232f4dd660b3c8ba192a51dd458037c9eef71fc54c14b055136ebf4ef9914e8529c9e39a4e1e95b5419270b24b0c81bd4d4d0abd20d6e52
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.60.0 (2023-11-14)
5
+ ------------------
6
+
7
+ * Feature - This release adds support to redrive executions in AWS Step Functions with a new RedriveExecution operation.
8
+
4
9
  1.59.0 (2023-09-27)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.59.0
1
+ 1.60.0
@@ -762,9 +762,11 @@ module Aws::States
762
762
  req.send_request(options)
763
763
  end
764
764
 
765
- # Deletes a state machine. This is an asynchronous operation: It sets
765
+ # Deletes a state machine. This is an asynchronous operation. It sets
766
766
  # the state machine's status to `DELETING` and begins the deletion
767
- # process.
767
+ # process. A state machine is deleted only when all its executions are
768
+ # completed. On the next state transition, the state machine's
769
+ # executions are terminated.
768
770
  #
769
771
  # A qualified state machine ARN can either refer to a *Distributed Map
770
772
  # state* defined within a state machine, a version ARN, or an alias ARN.
@@ -948,9 +950,11 @@ module Aws::States
948
950
 
949
951
  # Provides information about a state machine execution, such as the
950
952
  # state machine associated with the execution, the execution input and
951
- # output, and relevant execution metadata. Use this API action to return
952
- # the Map Run Amazon Resource Name (ARN) if the execution was dispatched
953
- # by a Map Run.
953
+ # output, and relevant execution metadata. If you've [redriven][1] an
954
+ # execution, you can use this API action to return information about the
955
+ # redrives of that execution. In addition, you can use this API action
956
+ # to return the Map Run Amazon Resource Name (ARN) if the execution was
957
+ # dispatched by a Map Run.
954
958
  #
955
959
  # If you specify a version or alias ARN when you call the StartExecution
956
960
  # API action, `DescribeExecution` returns that ARN.
@@ -960,9 +964,13 @@ module Aws::States
960
964
  #
961
965
  # </note>
962
966
  #
963
- # Executions of an `EXPRESS` state machinearen't supported by
967
+ # Executions of an `EXPRESS` state machine aren't supported by
964
968
  # `DescribeExecution` unless a Map Run dispatched them.
965
969
  #
970
+ #
971
+ #
972
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/redrive-executions.html
973
+ #
966
974
  # @option params [required, String] :execution_arn
967
975
  # The Amazon Resource Name (ARN) of the execution to describe.
968
976
  #
@@ -984,6 +992,10 @@ module Aws::States
984
992
  # * {Types::DescribeExecutionOutput#cause #cause} => String
985
993
  # * {Types::DescribeExecutionOutput#state_machine_version_arn #state_machine_version_arn} => String
986
994
  # * {Types::DescribeExecutionOutput#state_machine_alias_arn #state_machine_alias_arn} => String
995
+ # * {Types::DescribeExecutionOutput#redrive_count #redrive_count} => Integer
996
+ # * {Types::DescribeExecutionOutput#redrive_date #redrive_date} => Time
997
+ # * {Types::DescribeExecutionOutput#redrive_status #redrive_status} => String
998
+ # * {Types::DescribeExecutionOutput#redrive_status_reason #redrive_status_reason} => String
987
999
  #
988
1000
  # @example Request syntax with placeholder values
989
1001
  #
@@ -996,7 +1008,7 @@ module Aws::States
996
1008
  # resp.execution_arn #=> String
997
1009
  # resp.state_machine_arn #=> String
998
1010
  # resp.name #=> String
999
- # resp.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED"
1011
+ # resp.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED", "PENDING_REDRIVE"
1000
1012
  # resp.start_date #=> Time
1001
1013
  # resp.stop_date #=> Time
1002
1014
  # resp.input #=> String
@@ -1009,6 +1021,10 @@ module Aws::States
1009
1021
  # resp.cause #=> String
1010
1022
  # resp.state_machine_version_arn #=> String
1011
1023
  # resp.state_machine_alias_arn #=> String
1024
+ # resp.redrive_count #=> Integer
1025
+ # resp.redrive_date #=> Time
1026
+ # resp.redrive_status #=> String, one of "REDRIVABLE", "NOT_REDRIVABLE", "REDRIVABLE_BY_MAP_RUN"
1027
+ # resp.redrive_status_reason #=> String
1012
1028
  #
1013
1029
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution AWS API Documentation
1014
1030
  #
@@ -1020,12 +1036,15 @@ module Aws::States
1020
1036
  end
1021
1037
 
1022
1038
  # Provides information about a Map Run's configuration, progress, and
1023
- # results. For more information, see [Examining Map Run][1] in the *Step
1024
- # Functions Developer Guide*.
1039
+ # results. If you've [redriven][1] a Map Run, this API action also
1040
+ # returns information about the redrives of that Map Run. For more
1041
+ # information, see [Examining Map Run][2] in the *Step Functions
1042
+ # Developer Guide*.
1025
1043
  #
1026
1044
  #
1027
1045
  #
1028
- # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html
1046
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/redrive-map-run.html
1047
+ # [2]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html
1029
1048
  #
1030
1049
  # @option params [required, String] :map_run_arn
1031
1050
  # The Amazon Resource Name (ARN) that identifies a Map Run.
@@ -1042,6 +1061,8 @@ module Aws::States
1042
1061
  # * {Types::DescribeMapRunOutput#tolerated_failure_count #tolerated_failure_count} => Integer
1043
1062
  # * {Types::DescribeMapRunOutput#item_counts #item_counts} => Types::MapRunItemCounts
1044
1063
  # * {Types::DescribeMapRunOutput#execution_counts #execution_counts} => Types::MapRunExecutionCounts
1064
+ # * {Types::DescribeMapRunOutput#redrive_count #redrive_count} => Integer
1065
+ # * {Types::DescribeMapRunOutput#redrive_date #redrive_date} => Time
1045
1066
  #
1046
1067
  # @example Request syntax with placeholder values
1047
1068
  #
@@ -1067,6 +1088,8 @@ module Aws::States
1067
1088
  # resp.item_counts.aborted #=> Integer
1068
1089
  # resp.item_counts.total #=> Integer
1069
1090
  # resp.item_counts.results_written #=> Integer
1091
+ # resp.item_counts.failures_not_redrivable #=> Integer
1092
+ # resp.item_counts.pending_redrive #=> Integer
1070
1093
  # resp.execution_counts.pending #=> Integer
1071
1094
  # resp.execution_counts.running #=> Integer
1072
1095
  # resp.execution_counts.succeeded #=> Integer
@@ -1075,6 +1098,10 @@ module Aws::States
1075
1098
  # resp.execution_counts.aborted #=> Integer
1076
1099
  # resp.execution_counts.total #=> Integer
1077
1100
  # resp.execution_counts.results_written #=> Integer
1101
+ # resp.execution_counts.failures_not_redrivable #=> Integer
1102
+ # resp.execution_counts.pending_redrive #=> Integer
1103
+ # resp.redrive_count #=> Integer
1104
+ # resp.redrive_date #=> Time
1078
1105
  #
1079
1106
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeMapRun AWS API Documentation
1080
1107
  #
@@ -1423,7 +1450,7 @@ module Aws::States
1423
1450
  #
1424
1451
  # resp.events #=> Array
1425
1452
  # resp.events[0].timestamp #=> Time
1426
- # resp.events[0].type #=> String, one of "ActivityFailed", "ActivityScheduled", "ActivityScheduleFailed", "ActivityStarted", "ActivitySucceeded", "ActivityTimedOut", "ChoiceStateEntered", "ChoiceStateExited", "ExecutionAborted", "ExecutionFailed", "ExecutionStarted", "ExecutionSucceeded", "ExecutionTimedOut", "FailStateEntered", "LambdaFunctionFailed", "LambdaFunctionScheduled", "LambdaFunctionScheduleFailed", "LambdaFunctionStarted", "LambdaFunctionStartFailed", "LambdaFunctionSucceeded", "LambdaFunctionTimedOut", "MapIterationAborted", "MapIterationFailed", "MapIterationStarted", "MapIterationSucceeded", "MapStateAborted", "MapStateEntered", "MapStateExited", "MapStateFailed", "MapStateStarted", "MapStateSucceeded", "ParallelStateAborted", "ParallelStateEntered", "ParallelStateExited", "ParallelStateFailed", "ParallelStateStarted", "ParallelStateSucceeded", "PassStateEntered", "PassStateExited", "SucceedStateEntered", "SucceedStateExited", "TaskFailed", "TaskScheduled", "TaskStarted", "TaskStartFailed", "TaskStateAborted", "TaskStateEntered", "TaskStateExited", "TaskSubmitFailed", "TaskSubmitted", "TaskSucceeded", "TaskTimedOut", "WaitStateAborted", "WaitStateEntered", "WaitStateExited", "MapRunAborted", "MapRunFailed", "MapRunStarted", "MapRunSucceeded"
1453
+ # resp.events[0].type #=> String, one of "ActivityFailed", "ActivityScheduled", "ActivityScheduleFailed", "ActivityStarted", "ActivitySucceeded", "ActivityTimedOut", "ChoiceStateEntered", "ChoiceStateExited", "ExecutionAborted", "ExecutionFailed", "ExecutionStarted", "ExecutionSucceeded", "ExecutionTimedOut", "FailStateEntered", "LambdaFunctionFailed", "LambdaFunctionScheduled", "LambdaFunctionScheduleFailed", "LambdaFunctionStarted", "LambdaFunctionStartFailed", "LambdaFunctionSucceeded", "LambdaFunctionTimedOut", "MapIterationAborted", "MapIterationFailed", "MapIterationStarted", "MapIterationSucceeded", "MapStateAborted", "MapStateEntered", "MapStateExited", "MapStateFailed", "MapStateStarted", "MapStateSucceeded", "ParallelStateAborted", "ParallelStateEntered", "ParallelStateExited", "ParallelStateFailed", "ParallelStateStarted", "ParallelStateSucceeded", "PassStateEntered", "PassStateExited", "SucceedStateEntered", "SucceedStateExited", "TaskFailed", "TaskScheduled", "TaskStarted", "TaskStartFailed", "TaskStateAborted", "TaskStateEntered", "TaskStateExited", "TaskSubmitFailed", "TaskSubmitted", "TaskSucceeded", "TaskTimedOut", "WaitStateAborted", "WaitStateEntered", "WaitStateExited", "MapRunAborted", "MapRunFailed", "MapRunStarted", "MapRunSucceeded", "ExecutionRedriven", "MapRunRedriven"
1427
1454
  # resp.events[0].id #=> Integer
1428
1455
  # resp.events[0].previous_event_id #=> Integer
1429
1456
  # resp.events[0].activity_failed_event_details.error #=> String
@@ -1486,6 +1513,7 @@ module Aws::States
1486
1513
  # resp.events[0].execution_aborted_event_details.cause #=> String
1487
1514
  # resp.events[0].execution_timed_out_event_details.error #=> String
1488
1515
  # resp.events[0].execution_timed_out_event_details.cause #=> String
1516
+ # resp.events[0].execution_redriven_event_details.redrive_count #=> Integer
1489
1517
  # resp.events[0].map_state_started_event_details.length #=> Integer
1490
1518
  # resp.events[0].map_iteration_started_event_details.name #=> String
1491
1519
  # resp.events[0].map_iteration_started_event_details.index #=> Integer
@@ -1519,6 +1547,8 @@ module Aws::States
1519
1547
  # resp.events[0].map_run_started_event_details.map_run_arn #=> String
1520
1548
  # resp.events[0].map_run_failed_event_details.error #=> String
1521
1549
  # resp.events[0].map_run_failed_event_details.cause #=> String
1550
+ # resp.events[0].map_run_redriven_event_details.map_run_arn #=> String
1551
+ # resp.events[0].map_run_redriven_event_details.redrive_count #=> Integer
1522
1552
  # resp.next_token #=> String
1523
1553
  #
1524
1554
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory AWS API Documentation
@@ -1594,9 +1624,10 @@ module Aws::States
1594
1624
  # Lists all executions of a state machine or a Map Run. You can list all
1595
1625
  # executions related to a state machine by specifying a state machine
1596
1626
  # Amazon Resource Name (ARN), or those related to a Map Run by
1597
- # specifying a Map Run ARN.
1627
+ # specifying a Map Run ARN. Using this API action, you can also list all
1628
+ # [redriven][1] executions.
1598
1629
  #
1599
- # You can also provide a state machine [alias][1] ARN or [version][2]
1630
+ # You can also provide a state machine [alias][2] ARN or [version][3]
1600
1631
  # ARN to list the executions associated with a specific alias or
1601
1632
  # version.
1602
1633
  #
@@ -1618,8 +1649,9 @@ module Aws::States
1618
1649
  #
1619
1650
  #
1620
1651
  #
1621
- # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-state-machine-alias.html
1622
- # [2]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-state-machine-version.html
1652
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/redrive-executions.html
1653
+ # [2]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-state-machine-alias.html
1654
+ # [3]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-state-machine-version.html
1623
1655
  #
1624
1656
  # @option params [String] :state_machine_arn
1625
1657
  # The Amazon Resource Name (ARN) of the state machine whose executions
@@ -1671,6 +1703,19 @@ module Aws::States
1671
1703
  #
1672
1704
  # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html
1673
1705
  #
1706
+ # @option params [String] :redrive_filter
1707
+ # Sets a filter to list executions based on whether or not they have
1708
+ # been redriven.
1709
+ #
1710
+ # For a Distributed Map, `redriveFilter` sets a filter to list child
1711
+ # workflow executions based on whether or not they have been redriven.
1712
+ #
1713
+ # If you do not provide a `redriveFilter`, Step Functions returns a list
1714
+ # of both redriven and non-redriven executions.
1715
+ #
1716
+ # If you provide a state machine ARN in `redriveFilter`, the API returns
1717
+ # a validation exception.
1718
+ #
1674
1719
  # @return [Types::ListExecutionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1675
1720
  #
1676
1721
  # * {Types::ListExecutionsOutput#executions #executions} => Array&lt;Types::ExecutionListItem&gt;
@@ -1682,10 +1727,11 @@ module Aws::States
1682
1727
  #
1683
1728
  # resp = client.list_executions({
1684
1729
  # state_machine_arn: "Arn",
1685
- # status_filter: "RUNNING", # accepts RUNNING, SUCCEEDED, FAILED, TIMED_OUT, ABORTED
1730
+ # status_filter: "RUNNING", # accepts RUNNING, SUCCEEDED, FAILED, TIMED_OUT, ABORTED, PENDING_REDRIVE
1686
1731
  # max_results: 1,
1687
1732
  # next_token: "ListExecutionsPageToken",
1688
1733
  # map_run_arn: "LongArn",
1734
+ # redrive_filter: "REDRIVEN", # accepts REDRIVEN, NOT_REDRIVEN
1689
1735
  # })
1690
1736
  #
1691
1737
  # @example Response structure
@@ -1694,13 +1740,15 @@ module Aws::States
1694
1740
  # resp.executions[0].execution_arn #=> String
1695
1741
  # resp.executions[0].state_machine_arn #=> String
1696
1742
  # resp.executions[0].name #=> String
1697
- # resp.executions[0].status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED"
1743
+ # resp.executions[0].status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED", "PENDING_REDRIVE"
1698
1744
  # resp.executions[0].start_date #=> Time
1699
1745
  # resp.executions[0].stop_date #=> Time
1700
1746
  # resp.executions[0].map_run_arn #=> String
1701
1747
  # resp.executions[0].item_count #=> Integer
1702
1748
  # resp.executions[0].state_machine_version_arn #=> String
1703
1749
  # resp.executions[0].state_machine_alias_arn #=> String
1750
+ # resp.executions[0].redrive_count #=> Integer
1751
+ # resp.executions[0].redrive_date #=> Time
1704
1752
  # resp.next_token #=> String
1705
1753
  #
1706
1754
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions AWS API Documentation
@@ -2095,12 +2143,109 @@ module Aws::States
2095
2143
  req.send_request(options)
2096
2144
  end
2097
2145
 
2098
- # Used by activity workers and task states using the [callback][1]
2099
- # pattern to report that the task identified by the `taskToken` failed.
2146
+ # Restarts unsuccessful executions of Standard workflows that didn't
2147
+ # complete successfully in the last 14 days. These include failed,
2148
+ # aborted, or timed out executions. When you [redrive][1] an execution,
2149
+ # it continues the failed execution from the unsuccessful step and uses
2150
+ # the same input. Step Functions preserves the results and execution
2151
+ # history of the successful steps, and doesn't rerun these steps when
2152
+ # you redrive an execution. Redriven executions use the same state
2153
+ # machine definition and execution ARN as the original execution
2154
+ # attempt.
2155
+ #
2156
+ # For workflows that include an [Inline Map][2] or [Parallel][3] state,
2157
+ # `RedriveExecution` API action reschedules and redrives only the
2158
+ # iterations and branches that failed or aborted.
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.
2164
+ #
2165
+ # <note markdown="1"> This API action is not supported by `EXPRESS` state machines.
2166
+ #
2167
+ # However, you can restart the unsuccessful executions of Express child
2168
+ # workflows in a Distributed Map by redriving its Map Run. When you
2169
+ # redrive a Map Run, the Express child workflows are rerun using the
2170
+ # StartExecution API action. For more information, see [Redriving Map
2171
+ # Runs][5].
2172
+ #
2173
+ # </note>
2174
+ #
2175
+ # You can redrive executions if your original execution meets the
2176
+ # following conditions:
2177
+ #
2178
+ # * The execution status isn't `SUCCEEDED`.
2179
+ #
2180
+ # * Your workflow execution has not exceeded the redrivable period of 14
2181
+ # days. Redrivable period refers to the time during which you can
2182
+ # redrive a given execution. This period starts from the day a state
2183
+ # machine completes its execution.
2184
+ #
2185
+ # * The workflow execution has not exceeded the maximum open time of one
2186
+ # year. For more information about state machine quotas, see [Quotas
2187
+ # related to state machine executions][6].
2188
+ #
2189
+ # * The execution event history count is less than 24,999. Redriven
2190
+ # executions append their event history to the existing event history.
2191
+ # Make sure your workflow execution contains less than 24,999 events
2192
+ # to accommodate the `ExecutionRedriven` history event and at least
2193
+ # one other history event.
2194
+ #
2195
+ #
2196
+ #
2197
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/redrive-executions.html
2198
+ # [2]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-map-state.html
2199
+ # [3]: https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-parallel-state.html
2200
+ # [4]: https://docs.aws.amazon.com/step-functions/latest/dg/use-dist-map-orchestrate-large-scale-parallel-workloads.html#dist-map-orchestrate-parallel-workloads-key-terms
2201
+ # [5]: https://docs.aws.amazon.com/step-functions/latest/dg/redrive-map-run.html
2202
+ # [6]: https://docs.aws.amazon.com/step-functions/latest/dg/limits-overview.html#service-limits-state-machine-executions
2203
+ #
2204
+ # @option params [required, String] :execution_arn
2205
+ # The Amazon Resource Name (ARN) of the execution to be redriven.
2206
+ #
2207
+ # @option params [String] :client_token
2208
+ # A unique, case-sensitive identifier that you provide to ensure the
2209
+ # idempotency of the request. If you don’t specify a client token, the
2210
+ # 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.
2213
+ #
2214
+ # **A suitable default value is auto-generated.** You should normally
2215
+ # not need to pass this option.**
2216
+ #
2217
+ # @return [Types::RedriveExecutionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2218
+ #
2219
+ # * {Types::RedriveExecutionOutput#redrive_date #redrive_date} => Time
2220
+ #
2221
+ # @example Request syntax with placeholder values
2222
+ #
2223
+ # resp = client.redrive_execution({
2224
+ # execution_arn: "Arn", # required
2225
+ # client_token: "ClientToken",
2226
+ # })
2227
+ #
2228
+ # @example Response structure
2229
+ #
2230
+ # resp.redrive_date #=> Time
2231
+ #
2232
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/RedriveExecution AWS API Documentation
2233
+ #
2234
+ # @overload redrive_execution(params = {})
2235
+ # @param [Hash] params ({})
2236
+ def redrive_execution(params = {}, options = {})
2237
+ req = build_request(:redrive_execution, params)
2238
+ req.send_request(options)
2239
+ end
2240
+
2241
+ # Used by activity workers, Task states using the [callback][1] pattern,
2242
+ # and optionally Task states using the [job run][2] pattern to report
2243
+ # that the task identified by the `taskToken` failed.
2100
2244
  #
2101
2245
  #
2102
2246
  #
2103
2247
  # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
2248
+ # [2]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
2104
2249
  #
2105
2250
  # @option params [required, String] :task_token
2106
2251
  # The token that represents this task. Task tokens are generated by Step
@@ -2137,16 +2282,17 @@ module Aws::States
2137
2282
  req.send_request(options)
2138
2283
  end
2139
2284
 
2140
- # Used by activity workers and task states using the [callback][1]
2141
- # pattern to report to Step Functions that the task represented by the
2142
- # specified `taskToken` is still making progress. This action resets the
2285
+ # Used by activity workers and Task states using the [callback][1]
2286
+ # pattern, and optionally Task states using the [job run][2] pattern to
2287
+ # report to Step Functions that the task represented by the specified
2288
+ # `taskToken` is still making progress. This action resets the
2143
2289
  # `Heartbeat` clock. The `Heartbeat` threshold is specified in the state
2144
2290
  # machine's Amazon States Language definition (`HeartbeatSeconds`).
2145
2291
  # This action does not in itself create an event in the execution
2146
2292
  # history. However, if the task times out, the execution history
2147
2293
  # contains an `ActivityTimedOut` entry for activities, or a
2148
- # `TaskTimedOut` entry for for tasks using the [job run][2] or
2149
- # [callback][1] pattern.
2294
+ # `TaskTimedOut` entry for tasks using the [job run][2] or [callback][1]
2295
+ # pattern.
2150
2296
  #
2151
2297
  # <note markdown="1"> The `Timeout` of a task, defined in the state machine's Amazon States
2152
2298
  # Language definition, is its maximum allowed duration, regardless of
@@ -2187,13 +2333,14 @@ module Aws::States
2187
2333
  req.send_request(options)
2188
2334
  end
2189
2335
 
2190
- # Used by activity workers and task states using the [callback][1]
2191
- # pattern to report that the task identified by the `taskToken`
2192
- # completed successfully.
2336
+ # Used by activity workers, Task states using the [callback][1] pattern,
2337
+ # and optionally Task states using the [job run][2] pattern to report
2338
+ # that the task identified by the `taskToken` completed successfully.
2193
2339
  #
2194
2340
  #
2195
2341
  #
2196
2342
  # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-wait-token
2343
+ # [2]: https://docs.aws.amazon.com/step-functions/latest/dg/connect-to-resource.html#connect-sync
2197
2344
  #
2198
2345
  # @option params [required, String] :task_token
2199
2346
  # The token that represents this task. Task tokens are generated by Step
@@ -2329,6 +2476,10 @@ module Aws::States
2329
2476
  # For more information, see [ Limits Related to State Machine
2330
2477
  # Executions][1] in the *Step Functions Developer Guide*.
2331
2478
  #
2479
+ # If you don't provide a name for the execution, Step Functions
2480
+ # automatically generates a universally unique identifier (UUID) as the
2481
+ # execution name.
2482
+ #
2332
2483
  # A name must *not* contain:
2333
2484
  #
2334
2485
  # * white space
@@ -2867,7 +3018,7 @@ module Aws::States
2867
3018
  params: params,
2868
3019
  config: config)
2869
3020
  context[:gem_name] = 'aws-sdk-states'
2870
- context[:gem_version] = '1.59.0'
3021
+ context[:gem_version] = '1.60.0'
2871
3022
  Seahorse::Client::Request.new(handlers, context)
2872
3023
  end
2873
3024
 
@@ -30,6 +30,7 @@ module Aws::States
30
30
  BilledMemoryUsed = Shapes::IntegerShape.new(name: 'BilledMemoryUsed')
31
31
  BillingDetails = Shapes::StructureShape.new(name: 'BillingDetails')
32
32
  CharacterRestrictedName = Shapes::StringShape.new(name: 'CharacterRestrictedName')
33
+ ClientToken = Shapes::StringShape.new(name: 'ClientToken')
33
34
  CloudWatchEventsExecutionDataDetails = Shapes::StructureShape.new(name: 'CloudWatchEventsExecutionDataDetails')
34
35
  CloudWatchLogsLogGroup = Shapes::StructureShape.new(name: 'CloudWatchLogsLogGroup')
35
36
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
@@ -71,6 +72,10 @@ module Aws::States
71
72
  ExecutionLimitExceeded = Shapes::StructureShape.new(name: 'ExecutionLimitExceeded')
72
73
  ExecutionList = Shapes::ListShape.new(name: 'ExecutionList')
73
74
  ExecutionListItem = Shapes::StructureShape.new(name: 'ExecutionListItem')
75
+ ExecutionNotRedrivable = Shapes::StructureShape.new(name: 'ExecutionNotRedrivable')
76
+ ExecutionRedriveFilter = Shapes::StringShape.new(name: 'ExecutionRedriveFilter')
77
+ ExecutionRedriveStatus = Shapes::StringShape.new(name: 'ExecutionRedriveStatus')
78
+ ExecutionRedrivenEventDetails = Shapes::StructureShape.new(name: 'ExecutionRedrivenEventDetails')
74
79
  ExecutionStartedEventDetails = Shapes::StructureShape.new(name: 'ExecutionStartedEventDetails')
75
80
  ExecutionStatus = Shapes::StringShape.new(name: 'ExecutionStatus')
76
81
  ExecutionSucceededEventDetails = Shapes::StructureShape.new(name: 'ExecutionSucceededEventDetails')
@@ -120,6 +125,7 @@ module Aws::States
120
125
  LogLevel = Shapes::StringShape.new(name: 'LogLevel')
121
126
  LoggingConfiguration = Shapes::StructureShape.new(name: 'LoggingConfiguration')
122
127
  LongArn = Shapes::StringShape.new(name: 'LongArn')
128
+ LongObject = Shapes::IntegerShape.new(name: 'LongObject')
123
129
  MapIterationEventDetails = Shapes::StructureShape.new(name: 'MapIterationEventDetails')
124
130
  MapRunExecutionCounts = Shapes::StructureShape.new(name: 'MapRunExecutionCounts')
125
131
  MapRunFailedEventDetails = Shapes::StructureShape.new(name: 'MapRunFailedEventDetails')
@@ -127,6 +133,7 @@ module Aws::States
127
133
  MapRunLabel = Shapes::StringShape.new(name: 'MapRunLabel')
128
134
  MapRunList = Shapes::ListShape.new(name: 'MapRunList')
129
135
  MapRunListItem = Shapes::StructureShape.new(name: 'MapRunListItem')
136
+ MapRunRedrivenEventDetails = Shapes::StructureShape.new(name: 'MapRunRedrivenEventDetails')
130
137
  MapRunStartedEventDetails = Shapes::StructureShape.new(name: 'MapRunStartedEventDetails')
131
138
  MapRunStatus = Shapes::StringShape.new(name: 'MapRunStatus')
132
139
  MapStateStartedEventDetails = Shapes::StructureShape.new(name: 'MapStateStartedEventDetails')
@@ -138,6 +145,9 @@ module Aws::States
138
145
  Publish = Shapes::BooleanShape.new(name: 'Publish')
139
146
  PublishStateMachineVersionInput = Shapes::StructureShape.new(name: 'PublishStateMachineVersionInput')
140
147
  PublishStateMachineVersionOutput = Shapes::StructureShape.new(name: 'PublishStateMachineVersionOutput')
148
+ RedriveCount = Shapes::IntegerShape.new(name: 'RedriveCount')
149
+ RedriveExecutionInput = Shapes::StructureShape.new(name: 'RedriveExecutionInput')
150
+ RedriveExecutionOutput = Shapes::StructureShape.new(name: 'RedriveExecutionOutput')
141
151
  ResourceNotFound = Shapes::StructureShape.new(name: 'ResourceNotFound')
142
152
  ReverseOrder = Shapes::BooleanShape.new(name: 'ReverseOrder')
143
153
  RevisionId = Shapes::StringShape.new(name: 'RevisionId')
@@ -354,6 +364,10 @@ module Aws::States
354
364
  DescribeExecutionOutput.add_member(:cause, Shapes::ShapeRef.new(shape: SensitiveCause, location_name: "cause"))
355
365
  DescribeExecutionOutput.add_member(:state_machine_version_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "stateMachineVersionArn"))
356
366
  DescribeExecutionOutput.add_member(:state_machine_alias_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "stateMachineAliasArn"))
367
+ DescribeExecutionOutput.add_member(:redrive_count, Shapes::ShapeRef.new(shape: RedriveCount, location_name: "redriveCount"))
368
+ DescribeExecutionOutput.add_member(:redrive_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "redriveDate"))
369
+ DescribeExecutionOutput.add_member(:redrive_status, Shapes::ShapeRef.new(shape: ExecutionRedriveStatus, location_name: "redriveStatus"))
370
+ DescribeExecutionOutput.add_member(:redrive_status_reason, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "redriveStatusReason"))
357
371
  DescribeExecutionOutput.struct_class = Types::DescribeExecutionOutput
358
372
 
359
373
  DescribeMapRunInput.add_member(:map_run_arn, Shapes::ShapeRef.new(shape: LongArn, required: true, location_name: "mapRunArn"))
@@ -369,6 +383,8 @@ module Aws::States
369
383
  DescribeMapRunOutput.add_member(:tolerated_failure_count, Shapes::ShapeRef.new(shape: ToleratedFailureCount, required: true, location_name: "toleratedFailureCount"))
370
384
  DescribeMapRunOutput.add_member(:item_counts, Shapes::ShapeRef.new(shape: MapRunItemCounts, required: true, location_name: "itemCounts"))
371
385
  DescribeMapRunOutput.add_member(:execution_counts, Shapes::ShapeRef.new(shape: MapRunExecutionCounts, required: true, location_name: "executionCounts"))
386
+ DescribeMapRunOutput.add_member(:redrive_count, Shapes::ShapeRef.new(shape: RedriveCount, location_name: "redriveCount"))
387
+ DescribeMapRunOutput.add_member(:redrive_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "redriveDate"))
372
388
  DescribeMapRunOutput.struct_class = Types::DescribeMapRunOutput
373
389
 
374
390
  DescribeStateMachineAliasInput.add_member(:state_machine_alias_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "stateMachineAliasArn"))
@@ -443,8 +459,16 @@ module Aws::States
443
459
  ExecutionListItem.add_member(:item_count, Shapes::ShapeRef.new(shape: UnsignedInteger, location_name: "itemCount", metadata: {"box"=>true}))
444
460
  ExecutionListItem.add_member(:state_machine_version_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "stateMachineVersionArn"))
445
461
  ExecutionListItem.add_member(:state_machine_alias_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "stateMachineAliasArn"))
462
+ ExecutionListItem.add_member(:redrive_count, Shapes::ShapeRef.new(shape: RedriveCount, location_name: "redriveCount", metadata: {"box"=>true}))
463
+ ExecutionListItem.add_member(:redrive_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "redriveDate"))
446
464
  ExecutionListItem.struct_class = Types::ExecutionListItem
447
465
 
466
+ ExecutionNotRedrivable.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
467
+ ExecutionNotRedrivable.struct_class = Types::ExecutionNotRedrivable
468
+
469
+ ExecutionRedrivenEventDetails.add_member(:redrive_count, Shapes::ShapeRef.new(shape: RedriveCount, location_name: "redriveCount"))
470
+ ExecutionRedrivenEventDetails.struct_class = Types::ExecutionRedrivenEventDetails
471
+
448
472
  ExecutionStartedEventDetails.add_member(:input, Shapes::ShapeRef.new(shape: SensitiveData, location_name: "input"))
449
473
  ExecutionStartedEventDetails.add_member(:input_details, Shapes::ShapeRef.new(shape: HistoryEventExecutionDataDetails, location_name: "inputDetails"))
450
474
  ExecutionStartedEventDetails.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, location_name: "roleArn"))
@@ -502,6 +526,7 @@ module Aws::States
502
526
  HistoryEvent.add_member(:execution_succeeded_event_details, Shapes::ShapeRef.new(shape: ExecutionSucceededEventDetails, location_name: "executionSucceededEventDetails"))
503
527
  HistoryEvent.add_member(:execution_aborted_event_details, Shapes::ShapeRef.new(shape: ExecutionAbortedEventDetails, location_name: "executionAbortedEventDetails"))
504
528
  HistoryEvent.add_member(:execution_timed_out_event_details, Shapes::ShapeRef.new(shape: ExecutionTimedOutEventDetails, location_name: "executionTimedOutEventDetails"))
529
+ HistoryEvent.add_member(:execution_redriven_event_details, Shapes::ShapeRef.new(shape: ExecutionRedrivenEventDetails, location_name: "executionRedrivenEventDetails"))
505
530
  HistoryEvent.add_member(:map_state_started_event_details, Shapes::ShapeRef.new(shape: MapStateStartedEventDetails, location_name: "mapStateStartedEventDetails"))
506
531
  HistoryEvent.add_member(:map_iteration_started_event_details, Shapes::ShapeRef.new(shape: MapIterationEventDetails, location_name: "mapIterationStartedEventDetails"))
507
532
  HistoryEvent.add_member(:map_iteration_succeeded_event_details, Shapes::ShapeRef.new(shape: MapIterationEventDetails, location_name: "mapIterationSucceededEventDetails"))
@@ -517,6 +542,7 @@ module Aws::States
517
542
  HistoryEvent.add_member(:state_exited_event_details, Shapes::ShapeRef.new(shape: StateExitedEventDetails, location_name: "stateExitedEventDetails"))
518
543
  HistoryEvent.add_member(:map_run_started_event_details, Shapes::ShapeRef.new(shape: MapRunStartedEventDetails, location_name: "mapRunStartedEventDetails"))
519
544
  HistoryEvent.add_member(:map_run_failed_event_details, Shapes::ShapeRef.new(shape: MapRunFailedEventDetails, location_name: "mapRunFailedEventDetails"))
545
+ HistoryEvent.add_member(:map_run_redriven_event_details, Shapes::ShapeRef.new(shape: MapRunRedrivenEventDetails, location_name: "mapRunRedrivenEventDetails"))
520
546
  HistoryEvent.struct_class = Types::HistoryEvent
521
547
 
522
548
  HistoryEventExecutionDataDetails.add_member(:truncated, Shapes::ShapeRef.new(shape: truncated, location_name: "truncated"))
@@ -588,6 +614,7 @@ module Aws::States
588
614
  ListExecutionsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: PageSize, location_name: "maxResults"))
589
615
  ListExecutionsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: ListExecutionsPageToken, location_name: "nextToken"))
590
616
  ListExecutionsInput.add_member(:map_run_arn, Shapes::ShapeRef.new(shape: LongArn, location_name: "mapRunArn"))
617
+ ListExecutionsInput.add_member(:redrive_filter, Shapes::ShapeRef.new(shape: ExecutionRedriveFilter, location_name: "redriveFilter"))
591
618
  ListExecutionsInput.struct_class = Types::ListExecutionsInput
592
619
 
593
620
  ListExecutionsOutput.add_member(:executions, Shapes::ShapeRef.new(shape: ExecutionList, required: true, location_name: "executions"))
@@ -657,6 +684,8 @@ module Aws::States
657
684
  MapRunExecutionCounts.add_member(:aborted, Shapes::ShapeRef.new(shape: UnsignedLong, required: true, location_name: "aborted"))
658
685
  MapRunExecutionCounts.add_member(:total, Shapes::ShapeRef.new(shape: UnsignedLong, required: true, location_name: "total"))
659
686
  MapRunExecutionCounts.add_member(:results_written, Shapes::ShapeRef.new(shape: UnsignedLong, required: true, location_name: "resultsWritten"))
687
+ MapRunExecutionCounts.add_member(:failures_not_redrivable, Shapes::ShapeRef.new(shape: LongObject, location_name: "failuresNotRedrivable"))
688
+ MapRunExecutionCounts.add_member(:pending_redrive, Shapes::ShapeRef.new(shape: LongObject, location_name: "pendingRedrive"))
660
689
  MapRunExecutionCounts.struct_class = Types::MapRunExecutionCounts
661
690
 
662
691
  MapRunFailedEventDetails.add_member(:error, Shapes::ShapeRef.new(shape: SensitiveError, location_name: "error"))
@@ -671,6 +700,8 @@ module Aws::States
671
700
  MapRunItemCounts.add_member(:aborted, Shapes::ShapeRef.new(shape: UnsignedLong, required: true, location_name: "aborted"))
672
701
  MapRunItemCounts.add_member(:total, Shapes::ShapeRef.new(shape: UnsignedLong, required: true, location_name: "total"))
673
702
  MapRunItemCounts.add_member(:results_written, Shapes::ShapeRef.new(shape: UnsignedLong, required: true, location_name: "resultsWritten"))
703
+ MapRunItemCounts.add_member(:failures_not_redrivable, Shapes::ShapeRef.new(shape: LongObject, location_name: "failuresNotRedrivable"))
704
+ MapRunItemCounts.add_member(:pending_redrive, Shapes::ShapeRef.new(shape: LongObject, location_name: "pendingRedrive"))
674
705
  MapRunItemCounts.struct_class = Types::MapRunItemCounts
675
706
 
676
707
  MapRunList.member = Shapes::ShapeRef.new(shape: MapRunListItem)
@@ -682,6 +713,10 @@ module Aws::States
682
713
  MapRunListItem.add_member(:stop_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "stopDate"))
683
714
  MapRunListItem.struct_class = Types::MapRunListItem
684
715
 
716
+ MapRunRedrivenEventDetails.add_member(:map_run_arn, Shapes::ShapeRef.new(shape: LongArn, location_name: "mapRunArn"))
717
+ MapRunRedrivenEventDetails.add_member(:redrive_count, Shapes::ShapeRef.new(shape: RedriveCount, location_name: "redriveCount"))
718
+ MapRunRedrivenEventDetails.struct_class = Types::MapRunRedrivenEventDetails
719
+
685
720
  MapRunStartedEventDetails.add_member(:map_run_arn, Shapes::ShapeRef.new(shape: LongArn, location_name: "mapRunArn"))
686
721
  MapRunStartedEventDetails.struct_class = Types::MapRunStartedEventDetails
687
722
 
@@ -700,6 +735,13 @@ module Aws::States
700
735
  PublishStateMachineVersionOutput.add_member(:state_machine_version_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "stateMachineVersionArn"))
701
736
  PublishStateMachineVersionOutput.struct_class = Types::PublishStateMachineVersionOutput
702
737
 
738
+ RedriveExecutionInput.add_member(:execution_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "executionArn"))
739
+ RedriveExecutionInput.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
740
+ RedriveExecutionInput.struct_class = Types::RedriveExecutionInput
741
+
742
+ RedriveExecutionOutput.add_member(:redrive_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "redriveDate"))
743
+ RedriveExecutionOutput.struct_class = Types::RedriveExecutionOutput
744
+
703
745
  ResourceNotFound.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
704
746
  ResourceNotFound.add_member(:resource_name, Shapes::ShapeRef.new(shape: Arn, location_name: "resourceName"))
705
747
  ResourceNotFound.struct_class = Types::ResourceNotFound
@@ -1246,6 +1288,18 @@ module Aws::States
1246
1288
  o.errors << Shapes::ShapeRef.new(shape: InvalidArn)
1247
1289
  end)
1248
1290
 
1291
+ api.add_operation(:redrive_execution, Seahorse::Model::Operation.new.tap do |o|
1292
+ o.name = "RedriveExecution"
1293
+ o.http_method = "POST"
1294
+ o.http_request_uri = "/"
1295
+ o.input = Shapes::ShapeRef.new(shape: RedriveExecutionInput)
1296
+ o.output = Shapes::ShapeRef.new(shape: RedriveExecutionOutput)
1297
+ o.errors << Shapes::ShapeRef.new(shape: ExecutionDoesNotExist)
1298
+ o.errors << Shapes::ShapeRef.new(shape: ExecutionNotRedrivable)
1299
+ o.errors << Shapes::ShapeRef.new(shape: ExecutionLimitExceeded)
1300
+ o.errors << Shapes::ShapeRef.new(shape: InvalidArn)
1301
+ end)
1302
+
1249
1303
  api.add_operation(:send_task_failure, Seahorse::Model::Operation.new.tap do |o|
1250
1304
  o.name = "SendTaskFailure"
1251
1305
  o.http_method = "POST"
@@ -32,7 +32,7 @@ module Aws::States
32
32
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
33
  end
34
34
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
36
  if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
37
37
  return Aws::Endpoints::Endpoint.new(url: "https://states.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
38
38
  end
@@ -334,6 +334,20 @@ module Aws::States
334
334
  end
335
335
  end
336
336
 
337
+ class RedriveExecution
338
+ def self.build(context)
339
+ unless context.config.regional_endpoint
340
+ endpoint = context.config.endpoint.to_s
341
+ end
342
+ Aws::States::EndpointParameters.new(
343
+ region: context.config.region,
344
+ use_dual_stack: context.config.use_dualstack_endpoint,
345
+ use_fips: context.config.use_fips_endpoint,
346
+ endpoint: endpoint,
347
+ )
348
+ end
349
+ end
350
+
337
351
  class SendTaskFailure
338
352
  def self.build(context)
339
353
  unless context.config.regional_endpoint
@@ -34,6 +34,7 @@ module Aws::States
34
34
  # * {ExecutionAlreadyExists}
35
35
  # * {ExecutionDoesNotExist}
36
36
  # * {ExecutionLimitExceeded}
37
+ # * {ExecutionNotRedrivable}
37
38
  # * {InvalidArn}
38
39
  # * {InvalidDefinition}
39
40
  # * {InvalidExecutionInput}
@@ -166,6 +167,21 @@ module Aws::States
166
167
  end
167
168
  end
168
169
 
170
+ class ExecutionNotRedrivable < ServiceError
171
+
172
+ # @param [Seahorse::Client::RequestContext] context
173
+ # @param [String] message
174
+ # @param [Aws::States::Types::ExecutionNotRedrivable] data
175
+ def initialize(context, message, data = Aws::EmptyStructure.new)
176
+ super(context, message, data)
177
+ end
178
+
179
+ # @return [String]
180
+ def message
181
+ @message || @data[:message]
182
+ end
183
+ end
184
+
169
185
  class InvalidArn < ServiceError
170
186
 
171
187
  # @param [Seahorse::Client::RequestContext] context
@@ -102,6 +102,8 @@ module Aws::States
102
102
  Aws::States::Endpoints::ListTagsForResource.build(context)
103
103
  when :publish_state_machine_version
104
104
  Aws::States::Endpoints::PublishStateMachineVersion.build(context)
105
+ when :redrive_execution
106
+ Aws::States::Endpoints::RedriveExecution.build(context)
105
107
  when :send_task_failure
106
108
  Aws::States::Endpoints::SendTaskFailure.build(context)
107
109
  when :send_task_heartbeat
@@ -756,6 +756,74 @@ module Aws::States
756
756
  # state machine version ARN, this field will be null.
757
757
  # @return [String]
758
758
  #
759
+ # @!attribute [rw] redrive_count
760
+ # The number of times you've redriven an execution. If you have not
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.
764
+ # @return [Integer]
765
+ #
766
+ # @!attribute [rw] redrive_date
767
+ # The date the execution was last redriven. If you have not yet
768
+ # redriven an execution, the `redriveDate` is null.
769
+ #
770
+ # The `redriveDate` is unavailable if you redrive a Map Run that
771
+ # starts child workflow executions of type `EXPRESS`.
772
+ # @return [Time]
773
+ #
774
+ # @!attribute [rw] redrive_status
775
+ # Indicates whether or not an execution can be redriven at a given
776
+ # point in time.
777
+ #
778
+ # * For executions of type `STANDARD`, `redriveStatus` is
779
+ # `NOT_REDRIVABLE` if calling the RedriveExecution API action would
780
+ # return the `ExecutionNotRedrivable` error.
781
+ #
782
+ # * For a Distributed Map that includes child workflows of type
783
+ # `STANDARD`, `redriveStatus` indicates whether or not the Map Run
784
+ # can redrive child workflow executions.
785
+ #
786
+ # * For a Distributed Map that includes child workflows of type
787
+ # `EXPRESS`, `redriveStatus` indicates whether or not the Map Run
788
+ # can redrive child workflow executions.
789
+ #
790
+ # You can redrive failed or timed out `EXPRESS` workflows *only if*
791
+ # they're a part of a Map Run. When you [redrive][1] the Map Run,
792
+ # these workflows are restarted using the StartExecution API action.
793
+ #
794
+ #
795
+ #
796
+ # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/redrive-map-run.html
797
+ # @return [String]
798
+ #
799
+ # @!attribute [rw] redrive_status_reason
800
+ # When `redriveStatus` is `NOT_REDRIVABLE`, `redriveStatusReason`
801
+ # specifies the reason why an execution cannot be redriven.
802
+ #
803
+ # * For executions of type `STANDARD`, or for a Distributed Map that
804
+ # includes child workflows of type `STANDARD`, `redriveStatusReason`
805
+ # can include one of the following reasons:
806
+ #
807
+ # * `State machine is in DELETING status`.
808
+ #
809
+ # * `Execution is RUNNING and cannot be redriven`.
810
+ #
811
+ # * `Execution is SUCCEEDED and cannot be redriven`.
812
+ #
813
+ # * `Execution was started before the launch of RedriveExecution`.
814
+ #
815
+ # * `Execution history event limit exceeded`.
816
+ #
817
+ # * `Execution has exceeded the max execution time`.
818
+ #
819
+ # * `Execution redrivable period exceeded`.
820
+ #
821
+ # * For a Distributed Map that includes child workflows of type
822
+ # `EXPRESS`, `redriveStatusReason` is only returned if the child
823
+ # workflows are not redrivable. This happens when the child workflow
824
+ # executions have completed successfully.
825
+ # @return [String]
826
+ #
759
827
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecutionOutput AWS API Documentation
760
828
  #
761
829
  class DescribeExecutionOutput < Struct.new(
@@ -774,8 +842,12 @@ module Aws::States
774
842
  :error,
775
843
  :cause,
776
844
  :state_machine_version_arn,
777
- :state_machine_alias_arn)
778
- SENSITIVE = [:input, :output, :error, :cause]
845
+ :state_machine_alias_arn,
846
+ :redrive_count,
847
+ :redrive_date,
848
+ :redrive_status,
849
+ :redrive_status_reason)
850
+ SENSITIVE = [:input, :output, :error, :cause, :redrive_status_reason]
779
851
  include Aws::Structure
780
852
  end
781
853
 
@@ -840,6 +912,18 @@ module Aws::States
840
912
  # `succeeded`.
841
913
  # @return [Types::MapRunExecutionCounts]
842
914
  #
915
+ # @!attribute [rw] redrive_count
916
+ # 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.
920
+ # @return [Integer]
921
+ #
922
+ # @!attribute [rw] redrive_date
923
+ # The date a Map Run was last redriven. If you have not yet redriven a
924
+ # Map Run, the `redriveDate` is null.
925
+ # @return [Time]
926
+ #
843
927
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeMapRunOutput AWS API Documentation
844
928
  #
845
929
  class DescribeMapRunOutput < Struct.new(
@@ -852,7 +936,9 @@ module Aws::States
852
936
  :tolerated_failure_percentage,
853
937
  :tolerated_failure_count,
854
938
  :item_counts,
855
- :execution_counts)
939
+ :execution_counts,
940
+ :redrive_count,
941
+ :redrive_date)
856
942
  SENSITIVE = []
857
943
  include Aws::Structure
858
944
  end
@@ -1282,6 +1368,17 @@ module Aws::States
1282
1368
  # or a version ARN, it returns null.
1283
1369
  # @return [String]
1284
1370
  #
1371
+ # @!attribute [rw] redrive_count
1372
+ # The number of times you've redriven an execution. If you have not
1373
+ # 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.
1376
+ # @return [Integer]
1377
+ #
1378
+ # @!attribute [rw] redrive_date
1379
+ # The date the execution was last redriven.
1380
+ # @return [Time]
1381
+ #
1285
1382
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionListItem AWS API Documentation
1286
1383
  #
1287
1384
  class ExecutionListItem < Struct.new(
@@ -1294,7 +1391,40 @@ module Aws::States
1294
1391
  :map_run_arn,
1295
1392
  :item_count,
1296
1393
  :state_machine_version_arn,
1297
- :state_machine_alias_arn)
1394
+ :state_machine_alias_arn,
1395
+ :redrive_count,
1396
+ :redrive_date)
1397
+ SENSITIVE = []
1398
+ include Aws::Structure
1399
+ end
1400
+
1401
+ # The execution Amazon Resource Name (ARN) that you specified for
1402
+ # `executionArn` cannot be redriven.
1403
+ #
1404
+ # @!attribute [rw] message
1405
+ # @return [String]
1406
+ #
1407
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionNotRedrivable AWS API Documentation
1408
+ #
1409
+ class ExecutionNotRedrivable < Struct.new(
1410
+ :message)
1411
+ SENSITIVE = []
1412
+ include Aws::Structure
1413
+ end
1414
+
1415
+ # Contains details about a redriven execution.
1416
+ #
1417
+ # @!attribute [rw] redrive_count
1418
+ # The number of times you've redriven an execution. If you have not
1419
+ # yet redriven an execution, the `redriveCount` is 0. This count is
1420
+ # not updated for redrives that failed to start or are pending to be
1421
+ # redriven.
1422
+ # @return [Integer]
1423
+ #
1424
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ExecutionRedrivenEventDetails AWS API Documentation
1425
+ #
1426
+ class ExecutionRedrivenEventDetails < Struct.new(
1427
+ :redrive_count)
1298
1428
  SENSITIVE = []
1299
1429
  include Aws::Structure
1300
1430
  end
@@ -1584,6 +1714,10 @@ module Aws::States
1584
1714
  # the execution.
1585
1715
  # @return [Types::ExecutionTimedOutEventDetails]
1586
1716
  #
1717
+ # @!attribute [rw] execution_redriven_event_details
1718
+ # Contains details about the redrive attempt of an execution.
1719
+ # @return [Types::ExecutionRedrivenEventDetails]
1720
+ #
1587
1721
  # @!attribute [rw] map_state_started_event_details
1588
1722
  # Contains details about Map state that was started.
1589
1723
  # @return [Types::MapStateStartedEventDetails]
@@ -1652,6 +1786,10 @@ module Aws::States
1652
1786
  # Contains error and cause details about a Map Run that failed.
1653
1787
  # @return [Types::MapRunFailedEventDetails]
1654
1788
  #
1789
+ # @!attribute [rw] map_run_redriven_event_details
1790
+ # Contains details about the redrive attempt of a Map Run.
1791
+ # @return [Types::MapRunRedrivenEventDetails]
1792
+ #
1655
1793
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/HistoryEvent AWS API Documentation
1656
1794
  #
1657
1795
  class HistoryEvent < Struct.new(
@@ -1678,6 +1816,7 @@ module Aws::States
1678
1816
  :execution_succeeded_event_details,
1679
1817
  :execution_aborted_event_details,
1680
1818
  :execution_timed_out_event_details,
1819
+ :execution_redriven_event_details,
1681
1820
  :map_state_started_event_details,
1682
1821
  :map_iteration_started_event_details,
1683
1822
  :map_iteration_succeeded_event_details,
@@ -1692,7 +1831,8 @@ module Aws::States
1692
1831
  :state_entered_event_details,
1693
1832
  :state_exited_event_details,
1694
1833
  :map_run_started_event_details,
1695
- :map_run_failed_event_details)
1834
+ :map_run_failed_event_details,
1835
+ :map_run_redriven_event_details)
1696
1836
  SENSITIVE = []
1697
1837
  include Aws::Structure
1698
1838
  end
@@ -2059,6 +2199,20 @@ module Aws::States
2059
2199
  # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/concepts-examine-map-run.html
2060
2200
  # @return [String]
2061
2201
  #
2202
+ # @!attribute [rw] redrive_filter
2203
+ # Sets a filter to list executions based on whether or not they have
2204
+ # been redriven.
2205
+ #
2206
+ # For a Distributed Map, `redriveFilter` sets a filter to list child
2207
+ # workflow executions based on whether or not they have been redriven.
2208
+ #
2209
+ # If you do not provide a `redriveFilter`, Step Functions returns a
2210
+ # list of both redriven and non-redriven executions.
2211
+ #
2212
+ # If you provide a state machine ARN in `redriveFilter`, the API
2213
+ # returns a validation exception.
2214
+ # @return [String]
2215
+ #
2062
2216
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutionsInput AWS API Documentation
2063
2217
  #
2064
2218
  class ListExecutionsInput < Struct.new(
@@ -2066,7 +2220,8 @@ module Aws::States
2066
2220
  :status_filter,
2067
2221
  :max_results,
2068
2222
  :next_token,
2069
- :map_run_arn)
2223
+ :map_run_arn,
2224
+ :redrive_filter)
2070
2225
  SENSITIVE = []
2071
2226
  include Aws::Structure
2072
2227
  end
@@ -2452,6 +2607,21 @@ module Aws::States
2452
2607
  # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultwriter.html
2453
2608
  # @return [Integer]
2454
2609
  #
2610
+ # @!attribute [rw] failures_not_redrivable
2611
+ # The number of `FAILED`, `ABORTED`, or `TIMED_OUT` child workflow
2612
+ # 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.
2616
+ # @return [Integer]
2617
+ #
2618
+ # @!attribute [rw] pending_redrive
2619
+ # The number of unsuccessful child workflow executions currently
2620
+ # waiting to be redriven. The status of these child workflow
2621
+ # executions could be `FAILED`, `ABORTED`, or `TIMED_OUT` in the
2622
+ # original execution attempt or a previous redrive attempt.
2623
+ # @return [Integer]
2624
+ #
2455
2625
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/MapRunExecutionCounts AWS API Documentation
2456
2626
  #
2457
2627
  class MapRunExecutionCounts < Struct.new(
@@ -2462,7 +2632,9 @@ module Aws::States
2462
2632
  :timed_out,
2463
2633
  :aborted,
2464
2634
  :total,
2465
- :results_written)
2635
+ :results_written,
2636
+ :failures_not_redrivable,
2637
+ :pending_redrive)
2466
2638
  SENSITIVE = []
2467
2639
  include Aws::Structure
2468
2640
  end
@@ -2536,6 +2708,20 @@ module Aws::States
2536
2708
  # [1]: https://docs.aws.amazon.com/step-functions/latest/dg/input-output-resultwriter.html
2537
2709
  # @return [Integer]
2538
2710
  #
2711
+ # @!attribute [rw] failures_not_redrivable
2712
+ # The number of `FAILED`, `ABORTED`, or `TIMED_OUT` items in child
2713
+ # 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.
2718
+ # @return [Integer]
2719
+ #
2720
+ # @!attribute [rw] pending_redrive
2721
+ # The number of unsuccessful items in child workflow executions
2722
+ # currently waiting to be redriven.
2723
+ # @return [Integer]
2724
+ #
2539
2725
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/MapRunItemCounts AWS API Documentation
2540
2726
  #
2541
2727
  class MapRunItemCounts < Struct.new(
@@ -2546,7 +2732,9 @@ module Aws::States
2546
2732
  :timed_out,
2547
2733
  :aborted,
2548
2734
  :total,
2549
- :results_written)
2735
+ :results_written,
2736
+ :failures_not_redrivable,
2737
+ :pending_redrive)
2550
2738
  SENSITIVE = []
2551
2739
  include Aws::Structure
2552
2740
  end
@@ -2586,6 +2774,27 @@ module Aws::States
2586
2774
  include Aws::Structure
2587
2775
  end
2588
2776
 
2777
+ # Contains details about a Map Run that was redriven.
2778
+ #
2779
+ # @!attribute [rw] map_run_arn
2780
+ # The Amazon Resource Name (ARN) of a Map Run that was redriven.
2781
+ # @return [String]
2782
+ #
2783
+ # @!attribute [rw] redrive_count
2784
+ # The number of times the Map Run has been redriven at this point in
2785
+ # the execution's history including this event. The redrive count for
2786
+ # a redriven Map Run is always greater than 0.
2787
+ # @return [Integer]
2788
+ #
2789
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/MapRunRedrivenEventDetails AWS API Documentation
2790
+ #
2791
+ class MapRunRedrivenEventDetails < Struct.new(
2792
+ :map_run_arn,
2793
+ :redrive_count)
2794
+ SENSITIVE = []
2795
+ include Aws::Structure
2796
+ end
2797
+
2589
2798
  # Contains details about a Map Run that was started during a state
2590
2799
  # machine execution.
2591
2800
  #
@@ -2683,6 +2892,42 @@ module Aws::States
2683
2892
  include Aws::Structure
2684
2893
  end
2685
2894
 
2895
+ # @!attribute [rw] execution_arn
2896
+ # The Amazon Resource Name (ARN) of the execution to be redriven.
2897
+ # @return [String]
2898
+ #
2899
+ # @!attribute [rw] client_token
2900
+ # A unique, case-sensitive identifier that you provide to ensure the
2901
+ # idempotency of the request. If you don’t specify a client token, the
2902
+ # 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.
2905
+ #
2906
+ # **A suitable default value is auto-generated.** You should normally
2907
+ # not need to pass this option.
2908
+ # @return [String]
2909
+ #
2910
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/RedriveExecutionInput AWS API Documentation
2911
+ #
2912
+ class RedriveExecutionInput < Struct.new(
2913
+ :execution_arn,
2914
+ :client_token)
2915
+ SENSITIVE = []
2916
+ include Aws::Structure
2917
+ end
2918
+
2919
+ # @!attribute [rw] redrive_date
2920
+ # The date the execution was last redriven.
2921
+ # @return [Time]
2922
+ #
2923
+ # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/RedriveExecutionOutput AWS API Documentation
2924
+ #
2925
+ class RedriveExecutionOutput < Struct.new(
2926
+ :redrive_date)
2927
+ SENSITIVE = []
2928
+ include Aws::Structure
2929
+ end
2930
+
2686
2931
  # Could not find the referenced resource.
2687
2932
  #
2688
2933
  # @!attribute [rw] message
@@ -2714,9 +2959,9 @@ module Aws::States
2714
2959
  # @return [String]
2715
2960
  #
2716
2961
  # @!attribute [rw] weight
2717
- # The percentage of traffic you want to route to the second state
2718
- # machine version. The sum of the weights in the routing configuration
2719
- # must be equal to 100.
2962
+ # The percentage of traffic you want to route to a state machine
2963
+ # version. The sum of the weights in the routing configuration must be
2964
+ # equal to 100.
2720
2965
  # @return [Integer]
2721
2966
  #
2722
2967
  # @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/RoutingConfigurationListItem AWS API Documentation
@@ -2872,6 +3117,10 @@ module Aws::States
2872
3117
  # For more information, see [ Limits Related to State Machine
2873
3118
  # Executions][1] in the *Step Functions Developer Guide*.
2874
3119
  #
3120
+ # If you don't provide a name for the execution, Step Functions
3121
+ # automatically generates a universally unique identifier (UUID) as
3122
+ # the execution name.
3123
+ #
2875
3124
  # A name must *not* contain:
2876
3125
  #
2877
3126
  # * white space
@@ -3390,6 +3639,8 @@ module Aws::States
3390
3639
  include Aws::Structure
3391
3640
  end
3392
3641
 
3642
+ # The activity does not exist.
3643
+ #
3393
3644
  # @!attribute [rw] message
3394
3645
  # @return [String]
3395
3646
  #
@@ -3618,6 +3869,9 @@ module Aws::States
3618
3869
  include Aws::Structure
3619
3870
  end
3620
3871
 
3872
+ # The task token has either expired or the task associated with the
3873
+ # token has already been closed.
3874
+ #
3621
3875
  # @!attribute [rw] message
3622
3876
  # @return [String]
3623
3877
  #
@@ -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.59.0'
55
+ GEM_VERSION = '1.60.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.59.0
4
+ version: 1.60.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-09-27 00:00:00.000000000 Z
11
+ date: 2023-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core