forked from aws/aws-sdk-go
/
elasticache.go
1290 lines (1134 loc) · 71.7 KB
/
elasticache.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package elasticcache provides a client for Amazon ElastiCache.
package elasticcache
import (
"net/http"
"time"
"github.com/awslabs/aws-sdk-go/aws"
"github.com/awslabs/aws-sdk-go/gen/endpoints"
)
import (
"encoding/xml"
"io"
)
// ElasticCache is a client for Amazon ElastiCache.
type ElasticCache struct {
client *aws.QueryClient
}
type ElasticCacheAPI interface {
AuthorizeCacheSecurityGroupIngress(req *AuthorizeCacheSecurityGroupIngressMessage) (resp *AuthorizeCacheSecurityGroupIngressResult, err error)
CopySnapshot(req *CopySnapshotMessage) (resp *CopySnapshotResult, err error)
CreateCacheCluster(req *CreateCacheClusterMessage) (resp *CreateCacheClusterResult, err error)
CreateCacheParameterGroup(req *CreateCacheParameterGroupMessage) (resp *CreateCacheParameterGroupResult, err error)
CreateCacheSecurityGroup(req *CreateCacheSecurityGroupMessage) (resp *CreateCacheSecurityGroupResult, err error)
CreateCacheSubnetGroup(req *CreateCacheSubnetGroupMessage) (resp *CreateCacheSubnetGroupResult, err error)
CreateReplicationGroup(req *CreateReplicationGroupMessage) (resp *CreateReplicationGroupResult, err error)
CreateSnapshot(req *CreateSnapshotMessage) (resp *CreateSnapshotResult, err error)
DeleteCacheCluster(req *DeleteCacheClusterMessage) (resp *DeleteCacheClusterResult, err error)
DeleteCacheParameterGroup(req *DeleteCacheParameterGroupMessage) (err error)
DeleteCacheSecurityGroup(req *DeleteCacheSecurityGroupMessage) (err error)
DeleteCacheSubnetGroup(req *DeleteCacheSubnetGroupMessage) (err error)
DeleteReplicationGroup(req *DeleteReplicationGroupMessage) (resp *DeleteReplicationGroupResult, err error)
DeleteSnapshot(req *DeleteSnapshotMessage) (resp *DeleteSnapshotResult, err error)
DescribeCacheClusters(req *DescribeCacheClustersMessage) (resp *CacheClusterMessage, err error)
DescribeCacheEngineVersions(req *DescribeCacheEngineVersionsMessage) (resp *CacheEngineVersionMessage, err error)
DescribeCacheParameterGroups(req *DescribeCacheParameterGroupsMessage) (resp *CacheParameterGroupsMessage, err error)
DescribeCacheParameters(req *DescribeCacheParametersMessage) (resp *CacheParameterGroupDetails, err error)
DescribeCacheSecurityGroups(req *DescribeCacheSecurityGroupsMessage) (resp *CacheSecurityGroupMessage, err error)
DescribeCacheSubnetGroups(req *DescribeCacheSubnetGroupsMessage) (resp *CacheSubnetGroupMessage, err error)
DescribeEngineDefaultParameters(req *DescribeEngineDefaultParametersMessage) (resp *DescribeEngineDefaultParametersResult, err error)
DescribeEvents(req *DescribeEventsMessage) (resp *EventsMessage, err error)
DescribeReplicationGroups(req *DescribeReplicationGroupsMessage) (resp *ReplicationGroupMessage, err error)
DescribeReservedCacheNodes(req *DescribeReservedCacheNodesMessage) (resp *ReservedCacheNodeMessage, err error)
DescribeReservedCacheNodesOfferings(req *DescribeReservedCacheNodesOfferingsMessage) (resp *ReservedCacheNodesOfferingMessage, err error)
DescribeSnapshots(req *DescribeSnapshotsMessage) (resp *DescribeSnapshotsListMessage, err error)
ModifyCacheCluster(req *ModifyCacheClusterMessage) (resp *ModifyCacheClusterResult, err error)
ModifyCacheParameterGroup(req *ModifyCacheParameterGroupMessage) (resp *CacheParameterGroupNameMessage, err error)
ModifyCacheSubnetGroup(req *ModifyCacheSubnetGroupMessage) (resp *ModifyCacheSubnetGroupResult, err error)
ModifyReplicationGroup(req *ModifyReplicationGroupMessage) (resp *ModifyReplicationGroupResult, err error)
PurchaseReservedCacheNodesOffering(req *PurchaseReservedCacheNodesOfferingMessage) (resp *PurchaseReservedCacheNodesOfferingResult, err error)
RebootCacheCluster(req *RebootCacheClusterMessage) (resp *RebootCacheClusterResult, err error)
ResetCacheParameterGroup(req *ResetCacheParameterGroupMessage) (resp *CacheParameterGroupNameMessage, err error)
RevokeCacheSecurityGroupIngress(req *RevokeCacheSecurityGroupIngressMessage) (resp *RevokeCacheSecurityGroupIngressResult, err error)
}
// New returns a new ElasticCache client.
func New(creds aws.CredentialsProvider, region string, client *http.Client) *ElasticCache {
if client == nil {
client = http.DefaultClient
}
endpoint, service, region := endpoints.Lookup("elasticache", region)
return &ElasticCache{
client: &aws.QueryClient{
Context: aws.Context{
Credentials: creds,
Service: service,
Region: region,
},
Client: client,
Endpoint: endpoint,
APIVersion: "2014-09-30",
},
}
}
// AuthorizeCacheSecurityGroupIngress the
// AuthorizeCacheSecurityGroupIngress operation allows network ingress to a
// cache security group. Applications using ElastiCache must be running on
// Amazon EC2, and Amazon EC2 security groups are used as the authorization
// mechanism.
func (c *ElasticCache) AuthorizeCacheSecurityGroupIngress(req *AuthorizeCacheSecurityGroupIngressMessage) (resp *AuthorizeCacheSecurityGroupIngressResult, err error) {
resp = &AuthorizeCacheSecurityGroupIngressResult{}
err = c.client.Do("AuthorizeCacheSecurityGroupIngress", "POST", "/", req, resp)
return
}
// CopySnapshot the CopySnapshot operation makes a copy of an existing
// snapshot.
func (c *ElasticCache) CopySnapshot(req *CopySnapshotMessage) (resp *CopySnapshotResult, err error) {
resp = &CopySnapshotResult{}
err = c.client.Do("CopySnapshot", "POST", "/", req, resp)
return
}
// CreateCacheCluster the CreateCacheCluster operation creates a cache
// cluster. All nodes in the cache cluster run the same protocol-compliant
// cache engine software, either Memcached or Redis.
func (c *ElasticCache) CreateCacheCluster(req *CreateCacheClusterMessage) (resp *CreateCacheClusterResult, err error) {
resp = &CreateCacheClusterResult{}
err = c.client.Do("CreateCacheCluster", "POST", "/", req, resp)
return
}
// CreateCacheParameterGroup the CreateCacheParameterGroup operation
// creates a new cache parameter group. A cache parameter group is a
// collection of parameters that you apply to all of the nodes in a cache
// cluster.
func (c *ElasticCache) CreateCacheParameterGroup(req *CreateCacheParameterGroupMessage) (resp *CreateCacheParameterGroupResult, err error) {
resp = &CreateCacheParameterGroupResult{}
err = c.client.Do("CreateCacheParameterGroup", "POST", "/", req, resp)
return
}
// CreateCacheSecurityGroup the CreateCacheSecurityGroup operation creates
// a new cache security group. Use a cache security group to control access
// to one or more cache clusters. Cache security groups are only used when
// you are creating a cache cluster outside of an Amazon Virtual Private
// Cloud If you are creating a cache cluster inside of a use a cache subnet
// group instead. For more information, see CreateCacheSubnetGroup
func (c *ElasticCache) CreateCacheSecurityGroup(req *CreateCacheSecurityGroupMessage) (resp *CreateCacheSecurityGroupResult, err error) {
resp = &CreateCacheSecurityGroupResult{}
err = c.client.Do("CreateCacheSecurityGroup", "POST", "/", req, resp)
return
}
// CreateCacheSubnetGroup the CreateCacheSubnetGroup operation creates a
// new cache subnet group. Use this parameter only when you are creating a
// cluster in an Amazon Virtual Private Cloud
func (c *ElasticCache) CreateCacheSubnetGroup(req *CreateCacheSubnetGroupMessage) (resp *CreateCacheSubnetGroupResult, err error) {
resp = &CreateCacheSubnetGroupResult{}
err = c.client.Do("CreateCacheSubnetGroup", "POST", "/", req, resp)
return
}
// CreateReplicationGroup the CreateReplicationGroup operation creates a
// replication group. A replication group is a collection of cache
// clusters, where one of the cache clusters is a read/write primary and
// the others are read-only replicas. Writes to the primary are
// automatically propagated to the replicas. When you create a replication
// group, you must specify an existing cache cluster that is in the primary
// role. When the replication group has been successfully created, you can
// add one or more read replica replicas to it, up to a total of five read
// replicas. Note: This action is valid only for Redis.
func (c *ElasticCache) CreateReplicationGroup(req *CreateReplicationGroupMessage) (resp *CreateReplicationGroupResult, err error) {
resp = &CreateReplicationGroupResult{}
err = c.client.Do("CreateReplicationGroup", "POST", "/", req, resp)
return
}
// CreateSnapshot the CreateSnapshot operation creates a copy of an entire
// cache cluster at a specific moment in time.
func (c *ElasticCache) CreateSnapshot(req *CreateSnapshotMessage) (resp *CreateSnapshotResult, err error) {
resp = &CreateSnapshotResult{}
err = c.client.Do("CreateSnapshot", "POST", "/", req, resp)
return
}
// DeleteCacheCluster the DeleteCacheCluster operation deletes a previously
// provisioned cache cluster. DeleteCacheCluster deletes all associated
// cache nodes, node endpoints and the cache cluster itself. When you
// receive a successful response from this operation, Amazon ElastiCache
// immediately begins deleting the cache cluster; you cannot cancel or
// revert this operation. This API cannot be used to delete a cache cluster
// that is the last read replica of a replication group that has automatic
// failover mode enabled.
func (c *ElasticCache) DeleteCacheCluster(req *DeleteCacheClusterMessage) (resp *DeleteCacheClusterResult, err error) {
resp = &DeleteCacheClusterResult{}
err = c.client.Do("DeleteCacheCluster", "POST", "/", req, resp)
return
}
// DeleteCacheParameterGroup the DeleteCacheParameterGroup operation
// deletes the specified cache parameter group. You cannot delete a cache
// parameter group if it is associated with any cache clusters.
func (c *ElasticCache) DeleteCacheParameterGroup(req *DeleteCacheParameterGroupMessage) (err error) {
// NRE
err = c.client.Do("DeleteCacheParameterGroup", "POST", "/", req, nil)
return
}
// DeleteCacheSecurityGroup the DeleteCacheSecurityGroup operation deletes
// a cache security group.
func (c *ElasticCache) DeleteCacheSecurityGroup(req *DeleteCacheSecurityGroupMessage) (err error) {
// NRE
err = c.client.Do("DeleteCacheSecurityGroup", "POST", "/", req, nil)
return
}
// DeleteCacheSubnetGroup the DeleteCacheSubnetGroup operation deletes a
// cache subnet group.
func (c *ElasticCache) DeleteCacheSubnetGroup(req *DeleteCacheSubnetGroupMessage) (err error) {
// NRE
err = c.client.Do("DeleteCacheSubnetGroup", "POST", "/", req, nil)
return
}
// DeleteReplicationGroup the DeleteReplicationGroup operation deletes an
// existing cluster. By default, this operation deletes the entire cluster,
// including the primary node group and all of the read replicas. You can
// optionally delete only the read replicas, while retaining the primary
// node group. When you receive a successful response from this operation,
// Amazon ElastiCache immediately begins deleting the selected resources;
// you cannot cancel or revert this operation.
func (c *ElasticCache) DeleteReplicationGroup(req *DeleteReplicationGroupMessage) (resp *DeleteReplicationGroupResult, err error) {
resp = &DeleteReplicationGroupResult{}
err = c.client.Do("DeleteReplicationGroup", "POST", "/", req, resp)
return
}
// DeleteSnapshot the DeleteSnapshot operation deletes an existing
// snapshot. When you receive a successful response from this operation,
// ElastiCache immediately begins deleting the snapshot; you cannot cancel
// or revert this operation.
func (c *ElasticCache) DeleteSnapshot(req *DeleteSnapshotMessage) (resp *DeleteSnapshotResult, err error) {
resp = &DeleteSnapshotResult{}
err = c.client.Do("DeleteSnapshot", "POST", "/", req, resp)
return
}
// DescribeCacheClusters the DescribeCacheClusters operation returns
// information about all provisioned cache clusters if no cache cluster
// identifier is specified, or about a specific cache cluster if a cache
// cluster identifier is supplied. By default, abbreviated information
// about the cache clusters(s) will be returned. You can use the optional
// ShowDetails flag to retrieve detailed information about the cache nodes
// associated with the cache clusters. These details include the DNS
// address and port for the cache node endpoint. If the cluster is in the
// state, only cluster level information will be displayed until all of the
// nodes are successfully provisioned. If the cluster is in the state, only
// cluster level information will be displayed. If cache nodes are
// currently being added to the cache cluster, node endpoint information
// and creation time for the additional nodes will not be displayed until
// they are completely provisioned. When the cache cluster state is
// available , the cluster is ready for use. If cache nodes are currently
// being removed from the cache cluster, no endpoint information for the
// removed nodes is displayed.
func (c *ElasticCache) DescribeCacheClusters(req *DescribeCacheClustersMessage) (resp *DescribeCacheClustersResult, err error) {
resp = &DescribeCacheClustersResult{}
err = c.client.Do("DescribeCacheClusters", "POST", "/", req, resp)
return
}
// DescribeCacheEngineVersions the DescribeCacheEngineVersions operation
// returns a list of the available cache engines and their versions.
func (c *ElasticCache) DescribeCacheEngineVersions(req *DescribeCacheEngineVersionsMessage) (resp *DescribeCacheEngineVersionsResult, err error) {
resp = &DescribeCacheEngineVersionsResult{}
err = c.client.Do("DescribeCacheEngineVersions", "POST", "/", req, resp)
return
}
// DescribeCacheParameterGroups the DescribeCacheParameterGroups operation
// returns a list of cache parameter group descriptions. If a cache
// parameter group name is specified, the list will contain only the
// descriptions for that group.
func (c *ElasticCache) DescribeCacheParameterGroups(req *DescribeCacheParameterGroupsMessage) (resp *DescribeCacheParameterGroupsResult, err error) {
resp = &DescribeCacheParameterGroupsResult{}
err = c.client.Do("DescribeCacheParameterGroups", "POST", "/", req, resp)
return
}
// DescribeCacheParameters the DescribeCacheParameters operation returns
// the detailed parameter list for a particular cache parameter group.
func (c *ElasticCache) DescribeCacheParameters(req *DescribeCacheParametersMessage) (resp *DescribeCacheParametersResult, err error) {
resp = &DescribeCacheParametersResult{}
err = c.client.Do("DescribeCacheParameters", "POST", "/", req, resp)
return
}
// DescribeCacheSecurityGroups the DescribeCacheSecurityGroups operation
// returns a list of cache security group descriptions. If a cache security
// group name is specified, the list will contain only the description of
// that group.
func (c *ElasticCache) DescribeCacheSecurityGroups(req *DescribeCacheSecurityGroupsMessage) (resp *DescribeCacheSecurityGroupsResult, err error) {
resp = &DescribeCacheSecurityGroupsResult{}
err = c.client.Do("DescribeCacheSecurityGroups", "POST", "/", req, resp)
return
}
// DescribeCacheSubnetGroups the DescribeCacheSubnetGroups operation
// returns a list of cache subnet group descriptions. If a subnet group
// name is specified, the list will contain only the description of that
// group.
func (c *ElasticCache) DescribeCacheSubnetGroups(req *DescribeCacheSubnetGroupsMessage) (resp *DescribeCacheSubnetGroupsResult, err error) {
resp = &DescribeCacheSubnetGroupsResult{}
err = c.client.Do("DescribeCacheSubnetGroups", "POST", "/", req, resp)
return
}
// DescribeEngineDefaultParameters the DescribeEngineDefaultParameters
// operation returns the default engine and system parameter information
// for the specified cache engine.
func (c *ElasticCache) DescribeEngineDefaultParameters(req *DescribeEngineDefaultParametersMessage) (resp *DescribeEngineDefaultParametersResult, err error) {
resp = &DescribeEngineDefaultParametersResult{}
err = c.client.Do("DescribeEngineDefaultParameters", "POST", "/", req, resp)
return
}
// DescribeEvents the DescribeEvents operation returns events related to
// cache clusters, cache security groups, and cache parameter groups. You
// can obtain events specific to a particular cache cluster, cache security
// group, or cache 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.
func (c *ElasticCache) DescribeEvents(req *DescribeEventsMessage) (resp *DescribeEventsResult, err error) {
resp = &DescribeEventsResult{}
err = c.client.Do("DescribeEvents", "POST", "/", req, resp)
return
}
// DescribeReplicationGroups the DescribeReplicationGroups operation
// returns information about a particular replication group. If no
// identifier is specified, DescribeReplicationGroups returns information
// about all replication groups.
func (c *ElasticCache) DescribeReplicationGroups(req *DescribeReplicationGroupsMessage) (resp *DescribeReplicationGroupsResult, err error) {
resp = &DescribeReplicationGroupsResult{}
err = c.client.Do("DescribeReplicationGroups", "POST", "/", req, resp)
return
}
// DescribeReservedCacheNodes the DescribeReservedCacheNodes operation
// returns information about reserved cache nodes for this account, or
// about a specified reserved cache node.
func (c *ElasticCache) DescribeReservedCacheNodes(req *DescribeReservedCacheNodesMessage) (resp *DescribeReservedCacheNodesResult, err error) {
resp = &DescribeReservedCacheNodesResult{}
err = c.client.Do("DescribeReservedCacheNodes", "POST", "/", req, resp)
return
}
// DescribeReservedCacheNodesOfferings the
// DescribeReservedCacheNodesOfferings operation lists available reserved
// cache node offerings.
func (c *ElasticCache) DescribeReservedCacheNodesOfferings(req *DescribeReservedCacheNodesOfferingsMessage) (resp *DescribeReservedCacheNodesOfferingsResult, err error) {
resp = &DescribeReservedCacheNodesOfferingsResult{}
err = c.client.Do("DescribeReservedCacheNodesOfferings", "POST", "/", req, resp)
return
}
// DescribeSnapshots the DescribeSnapshots operation returns information
// about cache cluster snapshots. By default, DescribeSnapshots lists all
// of your snapshots; it can optionally describe a single snapshot, or just
// the snapshots associated with a particular cache cluster.
func (c *ElasticCache) DescribeSnapshots(req *DescribeSnapshotsMessage) (resp *DescribeSnapshotsResult, err error) {
resp = &DescribeSnapshotsResult{}
err = c.client.Do("DescribeSnapshots", "POST", "/", req, resp)
return
}
// ModifyCacheCluster the ModifyCacheCluster operation modifies the
// settings for a cache cluster. You can use this operation to change one
// or more cluster configuration parameters by specifying the parameters
// and the new values.
func (c *ElasticCache) ModifyCacheCluster(req *ModifyCacheClusterMessage) (resp *ModifyCacheClusterResult, err error) {
resp = &ModifyCacheClusterResult{}
err = c.client.Do("ModifyCacheCluster", "POST", "/", req, resp)
return
}
// ModifyCacheParameterGroup the ModifyCacheParameterGroup operation
// modifies the parameters of a cache parameter group. You can modify up to
// 20 parameters in a single request by submitting a list parameter name
// and value pairs.
func (c *ElasticCache) ModifyCacheParameterGroup(req *ModifyCacheParameterGroupMessage) (resp *ModifyCacheParameterGroupResult, err error) {
resp = &ModifyCacheParameterGroupResult{}
err = c.client.Do("ModifyCacheParameterGroup", "POST", "/", req, resp)
return
}
// ModifyCacheSubnetGroup the ModifyCacheSubnetGroup operation modifies an
// existing cache subnet group.
func (c *ElasticCache) ModifyCacheSubnetGroup(req *ModifyCacheSubnetGroupMessage) (resp *ModifyCacheSubnetGroupResult, err error) {
resp = &ModifyCacheSubnetGroupResult{}
err = c.client.Do("ModifyCacheSubnetGroup", "POST", "/", req, resp)
return
}
// ModifyReplicationGroup the ModifyReplicationGroup operation modifies the
// settings for a replication group.
func (c *ElasticCache) ModifyReplicationGroup(req *ModifyReplicationGroupMessage) (resp *ModifyReplicationGroupResult, err error) {
resp = &ModifyReplicationGroupResult{}
err = c.client.Do("ModifyReplicationGroup", "POST", "/", req, resp)
return
}
// PurchaseReservedCacheNodesOffering the
// PurchaseReservedCacheNodesOffering operation allows you to purchase a
// reserved cache node offering.
func (c *ElasticCache) PurchaseReservedCacheNodesOffering(req *PurchaseReservedCacheNodesOfferingMessage) (resp *PurchaseReservedCacheNodesOfferingResult, err error) {
resp = &PurchaseReservedCacheNodesOfferingResult{}
err = c.client.Do("PurchaseReservedCacheNodesOffering", "POST", "/", req, resp)
return
}
// RebootCacheCluster the RebootCacheCluster operation reboots some, or
// all, of the cache nodes within a provisioned cache cluster. This API
// will apply any modified cache parameter groups to the cache cluster. The
// reboot action takes place as soon as possible, and results in a
// momentary outage to the cache cluster. During the reboot, the cache
// cluster status is set to The reboot causes the contents of the cache
// (for each cache node being rebooted) to be lost. When the reboot is
// complete, a cache cluster event is created.
func (c *ElasticCache) RebootCacheCluster(req *RebootCacheClusterMessage) (resp *RebootCacheClusterResult, err error) {
resp = &RebootCacheClusterResult{}
err = c.client.Do("RebootCacheCluster", "POST", "/", req, resp)
return
}
// ResetCacheParameterGroup the ResetCacheParameterGroup operation modifies
// the parameters of a cache parameter group to the engine or system
// default value. You can reset specific parameters by submitting a list of
// parameter names. To reset the entire cache parameter group, specify the
// ResetAllParameters and CacheParameterGroupName parameters.
func (c *ElasticCache) ResetCacheParameterGroup(req *ResetCacheParameterGroupMessage) (resp *ResetCacheParameterGroupResult, err error) {
resp = &ResetCacheParameterGroupResult{}
err = c.client.Do("ResetCacheParameterGroup", "POST", "/", req, resp)
return
}
// RevokeCacheSecurityGroupIngress the RevokeCacheSecurityGroupIngress
// operation revokes ingress from a cache security group. Use this
// operation to disallow access from an Amazon EC2 security group that had
// been previously authorized.
func (c *ElasticCache) RevokeCacheSecurityGroupIngress(req *RevokeCacheSecurityGroupIngressMessage) (resp *RevokeCacheSecurityGroupIngressResult, err error) {
resp = &RevokeCacheSecurityGroupIngressResult{}
err = c.client.Do("RevokeCacheSecurityGroupIngress", "POST", "/", req, resp)
return
}
// Possible values for ElasticCache.
const (
AZModeCrossAz = "cross-az"
AZModeSingleAz = "single-az"
)
// AuthorizeCacheSecurityGroupIngressMessage is undocumented.
type AuthorizeCacheSecurityGroupIngressMessage struct {
CacheSecurityGroupName aws.StringValue `query:"CacheSecurityGroupName" xml:"CacheSecurityGroupName"`
EC2SecurityGroupName aws.StringValue `query:"EC2SecurityGroupName" xml:"EC2SecurityGroupName"`
EC2SecurityGroupOwnerID aws.StringValue `query:"EC2SecurityGroupOwnerId" xml:"EC2SecurityGroupOwnerId"`
}
// AuthorizeCacheSecurityGroupIngressResult is undocumented.
type AuthorizeCacheSecurityGroupIngressResult struct {
CacheSecurityGroup *CacheSecurityGroup `query:"CacheSecurityGroup" xml:"AuthorizeCacheSecurityGroupIngressResult>CacheSecurityGroup"`
}
// Possible values for ElasticCache.
const (
AutomaticFailoverStatusDisabled = "disabled"
AutomaticFailoverStatusDisabling = "disabling"
AutomaticFailoverStatusEnabled = "enabled"
AutomaticFailoverStatusEnabling = "enabling"
)
// AvailabilityZone is undocumented.
type AvailabilityZone struct {
Name aws.StringValue `query:"Name" xml:"Name"`
}
// CacheCluster is undocumented.
type CacheCluster struct {
AutoMinorVersionUpgrade aws.BooleanValue `query:"AutoMinorVersionUpgrade" xml:"AutoMinorVersionUpgrade"`
CacheClusterCreateTime time.Time `query:"CacheClusterCreateTime" xml:"CacheClusterCreateTime"`
CacheClusterID aws.StringValue `query:"CacheClusterId" xml:"CacheClusterId"`
CacheClusterStatus aws.StringValue `query:"CacheClusterStatus" xml:"CacheClusterStatus"`
CacheNodeType aws.StringValue `query:"CacheNodeType" xml:"CacheNodeType"`
CacheNodes []CacheNode `query:"CacheNodes.member" xml:"CacheNodes>CacheNode"`
CacheParameterGroup *CacheParameterGroupStatus `query:"CacheParameterGroup" xml:"CacheParameterGroup"`
CacheSecurityGroups []CacheSecurityGroupMembership `query:"CacheSecurityGroups.member" xml:"CacheSecurityGroups>CacheSecurityGroup"`
CacheSubnetGroupName aws.StringValue `query:"CacheSubnetGroupName" xml:"CacheSubnetGroupName"`
ClientDownloadLandingPage aws.StringValue `query:"ClientDownloadLandingPage" xml:"ClientDownloadLandingPage"`
ConfigurationEndpoint *Endpoint `query:"ConfigurationEndpoint" xml:"ConfigurationEndpoint"`
Engine aws.StringValue `query:"Engine" xml:"Engine"`
EngineVersion aws.StringValue `query:"EngineVersion" xml:"EngineVersion"`
NotificationConfiguration *NotificationConfiguration `query:"NotificationConfiguration" xml:"NotificationConfiguration"`
NumCacheNodes aws.IntegerValue `query:"NumCacheNodes" xml:"NumCacheNodes"`
PendingModifiedValues *PendingModifiedValues `query:"PendingModifiedValues" xml:"PendingModifiedValues"`
PreferredAvailabilityZone aws.StringValue `query:"PreferredAvailabilityZone" xml:"PreferredAvailabilityZone"`
PreferredMaintenanceWindow aws.StringValue `query:"PreferredMaintenanceWindow" xml:"PreferredMaintenanceWindow"`
ReplicationGroupID aws.StringValue `query:"ReplicationGroupId" xml:"ReplicationGroupId"`
SecurityGroups []SecurityGroupMembership `query:"SecurityGroups.member" xml:"SecurityGroups>member"`
SnapshotRetentionLimit aws.IntegerValue `query:"SnapshotRetentionLimit" xml:"SnapshotRetentionLimit"`
SnapshotWindow aws.StringValue `query:"SnapshotWindow" xml:"SnapshotWindow"`
}
// CacheClusterMessage is undocumented.
type CacheClusterMessage struct {
CacheClusters []CacheCluster `query:"CacheClusters.member" xml:"DescribeCacheClustersResult>CacheClusters>CacheCluster"`
Marker aws.StringValue `query:"Marker" xml:"DescribeCacheClustersResult>Marker"`
}
// CacheEngineVersion is undocumented.
type CacheEngineVersion struct {
CacheEngineDescription aws.StringValue `query:"CacheEngineDescription" xml:"CacheEngineDescription"`
CacheEngineVersionDescription aws.StringValue `query:"CacheEngineVersionDescription" xml:"CacheEngineVersionDescription"`
CacheParameterGroupFamily aws.StringValue `query:"CacheParameterGroupFamily" xml:"CacheParameterGroupFamily"`
Engine aws.StringValue `query:"Engine" xml:"Engine"`
EngineVersion aws.StringValue `query:"EngineVersion" xml:"EngineVersion"`
}
// CacheEngineVersionMessage is undocumented.
type CacheEngineVersionMessage struct {
CacheEngineVersions []CacheEngineVersion `query:"CacheEngineVersions.member" xml:"DescribeCacheEngineVersionsResult>CacheEngineVersions>CacheEngineVersion"`
Marker aws.StringValue `query:"Marker" xml:"DescribeCacheEngineVersionsResult>Marker"`
}
// CacheNode is undocumented.
type CacheNode struct {
CacheNodeCreateTime time.Time `query:"CacheNodeCreateTime" xml:"CacheNodeCreateTime"`
CacheNodeID aws.StringValue `query:"CacheNodeId" xml:"CacheNodeId"`
CacheNodeStatus aws.StringValue `query:"CacheNodeStatus" xml:"CacheNodeStatus"`
CustomerAvailabilityZone aws.StringValue `query:"CustomerAvailabilityZone" xml:"CustomerAvailabilityZone"`
Endpoint *Endpoint `query:"Endpoint" xml:"Endpoint"`
ParameterGroupStatus aws.StringValue `query:"ParameterGroupStatus" xml:"ParameterGroupStatus"`
SourceCacheNodeID aws.StringValue `query:"SourceCacheNodeId" xml:"SourceCacheNodeId"`
}
// CacheNodeTypeSpecificParameter is undocumented.
type CacheNodeTypeSpecificParameter struct {
AllowedValues aws.StringValue `query:"AllowedValues" xml:"AllowedValues"`
CacheNodeTypeSpecificValues []CacheNodeTypeSpecificValue `query:"CacheNodeTypeSpecificValues.member" xml:"CacheNodeTypeSpecificValues>CacheNodeTypeSpecificValue"`
DataType aws.StringValue `query:"DataType" xml:"DataType"`
Description aws.StringValue `query:"Description" xml:"Description"`
IsModifiable aws.BooleanValue `query:"IsModifiable" xml:"IsModifiable"`
MinimumEngineVersion aws.StringValue `query:"MinimumEngineVersion" xml:"MinimumEngineVersion"`
ParameterName aws.StringValue `query:"ParameterName" xml:"ParameterName"`
Source aws.StringValue `query:"Source" xml:"Source"`
}
// CacheNodeTypeSpecificValue is undocumented.
type CacheNodeTypeSpecificValue struct {
CacheNodeType aws.StringValue `query:"CacheNodeType" xml:"CacheNodeType"`
Value aws.StringValue `query:"Value" xml:"Value"`
}
// CacheParameterGroup is undocumented.
type CacheParameterGroup struct {
CacheParameterGroupFamily aws.StringValue `query:"CacheParameterGroupFamily" xml:"CacheParameterGroupFamily"`
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
Description aws.StringValue `query:"Description" xml:"Description"`
}
// CacheParameterGroupDetails is undocumented.
type CacheParameterGroupDetails struct {
CacheNodeTypeSpecificParameters []CacheNodeTypeSpecificParameter `query:"CacheNodeTypeSpecificParameters.member" xml:"DescribeCacheParametersResult>CacheNodeTypeSpecificParameters>CacheNodeTypeSpecificParameter"`
Marker aws.StringValue `query:"Marker" xml:"DescribeCacheParametersResult>Marker"`
Parameters []Parameter `query:"Parameters.member" xml:"DescribeCacheParametersResult>Parameters>Parameter"`
}
// CacheParameterGroupNameMessage is undocumented.
type CacheParameterGroupNameMessage struct {
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
}
// CacheParameterGroupStatus is undocumented.
type CacheParameterGroupStatus struct {
CacheNodeIDsToReboot []string `query:"CacheNodeIdsToReboot.member" xml:"CacheNodeIdsToReboot>CacheNodeId"`
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
ParameterApplyStatus aws.StringValue `query:"ParameterApplyStatus" xml:"ParameterApplyStatus"`
}
// CacheParameterGroupsMessage is undocumented.
type CacheParameterGroupsMessage struct {
CacheParameterGroups []CacheParameterGroup `query:"CacheParameterGroups.member" xml:"DescribeCacheParameterGroupsResult>CacheParameterGroups>CacheParameterGroup"`
Marker aws.StringValue `query:"Marker" xml:"DescribeCacheParameterGroupsResult>Marker"`
}
// CacheSecurityGroup is undocumented.
type CacheSecurityGroup struct {
CacheSecurityGroupName aws.StringValue `query:"CacheSecurityGroupName" xml:"CacheSecurityGroupName"`
Description aws.StringValue `query:"Description" xml:"Description"`
EC2SecurityGroups []EC2SecurityGroup `query:"EC2SecurityGroups.member" xml:"EC2SecurityGroups>EC2SecurityGroup"`
OwnerID aws.StringValue `query:"OwnerId" xml:"OwnerId"`
}
// CacheSecurityGroupMembership is undocumented.
type CacheSecurityGroupMembership struct {
CacheSecurityGroupName aws.StringValue `query:"CacheSecurityGroupName" xml:"CacheSecurityGroupName"`
Status aws.StringValue `query:"Status" xml:"Status"`
}
// CacheSecurityGroupMessage is undocumented.
type CacheSecurityGroupMessage struct {
CacheSecurityGroups []CacheSecurityGroup `query:"CacheSecurityGroups.member" xml:"DescribeCacheSecurityGroupsResult>CacheSecurityGroups>CacheSecurityGroup"`
Marker aws.StringValue `query:"Marker" xml:"DescribeCacheSecurityGroupsResult>Marker"`
}
// CacheSubnetGroup is undocumented.
type CacheSubnetGroup struct {
CacheSubnetGroupDescription aws.StringValue `query:"CacheSubnetGroupDescription" xml:"CacheSubnetGroupDescription"`
CacheSubnetGroupName aws.StringValue `query:"CacheSubnetGroupName" xml:"CacheSubnetGroupName"`
Subnets []Subnet `query:"Subnets.member" xml:"Subnets>Subnet"`
VPCID aws.StringValue `query:"VpcId" xml:"VpcId"`
}
// CacheSubnetGroupMessage is undocumented.
type CacheSubnetGroupMessage struct {
CacheSubnetGroups []CacheSubnetGroup `query:"CacheSubnetGroups.member" xml:"DescribeCacheSubnetGroupsResult>CacheSubnetGroups>CacheSubnetGroup"`
Marker aws.StringValue `query:"Marker" xml:"DescribeCacheSubnetGroupsResult>Marker"`
}
// CopySnapshotMessage is undocumented.
type CopySnapshotMessage struct {
SourceSnapshotName aws.StringValue `query:"SourceSnapshotName" xml:"SourceSnapshotName"`
TargetSnapshotName aws.StringValue `query:"TargetSnapshotName" xml:"TargetSnapshotName"`
}
// CopySnapshotResult is undocumented.
type CopySnapshotResult struct {
Snapshot *Snapshot `query:"Snapshot" xml:"CopySnapshotResult>Snapshot"`
}
// CreateCacheClusterMessage is undocumented.
type CreateCacheClusterMessage struct {
AZMode aws.StringValue `query:"AZMode" xml:"AZMode"`
AutoMinorVersionUpgrade aws.BooleanValue `query:"AutoMinorVersionUpgrade" xml:"AutoMinorVersionUpgrade"`
CacheClusterID aws.StringValue `query:"CacheClusterId" xml:"CacheClusterId"`
CacheNodeType aws.StringValue `query:"CacheNodeType" xml:"CacheNodeType"`
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
CacheSecurityGroupNames []string `query:"CacheSecurityGroupNames.member" xml:"CacheSecurityGroupNames>CacheSecurityGroupName"`
CacheSubnetGroupName aws.StringValue `query:"CacheSubnetGroupName" xml:"CacheSubnetGroupName"`
Engine aws.StringValue `query:"Engine" xml:"Engine"`
EngineVersion aws.StringValue `query:"EngineVersion" xml:"EngineVersion"`
NotificationTopicARN aws.StringValue `query:"NotificationTopicArn" xml:"NotificationTopicArn"`
NumCacheNodes aws.IntegerValue `query:"NumCacheNodes" xml:"NumCacheNodes"`
Port aws.IntegerValue `query:"Port" xml:"Port"`
PreferredAvailabilityZone aws.StringValue `query:"PreferredAvailabilityZone" xml:"PreferredAvailabilityZone"`
PreferredAvailabilityZones []string `query:"PreferredAvailabilityZones.member" xml:"PreferredAvailabilityZones>PreferredAvailabilityZone"`
PreferredMaintenanceWindow aws.StringValue `query:"PreferredMaintenanceWindow" xml:"PreferredMaintenanceWindow"`
ReplicationGroupID aws.StringValue `query:"ReplicationGroupId" xml:"ReplicationGroupId"`
SecurityGroupIDs []string `query:"SecurityGroupIds.member" xml:"SecurityGroupIds>SecurityGroupId"`
SnapshotARNs []string `query:"SnapshotArns.member" xml:"SnapshotArns>SnapshotArn"`
SnapshotName aws.StringValue `query:"SnapshotName" xml:"SnapshotName"`
SnapshotRetentionLimit aws.IntegerValue `query:"SnapshotRetentionLimit" xml:"SnapshotRetentionLimit"`
SnapshotWindow aws.StringValue `query:"SnapshotWindow" xml:"SnapshotWindow"`
}
// CreateCacheClusterResult is undocumented.
type CreateCacheClusterResult struct {
CacheCluster *CacheCluster `query:"CacheCluster" xml:"CreateCacheClusterResult>CacheCluster"`
}
// CreateCacheParameterGroupMessage is undocumented.
type CreateCacheParameterGroupMessage struct {
CacheParameterGroupFamily aws.StringValue `query:"CacheParameterGroupFamily" xml:"CacheParameterGroupFamily"`
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
Description aws.StringValue `query:"Description" xml:"Description"`
}
// CreateCacheParameterGroupResult is undocumented.
type CreateCacheParameterGroupResult struct {
CacheParameterGroup *CacheParameterGroup `query:"CacheParameterGroup" xml:"CreateCacheParameterGroupResult>CacheParameterGroup"`
}
// CreateCacheSecurityGroupMessage is undocumented.
type CreateCacheSecurityGroupMessage struct {
CacheSecurityGroupName aws.StringValue `query:"CacheSecurityGroupName" xml:"CacheSecurityGroupName"`
Description aws.StringValue `query:"Description" xml:"Description"`
}
// CreateCacheSecurityGroupResult is undocumented.
type CreateCacheSecurityGroupResult struct {
CacheSecurityGroup *CacheSecurityGroup `query:"CacheSecurityGroup" xml:"CreateCacheSecurityGroupResult>CacheSecurityGroup"`
}
// CreateCacheSubnetGroupMessage is undocumented.
type CreateCacheSubnetGroupMessage struct {
CacheSubnetGroupDescription aws.StringValue `query:"CacheSubnetGroupDescription" xml:"CacheSubnetGroupDescription"`
CacheSubnetGroupName aws.StringValue `query:"CacheSubnetGroupName" xml:"CacheSubnetGroupName"`
SubnetIDs []string `query:"SubnetIds.member" xml:"SubnetIds>SubnetIdentifier"`
}
// CreateCacheSubnetGroupResult is undocumented.
type CreateCacheSubnetGroupResult struct {
CacheSubnetGroup *CacheSubnetGroup `query:"CacheSubnetGroup" xml:"CreateCacheSubnetGroupResult>CacheSubnetGroup"`
}
// CreateReplicationGroupMessage is undocumented.
type CreateReplicationGroupMessage struct {
AutoMinorVersionUpgrade aws.BooleanValue `query:"AutoMinorVersionUpgrade" xml:"AutoMinorVersionUpgrade"`
AutomaticFailoverEnabled aws.BooleanValue `query:"AutomaticFailoverEnabled" xml:"AutomaticFailoverEnabled"`
CacheNodeType aws.StringValue `query:"CacheNodeType" xml:"CacheNodeType"`
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
CacheSecurityGroupNames []string `query:"CacheSecurityGroupNames.member" xml:"CacheSecurityGroupNames>CacheSecurityGroupName"`
CacheSubnetGroupName aws.StringValue `query:"CacheSubnetGroupName" xml:"CacheSubnetGroupName"`
Engine aws.StringValue `query:"Engine" xml:"Engine"`
EngineVersion aws.StringValue `query:"EngineVersion" xml:"EngineVersion"`
NotificationTopicARN aws.StringValue `query:"NotificationTopicArn" xml:"NotificationTopicArn"`
NumCacheClusters aws.IntegerValue `query:"NumCacheClusters" xml:"NumCacheClusters"`
Port aws.IntegerValue `query:"Port" xml:"Port"`
PreferredCacheClusterAZs []string `query:"PreferredCacheClusterAZs.member" xml:"PreferredCacheClusterAZs>AvailabilityZone"`
PreferredMaintenanceWindow aws.StringValue `query:"PreferredMaintenanceWindow" xml:"PreferredMaintenanceWindow"`
PrimaryClusterID aws.StringValue `query:"PrimaryClusterId" xml:"PrimaryClusterId"`
ReplicationGroupDescription aws.StringValue `query:"ReplicationGroupDescription" xml:"ReplicationGroupDescription"`
ReplicationGroupID aws.StringValue `query:"ReplicationGroupId" xml:"ReplicationGroupId"`
SecurityGroupIDs []string `query:"SecurityGroupIds.member" xml:"SecurityGroupIds>SecurityGroupId"`
SnapshotARNs []string `query:"SnapshotArns.member" xml:"SnapshotArns>SnapshotArn"`
SnapshotName aws.StringValue `query:"SnapshotName" xml:"SnapshotName"`
SnapshotRetentionLimit aws.IntegerValue `query:"SnapshotRetentionLimit" xml:"SnapshotRetentionLimit"`
SnapshotWindow aws.StringValue `query:"SnapshotWindow" xml:"SnapshotWindow"`
}
// CreateReplicationGroupResult is undocumented.
type CreateReplicationGroupResult struct {
ReplicationGroup *ReplicationGroup `query:"ReplicationGroup" xml:"CreateReplicationGroupResult>ReplicationGroup"`
}
// CreateSnapshotMessage is undocumented.
type CreateSnapshotMessage struct {
CacheClusterID aws.StringValue `query:"CacheClusterId" xml:"CacheClusterId"`
SnapshotName aws.StringValue `query:"SnapshotName" xml:"SnapshotName"`
}
// CreateSnapshotResult is undocumented.
type CreateSnapshotResult struct {
Snapshot *Snapshot `query:"Snapshot" xml:"CreateSnapshotResult>Snapshot"`
}
// DeleteCacheClusterMessage is undocumented.
type DeleteCacheClusterMessage struct {
CacheClusterID aws.StringValue `query:"CacheClusterId" xml:"CacheClusterId"`
FinalSnapshotIdentifier aws.StringValue `query:"FinalSnapshotIdentifier" xml:"FinalSnapshotIdentifier"`
}
// DeleteCacheClusterResult is undocumented.
type DeleteCacheClusterResult struct {
CacheCluster *CacheCluster `query:"CacheCluster" xml:"DeleteCacheClusterResult>CacheCluster"`
}
// DeleteCacheParameterGroupMessage is undocumented.
type DeleteCacheParameterGroupMessage struct {
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
}
// DeleteCacheSecurityGroupMessage is undocumented.
type DeleteCacheSecurityGroupMessage struct {
CacheSecurityGroupName aws.StringValue `query:"CacheSecurityGroupName" xml:"CacheSecurityGroupName"`
}
// DeleteCacheSubnetGroupMessage is undocumented.
type DeleteCacheSubnetGroupMessage struct {
CacheSubnetGroupName aws.StringValue `query:"CacheSubnetGroupName" xml:"CacheSubnetGroupName"`
}
// DeleteReplicationGroupMessage is undocumented.
type DeleteReplicationGroupMessage struct {
FinalSnapshotIdentifier aws.StringValue `query:"FinalSnapshotIdentifier" xml:"FinalSnapshotIdentifier"`
ReplicationGroupID aws.StringValue `query:"ReplicationGroupId" xml:"ReplicationGroupId"`
RetainPrimaryCluster aws.BooleanValue `query:"RetainPrimaryCluster" xml:"RetainPrimaryCluster"`
}
// DeleteReplicationGroupResult is undocumented.
type DeleteReplicationGroupResult struct {
ReplicationGroup *ReplicationGroup `query:"ReplicationGroup" xml:"DeleteReplicationGroupResult>ReplicationGroup"`
}
// DeleteSnapshotMessage is undocumented.
type DeleteSnapshotMessage struct {
SnapshotName aws.StringValue `query:"SnapshotName" xml:"SnapshotName"`
}
// DeleteSnapshotResult is undocumented.
type DeleteSnapshotResult struct {
Snapshot *Snapshot `query:"Snapshot" xml:"DeleteSnapshotResult>Snapshot"`
}
// DescribeCacheClustersMessage is undocumented.
type DescribeCacheClustersMessage struct {
CacheClusterID aws.StringValue `query:"CacheClusterId" xml:"CacheClusterId"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
ShowCacheNodeInfo aws.BooleanValue `query:"ShowCacheNodeInfo" xml:"ShowCacheNodeInfo"`
}
// DescribeCacheEngineVersionsMessage is undocumented.
type DescribeCacheEngineVersionsMessage struct {
CacheParameterGroupFamily aws.StringValue `query:"CacheParameterGroupFamily" xml:"CacheParameterGroupFamily"`
DefaultOnly aws.BooleanValue `query:"DefaultOnly" xml:"DefaultOnly"`
Engine aws.StringValue `query:"Engine" xml:"Engine"`
EngineVersion aws.StringValue `query:"EngineVersion" xml:"EngineVersion"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
}
// DescribeCacheParameterGroupsMessage is undocumented.
type DescribeCacheParameterGroupsMessage struct {
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
}
// DescribeCacheParametersMessage is undocumented.
type DescribeCacheParametersMessage struct {
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
Source aws.StringValue `query:"Source" xml:"Source"`
}
// DescribeCacheSecurityGroupsMessage is undocumented.
type DescribeCacheSecurityGroupsMessage struct {
CacheSecurityGroupName aws.StringValue `query:"CacheSecurityGroupName" xml:"CacheSecurityGroupName"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
}
// DescribeCacheSubnetGroupsMessage is undocumented.
type DescribeCacheSubnetGroupsMessage struct {
CacheSubnetGroupName aws.StringValue `query:"CacheSubnetGroupName" xml:"CacheSubnetGroupName"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
}
// DescribeEngineDefaultParametersMessage is undocumented.
type DescribeEngineDefaultParametersMessage struct {
CacheParameterGroupFamily aws.StringValue `query:"CacheParameterGroupFamily" xml:"CacheParameterGroupFamily"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
}
// DescribeEngineDefaultParametersResult is undocumented.
type DescribeEngineDefaultParametersResult struct {
EngineDefaults *EngineDefaults `query:"EngineDefaults" xml:"DescribeEngineDefaultParametersResult>EngineDefaults"`
}
// DescribeEventsMessage is undocumented.
type DescribeEventsMessage struct {
Duration aws.IntegerValue `query:"Duration" xml:"Duration"`
EndTime time.Time `query:"EndTime" xml:"EndTime"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
SourceIdentifier aws.StringValue `query:"SourceIdentifier" xml:"SourceIdentifier"`
SourceType aws.StringValue `query:"SourceType" xml:"SourceType"`
StartTime time.Time `query:"StartTime" xml:"StartTime"`
}
// DescribeReplicationGroupsMessage is undocumented.
type DescribeReplicationGroupsMessage struct {
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
ReplicationGroupID aws.StringValue `query:"ReplicationGroupId" xml:"ReplicationGroupId"`
}
// DescribeReservedCacheNodesMessage is undocumented.
type DescribeReservedCacheNodesMessage struct {
CacheNodeType aws.StringValue `query:"CacheNodeType" xml:"CacheNodeType"`
Duration aws.StringValue `query:"Duration" xml:"Duration"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
OfferingType aws.StringValue `query:"OfferingType" xml:"OfferingType"`
ProductDescription aws.StringValue `query:"ProductDescription" xml:"ProductDescription"`
ReservedCacheNodeID aws.StringValue `query:"ReservedCacheNodeId" xml:"ReservedCacheNodeId"`
ReservedCacheNodesOfferingID aws.StringValue `query:"ReservedCacheNodesOfferingId" xml:"ReservedCacheNodesOfferingId"`
}
// DescribeReservedCacheNodesOfferingsMessage is undocumented.
type DescribeReservedCacheNodesOfferingsMessage struct {
CacheNodeType aws.StringValue `query:"CacheNodeType" xml:"CacheNodeType"`
Duration aws.StringValue `query:"Duration" xml:"Duration"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
OfferingType aws.StringValue `query:"OfferingType" xml:"OfferingType"`
ProductDescription aws.StringValue `query:"ProductDescription" xml:"ProductDescription"`
ReservedCacheNodesOfferingID aws.StringValue `query:"ReservedCacheNodesOfferingId" xml:"ReservedCacheNodesOfferingId"`
}
// DescribeSnapshotsListMessage is undocumented.
type DescribeSnapshotsListMessage struct {
Marker aws.StringValue `query:"Marker" xml:"DescribeSnapshotsResult>Marker"`
Snapshots []Snapshot `query:"Snapshots.member" xml:"DescribeSnapshotsResult>Snapshots>Snapshot"`
}
// DescribeSnapshotsMessage is undocumented.
type DescribeSnapshotsMessage struct {
CacheClusterID aws.StringValue `query:"CacheClusterId" xml:"CacheClusterId"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
MaxRecords aws.IntegerValue `query:"MaxRecords" xml:"MaxRecords"`
SnapshotName aws.StringValue `query:"SnapshotName" xml:"SnapshotName"`
SnapshotSource aws.StringValue `query:"SnapshotSource" xml:"SnapshotSource"`
}
// EC2SecurityGroup is undocumented.
type EC2SecurityGroup struct {
EC2SecurityGroupName aws.StringValue `query:"EC2SecurityGroupName" xml:"EC2SecurityGroupName"`
EC2SecurityGroupOwnerID aws.StringValue `query:"EC2SecurityGroupOwnerId" xml:"EC2SecurityGroupOwnerId"`
Status aws.StringValue `query:"Status" xml:"Status"`
}
// Endpoint is undocumented.
type Endpoint struct {
Address aws.StringValue `query:"Address" xml:"Address"`
Port aws.IntegerValue `query:"Port" xml:"Port"`
}
// EngineDefaults is undocumented.
type EngineDefaults struct {
CacheNodeTypeSpecificParameters []CacheNodeTypeSpecificParameter `query:"CacheNodeTypeSpecificParameters.member" xml:"CacheNodeTypeSpecificParameters>CacheNodeTypeSpecificParameter"`
CacheParameterGroupFamily aws.StringValue `query:"CacheParameterGroupFamily" xml:"CacheParameterGroupFamily"`
Marker aws.StringValue `query:"Marker" xml:"Marker"`
Parameters []Parameter `query:"Parameters.member" xml:"Parameters>Parameter"`
}
// Event is undocumented.
type Event struct {
Date time.Time `query:"Date" xml:"Date"`
Message aws.StringValue `query:"Message" xml:"Message"`
SourceIdentifier aws.StringValue `query:"SourceIdentifier" xml:"SourceIdentifier"`
SourceType aws.StringValue `query:"SourceType" xml:"SourceType"`
}
// EventsMessage is undocumented.
type EventsMessage struct {
Events []Event `query:"Events.member" xml:"DescribeEventsResult>Events>Event"`
Marker aws.StringValue `query:"Marker" xml:"DescribeEventsResult>Marker"`
}
// ModifyCacheClusterMessage is undocumented.
type ModifyCacheClusterMessage struct {
AZMode aws.StringValue `query:"AZMode" xml:"AZMode"`
ApplyImmediately aws.BooleanValue `query:"ApplyImmediately" xml:"ApplyImmediately"`
AutoMinorVersionUpgrade aws.BooleanValue `query:"AutoMinorVersionUpgrade" xml:"AutoMinorVersionUpgrade"`
CacheClusterID aws.StringValue `query:"CacheClusterId" xml:"CacheClusterId"`
CacheNodeIDsToRemove []string `query:"CacheNodeIdsToRemove.member" xml:"CacheNodeIdsToRemove>CacheNodeId"`
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
CacheSecurityGroupNames []string `query:"CacheSecurityGroupNames.member" xml:"CacheSecurityGroupNames>CacheSecurityGroupName"`
EngineVersion aws.StringValue `query:"EngineVersion" xml:"EngineVersion"`
NewAvailabilityZones []string `query:"NewAvailabilityZones.member" xml:"NewAvailabilityZones>PreferredAvailabilityZone"`
NotificationTopicARN aws.StringValue `query:"NotificationTopicArn" xml:"NotificationTopicArn"`
NotificationTopicStatus aws.StringValue `query:"NotificationTopicStatus" xml:"NotificationTopicStatus"`
NumCacheNodes aws.IntegerValue `query:"NumCacheNodes" xml:"NumCacheNodes"`
PreferredMaintenanceWindow aws.StringValue `query:"PreferredMaintenanceWindow" xml:"PreferredMaintenanceWindow"`
SecurityGroupIDs []string `query:"SecurityGroupIds.member" xml:"SecurityGroupIds>SecurityGroupId"`
SnapshotRetentionLimit aws.IntegerValue `query:"SnapshotRetentionLimit" xml:"SnapshotRetentionLimit"`
SnapshotWindow aws.StringValue `query:"SnapshotWindow" xml:"SnapshotWindow"`
}
// ModifyCacheClusterResult is undocumented.
type ModifyCacheClusterResult struct {
CacheCluster *CacheCluster `query:"CacheCluster" xml:"ModifyCacheClusterResult>CacheCluster"`
}
// ModifyCacheParameterGroupMessage is undocumented.
type ModifyCacheParameterGroupMessage struct {
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
ParameterNameValues []ParameterNameValue `query:"ParameterNameValues.member" xml:"ParameterNameValues>ParameterNameValue"`
}
// ModifyCacheSubnetGroupMessage is undocumented.
type ModifyCacheSubnetGroupMessage struct {
CacheSubnetGroupDescription aws.StringValue `query:"CacheSubnetGroupDescription" xml:"CacheSubnetGroupDescription"`
CacheSubnetGroupName aws.StringValue `query:"CacheSubnetGroupName" xml:"CacheSubnetGroupName"`
SubnetIDs []string `query:"SubnetIds.member" xml:"SubnetIds>SubnetIdentifier"`
}
// ModifyCacheSubnetGroupResult is undocumented.
type ModifyCacheSubnetGroupResult struct {
CacheSubnetGroup *CacheSubnetGroup `query:"CacheSubnetGroup" xml:"ModifyCacheSubnetGroupResult>CacheSubnetGroup"`
}
// ModifyReplicationGroupMessage is undocumented.
type ModifyReplicationGroupMessage struct {
ApplyImmediately aws.BooleanValue `query:"ApplyImmediately" xml:"ApplyImmediately"`
AutoMinorVersionUpgrade aws.BooleanValue `query:"AutoMinorVersionUpgrade" xml:"AutoMinorVersionUpgrade"`
AutomaticFailoverEnabled aws.BooleanValue `query:"AutomaticFailoverEnabled" xml:"AutomaticFailoverEnabled"`
CacheParameterGroupName aws.StringValue `query:"CacheParameterGroupName" xml:"CacheParameterGroupName"`
CacheSecurityGroupNames []string `query:"CacheSecurityGroupNames.member" xml:"CacheSecurityGroupNames>CacheSecurityGroupName"`
EngineVersion aws.StringValue `query:"EngineVersion" xml:"EngineVersion"`
NotificationTopicARN aws.StringValue `query:"NotificationTopicArn" xml:"NotificationTopicArn"`
NotificationTopicStatus aws.StringValue `query:"NotificationTopicStatus" xml:"NotificationTopicStatus"`
PreferredMaintenanceWindow aws.StringValue `query:"PreferredMaintenanceWindow" xml:"PreferredMaintenanceWindow"`
PrimaryClusterID aws.StringValue `query:"PrimaryClusterId" xml:"PrimaryClusterId"`
ReplicationGroupDescription aws.StringValue `query:"ReplicationGroupDescription" xml:"ReplicationGroupDescription"`
ReplicationGroupID aws.StringValue `query:"ReplicationGroupId" xml:"ReplicationGroupId"`
SecurityGroupIDs []string `query:"SecurityGroupIds.member" xml:"SecurityGroupIds>SecurityGroupId"`
SnapshotRetentionLimit aws.IntegerValue `query:"SnapshotRetentionLimit" xml:"SnapshotRetentionLimit"`
SnapshotWindow aws.StringValue `query:"SnapshotWindow" xml:"SnapshotWindow"`
SnapshottingClusterID aws.StringValue `query:"SnapshottingClusterId" xml:"SnapshottingClusterId"`
}
// ModifyReplicationGroupResult is undocumented.
type ModifyReplicationGroupResult struct {
ReplicationGroup *ReplicationGroup `query:"ReplicationGroup" xml:"ModifyReplicationGroupResult>ReplicationGroup"`
}
// NodeGroup is undocumented.
type NodeGroup struct {
NodeGroupID aws.StringValue `query:"NodeGroupId" xml:"NodeGroupId"`
NodeGroupMembers []NodeGroupMember `query:"NodeGroupMembers.member" xml:"NodeGroupMembers>NodeGroupMember"`
PrimaryEndpoint *Endpoint `query:"PrimaryEndpoint" xml:"PrimaryEndpoint"`
Status aws.StringValue `query:"Status" xml:"Status"`
}
// NodeGroupMember is undocumented.
type NodeGroupMember struct {