forked from aws/aws-sdk-go-v2
/
api.go
3142 lines (2564 loc) · 93.2 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 codestar
import (
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
const opAssociateTeamMember = "AssociateTeamMember"
// AssociateTeamMemberRequest is a API request type for the AssociateTeamMember API operation.
type AssociateTeamMemberRequest struct {
*aws.Request
Input *AssociateTeamMemberInput
}
// Send marshals and sends the AssociateTeamMember API request.
func (r AssociateTeamMemberRequest) Send() (*AssociateTeamMemberOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*AssociateTeamMemberOutput), nil
}
// AssociateTeamMemberRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Adds an IAM user to the team for an AWS CodeStar project.
//
// // Example sending a request using the AssociateTeamMemberRequest method.
// req := client.AssociateTeamMemberRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/AssociateTeamMember
func (c *CodeStar) AssociateTeamMemberRequest(input *AssociateTeamMemberInput) AssociateTeamMemberRequest {
op := &aws.Operation{
Name: opAssociateTeamMember,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AssociateTeamMemberInput{}
}
output := &AssociateTeamMemberOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return AssociateTeamMemberRequest{Request: req, Input: input}
}
const opCreateProject = "CreateProject"
// CreateProjectRequest is a API request type for the CreateProject API operation.
type CreateProjectRequest struct {
*aws.Request
Input *CreateProjectInput
}
// Send marshals and sends the CreateProject API request.
func (r CreateProjectRequest) Send() (*CreateProjectOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateProjectOutput), nil
}
// CreateProjectRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Reserved for future use. To create a project, use the AWS CodeStar console.
//
// // Example sending a request using the CreateProjectRequest method.
// req := client.CreateProjectRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateProject
func (c *CodeStar) CreateProjectRequest(input *CreateProjectInput) CreateProjectRequest {
op := &aws.Operation{
Name: opCreateProject,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateProjectInput{}
}
output := &CreateProjectOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateProjectRequest{Request: req, Input: input}
}
const opCreateUserProfile = "CreateUserProfile"
// CreateUserProfileRequest is a API request type for the CreateUserProfile API operation.
type CreateUserProfileRequest struct {
*aws.Request
Input *CreateUserProfileInput
}
// Send marshals and sends the CreateUserProfile API request.
func (r CreateUserProfileRequest) Send() (*CreateUserProfileOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateUserProfileOutput), nil
}
// CreateUserProfileRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Creates a profile for a user that includes user preferences, such as the
// display name and email address assocciated with the user, in AWS CodeStar.
// The user profile is not project-specific. Information in the user profile
// is displayed wherever the user's information appears to other users in AWS
// CodeStar.
//
// // Example sending a request using the CreateUserProfileRequest method.
// req := client.CreateUserProfileRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CreateUserProfile
func (c *CodeStar) CreateUserProfileRequest(input *CreateUserProfileInput) CreateUserProfileRequest {
op := &aws.Operation{
Name: opCreateUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateUserProfileInput{}
}
output := &CreateUserProfileOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateUserProfileRequest{Request: req, Input: input}
}
const opDeleteProject = "DeleteProject"
// DeleteProjectRequest is a API request type for the DeleteProject API operation.
type DeleteProjectRequest struct {
*aws.Request
Input *DeleteProjectInput
}
// Send marshals and sends the DeleteProject API request.
func (r DeleteProjectRequest) Send() (*DeleteProjectOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteProjectOutput), nil
}
// DeleteProjectRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Deletes a project, including project resources. Does not delete users associated
// with the project, but does delete the IAM roles that allowed access to the
// project.
//
// // Example sending a request using the DeleteProjectRequest method.
// req := client.DeleteProjectRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteProject
func (c *CodeStar) DeleteProjectRequest(input *DeleteProjectInput) DeleteProjectRequest {
op := &aws.Operation{
Name: opDeleteProject,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteProjectInput{}
}
output := &DeleteProjectOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteProjectRequest{Request: req, Input: input}
}
const opDeleteUserProfile = "DeleteUserProfile"
// DeleteUserProfileRequest is a API request type for the DeleteUserProfile API operation.
type DeleteUserProfileRequest struct {
*aws.Request
Input *DeleteUserProfileInput
}
// Send marshals and sends the DeleteUserProfile API request.
func (r DeleteUserProfileRequest) Send() (*DeleteUserProfileOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteUserProfileOutput), nil
}
// DeleteUserProfileRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Deletes a user profile in AWS CodeStar, including all personal preference
// data associated with that profile, such as display name and email address.
// It does not delete the history of that user, for example the history of commits
// made by that user.
//
// // Example sending a request using the DeleteUserProfileRequest method.
// req := client.DeleteUserProfileRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DeleteUserProfile
func (c *CodeStar) DeleteUserProfileRequest(input *DeleteUserProfileInput) DeleteUserProfileRequest {
op := &aws.Operation{
Name: opDeleteUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteUserProfileInput{}
}
output := &DeleteUserProfileOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteUserProfileRequest{Request: req, Input: input}
}
const opDescribeProject = "DescribeProject"
// DescribeProjectRequest is a API request type for the DescribeProject API operation.
type DescribeProjectRequest struct {
*aws.Request
Input *DescribeProjectInput
}
// Send marshals and sends the DescribeProject API request.
func (r DescribeProjectRequest) Send() (*DescribeProjectOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeProjectOutput), nil
}
// DescribeProjectRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Describes a project and its resources.
//
// // Example sending a request using the DescribeProjectRequest method.
// req := client.DescribeProjectRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DescribeProject
func (c *CodeStar) DescribeProjectRequest(input *DescribeProjectInput) DescribeProjectRequest {
op := &aws.Operation{
Name: opDescribeProject,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeProjectInput{}
}
output := &DescribeProjectOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeProjectRequest{Request: req, Input: input}
}
const opDescribeUserProfile = "DescribeUserProfile"
// DescribeUserProfileRequest is a API request type for the DescribeUserProfile API operation.
type DescribeUserProfileRequest struct {
*aws.Request
Input *DescribeUserProfileInput
}
// Send marshals and sends the DescribeUserProfile API request.
func (r DescribeUserProfileRequest) Send() (*DescribeUserProfileOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeUserProfileOutput), nil
}
// DescribeUserProfileRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Describes a user in AWS CodeStar and the user attributes across all projects.
//
// // Example sending a request using the DescribeUserProfileRequest method.
// req := client.DescribeUserProfileRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DescribeUserProfile
func (c *CodeStar) DescribeUserProfileRequest(input *DescribeUserProfileInput) DescribeUserProfileRequest {
op := &aws.Operation{
Name: opDescribeUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeUserProfileInput{}
}
output := &DescribeUserProfileOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeUserProfileRequest{Request: req, Input: input}
}
const opDisassociateTeamMember = "DisassociateTeamMember"
// DisassociateTeamMemberRequest is a API request type for the DisassociateTeamMember API operation.
type DisassociateTeamMemberRequest struct {
*aws.Request
Input *DisassociateTeamMemberInput
}
// Send marshals and sends the DisassociateTeamMember API request.
func (r DisassociateTeamMemberRequest) Send() (*DisassociateTeamMemberOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DisassociateTeamMemberOutput), nil
}
// DisassociateTeamMemberRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Removes a user from a project. Removing a user from a project also removes
// the IAM policies from that user that allowed access to the project and its
// resources. Disassociating a team member does not remove that user's profile
// from AWS CodeStar. It does not remove the user from IAM.
//
// // Example sending a request using the DisassociateTeamMemberRequest method.
// req := client.DisassociateTeamMemberRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/DisassociateTeamMember
func (c *CodeStar) DisassociateTeamMemberRequest(input *DisassociateTeamMemberInput) DisassociateTeamMemberRequest {
op := &aws.Operation{
Name: opDisassociateTeamMember,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DisassociateTeamMemberInput{}
}
output := &DisassociateTeamMemberOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DisassociateTeamMemberRequest{Request: req, Input: input}
}
const opListProjects = "ListProjects"
// ListProjectsRequest is a API request type for the ListProjects API operation.
type ListProjectsRequest struct {
*aws.Request
Input *ListProjectsInput
}
// Send marshals and sends the ListProjects API request.
func (r ListProjectsRequest) Send() (*ListProjectsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListProjectsOutput), nil
}
// ListProjectsRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Lists all projects in AWS CodeStar associated with your AWS account.
//
// // Example sending a request using the ListProjectsRequest method.
// req := client.ListProjectsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListProjects
func (c *CodeStar) ListProjectsRequest(input *ListProjectsInput) ListProjectsRequest {
op := &aws.Operation{
Name: opListProjects,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListProjectsInput{}
}
output := &ListProjectsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListProjectsRequest{Request: req, Input: input}
}
const opListResources = "ListResources"
// ListResourcesRequest is a API request type for the ListResources API operation.
type ListResourcesRequest struct {
*aws.Request
Input *ListResourcesInput
}
// Send marshals and sends the ListResources API request.
func (r ListResourcesRequest) Send() (*ListResourcesOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListResourcesOutput), nil
}
// ListResourcesRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Lists resources associated with a project in AWS CodeStar.
//
// // Example sending a request using the ListResourcesRequest method.
// req := client.ListResourcesRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListResources
func (c *CodeStar) ListResourcesRequest(input *ListResourcesInput) ListResourcesRequest {
op := &aws.Operation{
Name: opListResources,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListResourcesInput{}
}
output := &ListResourcesOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListResourcesRequest{Request: req, Input: input}
}
const opListTagsForProject = "ListTagsForProject"
// ListTagsForProjectRequest is a API request type for the ListTagsForProject API operation.
type ListTagsForProjectRequest struct {
*aws.Request
Input *ListTagsForProjectInput
}
// Send marshals and sends the ListTagsForProject API request.
func (r ListTagsForProjectRequest) Send() (*ListTagsForProjectOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListTagsForProjectOutput), nil
}
// ListTagsForProjectRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Gets the tags for a project.
//
// // Example sending a request using the ListTagsForProjectRequest method.
// req := client.ListTagsForProjectRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTagsForProject
func (c *CodeStar) ListTagsForProjectRequest(input *ListTagsForProjectInput) ListTagsForProjectRequest {
op := &aws.Operation{
Name: opListTagsForProject,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListTagsForProjectInput{}
}
output := &ListTagsForProjectOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListTagsForProjectRequest{Request: req, Input: input}
}
const opListTeamMembers = "ListTeamMembers"
// ListTeamMembersRequest is a API request type for the ListTeamMembers API operation.
type ListTeamMembersRequest struct {
*aws.Request
Input *ListTeamMembersInput
}
// Send marshals and sends the ListTeamMembers API request.
func (r ListTeamMembersRequest) Send() (*ListTeamMembersOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListTeamMembersOutput), nil
}
// ListTeamMembersRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Lists all team members associated with a project.
//
// // Example sending a request using the ListTeamMembersRequest method.
// req := client.ListTeamMembersRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListTeamMembers
func (c *CodeStar) ListTeamMembersRequest(input *ListTeamMembersInput) ListTeamMembersRequest {
op := &aws.Operation{
Name: opListTeamMembers,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListTeamMembersInput{}
}
output := &ListTeamMembersOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListTeamMembersRequest{Request: req, Input: input}
}
const opListUserProfiles = "ListUserProfiles"
// ListUserProfilesRequest is a API request type for the ListUserProfiles API operation.
type ListUserProfilesRequest struct {
*aws.Request
Input *ListUserProfilesInput
}
// Send marshals and sends the ListUserProfiles API request.
func (r ListUserProfilesRequest) Send() (*ListUserProfilesOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListUserProfilesOutput), nil
}
// ListUserProfilesRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Lists all the user profiles configured for your AWS account in AWS CodeStar.
//
// // Example sending a request using the ListUserProfilesRequest method.
// req := client.ListUserProfilesRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ListUserProfiles
func (c *CodeStar) ListUserProfilesRequest(input *ListUserProfilesInput) ListUserProfilesRequest {
op := &aws.Operation{
Name: opListUserProfiles,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListUserProfilesInput{}
}
output := &ListUserProfilesOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListUserProfilesRequest{Request: req, Input: input}
}
const opTagProject = "TagProject"
// TagProjectRequest is a API request type for the TagProject API operation.
type TagProjectRequest struct {
*aws.Request
Input *TagProjectInput
}
// Send marshals and sends the TagProject API request.
func (r TagProjectRequest) Send() (*TagProjectOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*TagProjectOutput), nil
}
// TagProjectRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Adds tags to a project.
//
// // Example sending a request using the TagProjectRequest method.
// req := client.TagProjectRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/TagProject
func (c *CodeStar) TagProjectRequest(input *TagProjectInput) TagProjectRequest {
op := &aws.Operation{
Name: opTagProject,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &TagProjectInput{}
}
output := &TagProjectOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return TagProjectRequest{Request: req, Input: input}
}
const opUntagProject = "UntagProject"
// UntagProjectRequest is a API request type for the UntagProject API operation.
type UntagProjectRequest struct {
*aws.Request
Input *UntagProjectInput
}
// Send marshals and sends the UntagProject API request.
func (r UntagProjectRequest) Send() (*UntagProjectOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UntagProjectOutput), nil
}
// UntagProjectRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Removes tags from a project.
//
// // Example sending a request using the UntagProjectRequest method.
// req := client.UntagProjectRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UntagProject
func (c *CodeStar) UntagProjectRequest(input *UntagProjectInput) UntagProjectRequest {
op := &aws.Operation{
Name: opUntagProject,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UntagProjectInput{}
}
output := &UntagProjectOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return UntagProjectRequest{Request: req, Input: input}
}
const opUpdateProject = "UpdateProject"
// UpdateProjectRequest is a API request type for the UpdateProject API operation.
type UpdateProjectRequest struct {
*aws.Request
Input *UpdateProjectInput
}
// Send marshals and sends the UpdateProject API request.
func (r UpdateProjectRequest) Send() (*UpdateProjectOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateProjectOutput), nil
}
// UpdateProjectRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Updates a project in AWS CodeStar.
//
// // Example sending a request using the UpdateProjectRequest method.
// req := client.UpdateProjectRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateProject
func (c *CodeStar) UpdateProjectRequest(input *UpdateProjectInput) UpdateProjectRequest {
op := &aws.Operation{
Name: opUpdateProject,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateProjectInput{}
}
output := &UpdateProjectOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return UpdateProjectRequest{Request: req, Input: input}
}
const opUpdateTeamMember = "UpdateTeamMember"
// UpdateTeamMemberRequest is a API request type for the UpdateTeamMember API operation.
type UpdateTeamMemberRequest struct {
*aws.Request
Input *UpdateTeamMemberInput
}
// Send marshals and sends the UpdateTeamMember API request.
func (r UpdateTeamMemberRequest) Send() (*UpdateTeamMemberOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateTeamMemberOutput), nil
}
// UpdateTeamMemberRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Updates a team member's attributes in an AWS CodeStar project. For example,
// you can change a team member's role in the project, or change whether they
// have remote access to project resources.
//
// // Example sending a request using the UpdateTeamMemberRequest method.
// req := client.UpdateTeamMemberRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateTeamMember
func (c *CodeStar) UpdateTeamMemberRequest(input *UpdateTeamMemberInput) UpdateTeamMemberRequest {
op := &aws.Operation{
Name: opUpdateTeamMember,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateTeamMemberInput{}
}
output := &UpdateTeamMemberOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return UpdateTeamMemberRequest{Request: req, Input: input}
}
const opUpdateUserProfile = "UpdateUserProfile"
// UpdateUserProfileRequest is a API request type for the UpdateUserProfile API operation.
type UpdateUserProfileRequest struct {
*aws.Request
Input *UpdateUserProfileInput
}
// Send marshals and sends the UpdateUserProfile API request.
func (r UpdateUserProfileRequest) Send() (*UpdateUserProfileOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateUserProfileOutput), nil
}
// UpdateUserProfileRequest returns a request value for making API operation for
// AWS CodeStar.
//
// Updates a user's profile in AWS CodeStar. The user profile is not project-specific.
// Information in the user profile is displayed wherever the user's information
// appears to other users in AWS CodeStar.
//
// // Example sending a request using the UpdateUserProfileRequest method.
// req := client.UpdateUserProfileRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UpdateUserProfile
func (c *CodeStar) UpdateUserProfileRequest(input *UpdateUserProfileInput) UpdateUserProfileRequest {
op := &aws.Operation{
Name: opUpdateUserProfile,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateUserProfileInput{}
}
output := &UpdateUserProfileOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return UpdateUserProfileRequest{Request: req, Input: input}
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/AssociateTeamMemberRequest
type AssociateTeamMemberInput struct {
_ struct{} `type:"structure"`
// A user- or system-generated token that identifies the entity that requested
// the team member association to the project. This token can be used to repeat
// the request.
ClientRequestToken *string `locationName:"clientRequestToken" min:"1" type:"string"`
// The ID of the project to which you will add the IAM user.
//
// ProjectId is a required field
ProjectId *string `locationName:"projectId" min:"2" type:"string" required:"true"`
// The AWS CodeStar project role that will apply to this user. This role determines
// what actions a user can take in an AWS CodeStar project.
//
// ProjectRole is a required field
ProjectRole *string `locationName:"projectRole" type:"string" required:"true"`
// Whether the team member is allowed to use an SSH public/private key pair
// to remotely access project resources, for example Amazon EC2 instances.
RemoteAccessAllowed *bool `locationName:"remoteAccessAllowed" type:"boolean"`
// The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
// CodeStar project.
//
// UserArn is a required field
UserArn *string `locationName:"userArn" min:"32" type:"string" required:"true"`
}
// String returns the string representation
func (s AssociateTeamMemberInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AssociateTeamMemberInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AssociateTeamMemberInput) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "AssociateTeamMemberInput"}
if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("ClientRequestToken", 1))
}
if s.ProjectId == nil {
invalidParams.Add(aws.NewErrParamRequired("ProjectId"))
}
if s.ProjectId != nil && len(*s.ProjectId) < 2 {
invalidParams.Add(aws.NewErrParamMinLen("ProjectId", 2))
}
if s.ProjectRole == nil {
invalidParams.Add(aws.NewErrParamRequired("ProjectRole"))
}
if s.UserArn == nil {
invalidParams.Add(aws.NewErrParamRequired("UserArn"))
}
if s.UserArn != nil && len(*s.UserArn) < 32 {
invalidParams.Add(aws.NewErrParamMinLen("UserArn", 32))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetClientRequestToken sets the ClientRequestToken field's value.
func (s *AssociateTeamMemberInput) SetClientRequestToken(v string) *AssociateTeamMemberInput {
s.ClientRequestToken = &v
return s
}
// SetProjectId sets the ProjectId field's value.
func (s *AssociateTeamMemberInput) SetProjectId(v string) *AssociateTeamMemberInput {
s.ProjectId = &v
return s
}
// SetProjectRole sets the ProjectRole field's value.
func (s *AssociateTeamMemberInput) SetProjectRole(v string) *AssociateTeamMemberInput {
s.ProjectRole = &v
return s
}
// SetRemoteAccessAllowed sets the RemoteAccessAllowed field's value.