forked from aws/aws-sdk-go-v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
6997 lines (5673 loc) · 205 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 guardduty
import (
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
const opAcceptInvitation = "AcceptInvitation"
// AcceptInvitationRequest is a API request type for the AcceptInvitation API operation.
type AcceptInvitationRequest struct {
*aws.Request
Input *AcceptInvitationInput
}
// Send marshals and sends the AcceptInvitation API request.
func (r AcceptInvitationRequest) Send() (*AcceptInvitationOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*AcceptInvitationOutput), nil
}
// AcceptInvitationRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Accepts the invitation to be monitored by a master GuardDuty account.
//
// // Example sending a request using the AcceptInvitationRequest method.
// req := client.AcceptInvitationRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/AcceptInvitation
func (c *GuardDuty) AcceptInvitationRequest(input *AcceptInvitationInput) AcceptInvitationRequest {
op := &aws.Operation{
Name: opAcceptInvitation,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/master",
}
if input == nil {
input = &AcceptInvitationInput{}
}
output := &AcceptInvitationOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return AcceptInvitationRequest{Request: req, Input: input}
}
const opArchiveFindings = "ArchiveFindings"
// ArchiveFindingsRequest is a API request type for the ArchiveFindings API operation.
type ArchiveFindingsRequest struct {
*aws.Request
Input *ArchiveFindingsInput
}
// Send marshals and sends the ArchiveFindings API request.
func (r ArchiveFindingsRequest) Send() (*ArchiveFindingsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ArchiveFindingsOutput), nil
}
// ArchiveFindingsRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Archives Amazon GuardDuty findings specified by the list of finding IDs.
//
// // Example sending a request using the ArchiveFindingsRequest method.
// req := client.ArchiveFindingsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/ArchiveFindings
func (c *GuardDuty) ArchiveFindingsRequest(input *ArchiveFindingsInput) ArchiveFindingsRequest {
op := &aws.Operation{
Name: opArchiveFindings,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/findings/archive",
}
if input == nil {
input = &ArchiveFindingsInput{}
}
output := &ArchiveFindingsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ArchiveFindingsRequest{Request: req, Input: input}
}
const opCreateDetector = "CreateDetector"
// CreateDetectorRequest is a API request type for the CreateDetector API operation.
type CreateDetectorRequest struct {
*aws.Request
Input *CreateDetectorInput
}
// Send marshals and sends the CreateDetector API request.
func (r CreateDetectorRequest) Send() (*CreateDetectorOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateDetectorOutput), nil
}
// CreateDetectorRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Creates a single Amazon GuardDuty detector. A detector is an object that
// represents the GuardDuty service. A detector must be created in order for
// GuardDuty to become operational.
//
// // Example sending a request using the CreateDetectorRequest method.
// req := client.CreateDetectorRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateDetector
func (c *GuardDuty) CreateDetectorRequest(input *CreateDetectorInput) CreateDetectorRequest {
op := &aws.Operation{
Name: opCreateDetector,
HTTPMethod: "POST",
HTTPPath: "/detector",
}
if input == nil {
input = &CreateDetectorInput{}
}
output := &CreateDetectorOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateDetectorRequest{Request: req, Input: input}
}
const opCreateIPSet = "CreateIPSet"
// CreateIPSetRequest is a API request type for the CreateIPSet API operation.
type CreateIPSetRequest struct {
*aws.Request
Input *CreateIPSetInput
}
// Send marshals and sends the CreateIPSet API request.
func (r CreateIPSetRequest) Send() (*CreateIPSetOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateIPSetOutput), nil
}
// CreateIPSetRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Creates a new IPSet - a list of trusted IP addresses that have been whitelisted
// for secure communication with AWS infrastructure and applications.
//
// // Example sending a request using the CreateIPSetRequest method.
// req := client.CreateIPSetRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateIPSet
func (c *GuardDuty) CreateIPSetRequest(input *CreateIPSetInput) CreateIPSetRequest {
op := &aws.Operation{
Name: opCreateIPSet,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/ipset",
}
if input == nil {
input = &CreateIPSetInput{}
}
output := &CreateIPSetOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateIPSetRequest{Request: req, Input: input}
}
const opCreateMembers = "CreateMembers"
// CreateMembersRequest is a API request type for the CreateMembers API operation.
type CreateMembersRequest struct {
*aws.Request
Input *CreateMembersInput
}
// Send marshals and sends the CreateMembers API request.
func (r CreateMembersRequest) Send() (*CreateMembersOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateMembersOutput), nil
}
// CreateMembersRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Creates member accounts of the current AWS account by specifying a list of
// AWS account IDs. The current AWS account can then invite these members to
// manage GuardDuty in their accounts.
//
// // Example sending a request using the CreateMembersRequest method.
// req := client.CreateMembersRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateMembers
func (c *GuardDuty) CreateMembersRequest(input *CreateMembersInput) CreateMembersRequest {
op := &aws.Operation{
Name: opCreateMembers,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/member",
}
if input == nil {
input = &CreateMembersInput{}
}
output := &CreateMembersOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateMembersRequest{Request: req, Input: input}
}
const opCreateSampleFindings = "CreateSampleFindings"
// CreateSampleFindingsRequest is a API request type for the CreateSampleFindings API operation.
type CreateSampleFindingsRequest struct {
*aws.Request
Input *CreateSampleFindingsInput
}
// Send marshals and sends the CreateSampleFindings API request.
func (r CreateSampleFindingsRequest) Send() (*CreateSampleFindingsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateSampleFindingsOutput), nil
}
// CreateSampleFindingsRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Generates example findings of types specified by the list of finding types.
// If 'NULL' is specified for findingTypes, the API generates example findings
// of all supported finding types.
//
// // Example sending a request using the CreateSampleFindingsRequest method.
// req := client.CreateSampleFindingsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateSampleFindings
func (c *GuardDuty) CreateSampleFindingsRequest(input *CreateSampleFindingsInput) CreateSampleFindingsRequest {
op := &aws.Operation{
Name: opCreateSampleFindings,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/findings/create",
}
if input == nil {
input = &CreateSampleFindingsInput{}
}
output := &CreateSampleFindingsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateSampleFindingsRequest{Request: req, Input: input}
}
const opCreateThreatIntelSet = "CreateThreatIntelSet"
// CreateThreatIntelSetRequest is a API request type for the CreateThreatIntelSet API operation.
type CreateThreatIntelSetRequest struct {
*aws.Request
Input *CreateThreatIntelSetInput
}
// Send marshals and sends the CreateThreatIntelSet API request.
func (r CreateThreatIntelSetRequest) Send() (*CreateThreatIntelSetOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateThreatIntelSetOutput), nil
}
// CreateThreatIntelSetRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Create a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP
// addresses. GuardDuty generates findings based on ThreatIntelSets.
//
// // Example sending a request using the CreateThreatIntelSetRequest method.
// req := client.CreateThreatIntelSetRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/CreateThreatIntelSet
func (c *GuardDuty) CreateThreatIntelSetRequest(input *CreateThreatIntelSetInput) CreateThreatIntelSetRequest {
op := &aws.Operation{
Name: opCreateThreatIntelSet,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/threatintelset",
}
if input == nil {
input = &CreateThreatIntelSetInput{}
}
output := &CreateThreatIntelSetOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateThreatIntelSetRequest{Request: req, Input: input}
}
const opDeclineInvitations = "DeclineInvitations"
// DeclineInvitationsRequest is a API request type for the DeclineInvitations API operation.
type DeclineInvitationsRequest struct {
*aws.Request
Input *DeclineInvitationsInput
}
// Send marshals and sends the DeclineInvitations API request.
func (r DeclineInvitationsRequest) Send() (*DeclineInvitationsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeclineInvitationsOutput), nil
}
// DeclineInvitationsRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Declines invitations sent to the current member account by AWS account specified
// by their account IDs.
//
// // Example sending a request using the DeclineInvitationsRequest method.
// req := client.DeclineInvitationsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeclineInvitations
func (c *GuardDuty) DeclineInvitationsRequest(input *DeclineInvitationsInput) DeclineInvitationsRequest {
op := &aws.Operation{
Name: opDeclineInvitations,
HTTPMethod: "POST",
HTTPPath: "/invitation/decline",
}
if input == nil {
input = &DeclineInvitationsInput{}
}
output := &DeclineInvitationsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeclineInvitationsRequest{Request: req, Input: input}
}
const opDeleteDetector = "DeleteDetector"
// DeleteDetectorRequest is a API request type for the DeleteDetector API operation.
type DeleteDetectorRequest struct {
*aws.Request
Input *DeleteDetectorInput
}
// Send marshals and sends the DeleteDetector API request.
func (r DeleteDetectorRequest) Send() (*DeleteDetectorOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteDetectorOutput), nil
}
// DeleteDetectorRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Deletes a Amazon GuardDuty detector specified by the detector ID.
//
// // Example sending a request using the DeleteDetectorRequest method.
// req := client.DeleteDetectorRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteDetector
func (c *GuardDuty) DeleteDetectorRequest(input *DeleteDetectorInput) DeleteDetectorRequest {
op := &aws.Operation{
Name: opDeleteDetector,
HTTPMethod: "DELETE",
HTTPPath: "/detector/{detectorId}",
}
if input == nil {
input = &DeleteDetectorInput{}
}
output := &DeleteDetectorOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteDetectorRequest{Request: req, Input: input}
}
const opDeleteIPSet = "DeleteIPSet"
// DeleteIPSetRequest is a API request type for the DeleteIPSet API operation.
type DeleteIPSetRequest struct {
*aws.Request
Input *DeleteIPSetInput
}
// Send marshals and sends the DeleteIPSet API request.
func (r DeleteIPSetRequest) Send() (*DeleteIPSetOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteIPSetOutput), nil
}
// DeleteIPSetRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Deletes the IPSet specified by the IPSet ID.
//
// // Example sending a request using the DeleteIPSetRequest method.
// req := client.DeleteIPSetRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteIPSet
func (c *GuardDuty) DeleteIPSetRequest(input *DeleteIPSetInput) DeleteIPSetRequest {
op := &aws.Operation{
Name: opDeleteIPSet,
HTTPMethod: "DELETE",
HTTPPath: "/detector/{detectorId}/ipset/{ipSetId}",
}
if input == nil {
input = &DeleteIPSetInput{}
}
output := &DeleteIPSetOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteIPSetRequest{Request: req, Input: input}
}
const opDeleteInvitations = "DeleteInvitations"
// DeleteInvitationsRequest is a API request type for the DeleteInvitations API operation.
type DeleteInvitationsRequest struct {
*aws.Request
Input *DeleteInvitationsInput
}
// Send marshals and sends the DeleteInvitations API request.
func (r DeleteInvitationsRequest) Send() (*DeleteInvitationsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteInvitationsOutput), nil
}
// DeleteInvitationsRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Deletes invitations sent to the current member account by AWS accounts specified
// by their account IDs.
//
// // Example sending a request using the DeleteInvitationsRequest method.
// req := client.DeleteInvitationsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteInvitations
func (c *GuardDuty) DeleteInvitationsRequest(input *DeleteInvitationsInput) DeleteInvitationsRequest {
op := &aws.Operation{
Name: opDeleteInvitations,
HTTPMethod: "POST",
HTTPPath: "/invitation/delete",
}
if input == nil {
input = &DeleteInvitationsInput{}
}
output := &DeleteInvitationsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteInvitationsRequest{Request: req, Input: input}
}
const opDeleteMembers = "DeleteMembers"
// DeleteMembersRequest is a API request type for the DeleteMembers API operation.
type DeleteMembersRequest struct {
*aws.Request
Input *DeleteMembersInput
}
// Send marshals and sends the DeleteMembers API request.
func (r DeleteMembersRequest) Send() (*DeleteMembersOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteMembersOutput), nil
}
// DeleteMembersRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Deletes GuardDuty member accounts (to the current GuardDuty master account)
// specified by the account IDs.
//
// // Example sending a request using the DeleteMembersRequest method.
// req := client.DeleteMembersRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteMembers
func (c *GuardDuty) DeleteMembersRequest(input *DeleteMembersInput) DeleteMembersRequest {
op := &aws.Operation{
Name: opDeleteMembers,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/member/delete",
}
if input == nil {
input = &DeleteMembersInput{}
}
output := &DeleteMembersOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteMembersRequest{Request: req, Input: input}
}
const opDeleteThreatIntelSet = "DeleteThreatIntelSet"
// DeleteThreatIntelSetRequest is a API request type for the DeleteThreatIntelSet API operation.
type DeleteThreatIntelSetRequest struct {
*aws.Request
Input *DeleteThreatIntelSetInput
}
// Send marshals and sends the DeleteThreatIntelSet API request.
func (r DeleteThreatIntelSetRequest) Send() (*DeleteThreatIntelSetOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteThreatIntelSetOutput), nil
}
// DeleteThreatIntelSetRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Deletes ThreatIntelSet specified by the ThreatIntelSet ID.
//
// // Example sending a request using the DeleteThreatIntelSetRequest method.
// req := client.DeleteThreatIntelSetRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DeleteThreatIntelSet
func (c *GuardDuty) DeleteThreatIntelSetRequest(input *DeleteThreatIntelSetInput) DeleteThreatIntelSetRequest {
op := &aws.Operation{
Name: opDeleteThreatIntelSet,
HTTPMethod: "DELETE",
HTTPPath: "/detector/{detectorId}/threatintelset/{threatIntelSetId}",
}
if input == nil {
input = &DeleteThreatIntelSetInput{}
}
output := &DeleteThreatIntelSetOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteThreatIntelSetRequest{Request: req, Input: input}
}
const opDisassociateFromMasterAccount = "DisassociateFromMasterAccount"
// DisassociateFromMasterAccountRequest is a API request type for the DisassociateFromMasterAccount API operation.
type DisassociateFromMasterAccountRequest struct {
*aws.Request
Input *DisassociateFromMasterAccountInput
}
// Send marshals and sends the DisassociateFromMasterAccount API request.
func (r DisassociateFromMasterAccountRequest) Send() (*DisassociateFromMasterAccountOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DisassociateFromMasterAccountOutput), nil
}
// DisassociateFromMasterAccountRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Disassociates the current GuardDuty member account from its master account.
//
// // Example sending a request using the DisassociateFromMasterAccountRequest method.
// req := client.DisassociateFromMasterAccountRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateFromMasterAccount
func (c *GuardDuty) DisassociateFromMasterAccountRequest(input *DisassociateFromMasterAccountInput) DisassociateFromMasterAccountRequest {
op := &aws.Operation{
Name: opDisassociateFromMasterAccount,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/master/disassociate",
}
if input == nil {
input = &DisassociateFromMasterAccountInput{}
}
output := &DisassociateFromMasterAccountOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DisassociateFromMasterAccountRequest{Request: req, Input: input}
}
const opDisassociateMembers = "DisassociateMembers"
// DisassociateMembersRequest is a API request type for the DisassociateMembers API operation.
type DisassociateMembersRequest struct {
*aws.Request
Input *DisassociateMembersInput
}
// Send marshals and sends the DisassociateMembers API request.
func (r DisassociateMembersRequest) Send() (*DisassociateMembersOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DisassociateMembersOutput), nil
}
// DisassociateMembersRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Disassociates GuardDuty member accounts (to the current GuardDuty master
// account) specified by the account IDs.
//
// // Example sending a request using the DisassociateMembersRequest method.
// req := client.DisassociateMembersRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/DisassociateMembers
func (c *GuardDuty) DisassociateMembersRequest(input *DisassociateMembersInput) DisassociateMembersRequest {
op := &aws.Operation{
Name: opDisassociateMembers,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/member/disassociate",
}
if input == nil {
input = &DisassociateMembersInput{}
}
output := &DisassociateMembersOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DisassociateMembersRequest{Request: req, Input: input}
}
const opGetDetector = "GetDetector"
// GetDetectorRequest is a API request type for the GetDetector API operation.
type GetDetectorRequest struct {
*aws.Request
Input *GetDetectorInput
}
// Send marshals and sends the GetDetector API request.
func (r GetDetectorRequest) Send() (*GetDetectorOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetDetectorOutput), nil
}
// GetDetectorRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Retrieves an Amazon GuardDuty detector specified by the detectorId.
//
// // Example sending a request using the GetDetectorRequest method.
// req := client.GetDetectorRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetDetector
func (c *GuardDuty) GetDetectorRequest(input *GetDetectorInput) GetDetectorRequest {
op := &aws.Operation{
Name: opGetDetector,
HTTPMethod: "GET",
HTTPPath: "/detector/{detectorId}",
}
if input == nil {
input = &GetDetectorInput{}
}
output := &GetDetectorOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetDetectorRequest{Request: req, Input: input}
}
const opGetFindings = "GetFindings"
// GetFindingsRequest is a API request type for the GetFindings API operation.
type GetFindingsRequest struct {
*aws.Request
Input *GetFindingsInput
}
// Send marshals and sends the GetFindings API request.
func (r GetFindingsRequest) Send() (*GetFindingsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetFindingsOutput), nil
}
// GetFindingsRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Describes Amazon GuardDuty findings specified by finding IDs.
//
// // Example sending a request using the GetFindingsRequest method.
// req := client.GetFindingsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindings
func (c *GuardDuty) GetFindingsRequest(input *GetFindingsInput) GetFindingsRequest {
op := &aws.Operation{
Name: opGetFindings,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/findings/get",
}
if input == nil {
input = &GetFindingsInput{}
}
output := &GetFindingsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetFindingsRequest{Request: req, Input: input}
}
const opGetFindingsStatistics = "GetFindingsStatistics"
// GetFindingsStatisticsRequest is a API request type for the GetFindingsStatistics API operation.
type GetFindingsStatisticsRequest struct {
*aws.Request
Input *GetFindingsStatisticsInput
}
// Send marshals and sends the GetFindingsStatistics API request.
func (r GetFindingsStatisticsRequest) Send() (*GetFindingsStatisticsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetFindingsStatisticsOutput), nil
}
// GetFindingsStatisticsRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Lists Amazon GuardDuty findings' statistics for the specified detector ID.
//
// // Example sending a request using the GetFindingsStatisticsRequest method.
// req := client.GetFindingsStatisticsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetFindingsStatistics
func (c *GuardDuty) GetFindingsStatisticsRequest(input *GetFindingsStatisticsInput) GetFindingsStatisticsRequest {
op := &aws.Operation{
Name: opGetFindingsStatistics,
HTTPMethod: "POST",
HTTPPath: "/detector/{detectorId}/findings/statistics",
}
if input == nil {
input = &GetFindingsStatisticsInput{}
}
output := &GetFindingsStatisticsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetFindingsStatisticsRequest{Request: req, Input: input}
}
const opGetIPSet = "GetIPSet"
// GetIPSetRequest is a API request type for the GetIPSet API operation.
type GetIPSetRequest struct {
*aws.Request
Input *GetIPSetInput
}
// Send marshals and sends the GetIPSet API request.
func (r GetIPSetRequest) Send() (*GetIPSetOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetIPSetOutput), nil
}
// GetIPSetRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Retrieves the IPSet specified by the IPSet ID.
//
// // Example sending a request using the GetIPSetRequest method.
// req := client.GetIPSetRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetIPSet
func (c *GuardDuty) GetIPSetRequest(input *GetIPSetInput) GetIPSetRequest {
op := &aws.Operation{
Name: opGetIPSet,
HTTPMethod: "GET",
HTTPPath: "/detector/{detectorId}/ipset/{ipSetId}",
}
if input == nil {
input = &GetIPSetInput{}
}
output := &GetIPSetOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetIPSetRequest{Request: req, Input: input}
}
const opGetInvitationsCount = "GetInvitationsCount"
// GetInvitationsCountRequest is a API request type for the GetInvitationsCount API operation.
type GetInvitationsCountRequest struct {
*aws.Request
Input *GetInvitationsCountInput
}
// Send marshals and sends the GetInvitationsCount API request.
func (r GetInvitationsCountRequest) Send() (*GetInvitationsCountOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*GetInvitationsCountOutput), nil
}
// GetInvitationsCountRequest returns a request value for making API operation for
// Amazon GuardDuty.
//
// Returns the count of all GuardDuty membership invitations that were sent
// to the current member account except the currently accepted invitation.
//
// // Example sending a request using the GetInvitationsCountRequest method.
// req := client.GetInvitationsCountRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/GetInvitationsCount
func (c *GuardDuty) GetInvitationsCountRequest(input *GetInvitationsCountInput) GetInvitationsCountRequest {
op := &aws.Operation{
Name: opGetInvitationsCount,
HTTPMethod: "GET",
HTTPPath: "/invitation/count",
}
if input == nil {
input = &GetInvitationsCountInput{}
}
output := &GetInvitationsCountOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return GetInvitationsCountRequest{Request: req, Input: input}