1
1
import { DocDBClient } from "./DocDBClient" ;
2
- import {
3
- AddSourceIdentifierToSubscriptionCommand ,
4
- AddSourceIdentifierToSubscriptionCommandInput ,
5
- AddSourceIdentifierToSubscriptionCommandOutput ,
6
- } from "./commands/AddSourceIdentifierToSubscriptionCommand" ;
7
2
import {
8
3
AddTagsToResourceCommand ,
9
4
AddTagsToResourceCommandInput ,
@@ -49,11 +44,6 @@ import {
49
44
CreateDBSubnetGroupCommandInput ,
50
45
CreateDBSubnetGroupCommandOutput ,
51
46
} from "./commands/CreateDBSubnetGroupCommand" ;
52
- import {
53
- CreateEventSubscriptionCommand ,
54
- CreateEventSubscriptionCommandInput ,
55
- CreateEventSubscriptionCommandOutput ,
56
- } from "./commands/CreateEventSubscriptionCommand" ;
57
47
import {
58
48
DeleteDBClusterCommand ,
59
49
DeleteDBClusterCommandInput ,
@@ -79,11 +69,6 @@ import {
79
69
DeleteDBSubnetGroupCommandInput ,
80
70
DeleteDBSubnetGroupCommandOutput ,
81
71
} from "./commands/DeleteDBSubnetGroupCommand" ;
82
- import {
83
- DeleteEventSubscriptionCommand ,
84
- DeleteEventSubscriptionCommandInput ,
85
- DeleteEventSubscriptionCommandOutput ,
86
- } from "./commands/DeleteEventSubscriptionCommand" ;
87
72
import {
88
73
DescribeCertificatesCommand ,
89
74
DescribeCertificatesCommandInput ,
@@ -139,11 +124,6 @@ import {
139
124
DescribeEventCategoriesCommandInput ,
140
125
DescribeEventCategoriesCommandOutput ,
141
126
} from "./commands/DescribeEventCategoriesCommand" ;
142
- import {
143
- DescribeEventSubscriptionsCommand ,
144
- DescribeEventSubscriptionsCommandInput ,
145
- DescribeEventSubscriptionsCommandOutput ,
146
- } from "./commands/DescribeEventSubscriptionsCommand" ;
147
127
import {
148
128
DescribeEventsCommand ,
149
129
DescribeEventsCommandInput ,
@@ -194,21 +174,11 @@ import {
194
174
ModifyDBSubnetGroupCommandInput ,
195
175
ModifyDBSubnetGroupCommandOutput ,
196
176
} from "./commands/ModifyDBSubnetGroupCommand" ;
197
- import {
198
- ModifyEventSubscriptionCommand ,
199
- ModifyEventSubscriptionCommandInput ,
200
- ModifyEventSubscriptionCommandOutput ,
201
- } from "./commands/ModifyEventSubscriptionCommand" ;
202
177
import {
203
178
RebootDBInstanceCommand ,
204
179
RebootDBInstanceCommandInput ,
205
180
RebootDBInstanceCommandOutput ,
206
181
} from "./commands/RebootDBInstanceCommand" ;
207
- import {
208
- RemoveSourceIdentifierFromSubscriptionCommand ,
209
- RemoveSourceIdentifierFromSubscriptionCommandInput ,
210
- RemoveSourceIdentifierFromSubscriptionCommandOutput ,
211
- } from "./commands/RemoveSourceIdentifierFromSubscriptionCommand" ;
212
182
import {
213
183
RemoveTagsFromResourceCommand ,
214
184
RemoveTagsFromResourceCommandInput ,
@@ -245,39 +215,6 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
245
215
* <p>Amazon DocumentDB API documentation</p>
246
216
*/
247
217
export class DocDB extends DocDBClient {
248
- /**
249
- * <p>Adds a source identifier to an existing event notification
250
- * subscription.</p>
251
- */
252
- public addSourceIdentifierToSubscription (
253
- args : AddSourceIdentifierToSubscriptionCommandInput ,
254
- options ?: __HttpHandlerOptions
255
- ) : Promise < AddSourceIdentifierToSubscriptionCommandOutput > ;
256
- public addSourceIdentifierToSubscription (
257
- args : AddSourceIdentifierToSubscriptionCommandInput ,
258
- cb : ( err : any , data ?: AddSourceIdentifierToSubscriptionCommandOutput ) => void
259
- ) : void ;
260
- public addSourceIdentifierToSubscription (
261
- args : AddSourceIdentifierToSubscriptionCommandInput ,
262
- options : __HttpHandlerOptions ,
263
- cb : ( err : any , data ?: AddSourceIdentifierToSubscriptionCommandOutput ) => void
264
- ) : void ;
265
- public addSourceIdentifierToSubscription (
266
- args : AddSourceIdentifierToSubscriptionCommandInput ,
267
- optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: AddSourceIdentifierToSubscriptionCommandOutput ) => void ) ,
268
- cb ?: ( err : any , data ?: AddSourceIdentifierToSubscriptionCommandOutput ) => void
269
- ) : Promise < AddSourceIdentifierToSubscriptionCommandOutput > | void {
270
- const command = new AddSourceIdentifierToSubscriptionCommand ( args ) ;
271
- if ( typeof optionsOrCb === "function" ) {
272
- this . send ( command , optionsOrCb ) ;
273
- } else if ( typeof cb === "function" ) {
274
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
275
- this . send ( command , optionsOrCb || { } , cb ) ;
276
- } else {
277
- return this . send ( command , optionsOrCb ) ;
278
- }
279
- }
280
-
281
218
/**
282
219
* <p>Adds metadata tags to an Amazon DocumentDB resource. You can use these tags
283
220
* with cost allocation reporting to track costs that are associated
@@ -600,57 +537,6 @@ export class DocDB extends DocDBClient {
600
537
}
601
538
}
602
539
603
- /**
604
- * <p>Creates an Amazon DocumentDB event notification subscription. This action requires a topic
605
- * Amazon Resource Name (ARN) created by using the Amazon DocumentDB console, the Amazon SNS console,
606
- * or the Amazon SNS API. To obtain an ARN with Amazon SNS, you must create a topic in
607
- * Amazon SNS and subscribe to the topic. The ARN is displayed in the Amazon SNS
608
- * console.</p>
609
- * <p>You can specify the type of source (<code>SourceType</code>) that you want to be
610
- * notified of. You can also provide a list of Amazon DocumentDB sources (<code>SourceIds</code>)
611
- * that trigger the events, and you can provide a list of event categories
612
- * (<code>EventCategories</code>) for events that you want to be notified of. For
613
- * example, you can specify <code>SourceType = db-instance</code>, <code>SourceIds =
614
- * mydbinstance1, mydbinstance2</code> and <code>EventCategories = Availability,
615
- * Backup</code>.</p>
616
- * <p>If you specify both the <code>SourceType</code> and <code>SourceIds</code> (such as
617
- * <code>SourceType = db-instance</code> and <code>SourceIdentifier =
618
- * myDBInstance1</code>), you are notified of all the <code>db-instance</code> events
619
- * for the specified source. If you specify a <code>SourceType</code> but do not specify a
620
- * <code>SourceIdentifier</code>, you receive notice of the events for that source type
621
- * for all your Amazon DocumentDB sources. If you do not specify either the <code>SourceType</code>
622
- * or the <code>SourceIdentifier</code>, you are notified of events generated from all
623
- * Amazon DocumentDB sources belonging to your customer account.</p>
624
- */
625
- public createEventSubscription (
626
- args : CreateEventSubscriptionCommandInput ,
627
- options ?: __HttpHandlerOptions
628
- ) : Promise < CreateEventSubscriptionCommandOutput > ;
629
- public createEventSubscription (
630
- args : CreateEventSubscriptionCommandInput ,
631
- cb : ( err : any , data ?: CreateEventSubscriptionCommandOutput ) => void
632
- ) : void ;
633
- public createEventSubscription (
634
- args : CreateEventSubscriptionCommandInput ,
635
- options : __HttpHandlerOptions ,
636
- cb : ( err : any , data ?: CreateEventSubscriptionCommandOutput ) => void
637
- ) : void ;
638
- public createEventSubscription (
639
- args : CreateEventSubscriptionCommandInput ,
640
- optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: CreateEventSubscriptionCommandOutput ) => void ) ,
641
- cb ?: ( err : any , data ?: CreateEventSubscriptionCommandOutput ) => void
642
- ) : Promise < CreateEventSubscriptionCommandOutput > | void {
643
- const command = new CreateEventSubscriptionCommand ( args ) ;
644
- if ( typeof optionsOrCb === "function" ) {
645
- this . send ( command , optionsOrCb ) ;
646
- } else if ( typeof cb === "function" ) {
647
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
648
- this . send ( command , optionsOrCb || { } , cb ) ;
649
- } else {
650
- return this . send ( command , optionsOrCb ) ;
651
- }
652
- }
653
-
654
540
/**
655
541
* <p>Deletes a previously provisioned cluster. When you delete a cluster, all
656
542
* automated backups for that cluster are deleted and can't be recovered. Manual DB
@@ -825,38 +711,6 @@ export class DocDB extends DocDBClient {
825
711
}
826
712
}
827
713
828
- /**
829
- * <p>Deletes an Amazon DocumentDB event notification subscription.</p>
830
- */
831
- public deleteEventSubscription (
832
- args : DeleteEventSubscriptionCommandInput ,
833
- options ?: __HttpHandlerOptions
834
- ) : Promise < DeleteEventSubscriptionCommandOutput > ;
835
- public deleteEventSubscription (
836
- args : DeleteEventSubscriptionCommandInput ,
837
- cb : ( err : any , data ?: DeleteEventSubscriptionCommandOutput ) => void
838
- ) : void ;
839
- public deleteEventSubscription (
840
- args : DeleteEventSubscriptionCommandInput ,
841
- options : __HttpHandlerOptions ,
842
- cb : ( err : any , data ?: DeleteEventSubscriptionCommandOutput ) => void
843
- ) : void ;
844
- public deleteEventSubscription (
845
- args : DeleteEventSubscriptionCommandInput ,
846
- optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DeleteEventSubscriptionCommandOutput ) => void ) ,
847
- cb ?: ( err : any , data ?: DeleteEventSubscriptionCommandOutput ) => void
848
- ) : Promise < DeleteEventSubscriptionCommandOutput > | void {
849
- const command = new DeleteEventSubscriptionCommand ( args ) ;
850
- if ( typeof optionsOrCb === "function" ) {
851
- this . send ( command , optionsOrCb ) ;
852
- } else if ( typeof cb === "function" ) {
853
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
854
- this . send ( command , optionsOrCb || { } , cb ) ;
855
- } else {
856
- return this . send ( command , optionsOrCb ) ;
857
- }
858
- }
859
-
860
714
/**
861
715
* <p>Returns a list of certificate authority (CA) certificates provided by Amazon DocumentDB for
862
716
* this AWS account.</p>
@@ -1268,43 +1122,6 @@ export class DocDB extends DocDBClient {
1268
1122
}
1269
1123
}
1270
1124
1271
- /**
1272
- * <p>Lists all the subscription descriptions for a customer account. The description for a
1273
- * subscription includes <code>SubscriptionName</code>, <code>SNSTopicARN</code>,
1274
- * <code>CustomerID</code>, <code>SourceType</code>, <code>SourceID</code>,
1275
- * <code>CreationTime</code>, and <code>Status</code>.</p>
1276
- * <p>If you specify a <code>SubscriptionName</code>, lists the description for that
1277
- * subscription.</p>
1278
- */
1279
- public describeEventSubscriptions (
1280
- args : DescribeEventSubscriptionsCommandInput ,
1281
- options ?: __HttpHandlerOptions
1282
- ) : Promise < DescribeEventSubscriptionsCommandOutput > ;
1283
- public describeEventSubscriptions (
1284
- args : DescribeEventSubscriptionsCommandInput ,
1285
- cb : ( err : any , data ?: DescribeEventSubscriptionsCommandOutput ) => void
1286
- ) : void ;
1287
- public describeEventSubscriptions (
1288
- args : DescribeEventSubscriptionsCommandInput ,
1289
- options : __HttpHandlerOptions ,
1290
- cb : ( err : any , data ?: DescribeEventSubscriptionsCommandOutput ) => void
1291
- ) : void ;
1292
- public describeEventSubscriptions (
1293
- args : DescribeEventSubscriptionsCommandInput ,
1294
- optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: DescribeEventSubscriptionsCommandOutput ) => void ) ,
1295
- cb ?: ( err : any , data ?: DescribeEventSubscriptionsCommandOutput ) => void
1296
- ) : Promise < DescribeEventSubscriptionsCommandOutput > | void {
1297
- const command = new DescribeEventSubscriptionsCommand ( args ) ;
1298
- if ( typeof optionsOrCb === "function" ) {
1299
- this . send ( command , optionsOrCb ) ;
1300
- } else if ( typeof cb === "function" ) {
1301
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1302
- this . send ( command , optionsOrCb || { } , cb ) ;
1303
- } else {
1304
- return this . send ( command , optionsOrCb ) ;
1305
- }
1306
- }
1307
-
1308
1125
/**
1309
1126
* <p>Returns a list of orderable instance options for the specified engine.</p>
1310
1127
*/
@@ -1634,38 +1451,6 @@ export class DocDB extends DocDBClient {
1634
1451
}
1635
1452
}
1636
1453
1637
- /**
1638
- * <p>Modifies an existing Amazon DocumentDB event notification subscription.</p>
1639
- */
1640
- public modifyEventSubscription (
1641
- args : ModifyEventSubscriptionCommandInput ,
1642
- options ?: __HttpHandlerOptions
1643
- ) : Promise < ModifyEventSubscriptionCommandOutput > ;
1644
- public modifyEventSubscription (
1645
- args : ModifyEventSubscriptionCommandInput ,
1646
- cb : ( err : any , data ?: ModifyEventSubscriptionCommandOutput ) => void
1647
- ) : void ;
1648
- public modifyEventSubscription (
1649
- args : ModifyEventSubscriptionCommandInput ,
1650
- options : __HttpHandlerOptions ,
1651
- cb : ( err : any , data ?: ModifyEventSubscriptionCommandOutput ) => void
1652
- ) : void ;
1653
- public modifyEventSubscription (
1654
- args : ModifyEventSubscriptionCommandInput ,
1655
- optionsOrCb ?: __HttpHandlerOptions | ( ( err : any , data ?: ModifyEventSubscriptionCommandOutput ) => void ) ,
1656
- cb ?: ( err : any , data ?: ModifyEventSubscriptionCommandOutput ) => void
1657
- ) : Promise < ModifyEventSubscriptionCommandOutput > | void {
1658
- const command = new ModifyEventSubscriptionCommand ( args ) ;
1659
- if ( typeof optionsOrCb === "function" ) {
1660
- this . send ( command , optionsOrCb ) ;
1661
- } else if ( typeof cb === "function" ) {
1662
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1663
- this . send ( command , optionsOrCb || { } , cb ) ;
1664
- } else {
1665
- return this . send ( command , optionsOrCb ) ;
1666
- }
1667
- }
1668
-
1669
1454
/**
1670
1455
* <p>You might need to reboot your instance, usually for maintenance reasons. For
1671
1456
* example, if you make certain changes, or if you change the cluster parameter group
@@ -1704,41 +1489,6 @@ export class DocDB extends DocDBClient {
1704
1489
}
1705
1490
}
1706
1491
1707
- /**
1708
- * <p>Removes a source identifier from an existing Amazon DocumentDB event notification
1709
- * subscription.</p>
1710
- */
1711
- public removeSourceIdentifierFromSubscription (
1712
- args : RemoveSourceIdentifierFromSubscriptionCommandInput ,
1713
- options ?: __HttpHandlerOptions
1714
- ) : Promise < RemoveSourceIdentifierFromSubscriptionCommandOutput > ;
1715
- public removeSourceIdentifierFromSubscription (
1716
- args : RemoveSourceIdentifierFromSubscriptionCommandInput ,
1717
- cb : ( err : any , data ?: RemoveSourceIdentifierFromSubscriptionCommandOutput ) => void
1718
- ) : void ;
1719
- public removeSourceIdentifierFromSubscription (
1720
- args : RemoveSourceIdentifierFromSubscriptionCommandInput ,
1721
- options : __HttpHandlerOptions ,
1722
- cb : ( err : any , data ?: RemoveSourceIdentifierFromSubscriptionCommandOutput ) => void
1723
- ) : void ;
1724
- public removeSourceIdentifierFromSubscription (
1725
- args : RemoveSourceIdentifierFromSubscriptionCommandInput ,
1726
- optionsOrCb ?:
1727
- | __HttpHandlerOptions
1728
- | ( ( err : any , data ?: RemoveSourceIdentifierFromSubscriptionCommandOutput ) => void ) ,
1729
- cb ?: ( err : any , data ?: RemoveSourceIdentifierFromSubscriptionCommandOutput ) => void
1730
- ) : Promise < RemoveSourceIdentifierFromSubscriptionCommandOutput > | void {
1731
- const command = new RemoveSourceIdentifierFromSubscriptionCommand ( args ) ;
1732
- if ( typeof optionsOrCb === "function" ) {
1733
- this . send ( command , optionsOrCb ) ;
1734
- } else if ( typeof cb === "function" ) {
1735
- if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb } ` ) ;
1736
- this . send ( command , optionsOrCb || { } , cb ) ;
1737
- } else {
1738
- return this . send ( command , optionsOrCb ) ;
1739
- }
1740
- }
1741
-
1742
1492
/**
1743
1493
* <p>Removes metadata tags from an Amazon DocumentDB resource.</p>
1744
1494
*/
0 commit comments