forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
8421 lines (6861 loc) · 287 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
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package rds provides a client for Amazon Relational Database Service.
package rds
import (
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awsutil"
)
const opAddSourceIdentifierToSubscription = "AddSourceIdentifierToSubscription"
// AddSourceIdentifierToSubscriptionRequest generates a request for the AddSourceIdentifierToSubscription operation.
func (c *RDS) AddSourceIdentifierToSubscriptionRequest(input *AddSourceIdentifierToSubscriptionInput) (req *aws.Request, output *AddSourceIdentifierToSubscriptionOutput) {
op := &aws.Operation{
Name: opAddSourceIdentifierToSubscription,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddSourceIdentifierToSubscriptionInput{}
}
req = c.newRequest(op, input, output)
output = &AddSourceIdentifierToSubscriptionOutput{}
req.Data = output
return
}
// Adds a source identifier to an existing RDS event notification subscription.
func (c *RDS) AddSourceIdentifierToSubscription(input *AddSourceIdentifierToSubscriptionInput) (*AddSourceIdentifierToSubscriptionOutput, error) {
req, out := c.AddSourceIdentifierToSubscriptionRequest(input)
err := req.Send()
return out, err
}
const opAddTagsToResource = "AddTagsToResource"
// AddTagsToResourceRequest generates a request for the AddTagsToResource operation.
func (c *RDS) AddTagsToResourceRequest(input *AddTagsToResourceInput) (req *aws.Request, output *AddTagsToResourceOutput) {
op := &aws.Operation{
Name: opAddTagsToResource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddTagsToResourceInput{}
}
req = c.newRequest(op, input, output)
output = &AddTagsToResourceOutput{}
req.Data = output
return
}
// Adds metadata tags to an Amazon RDS resource. These tags can also be used
// with cost allocation reporting to track cost associated with Amazon RDS resources,
// or used in Condition statement in IAM policy for Amazon RDS.
//
// For an overview on tagging Amazon RDS resources, see Tagging Amazon RDS
// Resources (http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Overview.Tagging.html).
func (c *RDS) AddTagsToResource(input *AddTagsToResourceInput) (*AddTagsToResourceOutput, error) {
req, out := c.AddTagsToResourceRequest(input)
err := req.Send()
return out, err
}
const opApplyPendingMaintenanceAction = "ApplyPendingMaintenanceAction"
// ApplyPendingMaintenanceActionRequest generates a request for the ApplyPendingMaintenanceAction operation.
func (c *RDS) ApplyPendingMaintenanceActionRequest(input *ApplyPendingMaintenanceActionInput) (req *aws.Request, output *ApplyPendingMaintenanceActionOutput) {
op := &aws.Operation{
Name: opApplyPendingMaintenanceAction,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ApplyPendingMaintenanceActionInput{}
}
req = c.newRequest(op, input, output)
output = &ApplyPendingMaintenanceActionOutput{}
req.Data = output
return
}
// Applies a pending maintenance action to a resource (for example, a DB instance).
func (c *RDS) ApplyPendingMaintenanceAction(input *ApplyPendingMaintenanceActionInput) (*ApplyPendingMaintenanceActionOutput, error) {
req, out := c.ApplyPendingMaintenanceActionRequest(input)
err := req.Send()
return out, err
}
const opAuthorizeDBSecurityGroupIngress = "AuthorizeDBSecurityGroupIngress"
// AuthorizeDBSecurityGroupIngressRequest generates a request for the AuthorizeDBSecurityGroupIngress operation.
func (c *RDS) AuthorizeDBSecurityGroupIngressRequest(input *AuthorizeDBSecurityGroupIngressInput) (req *aws.Request, output *AuthorizeDBSecurityGroupIngressOutput) {
op := &aws.Operation{
Name: opAuthorizeDBSecurityGroupIngress,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AuthorizeDBSecurityGroupIngressInput{}
}
req = c.newRequest(op, input, output)
output = &AuthorizeDBSecurityGroupIngressOutput{}
req.Data = output
return
}
// Enables ingress to a DBSecurityGroup using one of two forms of authorization.
// First, EC2 or VPC security groups can be added to the DBSecurityGroup if
// the application using the database is running on EC2 or VPC instances. Second,
// IP ranges are available if the application accessing your database is running
// on the Internet. Required parameters for this API are one of CIDR range,
// EC2SecurityGroupId for VPC, or (EC2SecurityGroupOwnerId and either EC2SecurityGroupName
// or EC2SecurityGroupId for non-VPC).
//
// You cannot authorize ingress from an EC2 security group in one Region to
// an Amazon RDS DB instance in another. You cannot authorize ingress from a
// VPC security group in one VPC to an Amazon RDS DB instance in another. For
// an overview of CIDR ranges, go to the Wikipedia Tutorial (http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing).
func (c *RDS) AuthorizeDBSecurityGroupIngress(input *AuthorizeDBSecurityGroupIngressInput) (*AuthorizeDBSecurityGroupIngressOutput, error) {
req, out := c.AuthorizeDBSecurityGroupIngressRequest(input)
err := req.Send()
return out, err
}
const opCopyDBParameterGroup = "CopyDBParameterGroup"
// CopyDBParameterGroupRequest generates a request for the CopyDBParameterGroup operation.
func (c *RDS) CopyDBParameterGroupRequest(input *CopyDBParameterGroupInput) (req *aws.Request, output *CopyDBParameterGroupOutput) {
op := &aws.Operation{
Name: opCopyDBParameterGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CopyDBParameterGroupInput{}
}
req = c.newRequest(op, input, output)
output = &CopyDBParameterGroupOutput{}
req.Data = output
return
}
// Copies the specified DB parameter group.
func (c *RDS) CopyDBParameterGroup(input *CopyDBParameterGroupInput) (*CopyDBParameterGroupOutput, error) {
req, out := c.CopyDBParameterGroupRequest(input)
err := req.Send()
return out, err
}
const opCopyDBSnapshot = "CopyDBSnapshot"
// CopyDBSnapshotRequest generates a request for the CopyDBSnapshot operation.
func (c *RDS) CopyDBSnapshotRequest(input *CopyDBSnapshotInput) (req *aws.Request, output *CopyDBSnapshotOutput) {
op := &aws.Operation{
Name: opCopyDBSnapshot,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CopyDBSnapshotInput{}
}
req = c.newRequest(op, input, output)
output = &CopyDBSnapshotOutput{}
req.Data = output
return
}
// Copies the specified DBSnapshot. The source DBSnapshot must be in the "available"
// state.
func (c *RDS) CopyDBSnapshot(input *CopyDBSnapshotInput) (*CopyDBSnapshotOutput, error) {
req, out := c.CopyDBSnapshotRequest(input)
err := req.Send()
return out, err
}
const opCopyOptionGroup = "CopyOptionGroup"
// CopyOptionGroupRequest generates a request for the CopyOptionGroup operation.
func (c *RDS) CopyOptionGroupRequest(input *CopyOptionGroupInput) (req *aws.Request, output *CopyOptionGroupOutput) {
op := &aws.Operation{
Name: opCopyOptionGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CopyOptionGroupInput{}
}
req = c.newRequest(op, input, output)
output = &CopyOptionGroupOutput{}
req.Data = output
return
}
// Copies the specified option group.
func (c *RDS) CopyOptionGroup(input *CopyOptionGroupInput) (*CopyOptionGroupOutput, error) {
req, out := c.CopyOptionGroupRequest(input)
err := req.Send()
return out, err
}
const opCreateDBInstance = "CreateDBInstance"
// CreateDBInstanceRequest generates a request for the CreateDBInstance operation.
func (c *RDS) CreateDBInstanceRequest(input *CreateDBInstanceInput) (req *aws.Request, output *CreateDBInstanceOutput) {
op := &aws.Operation{
Name: opCreateDBInstance,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateDBInstanceInput{}
}
req = c.newRequest(op, input, output)
output = &CreateDBInstanceOutput{}
req.Data = output
return
}
// Creates a new DB instance.
func (c *RDS) CreateDBInstance(input *CreateDBInstanceInput) (*CreateDBInstanceOutput, error) {
req, out := c.CreateDBInstanceRequest(input)
err := req.Send()
return out, err
}
const opCreateDBInstanceReadReplica = "CreateDBInstanceReadReplica"
// CreateDBInstanceReadReplicaRequest generates a request for the CreateDBInstanceReadReplica operation.
func (c *RDS) CreateDBInstanceReadReplicaRequest(input *CreateDBInstanceReadReplicaInput) (req *aws.Request, output *CreateDBInstanceReadReplicaOutput) {
op := &aws.Operation{
Name: opCreateDBInstanceReadReplica,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateDBInstanceReadReplicaInput{}
}
req = c.newRequest(op, input, output)
output = &CreateDBInstanceReadReplicaOutput{}
req.Data = output
return
}
// Creates a DB instance that acts as a Read Replica of a source DB instance.
//
// All Read Replica DB instances are created as Single-AZ deployments with
// backups disabled. All other DB instance attributes (including DB security
// groups and DB parameter groups) are inherited from the source DB instance,
// except as specified below.
//
// The source DB instance must have backup retention enabled.
func (c *RDS) CreateDBInstanceReadReplica(input *CreateDBInstanceReadReplicaInput) (*CreateDBInstanceReadReplicaOutput, error) {
req, out := c.CreateDBInstanceReadReplicaRequest(input)
err := req.Send()
return out, err
}
const opCreateDBParameterGroup = "CreateDBParameterGroup"
// CreateDBParameterGroupRequest generates a request for the CreateDBParameterGroup operation.
func (c *RDS) CreateDBParameterGroupRequest(input *CreateDBParameterGroupInput) (req *aws.Request, output *CreateDBParameterGroupOutput) {
op := &aws.Operation{
Name: opCreateDBParameterGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateDBParameterGroupInput{}
}
req = c.newRequest(op, input, output)
output = &CreateDBParameterGroupOutput{}
req.Data = output
return
}
// Creates a new DB parameter group.
//
// A DB parameter group is initially created with the default parameters for
// the database engine used by the DB instance. To provide custom values for
// any of the parameters, you must modify the group after creating it using
// ModifyDBParameterGroup. Once you've created a DB parameter group, you need
// to associate it with your DB instance using ModifyDBInstance. When you associate
// a new DB parameter group with a running DB instance, you need to reboot the
// DB instance without failover for the new DB parameter group and associated
// settings to take effect.
//
// After you create a DB parameter group, you should wait at least 5 minutes
// before creating your first DB instance that uses that DB parameter group
// as the default parameter group. This allows Amazon RDS to fully complete
// the create action before the parameter group is used as the default for a
// new DB instance. This is especially important for parameters that are critical
// when creating the default database for a DB instance, such as the character
// set for the default database defined by the character_set_database parameter.
// You can use the Parameter Groups option of the Amazon RDS console (https://console.aws.amazon.com/rds/)
// or the DescribeDBParameters command to verify that your DB parameter group
// has been created or modified.
func (c *RDS) CreateDBParameterGroup(input *CreateDBParameterGroupInput) (*CreateDBParameterGroupOutput, error) {
req, out := c.CreateDBParameterGroupRequest(input)
err := req.Send()
return out, err
}
const opCreateDBSecurityGroup = "CreateDBSecurityGroup"
// CreateDBSecurityGroupRequest generates a request for the CreateDBSecurityGroup operation.
func (c *RDS) CreateDBSecurityGroupRequest(input *CreateDBSecurityGroupInput) (req *aws.Request, output *CreateDBSecurityGroupOutput) {
op := &aws.Operation{
Name: opCreateDBSecurityGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateDBSecurityGroupInput{}
}
req = c.newRequest(op, input, output)
output = &CreateDBSecurityGroupOutput{}
req.Data = output
return
}
// Creates a new DB security group. DB security groups control access to a DB
// instance.
func (c *RDS) CreateDBSecurityGroup(input *CreateDBSecurityGroupInput) (*CreateDBSecurityGroupOutput, error) {
req, out := c.CreateDBSecurityGroupRequest(input)
err := req.Send()
return out, err
}
const opCreateDBSnapshot = "CreateDBSnapshot"
// CreateDBSnapshotRequest generates a request for the CreateDBSnapshot operation.
func (c *RDS) CreateDBSnapshotRequest(input *CreateDBSnapshotInput) (req *aws.Request, output *CreateDBSnapshotOutput) {
op := &aws.Operation{
Name: opCreateDBSnapshot,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateDBSnapshotInput{}
}
req = c.newRequest(op, input, output)
output = &CreateDBSnapshotOutput{}
req.Data = output
return
}
// Creates a DBSnapshot. The source DBInstance must be in "available" state.
func (c *RDS) CreateDBSnapshot(input *CreateDBSnapshotInput) (*CreateDBSnapshotOutput, error) {
req, out := c.CreateDBSnapshotRequest(input)
err := req.Send()
return out, err
}
const opCreateDBSubnetGroup = "CreateDBSubnetGroup"
// CreateDBSubnetGroupRequest generates a request for the CreateDBSubnetGroup operation.
func (c *RDS) CreateDBSubnetGroupRequest(input *CreateDBSubnetGroupInput) (req *aws.Request, output *CreateDBSubnetGroupOutput) {
op := &aws.Operation{
Name: opCreateDBSubnetGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateDBSubnetGroupInput{}
}
req = c.newRequest(op, input, output)
output = &CreateDBSubnetGroupOutput{}
req.Data = output
return
}
// Creates a new DB subnet group. DB subnet groups must contain at least one
// subnet in at least two AZs in the region.
func (c *RDS) CreateDBSubnetGroup(input *CreateDBSubnetGroupInput) (*CreateDBSubnetGroupOutput, error) {
req, out := c.CreateDBSubnetGroupRequest(input)
err := req.Send()
return out, err
}
const opCreateEventSubscription = "CreateEventSubscription"
// CreateEventSubscriptionRequest generates a request for the CreateEventSubscription operation.
func (c *RDS) CreateEventSubscriptionRequest(input *CreateEventSubscriptionInput) (req *aws.Request, output *CreateEventSubscriptionOutput) {
op := &aws.Operation{
Name: opCreateEventSubscription,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateEventSubscriptionInput{}
}
req = c.newRequest(op, input, output)
output = &CreateEventSubscriptionOutput{}
req.Data = output
return
}
// Creates an RDS event notification subscription. This action requires a topic
// ARN (Amazon Resource Name) created by either the RDS console, the SNS console,
// or the SNS API. To obtain an ARN with SNS, you must create a topic in Amazon
// SNS and subscribe to the topic. The ARN is displayed in the SNS console.
//
// You can specify the type of source (SourceType) you want to be notified
// of, provide a list of RDS sources (SourceIds) that triggers the events, and
// provide a list of event categories (EventCategories) for events you want
// to be notified of. For example, you can specify SourceType = db-instance,
// SourceIds = mydbinstance1, mydbinstance2 and EventCategories = Availability,
// Backup.
//
// If you specify both the SourceType and SourceIds, such as SourceType = db-instance
// and SourceIdentifier = myDBInstance1, you will be notified of all the db-instance
// events for the specified source. If you specify a SourceType but do not specify
// a SourceIdentifier, you will receive notice of the events for that source
// type for all your RDS sources. If you do not specify either the SourceType
// nor the SourceIdentifier, you will be notified of events generated from all
// RDS sources belonging to your customer account.
func (c *RDS) CreateEventSubscription(input *CreateEventSubscriptionInput) (*CreateEventSubscriptionOutput, error) {
req, out := c.CreateEventSubscriptionRequest(input)
err := req.Send()
return out, err
}
const opCreateOptionGroup = "CreateOptionGroup"
// CreateOptionGroupRequest generates a request for the CreateOptionGroup operation.
func (c *RDS) CreateOptionGroupRequest(input *CreateOptionGroupInput) (req *aws.Request, output *CreateOptionGroupOutput) {
op := &aws.Operation{
Name: opCreateOptionGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateOptionGroupInput{}
}
req = c.newRequest(op, input, output)
output = &CreateOptionGroupOutput{}
req.Data = output
return
}
// Creates a new option group. You can create up to 20 option groups.
func (c *RDS) CreateOptionGroup(input *CreateOptionGroupInput) (*CreateOptionGroupOutput, error) {
req, out := c.CreateOptionGroupRequest(input)
err := req.Send()
return out, err
}
const opDeleteDBInstance = "DeleteDBInstance"
// DeleteDBInstanceRequest generates a request for the DeleteDBInstance operation.
func (c *RDS) DeleteDBInstanceRequest(input *DeleteDBInstanceInput) (req *aws.Request, output *DeleteDBInstanceOutput) {
op := &aws.Operation{
Name: opDeleteDBInstance,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteDBInstanceInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteDBInstanceOutput{}
req.Data = output
return
}
// The DeleteDBInstance action deletes a previously provisioned DB instance.
// A successful response from the web service indicates the request was received
// correctly. When you delete a DB instance, all automated backups for that
// instance are deleted and cannot be recovered. Manual DB snapshots of the
// DB instance to be deleted are not deleted.
//
// If a final DB snapshot is requested the status of the RDS instance will
// be "deleting" until the DB snapshot is created. The API action DescribeDBInstance
// is used to monitor the status of this operation. The action cannot be canceled
// or reverted once submitted.
func (c *RDS) DeleteDBInstance(input *DeleteDBInstanceInput) (*DeleteDBInstanceOutput, error) {
req, out := c.DeleteDBInstanceRequest(input)
err := req.Send()
return out, err
}
const opDeleteDBParameterGroup = "DeleteDBParameterGroup"
// DeleteDBParameterGroupRequest generates a request for the DeleteDBParameterGroup operation.
func (c *RDS) DeleteDBParameterGroupRequest(input *DeleteDBParameterGroupInput) (req *aws.Request, output *DeleteDBParameterGroupOutput) {
op := &aws.Operation{
Name: opDeleteDBParameterGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteDBParameterGroupInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteDBParameterGroupOutput{}
req.Data = output
return
}
// Deletes a specified DBParameterGroup. The DBParameterGroup to be deleted
// cannot be associated with any DB instances.
func (c *RDS) DeleteDBParameterGroup(input *DeleteDBParameterGroupInput) (*DeleteDBParameterGroupOutput, error) {
req, out := c.DeleteDBParameterGroupRequest(input)
err := req.Send()
return out, err
}
const opDeleteDBSecurityGroup = "DeleteDBSecurityGroup"
// DeleteDBSecurityGroupRequest generates a request for the DeleteDBSecurityGroup operation.
func (c *RDS) DeleteDBSecurityGroupRequest(input *DeleteDBSecurityGroupInput) (req *aws.Request, output *DeleteDBSecurityGroupOutput) {
op := &aws.Operation{
Name: opDeleteDBSecurityGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteDBSecurityGroupInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteDBSecurityGroupOutput{}
req.Data = output
return
}
// Deletes a DB security group.
//
// The specified DB security group must not be associated with any DB instances.
func (c *RDS) DeleteDBSecurityGroup(input *DeleteDBSecurityGroupInput) (*DeleteDBSecurityGroupOutput, error) {
req, out := c.DeleteDBSecurityGroupRequest(input)
err := req.Send()
return out, err
}
const opDeleteDBSnapshot = "DeleteDBSnapshot"
// DeleteDBSnapshotRequest generates a request for the DeleteDBSnapshot operation.
func (c *RDS) DeleteDBSnapshotRequest(input *DeleteDBSnapshotInput) (req *aws.Request, output *DeleteDBSnapshotOutput) {
op := &aws.Operation{
Name: opDeleteDBSnapshot,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteDBSnapshotInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteDBSnapshotOutput{}
req.Data = output
return
}
// Deletes a DBSnapshot. If the snapshot is being copied, the copy operation
// is terminated.
//
// The DBSnapshot must be in the available state to be deleted.
func (c *RDS) DeleteDBSnapshot(input *DeleteDBSnapshotInput) (*DeleteDBSnapshotOutput, error) {
req, out := c.DeleteDBSnapshotRequest(input)
err := req.Send()
return out, err
}
const opDeleteDBSubnetGroup = "DeleteDBSubnetGroup"
// DeleteDBSubnetGroupRequest generates a request for the DeleteDBSubnetGroup operation.
func (c *RDS) DeleteDBSubnetGroupRequest(input *DeleteDBSubnetGroupInput) (req *aws.Request, output *DeleteDBSubnetGroupOutput) {
op := &aws.Operation{
Name: opDeleteDBSubnetGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteDBSubnetGroupInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteDBSubnetGroupOutput{}
req.Data = output
return
}
// Deletes a DB subnet group.
//
// The specified database subnet group must not be associated with any DB instances.
func (c *RDS) DeleteDBSubnetGroup(input *DeleteDBSubnetGroupInput) (*DeleteDBSubnetGroupOutput, error) {
req, out := c.DeleteDBSubnetGroupRequest(input)
err := req.Send()
return out, err
}
const opDeleteEventSubscription = "DeleteEventSubscription"
// DeleteEventSubscriptionRequest generates a request for the DeleteEventSubscription operation.
func (c *RDS) DeleteEventSubscriptionRequest(input *DeleteEventSubscriptionInput) (req *aws.Request, output *DeleteEventSubscriptionOutput) {
op := &aws.Operation{
Name: opDeleteEventSubscription,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteEventSubscriptionInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteEventSubscriptionOutput{}
req.Data = output
return
}
// Deletes an RDS event notification subscription.
func (c *RDS) DeleteEventSubscription(input *DeleteEventSubscriptionInput) (*DeleteEventSubscriptionOutput, error) {
req, out := c.DeleteEventSubscriptionRequest(input)
err := req.Send()
return out, err
}
const opDeleteOptionGroup = "DeleteOptionGroup"
// DeleteOptionGroupRequest generates a request for the DeleteOptionGroup operation.
func (c *RDS) DeleteOptionGroupRequest(input *DeleteOptionGroupInput) (req *aws.Request, output *DeleteOptionGroupOutput) {
op := &aws.Operation{
Name: opDeleteOptionGroup,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteOptionGroupInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteOptionGroupOutput{}
req.Data = output
return
}
// Deletes an existing option group.
func (c *RDS) DeleteOptionGroup(input *DeleteOptionGroupInput) (*DeleteOptionGroupOutput, error) {
req, out := c.DeleteOptionGroupRequest(input)
err := req.Send()
return out, err
}
const opDescribeAccountAttributes = "DescribeAccountAttributes"
// DescribeAccountAttributesRequest generates a request for the DescribeAccountAttributes operation.
func (c *RDS) DescribeAccountAttributesRequest(input *DescribeAccountAttributesInput) (req *aws.Request, output *DescribeAccountAttributesOutput) {
op := &aws.Operation{
Name: opDescribeAccountAttributes,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAccountAttributesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeAccountAttributesOutput{}
req.Data = output
return
}
// Lists all of the attributes for a customer account. The attributes include
// Amazon RDS quotas for the account, such as the number of DB instances allowed.
// The description for a quota includes the quota name, current usage toward
// that quota, and the quota's maximum value.
//
// This command does not take any parameters.
func (c *RDS) DescribeAccountAttributes(input *DescribeAccountAttributesInput) (*DescribeAccountAttributesOutput, error) {
req, out := c.DescribeAccountAttributesRequest(input)
err := req.Send()
return out, err
}
const opDescribeCertificates = "DescribeCertificates"
// DescribeCertificatesRequest generates a request for the DescribeCertificates operation.
func (c *RDS) DescribeCertificatesRequest(input *DescribeCertificatesInput) (req *aws.Request, output *DescribeCertificatesOutput) {
op := &aws.Operation{
Name: opDescribeCertificates,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeCertificatesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeCertificatesOutput{}
req.Data = output
return
}
// Lists the set of CA certificates provided by Amazon RDS for this AWS account.
func (c *RDS) DescribeCertificates(input *DescribeCertificatesInput) (*DescribeCertificatesOutput, error) {
req, out := c.DescribeCertificatesRequest(input)
err := req.Send()
return out, err
}
const opDescribeDBEngineVersions = "DescribeDBEngineVersions"
// DescribeDBEngineVersionsRequest generates a request for the DescribeDBEngineVersions operation.
func (c *RDS) DescribeDBEngineVersionsRequest(input *DescribeDBEngineVersionsInput) (req *aws.Request, output *DescribeDBEngineVersionsOutput) {
op := &aws.Operation{
Name: opDescribeDBEngineVersions,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeDBEngineVersionsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeDBEngineVersionsOutput{}
req.Data = output
return
}
// Returns a list of the available DB engines.
func (c *RDS) DescribeDBEngineVersions(input *DescribeDBEngineVersionsInput) (*DescribeDBEngineVersionsOutput, error) {
req, out := c.DescribeDBEngineVersionsRequest(input)
err := req.Send()
return out, err
}
func (c *RDS) DescribeDBEngineVersionsPages(input *DescribeDBEngineVersionsInput, fn func(p *DescribeDBEngineVersionsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeDBEngineVersionsRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeDBEngineVersionsOutput), lastPage)
})
}
const opDescribeDBInstances = "DescribeDBInstances"
// DescribeDBInstancesRequest generates a request for the DescribeDBInstances operation.
func (c *RDS) DescribeDBInstancesRequest(input *DescribeDBInstancesInput) (req *aws.Request, output *DescribeDBInstancesOutput) {
op := &aws.Operation{
Name: opDescribeDBInstances,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeDBInstancesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeDBInstancesOutput{}
req.Data = output
return
}
// Returns information about provisioned RDS instances. This API supports pagination.
func (c *RDS) DescribeDBInstances(input *DescribeDBInstancesInput) (*DescribeDBInstancesOutput, error) {
req, out := c.DescribeDBInstancesRequest(input)
err := req.Send()
return out, err
}
func (c *RDS) DescribeDBInstancesPages(input *DescribeDBInstancesInput, fn func(p *DescribeDBInstancesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeDBInstancesRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeDBInstancesOutput), lastPage)
})
}
const opDescribeDBLogFiles = "DescribeDBLogFiles"
// DescribeDBLogFilesRequest generates a request for the DescribeDBLogFiles operation.
func (c *RDS) DescribeDBLogFilesRequest(input *DescribeDBLogFilesInput) (req *aws.Request, output *DescribeDBLogFilesOutput) {
op := &aws.Operation{
Name: opDescribeDBLogFiles,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeDBLogFilesInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeDBLogFilesOutput{}
req.Data = output
return
}
// Returns a list of DB log files for the DB instance.
func (c *RDS) DescribeDBLogFiles(input *DescribeDBLogFilesInput) (*DescribeDBLogFilesOutput, error) {
req, out := c.DescribeDBLogFilesRequest(input)
err := req.Send()
return out, err
}
func (c *RDS) DescribeDBLogFilesPages(input *DescribeDBLogFilesInput, fn func(p *DescribeDBLogFilesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeDBLogFilesRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeDBLogFilesOutput), lastPage)
})
}
const opDescribeDBParameterGroups = "DescribeDBParameterGroups"
// DescribeDBParameterGroupsRequest generates a request for the DescribeDBParameterGroups operation.
func (c *RDS) DescribeDBParameterGroupsRequest(input *DescribeDBParameterGroupsInput) (req *aws.Request, output *DescribeDBParameterGroupsOutput) {
op := &aws.Operation{
Name: opDescribeDBParameterGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeDBParameterGroupsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeDBParameterGroupsOutput{}
req.Data = output
return
}
// Returns a list of DBParameterGroup descriptions. If a DBParameterGroupName
// is specified, the list will contain only the description of the specified
// DB parameter group.
func (c *RDS) DescribeDBParameterGroups(input *DescribeDBParameterGroupsInput) (*DescribeDBParameterGroupsOutput, error) {
req, out := c.DescribeDBParameterGroupsRequest(input)
err := req.Send()
return out, err
}
func (c *RDS) DescribeDBParameterGroupsPages(input *DescribeDBParameterGroupsInput, fn func(p *DescribeDBParameterGroupsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeDBParameterGroupsRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeDBParameterGroupsOutput), lastPage)
})
}
const opDescribeDBParameters = "DescribeDBParameters"
// DescribeDBParametersRequest generates a request for the DescribeDBParameters operation.
func (c *RDS) DescribeDBParametersRequest(input *DescribeDBParametersInput) (req *aws.Request, output *DescribeDBParametersOutput) {
op := &aws.Operation{
Name: opDescribeDBParameters,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeDBParametersInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeDBParametersOutput{}
req.Data = output
return
}
// Returns the detailed parameter list for a particular DB parameter group.
func (c *RDS) DescribeDBParameters(input *DescribeDBParametersInput) (*DescribeDBParametersOutput, error) {
req, out := c.DescribeDBParametersRequest(input)
err := req.Send()
return out, err
}
func (c *RDS) DescribeDBParametersPages(input *DescribeDBParametersInput, fn func(p *DescribeDBParametersOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeDBParametersRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeDBParametersOutput), lastPage)
})
}
const opDescribeDBSecurityGroups = "DescribeDBSecurityGroups"
// DescribeDBSecurityGroupsRequest generates a request for the DescribeDBSecurityGroups operation.
func (c *RDS) DescribeDBSecurityGroupsRequest(input *DescribeDBSecurityGroupsInput) (req *aws.Request, output *DescribeDBSecurityGroupsOutput) {
op := &aws.Operation{
Name: opDescribeDBSecurityGroups,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"Marker"},
OutputTokens: []string{"Marker"},
LimitToken: "MaxRecords",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeDBSecurityGroupsInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeDBSecurityGroupsOutput{}
req.Data = output
return
}
// Returns a list of DBSecurityGroup descriptions. If a DBSecurityGroupName
// is specified, the list will contain only the descriptions of the specified
// DB security group.
func (c *RDS) DescribeDBSecurityGroups(input *DescribeDBSecurityGroupsInput) (*DescribeDBSecurityGroupsOutput, error) {
req, out := c.DescribeDBSecurityGroupsRequest(input)
err := req.Send()
return out, err
}
func (c *RDS) DescribeDBSecurityGroupsPages(input *DescribeDBSecurityGroupsInput, fn func(p *DescribeDBSecurityGroupsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeDBSecurityGroupsRequest(input)
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeDBSecurityGroupsOutput), lastPage)
})
}
const opDescribeDBSnapshots = "DescribeDBSnapshots"
// DescribeDBSnapshotsRequest generates a request for the DescribeDBSnapshots operation.
func (c *RDS) DescribeDBSnapshotsRequest(input *DescribeDBSnapshotsInput) (req *aws.Request, output *DescribeDBSnapshotsOutput) {
op := &aws.Operation{
Name: opDescribeDBSnapshots,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &aws.Paginator{
InputTokens: []string{"Marker"},