aws-sdk-sfn 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -0,0 +1,23 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SFN
10
+ module Errors
11
+
12
+ extend Aws::Errors::DynamicErrors
13
+
14
+ # Raised when calling #load or #data on a resource class that can not be
15
+ # loaded. This can happen when:
16
+ #
17
+ # * A resource class has identifiers, but no data attributes.
18
+ # * Resource data is only available when making an API call that
19
+ # enumerates all resources of that type.
20
+ class ResourceNotLoadable < RuntimeError; end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,25 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SFN
10
+ class Resource
11
+
12
+ # @param options ({})
13
+ # @option options [Client] :client
14
+ def initialize(options = {})
15
+ @client = options[:client] || Client.new(options)
16
+ end
17
+
18
+ # @return [Client]
19
+ def client
20
+ @client
21
+ end
22
+
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,1074 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module SFN
10
+ module Types
11
+
12
+ # @!attribute [rw] error
13
+ # The error code of the failure.
14
+ # @return [String]
15
+ #
16
+ # @!attribute [rw] cause
17
+ # A more detailed explanation of the cause of the failure.
18
+ # @return [String]
19
+ class ActivityFailedEventDetails < Struct.new(
20
+ :error,
21
+ :cause)
22
+ include Aws::Structure
23
+ end
24
+
25
+ # @!attribute [rw] activity_arn
26
+ # The Amazon Resource Name (ARN) that identifies the activity.
27
+ # @return [String]
28
+ #
29
+ # @!attribute [rw] name
30
+ # The name of the activity.
31
+ # @return [String]
32
+ #
33
+ # @!attribute [rw] creation_date
34
+ # The date the activity was created.
35
+ # @return [Time]
36
+ class ActivityListItem < Struct.new(
37
+ :activity_arn,
38
+ :name,
39
+ :creation_date)
40
+ include Aws::Structure
41
+ end
42
+
43
+ # @!attribute [rw] error
44
+ # The error code of the failure.
45
+ # @return [String]
46
+ #
47
+ # @!attribute [rw] cause
48
+ # A more detailed explanation of the cause of the failure.
49
+ # @return [String]
50
+ class ActivityScheduleFailedEventDetails < Struct.new(
51
+ :error,
52
+ :cause)
53
+ include Aws::Structure
54
+ end
55
+
56
+ # @!attribute [rw] resource
57
+ # The Amazon Resource Name (ARN) of the scheduled activity.
58
+ # @return [String]
59
+ #
60
+ # @!attribute [rw] input
61
+ # The JSON data input to the activity task.
62
+ # @return [String]
63
+ #
64
+ # @!attribute [rw] timeout_in_seconds
65
+ # The maximum allowed duration of the activity task.
66
+ # @return [Integer]
67
+ #
68
+ # @!attribute [rw] heartbeat_in_seconds
69
+ # The maximum allowed duration between two heartbeats for the activity
70
+ # task.
71
+ # @return [Integer]
72
+ class ActivityScheduledEventDetails < Struct.new(
73
+ :resource,
74
+ :input,
75
+ :timeout_in_seconds,
76
+ :heartbeat_in_seconds)
77
+ include Aws::Structure
78
+ end
79
+
80
+ # @!attribute [rw] worker_name
81
+ # The name of the worker that the task was assigned to. These names
82
+ # are provided by the workers when calling GetActivityTask.
83
+ # @return [String]
84
+ class ActivityStartedEventDetails < Struct.new(
85
+ :worker_name)
86
+ include Aws::Structure
87
+ end
88
+
89
+ # @!attribute [rw] output
90
+ # The JSON data output by the activity task.
91
+ # @return [String]
92
+ class ActivitySucceededEventDetails < Struct.new(
93
+ :output)
94
+ include Aws::Structure
95
+ end
96
+
97
+ # @!attribute [rw] error
98
+ # The error code of the failure.
99
+ # @return [String]
100
+ #
101
+ # @!attribute [rw] cause
102
+ # A more detailed explanation of the cause of the timeout.
103
+ # @return [String]
104
+ class ActivityTimedOutEventDetails < Struct.new(
105
+ :error,
106
+ :cause)
107
+ include Aws::Structure
108
+ end
109
+
110
+ # @note When making an API call, pass CreateActivityInput
111
+ # data as a hash:
112
+ #
113
+ # {
114
+ # name: "Name", # required
115
+ # }
116
+ # @!attribute [rw] name
117
+ # The name of the activity to create. This name must be unique for
118
+ # your AWS account and region.
119
+ # @return [String]
120
+ class CreateActivityInput < Struct.new(
121
+ :name)
122
+ include Aws::Structure
123
+ end
124
+
125
+ # @!attribute [rw] activity_arn
126
+ # The Amazon Resource Name (ARN) that identifies the created activity.
127
+ # @return [String]
128
+ #
129
+ # @!attribute [rw] creation_date
130
+ # The date the activity was created.
131
+ # @return [Time]
132
+ class CreateActivityOutput < Struct.new(
133
+ :activity_arn,
134
+ :creation_date)
135
+ include Aws::Structure
136
+ end
137
+
138
+ # @note When making an API call, pass CreateStateMachineInput
139
+ # data as a hash:
140
+ #
141
+ # {
142
+ # name: "Name", # required
143
+ # definition: "Definition", # required
144
+ # role_arn: "Arn", # required
145
+ # }
146
+ # @!attribute [rw] name
147
+ # The name of the state machine. This name must be unique for your AWS
148
+ # account and region.
149
+ # @return [String]
150
+ #
151
+ # @!attribute [rw] definition
152
+ # The Amazon States Language definition of the state machine.
153
+ # @return [String]
154
+ #
155
+ # @!attribute [rw] role_arn
156
+ # The Amazon Resource Name (ARN) of the IAM role to use for this state
157
+ # machine.
158
+ # @return [String]
159
+ class CreateStateMachineInput < Struct.new(
160
+ :name,
161
+ :definition,
162
+ :role_arn)
163
+ include Aws::Structure
164
+ end
165
+
166
+ # @!attribute [rw] state_machine_arn
167
+ # The Amazon Resource Name (ARN) that identifies the created state
168
+ # machine.
169
+ # @return [String]
170
+ #
171
+ # @!attribute [rw] creation_date
172
+ # The date the state machine was created.
173
+ # @return [Time]
174
+ class CreateStateMachineOutput < Struct.new(
175
+ :state_machine_arn,
176
+ :creation_date)
177
+ include Aws::Structure
178
+ end
179
+
180
+ # @note When making an API call, pass DeleteActivityInput
181
+ # data as a hash:
182
+ #
183
+ # {
184
+ # activity_arn: "Arn", # required
185
+ # }
186
+ # @!attribute [rw] activity_arn
187
+ # The Amazon Resource Name (ARN) of the activity to delete.
188
+ # @return [String]
189
+ class DeleteActivityInput < Struct.new(
190
+ :activity_arn)
191
+ include Aws::Structure
192
+ end
193
+
194
+ class DeleteActivityOutput < Aws::EmptyStructure; end
195
+
196
+ # @note When making an API call, pass DeleteStateMachineInput
197
+ # data as a hash:
198
+ #
199
+ # {
200
+ # state_machine_arn: "Arn", # required
201
+ # }
202
+ # @!attribute [rw] state_machine_arn
203
+ # The Amazon Resource Name (ARN) of the state machine to delete.
204
+ # @return [String]
205
+ class DeleteStateMachineInput < Struct.new(
206
+ :state_machine_arn)
207
+ include Aws::Structure
208
+ end
209
+
210
+ class DeleteStateMachineOutput < Aws::EmptyStructure; end
211
+
212
+ # @note When making an API call, pass DescribeActivityInput
213
+ # data as a hash:
214
+ #
215
+ # {
216
+ # activity_arn: "Arn", # required
217
+ # }
218
+ # @!attribute [rw] activity_arn
219
+ # The Amazon Resource Name (ARN) of the activity to describe.
220
+ # @return [String]
221
+ class DescribeActivityInput < Struct.new(
222
+ :activity_arn)
223
+ include Aws::Structure
224
+ end
225
+
226
+ # @!attribute [rw] activity_arn
227
+ # The Amazon Resource Name (ARN) that identifies the activity.
228
+ # @return [String]
229
+ #
230
+ # @!attribute [rw] name
231
+ # The name of the activity.
232
+ # @return [String]
233
+ #
234
+ # @!attribute [rw] creation_date
235
+ # The date the activity was created.
236
+ # @return [Time]
237
+ class DescribeActivityOutput < Struct.new(
238
+ :activity_arn,
239
+ :name,
240
+ :creation_date)
241
+ include Aws::Structure
242
+ end
243
+
244
+ # @note When making an API call, pass DescribeExecutionInput
245
+ # data as a hash:
246
+ #
247
+ # {
248
+ # execution_arn: "Arn", # required
249
+ # }
250
+ # @!attribute [rw] execution_arn
251
+ # The Amazon Resource Name (ARN) of the execution to describe.
252
+ # @return [String]
253
+ class DescribeExecutionInput < Struct.new(
254
+ :execution_arn)
255
+ include Aws::Structure
256
+ end
257
+
258
+ # @!attribute [rw] execution_arn
259
+ # The Amazon Resource Name (ARN) that identifies the execution.
260
+ # @return [String]
261
+ #
262
+ # @!attribute [rw] state_machine_arn
263
+ # The Amazon Resource Name (ARN) of the executed stated machine.
264
+ # @return [String]
265
+ #
266
+ # @!attribute [rw] name
267
+ # The name of the execution.
268
+ # @return [String]
269
+ #
270
+ # @!attribute [rw] status
271
+ # The current status of the execution.
272
+ # @return [String]
273
+ #
274
+ # @!attribute [rw] start_date
275
+ # The date the execution was started.
276
+ # @return [Time]
277
+ #
278
+ # @!attribute [rw] stop_date
279
+ # If the execution has already ended, the date the execution stopped.
280
+ # @return [Time]
281
+ #
282
+ # @!attribute [rw] input
283
+ # The JSON input data of the execution.
284
+ # @return [String]
285
+ #
286
+ # @!attribute [rw] output
287
+ # The JSON output data of the execution.
288
+ # @return [String]
289
+ class DescribeExecutionOutput < Struct.new(
290
+ :execution_arn,
291
+ :state_machine_arn,
292
+ :name,
293
+ :status,
294
+ :start_date,
295
+ :stop_date,
296
+ :input,
297
+ :output)
298
+ include Aws::Structure
299
+ end
300
+
301
+ # @note When making an API call, pass DescribeStateMachineInput
302
+ # data as a hash:
303
+ #
304
+ # {
305
+ # state_machine_arn: "Arn", # required
306
+ # }
307
+ # @!attribute [rw] state_machine_arn
308
+ # The Amazon Resource Name (ARN) of the state machine to describe.
309
+ # @return [String]
310
+ class DescribeStateMachineInput < Struct.new(
311
+ :state_machine_arn)
312
+ include Aws::Structure
313
+ end
314
+
315
+ # @!attribute [rw] state_machine_arn
316
+ # The Amazon Resource Name (ARN) that identifies the state machine.
317
+ # @return [String]
318
+ #
319
+ # @!attribute [rw] name
320
+ # The name of the state machine.
321
+ # @return [String]
322
+ #
323
+ # @!attribute [rw] status
324
+ # The current status of the state machine.
325
+ # @return [String]
326
+ #
327
+ # @!attribute [rw] definition
328
+ # The Amazon States Language definition of the state machine.
329
+ # @return [String]
330
+ #
331
+ # @!attribute [rw] role_arn
332
+ # The Amazon Resource Name (ARN) of the IAM role used for executing
333
+ # this state machine.
334
+ # @return [String]
335
+ #
336
+ # @!attribute [rw] creation_date
337
+ # The date the state machine was created.
338
+ # @return [Time]
339
+ class DescribeStateMachineOutput < Struct.new(
340
+ :state_machine_arn,
341
+ :name,
342
+ :status,
343
+ :definition,
344
+ :role_arn,
345
+ :creation_date)
346
+ include Aws::Structure
347
+ end
348
+
349
+ # @!attribute [rw] error
350
+ # The error code of the failure.
351
+ # @return [String]
352
+ #
353
+ # @!attribute [rw] cause
354
+ # A more detailed explanation of the cause of the failure.
355
+ # @return [String]
356
+ class ExecutionAbortedEventDetails < Struct.new(
357
+ :error,
358
+ :cause)
359
+ include Aws::Structure
360
+ end
361
+
362
+ # @!attribute [rw] error
363
+ # The error code of the failure.
364
+ # @return [String]
365
+ #
366
+ # @!attribute [rw] cause
367
+ # A more detailed explanation of the cause of the failure.
368
+ # @return [String]
369
+ class ExecutionFailedEventDetails < Struct.new(
370
+ :error,
371
+ :cause)
372
+ include Aws::Structure
373
+ end
374
+
375
+ # @!attribute [rw] execution_arn
376
+ # The Amazon Resource Name (ARN) that identifies the execution.
377
+ # @return [String]
378
+ #
379
+ # @!attribute [rw] state_machine_arn
380
+ # The Amazon Resource Name (ARN) of the executed state machine.
381
+ # @return [String]
382
+ #
383
+ # @!attribute [rw] name
384
+ # The name of the execution.
385
+ # @return [String]
386
+ #
387
+ # @!attribute [rw] status
388
+ # The current status of the execution.
389
+ # @return [String]
390
+ #
391
+ # @!attribute [rw] start_date
392
+ # The date the execution started.
393
+ # @return [Time]
394
+ #
395
+ # @!attribute [rw] stop_date
396
+ # If the execution already ended, the date the execution stopped.
397
+ # @return [Time]
398
+ class ExecutionListItem < Struct.new(
399
+ :execution_arn,
400
+ :state_machine_arn,
401
+ :name,
402
+ :status,
403
+ :start_date,
404
+ :stop_date)
405
+ include Aws::Structure
406
+ end
407
+
408
+ # @!attribute [rw] input
409
+ # The JSON data input to the execution.
410
+ # @return [String]
411
+ #
412
+ # @!attribute [rw] role_arn
413
+ # The Amazon Resource Name (ARN) of the IAM role used for executing
414
+ # AWS Lambda tasks.
415
+ # @return [String]
416
+ class ExecutionStartedEventDetails < Struct.new(
417
+ :input,
418
+ :role_arn)
419
+ include Aws::Structure
420
+ end
421
+
422
+ # @!attribute [rw] output
423
+ # The JSON data output by the execution.
424
+ # @return [String]
425
+ class ExecutionSucceededEventDetails < Struct.new(
426
+ :output)
427
+ include Aws::Structure
428
+ end
429
+
430
+ # @!attribute [rw] error
431
+ # The error code of the failure.
432
+ # @return [String]
433
+ #
434
+ # @!attribute [rw] cause
435
+ # A more detailed explanation of the cause of the timeout.
436
+ # @return [String]
437
+ class ExecutionTimedOutEventDetails < Struct.new(
438
+ :error,
439
+ :cause)
440
+ include Aws::Structure
441
+ end
442
+
443
+ # @note When making an API call, pass GetActivityTaskInput
444
+ # data as a hash:
445
+ #
446
+ # {
447
+ # activity_arn: "Arn", # required
448
+ # worker_name: "Name",
449
+ # }
450
+ # @!attribute [rw] activity_arn
451
+ # The Amazon Resource Name (ARN) of the activity to retrieve tasks
452
+ # from.
453
+ # @return [String]
454
+ #
455
+ # @!attribute [rw] worker_name
456
+ # An arbitrary name may be provided in order to identify the worker
457
+ # that the task is assigned to. This name will be used when it is
458
+ # logged in the execution history.
459
+ # @return [String]
460
+ class GetActivityTaskInput < Struct.new(
461
+ :activity_arn,
462
+ :worker_name)
463
+ include Aws::Structure
464
+ end
465
+
466
+ # @!attribute [rw] task_token
467
+ # A token that identifies the scheduled task. This token must be
468
+ # copied and included in subsequent calls to SendTaskHeartbeat,
469
+ # SendTaskSuccess or SendTaskFailure in order to report the progress
470
+ # or completion of the task.
471
+ # @return [String]
472
+ #
473
+ # @!attribute [rw] input
474
+ # The JSON input data for the task.
475
+ # @return [String]
476
+ class GetActivityTaskOutput < Struct.new(
477
+ :task_token,
478
+ :input)
479
+ include Aws::Structure
480
+ end
481
+
482
+ # @note When making an API call, pass GetExecutionHistoryInput
483
+ # data as a hash:
484
+ #
485
+ # {
486
+ # execution_arn: "Arn", # required
487
+ # max_results: 1,
488
+ # reverse_order: false,
489
+ # next_token: "PageToken",
490
+ # }
491
+ # @!attribute [rw] execution_arn
492
+ # The Amazon Resource Name (ARN) of the execution.
493
+ # @return [String]
494
+ #
495
+ # @!attribute [rw] max_results
496
+ # The maximum number of results that will be returned per call.
497
+ # `nextToken` can be used to obtain further pages of results. The
498
+ # default is 100 and the maximum allowed page size is 1000.
499
+ #
500
+ # This is an upper limit only; the actual number of results returned
501
+ # per call may be fewer than the specified maximum.
502
+ # @return [Integer]
503
+ #
504
+ # @!attribute [rw] reverse_order
505
+ # Lists events in descending order of their `timeStamp`.
506
+ # @return [Boolean]
507
+ #
508
+ # @!attribute [rw] next_token
509
+ # If a `nextToken` was returned by a previous call, there are more
510
+ # results available. To retrieve the next page of results, make the
511
+ # call again using the returned token in `nextToken`. Keep all other
512
+ # arguments unchanged.
513
+ #
514
+ # The configured `maxResults` determines how many results can be
515
+ # returned in a single call.
516
+ # @return [String]
517
+ class GetExecutionHistoryInput < Struct.new(
518
+ :execution_arn,
519
+ :max_results,
520
+ :reverse_order,
521
+ :next_token)
522
+ include Aws::Structure
523
+ end
524
+
525
+ # @!attribute [rw] events
526
+ # The list of events that occurred in the execution.
527
+ # @return [Array<Types::HistoryEvent>]
528
+ #
529
+ # @!attribute [rw] next_token
530
+ # If a `nextToken` is returned, there are more results available. To
531
+ # retrieve the next page of results, make the call again using the
532
+ # returned token in `nextToken`. Keep all other arguments unchanged.
533
+ #
534
+ # The configured `maxResults` determines how many results can be
535
+ # returned in a single call.
536
+ # @return [String]
537
+ class GetExecutionHistoryOutput < Struct.new(
538
+ :events,
539
+ :next_token)
540
+ include Aws::Structure
541
+ end
542
+
543
+ # @!attribute [rw] timestamp
544
+ # The date the event occured.
545
+ # @return [Time]
546
+ #
547
+ # @!attribute [rw] type
548
+ # The type of the event.
549
+ # @return [String]
550
+ #
551
+ # @!attribute [rw] id
552
+ # The id of the event. Events are numbered sequentially, starting at
553
+ # one.
554
+ # @return [Integer]
555
+ #
556
+ # @!attribute [rw] previous_event_id
557
+ # The id of the previous event.
558
+ # @return [Integer]
559
+ #
560
+ # @!attribute [rw] activity_failed_event_details
561
+ # @return [Types::ActivityFailedEventDetails]
562
+ #
563
+ # @!attribute [rw] activity_schedule_failed_event_details
564
+ # @return [Types::ActivityScheduleFailedEventDetails]
565
+ #
566
+ # @!attribute [rw] activity_scheduled_event_details
567
+ # @return [Types::ActivityScheduledEventDetails]
568
+ #
569
+ # @!attribute [rw] activity_started_event_details
570
+ # @return [Types::ActivityStartedEventDetails]
571
+ #
572
+ # @!attribute [rw] activity_succeeded_event_details
573
+ # @return [Types::ActivitySucceededEventDetails]
574
+ #
575
+ # @!attribute [rw] activity_timed_out_event_details
576
+ # @return [Types::ActivityTimedOutEventDetails]
577
+ #
578
+ # @!attribute [rw] execution_failed_event_details
579
+ # @return [Types::ExecutionFailedEventDetails]
580
+ #
581
+ # @!attribute [rw] execution_started_event_details
582
+ # @return [Types::ExecutionStartedEventDetails]
583
+ #
584
+ # @!attribute [rw] execution_succeeded_event_details
585
+ # @return [Types::ExecutionSucceededEventDetails]
586
+ #
587
+ # @!attribute [rw] execution_aborted_event_details
588
+ # @return [Types::ExecutionAbortedEventDetails]
589
+ #
590
+ # @!attribute [rw] execution_timed_out_event_details
591
+ # @return [Types::ExecutionTimedOutEventDetails]
592
+ #
593
+ # @!attribute [rw] lambda_function_failed_event_details
594
+ # @return [Types::LambdaFunctionFailedEventDetails]
595
+ #
596
+ # @!attribute [rw] lambda_function_schedule_failed_event_details
597
+ # @return [Types::LambdaFunctionScheduleFailedEventDetails]
598
+ #
599
+ # @!attribute [rw] lambda_function_scheduled_event_details
600
+ # @return [Types::LambdaFunctionScheduledEventDetails]
601
+ #
602
+ # @!attribute [rw] lambda_function_start_failed_event_details
603
+ # @return [Types::LambdaFunctionStartFailedEventDetails]
604
+ #
605
+ # @!attribute [rw] lambda_function_succeeded_event_details
606
+ # @return [Types::LambdaFunctionSucceededEventDetails]
607
+ #
608
+ # @!attribute [rw] lambda_function_timed_out_event_details
609
+ # @return [Types::LambdaFunctionTimedOutEventDetails]
610
+ #
611
+ # @!attribute [rw] state_entered_event_details
612
+ # @return [Types::StateEnteredEventDetails]
613
+ #
614
+ # @!attribute [rw] state_exited_event_details
615
+ # @return [Types::StateExitedEventDetails]
616
+ class HistoryEvent < Struct.new(
617
+ :timestamp,
618
+ :type,
619
+ :id,
620
+ :previous_event_id,
621
+ :activity_failed_event_details,
622
+ :activity_schedule_failed_event_details,
623
+ :activity_scheduled_event_details,
624
+ :activity_started_event_details,
625
+ :activity_succeeded_event_details,
626
+ :activity_timed_out_event_details,
627
+ :execution_failed_event_details,
628
+ :execution_started_event_details,
629
+ :execution_succeeded_event_details,
630
+ :execution_aborted_event_details,
631
+ :execution_timed_out_event_details,
632
+ :lambda_function_failed_event_details,
633
+ :lambda_function_schedule_failed_event_details,
634
+ :lambda_function_scheduled_event_details,
635
+ :lambda_function_start_failed_event_details,
636
+ :lambda_function_succeeded_event_details,
637
+ :lambda_function_timed_out_event_details,
638
+ :state_entered_event_details,
639
+ :state_exited_event_details)
640
+ include Aws::Structure
641
+ end
642
+
643
+ # @!attribute [rw] error
644
+ # The error code of the failure.
645
+ # @return [String]
646
+ #
647
+ # @!attribute [rw] cause
648
+ # A more detailed explanation of the cause of the failure.
649
+ # @return [String]
650
+ class LambdaFunctionFailedEventDetails < Struct.new(
651
+ :error,
652
+ :cause)
653
+ include Aws::Structure
654
+ end
655
+
656
+ # @!attribute [rw] error
657
+ # The error code of the failure.
658
+ # @return [String]
659
+ #
660
+ # @!attribute [rw] cause
661
+ # A more detailed explanation of the cause of the failure.
662
+ # @return [String]
663
+ class LambdaFunctionScheduleFailedEventDetails < Struct.new(
664
+ :error,
665
+ :cause)
666
+ include Aws::Structure
667
+ end
668
+
669
+ # @!attribute [rw] resource
670
+ # The Amazon Resource Name (ARN) of the scheduled lambda function.
671
+ # @return [String]
672
+ #
673
+ # @!attribute [rw] input
674
+ # The JSON data input to the lambda function.
675
+ # @return [String]
676
+ #
677
+ # @!attribute [rw] timeout_in_seconds
678
+ # The maximum allowed duration of the lambda function.
679
+ # @return [Integer]
680
+ class LambdaFunctionScheduledEventDetails < Struct.new(
681
+ :resource,
682
+ :input,
683
+ :timeout_in_seconds)
684
+ include Aws::Structure
685
+ end
686
+
687
+ # @!attribute [rw] error
688
+ # The error code of the failure.
689
+ # @return [String]
690
+ #
691
+ # @!attribute [rw] cause
692
+ # A more detailed explanation of the cause of the failure.
693
+ # @return [String]
694
+ class LambdaFunctionStartFailedEventDetails < Struct.new(
695
+ :error,
696
+ :cause)
697
+ include Aws::Structure
698
+ end
699
+
700
+ # @!attribute [rw] output
701
+ # The JSON data output by the lambda function.
702
+ # @return [String]
703
+ class LambdaFunctionSucceededEventDetails < Struct.new(
704
+ :output)
705
+ include Aws::Structure
706
+ end
707
+
708
+ # @!attribute [rw] error
709
+ # The error code of the failure.
710
+ # @return [String]
711
+ #
712
+ # @!attribute [rw] cause
713
+ # A more detailed explanation of the cause of the timeout.
714
+ # @return [String]
715
+ class LambdaFunctionTimedOutEventDetails < Struct.new(
716
+ :error,
717
+ :cause)
718
+ include Aws::Structure
719
+ end
720
+
721
+ # @note When making an API call, pass ListActivitiesInput
722
+ # data as a hash:
723
+ #
724
+ # {
725
+ # max_results: 1,
726
+ # next_token: "PageToken",
727
+ # }
728
+ # @!attribute [rw] max_results
729
+ # The maximum number of results that will be returned per call.
730
+ # `nextToken` can be used to obtain further pages of results. The
731
+ # default is 100 and the maximum allowed page size is 1000.
732
+ #
733
+ # This is an upper limit only; the actual number of results returned
734
+ # per call may be fewer than the specified maximum.
735
+ # @return [Integer]
736
+ #
737
+ # @!attribute [rw] next_token
738
+ # If a `nextToken` was returned by a previous call, there are more
739
+ # results available. To retrieve the next page of results, make the
740
+ # call again using the returned token in `nextToken`. Keep all other
741
+ # arguments unchanged.
742
+ #
743
+ # The configured `maxResults` determines how many results can be
744
+ # returned in a single call.
745
+ # @return [String]
746
+ class ListActivitiesInput < Struct.new(
747
+ :max_results,
748
+ :next_token)
749
+ include Aws::Structure
750
+ end
751
+
752
+ # @!attribute [rw] activities
753
+ # The list of activities.
754
+ # @return [Array<Types::ActivityListItem>]
755
+ #
756
+ # @!attribute [rw] next_token
757
+ # If a `nextToken` is returned, there are more results available. To
758
+ # retrieve the next page of results, make the call again using the
759
+ # returned token in `nextToken`. Keep all other arguments unchanged.
760
+ #
761
+ # The configured `maxResults` determines how many results can be
762
+ # returned in a single call.
763
+ # @return [String]
764
+ class ListActivitiesOutput < Struct.new(
765
+ :activities,
766
+ :next_token)
767
+ include Aws::Structure
768
+ end
769
+
770
+ # @note When making an API call, pass ListExecutionsInput
771
+ # data as a hash:
772
+ #
773
+ # {
774
+ # state_machine_arn: "Arn", # required
775
+ # status_filter: "RUNNING", # accepts RUNNING, SUCCEEDED, FAILED, TIMED_OUT, ABORTED
776
+ # max_results: 1,
777
+ # next_token: "PageToken",
778
+ # }
779
+ # @!attribute [rw] state_machine_arn
780
+ # The Amazon Resource Name (ARN) of the state machine whose executions
781
+ # will be listed.
782
+ # @return [String]
783
+ #
784
+ # @!attribute [rw] status_filter
785
+ # If specified, only list the executions whose current execution
786
+ # status matches the given filter.
787
+ # @return [String]
788
+ #
789
+ # @!attribute [rw] max_results
790
+ # The maximum number of results that will be returned per call.
791
+ # `nextToken` can be used to obtain further pages of results. The
792
+ # default is 100 and the maximum allowed page size is 1000.
793
+ #
794
+ # This is an upper limit only; the actual number of results returned
795
+ # per call may be fewer than the specified maximum.
796
+ # @return [Integer]
797
+ #
798
+ # @!attribute [rw] next_token
799
+ # If a `nextToken` was returned by a previous call, there are more
800
+ # results available. To retrieve the next page of results, make the
801
+ # call again using the returned token in `nextToken`. Keep all other
802
+ # arguments unchanged.
803
+ #
804
+ # The configured `maxResults` determines how many results can be
805
+ # returned in a single call.
806
+ # @return [String]
807
+ class ListExecutionsInput < Struct.new(
808
+ :state_machine_arn,
809
+ :status_filter,
810
+ :max_results,
811
+ :next_token)
812
+ include Aws::Structure
813
+ end
814
+
815
+ # @!attribute [rw] executions
816
+ # The list of matching executions.
817
+ # @return [Array<Types::ExecutionListItem>]
818
+ #
819
+ # @!attribute [rw] next_token
820
+ # If a `nextToken` is returned, there are more results available. To
821
+ # retrieve the next page of results, make the call again using the
822
+ # returned token in `nextToken`. Keep all other arguments unchanged.
823
+ #
824
+ # The configured `maxResults` determines how many results can be
825
+ # returned in a single call.
826
+ # @return [String]
827
+ class ListExecutionsOutput < Struct.new(
828
+ :executions,
829
+ :next_token)
830
+ include Aws::Structure
831
+ end
832
+
833
+ # @note When making an API call, pass ListStateMachinesInput
834
+ # data as a hash:
835
+ #
836
+ # {
837
+ # max_results: 1,
838
+ # next_token: "PageToken",
839
+ # }
840
+ # @!attribute [rw] max_results
841
+ # The maximum number of results that will be returned per call.
842
+ # `nextToken` can be used to obtain further pages of results. The
843
+ # default is 100 and the maximum allowed page size is 1000.
844
+ #
845
+ # This is an upper limit only; the actual number of results returned
846
+ # per call may be fewer than the specified maximum.
847
+ # @return [Integer]
848
+ #
849
+ # @!attribute [rw] next_token
850
+ # If a `nextToken` was returned by a previous call, there are more
851
+ # results available. To retrieve the next page of results, make the
852
+ # call again using the returned token in `nextToken`. Keep all other
853
+ # arguments unchanged.
854
+ #
855
+ # The configured `maxResults` determines how many results can be
856
+ # returned in a single call.
857
+ # @return [String]
858
+ class ListStateMachinesInput < Struct.new(
859
+ :max_results,
860
+ :next_token)
861
+ include Aws::Structure
862
+ end
863
+
864
+ # @!attribute [rw] state_machines
865
+ # @return [Array<Types::StateMachineListItem>]
866
+ #
867
+ # @!attribute [rw] next_token
868
+ # If a `nextToken` is returned, there are more results available. To
869
+ # retrieve the next page of results, make the call again using the
870
+ # returned token in `nextToken`. Keep all other arguments unchanged.
871
+ #
872
+ # The configured `maxResults` determines how many results can be
873
+ # returned in a single call.
874
+ # @return [String]
875
+ class ListStateMachinesOutput < Struct.new(
876
+ :state_machines,
877
+ :next_token)
878
+ include Aws::Structure
879
+ end
880
+
881
+ # @note When making an API call, pass SendTaskFailureInput
882
+ # data as a hash:
883
+ #
884
+ # {
885
+ # task_token: "TaskToken", # required
886
+ # error: "Error",
887
+ # cause: "Cause",
888
+ # }
889
+ # @!attribute [rw] task_token
890
+ # The token that represents this task. Task tokens are generated by
891
+ # the service when the tasks are assigned to a worker (see
892
+ # GetActivityTask::taskToken).
893
+ # @return [String]
894
+ #
895
+ # @!attribute [rw] error
896
+ # An arbitrary error code that identifies the cause of the failure.
897
+ # @return [String]
898
+ #
899
+ # @!attribute [rw] cause
900
+ # A more detailed explanation of the cause of the failure.
901
+ # @return [String]
902
+ class SendTaskFailureInput < Struct.new(
903
+ :task_token,
904
+ :error,
905
+ :cause)
906
+ include Aws::Structure
907
+ end
908
+
909
+ class SendTaskFailureOutput < Aws::EmptyStructure; end
910
+
911
+ # @note When making an API call, pass SendTaskHeartbeatInput
912
+ # data as a hash:
913
+ #
914
+ # {
915
+ # task_token: "TaskToken", # required
916
+ # }
917
+ # @!attribute [rw] task_token
918
+ # The token that represents this task. Task tokens are generated by
919
+ # the service when the tasks are assigned to a worker (see
920
+ # GetActivityTask::taskToken).
921
+ # @return [String]
922
+ class SendTaskHeartbeatInput < Struct.new(
923
+ :task_token)
924
+ include Aws::Structure
925
+ end
926
+
927
+ class SendTaskHeartbeatOutput < Aws::EmptyStructure; end
928
+
929
+ # @note When making an API call, pass SendTaskSuccessInput
930
+ # data as a hash:
931
+ #
932
+ # {
933
+ # task_token: "TaskToken", # required
934
+ # output: "Data", # required
935
+ # }
936
+ # @!attribute [rw] task_token
937
+ # The token that represents this task. Task tokens are generated by
938
+ # the service when the tasks are assigned to a worker (see
939
+ # GetActivityTask::taskToken).
940
+ # @return [String]
941
+ #
942
+ # @!attribute [rw] output
943
+ # The JSON output of the task.
944
+ # @return [String]
945
+ class SendTaskSuccessInput < Struct.new(
946
+ :task_token,
947
+ :output)
948
+ include Aws::Structure
949
+ end
950
+
951
+ class SendTaskSuccessOutput < Aws::EmptyStructure; end
952
+
953
+ # @note When making an API call, pass StartExecutionInput
954
+ # data as a hash:
955
+ #
956
+ # {
957
+ # state_machine_arn: "Arn", # required
958
+ # name: "Name",
959
+ # input: "Data",
960
+ # }
961
+ # @!attribute [rw] state_machine_arn
962
+ # The Amazon Resource Name (ARN) of the state machine to execute.
963
+ # @return [String]
964
+ #
965
+ # @!attribute [rw] name
966
+ # The name of the execution. This name must be unique for your AWS
967
+ # account and region.
968
+ # @return [String]
969
+ #
970
+ # @!attribute [rw] input
971
+ # The JSON input data for the execution.
972
+ # @return [String]
973
+ class StartExecutionInput < Struct.new(
974
+ :state_machine_arn,
975
+ :name,
976
+ :input)
977
+ include Aws::Structure
978
+ end
979
+
980
+ # @!attribute [rw] execution_arn
981
+ # The Amazon Resource Name (ARN) that identifies the execution.
982
+ # @return [String]
983
+ #
984
+ # @!attribute [rw] start_date
985
+ # The date the execution was started.
986
+ # @return [Time]
987
+ class StartExecutionOutput < Struct.new(
988
+ :execution_arn,
989
+ :start_date)
990
+ include Aws::Structure
991
+ end
992
+
993
+ # @!attribute [rw] name
994
+ # The name of the state.
995
+ # @return [String]
996
+ #
997
+ # @!attribute [rw] input
998
+ # The JSON input data to the state.
999
+ # @return [String]
1000
+ class StateEnteredEventDetails < Struct.new(
1001
+ :name,
1002
+ :input)
1003
+ include Aws::Structure
1004
+ end
1005
+
1006
+ # @!attribute [rw] name
1007
+ # The name of the state.
1008
+ # @return [String]
1009
+ #
1010
+ # @!attribute [rw] output
1011
+ # The JSON output data of the state.
1012
+ # @return [String]
1013
+ class StateExitedEventDetails < Struct.new(
1014
+ :name,
1015
+ :output)
1016
+ include Aws::Structure
1017
+ end
1018
+
1019
+ # @!attribute [rw] state_machine_arn
1020
+ # The Amazon Resource Name (ARN) that identifies the state machine.
1021
+ # @return [String]
1022
+ #
1023
+ # @!attribute [rw] name
1024
+ # The name of the state machine.
1025
+ # @return [String]
1026
+ #
1027
+ # @!attribute [rw] creation_date
1028
+ # The date the state machine was created.
1029
+ # @return [Time]
1030
+ class StateMachineListItem < Struct.new(
1031
+ :state_machine_arn,
1032
+ :name,
1033
+ :creation_date)
1034
+ include Aws::Structure
1035
+ end
1036
+
1037
+ # @note When making an API call, pass StopExecutionInput
1038
+ # data as a hash:
1039
+ #
1040
+ # {
1041
+ # execution_arn: "Arn", # required
1042
+ # error: "Error",
1043
+ # cause: "Cause",
1044
+ # }
1045
+ # @!attribute [rw] execution_arn
1046
+ # The Amazon Resource Name (ARN) of the execution to stop.
1047
+ # @return [String]
1048
+ #
1049
+ # @!attribute [rw] error
1050
+ # An arbitrary error code that identifies the cause of the
1051
+ # termination.
1052
+ # @return [String]
1053
+ #
1054
+ # @!attribute [rw] cause
1055
+ # A more detailed explanation of the cause of the termination.
1056
+ # @return [String]
1057
+ class StopExecutionInput < Struct.new(
1058
+ :execution_arn,
1059
+ :error,
1060
+ :cause)
1061
+ include Aws::Structure
1062
+ end
1063
+
1064
+ # @!attribute [rw] stop_date
1065
+ # The date the execution was stopped.
1066
+ # @return [Time]
1067
+ class StopExecutionOutput < Struct.new(
1068
+ :stop_date)
1069
+ include Aws::Structure
1070
+ end
1071
+
1072
+ end
1073
+ end
1074
+ end