aws-sdk-sfn 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sfn.rb +2 -2
- data/lib/aws-sdk-sfn/client.rb +859 -712
- data/lib/aws-sdk-sfn/client_api.rb +588 -590
- data/lib/aws-sdk-sfn/errors.rb +4 -13
- data/lib/aws-sdk-sfn/resource.rb +12 -14
- data/lib/aws-sdk-sfn/types.rb +1189 -1008
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04efda2dd9bbfbe7b09af50b95e63427b4e4ce5a
|
4
|
+
data.tar.gz: c4a84ac709782b74a0223f0b74bb3858e64637aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 912eaa3adf00a308600ce199ed879485cec5418d5e47513003a6d09cc4003cdb2bb6c05e4ab8fc8a71e7024d741a4f9ad369912f39b4c09cea50c0087e5e93e2
|
7
|
+
data.tar.gz: dd93c38569f766cfdeea7c781e6d64d54a5624b597044034082009784f641cfa4dd43876d3145ff8266dbce4c71eef2b10619adda710ebdd1745c500d81ddedc
|
data/lib/aws-sdk-sfn.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-sfn/customizations'
|
|
42
42
|
# @service
|
43
43
|
module Aws::SFN
|
44
44
|
|
45
|
-
GEM_VERSION = '1.0.0.
|
45
|
+
GEM_VERSION = '1.0.0.rc3'
|
46
46
|
|
47
47
|
end
|
data/lib/aws-sdk-sfn/client.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# WARNING ABOUT GENERATED CODE
|
2
2
|
#
|
3
|
-
# This file is generated. See the contributing for
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
4
|
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
|
5
5
|
#
|
6
6
|
# WARNING ABOUT GENERATED CODE
|
@@ -18,746 +18,893 @@ require 'aws-sdk-core/plugins/regional_endpoint.rb'
|
|
18
18
|
require 'aws-sdk-core/plugins/response_paging.rb'
|
19
19
|
require 'aws-sdk-core/plugins/stub_responses.rb'
|
20
20
|
require 'aws-sdk-core/plugins/idempotency_token.rb'
|
21
|
+
require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
21
22
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
22
23
|
require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
|
23
24
|
|
24
25
|
Aws::Plugins::GlobalConfiguration.add_identifier(:sfn)
|
25
26
|
|
26
|
-
module Aws
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
27
|
+
module Aws::SFN
|
28
|
+
class Client < Seahorse::Client::Base
|
29
|
+
|
30
|
+
include Aws::ClientStubs
|
31
|
+
|
32
|
+
@identifier = :sfn
|
33
|
+
|
34
|
+
set_api(ClientApi::API)
|
35
|
+
|
36
|
+
add_plugin(Seahorse::Client::Plugins::ContentLength)
|
37
|
+
add_plugin(Aws::Plugins::CredentialsConfiguration)
|
38
|
+
add_plugin(Aws::Plugins::Logging)
|
39
|
+
add_plugin(Aws::Plugins::ParamConverter)
|
40
|
+
add_plugin(Aws::Plugins::ParamValidator)
|
41
|
+
add_plugin(Aws::Plugins::UserAgent)
|
42
|
+
add_plugin(Aws::Plugins::HelpfulSocketErrors)
|
43
|
+
add_plugin(Aws::Plugins::RetryErrors)
|
44
|
+
add_plugin(Aws::Plugins::GlobalConfiguration)
|
45
|
+
add_plugin(Aws::Plugins::RegionalEndpoint)
|
46
|
+
add_plugin(Aws::Plugins::ResponsePaging)
|
47
|
+
add_plugin(Aws::Plugins::StubResponses)
|
48
|
+
add_plugin(Aws::Plugins::IdempotencyToken)
|
49
|
+
add_plugin(Aws::Plugins::JsonvalueConverter)
|
50
|
+
add_plugin(Aws::Plugins::SignatureV4)
|
51
|
+
add_plugin(Aws::Plugins::Protocols::JsonRpc)
|
52
|
+
|
53
|
+
# @option options [required, Aws::CredentialProvider] :credentials
|
54
|
+
# Your AWS credentials. This can be an instance of any one of the
|
55
|
+
# following classes:
|
56
|
+
#
|
57
|
+
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
58
|
+
# credentials.
|
59
|
+
#
|
60
|
+
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
61
|
+
# from an EC2 IMDS on an EC2 instance.
|
62
|
+
#
|
63
|
+
# * `Aws::SharedCredentials` - Used for loading credentials from a
|
64
|
+
# shared file, such as `~/.aws/config`.
|
65
|
+
#
|
66
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
67
|
+
#
|
68
|
+
# When `:credentials` are not configured directly, the following
|
69
|
+
# locations will be searched for credentials:
|
70
|
+
#
|
71
|
+
# * `Aws.config[:credentials]`
|
72
|
+
# * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
|
73
|
+
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
74
|
+
# * `~/.aws/credentials`
|
75
|
+
# * `~/.aws/config`
|
76
|
+
# * EC2 IMDS instance profile - When used by default, the timeouts are
|
77
|
+
# very aggressive. Construct and pass an instance of
|
78
|
+
# `Aws::InstanceProfileCredentails` to enable retries and extended
|
79
|
+
# timeouts.
|
80
|
+
#
|
81
|
+
# @option options [required, String] :region
|
82
|
+
# The AWS region to connect to. The configured `:region` is
|
83
|
+
# used to determine the service `:endpoint`. When not passed,
|
84
|
+
# a default `:region` is search for in the following locations:
|
85
|
+
#
|
86
|
+
# * `Aws.config[:region]`
|
87
|
+
# * `ENV['AWS_REGION']`
|
88
|
+
# * `ENV['AMAZON_REGION']`
|
89
|
+
# * `ENV['AWS_DEFAULT_REGION']`
|
90
|
+
# * `~/.aws/credentials`
|
91
|
+
# * `~/.aws/config`
|
92
|
+
#
|
93
|
+
# @option options [String] :access_key_id
|
94
|
+
#
|
95
|
+
# @option options [Boolean] :convert_params (true)
|
96
|
+
# When `true`, an attempt is made to coerce request parameters into
|
97
|
+
# the required types.
|
98
|
+
#
|
99
|
+
# @option options [String] :endpoint
|
100
|
+
# The client endpoint is normally constructed from the `:region`
|
101
|
+
# option. You should only configure an `:endpoint` when connecting
|
102
|
+
# to test endpoints. This should be avalid HTTP(S) URI.
|
103
|
+
#
|
104
|
+
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
105
|
+
# The log formatter.
|
106
|
+
#
|
107
|
+
# @option options [Symbol] :log_level (:info)
|
108
|
+
# The log level to send messages to the `:logger` at.
|
109
|
+
#
|
110
|
+
# @option options [Logger] :logger
|
111
|
+
# The Logger instance to send log messages to. If this option
|
112
|
+
# is not set, logging will be disabled.
|
113
|
+
#
|
114
|
+
# @option options [String] :profile ("default")
|
115
|
+
# Used when loading credentials from the shared credentials file
|
116
|
+
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
117
|
+
#
|
118
|
+
# @option options [Integer] :retry_limit (3)
|
119
|
+
# The maximum number of times to retry failed requests. Only
|
120
|
+
# ~ 500 level server errors and certain ~ 400 level client errors
|
121
|
+
# are retried. Generally, these are throttling errors, data
|
122
|
+
# checksum errors, networking errors, timeout errors and auth
|
123
|
+
# errors from expired credentials.
|
124
|
+
#
|
125
|
+
# @option options [String] :secret_access_key
|
126
|
+
#
|
127
|
+
# @option options [String] :session_token
|
128
|
+
#
|
129
|
+
# @option options [Boolean] :simple_json (false)
|
130
|
+
# Disables request parameter conversion, validation, and formatting.
|
131
|
+
# Also disable response data type conversions. This option is useful
|
132
|
+
# when you want to ensure the highest level of performance by
|
133
|
+
# avoiding overhead of walking request parameters and response data
|
134
|
+
# structures.
|
135
|
+
#
|
136
|
+
# When `:simple_json` is enabled, the request parameters hash must
|
137
|
+
# be formatted exactly as the DynamoDB API expects.
|
138
|
+
#
|
139
|
+
# @option options [Boolean] :stub_responses (false)
|
140
|
+
# Causes the client to return stubbed responses. By default
|
141
|
+
# fake responses are generated and returned. You can specify
|
142
|
+
# the response data to return or errors to raise by calling
|
143
|
+
# {ClientStubs#stub_responses}. See {ClientStubs} for more information.
|
144
|
+
#
|
145
|
+
# ** Please note ** When response stubbing is enabled, no HTTP
|
146
|
+
# requests are made, and retries are disabled.
|
147
|
+
#
|
148
|
+
# @option options [Boolean] :validate_params (true)
|
149
|
+
# When `true`, request parameters are validated before
|
150
|
+
# sending the request.
|
151
|
+
#
|
152
|
+
def initialize(*args)
|
153
|
+
super
|
154
|
+
end
|
139
155
|
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
156
|
+
# @!group API Operations
|
157
|
+
|
158
|
+
# Creates an activity.
|
159
|
+
#
|
160
|
+
# @option params [required, String] :name
|
161
|
+
# The name of the activity to create. This name must be unique for your
|
162
|
+
# AWS account and region.
|
163
|
+
#
|
164
|
+
# @return [Types::CreateActivityOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
165
|
+
#
|
166
|
+
# * {Types::CreateActivityOutput#activity_arn #activity_arn} => String
|
167
|
+
# * {Types::CreateActivityOutput#creation_date #creation_date} => Time
|
168
|
+
#
|
169
|
+
# @example Request syntax with placeholder values
|
170
|
+
#
|
171
|
+
# resp = client.create_activity({
|
172
|
+
# name: "Name", # required
|
173
|
+
# })
|
174
|
+
#
|
175
|
+
# @example Response structure
|
176
|
+
#
|
177
|
+
# resp.activity_arn #=> String
|
178
|
+
# resp.creation_date #=> Time
|
179
|
+
#
|
180
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateActivity AWS API Documentation
|
181
|
+
#
|
182
|
+
# @overload create_activity(params = {})
|
183
|
+
# @param [Hash] params ({})
|
184
|
+
def create_activity(params = {}, options = {})
|
185
|
+
req = build_request(:create_activity, params)
|
186
|
+
req.send_request(options)
|
187
|
+
end
|
165
188
|
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
189
|
+
# Creates a state machine.
|
190
|
+
#
|
191
|
+
# @option params [required, String] :name
|
192
|
+
# The name of the state machine. This name must be unique for your AWS
|
193
|
+
# account and region.
|
194
|
+
#
|
195
|
+
# @option params [required, String] :definition
|
196
|
+
# The Amazon States Language definition of the state machine.
|
197
|
+
#
|
198
|
+
# @option params [required, String] :role_arn
|
199
|
+
# The Amazon Resource Name (ARN) of the IAM role to use for this state
|
200
|
+
# machine.
|
201
|
+
#
|
202
|
+
# @return [Types::CreateStateMachineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
203
|
+
#
|
204
|
+
# * {Types::CreateStateMachineOutput#state_machine_arn #state_machine_arn} => String
|
205
|
+
# * {Types::CreateStateMachineOutput#creation_date #creation_date} => Time
|
206
|
+
#
|
207
|
+
# @example Request syntax with placeholder values
|
208
|
+
#
|
209
|
+
# resp = client.create_state_machine({
|
210
|
+
# name: "Name", # required
|
211
|
+
# definition: "Definition", # required
|
212
|
+
# role_arn: "Arn", # required
|
213
|
+
# })
|
214
|
+
#
|
215
|
+
# @example Response structure
|
216
|
+
#
|
217
|
+
# resp.state_machine_arn #=> String
|
218
|
+
# resp.creation_date #=> Time
|
219
|
+
#
|
220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/CreateStateMachine AWS API Documentation
|
221
|
+
#
|
222
|
+
# @overload create_state_machine(params = {})
|
223
|
+
# @param [Hash] params ({})
|
224
|
+
def create_state_machine(params = {}, options = {})
|
225
|
+
req = build_request(:create_state_machine, params)
|
226
|
+
req.send_request(options)
|
227
|
+
end
|
196
228
|
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
229
|
+
# Deletes an activity.
|
230
|
+
#
|
231
|
+
# @option params [required, String] :activity_arn
|
232
|
+
# The Amazon Resource Name (ARN) of the activity to delete.
|
233
|
+
#
|
234
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
235
|
+
#
|
236
|
+
# @example Request syntax with placeholder values
|
237
|
+
#
|
238
|
+
# resp = client.delete_activity({
|
239
|
+
# activity_arn: "Arn", # required
|
240
|
+
# })
|
241
|
+
#
|
242
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteActivity AWS API Documentation
|
243
|
+
#
|
244
|
+
# @overload delete_activity(params = {})
|
245
|
+
# @param [Hash] params ({})
|
246
|
+
def delete_activity(params = {}, options = {})
|
247
|
+
req = build_request(:delete_activity, params)
|
248
|
+
req.send_request(options)
|
249
|
+
end
|
212
250
|
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
251
|
+
# Deletes a state machine. This is an asynchronous operation-- it sets
|
252
|
+
# the state machine's status to "DELETING" and begins the delete
|
253
|
+
# process.
|
254
|
+
#
|
255
|
+
# @option params [required, String] :state_machine_arn
|
256
|
+
# The Amazon Resource Name (ARN) of the state machine to delete.
|
257
|
+
#
|
258
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
259
|
+
#
|
260
|
+
# @example Request syntax with placeholder values
|
261
|
+
#
|
262
|
+
# resp = client.delete_state_machine({
|
263
|
+
# state_machine_arn: "Arn", # required
|
264
|
+
# })
|
265
|
+
#
|
266
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DeleteStateMachine AWS API Documentation
|
267
|
+
#
|
268
|
+
# @overload delete_state_machine(params = {})
|
269
|
+
# @param [Hash] params ({})
|
270
|
+
def delete_state_machine(params = {}, options = {})
|
271
|
+
req = build_request(:delete_state_machine, params)
|
272
|
+
req.send_request(options)
|
273
|
+
end
|
230
274
|
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
275
|
+
# Describes an activity.
|
276
|
+
#
|
277
|
+
# @option params [required, String] :activity_arn
|
278
|
+
# The Amazon Resource Name (ARN) of the activity to describe.
|
279
|
+
#
|
280
|
+
# @return [Types::DescribeActivityOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
281
|
+
#
|
282
|
+
# * {Types::DescribeActivityOutput#activity_arn #activity_arn} => String
|
283
|
+
# * {Types::DescribeActivityOutput#name #name} => String
|
284
|
+
# * {Types::DescribeActivityOutput#creation_date #creation_date} => Time
|
285
|
+
#
|
286
|
+
# @example Request syntax with placeholder values
|
287
|
+
#
|
288
|
+
# resp = client.describe_activity({
|
289
|
+
# activity_arn: "Arn", # required
|
290
|
+
# })
|
291
|
+
#
|
292
|
+
# @example Response structure
|
293
|
+
#
|
294
|
+
# resp.activity_arn #=> String
|
295
|
+
# resp.name #=> String
|
296
|
+
# resp.creation_date #=> Time
|
297
|
+
#
|
298
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeActivity AWS API Documentation
|
299
|
+
#
|
300
|
+
# @overload describe_activity(params = {})
|
301
|
+
# @param [Hash] params ({})
|
302
|
+
def describe_activity(params = {}, options = {})
|
303
|
+
req = build_request(:describe_activity, params)
|
304
|
+
req.send_request(options)
|
305
|
+
end
|
255
306
|
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
307
|
+
# Describes an execution.
|
308
|
+
#
|
309
|
+
# @option params [required, String] :execution_arn
|
310
|
+
# The Amazon Resource Name (ARN) of the execution to describe.
|
311
|
+
#
|
312
|
+
# @return [Types::DescribeExecutionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
313
|
+
#
|
314
|
+
# * {Types::DescribeExecutionOutput#execution_arn #execution_arn} => String
|
315
|
+
# * {Types::DescribeExecutionOutput#state_machine_arn #state_machine_arn} => String
|
316
|
+
# * {Types::DescribeExecutionOutput#name #name} => String
|
317
|
+
# * {Types::DescribeExecutionOutput#status #status} => String
|
318
|
+
# * {Types::DescribeExecutionOutput#start_date #start_date} => Time
|
319
|
+
# * {Types::DescribeExecutionOutput#stop_date #stop_date} => Time
|
320
|
+
# * {Types::DescribeExecutionOutput#input #input} => String
|
321
|
+
# * {Types::DescribeExecutionOutput#output #output} => String
|
322
|
+
#
|
323
|
+
# @example Request syntax with placeholder values
|
324
|
+
#
|
325
|
+
# resp = client.describe_execution({
|
326
|
+
# execution_arn: "Arn", # required
|
327
|
+
# })
|
328
|
+
#
|
329
|
+
# @example Response structure
|
330
|
+
#
|
331
|
+
# resp.execution_arn #=> String
|
332
|
+
# resp.state_machine_arn #=> String
|
333
|
+
# resp.name #=> String
|
334
|
+
# resp.status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED"
|
335
|
+
# resp.start_date #=> Time
|
336
|
+
# resp.stop_date #=> Time
|
337
|
+
# resp.input #=> String
|
338
|
+
# resp.output #=> String
|
339
|
+
#
|
340
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeExecution AWS API Documentation
|
341
|
+
#
|
342
|
+
# @overload describe_execution(params = {})
|
343
|
+
# @param [Hash] params ({})
|
344
|
+
def describe_execution(params = {}, options = {})
|
345
|
+
req = build_request(:describe_execution, params)
|
346
|
+
req.send_request(options)
|
347
|
+
end
|
290
348
|
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
349
|
+
# Describes a state machine.
|
350
|
+
#
|
351
|
+
# @option params [required, String] :state_machine_arn
|
352
|
+
# The Amazon Resource Name (ARN) of the state machine to describe.
|
353
|
+
#
|
354
|
+
# @return [Types::DescribeStateMachineOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
355
|
+
#
|
356
|
+
# * {Types::DescribeStateMachineOutput#state_machine_arn #state_machine_arn} => String
|
357
|
+
# * {Types::DescribeStateMachineOutput#name #name} => String
|
358
|
+
# * {Types::DescribeStateMachineOutput#status #status} => String
|
359
|
+
# * {Types::DescribeStateMachineOutput#definition #definition} => String
|
360
|
+
# * {Types::DescribeStateMachineOutput#role_arn #role_arn} => String
|
361
|
+
# * {Types::DescribeStateMachineOutput#creation_date #creation_date} => Time
|
362
|
+
#
|
363
|
+
# @example Request syntax with placeholder values
|
364
|
+
#
|
365
|
+
# resp = client.describe_state_machine({
|
366
|
+
# state_machine_arn: "Arn", # required
|
367
|
+
# })
|
368
|
+
#
|
369
|
+
# @example Response structure
|
370
|
+
#
|
371
|
+
# resp.state_machine_arn #=> String
|
372
|
+
# resp.name #=> String
|
373
|
+
# resp.status #=> String, one of "ACTIVE", "DELETING"
|
374
|
+
# resp.definition #=> String
|
375
|
+
# resp.role_arn #=> String
|
376
|
+
# resp.creation_date #=> Time
|
377
|
+
#
|
378
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachine AWS API Documentation
|
379
|
+
#
|
380
|
+
# @overload describe_state_machine(params = {})
|
381
|
+
# @param [Hash] params ({})
|
382
|
+
def describe_state_machine(params = {}, options = {})
|
383
|
+
req = build_request(:describe_state_machine, params)
|
384
|
+
req.send_request(options)
|
385
|
+
end
|
321
386
|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
387
|
+
# Used by workers to retrieve a task (with the specified activity ARN)
|
388
|
+
# scheduled for execution by a running state machine. This initiates a
|
389
|
+
# long poll, where the service holds the HTTP connection open and
|
390
|
+
# responds as soon as a task becomes available (i.e. an execution of a
|
391
|
+
# task of this type is needed.) The maximum time the service holds on to
|
392
|
+
# the request before responding is 60 seconds. If no task is available
|
393
|
+
# within 60 seconds, the poll will return an empty result, that is, the
|
394
|
+
# `taskToken` returned is an empty string.
|
395
|
+
#
|
396
|
+
# Workers should set their client side socket timeout to at least 65
|
397
|
+
# seconds (5 seconds higher than the maximum time the service may hold
|
398
|
+
# the poll request).
|
399
|
+
#
|
400
|
+
# @option params [required, String] :activity_arn
|
401
|
+
# The Amazon Resource Name (ARN) of the activity to retrieve tasks from.
|
402
|
+
#
|
403
|
+
# @option params [String] :worker_name
|
404
|
+
# An arbitrary name may be provided in order to identify the worker that
|
405
|
+
# the task is assigned to. This name will be used when it is logged in
|
406
|
+
# the execution history.
|
407
|
+
#
|
408
|
+
# @return [Types::GetActivityTaskOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
409
|
+
#
|
410
|
+
# * {Types::GetActivityTaskOutput#task_token #task_token} => String
|
411
|
+
# * {Types::GetActivityTaskOutput#input #input} => String
|
412
|
+
#
|
413
|
+
# @example Request syntax with placeholder values
|
414
|
+
#
|
415
|
+
# resp = client.get_activity_task({
|
416
|
+
# activity_arn: "Arn", # required
|
417
|
+
# worker_name: "Name",
|
418
|
+
# })
|
419
|
+
#
|
420
|
+
# @example Response structure
|
421
|
+
#
|
422
|
+
# resp.task_token #=> String
|
423
|
+
# resp.input #=> String
|
424
|
+
#
|
425
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetActivityTask AWS API Documentation
|
426
|
+
#
|
427
|
+
# @overload get_activity_task(params = {})
|
428
|
+
# @param [Hash] params ({})
|
429
|
+
def get_activity_task(params = {}, options = {})
|
430
|
+
req = build_request(:get_activity_task, params)
|
431
|
+
req.send_request(options)
|
432
|
+
end
|
360
433
|
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
434
|
+
# Returns the history of the specified execution as a list of events. By
|
435
|
+
# default, the results are returned in ascending order of the
|
436
|
+
# `timeStamp` of the events. Use the `reverseOrder` parameter to get the
|
437
|
+
# latest events first. The results may be split into multiple pages. To
|
438
|
+
# retrieve subsequent pages, make the call again using the `nextToken`
|
439
|
+
# returned by the previous call.
|
440
|
+
#
|
441
|
+
# @option params [required, String] :execution_arn
|
442
|
+
# The Amazon Resource Name (ARN) of the execution.
|
443
|
+
#
|
444
|
+
# @option params [Integer] :max_results
|
445
|
+
# The maximum number of results that will be returned per call.
|
446
|
+
# `nextToken` can be used to obtain further pages of results. The
|
447
|
+
# default is 100 and the maximum allowed page size is 1000.
|
448
|
+
#
|
449
|
+
# This is an upper limit only; the actual number of results returned per
|
450
|
+
# call may be fewer than the specified maximum.
|
451
|
+
#
|
452
|
+
# @option params [Boolean] :reverse_order
|
453
|
+
# Lists events in descending order of their `timeStamp`.
|
454
|
+
#
|
455
|
+
# @option params [String] :next_token
|
456
|
+
# If a `nextToken` was returned by a previous call, there are more
|
457
|
+
# results available. To retrieve the next page of results, make the call
|
458
|
+
# again using the returned token in `nextToken`. Keep all other
|
459
|
+
# arguments unchanged.
|
460
|
+
#
|
461
|
+
# The configured `maxResults` determines how many results can be
|
462
|
+
# returned in a single call.
|
463
|
+
#
|
464
|
+
# @return [Types::GetExecutionHistoryOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
465
|
+
#
|
466
|
+
# * {Types::GetExecutionHistoryOutput#events #events} => Array<Types::HistoryEvent>
|
467
|
+
# * {Types::GetExecutionHistoryOutput#next_token #next_token} => String
|
468
|
+
#
|
469
|
+
# @example Request syntax with placeholder values
|
470
|
+
#
|
471
|
+
# resp = client.get_execution_history({
|
472
|
+
# execution_arn: "Arn", # required
|
473
|
+
# max_results: 1,
|
474
|
+
# reverse_order: false,
|
475
|
+
# next_token: "PageToken",
|
476
|
+
# })
|
477
|
+
#
|
478
|
+
# @example Response structure
|
479
|
+
#
|
480
|
+
# resp.events #=> Array
|
481
|
+
# resp.events[0].timestamp #=> Time
|
482
|
+
# resp.events[0].type #=> String, one of "ActivityFailed", "ActivityScheduleFailed", "ActivityScheduled", "ActivityStarted", "ActivitySucceeded", "ActivityTimedOut", "ChoiceStateEntered", "ChoiceStateExited", "ExecutionFailed", "ExecutionStarted", "ExecutionSucceeded", "ExecutionAborted", "ExecutionTimedOut", "FailStateEntered", "LambdaFunctionFailed", "LambdaFunctionScheduleFailed", "LambdaFunctionScheduled", "LambdaFunctionStartFailed", "LambdaFunctionStarted", "LambdaFunctionSucceeded", "LambdaFunctionTimedOut", "SucceedStateEntered", "SucceedStateExited", "TaskStateEntered", "TaskStateExited", "PassStateEntered", "PassStateExited", "ParallelStateEntered", "ParallelStateExited", "WaitStateEntered", "WaitStateExited"
|
483
|
+
# resp.events[0].id #=> Integer
|
484
|
+
# resp.events[0].previous_event_id #=> Integer
|
485
|
+
# resp.events[0].activity_failed_event_details.error #=> String
|
486
|
+
# resp.events[0].activity_failed_event_details.cause #=> String
|
487
|
+
# resp.events[0].activity_schedule_failed_event_details.error #=> String
|
488
|
+
# resp.events[0].activity_schedule_failed_event_details.cause #=> String
|
489
|
+
# resp.events[0].activity_scheduled_event_details.resource #=> String
|
490
|
+
# resp.events[0].activity_scheduled_event_details.input #=> String
|
491
|
+
# resp.events[0].activity_scheduled_event_details.timeout_in_seconds #=> Integer
|
492
|
+
# resp.events[0].activity_scheduled_event_details.heartbeat_in_seconds #=> Integer
|
493
|
+
# resp.events[0].activity_started_event_details.worker_name #=> String
|
494
|
+
# resp.events[0].activity_succeeded_event_details.output #=> String
|
495
|
+
# resp.events[0].activity_timed_out_event_details.error #=> String
|
496
|
+
# resp.events[0].activity_timed_out_event_details.cause #=> String
|
497
|
+
# resp.events[0].execution_failed_event_details.error #=> String
|
498
|
+
# resp.events[0].execution_failed_event_details.cause #=> String
|
499
|
+
# resp.events[0].execution_started_event_details.input #=> String
|
500
|
+
# resp.events[0].execution_started_event_details.role_arn #=> String
|
501
|
+
# resp.events[0].execution_succeeded_event_details.output #=> String
|
502
|
+
# resp.events[0].execution_aborted_event_details.error #=> String
|
503
|
+
# resp.events[0].execution_aborted_event_details.cause #=> String
|
504
|
+
# resp.events[0].execution_timed_out_event_details.error #=> String
|
505
|
+
# resp.events[0].execution_timed_out_event_details.cause #=> String
|
506
|
+
# resp.events[0].lambda_function_failed_event_details.error #=> String
|
507
|
+
# resp.events[0].lambda_function_failed_event_details.cause #=> String
|
508
|
+
# resp.events[0].lambda_function_schedule_failed_event_details.error #=> String
|
509
|
+
# resp.events[0].lambda_function_schedule_failed_event_details.cause #=> String
|
510
|
+
# resp.events[0].lambda_function_scheduled_event_details.resource #=> String
|
511
|
+
# resp.events[0].lambda_function_scheduled_event_details.input #=> String
|
512
|
+
# resp.events[0].lambda_function_scheduled_event_details.timeout_in_seconds #=> Integer
|
513
|
+
# resp.events[0].lambda_function_start_failed_event_details.error #=> String
|
514
|
+
# resp.events[0].lambda_function_start_failed_event_details.cause #=> String
|
515
|
+
# resp.events[0].lambda_function_succeeded_event_details.output #=> String
|
516
|
+
# resp.events[0].lambda_function_timed_out_event_details.error #=> String
|
517
|
+
# resp.events[0].lambda_function_timed_out_event_details.cause #=> String
|
518
|
+
# resp.events[0].state_entered_event_details.name #=> String
|
519
|
+
# resp.events[0].state_entered_event_details.input #=> String
|
520
|
+
# resp.events[0].state_exited_event_details.name #=> String
|
521
|
+
# resp.events[0].state_exited_event_details.output #=> String
|
522
|
+
# resp.next_token #=> String
|
523
|
+
#
|
524
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/GetExecutionHistory AWS API Documentation
|
525
|
+
#
|
526
|
+
# @overload get_execution_history(params = {})
|
527
|
+
# @param [Hash] params ({})
|
528
|
+
def get_execution_history(params = {}, options = {})
|
529
|
+
req = build_request(:get_execution_history, params)
|
530
|
+
req.send_request(options)
|
531
|
+
end
|
449
532
|
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
533
|
+
# Lists the existing activities. The results may be split into multiple
|
534
|
+
# pages. To retrieve subsequent pages, make the call again using the
|
535
|
+
# `nextToken` returned by the previous call.
|
536
|
+
#
|
537
|
+
# @option params [Integer] :max_results
|
538
|
+
# The maximum number of results that will be returned per call.
|
539
|
+
# `nextToken` can be used to obtain further pages of results. The
|
540
|
+
# default is 100 and the maximum allowed page size is 1000.
|
541
|
+
#
|
542
|
+
# This is an upper limit only; the actual number of results returned per
|
543
|
+
# call may be fewer than the specified maximum.
|
544
|
+
#
|
545
|
+
# @option params [String] :next_token
|
546
|
+
# If a `nextToken` was returned by a previous call, there are more
|
547
|
+
# results available. To retrieve the next page of results, make the call
|
548
|
+
# again using the returned token in `nextToken`. Keep all other
|
549
|
+
# arguments unchanged.
|
550
|
+
#
|
551
|
+
# The configured `maxResults` determines how many results can be
|
552
|
+
# returned in a single call.
|
553
|
+
#
|
554
|
+
# @return [Types::ListActivitiesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
555
|
+
#
|
556
|
+
# * {Types::ListActivitiesOutput#activities #activities} => Array<Types::ActivityListItem>
|
557
|
+
# * {Types::ListActivitiesOutput#next_token #next_token} => String
|
558
|
+
#
|
559
|
+
# @example Request syntax with placeholder values
|
560
|
+
#
|
561
|
+
# resp = client.list_activities({
|
562
|
+
# max_results: 1,
|
563
|
+
# next_token: "PageToken",
|
564
|
+
# })
|
565
|
+
#
|
566
|
+
# @example Response structure
|
567
|
+
#
|
568
|
+
# resp.activities #=> Array
|
569
|
+
# resp.activities[0].activity_arn #=> String
|
570
|
+
# resp.activities[0].name #=> String
|
571
|
+
# resp.activities[0].creation_date #=> Time
|
572
|
+
# resp.next_token #=> String
|
573
|
+
#
|
574
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListActivities AWS API Documentation
|
575
|
+
#
|
576
|
+
# @overload list_activities(params = {})
|
577
|
+
# @param [Hash] params ({})
|
578
|
+
def list_activities(params = {}, options = {})
|
579
|
+
req = build_request(:list_activities, params)
|
580
|
+
req.send_request(options)
|
581
|
+
end
|
491
582
|
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
583
|
+
# Lists the executions of a state machine that meet the filtering
|
584
|
+
# criteria. The results may be split into multiple pages. To retrieve
|
585
|
+
# subsequent pages, make the call again using the `nextToken` returned
|
586
|
+
# by the previous call.
|
587
|
+
#
|
588
|
+
# @option params [required, String] :state_machine_arn
|
589
|
+
# The Amazon Resource Name (ARN) of the state machine whose executions
|
590
|
+
# will be listed.
|
591
|
+
#
|
592
|
+
# @option params [String] :status_filter
|
593
|
+
# If specified, only list the executions whose current execution status
|
594
|
+
# matches the given filter.
|
595
|
+
#
|
596
|
+
# @option params [Integer] :max_results
|
597
|
+
# The maximum number of results that will be returned per call.
|
598
|
+
# `nextToken` can be used to obtain further pages of results. The
|
599
|
+
# default is 100 and the maximum allowed page size is 1000.
|
600
|
+
#
|
601
|
+
# This is an upper limit only; the actual number of results returned per
|
602
|
+
# call may be fewer than the specified maximum.
|
603
|
+
#
|
604
|
+
# @option params [String] :next_token
|
605
|
+
# If a `nextToken` was returned by a previous call, there are more
|
606
|
+
# results available. To retrieve the next page of results, make the call
|
607
|
+
# again using the returned token in `nextToken`. Keep all other
|
608
|
+
# arguments unchanged.
|
609
|
+
#
|
610
|
+
# The configured `maxResults` determines how many results can be
|
611
|
+
# returned in a single call.
|
612
|
+
#
|
613
|
+
# @return [Types::ListExecutionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
614
|
+
#
|
615
|
+
# * {Types::ListExecutionsOutput#executions #executions} => Array<Types::ExecutionListItem>
|
616
|
+
# * {Types::ListExecutionsOutput#next_token #next_token} => String
|
617
|
+
#
|
618
|
+
# @example Request syntax with placeholder values
|
619
|
+
#
|
620
|
+
# resp = client.list_executions({
|
621
|
+
# state_machine_arn: "Arn", # required
|
622
|
+
# status_filter: "RUNNING", # accepts RUNNING, SUCCEEDED, FAILED, TIMED_OUT, ABORTED
|
623
|
+
# max_results: 1,
|
624
|
+
# next_token: "PageToken",
|
625
|
+
# })
|
626
|
+
#
|
627
|
+
# @example Response structure
|
628
|
+
#
|
629
|
+
# resp.executions #=> Array
|
630
|
+
# resp.executions[0].execution_arn #=> String
|
631
|
+
# resp.executions[0].state_machine_arn #=> String
|
632
|
+
# resp.executions[0].name #=> String
|
633
|
+
# resp.executions[0].status #=> String, one of "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT", "ABORTED"
|
634
|
+
# resp.executions[0].start_date #=> Time
|
635
|
+
# resp.executions[0].stop_date #=> Time
|
636
|
+
# resp.next_token #=> String
|
637
|
+
#
|
638
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListExecutions AWS API Documentation
|
639
|
+
#
|
640
|
+
# @overload list_executions(params = {})
|
641
|
+
# @param [Hash] params ({})
|
642
|
+
def list_executions(params = {}, options = {})
|
643
|
+
req = build_request(:list_executions, params)
|
644
|
+
req.send_request(options)
|
645
|
+
end
|
545
646
|
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
647
|
+
# Lists the existing state machines. The results may be split into
|
648
|
+
# multiple pages. To retrieve subsequent pages, make the call again
|
649
|
+
# using the `nextToken` returned by the previous call.
|
650
|
+
#
|
651
|
+
# @option params [Integer] :max_results
|
652
|
+
# The maximum number of results that will be returned per call.
|
653
|
+
# `nextToken` can be used to obtain further pages of results. The
|
654
|
+
# default is 100 and the maximum allowed page size is 1000.
|
655
|
+
#
|
656
|
+
# This is an upper limit only; the actual number of results returned per
|
657
|
+
# call may be fewer than the specified maximum.
|
658
|
+
#
|
659
|
+
# @option params [String] :next_token
|
660
|
+
# If a `nextToken` was returned by a previous call, there are more
|
661
|
+
# results available. To retrieve the next page of results, make the call
|
662
|
+
# again using the returned token in `nextToken`. Keep all other
|
663
|
+
# arguments unchanged.
|
664
|
+
#
|
665
|
+
# The configured `maxResults` determines how many results can be
|
666
|
+
# returned in a single call.
|
667
|
+
#
|
668
|
+
# @return [Types::ListStateMachinesOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
669
|
+
#
|
670
|
+
# * {Types::ListStateMachinesOutput#state_machines #state_machines} => Array<Types::StateMachineListItem>
|
671
|
+
# * {Types::ListStateMachinesOutput#next_token #next_token} => String
|
672
|
+
#
|
673
|
+
# @example Request syntax with placeholder values
|
674
|
+
#
|
675
|
+
# resp = client.list_state_machines({
|
676
|
+
# max_results: 1,
|
677
|
+
# next_token: "PageToken",
|
678
|
+
# })
|
679
|
+
#
|
680
|
+
# @example Response structure
|
681
|
+
#
|
682
|
+
# resp.state_machines #=> Array
|
683
|
+
# resp.state_machines[0].state_machine_arn #=> String
|
684
|
+
# resp.state_machines[0].name #=> String
|
685
|
+
# resp.state_machines[0].creation_date #=> Time
|
686
|
+
# resp.next_token #=> String
|
687
|
+
#
|
688
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/ListStateMachines AWS API Documentation
|
689
|
+
#
|
690
|
+
# @overload list_state_machines(params = {})
|
691
|
+
# @param [Hash] params ({})
|
692
|
+
def list_state_machines(params = {}, options = {})
|
693
|
+
req = build_request(:list_state_machines, params)
|
694
|
+
req.send_request(options)
|
695
|
+
end
|
587
696
|
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
697
|
+
# Used by workers to report that the task identified by the `taskToken`
|
698
|
+
# failed.
|
699
|
+
#
|
700
|
+
# @option params [required, String] :task_token
|
701
|
+
# The token that represents this task. Task tokens are generated by the
|
702
|
+
# service when the tasks are assigned to a worker (see
|
703
|
+
# GetActivityTask::taskToken).
|
704
|
+
#
|
705
|
+
# @option params [String] :error
|
706
|
+
# An arbitrary error code that identifies the cause of the failure.
|
707
|
+
#
|
708
|
+
# @option params [String] :cause
|
709
|
+
# A more detailed explanation of the cause of the failure.
|
710
|
+
#
|
711
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
712
|
+
#
|
713
|
+
# @example Request syntax with placeholder values
|
714
|
+
#
|
715
|
+
# resp = client.send_task_failure({
|
716
|
+
# task_token: "TaskToken", # required
|
717
|
+
# error: "Error",
|
718
|
+
# cause: "Cause",
|
719
|
+
# })
|
720
|
+
#
|
721
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskFailure AWS API Documentation
|
722
|
+
#
|
723
|
+
# @overload send_task_failure(params = {})
|
724
|
+
# @param [Hash] params ({})
|
725
|
+
def send_task_failure(params = {}, options = {})
|
726
|
+
req = build_request(:send_task_failure, params)
|
727
|
+
req.send_request(options)
|
728
|
+
end
|
612
729
|
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
641
|
-
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
730
|
+
# Used by workers to report to the service that the task represented by
|
731
|
+
# the specified `taskToken` is still making progress. This action resets
|
732
|
+
# the `Heartbeat` clock. The `Heartbeat` threshold is specified in the
|
733
|
+
# state machine's Amazon States Language definition. This action does
|
734
|
+
# not in itself create an event in the execution history. However, if
|
735
|
+
# the task times out, the execution history will contain an
|
736
|
+
# `ActivityTimedOut` event.
|
737
|
+
#
|
738
|
+
# <note markdown="1"> The `Timeout` of a task, defined in the state machine's Amazon States
|
739
|
+
# Language definition, is its maximum allowed duration, regardless of
|
740
|
+
# the number of SendTaskHeartbeat requests received.
|
741
|
+
#
|
742
|
+
# </note>
|
743
|
+
#
|
744
|
+
# <note markdown="1"> This operation is only useful for long-lived tasks to report the
|
745
|
+
# liveliness of the task.
|
746
|
+
#
|
747
|
+
# </note>
|
748
|
+
#
|
749
|
+
# @option params [required, String] :task_token
|
750
|
+
# The token that represents this task. Task tokens are generated by the
|
751
|
+
# service when the tasks are assigned to a worker (see
|
752
|
+
# GetActivityTask::taskToken).
|
753
|
+
#
|
754
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
755
|
+
#
|
756
|
+
# @example Request syntax with placeholder values
|
757
|
+
#
|
758
|
+
# resp = client.send_task_heartbeat({
|
759
|
+
# task_token: "TaskToken", # required
|
760
|
+
# })
|
761
|
+
#
|
762
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskHeartbeat AWS API Documentation
|
763
|
+
#
|
764
|
+
# @overload send_task_heartbeat(params = {})
|
765
|
+
# @param [Hash] params ({})
|
766
|
+
def send_task_heartbeat(params = {}, options = {})
|
767
|
+
req = build_request(:send_task_heartbeat, params)
|
768
|
+
req.send_request(options)
|
769
|
+
end
|
647
770
|
|
648
|
-
|
649
|
-
|
650
|
-
|
651
|
-
|
652
|
-
|
653
|
-
|
654
|
-
|
655
|
-
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
|
662
|
-
|
663
|
-
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
771
|
+
# Used by workers to report that the task identified by the `taskToken`
|
772
|
+
# completed successfully.
|
773
|
+
#
|
774
|
+
# @option params [required, String] :task_token
|
775
|
+
# The token that represents this task. Task tokens are generated by the
|
776
|
+
# service when the tasks are assigned to a worker (see
|
777
|
+
# GetActivityTask::taskToken).
|
778
|
+
#
|
779
|
+
# @option params [required, String] :output
|
780
|
+
# The JSON output of the task.
|
781
|
+
#
|
782
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
783
|
+
#
|
784
|
+
# @example Request syntax with placeholder values
|
785
|
+
#
|
786
|
+
# resp = client.send_task_success({
|
787
|
+
# task_token: "TaskToken", # required
|
788
|
+
# output: "Data", # required
|
789
|
+
# })
|
790
|
+
#
|
791
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/SendTaskSuccess AWS API Documentation
|
792
|
+
#
|
793
|
+
# @overload send_task_success(params = {})
|
794
|
+
# @param [Hash] params ({})
|
795
|
+
def send_task_success(params = {}, options = {})
|
796
|
+
req = build_request(:send_task_success, params)
|
797
|
+
req.send_request(options)
|
798
|
+
end
|
669
799
|
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
800
|
+
# Starts a state machine execution.
|
801
|
+
#
|
802
|
+
# @option params [required, String] :state_machine_arn
|
803
|
+
# The Amazon Resource Name (ARN) of the state machine to execute.
|
804
|
+
#
|
805
|
+
# @option params [String] :name
|
806
|
+
# The name of the execution. This name must be unique for your AWS
|
807
|
+
# account and region.
|
808
|
+
#
|
809
|
+
# @option params [String] :input
|
810
|
+
# The JSON input data for the execution.
|
811
|
+
#
|
812
|
+
# @return [Types::StartExecutionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
813
|
+
#
|
814
|
+
# * {Types::StartExecutionOutput#execution_arn #execution_arn} => String
|
815
|
+
# * {Types::StartExecutionOutput#start_date #start_date} => Time
|
816
|
+
#
|
817
|
+
# @example Request syntax with placeholder values
|
818
|
+
#
|
819
|
+
# resp = client.start_execution({
|
820
|
+
# state_machine_arn: "Arn", # required
|
821
|
+
# name: "Name",
|
822
|
+
# input: "Data",
|
823
|
+
# })
|
824
|
+
#
|
825
|
+
# @example Response structure
|
826
|
+
#
|
827
|
+
# resp.execution_arn #=> String
|
828
|
+
# resp.start_date #=> Time
|
829
|
+
#
|
830
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StartExecution AWS API Documentation
|
831
|
+
#
|
832
|
+
# @overload start_execution(params = {})
|
833
|
+
# @param [Hash] params ({})
|
834
|
+
def start_execution(params = {}, options = {})
|
835
|
+
req = build_request(:start_execution, params)
|
836
|
+
req.send_request(options)
|
837
|
+
end
|
699
838
|
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
839
|
+
# Stops an execution.
|
840
|
+
#
|
841
|
+
# @option params [required, String] :execution_arn
|
842
|
+
# The Amazon Resource Name (ARN) of the execution to stop.
|
843
|
+
#
|
844
|
+
# @option params [String] :error
|
845
|
+
# An arbitrary error code that identifies the cause of the termination.
|
846
|
+
#
|
847
|
+
# @option params [String] :cause
|
848
|
+
# A more detailed explanation of the cause of the termination.
|
849
|
+
#
|
850
|
+
# @return [Types::StopExecutionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
851
|
+
#
|
852
|
+
# * {Types::StopExecutionOutput#stop_date #stop_date} => Time
|
853
|
+
#
|
854
|
+
# @example Request syntax with placeholder values
|
855
|
+
#
|
856
|
+
# resp = client.stop_execution({
|
857
|
+
# execution_arn: "Arn", # required
|
858
|
+
# error: "Error",
|
859
|
+
# cause: "Cause",
|
860
|
+
# })
|
861
|
+
#
|
862
|
+
# @example Response structure
|
863
|
+
#
|
864
|
+
# resp.stop_date #=> Time
|
865
|
+
#
|
866
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/StopExecution AWS API Documentation
|
867
|
+
#
|
868
|
+
# @overload stop_execution(params = {})
|
869
|
+
# @param [Hash] params ({})
|
870
|
+
def stop_execution(params = {}, options = {})
|
871
|
+
req = build_request(:stop_execution, params)
|
872
|
+
req.send_request(options)
|
873
|
+
end
|
874
|
+
|
875
|
+
# @!endgroup
|
876
|
+
|
877
|
+
# @param params ({})
|
878
|
+
# @api private
|
879
|
+
def build_request(operation_name, params = {})
|
880
|
+
handlers = @handlers.for(operation_name)
|
881
|
+
context = Seahorse::Client::RequestContext.new(
|
882
|
+
operation_name: operation_name,
|
883
|
+
operation: config.api.operation(operation_name),
|
884
|
+
client: self,
|
885
|
+
params: params,
|
886
|
+
config: config)
|
887
|
+
context[:gem_name] = 'aws-sdk-sfn'
|
888
|
+
context[:gem_version] = '1.0.0.rc3'
|
889
|
+
Seahorse::Client::Request.new(handlers, context)
|
890
|
+
end
|
891
|
+
|
892
|
+
# @api private
|
893
|
+
# @deprecated
|
894
|
+
def waiter_names
|
895
|
+
[]
|
896
|
+
end
|
726
897
|
|
727
|
-
|
898
|
+
class << self
|
728
899
|
|
729
|
-
# @param params ({})
|
730
900
|
# @api private
|
731
|
-
|
732
|
-
handlers = @handlers.for(operation_name)
|
733
|
-
context = Seahorse::Client::RequestContext.new(
|
734
|
-
operation_name: operation_name,
|
735
|
-
operation: config.api.operation(operation_name),
|
736
|
-
client: self,
|
737
|
-
params: params,
|
738
|
-
config: config)
|
739
|
-
context[:gem_name] = 'aws-sdk-sfn'
|
740
|
-
context[:gem_version] = '1.0.0.rc2'
|
741
|
-
Seahorse::Client::Request.new(handlers, context)
|
742
|
-
end
|
901
|
+
attr_reader :identifier
|
743
902
|
|
744
903
|
# @api private
|
745
|
-
|
746
|
-
|
747
|
-
[]
|
904
|
+
def errors_module
|
905
|
+
Errors
|
748
906
|
end
|
749
907
|
|
750
|
-
class << self
|
751
|
-
|
752
|
-
# @api private
|
753
|
-
attr_reader :identifier
|
754
|
-
|
755
|
-
# @api private
|
756
|
-
def errors_module
|
757
|
-
Errors
|
758
|
-
end
|
759
|
-
|
760
|
-
end
|
761
908
|
end
|
762
909
|
end
|
763
910
|
end
|