@aws-sdk/client-neptune 3.186.0 → 3.190.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-cjs/protocols/Aws_query.js +8 -4
  3. package/dist-es/Neptune.js +278 -285
  4. package/dist-es/NeptuneClient.js +22 -28
  5. package/dist-es/commands/AddRoleToDBClusterCommand.js +22 -29
  6. package/dist-es/commands/AddSourceIdentifierToSubscriptionCommand.js +21 -28
  7. package/dist-es/commands/AddTagsToResourceCommand.js +22 -29
  8. package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +21 -28
  9. package/dist-es/commands/CopyDBClusterParameterGroupCommand.js +21 -28
  10. package/dist-es/commands/CopyDBClusterSnapshotCommand.js +21 -28
  11. package/dist-es/commands/CopyDBParameterGroupCommand.js +21 -28
  12. package/dist-es/commands/CreateDBClusterCommand.js +21 -28
  13. package/dist-es/commands/CreateDBClusterEndpointCommand.js +21 -28
  14. package/dist-es/commands/CreateDBClusterParameterGroupCommand.js +21 -28
  15. package/dist-es/commands/CreateDBClusterSnapshotCommand.js +21 -28
  16. package/dist-es/commands/CreateDBInstanceCommand.js +21 -28
  17. package/dist-es/commands/CreateDBParameterGroupCommand.js +21 -28
  18. package/dist-es/commands/CreateDBSubnetGroupCommand.js +21 -28
  19. package/dist-es/commands/CreateEventSubscriptionCommand.js +21 -28
  20. package/dist-es/commands/CreateGlobalClusterCommand.js +21 -28
  21. package/dist-es/commands/DeleteDBClusterCommand.js +21 -28
  22. package/dist-es/commands/DeleteDBClusterEndpointCommand.js +21 -28
  23. package/dist-es/commands/DeleteDBClusterParameterGroupCommand.js +22 -29
  24. package/dist-es/commands/DeleteDBClusterSnapshotCommand.js +21 -28
  25. package/dist-es/commands/DeleteDBInstanceCommand.js +21 -28
  26. package/dist-es/commands/DeleteDBParameterGroupCommand.js +22 -29
  27. package/dist-es/commands/DeleteDBSubnetGroupCommand.js +22 -29
  28. package/dist-es/commands/DeleteEventSubscriptionCommand.js +21 -28
  29. package/dist-es/commands/DeleteGlobalClusterCommand.js +21 -28
  30. package/dist-es/commands/DescribeDBClusterEndpointsCommand.js +21 -28
  31. package/dist-es/commands/DescribeDBClusterParameterGroupsCommand.js +21 -28
  32. package/dist-es/commands/DescribeDBClusterParametersCommand.js +21 -28
  33. package/dist-es/commands/DescribeDBClusterSnapshotAttributesCommand.js +21 -28
  34. package/dist-es/commands/DescribeDBClusterSnapshotsCommand.js +21 -28
  35. package/dist-es/commands/DescribeDBClustersCommand.js +21 -28
  36. package/dist-es/commands/DescribeDBEngineVersionsCommand.js +21 -28
  37. package/dist-es/commands/DescribeDBInstancesCommand.js +21 -28
  38. package/dist-es/commands/DescribeDBParameterGroupsCommand.js +21 -28
  39. package/dist-es/commands/DescribeDBParametersCommand.js +21 -28
  40. package/dist-es/commands/DescribeDBSubnetGroupsCommand.js +21 -28
  41. package/dist-es/commands/DescribeEngineDefaultClusterParametersCommand.js +21 -28
  42. package/dist-es/commands/DescribeEngineDefaultParametersCommand.js +21 -28
  43. package/dist-es/commands/DescribeEventCategoriesCommand.js +21 -28
  44. package/dist-es/commands/DescribeEventSubscriptionsCommand.js +21 -28
  45. package/dist-es/commands/DescribeEventsCommand.js +21 -28
  46. package/dist-es/commands/DescribeGlobalClustersCommand.js +21 -28
  47. package/dist-es/commands/DescribeOrderableDBInstanceOptionsCommand.js +21 -28
  48. package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +21 -28
  49. package/dist-es/commands/DescribeValidDBInstanceModificationsCommand.js +21 -28
  50. package/dist-es/commands/FailoverDBClusterCommand.js +21 -28
  51. package/dist-es/commands/FailoverGlobalClusterCommand.js +21 -28
  52. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  53. package/dist-es/commands/ModifyDBClusterCommand.js +21 -28
  54. package/dist-es/commands/ModifyDBClusterEndpointCommand.js +21 -28
  55. package/dist-es/commands/ModifyDBClusterParameterGroupCommand.js +21 -28
  56. package/dist-es/commands/ModifyDBClusterSnapshotAttributeCommand.js +21 -28
  57. package/dist-es/commands/ModifyDBInstanceCommand.js +21 -28
  58. package/dist-es/commands/ModifyDBParameterGroupCommand.js +21 -28
  59. package/dist-es/commands/ModifyDBSubnetGroupCommand.js +21 -28
  60. package/dist-es/commands/ModifyEventSubscriptionCommand.js +21 -28
  61. package/dist-es/commands/ModifyGlobalClusterCommand.js +21 -28
  62. package/dist-es/commands/PromoteReadReplicaDBClusterCommand.js +21 -28
  63. package/dist-es/commands/RebootDBInstanceCommand.js +21 -28
  64. package/dist-es/commands/RemoveFromGlobalClusterCommand.js +21 -28
  65. package/dist-es/commands/RemoveRoleFromDBClusterCommand.js +22 -29
  66. package/dist-es/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +21 -28
  67. package/dist-es/commands/RemoveTagsFromResourceCommand.js +22 -29
  68. package/dist-es/commands/ResetDBClusterParameterGroupCommand.js +21 -28
  69. package/dist-es/commands/ResetDBParameterGroupCommand.js +21 -28
  70. package/dist-es/commands/RestoreDBClusterFromSnapshotCommand.js +21 -28
  71. package/dist-es/commands/RestoreDBClusterToPointInTimeCommand.js +21 -28
  72. package/dist-es/commands/StartDBClusterCommand.js +21 -28
  73. package/dist-es/commands/StopDBClusterCommand.js +21 -28
  74. package/dist-es/endpoints.js +8 -8
  75. package/dist-es/models/NeptuneServiceException.js +5 -10
  76. package/dist-es/models/models_0.js +1323 -978
  77. package/dist-es/pagination/DescribeDBClusterEndpointsPaginator.js +25 -68
  78. package/dist-es/pagination/DescribeDBClusterParameterGroupsPaginator.js +25 -68
  79. package/dist-es/pagination/DescribeDBClusterParametersPaginator.js +25 -68
  80. package/dist-es/pagination/DescribeDBClusterSnapshotsPaginator.js +25 -68
  81. package/dist-es/pagination/DescribeDBClustersPaginator.js +25 -68
  82. package/dist-es/pagination/DescribeDBEngineVersionsPaginator.js +25 -68
  83. package/dist-es/pagination/DescribeDBInstancesPaginator.js +25 -68
  84. package/dist-es/pagination/DescribeDBParameterGroupsPaginator.js +25 -68
  85. package/dist-es/pagination/DescribeDBParametersPaginator.js +25 -68
  86. package/dist-es/pagination/DescribeDBSubnetGroupsPaginator.js +25 -68
  87. package/dist-es/pagination/DescribeEngineDefaultParametersPaginator.js +25 -68
  88. package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +25 -68
  89. package/dist-es/pagination/DescribeEventsPaginator.js +25 -68
  90. package/dist-es/pagination/DescribeOrderableDBInstanceOptionsPaginator.js +25 -68
  91. package/dist-es/pagination/DescribePendingMaintenanceActionsPaginator.js +25 -68
  92. package/dist-es/protocols/Aws_query.js +5157 -6694
  93. package/dist-es/runtimeConfig.browser.js +26 -12
  94. package/dist-es/runtimeConfig.js +30 -12
  95. package/dist-es/runtimeConfig.native.js +8 -5
  96. package/dist-es/runtimeConfig.shared.js +8 -11
  97. package/dist-es/waiters/waitForDBInstanceAvailable.js +106 -187
  98. package/dist-es/waiters/waitForDBInstanceDeleted.js +94 -165
  99. package/package.json +36 -37
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AddRoleToDBClusterCommand, } from "./commands/AddRoleToDBClusterCommand";
3
2
  import { AddSourceIdentifierToSubscriptionCommand, } from "./commands/AddSourceIdentifierToSubscriptionCommand";
