This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
1628 lines (1303 loc) · 56.6 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 datapipeline provides a client for AWS Data Pipeline.
package datapipeline
import (
"sync"
"github.com/awslabs/aws-sdk-go/aws"
)
var oprw sync.Mutex
// ActivatePipelineRequest generates a request for the ActivatePipeline operation.
func (c *DataPipeline) ActivatePipelineRequest(input *ActivatePipelineInput) (req *aws.Request, output *ActivatePipelineOutput) {
oprw.Lock()
defer oprw.Unlock()
if opActivatePipeline == nil {
opActivatePipeline = &aws.Operation{
Name: "ActivatePipeline",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &ActivatePipelineInput{}
}
req = c.newRequest(opActivatePipeline, input, output)
output = &ActivatePipelineOutput{}
req.Data = output
return
}
// Validates a pipeline and initiates processing. If the pipeline does not pass
// validation, activation fails. You cannot perform this operation on FINISHED
// pipelines and attempting to do so will return an InvalidRequestException.
//
// Call this action to start processing pipeline tasks of a pipeline you've
// created using the CreatePipeline and PutPipelineDefinition actions. A pipeline
// cannot be modified after it has been successfully activated.
func (c *DataPipeline) ActivatePipeline(input *ActivatePipelineInput) (output *ActivatePipelineOutput, err error) {
req, out := c.ActivatePipelineRequest(input)
output = out
err = req.Send()
return
}
var opActivatePipeline *aws.Operation
// AddTagsRequest generates a request for the AddTags operation.
func (c *DataPipeline) AddTagsRequest(input *AddTagsInput) (req *aws.Request, output *AddTagsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opAddTags == nil {
opAddTags = &aws.Operation{
Name: "AddTags",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &AddTagsInput{}
}
req = c.newRequest(opAddTags, input, output)
output = &AddTagsOutput{}
req.Data = output
return
}
// Add or modify tags in an existing pipeline.
func (c *DataPipeline) AddTags(input *AddTagsInput) (output *AddTagsOutput, err error) {
req, out := c.AddTagsRequest(input)
output = out
err = req.Send()
return
}
var opAddTags *aws.Operation
// CreatePipelineRequest generates a request for the CreatePipeline operation.
func (c *DataPipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *aws.Request, output *CreatePipelineOutput) {
oprw.Lock()
defer oprw.Unlock()
if opCreatePipeline == nil {
opCreatePipeline = &aws.Operation{
Name: "CreatePipeline",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &CreatePipelineInput{}
}
req = c.newRequest(opCreatePipeline, input, output)
output = &CreatePipelineOutput{}
req.Data = output
return
}
// Creates a new empty pipeline. When this action succeeds, you can then use
// the PutPipelineDefinition action to populate the pipeline.
func (c *DataPipeline) CreatePipeline(input *CreatePipelineInput) (output *CreatePipelineOutput, err error) {
req, out := c.CreatePipelineRequest(input)
output = out
err = req.Send()
return
}
var opCreatePipeline *aws.Operation
// DeletePipelineRequest generates a request for the DeletePipeline operation.
func (c *DataPipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *aws.Request, output *DeletePipelineOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDeletePipeline == nil {
opDeletePipeline = &aws.Operation{
Name: "DeletePipeline",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DeletePipelineInput{}
}
req = c.newRequest(opDeletePipeline, input, output)
output = &DeletePipelineOutput{}
req.Data = output
return
}
// Permanently deletes a pipeline, its pipeline definition and its run history.
// You cannot query or restore a deleted pipeline. AWS Data Pipeline will attempt
// to cancel instances associated with the pipeline that are currently being
// processed by task runners. Deleting a pipeline cannot be undone.
//
// To temporarily pause a pipeline instead of deleting it, call SetStatus
// with the status set to Pause on individual components. Components that are
// paused by SetStatus can be resumed.
func (c *DataPipeline) DeletePipeline(input *DeletePipelineInput) (output *DeletePipelineOutput, err error) {
req, out := c.DeletePipelineRequest(input)
output = out
err = req.Send()
return
}
var opDeletePipeline *aws.Operation
// DescribeObjectsRequest generates a request for the DescribeObjects operation.
func (c *DataPipeline) DescribeObjectsRequest(input *DescribeObjectsInput) (req *aws.Request, output *DescribeObjectsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribeObjects == nil {
opDescribeObjects = &aws.Operation{
Name: "DescribeObjects",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribeObjectsInput{}
}
req = c.newRequest(opDescribeObjects, input, output)
output = &DescribeObjectsOutput{}
req.Data = output
return
}
// Returns the object definitions for a set of objects associated with the pipeline.
// Object definitions are composed of a set of fields that define the properties
// of the object.
func (c *DataPipeline) DescribeObjects(input *DescribeObjectsInput) (output *DescribeObjectsOutput, err error) {
req, out := c.DescribeObjectsRequest(input)
output = out
err = req.Send()
return
}
var opDescribeObjects *aws.Operation
// DescribePipelinesRequest generates a request for the DescribePipelines operation.
func (c *DataPipeline) DescribePipelinesRequest(input *DescribePipelinesInput) (req *aws.Request, output *DescribePipelinesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opDescribePipelines == nil {
opDescribePipelines = &aws.Operation{
Name: "DescribePipelines",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &DescribePipelinesInput{}
}
req = c.newRequest(opDescribePipelines, input, output)
output = &DescribePipelinesOutput{}
req.Data = output
return
}
// Retrieve metadata about one or more pipelines. The information retrieved
// includes the name of the pipeline, the pipeline identifier, its current state,
// and the user account that owns the pipeline. Using account credentials, you
// can retrieve metadata about pipelines that you or your IAM users have created.
// If you are using an IAM user account, you can retrieve metadata about only
// those pipelines you have read permission for.
//
// To retrieve the full pipeline definition instead of metadata about the
// pipeline, call the GetPipelineDefinition action.
func (c *DataPipeline) DescribePipelines(input *DescribePipelinesInput) (output *DescribePipelinesOutput, err error) {
req, out := c.DescribePipelinesRequest(input)
output = out
err = req.Send()
return
}
var opDescribePipelines *aws.Operation
// EvaluateExpressionRequest generates a request for the EvaluateExpression operation.
func (c *DataPipeline) EvaluateExpressionRequest(input *EvaluateExpressionInput) (req *aws.Request, output *EvaluateExpressionOutput) {
oprw.Lock()
defer oprw.Unlock()
if opEvaluateExpression == nil {
opEvaluateExpression = &aws.Operation{
Name: "EvaluateExpression",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &EvaluateExpressionInput{}
}
req = c.newRequest(opEvaluateExpression, input, output)
output = &EvaluateExpressionOutput{}
req.Data = output
return
}
// Evaluates a string in the context of a specified object. A task runner can
// use this action to evaluate SQL queries stored in Amazon S3.
func (c *DataPipeline) EvaluateExpression(input *EvaluateExpressionInput) (output *EvaluateExpressionOutput, err error) {
req, out := c.EvaluateExpressionRequest(input)
output = out
err = req.Send()
return
}
var opEvaluateExpression *aws.Operation
// GetPipelineDefinitionRequest generates a request for the GetPipelineDefinition operation.
func (c *DataPipeline) GetPipelineDefinitionRequest(input *GetPipelineDefinitionInput) (req *aws.Request, output *GetPipelineDefinitionOutput) {
oprw.Lock()
defer oprw.Unlock()
if opGetPipelineDefinition == nil {
opGetPipelineDefinition = &aws.Operation{
Name: "GetPipelineDefinition",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &GetPipelineDefinitionInput{}
}
req = c.newRequest(opGetPipelineDefinition, input, output)
output = &GetPipelineDefinitionOutput{}
req.Data = output
return
}
// Returns the definition of the specified pipeline. You can call GetPipelineDefinition
// to retrieve the pipeline definition you provided using PutPipelineDefinition.
func (c *DataPipeline) GetPipelineDefinition(input *GetPipelineDefinitionInput) (output *GetPipelineDefinitionOutput, err error) {
req, out := c.GetPipelineDefinitionRequest(input)
output = out
err = req.Send()
return
}
var opGetPipelineDefinition *aws.Operation
// ListPipelinesRequest generates a request for the ListPipelines operation.
func (c *DataPipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *aws.Request, output *ListPipelinesOutput) {
oprw.Lock()
defer oprw.Unlock()
if opListPipelines == nil {
opListPipelines = &aws.Operation{
Name: "ListPipelines",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &ListPipelinesInput{}
}
req = c.newRequest(opListPipelines, input, output)
output = &ListPipelinesOutput{}
req.Data = output
return
}
// Returns a list of pipeline identifiers for all active pipelines. Identifiers
// are returned only for pipelines you have permission to access.
func (c *DataPipeline) ListPipelines(input *ListPipelinesInput) (output *ListPipelinesOutput, err error) {
req, out := c.ListPipelinesRequest(input)
output = out
err = req.Send()
return
}
var opListPipelines *aws.Operation
// PollForTaskRequest generates a request for the PollForTask operation.
func (c *DataPipeline) PollForTaskRequest(input *PollForTaskInput) (req *aws.Request, output *PollForTaskOutput) {
oprw.Lock()
defer oprw.Unlock()
if opPollForTask == nil {
opPollForTask = &aws.Operation{
Name: "PollForTask",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &PollForTaskInput{}
}
req = c.newRequest(opPollForTask, input, output)
output = &PollForTaskOutput{}
req.Data = output
return
}
// Task runners call this action to receive a task to perform from AWS Data
// Pipeline. The task runner specifies which tasks it can perform by setting
// a value for the workerGroup parameter of the PollForTask call. The task returned
// by PollForTask may come from any of the pipelines that match the workerGroup
// value passed in by the task runner and that was launched using the IAM user
// credentials specified by the task runner.
//
// If tasks are ready in the work queue, PollForTask returns a response immediately.
// If no tasks are available in the queue, PollForTask uses long-polling and
// holds on to a poll connection for up to a 90 seconds during which time the
// first newly scheduled task is handed to the task runner. To accomodate this,
// set the socket timeout in your task runner to 90 seconds. The task runner
// should not call PollForTask again on the same workerGroup until it receives
// a response, and this may take up to 90 seconds.
func (c *DataPipeline) PollForTask(input *PollForTaskInput) (output *PollForTaskOutput, err error) {
req, out := c.PollForTaskRequest(input)
output = out
err = req.Send()
return
}
var opPollForTask *aws.Operation
// PutPipelineDefinitionRequest generates a request for the PutPipelineDefinition operation.
func (c *DataPipeline) PutPipelineDefinitionRequest(input *PutPipelineDefinitionInput) (req *aws.Request, output *PutPipelineDefinitionOutput) {
oprw.Lock()
defer oprw.Unlock()
if opPutPipelineDefinition == nil {
opPutPipelineDefinition = &aws.Operation{
Name: "PutPipelineDefinition",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &PutPipelineDefinitionInput{}
}
req = c.newRequest(opPutPipelineDefinition, input, output)
output = &PutPipelineDefinitionOutput{}
req.Data = output
return
}
// Adds tasks, schedules, and preconditions that control the behavior of the
// pipeline. You can use PutPipelineDefinition to populate a new pipeline.
//
// PutPipelineDefinition also validates the configuration as it adds it to
// the pipeline. Changes to the pipeline are saved unless one of the following
// three validation errors exists in the pipeline. An object is missing a name
// or identifier field. A string or reference field is empty. The number of
// objects in the pipeline exceeds the maximum allowed objects. The pipeline
// is in a FINISHED state.
//
// Pipeline object definitions are passed to the PutPipelineDefinition action
// and returned by the GetPipelineDefinition action.
func (c *DataPipeline) PutPipelineDefinition(input *PutPipelineDefinitionInput) (output *PutPipelineDefinitionOutput, err error) {
req, out := c.PutPipelineDefinitionRequest(input)
output = out
err = req.Send()
return
}
var opPutPipelineDefinition *aws.Operation
// QueryObjectsRequest generates a request for the QueryObjects operation.
func (c *DataPipeline) QueryObjectsRequest(input *QueryObjectsInput) (req *aws.Request, output *QueryObjectsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opQueryObjects == nil {
opQueryObjects = &aws.Operation{
Name: "QueryObjects",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &QueryObjectsInput{}
}
req = c.newRequest(opQueryObjects, input, output)
output = &QueryObjectsOutput{}
req.Data = output
return
}
// Queries a pipeline for the names of objects that match a specified set of
// conditions.
//
// The objects returned by QueryObjects are paginated and then filtered by
// the value you set for query. This means the action may return an empty result
// set with a value set for marker. If HasMoreResults is set to True, you should
// continue to call QueryObjects, passing in the returned value for marker,
// until HasMoreResults returns False.
func (c *DataPipeline) QueryObjects(input *QueryObjectsInput) (output *QueryObjectsOutput, err error) {
req, out := c.QueryObjectsRequest(input)
output = out
err = req.Send()
return
}
var opQueryObjects *aws.Operation
// RemoveTagsRequest generates a request for the RemoveTags operation.
func (c *DataPipeline) RemoveTagsRequest(input *RemoveTagsInput) (req *aws.Request, output *RemoveTagsOutput) {
oprw.Lock()
defer oprw.Unlock()
if opRemoveTags == nil {
opRemoveTags = &aws.Operation{
Name: "RemoveTags",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &RemoveTagsInput{}
}
req = c.newRequest(opRemoveTags, input, output)
output = &RemoveTagsOutput{}
req.Data = output
return
}
// Remove existing tags from a pipeline.
func (c *DataPipeline) RemoveTags(input *RemoveTagsInput) (output *RemoveTagsOutput, err error) {
req, out := c.RemoveTagsRequest(input)
output = out
err = req.Send()
return
}
var opRemoveTags *aws.Operation
// ReportTaskProgressRequest generates a request for the ReportTaskProgress operation.
func (c *DataPipeline) ReportTaskProgressRequest(input *ReportTaskProgressInput) (req *aws.Request, output *ReportTaskProgressOutput) {
oprw.Lock()
defer oprw.Unlock()
if opReportTaskProgress == nil {
opReportTaskProgress = &aws.Operation{
Name: "ReportTaskProgress",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &ReportTaskProgressInput{}
}
req = c.newRequest(opReportTaskProgress, input, output)
output = &ReportTaskProgressOutput{}
req.Data = output
return
}
// Updates the AWS Data Pipeline service on the progress of the calling task
// runner. When the task runner is assigned a task, it should call ReportTaskProgress
// to acknowledge that it has the task within 2 minutes. If the web service
// does not recieve this acknowledgement within the 2 minute window, it will
// assign the task in a subsequent PollForTask call. After this initial acknowledgement,
// the task runner only needs to report progress every 15 minutes to maintain
// its ownership of the task. You can change this reporting time from 15 minutes
// by specifying a reportProgressTimeout field in your pipeline. If a task runner
// does not report its status after 5 minutes, AWS Data Pipeline will assume
// that the task runner is unable to process the task and will reassign the
// task in a subsequent response to PollForTask. task runners should call ReportTaskProgress
// every 60 seconds.
func (c *DataPipeline) ReportTaskProgress(input *ReportTaskProgressInput) (output *ReportTaskProgressOutput, err error) {
req, out := c.ReportTaskProgressRequest(input)
output = out
err = req.Send()
return
}
var opReportTaskProgress *aws.Operation
// ReportTaskRunnerHeartbeatRequest generates a request for the ReportTaskRunnerHeartbeat operation.
func (c *DataPipeline) ReportTaskRunnerHeartbeatRequest(input *ReportTaskRunnerHeartbeatInput) (req *aws.Request, output *ReportTaskRunnerHeartbeatOutput) {
oprw.Lock()
defer oprw.Unlock()
if opReportTaskRunnerHeartbeat == nil {
opReportTaskRunnerHeartbeat = &aws.Operation{
Name: "ReportTaskRunnerHeartbeat",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &ReportTaskRunnerHeartbeatInput{}
}
req = c.newRequest(opReportTaskRunnerHeartbeat, input, output)
output = &ReportTaskRunnerHeartbeatOutput{}
req.Data = output
return
}
// Task runners call ReportTaskRunnerHeartbeat every 15 minutes to indicate
// that they are operational. In the case of AWS Data Pipeline Task Runner launched
// on a resource managed by AWS Data Pipeline, the web service can use this
// call to detect when the task runner application has failed and restart a
// new instance.
func (c *DataPipeline) ReportTaskRunnerHeartbeat(input *ReportTaskRunnerHeartbeatInput) (output *ReportTaskRunnerHeartbeatOutput, err error) {
req, out := c.ReportTaskRunnerHeartbeatRequest(input)
output = out
err = req.Send()
return
}
var opReportTaskRunnerHeartbeat *aws.Operation
// SetStatusRequest generates a request for the SetStatus operation.
func (c *DataPipeline) SetStatusRequest(input *SetStatusInput) (req *aws.Request, output *SetStatusOutput) {
oprw.Lock()
defer oprw.Unlock()
if opSetStatus == nil {
opSetStatus = &aws.Operation{
Name: "SetStatus",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &SetStatusInput{}
}
req = c.newRequest(opSetStatus, input, output)
output = &SetStatusOutput{}
req.Data = output
return
}
// Requests that the status of an array of physical or logical pipeline objects
// be updated in the pipeline. This update may not occur immediately, but is
// eventually consistent. The status that can be set depends on the type of
// object, e.g. DataNode or Activity. You cannot perform this operation on FINISHED
// pipelines and attempting to do so will return an InvalidRequestException.
func (c *DataPipeline) SetStatus(input *SetStatusInput) (output *SetStatusOutput, err error) {
req, out := c.SetStatusRequest(input)
output = out
err = req.Send()
return
}
var opSetStatus *aws.Operation
// SetTaskStatusRequest generates a request for the SetTaskStatus operation.
func (c *DataPipeline) SetTaskStatusRequest(input *SetTaskStatusInput) (req *aws.Request, output *SetTaskStatusOutput) {
oprw.Lock()
defer oprw.Unlock()
if opSetTaskStatus == nil {
opSetTaskStatus = &aws.Operation{
Name: "SetTaskStatus",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &SetTaskStatusInput{}
}
req = c.newRequest(opSetTaskStatus, input, output)
output = &SetTaskStatusOutput{}
req.Data = output
return
}
// Notifies AWS Data Pipeline that a task is completed and provides information
// about the final status. The task runner calls this action regardless of whether
// the task was sucessful. The task runner does not need to call SetTaskStatus
// for tasks that are canceled by the web service during a call to ReportTaskProgress.
func (c *DataPipeline) SetTaskStatus(input *SetTaskStatusInput) (output *SetTaskStatusOutput, err error) {
req, out := c.SetTaskStatusRequest(input)
output = out
err = req.Send()
return
}
var opSetTaskStatus *aws.Operation
// ValidatePipelineDefinitionRequest generates a request for the ValidatePipelineDefinition operation.
func (c *DataPipeline) ValidatePipelineDefinitionRequest(input *ValidatePipelineDefinitionInput) (req *aws.Request, output *ValidatePipelineDefinitionOutput) {
oprw.Lock()
defer oprw.Unlock()
if opValidatePipelineDefinition == nil {
opValidatePipelineDefinition = &aws.Operation{
Name: "ValidatePipelineDefinition",
HTTPMethod: "POST",
HTTPPath: "/",
}
}
if input == nil {
input = &ValidatePipelineDefinitionInput{}
}
req = c.newRequest(opValidatePipelineDefinition, input, output)
output = &ValidatePipelineDefinitionOutput{}
req.Data = output
return
}
// Tests the pipeline definition with a set of validation checks to ensure that
// it is well formed and can run without error.
func (c *DataPipeline) ValidatePipelineDefinition(input *ValidatePipelineDefinitionInput) (output *ValidatePipelineDefinitionOutput, err error) {
req, out := c.ValidatePipelineDefinitionRequest(input)
output = out
err = req.Send()
return
}
var opValidatePipelineDefinition *aws.Operation
// The input of the ActivatePipeline action.
type ActivatePipelineInput struct {
// Returns a list of parameter values to pass to the pipeline at activation.
ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
// The identifier of the pipeline to activate.
PipelineID *string `locationName:"pipelineId" type:"string" required:"true"`
metadataActivatePipelineInput `json:"-" xml:"-"`
}
type metadataActivatePipelineInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Contains the output from the ActivatePipeline action.
type ActivatePipelineOutput struct {
metadataActivatePipelineOutput `json:"-" xml:"-"`
}
type metadataActivatePipelineOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// The input to the AddTags action.
type AddTagsInput struct {
// The identifier of the pipeline to which you want to add the tags.
PipelineID *string `locationName:"pipelineId" type:"string" required:"true"`
// The tags as key/value pairs to add to the pipeline.
Tags []*Tag `locationName:"tags" type:"list" required:"true"`
metadataAddTagsInput `json:"-" xml:"-"`
}
type metadataAddTagsInput struct {
SDKShapeTraits bool `type:"structure"`
}
// The response from the AddTags action.
type AddTagsOutput struct {
metadataAddTagsOutput `json:"-" xml:"-"`
}
type metadataAddTagsOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// The input for the CreatePipeline action.
type CreatePipelineInput struct {
// The description of the new pipeline.
Description *string `locationName:"description" type:"string"`
// The name of the new pipeline. You can use the same name for multiple pipelines
// associated with your AWS account, because AWS Data Pipeline assigns each
// new pipeline a unique pipeline identifier.
Name *string `locationName:"name" type:"string" required:"true"`
// A list of tags to associate with a pipeline at creation time. Tags let you
// control access to pipelines. For more information, see Controlling User Access
// to Pipelines (http://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-control-access.html)
// in the AWS Data Pipeline Developer Guide.
Tags []*Tag `locationName:"tags" type:"list"`
// A unique identifier that you specify. This identifier is not the same as
// the pipeline identifier assigned by AWS Data Pipeline. You are responsible
// for defining the format and ensuring the uniqueness of this identifier. You
// use this parameter to ensure idempotency during repeated calls to CreatePipeline.
// For example, if the first call to CreatePipeline does not return a clear
// success, you can pass in the same unique identifier and pipeline name combination
// on a subsequent call to CreatePipeline. CreatePipeline ensures that if a
// pipeline already exists with the same name and unique identifier, a new pipeline
// will not be created. Instead, you'll receive the pipeline identifier from
// the previous attempt. The uniqueness of the name and unique identifier combination
// is scoped to the AWS account or IAM user credentials.
UniqueID *string `locationName:"uniqueId" type:"string" required:"true"`
metadataCreatePipelineInput `json:"-" xml:"-"`
}
type metadataCreatePipelineInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Contains the output from the CreatePipeline action.
type CreatePipelineOutput struct {
// The ID that AWS Data Pipeline assigns the newly created pipeline. The ID
// is a string of the form: df-06372391ZG65EXAMPLE.
PipelineID *string `locationName:"pipelineId" type:"string" required:"true"`
metadataCreatePipelineOutput `json:"-" xml:"-"`
}
type metadataCreatePipelineOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// The input for the DeletePipeline action.
type DeletePipelineInput struct {
// The identifier of the pipeline to be deleted.
PipelineID *string `locationName:"pipelineId" type:"string" required:"true"`
metadataDeletePipelineInput `json:"-" xml:"-"`
}
type metadataDeletePipelineInput struct {
SDKShapeTraits bool `type:"structure"`
}
type DeletePipelineOutput struct {
metadataDeletePipelineOutput `json:"-" xml:"-"`
}
type metadataDeletePipelineOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// The DescribeObjects action returns the object definitions for a specified
// set of object identifiers. You can filter the results to named fields and
// used markers to page through the results.
type DescribeObjectsInput struct {
// Indicates whether any expressions in the object should be evaluated when
// the object descriptions are returned.
EvaluateExpressions *bool `locationName:"evaluateExpressions" type:"boolean"`
// The starting point for the results to be returned. The first time you call
// DescribeObjects, this value should be empty. As long as the action returns
// HasMoreResults as True, you can call DescribeObjects again and pass the marker
// value from the response to retrieve the next set of results.
Marker *string `locationName:"marker" type:"string"`
// Identifiers of the pipeline objects that contain the definitions to be described.
// You can pass as many as 25 identifiers in a single call to DescribeObjects.
ObjectIDs []*string `locationName:"objectIds" type:"list" required:"true"`
// Identifier of the pipeline that contains the object definitions.
PipelineID *string `locationName:"pipelineId" type:"string" required:"true"`
metadataDescribeObjectsInput `json:"-" xml:"-"`
}
type metadataDescribeObjectsInput struct {
SDKShapeTraits bool `type:"structure"`
}
// If True, there are more results that can be returned in another call to DescribeObjects.
type DescribeObjectsOutput struct {
// If True, there are more pages of results to return.
HasMoreResults *bool `locationName:"hasMoreResults" type:"boolean"`
// The starting point for the next page of results. To view the next page of
// results, call DescribeObjects again with this marker value.
Marker *string `locationName:"marker" type:"string"`
// An array of object definitions that are returned by the call to DescribeObjects.
PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list" required:"true"`
metadataDescribeObjectsOutput `json:"-" xml:"-"`
}
type metadataDescribeObjectsOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// The input to the DescribePipelines action.
type DescribePipelinesInput struct {
// Identifiers of the pipelines to describe. You can pass as many as 25 identifiers
// in a single call to DescribePipelines. You can obtain pipeline identifiers
// by calling ListPipelines.
PipelineIDs []*string `locationName:"pipelineIds" type:"list" required:"true"`
metadataDescribePipelinesInput `json:"-" xml:"-"`
}
type metadataDescribePipelinesInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Contains the output from the DescribePipelines action.
type DescribePipelinesOutput struct {
// An array of descriptions returned for the specified pipelines.
PipelineDescriptionList []*PipelineDescription `locationName:"pipelineDescriptionList" type:"list" required:"true"`
metadataDescribePipelinesOutput `json:"-" xml:"-"`
}
type metadataDescribePipelinesOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// The input for the EvaluateExpression action.
type EvaluateExpressionInput struct {
// The expression to evaluate.
Expression *string `locationName:"expression" type:"string" required:"true"`
// The identifier of the object.
ObjectID *string `locationName:"objectId" type:"string" required:"true"`
// The identifier of the pipeline.
PipelineID *string `locationName:"pipelineId" type:"string" required:"true"`
metadataEvaluateExpressionInput `json:"-" xml:"-"`
}
type metadataEvaluateExpressionInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Contains the output from the EvaluateExpression action.
type EvaluateExpressionOutput struct {
// The evaluated expression.
EvaluatedExpression *string `locationName:"evaluatedExpression" type:"string" required:"true"`
metadataEvaluateExpressionOutput `json:"-" xml:"-"`
}
type metadataEvaluateExpressionOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// A key-value pair that describes a property of a pipeline object. The value
// is specified as either a string value (StringValue) or a reference to another
// object (RefValue) but not as both.
type Field struct {
// The field identifier.
Key *string `locationName:"key" type:"string" required:"true"`
// The field value, expressed as the identifier of another object.
RefValue *string `locationName:"refValue" type:"string"`
// The field value, expressed as a String.
StringValue *string `locationName:"stringValue" type:"string"`
metadataField `json:"-" xml:"-"`
}
type metadataField struct {
SDKShapeTraits bool `type:"structure"`
}
// The input for the GetPipelineDefinition action.
type GetPipelineDefinitionInput struct {
// The identifier of the pipeline.
PipelineID *string `locationName:"pipelineId" type:"string" required:"true"`
// The version of the pipeline definition to retrieve. This parameter accepts
// the values latest (default) and active. Where latest indicates the last definition
// saved to the pipeline and active indicates the last definition of the pipeline
// that was activated.
Version *string `locationName:"version" type:"string"`
metadataGetPipelineDefinitionInput `json:"-" xml:"-"`
}
type metadataGetPipelineDefinitionInput struct {
SDKShapeTraits bool `type:"structure"`
}
// Contains the output from the GetPipelineDefinition action.
type GetPipelineDefinitionOutput struct {
// Returns a list of parameter objects used in the pipeline definition.
ParameterObjects []*ParameterObject `locationName:"parameterObjects" type:"list"`
// Returns a list of parameter values used in the pipeline definition.
ParameterValues []*ParameterValue `locationName:"parameterValues" type:"list"`
// An array of objects defined in the pipeline.
PipelineObjects []*PipelineObject `locationName:"pipelineObjects" type:"list"`
metadataGetPipelineDefinitionOutput `json:"-" xml:"-"`
}
type metadataGetPipelineDefinitionOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// Identity information for the Amazon EC2 instance that is hosting the task
// runner. You can get this value by calling a metadata URI from the EC2 instance.
// For more information, go to Instance Metadata (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html)
// in the Amazon Elastic Compute Cloud User Guide. Passing in this value proves
// that your task runner is running on an EC2 instance, and ensures the proper
// AWS Data Pipeline service charges are applied to your pipeline.
type InstanceIdentity struct {
// A description of an Amazon EC2 instance that is generated when the instance
// is launched and exposed to the instance via the instance metadata service
// in the form of a JSON representation of an object.
Document *string `locationName:"document" type:"string"`
// A signature which can be used to verify the accuracy and authenticity of
// the information provided in the instance identity document.
Signature *string `locationName:"signature" type:"string"`
metadataInstanceIdentity `json:"-" xml:"-"`
}
type metadataInstanceIdentity struct {
SDKShapeTraits bool `type:"structure"`
}
// The input to the ListPipelines action.
type ListPipelinesInput struct {
// The starting point for the results to be returned. The first time you call
// ListPipelines, this value should be empty. As long as the action returns
// HasMoreResults as True, you can call ListPipelines again and pass the marker
// value from the response to retrieve the next set of results.
Marker *string `locationName:"marker" type:"string"`
metadataListPipelinesInput `json:"-" xml:"-"`
}
type metadataListPipelinesInput struct {
SDKShapeTraits bool `type:"structure"`