forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 1
/
api.go
3067 lines (2410 loc) · 95.5 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 codepipeline provides a client for CodePipeline Service.
package codepipeline
import (
"time"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/service"
)
const opAcknowledgeJob = "AcknowledgeJob"
// AcknowledgeJobRequest generates a request for the AcknowledgeJob operation.
func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) (req *service.Request, output *AcknowledgeJobOutput) {
op := &service.Operation{
Name: opAcknowledgeJob,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AcknowledgeJobInput{}
}
req = c.newRequest(op, input, output)
output = &AcknowledgeJobOutput{}
req.Data = output
return
}
// Returns information about a specified job and whether that job has been received
// by the job worker. Only used for custom actions.
func (c *CodePipeline) AcknowledgeJob(input *AcknowledgeJobInput) (*AcknowledgeJobOutput, error) {
req, out := c.AcknowledgeJobRequest(input)
err := req.Send()
return out, err
}
const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob"
// AcknowledgeThirdPartyJobRequest generates a request for the AcknowledgeThirdPartyJob operation.
func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) (req *service.Request, output *AcknowledgeThirdPartyJobOutput) {
op := &service.Operation{
Name: opAcknowledgeThirdPartyJob,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AcknowledgeThirdPartyJobInput{}
}
req = c.newRequest(op, input, output)
output = &AcknowledgeThirdPartyJobOutput{}
req.Data = output
return
}
// Confirms a job worker has received the specified job. Only used for partner
// actions.
func (c *CodePipeline) AcknowledgeThirdPartyJob(input *AcknowledgeThirdPartyJobInput) (*AcknowledgeThirdPartyJobOutput, error) {
req, out := c.AcknowledgeThirdPartyJobRequest(input)
err := req.Send()
return out, err
}
const opCreateCustomActionType = "CreateCustomActionType"
// CreateCustomActionTypeRequest generates a request for the CreateCustomActionType operation.
func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) (req *service.Request, output *CreateCustomActionTypeOutput) {
op := &service.Operation{
Name: opCreateCustomActionType,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateCustomActionTypeInput{}
}
req = c.newRequest(op, input, output)
output = &CreateCustomActionTypeOutput{}
req.Data = output
return
}
// Creates a new custom action that can be used in all pipelines associated
// with the AWS account. Only used for custom actions.
func (c *CodePipeline) CreateCustomActionType(input *CreateCustomActionTypeInput) (*CreateCustomActionTypeOutput, error) {
req, out := c.CreateCustomActionTypeRequest(input)
err := req.Send()
return out, err
}
const opCreatePipeline = "CreatePipeline"
// CreatePipelineRequest generates a request for the CreatePipeline operation.
func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) (req *service.Request, output *CreatePipelineOutput) {
op := &service.Operation{
Name: opCreatePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreatePipelineInput{}
}
req = c.newRequest(op, input, output)
output = &CreatePipelineOutput{}
req.Data = output
return
}
// Creates a pipeline.
func (c *CodePipeline) CreatePipeline(input *CreatePipelineInput) (*CreatePipelineOutput, error) {
req, out := c.CreatePipelineRequest(input)
err := req.Send()
return out, err
}
const opDeleteCustomActionType = "DeleteCustomActionType"
// DeleteCustomActionTypeRequest generates a request for the DeleteCustomActionType operation.
func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) (req *service.Request, output *DeleteCustomActionTypeOutput) {
op := &service.Operation{
Name: opDeleteCustomActionType,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteCustomActionTypeInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteCustomActionTypeOutput{}
req.Data = output
return
}
// Marks a custom action as deleted. PollForJobs for the custom action will
// fail after the action is marked for deletion. Only used for custom actions.
//
// You cannot recreate a custom action after it has been deleted unless you
// increase the version number of the action.
func (c *CodePipeline) DeleteCustomActionType(input *DeleteCustomActionTypeInput) (*DeleteCustomActionTypeOutput, error) {
req, out := c.DeleteCustomActionTypeRequest(input)
err := req.Send()
return out, err
}
const opDeletePipeline = "DeletePipeline"
// DeletePipelineRequest generates a request for the DeletePipeline operation.
func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) (req *service.Request, output *DeletePipelineOutput) {
op := &service.Operation{
Name: opDeletePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeletePipelineInput{}
}
req = c.newRequest(op, input, output)
output = &DeletePipelineOutput{}
req.Data = output
return
}
// Deletes the specified pipeline.
func (c *CodePipeline) DeletePipeline(input *DeletePipelineInput) (*DeletePipelineOutput, error) {
req, out := c.DeletePipelineRequest(input)
err := req.Send()
return out, err
}
const opDisableStageTransition = "DisableStageTransition"
// DisableStageTransitionRequest generates a request for the DisableStageTransition operation.
func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) (req *service.Request, output *DisableStageTransitionOutput) {
op := &service.Operation{
Name: opDisableStageTransition,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DisableStageTransitionInput{}
}
req = c.newRequest(op, input, output)
output = &DisableStageTransitionOutput{}
req.Data = output
return
}
// Prevents artifacts in a pipeline from transitioning to the next stage in
// the pipeline.
func (c *CodePipeline) DisableStageTransition(input *DisableStageTransitionInput) (*DisableStageTransitionOutput, error) {
req, out := c.DisableStageTransitionRequest(input)
err := req.Send()
return out, err
}
const opEnableStageTransition = "EnableStageTransition"
// EnableStageTransitionRequest generates a request for the EnableStageTransition operation.
func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) (req *service.Request, output *EnableStageTransitionOutput) {
op := &service.Operation{
Name: opEnableStageTransition,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &EnableStageTransitionInput{}
}
req = c.newRequest(op, input, output)
output = &EnableStageTransitionOutput{}
req.Data = output
return
}
// Enables artifacts in a pipeline to transition to a stage in a pipeline.
func (c *CodePipeline) EnableStageTransition(input *EnableStageTransitionInput) (*EnableStageTransitionOutput, error) {
req, out := c.EnableStageTransitionRequest(input)
err := req.Send()
return out, err
}
const opGetJobDetails = "GetJobDetails"
// GetJobDetailsRequest generates a request for the GetJobDetails operation.
func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) (req *service.Request, output *GetJobDetailsOutput) {
op := &service.Operation{
Name: opGetJobDetails,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetJobDetailsInput{}
}
req = c.newRequest(op, input, output)
output = &GetJobDetailsOutput{}
req.Data = output
return
}
// Returns information about a job. Only used for custom actions.
//
// When this API is called, AWS CodePipeline returns temporary credentials
// for the Amazon S3 bucket used to store artifacts for the pipeline, if the
// action requires access to that Amazon S3 bucket for input or output artifacts.
// Additionally, this API returns any secret values defined for the action.
func (c *CodePipeline) GetJobDetails(input *GetJobDetailsInput) (*GetJobDetailsOutput, error) {
req, out := c.GetJobDetailsRequest(input)
err := req.Send()
return out, err
}
const opGetPipeline = "GetPipeline"
// GetPipelineRequest generates a request for the GetPipeline operation.
func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) (req *service.Request, output *GetPipelineOutput) {
op := &service.Operation{
Name: opGetPipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetPipelineInput{}
}
req = c.newRequest(op, input, output)
output = &GetPipelineOutput{}
req.Data = output
return
}
// Returns the metadata, structure, stages, and actions of a pipeline. Can be
// used to return the entire structure of a pipeline in JSON format, which can
// then be modified and used to update the pipeline structure with UpdatePipeline.
func (c *CodePipeline) GetPipeline(input *GetPipelineInput) (*GetPipelineOutput, error) {
req, out := c.GetPipelineRequest(input)
err := req.Send()
return out, err
}
const opGetPipelineState = "GetPipelineState"
// GetPipelineStateRequest generates a request for the GetPipelineState operation.
func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) (req *service.Request, output *GetPipelineStateOutput) {
op := &service.Operation{
Name: opGetPipelineState,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetPipelineStateInput{}
}
req = c.newRequest(op, input, output)
output = &GetPipelineStateOutput{}
req.Data = output
return
}
// Returns information about the state of a pipeline, including the stages,
// actions, and details about the last run of the pipeline.
func (c *CodePipeline) GetPipelineState(input *GetPipelineStateInput) (*GetPipelineStateOutput, error) {
req, out := c.GetPipelineStateRequest(input)
err := req.Send()
return out, err
}
const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails"
// GetThirdPartyJobDetailsRequest generates a request for the GetThirdPartyJobDetails operation.
func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) (req *service.Request, output *GetThirdPartyJobDetailsOutput) {
op := &service.Operation{
Name: opGetThirdPartyJobDetails,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetThirdPartyJobDetailsInput{}
}
req = c.newRequest(op, input, output)
output = &GetThirdPartyJobDetailsOutput{}
req.Data = output
return
}
// Requests the details of a job for a third party action. Only used for partner
// actions.
//
// When this API is called, AWS CodePipeline returns temporary credentials
// for the Amazon S3 bucket used to store artifacts for the pipeline, if the
// action requires access to that Amazon S3 bucket for input or output artifacts.
// Additionally, this API returns any secret values defined for the action.
func (c *CodePipeline) GetThirdPartyJobDetails(input *GetThirdPartyJobDetailsInput) (*GetThirdPartyJobDetailsOutput, error) {
req, out := c.GetThirdPartyJobDetailsRequest(input)
err := req.Send()
return out, err
}
const opListActionTypes = "ListActionTypes"
// ListActionTypesRequest generates a request for the ListActionTypes operation.
func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) (req *service.Request, output *ListActionTypesOutput) {
op := &service.Operation{
Name: opListActionTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListActionTypesInput{}
}
req = c.newRequest(op, input, output)
output = &ListActionTypesOutput{}
req.Data = output
return
}
// Gets a summary of all AWS CodePipeline action types associated with your
// account.
func (c *CodePipeline) ListActionTypes(input *ListActionTypesInput) (*ListActionTypesOutput, error) {
req, out := c.ListActionTypesRequest(input)
err := req.Send()
return out, err
}
const opListPipelines = "ListPipelines"
// ListPipelinesRequest generates a request for the ListPipelines operation.
func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) (req *service.Request, output *ListPipelinesOutput) {
op := &service.Operation{
Name: opListPipelines,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListPipelinesInput{}
}
req = c.newRequest(op, input, output)
output = &ListPipelinesOutput{}
req.Data = output
return
}
// Gets a summary of all of the pipelines associated with your account.
func (c *CodePipeline) ListPipelines(input *ListPipelinesInput) (*ListPipelinesOutput, error) {
req, out := c.ListPipelinesRequest(input)
err := req.Send()
return out, err
}
const opPollForJobs = "PollForJobs"
// PollForJobsRequest generates a request for the PollForJobs operation.
func (c *CodePipeline) PollForJobsRequest(input *PollForJobsInput) (req *service.Request, output *PollForJobsOutput) {
op := &service.Operation{
Name: opPollForJobs,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PollForJobsInput{}
}
req = c.newRequest(op, input, output)
output = &PollForJobsOutput{}
req.Data = output
return
}
// Returns information about any jobs for AWS CodePipeline to act upon.
//
// When this API is called, AWS CodePipeline returns temporary credentials
// for the Amazon S3 bucket used to store artifacts for the pipeline, if the
// action requires access to that Amazon S3 bucket for input or output artifacts.
// Additionally, this API returns any secret values defined for the action.
func (c *CodePipeline) PollForJobs(input *PollForJobsInput) (*PollForJobsOutput, error) {
req, out := c.PollForJobsRequest(input)
err := req.Send()
return out, err
}
const opPollForThirdPartyJobs = "PollForThirdPartyJobs"
// PollForThirdPartyJobsRequest generates a request for the PollForThirdPartyJobs operation.
func (c *CodePipeline) PollForThirdPartyJobsRequest(input *PollForThirdPartyJobsInput) (req *service.Request, output *PollForThirdPartyJobsOutput) {
op := &service.Operation{
Name: opPollForThirdPartyJobs,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PollForThirdPartyJobsInput{}
}
req = c.newRequest(op, input, output)
output = &PollForThirdPartyJobsOutput{}
req.Data = output
return
}
// Determines whether there are any third party jobs for a job worker to act
// on. Only used for partner actions.
//
// When this API is called, AWS CodePipeline returns temporary credentials
// for the Amazon S3 bucket used to store artifacts for the pipeline, if the
// action requires access to that Amazon S3 bucket for input or output artifacts.
func (c *CodePipeline) PollForThirdPartyJobs(input *PollForThirdPartyJobsInput) (*PollForThirdPartyJobsOutput, error) {
req, out := c.PollForThirdPartyJobsRequest(input)
err := req.Send()
return out, err
}
const opPutActionRevision = "PutActionRevision"
// PutActionRevisionRequest generates a request for the PutActionRevision operation.
func (c *CodePipeline) PutActionRevisionRequest(input *PutActionRevisionInput) (req *service.Request, output *PutActionRevisionOutput) {
op := &service.Operation{
Name: opPutActionRevision,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutActionRevisionInput{}
}
req = c.newRequest(op, input, output)
output = &PutActionRevisionOutput{}
req.Data = output
return
}
// Provides information to AWS CodePipeline about new revisions to a source.
func (c *CodePipeline) PutActionRevision(input *PutActionRevisionInput) (*PutActionRevisionOutput, error) {
req, out := c.PutActionRevisionRequest(input)
err := req.Send()
return out, err
}
const opPutJobFailureResult = "PutJobFailureResult"
// PutJobFailureResultRequest generates a request for the PutJobFailureResult operation.
func (c *CodePipeline) PutJobFailureResultRequest(input *PutJobFailureResultInput) (req *service.Request, output *PutJobFailureResultOutput) {
op := &service.Operation{
Name: opPutJobFailureResult,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutJobFailureResultInput{}
}
req = c.newRequest(op, input, output)
output = &PutJobFailureResultOutput{}
req.Data = output
return
}
// Represents the failure of a job as returned to the pipeline by a job worker.
// Only used for custom actions.
func (c *CodePipeline) PutJobFailureResult(input *PutJobFailureResultInput) (*PutJobFailureResultOutput, error) {
req, out := c.PutJobFailureResultRequest(input)
err := req.Send()
return out, err
}
const opPutJobSuccessResult = "PutJobSuccessResult"
// PutJobSuccessResultRequest generates a request for the PutJobSuccessResult operation.
func (c *CodePipeline) PutJobSuccessResultRequest(input *PutJobSuccessResultInput) (req *service.Request, output *PutJobSuccessResultOutput) {
op := &service.Operation{
Name: opPutJobSuccessResult,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutJobSuccessResultInput{}
}
req = c.newRequest(op, input, output)
output = &PutJobSuccessResultOutput{}
req.Data = output
return
}
// Represents the success of a job as returned to the pipeline by a job worker.
// Only used for custom actions.
func (c *CodePipeline) PutJobSuccessResult(input *PutJobSuccessResultInput) (*PutJobSuccessResultOutput, error) {
req, out := c.PutJobSuccessResultRequest(input)
err := req.Send()
return out, err
}
const opPutThirdPartyJobFailureResult = "PutThirdPartyJobFailureResult"
// PutThirdPartyJobFailureResultRequest generates a request for the PutThirdPartyJobFailureResult operation.
func (c *CodePipeline) PutThirdPartyJobFailureResultRequest(input *PutThirdPartyJobFailureResultInput) (req *service.Request, output *PutThirdPartyJobFailureResultOutput) {
op := &service.Operation{
Name: opPutThirdPartyJobFailureResult,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutThirdPartyJobFailureResultInput{}
}
req = c.newRequest(op, input, output)
output = &PutThirdPartyJobFailureResultOutput{}
req.Data = output
return
}
// Represents the failure of a third party job as returned to the pipeline by
// a job worker. Only used for partner actions.
func (c *CodePipeline) PutThirdPartyJobFailureResult(input *PutThirdPartyJobFailureResultInput) (*PutThirdPartyJobFailureResultOutput, error) {
req, out := c.PutThirdPartyJobFailureResultRequest(input)
err := req.Send()
return out, err
}
const opPutThirdPartyJobSuccessResult = "PutThirdPartyJobSuccessResult"
// PutThirdPartyJobSuccessResultRequest generates a request for the PutThirdPartyJobSuccessResult operation.
func (c *CodePipeline) PutThirdPartyJobSuccessResultRequest(input *PutThirdPartyJobSuccessResultInput) (req *service.Request, output *PutThirdPartyJobSuccessResultOutput) {
op := &service.Operation{
Name: opPutThirdPartyJobSuccessResult,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &PutThirdPartyJobSuccessResultInput{}
}
req = c.newRequest(op, input, output)
output = &PutThirdPartyJobSuccessResultOutput{}
req.Data = output
return
}
// Represents the success of a third party job as returned to the pipeline by
// a job worker. Only used for partner actions.
func (c *CodePipeline) PutThirdPartyJobSuccessResult(input *PutThirdPartyJobSuccessResultInput) (*PutThirdPartyJobSuccessResultOutput, error) {
req, out := c.PutThirdPartyJobSuccessResultRequest(input)
err := req.Send()
return out, err
}
const opStartPipelineExecution = "StartPipelineExecution"
// StartPipelineExecutionRequest generates a request for the StartPipelineExecution operation.
func (c *CodePipeline) StartPipelineExecutionRequest(input *StartPipelineExecutionInput) (req *service.Request, output *StartPipelineExecutionOutput) {
op := &service.Operation{
Name: opStartPipelineExecution,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &StartPipelineExecutionInput{}
}
req = c.newRequest(op, input, output)
output = &StartPipelineExecutionOutput{}
req.Data = output
return
}
// Starts the specified pipeline. Specifically, it begins processing the latest
// commit to the source location specified as part of the pipeline.
func (c *CodePipeline) StartPipelineExecution(input *StartPipelineExecutionInput) (*StartPipelineExecutionOutput, error) {
req, out := c.StartPipelineExecutionRequest(input)
err := req.Send()
return out, err
}
const opUpdatePipeline = "UpdatePipeline"
// UpdatePipelineRequest generates a request for the UpdatePipeline operation.
func (c *CodePipeline) UpdatePipelineRequest(input *UpdatePipelineInput) (req *service.Request, output *UpdatePipelineOutput) {
op := &service.Operation{
Name: opUpdatePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdatePipelineInput{}
}
req = c.newRequest(op, input, output)
output = &UpdatePipelineOutput{}
req.Data = output
return
}
// Updates a specified pipeline with edits or changes to its structure. Use
// a JSON file with the pipeline structure in conjunction with UpdatePipeline
// to provide the full structure of the pipeline. Updating the pipeline increases
// the version number of the pipeline by 1.
func (c *CodePipeline) UpdatePipeline(input *UpdatePipelineInput) (*UpdatePipelineOutput, error) {
req, out := c.UpdatePipelineRequest(input)
err := req.Send()
return out, err
}
// Represents an AWS session credentials object. These credentials are temporary
// credentials that are issued by AWS Secure Token Service (STS). They can be
// used to access input and output artifacts in the Amazon S3 bucket used to
// store artifact for the pipeline in AWS CodePipeline.
type AWSSessionCredentials struct {
// The access key for the session.
AccessKeyID *string `locationName:"accessKeyId" type:"string" required:"true"`
// The secret access key for the session.
SecretAccessKey *string `locationName:"secretAccessKey" type:"string" required:"true"`
// The token for the session.
SessionToken *string `locationName:"sessionToken" type:"string" required:"true"`
metadataAWSSessionCredentials `json:"-" xml:"-"`
}
type metadataAWSSessionCredentials struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s AWSSessionCredentials) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AWSSessionCredentials) GoString() string {
return s.String()
}
// Represents the input of an acknowledge job action.
type AcknowledgeJobInput struct {
// The unique system-generated ID of the job for which you want to confirm receipt.
JobID *string `locationName:"jobId" type:"string" required:"true"`
// A system-generated random number that AWS CodePipeline uses to ensure that
// the job is being worked on by only one job worker. This number must be returned
// in the response.
Nonce *string `locationName:"nonce" type:"string" required:"true"`
metadataAcknowledgeJobInput `json:"-" xml:"-"`
}
type metadataAcknowledgeJobInput struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s AcknowledgeJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AcknowledgeJobInput) GoString() string {
return s.String()
}
// Represents the output of an acknowledge job action.
type AcknowledgeJobOutput struct {
// Whether the job worker has received the specified job.
Status *string `locationName:"status" type:"string" enum:"JobStatus"`
metadataAcknowledgeJobOutput `json:"-" xml:"-"`
}
type metadataAcknowledgeJobOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s AcknowledgeJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AcknowledgeJobOutput) GoString() string {
return s.String()
}
// Represents the input of an acknowledge third party job action.
type AcknowledgeThirdPartyJobInput struct {
// The clientToken portion of the clientId and clientToken pair used to verify
// that the calling entity is allowed access to the job and its details.
ClientToken *string `locationName:"clientToken" type:"string" required:"true"`
// The unique system-generated ID of the job.
JobID *string `locationName:"jobId" type:"string" required:"true"`
// A system-generated random number that AWS CodePipeline uses to ensure that
// the job is being worked on by only one job worker. This number must be returned
// in the response.
Nonce *string `locationName:"nonce" type:"string" required:"true"`
metadataAcknowledgeThirdPartyJobInput `json:"-" xml:"-"`
}
type metadataAcknowledgeThirdPartyJobInput struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s AcknowledgeThirdPartyJobInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AcknowledgeThirdPartyJobInput) GoString() string {
return s.String()
}
// Represents the output of an acknowledge third party job action.
type AcknowledgeThirdPartyJobOutput struct {
// The status information for the third party job, if any.
Status *string `locationName:"status" type:"string" enum:"JobStatus"`
metadataAcknowledgeThirdPartyJobOutput `json:"-" xml:"-"`
}
type metadataAcknowledgeThirdPartyJobOutput struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s AcknowledgeThirdPartyJobOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AcknowledgeThirdPartyJobOutput) GoString() string {
return s.String()
}
// Represents information about an action configuration.
type ActionConfiguration struct {
// The configuration data for the action.
Configuration map[string]*string `locationName:"configuration" type:"map"`
metadataActionConfiguration `json:"-" xml:"-"`
}
type metadataActionConfiguration struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s ActionConfiguration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ActionConfiguration) GoString() string {
return s.String()
}
// Represents information about an action configuration property.
type ActionConfigurationProperty struct {
// The description of the action configuration property that will be displayed
// to users.
Description *string `locationName:"description" type:"string"`
// Whether the configuration property is a key.
Key *bool `locationName:"key" type:"boolean" required:"true"`
// The name of the action configuration property.
Name *string `locationName:"name" type:"string" required:"true"`
// Indicates that the proprety will be used in conjunction with PollForJobs.
// When creating a custom action, an action can have up to one queryable property.
// If it has one, that property must be both required and not secret.
//
// If you create a pipeline with a custom action type, and that custom action
// contains a queryable property, the value for that configuration property
// is subject to additional restrictions. The value must be less than or equal
// to twenty (20) characters. The value can contain only alphanumeric characters,
// underscores, and hyphens.
Queryable *bool `locationName:"queryable" type:"boolean"`
// Whether the configuration property is a required value.
Required *bool `locationName:"required" type:"boolean" required:"true"`
// Whether the configuration property is secret. Secrets are hidden from all
// calls except for GetJobDetails, GetThirdPartyJobDetails, PollForJobs, and
// PollForThirdPartyJobs.
//
// When updating a pipeline, passing * * * * * without changing any other values
// of the action will preserve the prior value of the secret.
Secret *bool `locationName:"secret" type:"boolean" required:"true"`
// The type of the configuration property.
Type *string `locationName:"type" type:"string" enum:"ActionConfigurationPropertyType"`
metadataActionConfigurationProperty `json:"-" xml:"-"`
}
type metadataActionConfigurationProperty struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s ActionConfigurationProperty) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ActionConfigurationProperty) GoString() string {
return s.String()
}
// Represents the context of an action within the stage of a pipeline to a job
// worker.
type ActionContext struct {
// The name of the action within the context of a job.
Name *string `locationName:"name" type:"string"`
metadataActionContext `json:"-" xml:"-"`
}
type metadataActionContext struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s ActionContext) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ActionContext) GoString() string {
return s.String()
}
// Represents information about an action declaration.
type ActionDeclaration struct {
// The configuration information for the action type.
ActionTypeID *ActionTypeID `locationName:"actionTypeId" type:"structure" required:"true"`
// The action declaration's configuration.
Configuration map[string]*string `locationName:"configuration" type:"map"`
// The name or ID of the artifact consumed by the action, such as a test or
// build artifact.
InputArtifacts []*InputArtifact `locationName:"inputArtifacts" type:"list"`
// The action declaration's name.
Name *string `locationName:"name" type:"string" required:"true"`
// The name or ID of the result of the action declaration, such as a test or
// build artifact.
OutputArtifacts []*OutputArtifact `locationName:"outputArtifacts" type:"list"`
// The ARN of the IAM service role that will perform the declared action. This
// is assumed through the roleArn for the pipeline.
RoleARN *string `locationName:"roleArn" type:"string"`
// The order in which actions are run.
RunOrder *int64 `locationName:"runOrder" type:"integer"`
metadataActionDeclaration `json:"-" xml:"-"`
}
type metadataActionDeclaration struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s ActionDeclaration) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ActionDeclaration) GoString() string {
return s.String()
}
// Represents information about how an action runs.
type ActionExecution struct {
// The details of an error returned by a URL external to AWS.
ErrorDetails *ErrorDetails `locationName:"errorDetails" type:"structure"`
// The external ID of the run of the action.
ExternalExecutionID *string `locationName:"externalExecutionId" type:"string"`
// The URL of a resource external to AWS that will be used when running the
// action, for example an external repository URL.
ExternalExecutionURL *string `locationName:"externalExecutionUrl" type:"string"`
// The last status change of the action.
LastStatusChange *time.Time `locationName:"lastStatusChange" type:"timestamp" timestampFormat:"unix"`
// A percentage of completeness of the action as it runs.
PercentComplete *int64 `locationName:"percentComplete" type:"integer"`
// The status of the action, or for a completed action, the last status of the
// action.
Status *string `locationName:"status" type:"string" enum:"ActionExecutionStatus"`
// A summary of the run of the action.
Summary *string `locationName:"summary" type:"string"`
metadataActionExecution `json:"-" xml:"-"`
}
type metadataActionExecution struct {
SDKShapeTraits bool `type:"structure"`
}
// String returns the string representation
func (s ActionExecution) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ActionExecution) GoString() string {
return s.String()
}
// Represents information about the version (or revision) of an action.
type ActionRevision struct {
// The date and time when the most recent version of the action was created,
// in timestamp format.
Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"unix" required:"true"`
// The unique identifier of the change that set the state to this revision,
// for example a deployment ID or timestamp.
RevisionChangeID *string `locationName:"revisionChangeId" type:"string"`