forked from aws/aws-sdk-go-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
6601 lines (5405 loc) · 213 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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package codepipeline
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
"github.com/aws/aws-sdk-go-v2/private/protocol"
"github.com/aws/aws-sdk-go-v2/private/protocol/jsonrpc"
)
const opAcknowledgeJob = "AcknowledgeJob"
// AcknowledgeJobRequest is a API request type for the AcknowledgeJob API operation.
type AcknowledgeJobRequest struct {
*aws.Request
Input *AcknowledgeJobInput
Copy func(*AcknowledgeJobInput) AcknowledgeJobRequest
}
// Send marshals and sends the AcknowledgeJob API request.
func (r AcknowledgeJobRequest) Send() (*AcknowledgeJobOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*AcknowledgeJobOutput), nil
}
// AcknowledgeJobRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Returns information about a specified job and whether that job has been received
// by the job worker. Only used for custom actions.
//
// // Example sending a request using the AcknowledgeJobRequest method.
// req := client.AcknowledgeJobRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeJob
func (c *CodePipeline) AcknowledgeJobRequest(input *AcknowledgeJobInput) AcknowledgeJobRequest {
op := &aws.Operation{
Name: opAcknowledgeJob,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AcknowledgeJobInput{}
}
output := &AcknowledgeJobOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return AcknowledgeJobRequest{Request: req, Input: input, Copy: c.AcknowledgeJobRequest}
}
const opAcknowledgeThirdPartyJob = "AcknowledgeThirdPartyJob"
// AcknowledgeThirdPartyJobRequest is a API request type for the AcknowledgeThirdPartyJob API operation.
type AcknowledgeThirdPartyJobRequest struct {
*aws.Request
Input *AcknowledgeThirdPartyJobInput
Copy func(*AcknowledgeThirdPartyJobInput) AcknowledgeThirdPartyJobRequest
}
// Send marshals and sends the AcknowledgeThirdPartyJob API request.
func (r AcknowledgeThirdPartyJobRequest) Send() (*AcknowledgeThirdPartyJobOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*AcknowledgeThirdPartyJobOutput), nil
}
// AcknowledgeThirdPartyJobRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Confirms a job worker has received the specified job. Only used for partner
// actions.
//
// // Example sending a request using the AcknowledgeThirdPartyJobRequest method.
// req := client.AcknowledgeThirdPartyJobRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/AcknowledgeThirdPartyJob
func (c *CodePipeline) AcknowledgeThirdPartyJobRequest(input *AcknowledgeThirdPartyJobInput) AcknowledgeThirdPartyJobRequest {
op := &aws.Operation{
Name: opAcknowledgeThirdPartyJob,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AcknowledgeThirdPartyJobInput{}
}
output := &AcknowledgeThirdPartyJobOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return AcknowledgeThirdPartyJobRequest{Request: req, Input: input, Copy: c.AcknowledgeThirdPartyJobRequest}
}
const opCreateCustomActionType = "CreateCustomActionType"
// CreateCustomActionTypeRequest is a API request type for the CreateCustomActionType API operation.
type CreateCustomActionTypeRequest struct {
*aws.Request
Input *CreateCustomActionTypeInput
Copy func(*CreateCustomActionTypeInput) CreateCustomActionTypeRequest
}
// Send marshals and sends the CreateCustomActionType API request.
func (r CreateCustomActionTypeRequest) Send() (*CreateCustomActionTypeOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateCustomActionTypeOutput), nil
}
// CreateCustomActionTypeRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Creates a new custom action that can be used in all pipelines associated
// with the AWS account. Only used for custom actions.
//
// // Example sending a request using the CreateCustomActionTypeRequest method.
// req := client.CreateCustomActionTypeRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreateCustomActionType
func (c *CodePipeline) CreateCustomActionTypeRequest(input *CreateCustomActionTypeInput) CreateCustomActionTypeRequest {
op := &aws.Operation{
Name: opCreateCustomActionType,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateCustomActionTypeInput{}
}
output := &CreateCustomActionTypeOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateCustomActionTypeRequest{Request: req, Input: input, Copy: c.CreateCustomActionTypeRequest}
}
const opCreatePipeline = "CreatePipeline"
// CreatePipelineRequest is a API request type for the CreatePipeline API operation.
type CreatePipelineRequest struct {
*aws.Request
Input *CreatePipelineInput
Copy func(*CreatePipelineInput) CreatePipelineRequest
}
// Send marshals and sends the CreatePipeline API request.
func (r CreatePipelineRequest) Send() (*CreatePipelineOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreatePipelineOutput), nil
}
// CreatePipelineRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Creates a pipeline.
//
// // Example sending a request using the CreatePipelineRequest method.
// req := client.CreatePipelineRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/CreatePipeline
func (c *CodePipeline) CreatePipelineRequest(input *CreatePipelineInput) CreatePipelineRequest {
op := &aws.Operation{
Name: opCreatePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreatePipelineInput{}
}
output := &CreatePipelineOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreatePipelineRequest{Request: req, Input: input, Copy: c.CreatePipelineRequest}
}
const opDeleteCustomActionType = "DeleteCustomActionType"
// DeleteCustomActionTypeRequest is a API request type for the DeleteCustomActionType API operation.
type DeleteCustomActionTypeRequest struct {
*aws.Request
Input *DeleteCustomActionTypeInput
Copy func(*DeleteCustomActionTypeInput) DeleteCustomActionTypeRequest
}
// Send marshals and sends the DeleteCustomActionType API request.
func (r DeleteCustomActionTypeRequest) Send() (*DeleteCustomActionTypeOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteCustomActionTypeOutput), nil
}
// DeleteCustomActionTypeRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// 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.
//
// To re-create a custom action after it has been deleted you must use a string
// in the version field that has never been used before. This string can be
// an incremented version number, for example. To restore a deleted custom action,
// use a JSON file that is identical to the deleted action, including the original
// string in the version field.
//
// // Example sending a request using the DeleteCustomActionTypeRequest method.
// req := client.DeleteCustomActionTypeRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteCustomActionType
func (c *CodePipeline) DeleteCustomActionTypeRequest(input *DeleteCustomActionTypeInput) DeleteCustomActionTypeRequest {
op := &aws.Operation{
Name: opDeleteCustomActionType,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteCustomActionTypeInput{}
}
output := &DeleteCustomActionTypeOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeleteCustomActionTypeRequest{Request: req, Input: input, Copy: c.DeleteCustomActionTypeRequest}
}
const opDeletePipeline = "DeletePipeline"
// DeletePipelineRequest is a API request type for the DeletePipeline API operation.
type DeletePipelineRequest struct {
*aws.Request
Input *DeletePipelineInput
Copy func(*DeletePipelineInput) DeletePipelineRequest
}
// Send marshals and sends the DeletePipeline API request.
func (r DeletePipelineRequest) Send() (*DeletePipelineOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeletePipelineOutput), nil
}
// DeletePipelineRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Deletes the specified pipeline.
//
// // Example sending a request using the DeletePipelineRequest method.
// req := client.DeletePipelineRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeletePipeline
func (c *CodePipeline) DeletePipelineRequest(input *DeletePipelineInput) DeletePipelineRequest {
op := &aws.Operation{
Name: opDeletePipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeletePipelineInput{}
}
output := &DeletePipelineOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DeletePipelineRequest{Request: req, Input: input, Copy: c.DeletePipelineRequest}
}
const opDeleteWebhook = "DeleteWebhook"
// DeleteWebhookRequest is a API request type for the DeleteWebhook API operation.
type DeleteWebhookRequest struct {
*aws.Request
Input *DeleteWebhookInput
Copy func(*DeleteWebhookInput) DeleteWebhookRequest
}
// Send marshals and sends the DeleteWebhook API request.
func (r DeleteWebhookRequest) Send() (*DeleteWebhookOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteWebhookOutput), nil
}
// DeleteWebhookRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Deletes a previously created webhook by name. Deleting the webhook stops
// AWS CodePipeline from starting a pipeline every time an external event occurs.
// The API will return successfully when trying to delete a webhook that is
// already deleted. If a deleted webhook is re-created by calling PutWebhook
// with the same name, it will have a different URL.
//
// // Example sending a request using the DeleteWebhookRequest method.
// req := client.DeleteWebhookRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeleteWebhook
func (c *CodePipeline) DeleteWebhookRequest(input *DeleteWebhookInput) DeleteWebhookRequest {
op := &aws.Operation{
Name: opDeleteWebhook,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteWebhookInput{}
}
output := &DeleteWebhookOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteWebhookRequest{Request: req, Input: input, Copy: c.DeleteWebhookRequest}
}
const opDeregisterWebhookWithThirdParty = "DeregisterWebhookWithThirdParty"
// DeregisterWebhookWithThirdPartyRequest is a API request type for the DeregisterWebhookWithThirdParty API operation.
type DeregisterWebhookWithThirdPartyRequest struct {
*aws.Request
Input *DeregisterWebhookWithThirdPartyInput
Copy func(*DeregisterWebhookWithThirdPartyInput) DeregisterWebhookWithThirdPartyRequest
}
// Send marshals and sends the DeregisterWebhookWithThirdParty API request.
func (r DeregisterWebhookWithThirdPartyRequest) Send() (*DeregisterWebhookWithThirdPartyOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeregisterWebhookWithThirdPartyOutput), nil
}
// DeregisterWebhookWithThirdPartyRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Removes the connection between the webhook that was created by CodePipeline
// and the external tool with events to be detected. Currently only supported
// for webhooks that target an action type of GitHub.
//
// // Example sending a request using the DeregisterWebhookWithThirdPartyRequest method.
// req := client.DeregisterWebhookWithThirdPartyRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DeregisterWebhookWithThirdParty
func (c *CodePipeline) DeregisterWebhookWithThirdPartyRequest(input *DeregisterWebhookWithThirdPartyInput) DeregisterWebhookWithThirdPartyRequest {
op := &aws.Operation{
Name: opDeregisterWebhookWithThirdParty,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeregisterWebhookWithThirdPartyInput{}
}
output := &DeregisterWebhookWithThirdPartyOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeregisterWebhookWithThirdPartyRequest{Request: req, Input: input, Copy: c.DeregisterWebhookWithThirdPartyRequest}
}
const opDisableStageTransition = "DisableStageTransition"
// DisableStageTransitionRequest is a API request type for the DisableStageTransition API operation.
type DisableStageTransitionRequest struct {
*aws.Request
Input *DisableStageTransitionInput
Copy func(*DisableStageTransitionInput) DisableStageTransitionRequest
}
// Send marshals and sends the DisableStageTransition API request.
func (r DisableStageTransitionRequest) Send() (*DisableStageTransitionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DisableStageTransitionOutput), nil
}
// DisableStageTransitionRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Prevents artifacts in a pipeline from transitioning to the next stage in
// the pipeline.
//
// // Example sending a request using the DisableStageTransitionRequest method.
// req := client.DisableStageTransitionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/DisableStageTransition
func (c *CodePipeline) DisableStageTransitionRequest(input *DisableStageTransitionInput) DisableStageTransitionRequest {
op := &aws.Operation{
Name: opDisableStageTransition,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DisableStageTransitionInput{}
}
output := &DisableStageTransitionOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return DisableStageTransitionRequest{Request: req, Input: input, Copy: c.DisableStageTransitionRequest}
}
const opEnableStageTransition = "EnableStageTransition"
// EnableStageTransitionRequest is a API request type for the EnableStageTransition API operation.
type EnableStageTransitionRequest struct {
*aws.Request
Input *EnableStageTransitionInput
Copy func(*EnableStageTransitionInput) EnableStageTransitionRequest
}
// Send marshals and sends the EnableStageTransition API request.
func (r EnableStageTransitionRequest) Send() (*EnableStageTransitionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*EnableStageTransitionOutput), nil
}
// EnableStageTransitionRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Enables artifacts in a pipeline to transition to a stage in a pipeline.
//
// // Example sending a request using the EnableStageTransitionRequest method.
// req := client.EnableStageTransitionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/EnableStageTransition
func (c *CodePipeline) EnableStageTransitionRequest(input *EnableStageTransitionInput) EnableStageTransitionRequest {
op := &aws.Operation{
Name: opEnableStageTransition,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &EnableStageTransitionInput{}
}
output := &EnableStageTransitionOutput{}
req := c.newRequest(op, input, output)
req.Handlers.Unmarshal.Remove(jsonrpc.UnmarshalHandler)
req.Handlers.Unmarshal.PushBackNamed(protocol.UnmarshalDiscardBodyHandler)
output.responseMetadata = aws.Response{Request: req}
return EnableStageTransitionRequest{Request: req, Input: input, Copy: c.EnableStageTransitionRequest}
}
const opGetJobDetails = "GetJobDetails"
// GetJobDetailsRequest is a API request type for the GetJobDetails API operation.
type GetJobDetailsRequest struct {
*aws.Request
Input *GetJobDetailsInput
Copy func(*GetJobDetailsInput) GetJobDetailsRequest
}
// Send marshals and sends the GetJobDetails API request.
func (r GetJobDetailsRequest) Send() (*GetJobDetailsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetJobDetailsOutput), nil
}
// GetJobDetailsRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// 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.
//
// // Example sending a request using the GetJobDetailsRequest method.
// req := client.GetJobDetailsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetJobDetails
func (c *CodePipeline) GetJobDetailsRequest(input *GetJobDetailsInput) GetJobDetailsRequest {
op := &aws.Operation{
Name: opGetJobDetails,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetJobDetailsInput{}
}
output := &GetJobDetailsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetJobDetailsRequest{Request: req, Input: input, Copy: c.GetJobDetailsRequest}
}
const opGetPipeline = "GetPipeline"
// GetPipelineRequest is a API request type for the GetPipeline API operation.
type GetPipelineRequest struct {
*aws.Request
Input *GetPipelineInput
Copy func(*GetPipelineInput) GetPipelineRequest
}
// Send marshals and sends the GetPipeline API request.
func (r GetPipelineRequest) Send() (*GetPipelineOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetPipelineOutput), nil
}
// GetPipelineRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// 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.
//
// // Example sending a request using the GetPipelineRequest method.
// req := client.GetPipelineRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipeline
func (c *CodePipeline) GetPipelineRequest(input *GetPipelineInput) GetPipelineRequest {
op := &aws.Operation{
Name: opGetPipeline,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetPipelineInput{}
}
output := &GetPipelineOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetPipelineRequest{Request: req, Input: input, Copy: c.GetPipelineRequest}
}
const opGetPipelineExecution = "GetPipelineExecution"
// GetPipelineExecutionRequest is a API request type for the GetPipelineExecution API operation.
type GetPipelineExecutionRequest struct {
*aws.Request
Input *GetPipelineExecutionInput
Copy func(*GetPipelineExecutionInput) GetPipelineExecutionRequest
}
// Send marshals and sends the GetPipelineExecution API request.
func (r GetPipelineExecutionRequest) Send() (*GetPipelineExecutionOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetPipelineExecutionOutput), nil
}
// GetPipelineExecutionRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Returns information about an execution of a pipeline, including details about
// artifacts, the pipeline execution ID, and the name, version, and status of
// the pipeline.
//
// // Example sending a request using the GetPipelineExecutionRequest method.
// req := client.GetPipelineExecutionRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineExecution
func (c *CodePipeline) GetPipelineExecutionRequest(input *GetPipelineExecutionInput) GetPipelineExecutionRequest {
op := &aws.Operation{
Name: opGetPipelineExecution,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetPipelineExecutionInput{}
}
output := &GetPipelineExecutionOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetPipelineExecutionRequest{Request: req, Input: input, Copy: c.GetPipelineExecutionRequest}
}
const opGetPipelineState = "GetPipelineState"
// GetPipelineStateRequest is a API request type for the GetPipelineState API operation.
type GetPipelineStateRequest struct {
*aws.Request
Input *GetPipelineStateInput
Copy func(*GetPipelineStateInput) GetPipelineStateRequest
}
// Send marshals and sends the GetPipelineState API request.
func (r GetPipelineStateRequest) Send() (*GetPipelineStateOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetPipelineStateOutput), nil
}
// GetPipelineStateRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Returns information about the state of a pipeline, including the stages and
// actions.
//
// // Example sending a request using the GetPipelineStateRequest method.
// req := client.GetPipelineStateRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetPipelineState
func (c *CodePipeline) GetPipelineStateRequest(input *GetPipelineStateInput) GetPipelineStateRequest {
op := &aws.Operation{
Name: opGetPipelineState,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetPipelineStateInput{}
}
output := &GetPipelineStateOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetPipelineStateRequest{Request: req, Input: input, Copy: c.GetPipelineStateRequest}
}
const opGetThirdPartyJobDetails = "GetThirdPartyJobDetails"
// GetThirdPartyJobDetailsRequest is a API request type for the GetThirdPartyJobDetails API operation.
type GetThirdPartyJobDetailsRequest struct {
*aws.Request
Input *GetThirdPartyJobDetailsInput
Copy func(*GetThirdPartyJobDetailsInput) GetThirdPartyJobDetailsRequest
}
// Send marshals and sends the GetThirdPartyJobDetails API request.
func (r GetThirdPartyJobDetailsRequest) Send() (*GetThirdPartyJobDetailsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetThirdPartyJobDetailsOutput), nil
}
// GetThirdPartyJobDetailsRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// 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.
//
// // Example sending a request using the GetThirdPartyJobDetailsRequest method.
// req := client.GetThirdPartyJobDetailsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/GetThirdPartyJobDetails
func (c *CodePipeline) GetThirdPartyJobDetailsRequest(input *GetThirdPartyJobDetailsInput) GetThirdPartyJobDetailsRequest {
op := &aws.Operation{
Name: opGetThirdPartyJobDetails,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &GetThirdPartyJobDetailsInput{}
}
output := &GetThirdPartyJobDetailsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetThirdPartyJobDetailsRequest{Request: req, Input: input, Copy: c.GetThirdPartyJobDetailsRequest}
}
const opListActionTypes = "ListActionTypes"
// ListActionTypesRequest is a API request type for the ListActionTypes API operation.
type ListActionTypesRequest struct {
*aws.Request
Input *ListActionTypesInput
Copy func(*ListActionTypesInput) ListActionTypesRequest
}
// Send marshals and sends the ListActionTypes API request.
func (r ListActionTypesRequest) Send() (*ListActionTypesOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListActionTypesOutput), nil
}
// ListActionTypesRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Gets a summary of all AWS CodePipeline action types associated with your
// account.
//
// // Example sending a request using the ListActionTypesRequest method.
// req := client.ListActionTypesRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListActionTypes
func (c *CodePipeline) ListActionTypesRequest(input *ListActionTypesInput) ListActionTypesRequest {
op := &aws.Operation{
Name: opListActionTypes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListActionTypesInput{}
}
output := &ListActionTypesOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListActionTypesRequest{Request: req, Input: input, Copy: c.ListActionTypesRequest}
}
const opListPipelineExecutions = "ListPipelineExecutions"
// ListPipelineExecutionsRequest is a API request type for the ListPipelineExecutions API operation.
type ListPipelineExecutionsRequest struct {
*aws.Request
Input *ListPipelineExecutionsInput
Copy func(*ListPipelineExecutionsInput) ListPipelineExecutionsRequest
}
// Send marshals and sends the ListPipelineExecutions API request.
func (r ListPipelineExecutionsRequest) Send() (*ListPipelineExecutionsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListPipelineExecutionsOutput), nil
}
// ListPipelineExecutionsRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Gets a summary of the most recent executions for a pipeline.
//
// // Example sending a request using the ListPipelineExecutionsRequest method.
// req := client.ListPipelineExecutionsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelineExecutions
func (c *CodePipeline) ListPipelineExecutionsRequest(input *ListPipelineExecutionsInput) ListPipelineExecutionsRequest {
op := &aws.Operation{
Name: opListPipelineExecutions,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListPipelineExecutionsInput{}
}
output := &ListPipelineExecutionsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListPipelineExecutionsRequest{Request: req, Input: input, Copy: c.ListPipelineExecutionsRequest}
}
const opListPipelines = "ListPipelines"
// ListPipelinesRequest is a API request type for the ListPipelines API operation.
type ListPipelinesRequest struct {
*aws.Request
Input *ListPipelinesInput
Copy func(*ListPipelinesInput) ListPipelinesRequest
}
// Send marshals and sends the ListPipelines API request.
func (r ListPipelinesRequest) Send() (*ListPipelinesOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListPipelinesOutput), nil
}
// ListPipelinesRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Gets a summary of all of the pipelines associated with your account.
//
// // Example sending a request using the ListPipelinesRequest method.
// req := client.ListPipelinesRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListPipelines
func (c *CodePipeline) ListPipelinesRequest(input *ListPipelinesInput) ListPipelinesRequest {
op := &aws.Operation{
Name: opListPipelines,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListPipelinesInput{}
}
output := &ListPipelinesOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListPipelinesRequest{Request: req, Input: input, Copy: c.ListPipelinesRequest}
}
const opListWebhooks = "ListWebhooks"
// ListWebhooksRequest is a API request type for the ListWebhooks API operation.
type ListWebhooksRequest struct {
*aws.Request
Input *ListWebhooksInput
Copy func(*ListWebhooksInput) ListWebhooksRequest
}
// Send marshals and sends the ListWebhooks API request.
func (r ListWebhooksRequest) Send() (*ListWebhooksOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListWebhooksOutput), nil
}
// ListWebhooksRequest returns a request value for making API operation for
// AWS CodePipeline.
//
// Gets a listing of all the webhooks in this region for this account. The output
// lists all webhooks and includes the webhook URL and ARN, as well the configuration
// for each webhook.
//
// // Example sending a request using the ListWebhooksRequest method.
// req := client.ListWebhooksRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ListWebhooks
func (c *CodePipeline) ListWebhooksRequest(input *ListWebhooksInput) ListWebhooksRequest {
op := &aws.Operation{
Name: opListWebhooks,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListWebhooksInput{}
}