forked from aws/aws-sdk-go-v2
/
api.go
3987 lines (3228 loc) · 116 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 dax
import (
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
const opCreateCluster = "CreateCluster"
// CreateClusterRequest is a API request type for the CreateCluster API operation.
type CreateClusterRequest struct {
*aws.Request
Input *CreateClusterInput
}
// Send marshals and sends the CreateCluster API request.
func (r CreateClusterRequest) Send() (*CreateClusterOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateClusterOutput), nil
}
// CreateClusterRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Creates a DAX cluster. All nodes in the cluster run the same DAX caching
// software.
//
// // Example sending a request using the CreateClusterRequest method.
// req := client.CreateClusterRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/CreateCluster
func (c *DAX) CreateClusterRequest(input *CreateClusterInput) CreateClusterRequest {
op := &aws.Operation{
Name: opCreateCluster,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateClusterInput{}
}
output := &CreateClusterOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateClusterRequest{Request: req, Input: input}
}
const opCreateParameterGroup = "CreateParameterGroup"
// CreateParameterGroupRequest is a API request type for the CreateParameterGroup API operation.
type CreateParameterGroupRequest struct {
*aws.Request
Input *CreateParameterGroupInput
}
// Send marshals and sends the CreateParameterGroup API request.
func (r CreateParameterGroupRequest) Send() (*CreateParameterGroupOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateParameterGroupOutput), nil
}
// CreateParameterGroupRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Creates a new parameter group. A parameter group is a collection of parameters
// that you apply to all of the nodes in a DAX cluster.
//
// // Example sending a request using the CreateParameterGroupRequest method.
// req := client.CreateParameterGroupRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/CreateParameterGroup
func (c *DAX) CreateParameterGroupRequest(input *CreateParameterGroupInput) CreateParameterGroupRequest {
op := &aws.Operation{
Name: opCreateParameterGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateParameterGroupInput{}
}
output := &CreateParameterGroupOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateParameterGroupRequest{Request: req, Input: input}
}
const opCreateSubnetGroup = "CreateSubnetGroup"
// CreateSubnetGroupRequest is a API request type for the CreateSubnetGroup API operation.
type CreateSubnetGroupRequest struct {
*aws.Request
Input *CreateSubnetGroupInput
}
// Send marshals and sends the CreateSubnetGroup API request.
func (r CreateSubnetGroupRequest) Send() (*CreateSubnetGroupOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*CreateSubnetGroupOutput), nil
}
// CreateSubnetGroupRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Creates a new subnet group.
//
// // Example sending a request using the CreateSubnetGroupRequest method.
// req := client.CreateSubnetGroupRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/CreateSubnetGroup
func (c *DAX) CreateSubnetGroupRequest(input *CreateSubnetGroupInput) CreateSubnetGroupRequest {
op := &aws.Operation{
Name: opCreateSubnetGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateSubnetGroupInput{}
}
output := &CreateSubnetGroupOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return CreateSubnetGroupRequest{Request: req, Input: input}
}
const opDecreaseReplicationFactor = "DecreaseReplicationFactor"
// DecreaseReplicationFactorRequest is a API request type for the DecreaseReplicationFactor API operation.
type DecreaseReplicationFactorRequest struct {
*aws.Request
Input *DecreaseReplicationFactorInput
}
// Send marshals and sends the DecreaseReplicationFactor API request.
func (r DecreaseReplicationFactorRequest) Send() (*DecreaseReplicationFactorOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DecreaseReplicationFactorOutput), nil
}
// DecreaseReplicationFactorRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Removes one or more nodes from a DAX cluster.
//
// You cannot use DecreaseReplicationFactor to remove the last node in a DAX
// cluster. If you need to do this, use DeleteCluster instead.
//
// // Example sending a request using the DecreaseReplicationFactorRequest method.
// req := client.DecreaseReplicationFactorRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DecreaseReplicationFactor
func (c *DAX) DecreaseReplicationFactorRequest(input *DecreaseReplicationFactorInput) DecreaseReplicationFactorRequest {
op := &aws.Operation{
Name: opDecreaseReplicationFactor,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DecreaseReplicationFactorInput{}
}
output := &DecreaseReplicationFactorOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DecreaseReplicationFactorRequest{Request: req, Input: input}
}
const opDeleteCluster = "DeleteCluster"
// DeleteClusterRequest is a API request type for the DeleteCluster API operation.
type DeleteClusterRequest struct {
*aws.Request
Input *DeleteClusterInput
}
// Send marshals and sends the DeleteCluster API request.
func (r DeleteClusterRequest) Send() (*DeleteClusterOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteClusterOutput), nil
}
// DeleteClusterRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Deletes a previously provisioned DAX cluster. DeleteCluster deletes all associated
// nodes, node endpoints and the DAX cluster itself. When you receive a successful
// response from this action, DAX immediately begins deleting the cluster; you
// cannot cancel or revert this action.
//
// // Example sending a request using the DeleteClusterRequest method.
// req := client.DeleteClusterRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DeleteCluster
func (c *DAX) DeleteClusterRequest(input *DeleteClusterInput) DeleteClusterRequest {
op := &aws.Operation{
Name: opDeleteCluster,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteClusterInput{}
}
output := &DeleteClusterOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteClusterRequest{Request: req, Input: input}
}
const opDeleteParameterGroup = "DeleteParameterGroup"
// DeleteParameterGroupRequest is a API request type for the DeleteParameterGroup API operation.
type DeleteParameterGroupRequest struct {
*aws.Request
Input *DeleteParameterGroupInput
}
// Send marshals and sends the DeleteParameterGroup API request.
func (r DeleteParameterGroupRequest) Send() (*DeleteParameterGroupOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteParameterGroupOutput), nil
}
// DeleteParameterGroupRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Deletes the specified parameter group. You cannot delete a parameter group
// if it is associated with any DAX clusters.
//
// // Example sending a request using the DeleteParameterGroupRequest method.
// req := client.DeleteParameterGroupRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DeleteParameterGroup
func (c *DAX) DeleteParameterGroupRequest(input *DeleteParameterGroupInput) DeleteParameterGroupRequest {
op := &aws.Operation{
Name: opDeleteParameterGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteParameterGroupInput{}
}
output := &DeleteParameterGroupOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteParameterGroupRequest{Request: req, Input: input}
}
const opDeleteSubnetGroup = "DeleteSubnetGroup"
// DeleteSubnetGroupRequest is a API request type for the DeleteSubnetGroup API operation.
type DeleteSubnetGroupRequest struct {
*aws.Request
Input *DeleteSubnetGroupInput
}
// Send marshals and sends the DeleteSubnetGroup API request.
func (r DeleteSubnetGroupRequest) Send() (*DeleteSubnetGroupOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DeleteSubnetGroupOutput), nil
}
// DeleteSubnetGroupRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Deletes a subnet group.
//
// You cannot delete a subnet group if it is associated with any DAX clusters.
//
// // Example sending a request using the DeleteSubnetGroupRequest method.
// req := client.DeleteSubnetGroupRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DeleteSubnetGroup
func (c *DAX) DeleteSubnetGroupRequest(input *DeleteSubnetGroupInput) DeleteSubnetGroupRequest {
op := &aws.Operation{
Name: opDeleteSubnetGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteSubnetGroupInput{}
}
output := &DeleteSubnetGroupOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DeleteSubnetGroupRequest{Request: req, Input: input}
}
const opDescribeClusters = "DescribeClusters"
// DescribeClustersRequest is a API request type for the DescribeClusters API operation.
type DescribeClustersRequest struct {
*aws.Request
Input *DescribeClustersInput
}
// Send marshals and sends the DescribeClusters API request.
func (r DescribeClustersRequest) Send() (*DescribeClustersOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeClustersOutput), nil
}
// DescribeClustersRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Returns information about all provisioned DAX clusters if no cluster identifier
// is specified, or about a specific DAX cluster if a cluster identifier is
// supplied.
//
// If the cluster is in the CREATING state, only cluster level information will
// be displayed until all of the nodes are successfully provisioned.
//
// If the cluster is in the DELETING state, only cluster level information will
// be displayed.
//
// If nodes are currently being added to the DAX cluster, node endpoint information
// and creation time for the additional nodes will not be displayed until they
// are completely provisioned. When the DAX cluster state is available, the
// cluster is ready for use.
//
// If nodes are currently being removed from the DAX cluster, no endpoint information
// for the removed nodes is displayed.
//
// // Example sending a request using the DescribeClustersRequest method.
// req := client.DescribeClustersRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeClusters
func (c *DAX) DescribeClustersRequest(input *DescribeClustersInput) DescribeClustersRequest {
op := &aws.Operation{
Name: opDescribeClusters,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeClustersInput{}
}
output := &DescribeClustersOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeClustersRequest{Request: req, Input: input}
}
const opDescribeDefaultParameters = "DescribeDefaultParameters"
// DescribeDefaultParametersRequest is a API request type for the DescribeDefaultParameters API operation.
type DescribeDefaultParametersRequest struct {
*aws.Request
Input *DescribeDefaultParametersInput
}
// Send marshals and sends the DescribeDefaultParameters API request.
func (r DescribeDefaultParametersRequest) Send() (*DescribeDefaultParametersOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeDefaultParametersOutput), nil
}
// DescribeDefaultParametersRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Returns the default system parameter information for the DAX caching software.
//
// // Example sending a request using the DescribeDefaultParametersRequest method.
// req := client.DescribeDefaultParametersRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeDefaultParameters
func (c *DAX) DescribeDefaultParametersRequest(input *DescribeDefaultParametersInput) DescribeDefaultParametersRequest {
op := &aws.Operation{
Name: opDescribeDefaultParameters,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeDefaultParametersInput{}
}
output := &DescribeDefaultParametersOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeDefaultParametersRequest{Request: req, Input: input}
}
const opDescribeEvents = "DescribeEvents"
// DescribeEventsRequest is a API request type for the DescribeEvents API operation.
type DescribeEventsRequest struct {
*aws.Request
Input *DescribeEventsInput
}
// Send marshals and sends the DescribeEvents API request.
func (r DescribeEventsRequest) Send() (*DescribeEventsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeEventsOutput), nil
}
// DescribeEventsRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Returns events related to DAX clusters and parameter groups. You can obtain
// events specific to a particular DAX cluster or parameter group by providing
// the name as a parameter.
//
// By default, only the events occurring within the last hour are returned;
// however, you can retrieve up to 14 days' worth of events if necessary.
//
// // Example sending a request using the DescribeEventsRequest method.
// req := client.DescribeEventsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeEvents
func (c *DAX) DescribeEventsRequest(input *DescribeEventsInput) DescribeEventsRequest {
op := &aws.Operation{
Name: opDescribeEvents,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeEventsInput{}
}
output := &DescribeEventsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeEventsRequest{Request: req, Input: input}
}
const opDescribeParameterGroups = "DescribeParameterGroups"
// DescribeParameterGroupsRequest is a API request type for the DescribeParameterGroups API operation.
type DescribeParameterGroupsRequest struct {
*aws.Request
Input *DescribeParameterGroupsInput
}
// Send marshals and sends the DescribeParameterGroups API request.
func (r DescribeParameterGroupsRequest) Send() (*DescribeParameterGroupsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeParameterGroupsOutput), nil
}
// DescribeParameterGroupsRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Returns a list of parameter group descriptions. If a parameter group name
// is specified, the list will contain only the descriptions for that group.
//
// // Example sending a request using the DescribeParameterGroupsRequest method.
// req := client.DescribeParameterGroupsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeParameterGroups
func (c *DAX) DescribeParameterGroupsRequest(input *DescribeParameterGroupsInput) DescribeParameterGroupsRequest {
op := &aws.Operation{
Name: opDescribeParameterGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeParameterGroupsInput{}
}
output := &DescribeParameterGroupsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeParameterGroupsRequest{Request: req, Input: input}
}
const opDescribeParameters = "DescribeParameters"
// DescribeParametersRequest is a API request type for the DescribeParameters API operation.
type DescribeParametersRequest struct {
*aws.Request
Input *DescribeParametersInput
}
// Send marshals and sends the DescribeParameters API request.
func (r DescribeParametersRequest) Send() (*DescribeParametersOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeParametersOutput), nil
}
// DescribeParametersRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Returns the detailed parameter list for a particular parameter group.
//
// // Example sending a request using the DescribeParametersRequest method.
// req := client.DescribeParametersRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeParameters
func (c *DAX) DescribeParametersRequest(input *DescribeParametersInput) DescribeParametersRequest {
op := &aws.Operation{
Name: opDescribeParameters,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeParametersInput{}
}
output := &DescribeParametersOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeParametersRequest{Request: req, Input: input}
}
const opDescribeSubnetGroups = "DescribeSubnetGroups"
// DescribeSubnetGroupsRequest is a API request type for the DescribeSubnetGroups API operation.
type DescribeSubnetGroupsRequest struct {
*aws.Request
Input *DescribeSubnetGroupsInput
}
// Send marshals and sends the DescribeSubnetGroups API request.
func (r DescribeSubnetGroupsRequest) Send() (*DescribeSubnetGroupsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*DescribeSubnetGroupsOutput), nil
}
// DescribeSubnetGroupsRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Returns a list of subnet group descriptions. If a subnet group name is specified,
// the list will contain only the description of that group.
//
// // Example sending a request using the DescribeSubnetGroupsRequest method.
// req := client.DescribeSubnetGroupsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/DescribeSubnetGroups
func (c *DAX) DescribeSubnetGroupsRequest(input *DescribeSubnetGroupsInput) DescribeSubnetGroupsRequest {
op := &aws.Operation{
Name: opDescribeSubnetGroups,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeSubnetGroupsInput{}
}
output := &DescribeSubnetGroupsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return DescribeSubnetGroupsRequest{Request: req, Input: input}
}
const opIncreaseReplicationFactor = "IncreaseReplicationFactor"
// IncreaseReplicationFactorRequest is a API request type for the IncreaseReplicationFactor API operation.
type IncreaseReplicationFactorRequest struct {
*aws.Request
Input *IncreaseReplicationFactorInput
}
// Send marshals and sends the IncreaseReplicationFactor API request.
func (r IncreaseReplicationFactorRequest) Send() (*IncreaseReplicationFactorOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*IncreaseReplicationFactorOutput), nil
}
// IncreaseReplicationFactorRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Adds one or more nodes to a DAX cluster.
//
// // Example sending a request using the IncreaseReplicationFactorRequest method.
// req := client.IncreaseReplicationFactorRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/IncreaseReplicationFactor
func (c *DAX) IncreaseReplicationFactorRequest(input *IncreaseReplicationFactorInput) IncreaseReplicationFactorRequest {
op := &aws.Operation{
Name: opIncreaseReplicationFactor,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &IncreaseReplicationFactorInput{}
}
output := &IncreaseReplicationFactorOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return IncreaseReplicationFactorRequest{Request: req, Input: input}
}
const opListTags = "ListTags"
// ListTagsRequest is a API request type for the ListTags API operation.
type ListTagsRequest struct {
*aws.Request
Input *ListTagsInput
}
// Send marshals and sends the ListTags API request.
func (r ListTagsRequest) Send() (*ListTagsOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*ListTagsOutput), nil
}
// ListTagsRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// List all of the tags for a DAX cluster. You can call ListTags up to 10 times
// per second, per account.
//
// // Example sending a request using the ListTagsRequest method.
// req := client.ListTagsRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/ListTags
func (c *DAX) ListTagsRequest(input *ListTagsInput) ListTagsRequest {
op := &aws.Operation{
Name: opListTags,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListTagsInput{}
}
output := &ListTagsOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return ListTagsRequest{Request: req, Input: input}
}
const opRebootNode = "RebootNode"
// RebootNodeRequest is a API request type for the RebootNode API operation.
type RebootNodeRequest struct {
*aws.Request
Input *RebootNodeInput
}
// Send marshals and sends the RebootNode API request.
func (r RebootNodeRequest) Send() (*RebootNodeOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*RebootNodeOutput), nil
}
// RebootNodeRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Reboots a single node of a DAX cluster. The reboot action takes place as
// soon as possible. During the reboot, the node status is set to REBOOTING.
//
// // Example sending a request using the RebootNodeRequest method.
// req := client.RebootNodeRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/RebootNode
func (c *DAX) RebootNodeRequest(input *RebootNodeInput) RebootNodeRequest {
op := &aws.Operation{
Name: opRebootNode,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RebootNodeInput{}
}
output := &RebootNodeOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return RebootNodeRequest{Request: req, Input: input}
}
const opTagResource = "TagResource"
// TagResourceRequest is a API request type for the TagResource API operation.
type TagResourceRequest struct {
*aws.Request
Input *TagResourceInput
}
// Send marshals and sends the TagResource API request.
func (r TagResourceRequest) Send() (*TagResourceOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*TagResourceOutput), nil
}
// TagResourceRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Associates a set of tags with a DAX resource. You can call TagResource up
// to 5 times per second, per account.
//
// // Example sending a request using the TagResourceRequest method.
// req := client.TagResourceRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/TagResource
func (c *DAX) TagResourceRequest(input *TagResourceInput) TagResourceRequest {
op := &aws.Operation{
Name: opTagResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &TagResourceInput{}
}
output := &TagResourceOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return TagResourceRequest{Request: req, Input: input}
}
const opUntagResource = "UntagResource"
// UntagResourceRequest is a API request type for the UntagResource API operation.
type UntagResourceRequest struct {
*aws.Request
Input *UntagResourceInput
}
// Send marshals and sends the UntagResource API request.
func (r UntagResourceRequest) Send() (*UntagResourceOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UntagResourceOutput), nil
}
// UntagResourceRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Removes the association of tags from a DAX resource. You can call UntagResource
// up to 5 times per second, per account.
//
// // Example sending a request using the UntagResourceRequest method.
// req := client.UntagResourceRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/UntagResource
func (c *DAX) UntagResourceRequest(input *UntagResourceInput) UntagResourceRequest {
op := &aws.Operation{
Name: opUntagResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UntagResourceInput{}
}
output := &UntagResourceOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return UntagResourceRequest{Request: req, Input: input}
}
const opUpdateCluster = "UpdateCluster"
// UpdateClusterRequest is a API request type for the UpdateCluster API operation.
type UpdateClusterRequest struct {
*aws.Request
Input *UpdateClusterInput
}
// Send marshals and sends the UpdateCluster API request.
func (r UpdateClusterRequest) Send() (*UpdateClusterOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateClusterOutput), nil
}
// UpdateClusterRequest returns a request value for making API operation for
// Amazon DynamoDB Accelerator (DAX).
//
// Modifies the settings for a DAX cluster. You can use this action to change
// one or more cluster configuration parameters by specifying the parameters
// and the new values.
//
// // Example sending a request using the UpdateClusterRequest method.
// req := client.UpdateClusterRequest(params)
// resp, err := req.Send()
// if err == nil {
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/dax-2017-04-19/UpdateCluster
func (c *DAX) UpdateClusterRequest(input *UpdateClusterInput) UpdateClusterRequest {
op := &aws.Operation{
Name: opUpdateCluster,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateClusterInput{}
}
output := &UpdateClusterOutput{}
req := c.newRequest(op, input, output)
output.responseMetadata = aws.Response{Request: req}
return UpdateClusterRequest{Request: req, Input: input}
}
const opUpdateParameterGroup = "UpdateParameterGroup"
// UpdateParameterGroupRequest is a API request type for the UpdateParameterGroup API operation.
type UpdateParameterGroupRequest struct {
*aws.Request
Input *UpdateParameterGroupInput
}
// Send marshals and sends the UpdateParameterGroup API request.
func (r UpdateParameterGroupRequest) Send() (*UpdateParameterGroupOutput, error) {
err := r.Request.Send()
if err != nil {
return nil, err
}
return r.Request.Data.(*UpdateParameterGroupOutput), nil
}