4
3
  import { AddTagsToResourceCommand, } from "./commands/AddTagsToResourceCommand";
@@ -69,977 +68,971 @@ import { RestoreDBClusterToPointInTimeCommand, } from "./commands/RestoreDBClust
69
68
  import { StartDBClusterCommand, } from "./commands/StartDBClusterCommand";
70
69
  import { StopDBClusterCommand, } from "./commands/StopDBClusterCommand";
71
70
  import { NeptuneClient } from "./NeptuneClient";
72
- var Neptune = (function (_super) {
73
- __extends(Neptune, _super);
74
- function Neptune() {
75
- return _super !== null && _super.apply(this, arguments) || this;
76
- }
77
- Neptune.prototype.addRoleToDBCluster = function (args, optionsOrCb, cb) {
78
- var command = new AddRoleToDBClusterCommand(args);
71
+ export class Neptune extends NeptuneClient {
72
+ addRoleToDBCluster(args, optionsOrCb, cb) {
73
+ const command = new AddRoleToDBClusterCommand(args);
79
74
  if (typeof optionsOrCb === "function") {
80
75
  this.send(command, optionsOrCb);
81
76
  }
82
77
  else if (typeof cb === "function") {
83
78
  if (typeof optionsOrCb !== "object")
84
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
80
  this.send(command, optionsOrCb || {}, cb);
86
81
  }
87
82
  else {
88
83
  return this.send(command, optionsOrCb);
89
84
  }
90
- };
91
- Neptune.prototype.addSourceIdentifierToSubscription = function (args, optionsOrCb, cb) {
92
- var command = new AddSourceIdentifierToSubscriptionCommand(args);
85
+ }
86
+ addSourceIdentifierToSubscription(args, optionsOrCb, cb) {
87
+ const command = new AddSourceIdentifierToSubscriptionCommand(args);
93
88
  if (typeof optionsOrCb === "function") {
94
89
  this.send(command, optionsOrCb);
95
90
  }
96
91
  else if (typeof cb === "function") {
97
92
  if (typeof optionsOrCb !== "object")
98
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
94
  this.send(command, optionsOrCb || {}, cb);
100
95
  }
101
96
  else {
102
97
  return this.send(command, optionsOrCb);
103
98
  }
104
- };
105
- Neptune.prototype.addTagsToResource = function (args, optionsOrCb, cb) {
106
- var command = new AddTagsToResourceCommand(args);
99
+ }
100
+ addTagsToResource(args, optionsOrCb, cb) {
101
+ const command = new AddTagsToResourceCommand(args);
107
102
  if (typeof optionsOrCb === "function") {
108
103
  this.send(command, optionsOrCb);
109
104
  }
110
105
  else if (typeof cb === "function") {
111
106
  if (typeof optionsOrCb !== "object")
112
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
108
  this.send(command, optionsOrCb || {}, cb);
114
109
  }
115
110
  else {
116
111
  return this.send(command, optionsOrCb);
117
112
  }
118
- };
119
- Neptune.prototype.applyPendingMaintenanceAction = function (args, optionsOrCb, cb) {
120
- var command = new ApplyPendingMaintenanceActionCommand(args);
113
+ }
114
+ applyPendingMaintenanceAction(args, optionsOrCb, cb) {
115
+ const command = new ApplyPendingMaintenanceActionCommand(args);
121
116
  if (typeof optionsOrCb === "function") {
122
117
  this.send(command, optionsOrCb);
123
118
  }
124
119
  else if (typeof cb === "function") {
125
120
  if (typeof optionsOrCb !== "object")
126
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
122
  this.send(command, optionsOrCb || {}, cb);
128
123
  }
129
124
  else {
130
125
  return this.send(command, optionsOrCb);
131
126
  }
132
- };
133
- Neptune.prototype.copyDBClusterParameterGroup = function (args, optionsOrCb, cb) {
134
- var command = new CopyDBClusterParameterGroupCommand(args);
127
+ }
128
+ copyDBClusterParameterGroup(args, optionsOrCb, cb) {
129
+ const command = new CopyDBClusterParameterGroupCommand(args);
135
130
  if (typeof optionsOrCb === "function") {
136
131
  this.send(command, optionsOrCb);
137
132
  }
138
133
  else if (typeof cb === "function") {
139
134
  if (typeof optionsOrCb !== "object")
140
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
136
  this.send(command, optionsOrCb || {}, cb);
142
137
  }
143
138
  else {
144
139
  return this.send(command, optionsOrCb);
145
140
  }
146
- };
147
- Neptune.prototype.copyDBClusterSnapshot = function (args, optionsOrCb, cb) {
148
- var command = new CopyDBClusterSnapshotCommand(args);
141
+ }
142
+ copyDBClusterSnapshot(args, optionsOrCb, cb) {
143
+ const command = new CopyDBClusterSnapshotCommand(args);
149
144
  if (typeof optionsOrCb === "function") {
150
145
  this.send(command, optionsOrCb);
151
146
  }
152
147
  else if (typeof cb === "function") {
153
148
  if (typeof optionsOrCb !== "object")
154
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
150
  this.send(command, optionsOrCb || {}, cb);
156
151
  }
157
152
  else {
158
153
  return this.send(command, optionsOrCb);
159
154
  }
160
- };
161
- Neptune.prototype.copyDBParameterGroup = function (args, optionsOrCb, cb) {
162
- var command = new CopyDBParameterGroupCommand(args);
155
+ }
156
+ copyDBParameterGroup(args, optionsOrCb, cb) {
157
+ const command = new CopyDBParameterGroupCommand(args);
163
158
  if (typeof optionsOrCb === "function") {
164
159
  this.send(command, optionsOrCb);
165
160
  }
166
161
  else if (typeof cb === "function") {
167
162
  if (typeof optionsOrCb !== "object")
168
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
164
  this.send(command, optionsOrCb || {}, cb);
170
165
  }
171
166
  else {
172
167
  return this.send(command, optionsOrCb);
173
168
  }
174
- };
175
- Neptune.prototype.createDBCluster = function (args, optionsOrCb, cb) {
176
- var command = new CreateDBClusterCommand(args);
169
+ }
170
+ createDBCluster(args, optionsOrCb, cb) {
171
+ const command = new CreateDBClusterCommand(args);
177
172
  if (typeof optionsOrCb === "function") {
178
173
  this.send(command, optionsOrCb);
179
174
  }
180
175
  else if (typeof cb === "function") {
181
176
  if (typeof optionsOrCb !== "object")
182
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
178
  this.send(command, optionsOrCb || {}, cb);
184
179
  }
185
180
  else {
186
181
  return this.send(command, optionsOrCb);
187
182
  }
188
- };
189
- Neptune.prototype.createDBClusterEndpoint = function (args, optionsOrCb, cb) {
190
- var command = new CreateDBClusterEndpointCommand(args);
183
+ }
184
+ createDBClusterEndpoint(args, optionsOrCb, cb) {
185
+ const command = new CreateDBClusterEndpointCommand(args);
191
186
  if (typeof optionsOrCb === "function") {
192
187
  this.send(command, optionsOrCb);
193
188
  }
194
189
  else if (typeof cb === "function") {
195
190
  if (typeof optionsOrCb !== "object")
196
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
192
  this.send(command, optionsOrCb || {}, cb);
198
193
  }
199
194
  else {
200
195
  return this.send(command, optionsOrCb);
201
196
  }
202
- };
203
- Neptune.prototype.createDBClusterParameterGroup = function (args, optionsOrCb, cb) {
204
- var command = new CreateDBClusterParameterGroupCommand(args);
197
+ }
198
+ createDBClusterParameterGroup(args, optionsOrCb, cb) {
199
+ const command = new CreateDBClusterParameterGroupCommand(args);
205
200
  if (typeof optionsOrCb === "function") {
206
201
  this.send(command, optionsOrCb);
207
202
  }
208
203
  else if (typeof cb === "function") {
209
204
  if (typeof optionsOrCb !== "object")
210
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
205
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
211
206
  this.send(command, optionsOrCb || {}, cb);
212
207
  }
213
208
  else {
214
209
  return this.send(command, optionsOrCb);
215
210
  }
216
- };
217
- Neptune.prototype.createDBClusterSnapshot = function (args, optionsOrCb, cb) {
218
- var command = new CreateDBClusterSnapshotCommand(args);
211
+ }
212
+ createDBClusterSnapshot(args, optionsOrCb, cb) {
213
+ const command = new CreateDBClusterSnapshotCommand(args);
219
214
  if (typeof optionsOrCb === "function") {
220
215
  this.send(command, optionsOrCb);
221
216
  }
222
217
  else if (typeof cb === "function") {
223
218
  if (typeof optionsOrCb !== "object")
224
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
219
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
220
  this.send(command, optionsOrCb || {}, cb);
226
221
  }
227
222
  else {
228
223
  return this.send(command, optionsOrCb);
229
224
  }
230
- };
231
- Neptune.prototype.createDBInstance = function (args, optionsOrCb, cb) {
232
- var command = new CreateDBInstanceCommand(args);
225
+ }
226
+ createDBInstance(args, optionsOrCb, cb) {
227
+ const command = new CreateDBInstanceCommand(args);
233
228
  if (typeof optionsOrCb === "function") {
234
229
  this.send(command, optionsOrCb);
235
230
  }
236
231
  else if (typeof cb === "function") {
237
232
  if (typeof optionsOrCb !== "object")
238
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
239
234
  this.send(command, optionsOrCb || {}, cb);
240
235
  }
241
236
  else {
242
237
  return this.send(command, optionsOrCb);
243
238
  }
244
- };
245
- Neptune.prototype.createDBParameterGroup = function (args, optionsOrCb, cb) {
246
- var command = new CreateDBParameterGroupCommand(args);
239
+ }
240
+ createDBParameterGroup(args, optionsOrCb, cb) {
241
+ const command = new CreateDBParameterGroupCommand(args);
247
242
  if (typeof optionsOrCb === "function") {
248
243
  this.send(command, optionsOrCb);
249
244
  }
250
245
  else if (typeof cb === "function") {
251
246
  if (typeof optionsOrCb !== "object")
252
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
247
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
253
248
  this.send(command, optionsOrCb || {}, cb);
254
249
  }
255
250
  else {
256
251
  return this.send(command, optionsOrCb);
257
252
  }
258
- };
259
- Neptune.prototype.createDBSubnetGroup = function (args, optionsOrCb, cb) {
260
- var command = new CreateDBSubnetGroupCommand(args);
253
+ }
254
+ createDBSubnetGroup(args, optionsOrCb, cb) {
255
+ const command = new CreateDBSubnetGroupCommand(args);
261
256
  if (typeof optionsOrCb === "function") {
262
257
  this.send(command, optionsOrCb);
263
258
  }
264
259
  else if (typeof cb === "function") {
265
260
  if (typeof optionsOrCb !== "object")
266
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
261
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
267
262
  this.send(command, optionsOrCb || {}, cb);
268
263
  }
269
264
  else {
270
265
  return this.send(command, optionsOrCb);
271
266
  }
272
- };
273
- Neptune.prototype.createEventSubscription = function (args, optionsOrCb, cb) {
274
- var command = new CreateEventSubscriptionCommand(args);
267
+ }
268
+ createEventSubscription(args, optionsOrCb, cb) {
269
+ const command = new CreateEventSubscriptionCommand(args);
275
270
  if (typeof optionsOrCb === "function") {
276
271
  this.send(command, optionsOrCb);
277
272
  }
278
273
  else if (typeof cb === "function") {
279
274
  if (typeof optionsOrCb !== "object")
280
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
275
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
281
276
  this.send(command, optionsOrCb || {}, cb);
282
277
  }
283
278
  else {
284
279
  return this.send(command, optionsOrCb);
285
280
  }
286
- };
287
- Neptune.prototype.createGlobalCluster = function (args, optionsOrCb, cb) {
288
- var command = new CreateGlobalClusterCommand(args);
281
+ }
282
+ createGlobalCluster(args, optionsOrCb, cb) {
283
+ const command = new CreateGlobalClusterCommand(args);
289
284
  if (typeof optionsOrCb === "function") {
290
285
  this.send(command, optionsOrCb);
291
286
  }
292
287
  else if (typeof cb === "function") {
293
288
  if (typeof optionsOrCb !== "object")
294
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
289
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
295
290
  this.send(command, optionsOrCb || {}, cb);
296
291
  }
297
292
  else {
298
293
  return this.send(command, optionsOrCb);
299
294
  }
300
- };
301
- Neptune.prototype.deleteDBCluster = function (args, optionsOrCb, cb) {
302
- var command = new DeleteDBClusterCommand(args);
295
+ }
296
+ deleteDBCluster(args, optionsOrCb, cb) {
297
+ const command = new DeleteDBClusterCommand(args);
303
298
  if (typeof optionsOrCb === "function") {
304
299
  this.send(command, optionsOrCb);
305
300
  }
306
301
  else if (typeof cb === "function") {
307
302
  if (typeof optionsOrCb !== "object")
308
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
309
304
  this.send(command, optionsOrCb || {}, cb);
310
305
  }
311
306
  else {
312
307
  return this.send(command, optionsOrCb);
313
308
  }
314
- };
315
- Neptune.prototype.deleteDBClusterEndpoint = function (args, optionsOrCb, cb) {
316
- var command = new DeleteDBClusterEndpointCommand(args);
309
+ }
310
+ deleteDBClusterEndpoint(args, optionsOrCb, cb) {
311
+ const command = new DeleteDBClusterEndpointCommand(args);
317
312
  if (typeof optionsOrCb === "function") {
318
313
  this.send(command, optionsOrCb);
319
314
  }
320
315
  else if (typeof cb === "function") {
321
316
  if (typeof optionsOrCb !== "object")
322
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
317
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
323
318
  this.send(command, optionsOrCb || {}, cb);
324
319
  }
325
320
  else {
326
321
  return this.send(command, optionsOrCb);
327
322
  }
328
- };
329
- Neptune.prototype.deleteDBClusterParameterGroup = function (args, optionsOrCb, cb) {
330
- var command = new DeleteDBClusterParameterGroupCommand(args);
323
+ }
324
+ deleteDBClusterParameterGroup(args, optionsOrCb, cb) {
325
+ const command = new DeleteDBClusterParameterGroupCommand(args);
331
326
  if (typeof optionsOrCb === "function") {
332
327
  this.send(command, optionsOrCb);
333
328
  }
334
329
  else if (typeof cb === "function") {
335
330
  if (typeof optionsOrCb !== "object")
336
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
331
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
337
332
  this.send(command, optionsOrCb || {}, cb);
338
333
  }
339
334
  else {
340
335
  return this.send(command, optionsOrCb);
341
336
  }
342
- };
343
- Neptune.prototype.deleteDBClusterSnapshot = function (args, optionsOrCb, cb) {
344
- var command = new DeleteDBClusterSnapshotCommand(args);
337
+ }
338
+ deleteDBClusterSnapshot(args, optionsOrCb, cb) {
339
+ const command = new DeleteDBClusterSnapshotCommand(args);
345
340
  if (typeof optionsOrCb === "function") {
346
341
  this.send(command, optionsOrCb);
347
342
  }
348
343
  else if (typeof cb === "function") {
349
344
  if (typeof optionsOrCb !== "object")
350
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
345
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
346
  this.send(command, optionsOrCb || {}, cb);
352
347
  }
353
348
  else {
354
349
  return this.send(command, optionsOrCb);
355
350
  }
356
- };
357
- Neptune.prototype.deleteDBInstance = function (args, optionsOrCb, cb) {
358
- var command = new DeleteDBInstanceCommand(args);
351
+ }
352
+ deleteDBInstance(args, optionsOrCb, cb) {
353
+ const command = new DeleteDBInstanceCommand(args);
359
354
  if (typeof optionsOrCb === "function") {
360
355
  this.send(command, optionsOrCb);
361
356
  }
362
357
  else if (typeof cb === "function") {
363
358
  if (typeof optionsOrCb !== "object")
364
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
359
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
365
360
  this.send(command, optionsOrCb || {}, cb);
366
361
  }
367
362
  else {
368
363
  return this.send(command, optionsOrCb);
369
364
  }
370
- };
371
- Neptune.prototype.deleteDBParameterGroup = function (args, optionsOrCb, cb) {
372
- var command = new DeleteDBParameterGroupCommand(args);
365
+ }
366
+ deleteDBParameterGroup(args, optionsOrCb, cb) {
367
+ const command = new DeleteDBParameterGroupCommand(args);
373
368
  if (typeof optionsOrCb === "function") {
374
369
  this.send(command, optionsOrCb);
375
370
  }
376
371
  else if (typeof cb === "function") {
377
372
  if (typeof optionsOrCb !== "object")
378
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
373
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
379
374
  this.send(command, optionsOrCb || {}, cb);
380
375
  }
381
376
  else {
382
377
  return this.send(command, optionsOrCb);
383
378
  }
384
- };
385
- Neptune.prototype.deleteDBSubnetGroup = function (args, optionsOrCb, cb) {
386
- var command = new DeleteDBSubnetGroupCommand(args);
379
+ }
380
+ deleteDBSubnetGroup(args, optionsOrCb, cb) {
381
+ const command = new DeleteDBSubnetGroupCommand(args);
387
382
  if (typeof optionsOrCb === "function") {
388
383
  this.send(command, optionsOrCb);
389
384
  }
390
385
  else if (typeof cb === "function") {
391
386
  if (typeof optionsOrCb !== "object")
392
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
387
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
393
388
  this.send(command, optionsOrCb || {}, cb);
394
389
  }
395
390
  else {
396
391
  return this.send(command, optionsOrCb);
397
392
  }
398
- };
399
- Neptune.prototype.deleteEventSubscription = function (args, optionsOrCb, cb) {
400
- var command = new DeleteEventSubscriptionCommand(args);
393
+ }
394
+ deleteEventSubscription(args, optionsOrCb, cb) {
395
+ const command = new DeleteEventSubscriptionCommand(args);
401
396
  if (typeof optionsOrCb === "function") {
402
397
  this.send(command, optionsOrCb);
403
398
  }
404
399
  else if (typeof cb === "function") {
405
400
  if (typeof optionsOrCb !== "object")
406
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
401
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
407
402
  this.send(command, optionsOrCb || {}, cb);
408
403
  }
409
404
  else {
410
405
  return this.send(command, optionsOrCb);
411
406
  }
412
- };
413
- Neptune.prototype.deleteGlobalCluster = function (args, optionsOrCb, cb) {
414
- var command = new DeleteGlobalClusterCommand(args);
407
+ }
408
+ deleteGlobalCluster(args, optionsOrCb, cb) {
409
+ const command = new DeleteGlobalClusterCommand(args);
415
410
  if (typeof optionsOrCb === "function") {
416
411
  this.send(command, optionsOrCb);
417
412
  }
418
413
  else if (typeof cb === "function") {
419
414
  if (typeof optionsOrCb !== "object")
420
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
415
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
421
416
  this.send(command, optionsOrCb || {}, cb);
422
417
  }
423
418
  else {
424
419
  return this.send(command, optionsOrCb);
425
420
  }
426
- };
427
- Neptune.prototype.describeDBClusterEndpoints = function (args, optionsOrCb, cb) {
428
- var command = new DescribeDBClusterEndpointsCommand(args);
421
+ }
422
+ describeDBClusterEndpoints(args, optionsOrCb, cb) {
423
+ const command = new DescribeDBClusterEndpointsCommand(args);
429
424
  if (typeof optionsOrCb === "function") {
430
425
  this.send(command, optionsOrCb);
431
426
  }
432
427
  else if (typeof cb === "function") {
433
428
  if (typeof optionsOrCb !== "object")
434
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
429
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
435
430
  this.send(command, optionsOrCb || {}, cb);
436
431
  }
437
432
  else {
438
433
  return this.send(command, optionsOrCb);
439
434
  }
440
- };
441
- Neptune.prototype.describeDBClusterParameterGroups = function (args, optionsOrCb, cb) {
442
- var command = new DescribeDBClusterParameterGroupsCommand(args);
435
+ }
436
+ describeDBClusterParameterGroups(args, optionsOrCb, cb) {
437
+ const command = new DescribeDBClusterParameterGroupsCommand(args);
443
438
  if (typeof optionsOrCb === "function") {
444
439
  this.send(command, optionsOrCb);
445
440
  }
446
441
  else if (typeof cb === "function") {
447
442
  if (typeof optionsOrCb !== "object")
448
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
443
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
449
444
  this.send(command, optionsOrCb || {}, cb);
450
445
  }
451
446
  else {
452
447
  return this.send(command, optionsOrCb);
453
448
  }
454
- };
455
- Neptune.prototype.describeDBClusterParameters = function (args, optionsOrCb, cb) {
456
- var command = new DescribeDBClusterParametersCommand(args);
449
+ }
450
+ describeDBClusterParameters(args, optionsOrCb, cb) {
451
+ const command = new DescribeDBClusterParametersCommand(args);
457
452
  if (typeof optionsOrCb === "function") {
458
453
  this.send(command, optionsOrCb);
459
454
  }
460
455
  else if (typeof cb === "function") {
461
456
  if (typeof optionsOrCb !== "object")
462
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
457
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
463
458
  this.send(command, optionsOrCb || {}, cb);
464
459
  }
465
460
  else {
466
461
  return this.send(command, optionsOrCb);
467
462
  }
468
- };
469
- Neptune.prototype.describeDBClusters = function (args, optionsOrCb, cb) {
470
- var command = new DescribeDBClustersCommand(args);
463
+ }
464
+ describeDBClusters(args, optionsOrCb, cb) {
465
+ const command = new DescribeDBClustersCommand(args);
471
466
  if (typeof optionsOrCb === "function") {
472
467
  this.send(command, optionsOrCb);
473
468
  }
474
469
  else if (typeof cb === "function") {
475
470
  if (typeof optionsOrCb !== "object")
476
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
471
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
477
472
  this.send(command, optionsOrCb || {}, cb);
478
473
  }
479
474
  else {
480
475
  return this.send(command, optionsOrCb);
481
476
  }
482
- };
483
- Neptune.prototype.describeDBClusterSnapshotAttributes = function (args, optionsOrCb, cb) {
484
- var command = new DescribeDBClusterSnapshotAttributesCommand(args);
477
+ }
478
+ describeDBClusterSnapshotAttributes(args, optionsOrCb, cb) {
479
+ const command = new DescribeDBClusterSnapshotAttributesCommand(args);
485
480
  if (typeof optionsOrCb === "function") {
486
481
  this.send(command, optionsOrCb);
487
482
  }
488
483
  else if (typeof cb === "function") {
489
484
  if (typeof optionsOrCb !== "object")
490
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
485
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
491
486
  this.send(command, optionsOrCb || {}, cb);
492
487
  }
493
488
  else {
494
489
  return this.send(command, optionsOrCb);
495
490
  }
496
- };
497
- Neptune.prototype.describeDBClusterSnapshots = function (args, optionsOrCb, cb) {
498
- var command = new DescribeDBClusterSnapshotsCommand(args);
491
+ }
492
+ describeDBClusterSnapshots(args, optionsOrCb, cb) {
493
+ const command = new DescribeDBClusterSnapshotsCommand(args);
499
494
  if (typeof optionsOrCb === "function") {
500
495
  this.send(command, optionsOrCb);
501
496
  }
502
497
  else if (typeof cb === "function") {
503
498
  if (typeof optionsOrCb !== "object")
504
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
499
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
505
500
  this.send(command, optionsOrCb || {}, cb);
506
501
  }
507
502
  else {
508
503
  return this.send(command, optionsOrCb);
509
504
  }
510
- };
511
- Neptune.prototype.describeDBEngineVersions = function (args, optionsOrCb, cb) {
512
- var command = new DescribeDBEngineVersionsCommand(args);
505
+ }
506
+ describeDBEngineVersions(args, optionsOrCb, cb) {
507
+ const command = new DescribeDBEngineVersionsCommand(args);
513
508
  if (typeof optionsOrCb === "function") {
514
509
  this.send(command, optionsOrCb);
515
510
  }
516
511
  else if (typeof cb === "function") {
517
512
  if (typeof optionsOrCb !== "object")
518
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
513
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
519
514
  this.send(command, optionsOrCb || {}, cb);
520
515
  }
521
516
  else {
522
517
  return this.send(command, optionsOrCb);
523
518
  }
524
- };
525
- Neptune.prototype.describeDBInstances = function (args, optionsOrCb, cb) {
526
- var command = new DescribeDBInstancesCommand(args);
519
+ }
520
+ describeDBInstances(args, optionsOrCb, cb) {
521
+ const command = new DescribeDBInstancesCommand(args);
527
522
  if (typeof optionsOrCb === "function") {
528
523
  this.send(command, optionsOrCb);
529
524
  }
530
525
  else if (typeof cb === "function") {
531
526
  if (typeof optionsOrCb !== "object")
532
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
527
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
533
528
  this.send(command, optionsOrCb || {}, cb);
534
529
  }
535
530
  else {
536
531
  return this.send(command, optionsOrCb);
537
532
  }
538
- };
539
- Neptune.prototype.describeDBParameterGroups = function (args, optionsOrCb, cb) {
540
- var command = new DescribeDBParameterGroupsCommand(args);
533
+ }
534
+ describeDBParameterGroups(args, optionsOrCb, cb) {
535
+ const command = new DescribeDBParameterGroupsCommand(args);
541
536
  if (typeof optionsOrCb === "function") {
542
537
  this.send(command, optionsOrCb);
543
538
  }
544
539
  else if (typeof cb === "function") {
545
540
  if (typeof optionsOrCb !== "object")
546
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
541
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
547
542
  this.send(command, optionsOrCb || {}, cb);
548
543
  }
549
544
  else {
550
545
  return this.send(command, optionsOrCb);
551
546
  }
552
- };
553
- Neptune.prototype.describeDBParameters = function (args, optionsOrCb, cb) {
554
- var command = new DescribeDBParametersCommand(args);
547
+ }
548
+ describeDBParameters(args, optionsOrCb, cb) {
549
+ const command = new DescribeDBParametersCommand(args);
555
550
  if (typeof optionsOrCb === "function") {
556
551
  this.send(command, optionsOrCb);
557
552
  }
558
553
  else if (typeof cb === "function") {
559
554
  if (typeof optionsOrCb !== "object")
560
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
555
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
561
556
  this.send(command, optionsOrCb || {}, cb);
562
557
  }
563
558
  else {
564
559
  return this.send(command, optionsOrCb);
565
560
  }
566
- };
567
- Neptune.prototype.describeDBSubnetGroups = function (args, optionsOrCb, cb) {
568
- var command = new DescribeDBSubnetGroupsCommand(args);
561
+ }
562
+ describeDBSubnetGroups(args, optionsOrCb, cb) {
563
+ const command = new DescribeDBSubnetGroupsCommand(args);
569
564
  if (typeof optionsOrCb === "function") {
570
565
  this.send(command, optionsOrCb);
571
566
  }
572
567
  else if (typeof cb === "function") {
573
568
  if (typeof optionsOrCb !== "object")
574
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
569
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
575
570
  this.send(command, optionsOrCb || {}, cb);
576
571
  }
577
572
  else {
578
573
  return this.send(command, optionsOrCb);
579
574
  }
580
- };
581
- Neptune.prototype.describeEngineDefaultClusterParameters = function (args, optionsOrCb, cb) {
582
- var command = new DescribeEngineDefaultClusterParametersCommand(args);
575
+ }
576
+ describeEngineDefaultClusterParameters(args, optionsOrCb, cb) {
577
+ const command = new DescribeEngineDefaultClusterParametersCommand(args);
583
578
  if (typeof optionsOrCb === "function") {
584
579
  this.send(command, optionsOrCb);
585
580
  }
586
581
  else if (typeof cb === "function") {
587
582
  if (typeof optionsOrCb !== "object")
588
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
583
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
589
584
  this.send(command, optionsOrCb || {}, cb);
590
585
  }
591
586
  else {
592
587
  return this.send(command, optionsOrCb);
593
588
  }
594
- };
595
- Neptune.prototype.describeEngineDefaultParameters = function (args, optionsOrCb, cb) {
596
- var command = new DescribeEngineDefaultParametersCommand(args);
589
+ }
590
+ describeEngineDefaultParameters(args, optionsOrCb, cb) {
591
+ const command = new DescribeEngineDefaultParametersCommand(args);
597
592
  if (typeof optionsOrCb === "function") {
598
593
  this.send(command, optionsOrCb);
599
594
  }
600
595
  else if (typeof cb === "function") {
601
596
  if (typeof optionsOrCb !== "object")
602
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
597
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
603
598
  this.send(command, optionsOrCb || {}, cb);
604
599
  }
605
600
  else {
606
601
  return this.send(command, optionsOrCb);
607
602
  }
608
- };
609
- Neptune.prototype.describeEventCategories = function (args, optionsOrCb, cb) {
610
- var command = new DescribeEventCategoriesCommand(args);
603
+ }
604
+ describeEventCategories(args, optionsOrCb, cb) {
605
+ const command = new DescribeEventCategoriesCommand(args);
611
606
  if (typeof optionsOrCb === "function") {
612
607
  this.send(command, optionsOrCb);
613
608
  }
614
609
  else if (typeof cb === "function") {
615
610
  if (typeof optionsOrCb !== "object")
616
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
611
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
617
612
  this.send(command, optionsOrCb || {}, cb);
618
613
  }
619
614
  else {
620
615
  return this.send(command, optionsOrCb);
621
616
  }
622
- };
623
- Neptune.prototype.describeEvents = function (args, optionsOrCb, cb) {
624
- var command = new DescribeEventsCommand(args);
617
+ }
618
+ describeEvents(args, optionsOrCb, cb) {
619
+ const command = new DescribeEventsCommand(args);
625
620
  if (typeof optionsOrCb === "function") {
626
621
  this.send(command, optionsOrCb);
627
622
  }
628
623
  else if (typeof cb === "function") {
629
624
  if (typeof optionsOrCb !== "object")
630
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
625
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
631
626
  this.send(command, optionsOrCb || {}, cb);
632
627
  }
633
628
  else {
634
629
  return this.send(command, optionsOrCb);
635
630
  }
636
- };
637
- Neptune.prototype.describeEventSubscriptions = function (args, optionsOrCb, cb) {
638
- var command = new DescribeEventSubscriptionsCommand(args);
631
+ }
632
+ describeEventSubscriptions(args, optionsOrCb, cb) {
633
+ const command = new DescribeEventSubscriptionsCommand(args);
639
634
  if (typeof optionsOrCb === "function") {
640
635
  this.send(command, optionsOrCb);
641
636
  }
642
637
  else if (typeof cb === "function") {
643
638
  if (typeof optionsOrCb !== "object")
644
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
639
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
645
640
  this.send(command, optionsOrCb || {}, cb);
646
641
  }
647
642
  else {
648
643
  return this.send(command, optionsOrCb);
649
644
  }
650
- };
651
- Neptune.prototype.describeGlobalClusters = function (args, optionsOrCb, cb) {
652
- var command = new DescribeGlobalClustersCommand(args);
645
+ }
646
+ describeGlobalClusters(args, optionsOrCb, cb) {
647
+ const command = new DescribeGlobalClustersCommand(args);
653
648
  if (typeof optionsOrCb === "function") {
654
649
  this.send(command, optionsOrCb);
655
650
  }
656
651
  else if (typeof cb === "function") {
657
652
  if (typeof optionsOrCb !== "object")
658
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
653
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
659
654
  this.send(command, optionsOrCb || {}, cb);
660
655
  }
661
656
  else {
662
657
  return this.send(command, optionsOrCb);
663
658
  }
664
- };
665
- Neptune.prototype.describeOrderableDBInstanceOptions = function (args, optionsOrCb, cb) {
666
- var command = new DescribeOrderableDBInstanceOptionsCommand(args);
659
+ }
660
+ describeOrderableDBInstanceOptions(args, optionsOrCb, cb) {
661
+ const command = new DescribeOrderableDBInstanceOptionsCommand(args);
667
662
  if (typeof optionsOrCb === "function") {
668
663
  this.send(command, optionsOrCb);
669
664
  }
670
665
  else if (typeof cb === "function") {
671
666
  if (typeof optionsOrCb !== "object")
672
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
667
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
673
668
  this.send(command, optionsOrCb || {}, cb);
674
669
  }
675
670
  else {
676
671
  return this.send(command, optionsOrCb);
677
672
  }
678
- };
679
- Neptune.prototype.describePendingMaintenanceActions = function (args, optionsOrCb, cb) {
680
- var command = new DescribePendingMaintenanceActionsCommand(args);
673
+ }
674
+ describePendingMaintenanceActions(args, optionsOrCb, cb) {
675
+ const command = new DescribePendingMaintenanceActionsCommand(args);
681
676
  if (typeof optionsOrCb === "function") {
682
677
  this.send(command, optionsOrCb);
683
678
  }
684
679
  else if (typeof cb === "function") {
685
680
  if (typeof optionsOrCb !== "object")
686
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
681
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
687
682
  this.send(command, optionsOrCb || {}, cb);
688
683
  }
689
684
  else {
690
685
  return this.send(command, optionsOrCb);
691
686
  }
692
- };
693
- Neptune.prototype.describeValidDBInstanceModifications = function (args, optionsOrCb, cb) {
694
- var command = new DescribeValidDBInstanceModificationsCommand(args);
687
+ }
688
+ describeValidDBInstanceModifications(args, optionsOrCb, cb) {
689
+ const command = new DescribeValidDBInstanceModificationsCommand(args);
695
690
  if (typeof optionsOrCb === "function") {
696
691
  this.send(command, optionsOrCb);
697
692
  }
698
693
  else if (typeof cb === "function") {
699
694
  if (typeof optionsOrCb !== "object")
700
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
695
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
701
696
  this.send(command, optionsOrCb || {}, cb);
702
697
  }
703
698
  else {
704
699
  return this.send(command, optionsOrCb);
705
700
  }
706
- };
707
- Neptune.prototype.failoverDBCluster = function (args, optionsOrCb, cb) {
708
- var command = new FailoverDBClusterCommand(args);
701
+ }
702
+ failoverDBCluster(args, optionsOrCb, cb) {
703
+ const command = new FailoverDBClusterCommand(args);
709
704
  if (typeof optionsOrCb === "function") {
710
705
  this.send(command, optionsOrCb);
711
706
  }
712
707
  else if (typeof cb === "function") {
713
708
  if (typeof optionsOrCb !== "object")
714
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
709
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
715
710
  this.send(command, optionsOrCb || {}, cb);
716
711
  }
717
712
  else {
718
713
  return this.send(command, optionsOrCb);
719
714
  }
720
- };
721
- Neptune.prototype.failoverGlobalCluster = function (args, optionsOrCb, cb) {
722
- var command = new FailoverGlobalClusterCommand(args);
715
+ }
716
+ failoverGlobalCluster(args, optionsOrCb, cb) {
717
+ const command = new FailoverGlobalClusterCommand(args);
723
718
  if (typeof optionsOrCb === "function") {
724
719
  this.send(command, optionsOrCb);
725
720
  }
726
721
  else if (typeof cb === "function") {
727
722
  if (typeof optionsOrCb !== "object")
728
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
723
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
729
724
  this.send(command, optionsOrCb || {}, cb);
730
725
  }
731
726
  else {
732
727
  return this.send(command, optionsOrCb);
733
728
  }
734
- };
735
- Neptune.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
736
- var command = new ListTagsForResourceCommand(args);
729
+ }
730
+ listTagsForResource(args, optionsOrCb, cb) {
731
+ const command = new ListTagsForResourceCommand(args);
737
732
  if (typeof optionsOrCb === "function") {
738
733
  this.send(command, optionsOrCb);
739
734
  }
740
735
  else if (typeof cb === "function") {
741
736
  if (typeof optionsOrCb !== "object")
742
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
737
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
743
738
  this.send(command, optionsOrCb || {}, cb);
744
739
  }
745
740
  else {
746
741
  return this.send(command, optionsOrCb);
747
742
  }
748
- };
749
- Neptune.prototype.modifyDBCluster = function (args, optionsOrCb, cb) {
750
- var command = new ModifyDBClusterCommand(args);
743
+ }
744
+ modifyDBCluster(args, optionsOrCb, cb) {
745
+ const command = new ModifyDBClusterCommand(args);
751
746
  if (typeof optionsOrCb === "function") {
752
747
  this.send(command, optionsOrCb);
753
748
  }
754
749
  else if (typeof cb === "function") {
755
750
  if (typeof optionsOrCb !== "object")
756
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
751
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
757
752
  this.send(command, optionsOrCb || {}, cb);
758
753
  }
759
754
  else {
760
755
  return this.send(command, optionsOrCb);
761
756
  }
762
- };
763
- Neptune.prototype.modifyDBClusterEndpoint = function (args, optionsOrCb, cb) {
764
- var command = new ModifyDBClusterEndpointCommand(args);
757
+ }
758
+ modifyDBClusterEndpoint(args, optionsOrCb, cb) {
759
+ const command = new ModifyDBClusterEndpointCommand(args);
765
760
  if (typeof optionsOrCb === "function") {
766
761
  this.send(command, optionsOrCb);
767
762
  }
768
763
  else if (typeof cb === "function") {
769
764
  if (typeof optionsOrCb !== "object")
770
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
765
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
771
766
  this.send(command, optionsOrCb || {}, cb);
772
767
  }
773
768
  else {
774
769
  return this.send(command, optionsOrCb);
775
770
  }
776
- };
777
- Neptune.prototype.modifyDBClusterParameterGroup = function (args, optionsOrCb, cb) {
778
- var command = new ModifyDBClusterParameterGroupCommand(args);
771
+ }
772
+ modifyDBClusterParameterGroup(args, optionsOrCb, cb) {
773
+ const command = new ModifyDBClusterParameterGroupCommand(args);
779
774
  if (typeof optionsOrCb === "function") {
780
775
  this.send(command, optionsOrCb);
781
776
  }
782
777
  else if (typeof cb === "function") {
783
778
  if (typeof optionsOrCb !== "object")
784
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
779
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
785
780
  this.send(command, optionsOrCb || {}, cb);
786
781
  }
787
782
  else {
788
783
  return this.send(command, optionsOrCb);
789
784
  }
790
- };
791
- Neptune.prototype.modifyDBClusterSnapshotAttribute = function (args, optionsOrCb, cb) {
792
- var command = new ModifyDBClusterSnapshotAttributeCommand(args);
785
+ }
786
+ modifyDBClusterSnapshotAttribute(args, optionsOrCb, cb) {
787
+ const command = new ModifyDBClusterSnapshotAttributeCommand(args);
793
788
  if (typeof optionsOrCb === "function") {
794
789
  this.send(command, optionsOrCb);
795
790
  }
796
791
  else if (typeof cb === "function") {
797
792
  if (typeof optionsOrCb !== "object")
798
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
793
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
799
794
  this.send(command, optionsOrCb || {}, cb);
800
795
  }
801
796
  else {
802
797
  return this.send(command, optionsOrCb);
803
798
  }
804
- };
805
- Neptune.prototype.modifyDBInstance = function (args, optionsOrCb, cb) {
806
- var command = new ModifyDBInstanceCommand(args);
799
+ }
800
+ modifyDBInstance(args, optionsOrCb, cb) {
801
+ const command = new ModifyDBInstanceCommand(args);
807
802
  if (typeof optionsOrCb === "function") {
808
803
  this.send(command, optionsOrCb);
809
804
  }
810
805
  else if (typeof cb === "function") {
811
806
  if (typeof optionsOrCb !== "object")
812
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
807
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
813
808
  this.send(command, optionsOrCb || {}, cb);
814
809
  }
815
810
  else {
816
811
  return this.send(command, optionsOrCb);
817
812
  }
818
- };
819
- Neptune.prototype.modifyDBParameterGroup = function (args, optionsOrCb, cb) {
820
- var command = new ModifyDBParameterGroupCommand(args);
813
+ }
814
+ modifyDBParameterGroup(args, optionsOrCb, cb) {
815
+ const command = new ModifyDBParameterGroupCommand(args);
821
816
  if (typeof optionsOrCb === "function") {
822
817
  this.send(command, optionsOrCb);
823
818
  }
824
819
  else if (typeof cb === "function") {
825
820
  if (typeof optionsOrCb !== "object")
826
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
821
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
827
822
  this.send(command, optionsOrCb || {}, cb);
828
823
  }
829
824
  else {
830
825
  return this.send(command, optionsOrCb);
831
826
  }
832
- };
833
- Neptune.prototype.modifyDBSubnetGroup = function (args, optionsOrCb, cb) {
834
- var command = new ModifyDBSubnetGroupCommand(args);
827
+ }
828
+ modifyDBSubnetGroup(args, optionsOrCb, cb) {
829
+ const command = new ModifyDBSubnetGroupCommand(args);
835
830
  if (typeof optionsOrCb === "function") {
836
831
  this.send(command, optionsOrCb);
837
832
  }
838
833
  else if (typeof cb === "function") {
839
834
  if (typeof optionsOrCb !== "object")
840
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
835
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
841
836
  this.send(command, optionsOrCb || {}, cb);
842
837
  }
843
838
  else {
844
839
  return this.send(command, optionsOrCb);
845
840
  }
846
- };
847
- Neptune.prototype.modifyEventSubscription = function (args, optionsOrCb, cb) {
848
- var command = new ModifyEventSubscriptionCommand(args);
841
+ }
842
+ modifyEventSubscription(args, optionsOrCb, cb) {
843
+ const command = new ModifyEventSubscriptionCommand(args);
849
844
  if (typeof optionsOrCb === "function") {
850
845
  this.send(command, optionsOrCb);
851
846
  }
852
847
  else if (typeof cb === "function") {
853
848
  if (typeof optionsOrCb !== "object")
854
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
849
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
855
850
  this.send(command, optionsOrCb || {}, cb);
856
851
  }
857
852
  else {
858
853
  return this.send(command, optionsOrCb);
859
854
  }
860
- };
861
- Neptune.prototype.modifyGlobalCluster = function (args, optionsOrCb, cb) {
862
- var command = new ModifyGlobalClusterCommand(args);
855
+ }
856
+ modifyGlobalCluster(args, optionsOrCb, cb) {
857
+ const command = new ModifyGlobalClusterCommand(args);
863
858
  if (typeof optionsOrCb === "function") {
864
859
  this.send(command, optionsOrCb);
865
860
  }
866
861
  else if (typeof cb === "function") {
867
862
  if (typeof optionsOrCb !== "object")
868
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
863
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
869
864
  this.send(command, optionsOrCb || {}, cb);
870
865
  }
871
866
  else {
872
867
  return this.send(command, optionsOrCb);
873
868
  }
874
- };
875
- Neptune.prototype.promoteReadReplicaDBCluster = function (args, optionsOrCb, cb) {
876
- var command = new PromoteReadReplicaDBClusterCommand(args);
869
+ }
870
+ promoteReadReplicaDBCluster(args, optionsOrCb, cb) {
871
+ const command = new PromoteReadReplicaDBClusterCommand(args);
877
872
  if (typeof optionsOrCb === "function") {
878
873
  this.send(command, optionsOrCb);
879
874
  }
880
875
  else if (typeof cb === "function") {
881
876
  if (typeof optionsOrCb !== "object")
882
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
877
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
883
878
  this.send(command, optionsOrCb || {}, cb);
884
879
  }
885
880
  else {
886
881
  return this.send(command, optionsOrCb);
887
882
  }
888
- };
889
- Neptune.prototype.rebootDBInstance = function (args, optionsOrCb, cb) {
890
- var command = new RebootDBInstanceCommand(args);
883
+ }
884
+ rebootDBInstance(args, optionsOrCb, cb) {
885
+ const command = new RebootDBInstanceCommand(args);
891
886
  if (typeof optionsOrCb === "function") {
892
887
  this.send(command, optionsOrCb);
893
888
  }
894
889
  else if (typeof cb === "function") {
895
890
  if (typeof optionsOrCb !== "object")
896
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
891
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
897
892
  this.send(command, optionsOrCb || {}, cb);
898
893
  }
899
894
  else {
900
895
  return this.send(command, optionsOrCb);
901
896
  }
902
- };
903
- Neptune.prototype.removeFromGlobalCluster = function (args, optionsOrCb, cb) {
904
- var command = new RemoveFromGlobalClusterCommand(args);
897
+ }
898
+ removeFromGlobalCluster(args, optionsOrCb, cb) {
899
+ const command = new RemoveFromGlobalClusterCommand(args);
905
900
  if (typeof optionsOrCb === "function") {
906
901
  this.send(command, optionsOrCb);
907
902
  }
908
903
  else if (typeof cb === "function") {
909
904
  if (typeof optionsOrCb !== "object")
910
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
905
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
911
906
  this.send(command, optionsOrCb || {}, cb);
912
907
  }
913
908
  else {
914
909
  return this.send(command, optionsOrCb);
915
910
  }
916
- };
917
- Neptune.prototype.removeRoleFromDBCluster = function (args, optionsOrCb, cb) {
918
- var command = new RemoveRoleFromDBClusterCommand(args);
911
+ }
912
+ removeRoleFromDBCluster(args, optionsOrCb, cb) {
913
+ const command = new RemoveRoleFromDBClusterCommand(args);
919
914
  if (typeof optionsOrCb === "function") {
920
915
  this.send(command, optionsOrCb);
921
916
  }
922
917
  else if (typeof cb === "function") {
923
918
  if (typeof optionsOrCb !== "object")
924
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
919
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
925
920
  this.send(command, optionsOrCb || {}, cb);
926
921
  }
927
922
  else {
928
923
  return this.send(command, optionsOrCb);
929
924
  }
930
- };
931
- Neptune.prototype.removeSourceIdentifierFromSubscription = function (args, optionsOrCb, cb) {
932
- var command = new RemoveSourceIdentifierFromSubscriptionCommand(args);
925
+ }
926
+ removeSourceIdentifierFromSubscription(args, optionsOrCb, cb) {
927
+ const command = new RemoveSourceIdentifierFromSubscriptionCommand(args);
933
928
  if (typeof optionsOrCb === "function") {
934
929
  this.send(command, optionsOrCb);
935
930
  }
936
931
  else if (typeof cb === "function") {
937
932
  if (typeof optionsOrCb !== "object")
938
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
933
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
939
934
  this.send(command, optionsOrCb || {}, cb);
940
935
  }
941
936
  else {
942
937
  return this.send(command, optionsOrCb);
943
938
  }
944
- };
945
- Neptune.prototype.removeTagsFromResource = function (args, optionsOrCb, cb) {
946
- var command = new RemoveTagsFromResourceCommand(args);
939
+ }
940
+ removeTagsFromResource(args, optionsOrCb, cb) {
941
+ const command = new RemoveTagsFromResourceCommand(args);
947
942
  if (typeof optionsOrCb === "function") {
948
943
  this.send(command, optionsOrCb);
949
944
  }
950
945
  else if (typeof cb === "function") {
951
946
  if (typeof optionsOrCb !== "object")
952
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
947
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
953
948
  this.send(command, optionsOrCb || {}, cb);
954
949
  }
955
950
  else {
956
951
  return this.send(command, optionsOrCb);
957
952
  }
958
- };
959
- Neptune.prototype.resetDBClusterParameterGroup = function (args, optionsOrCb, cb) {
960
- var command = new ResetDBClusterParameterGroupCommand(args);
953
+ }
954
+ resetDBClusterParameterGroup(args, optionsOrCb, cb) {
955
+ const command = new ResetDBClusterParameterGroupCommand(args);
961
956
  if (typeof optionsOrCb === "function") {
962
957
  this.send(command, optionsOrCb);
963
958
  }
964
959
  else if (typeof cb === "function") {
965
960
  if (typeof optionsOrCb !== "object")
966
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
961
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
967
962
  this.send(command, optionsOrCb || {}, cb);
968
963
  }
969
964
  else {
970
965
  return this.send(command, optionsOrCb);
971
966
  }
972
- };
973
- Neptune.prototype.resetDBParameterGroup = function (args, optionsOrCb, cb) {
974
- var command = new ResetDBParameterGroupCommand(args);
967
+ }
968
+ resetDBParameterGroup(args, optionsOrCb, cb) {
969
+ const command = new ResetDBParameterGroupCommand(args);
975
970
  if (typeof optionsOrCb === "function") {
976
971
  this.send(command, optionsOrCb);
977
972
  }
978
973
  else if (typeof cb === "function") {
979
974
  if (typeof optionsOrCb !== "object")
980
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
975
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
981
976
  this.send(command, optionsOrCb || {}, cb);
982
977
  }
983
978
  else {
984
979
  return this.send(command, optionsOrCb);
985
980
  }
986
- };
987
- Neptune.prototype.restoreDBClusterFromSnapshot = function (args, optionsOrCb, cb) {
988
- var command = new RestoreDBClusterFromSnapshotCommand(args);
981
+ }
982
+ restoreDBClusterFromSnapshot(args, optionsOrCb, cb) {
983
+ const command = new RestoreDBClusterFromSnapshotCommand(args);
989
984
  if (typeof optionsOrCb === "function") {
990
985
  this.send(command, optionsOrCb);
991
986
  }
992
987
  else if (typeof cb === "function") {
993
988
  if (typeof optionsOrCb !== "object")
994
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
989
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
995
990
  this.send(command, optionsOrCb || {}, cb);
996
991
  }
997
992
  else {
998
993
  return this.send(command, optionsOrCb);
999
994
  }
1000
- };
1001
- Neptune.prototype.restoreDBClusterToPointInTime = function (args, optionsOrCb, cb) {
1002
- var command = new RestoreDBClusterToPointInTimeCommand(args);
995
+ }
996
+ restoreDBClusterToPointInTime(args, optionsOrCb, cb) {
997
+ const command = new RestoreDBClusterToPointInTimeCommand(args);
1003
998
  if (typeof optionsOrCb === "function") {
1004
999
  this.send(command, optionsOrCb);
1005
1000
  }
1006
1001
  else if (typeof cb === "function") {
1007
1002
  if (typeof optionsOrCb !== "object")
1008
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1003
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1009
1004
  this.send(command, optionsOrCb || {}, cb);
1010
1005
  }
1011
1006
  else {
1012
1007
  return this.send(command, optionsOrCb);
1013
1008
  }
1014
- };
1015
- Neptune.prototype.startDBCluster = function (args, optionsOrCb, cb) {
1016
- var command = new StartDBClusterCommand(args);
1009
+ }
1010
+ startDBCluster(args, optionsOrCb, cb) {
1011
+ const command = new StartDBClusterCommand(args);
1017
1012
  if (typeof optionsOrCb === "function") {
1018
1013
  this.send(command, optionsOrCb);
1019
1014
  }
1020
1015
  else if (typeof cb === "function") {
1021
1016
  if (typeof optionsOrCb !== "object")
1022
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1017
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1023
1018
  this.send(command, optionsOrCb || {}, cb);
1024
1019
  }
1025
1020
  else {
1026
1021
  return this.send(command, optionsOrCb);
1027
1022
  }
1028
- };
1029
- Neptune.prototype.stopDBCluster = function (args, optionsOrCb, cb) {
1030
- var command = new StopDBClusterCommand(args);
1023
+ }
1024
+ stopDBCluster(args, optionsOrCb, cb) {
1025
+ const command = new StopDBClusterCommand(args);
1031
1026
  if (typeof optionsOrCb === "function") {
1032
1027
  this.send(command, optionsOrCb);
1033
1028
  }
1034
1029
  else if (typeof cb === "function") {
1035
1030
  if (typeof optionsOrCb !== "object")
1036
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1031
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1037
1032
  this.send(command, optionsOrCb || {}, cb);
1038
1033
  }
1039
1034
  else {
1040
1035
  return this.send(command, optionsOrCb);
1041
1036
  }
1042
- };
1043
- return Neptune;
1044
- }(NeptuneClient));
1045
- export { Neptune };
1037
+ }
1038
+ }