Skip to content

Commit f0c5c44

Browse files
committed
chore(clients): code to reintroduce waiters in route53 and docdb
1 parent a740348 commit f0c5c44

22 files changed

+47
-2576
lines changed

clients/client-docdb/DocDB.ts

Lines changed: 0 additions & 250 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
import { DocDBClient } from "./DocDBClient";
2-
import {
3-
AddSourceIdentifierToSubscriptionCommand,
4-
AddSourceIdentifierToSubscriptionCommandInput,
5-
AddSourceIdentifierToSubscriptionCommandOutput,
6-
} from "./commands/AddSourceIdentifierToSubscriptionCommand";
72
import {
83
AddTagsToResourceCommand,
94
AddTagsToResourceCommandInput,
@@ -49,11 +44,6 @@ import {
4944
CreateDBSubnetGroupCommandInput,
5045
CreateDBSubnetGroupCommandOutput,
5146
} from "./commands/CreateDBSubnetGroupCommand";
52-
import {
53-
CreateEventSubscriptionCommand,
54-
CreateEventSubscriptionCommandInput,
55-
CreateEventSubscriptionCommandOutput,
56-
} from "./commands/CreateEventSubscriptionCommand";
5747
import {
5848
DeleteDBClusterCommand,
5949
DeleteDBClusterCommandInput,
@@ -79,11 +69,6 @@ import {
7969
DeleteDBSubnetGroupCommandInput,
8070
DeleteDBSubnetGroupCommandOutput,
8171
} from "./commands/DeleteDBSubnetGroupCommand";
82-
import {
83-
DeleteEventSubscriptionCommand,
84-
DeleteEventSubscriptionCommandInput,
85-
DeleteEventSubscriptionCommandOutput,
86-
} from "./commands/DeleteEventSubscriptionCommand";
8772
import {
8873
DescribeCertificatesCommand,
8974
DescribeCertificatesCommandInput,
@@ -139,11 +124,6 @@ import {
139124
DescribeEventCategoriesCommandInput,
140125
DescribeEventCategoriesCommandOutput,
141126
} from "./commands/DescribeEventCategoriesCommand";
142-
import {
143-
DescribeEventSubscriptionsCommand,
144-
DescribeEventSubscriptionsCommandInput,
145-
DescribeEventSubscriptionsCommandOutput,
146-
} from "./commands/DescribeEventSubscriptionsCommand";
147127
import {
148128
DescribeEventsCommand,
149129
DescribeEventsCommandInput,
@@ -194,21 +174,11 @@ import {
194174
ModifyDBSubnetGroupCommandInput,
195175
ModifyDBSubnetGroupCommandOutput,
196176
} from "./commands/ModifyDBSubnetGroupCommand";
197-
import {
198-
ModifyEventSubscriptionCommand,
199-
ModifyEventSubscriptionCommandInput,
200-
ModifyEventSubscriptionCommandOutput,
201-
} from "./commands/ModifyEventSubscriptionCommand";
202177
import {
203178
RebootDBInstanceCommand,
204179
RebootDBInstanceCommandInput,
205180
RebootDBInstanceCommandOutput,
206181
} from "./commands/RebootDBInstanceCommand";
207-
import {
208-
RemoveSourceIdentifierFromSubscriptionCommand,
209-
RemoveSourceIdentifierFromSubscriptionCommandInput,
210-
RemoveSourceIdentifierFromSubscriptionCommandOutput,
211-
} from "./commands/RemoveSourceIdentifierFromSubscriptionCommand";
212182
import {
213183
RemoveTagsFromResourceCommand,
214184
RemoveTagsFromResourceCommandInput,
@@ -245,39 +215,6 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
245215
* <p>Amazon DocumentDB API documentation</p>
246216
*/
247217
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-
281218
/**
282219
* <p>Adds metadata tags to an Amazon DocumentDB resource. You can use these tags
283220
* with cost allocation reporting to track costs that are associated
@@ -600,57 +537,6 @@ export class DocDB extends DocDBClient {
600537
}
601538
}
602539

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-
654540
/**
655541
* <p>Deletes a previously provisioned cluster. When you delete a cluster, all
656542
* automated backups for that cluster are deleted and can't be recovered. Manual DB
@@ -825,38 +711,6 @@ export class DocDB extends DocDBClient {
825711
}
826712
}
827713

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-
860714
/**
861715
* <p>Returns a list of certificate authority (CA) certificates provided by Amazon DocumentDB for
862716
* this AWS account.</p>
@@ -1268,43 +1122,6 @@ export class DocDB extends DocDBClient {
12681122
}
12691123
}
12701124

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-
13081125
/**
13091126
* <p>Returns a list of orderable instance options for the specified engine.</p>
13101127
*/
@@ -1634,38 +1451,6 @@ export class DocDB extends DocDBClient {
16341451
}
16351452
}
16361453

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-
16691454
/**
16701455
* <p>You might need to reboot your instance, usually for maintenance reasons. For
16711456
* example, if you make certain changes, or if you change the cluster parameter group
@@ -1704,41 +1489,6 @@ export class DocDB extends DocDBClient {
17041489
}
17051490
}
17061491

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-
17421492
/**
17431493
* <p>Removes metadata tags from an Amazon DocumentDB resource.</p>
17441494
*/

0 commit comments

Comments
 (0)