forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 2
/
api.go
7522 lines (6318 loc) · 332 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
139
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
165
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
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
290
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
321
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
360
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
449
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
491
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
545
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
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
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
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
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
699
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
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package swf provides a client for Amazon Simple Workflow Service.
package swf
import (
"time"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
"github.com/aws/aws-sdk-go/private/protocol"
"github.com/aws/aws-sdk-go/private/protocol/jsonrpc"
)
const opCountClosedWorkflowExecutions = "CountClosedWorkflowExecutions"
// CountClosedWorkflowExecutionsRequest generates a request for the CountClosedWorkflowExecutions operation.
func (c *SWF) CountClosedWorkflowExecutionsRequest(input *CountClosedWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionCount) {
op := &request.Operation{
Name: opCountClosedWorkflowExecutions,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CountClosedWorkflowExecutionsInput{}
}
req = c.newRequest(op, input, output)
output = &WorkflowExecutionCount{}
req.Data = output
return
}
// Returns the number of closed workflow executions within the given domain
// that meet the specified filtering criteria.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the following parameters by using a Condition element
// with the appropriate keys. tagFilter.tag: String constraint. The key is
// swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name.
// typeFilter.version: String constraint. The key is swf:typeFilter.version.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) CountClosedWorkflowExecutions(input *CountClosedWorkflowExecutionsInput) (*WorkflowExecutionCount, error) {
req, out := c.CountClosedWorkflowExecutionsRequest(input)
err := req.Send()
return out, err
}
const opCountOpenWorkflowExecutions = "CountOpenWorkflowExecutions"
// CountOpenWorkflowExecutionsRequest generates a request for the CountOpenWorkflowExecutions operation.
func (c *SWF) CountOpenWorkflowExecutionsRequest(input *CountOpenWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionCount) {
op := &request.Operation{
Name: opCountOpenWorkflowExecutions,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CountOpenWorkflowExecutionsInput{}
}
req = c.newRequest(op, input, output)
output = &WorkflowExecutionCount{}
req.Data = output
return
}
// Returns the number of open workflow executions within the given domain that
// meet the specified filtering criteria.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the following parameters by using a Condition element
// with the appropriate keys. tagFilter.tag: String constraint. The key is
// swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name.
// typeFilter.version: String constraint. The key is swf:typeFilter.version.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) CountOpenWorkflowExecutions(input *CountOpenWorkflowExecutionsInput) (*WorkflowExecutionCount, error) {
req, out := c.CountOpenWorkflowExecutionsRequest(input)
err := req.Send()
return out, err
}
const opCountPendingActivityTasks = "CountPendingActivityTasks"
// CountPendingActivityTasksRequest generates a request for the CountPendingActivityTasks operation.
func (c *SWF) CountPendingActivityTasksRequest(input *CountPendingActivityTasksInput) (req *request.Request, output *PendingTaskCount) {
op := &request.Operation{
Name: opCountPendingActivityTasks,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CountPendingActivityTasksInput{}
}
req = c.newRequest(op, input, output)
output = &PendingTaskCount{}
req.Data = output
return
}
// Returns the estimated number of activity tasks in the specified task list.
// The count returned is an approximation and is not guaranteed to be exact.
// If you specify a task list that no activity task was ever scheduled in then
// 0 will be returned.
//
// Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the taskList.name parameter by using a Condition element
// with the swf:taskList.name key to allow the action to access only certain
// task lists. If the caller does not have sufficient permissions to invoke
// the action, or the parameter values fall outside the specified constraints,
// the action fails. The associated event attribute's cause parameter will be
// set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see
// Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) CountPendingActivityTasks(input *CountPendingActivityTasksInput) (*PendingTaskCount, error) {
req, out := c.CountPendingActivityTasksRequest(input)
err := req.Send()
return out, err
}
const opCountPendingDecisionTasks = "CountPendingDecisionTasks"
// CountPendingDecisionTasksRequest generates a request for the CountPendingDecisionTasks operation.
func (c *SWF) CountPendingDecisionTasksRequest(input *CountPendingDecisionTasksInput) (req *request.Request, output *PendingTaskCount) {
op := &request.Operation{
Name: opCountPendingDecisionTasks,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CountPendingDecisionTasksInput{}
}
req = c.newRequest(op, input, output)
output = &PendingTaskCount{}
req.Data = output
return
}
// Returns the estimated number of decision tasks in the specified task list.
// The count returned is an approximation and is not guaranteed to be exact.
// If you specify a task list that no decision task was ever scheduled in then
// 0 will be returned.
//
// Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the taskList.name parameter by using a Condition element
// with the swf:taskList.name key to allow the action to access only certain
// task lists. If the caller does not have sufficient permissions to invoke
// the action, or the parameter values fall outside the specified constraints,
// the action fails. The associated event attribute's cause parameter will be
// set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see
// Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) CountPendingDecisionTasks(input *CountPendingDecisionTasksInput) (*PendingTaskCount, error) {
req, out := c.CountPendingDecisionTasksRequest(input)
err := req.Send()
return out, err
}
const opDeprecateActivityType = "DeprecateActivityType"
// DeprecateActivityTypeRequest generates a request for the DeprecateActivityType operation.
func (c *SWF) DeprecateActivityTypeRequest(input *DeprecateActivityTypeInput) (req *request.Request, output *DeprecateActivityTypeOutput) {
op := &request.Operation{
Name: opDeprecateActivityType,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeprecateActivityTypeInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeprecateActivityTypeOutput{}
req.Data = output
return
}
// Deprecates the specified activity type. After an activity type has been deprecated,
// you cannot create new tasks of that activity type. Tasks of this type that
// were scheduled before the type was deprecated will continue to run.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the following parameters by using a Condition element
// with the appropriate keys. activityType.name: String constraint. The key
// is swf:activityType.name. activityType.version: String constraint. The key
// is swf:activityType.version. If the caller does not have sufficient permissions
// to invoke the action, or the parameter values fall outside the specified
// constraints, the action fails. The associated event attribute's cause parameter
// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) DeprecateActivityType(input *DeprecateActivityTypeInput) (*DeprecateActivityTypeOutput, error) {
req, out := c.DeprecateActivityTypeRequest(input)
err := req.Send()
return out, err
}
const opDeprecateDomain = "DeprecateDomain"
// DeprecateDomainRequest generates a request for the DeprecateDomain operation.
func (c *SWF) DeprecateDomainRequest(input *DeprecateDomainInput) (req *request.Request, output *DeprecateDomainOutput) {
op := &request.Operation{
Name: opDeprecateDomain,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeprecateDomainInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeprecateDomainOutput{}
req.Data = output
return
}
// Deprecates the specified domain. After a domain has been deprecated it cannot
// be used to create new workflow executions or register new types. However,
// you can still use visibility actions on this domain. Deprecating a domain
// also deprecates all activity and workflow types registered in the domain.
// Executions that were started before the domain was deprecated will continue
// to run.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. You cannot use an IAM policy to constrain this action's parameters.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) DeprecateDomain(input *DeprecateDomainInput) (*DeprecateDomainOutput, error) {
req, out := c.DeprecateDomainRequest(input)
err := req.Send()
return out, err
}
const opDeprecateWorkflowType = "DeprecateWorkflowType"
// DeprecateWorkflowTypeRequest generates a request for the DeprecateWorkflowType operation.
func (c *SWF) DeprecateWorkflowTypeRequest(input *DeprecateWorkflowTypeInput) (req *request.Request, output *DeprecateWorkflowTypeOutput) {
op := &request.Operation{
Name: opDeprecateWorkflowType,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeprecateWorkflowTypeInput{}
}
req = c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output = &DeprecateWorkflowTypeOutput{}
req.Data = output
return
}
// Deprecates the specified workflow type. After a workflow type has been deprecated,
// you cannot create new executions of that type. Executions that were started
// before the type was deprecated will continue to run. A deprecated workflow
// type may still be used when calling visibility actions.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the following parameters by using a Condition element
// with the appropriate keys. workflowType.name: String constraint. The key
// is swf:workflowType.name. workflowType.version: String constraint. The key
// is swf:workflowType.version. If the caller does not have sufficient permissions
// to invoke the action, or the parameter values fall outside the specified
// constraints, the action fails. The associated event attribute's cause parameter
// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) DeprecateWorkflowType(input *DeprecateWorkflowTypeInput) (*DeprecateWorkflowTypeOutput, error) {
req, out := c.DeprecateWorkflowTypeRequest(input)
err := req.Send()
return out, err
}
const opDescribeActivityType = "DescribeActivityType"
// DescribeActivityTypeRequest generates a request for the DescribeActivityType operation.
func (c *SWF) DescribeActivityTypeRequest(input *DescribeActivityTypeInput) (req *request.Request, output *DescribeActivityTypeOutput) {
op := &request.Operation{
Name: opDescribeActivityType,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeActivityTypeInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeActivityTypeOutput{}
req.Data = output
return
}
// Returns information about the specified activity type. This includes configuration
// settings provided when the type was registered and other general information
// about the type.
//
// Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the following parameters by using a Condition element
// with the appropriate keys. activityType.name: String constraint. The key
// is swf:activityType.name. activityType.version: String constraint. The key
// is swf:activityType.version. If the caller does not have sufficient permissions
// to invoke the action, or the parameter values fall outside the specified
// constraints, the action fails. The associated event attribute's cause parameter
// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) DescribeActivityType(input *DescribeActivityTypeInput) (*DescribeActivityTypeOutput, error) {
req, out := c.DescribeActivityTypeRequest(input)
err := req.Send()
return out, err
}
const opDescribeDomain = "DescribeDomain"
// DescribeDomainRequest generates a request for the DescribeDomain operation.
func (c *SWF) DescribeDomainRequest(input *DescribeDomainInput) (req *request.Request, output *DescribeDomainOutput) {
op := &request.Operation{
Name: opDescribeDomain,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeDomainInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeDomainOutput{}
req.Data = output
return
}
// Returns information about the specified domain, including description and
// status.
//
// Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. You cannot use an IAM policy to constrain this action's parameters.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) DescribeDomain(input *DescribeDomainInput) (*DescribeDomainOutput, error) {
req, out := c.DescribeDomainRequest(input)
err := req.Send()
return out, err
}
const opDescribeWorkflowExecution = "DescribeWorkflowExecution"
// DescribeWorkflowExecutionRequest generates a request for the DescribeWorkflowExecution operation.
func (c *SWF) DescribeWorkflowExecutionRequest(input *DescribeWorkflowExecutionInput) (req *request.Request, output *DescribeWorkflowExecutionOutput) {
op := &request.Operation{
Name: opDescribeWorkflowExecution,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeWorkflowExecutionInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeWorkflowExecutionOutput{}
req.Data = output
return
}
// Returns information about the specified workflow execution including its
// type and some statistics.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. You cannot use an IAM policy to constrain this action's parameters.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) DescribeWorkflowExecution(input *DescribeWorkflowExecutionInput) (*DescribeWorkflowExecutionOutput, error) {
req, out := c.DescribeWorkflowExecutionRequest(input)
err := req.Send()
return out, err
}
const opDescribeWorkflowType = "DescribeWorkflowType"
// DescribeWorkflowTypeRequest generates a request for the DescribeWorkflowType operation.
func (c *SWF) DescribeWorkflowTypeRequest(input *DescribeWorkflowTypeInput) (req *request.Request, output *DescribeWorkflowTypeOutput) {
op := &request.Operation{
Name: opDescribeWorkflowType,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeWorkflowTypeInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeWorkflowTypeOutput{}
req.Data = output
return
}
// Returns information about the specified workflow type. This includes configuration
// settings specified when the type was registered and other information such
// as creation date, current status, and so on.
//
// Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the following parameters by using a Condition element
// with the appropriate keys. workflowType.name: String constraint. The key
// is swf:workflowType.name. workflowType.version: String constraint. The key
// is swf:workflowType.version. If the caller does not have sufficient permissions
// to invoke the action, or the parameter values fall outside the specified
// constraints, the action fails. The associated event attribute's cause parameter
// will be set to OPERATION_NOT_PERMITTED. For details and example IAM policies,
// see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) DescribeWorkflowType(input *DescribeWorkflowTypeInput) (*DescribeWorkflowTypeOutput, error) {
req, out := c.DescribeWorkflowTypeRequest(input)
err := req.Send()
return out, err
}
const opGetWorkflowExecutionHistory = "GetWorkflowExecutionHistory"
// GetWorkflowExecutionHistoryRequest generates a request for the GetWorkflowExecutionHistory operation.
func (c *SWF) GetWorkflowExecutionHistoryRequest(input *GetWorkflowExecutionHistoryInput) (req *request.Request, output *GetWorkflowExecutionHistoryOutput) {
op := &request.Operation{
Name: opGetWorkflowExecutionHistory,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextPageToken"},
OutputTokens: []string{"nextPageToken"},
LimitToken: "maximumPageSize",
TruncationToken: "",
},
}
if input == nil {
input = &GetWorkflowExecutionHistoryInput{}
}
req = c.newRequest(op, input, output)
output = &GetWorkflowExecutionHistoryOutput{}
req.Data = output
return
}
// Returns the history of the specified workflow execution. The results may
// be split into multiple pages. To retrieve subsequent pages, make the call
// again using the nextPageToken returned by the initial call.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. You cannot use an IAM policy to constrain this action's parameters.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) GetWorkflowExecutionHistory(input *GetWorkflowExecutionHistoryInput) (*GetWorkflowExecutionHistoryOutput, error) {
req, out := c.GetWorkflowExecutionHistoryRequest(input)
err := req.Send()
return out, err
}
func (c *SWF) GetWorkflowExecutionHistoryPages(input *GetWorkflowExecutionHistoryInput, fn func(p *GetWorkflowExecutionHistoryOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.GetWorkflowExecutionHistoryRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*GetWorkflowExecutionHistoryOutput), lastPage)
})
}
const opListActivityTypes = "ListActivityTypes"
// ListActivityTypesRequest generates a request for the ListActivityTypes operation.
func (c *SWF) ListActivityTypesRequest(input *ListActivityTypesInput) (req *request.Request, output *ListActivityTypesOutput) {
op := &request.Operation{
Name: opListActivityTypes,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextPageToken"},
OutputTokens: []string{"nextPageToken"},
LimitToken: "maximumPageSize",
TruncationToken: "",
},
}
if input == nil {
input = &ListActivityTypesInput{}
}
req = c.newRequest(op, input, output)
output = &ListActivityTypesOutput{}
req.Data = output
return
}
// Returns information about all activities registered in the specified domain
// that match the specified name and registration status. The result includes
// information like creation date, current status of the activity, etc. The
// results may be split into multiple pages. To retrieve subsequent pages, make
// the call again using the nextPageToken returned by the initial call.
//
// Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. You cannot use an IAM policy to constrain this action's parameters.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) ListActivityTypes(input *ListActivityTypesInput) (*ListActivityTypesOutput, error) {
req, out := c.ListActivityTypesRequest(input)
err := req.Send()
return out, err
}
func (c *SWF) ListActivityTypesPages(input *ListActivityTypesInput, fn func(p *ListActivityTypesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListActivityTypesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListActivityTypesOutput), lastPage)
})
}
const opListClosedWorkflowExecutions = "ListClosedWorkflowExecutions"
// ListClosedWorkflowExecutionsRequest generates a request for the ListClosedWorkflowExecutions operation.
func (c *SWF) ListClosedWorkflowExecutionsRequest(input *ListClosedWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionInfos) {
op := &request.Operation{
Name: opListClosedWorkflowExecutions,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextPageToken"},
OutputTokens: []string{"nextPageToken"},
LimitToken: "maximumPageSize",
TruncationToken: "",
},
}
if input == nil {
input = &ListClosedWorkflowExecutionsInput{}
}
req = c.newRequest(op, input, output)
output = &WorkflowExecutionInfos{}
req.Data = output
return
}
// Returns a list of closed workflow executions in the specified domain that
// meet the filtering criteria. The results may be split into multiple pages.
// To retrieve subsequent pages, make the call again using the nextPageToken
// returned by the initial call.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the following parameters by using a Condition element
// with the appropriate keys. tagFilter.tag: String constraint. The key is
// swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name.
// typeFilter.version: String constraint. The key is swf:typeFilter.version.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) ListClosedWorkflowExecutions(input *ListClosedWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) {
req, out := c.ListClosedWorkflowExecutionsRequest(input)
err := req.Send()
return out, err
}
func (c *SWF) ListClosedWorkflowExecutionsPages(input *ListClosedWorkflowExecutionsInput, fn func(p *WorkflowExecutionInfos, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListClosedWorkflowExecutionsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*WorkflowExecutionInfos), lastPage)
})
}
const opListDomains = "ListDomains"
// ListDomainsRequest generates a request for the ListDomains operation.
func (c *SWF) ListDomainsRequest(input *ListDomainsInput) (req *request.Request, output *ListDomainsOutput) {
op := &request.Operation{
Name: opListDomains,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextPageToken"},
OutputTokens: []string{"nextPageToken"},
LimitToken: "maximumPageSize",
TruncationToken: "",
},
}
if input == nil {
input = &ListDomainsInput{}
}
req = c.newRequest(op, input, output)
output = &ListDomainsOutput{}
req.Data = output
return
}
// Returns the list of domains registered in the account. The results may be
// split into multiple pages. To retrieve subsequent pages, make the call again
// using the nextPageToken returned by the initial call.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. The element must be set to arn:aws:swf::AccountID:domain/*,
// where AccountID is the account ID, with no dashes. Use an Action element
// to allow or deny permission to call this action. You cannot use an IAM policy
// to constrain this action's parameters. If the caller does not have sufficient
// permissions to invoke the action, or the parameter values fall outside the
// specified constraints, the action fails. The associated event attribute's
// cause parameter will be set to OPERATION_NOT_PERMITTED. For details and example
// IAM policies, see Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) ListDomains(input *ListDomainsInput) (*ListDomainsOutput, error) {
req, out := c.ListDomainsRequest(input)
err := req.Send()
return out, err
}
func (c *SWF) ListDomainsPages(input *ListDomainsInput, fn func(p *ListDomainsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListDomainsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListDomainsOutput), lastPage)
})
}
const opListOpenWorkflowExecutions = "ListOpenWorkflowExecutions"
// ListOpenWorkflowExecutionsRequest generates a request for the ListOpenWorkflowExecutions operation.
func (c *SWF) ListOpenWorkflowExecutionsRequest(input *ListOpenWorkflowExecutionsInput) (req *request.Request, output *WorkflowExecutionInfos) {
op := &request.Operation{
Name: opListOpenWorkflowExecutions,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextPageToken"},
OutputTokens: []string{"nextPageToken"},
LimitToken: "maximumPageSize",
TruncationToken: "",
},
}
if input == nil {
input = &ListOpenWorkflowExecutionsInput{}
}
req = c.newRequest(op, input, output)
output = &WorkflowExecutionInfos{}
req.Data = output
return
}
// Returns a list of open workflow executions in the specified domain that meet
// the filtering criteria. The results may be split into multiple pages. To
// retrieve subsequent pages, make the call again using the nextPageToken returned
// by the initial call.
//
// This operation is eventually consistent. The results are best effort and
// may not exactly reflect recent updates and changes. Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the following parameters by using a Condition element
// with the appropriate keys. tagFilter.tag: String constraint. The key is
// swf:tagFilter.tag. typeFilter.name: String constraint. The key is swf:typeFilter.name.
// typeFilter.version: String constraint. The key is swf:typeFilter.version.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) ListOpenWorkflowExecutions(input *ListOpenWorkflowExecutionsInput) (*WorkflowExecutionInfos, error) {
req, out := c.ListOpenWorkflowExecutionsRequest(input)
err := req.Send()
return out, err
}
func (c *SWF) ListOpenWorkflowExecutionsPages(input *ListOpenWorkflowExecutionsInput, fn func(p *WorkflowExecutionInfos, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListOpenWorkflowExecutionsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*WorkflowExecutionInfos), lastPage)
})
}
const opListWorkflowTypes = "ListWorkflowTypes"
// ListWorkflowTypesRequest generates a request for the ListWorkflowTypes operation.
func (c *SWF) ListWorkflowTypesRequest(input *ListWorkflowTypesInput) (req *request.Request, output *ListWorkflowTypesOutput) {
op := &request.Operation{
Name: opListWorkflowTypes,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextPageToken"},
OutputTokens: []string{"nextPageToken"},
LimitToken: "maximumPageSize",
TruncationToken: "",
},
}
if input == nil {
input = &ListWorkflowTypesInput{}
}
req = c.newRequest(op, input, output)
output = &ListWorkflowTypesOutput{}
req.Data = output
return
}
// Returns information about workflow types in the specified domain. The results
// may be split into multiple pages that can be retrieved by making the call
// repeatedly.
//
// Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. You cannot use an IAM policy to constrain this action's parameters.
// If the caller does not have sufficient permissions to invoke the action,
// or the parameter values fall outside the specified constraints, the action
// fails. The associated event attribute's cause parameter will be set to OPERATION_NOT_PERMITTED.
// For details and example IAM policies, see Using IAM to Manage Access to Amazon
// SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) ListWorkflowTypes(input *ListWorkflowTypesInput) (*ListWorkflowTypesOutput, error) {
req, out := c.ListWorkflowTypesRequest(input)
err := req.Send()
return out, err
}
func (c *SWF) ListWorkflowTypesPages(input *ListWorkflowTypesInput, fn func(p *ListWorkflowTypesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.ListWorkflowTypesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*ListWorkflowTypesOutput), lastPage)
})
}
const opPollForActivityTask = "PollForActivityTask"
// PollForActivityTaskRequest generates a request for the PollForActivityTask operation.
func (c *SWF) PollForActivityTaskRequest(input *PollForActivityTaskInput) (req *request.Request, output *PollForActivityTaskOutput) {
op := &request.Operation{
Name: opPollForActivityTask,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PollForActivityTaskInput{}
}
req = c.newRequest(op, input, output)
output = &PollForActivityTaskOutput{}
req.Data = output
return
}
// Used by workers to get an ActivityTask from the specified activity taskList.
// This initiates a long poll, where the service holds the HTTP connection open
// and responds as soon as a task becomes available. The maximum time the service
// holds on to the request before responding is 60 seconds. If no task is available
// within 60 seconds, the poll will return an empty result. An empty result,
// in this context, means that an ActivityTask is returned, but that the value
// of taskToken is an empty string. If a task is returned, the worker should
// use its type to identify and process it correctly.
//
// Workers should set their client side socket timeout to at least 70 seconds
// (10 seconds higher than the maximum time service may hold the poll request).
// Access Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the taskList.name parameter by using a Condition element
// with the swf:taskList.name key to allow the action to access only certain
// task lists. If the caller does not have sufficient permissions to invoke
// the action, or the parameter values fall outside the specified constraints,
// the action fails. The associated event attribute's cause parameter will be
// set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see
// Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) PollForActivityTask(input *PollForActivityTaskInput) (*PollForActivityTaskOutput, error) {
req, out := c.PollForActivityTaskRequest(input)
err := req.Send()
return out, err
}
const opPollForDecisionTask = "PollForDecisionTask"
// PollForDecisionTaskRequest generates a request for the PollForDecisionTask operation.
func (c *SWF) PollForDecisionTaskRequest(input *PollForDecisionTaskInput) (req *request.Request, output *PollForDecisionTaskOutput) {
op := &request.Operation{
Name: opPollForDecisionTask,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextPageToken"},
OutputTokens: []string{"nextPageToken"},
LimitToken: "maximumPageSize",
TruncationToken: "",
},
}
if input == nil {
input = &PollForDecisionTaskInput{}
}
req = c.newRequest(op, input, output)
output = &PollForDecisionTaskOutput{}
req.Data = output
return
}
// Used by deciders to get a DecisionTask from the specified decision taskList.
// A decision task may be returned for any open workflow execution that is using
// the specified task list. The task includes a paginated view of the history
// of the workflow execution. The decider should use the workflow type and the
// history to determine how to properly handle the task.
//
// This action initiates a long poll, where the service holds the HTTP connection
// open and responds as soon a task becomes available. If no decision task is
// available in the specified task list before the timeout of 60 seconds expires,
// an empty result is returned. An empty result, in this context, means that
// a DecisionTask is returned, but that the value of taskToken is an empty string.
//
// Deciders should set their client-side socket timeout to at least 70 seconds
// (10 seconds higher than the timeout). Because the number of workflow history
// events for a single workflow execution might be very large, the result returned
// might be split up across a number of pages. To retrieve subsequent pages,
// make additional calls to PollForDecisionTask using the nextPageToken returned
// by the initial call. Note that you do not call GetWorkflowExecutionHistory
// with this nextPageToken. Instead, call PollForDecisionTask again. Access
// Control
//
// You can use IAM policies to control this action's access to Amazon SWF resources
// as follows:
//
// Use a Resource element with the domain name to limit the action to only
// specified domains. Use an Action element to allow or deny permission to call
// this action. Constrain the taskList.name parameter by using a Condition element
// with the swf:taskList.name key to allow the action to access only certain
// task lists. If the caller does not have sufficient permissions to invoke
// the action, or the parameter values fall outside the specified constraints,
// the action fails. The associated event attribute's cause parameter will be
// set to OPERATION_NOT_PERMITTED. For details and example IAM policies, see
// Using IAM to Manage Access to Amazon SWF Workflows (http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dev-iam.html).
func (c *SWF) PollForDecisionTask(input *PollForDecisionTaskInput) (*PollForDecisionTaskOutput, error) {
req, out := c.PollForDecisionTaskRequest(input)
err := req.Send()
return out, err
}
func (c *SWF) PollForDecisionTaskPages(input *PollForDecisionTaskInput, fn func(p *PollForDecisionTaskOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.PollForDecisionTaskRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*PollForDecisionTaskOutput), lastPage)
})
}
const opRecordActivityTaskHeartbeat = "RecordActivityTaskHeartbeat"