@aws-sdk/client-kinesis-analytics-v2 3.183.0 → 3.185.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 (44) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_json1_1.js +2 -2
  3. package/dist-es/KinesisAnalyticsV2.js +133 -126
  4. package/dist-es/KinesisAnalyticsV2Client.js +28 -22
  5. package/dist-es/commands/AddApplicationCloudWatchLoggingOptionCommand.js +28 -21
  6. package/dist-es/commands/AddApplicationInputCommand.js +28 -21
  7. package/dist-es/commands/AddApplicationInputProcessingConfigurationCommand.js +28 -21
  8. package/dist-es/commands/AddApplicationOutputCommand.js +28 -21
  9. package/dist-es/commands/AddApplicationReferenceDataSourceCommand.js +28 -21
  10. package/dist-es/commands/AddApplicationVpcConfigurationCommand.js +28 -21
  11. package/dist-es/commands/CreateApplicationCommand.js +28 -21
  12. package/dist-es/commands/CreateApplicationPresignedUrlCommand.js +28 -21
  13. package/dist-es/commands/CreateApplicationSnapshotCommand.js +28 -21
  14. package/dist-es/commands/DeleteApplicationCloudWatchLoggingOptionCommand.js +28 -21
  15. package/dist-es/commands/DeleteApplicationCommand.js +28 -21
  16. package/dist-es/commands/DeleteApplicationInputProcessingConfigurationCommand.js +28 -21
  17. package/dist-es/commands/DeleteApplicationOutputCommand.js +28 -21
  18. package/dist-es/commands/DeleteApplicationReferenceDataSourceCommand.js +28 -21
  19. package/dist-es/commands/DeleteApplicationSnapshotCommand.js +28 -21
  20. package/dist-es/commands/DeleteApplicationVpcConfigurationCommand.js +28 -21
  21. package/dist-es/commands/DescribeApplicationCommand.js +28 -21
  22. package/dist-es/commands/DescribeApplicationSnapshotCommand.js +28 -21
  23. package/dist-es/commands/DescribeApplicationVersionCommand.js +28 -21
  24. package/dist-es/commands/DiscoverInputSchemaCommand.js +28 -21
  25. package/dist-es/commands/ListApplicationSnapshotsCommand.js +28 -21
  26. package/dist-es/commands/ListApplicationVersionsCommand.js +28 -21
  27. package/dist-es/commands/ListApplicationsCommand.js +28 -21
  28. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  29. package/dist-es/commands/RollbackApplicationCommand.js +28 -21
  30. package/dist-es/commands/StartApplicationCommand.js +28 -21
  31. package/dist-es/commands/StopApplicationCommand.js +28 -21
  32. package/dist-es/commands/TagResourceCommand.js +28 -21
  33. package/dist-es/commands/UntagResourceCommand.js +28 -21
  34. package/dist-es/commands/UpdateApplicationCommand.js +28 -21
  35. package/dist-es/commands/UpdateApplicationMaintenanceConfigurationCommand.js +28 -21
  36. package/dist-es/endpoints.js +8 -8
  37. package/dist-es/models/KinesisAnalyticsV2ServiceException.js +10 -5
  38. package/dist-es/models/models_0.js +339 -700
  39. package/dist-es/protocols/Aws_json1_1.js +3333 -2967
  40. package/dist-es/runtimeConfig.browser.js +12 -26
  41. package/dist-es/runtimeConfig.js +12 -30
  42. package/dist-es/runtimeConfig.native.js +5 -8
  43. package/dist-es/runtimeConfig.shared.js +11 -8
  44. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-kinesis-analytics-v2
@@ -3901,10 +3901,10 @@ const deserializeAws_json1_1ZeppelinMonitoringConfigurationDescription = (output
3901
3901
  };
3902
3902
  };
3903
3903
  const deserializeMetadata = (output) => {
3904
- var _a;
3904
+ var _a, _b;
3905
3905
  return ({
3906
3906
  httpStatusCode: output.statusCode,
3907
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
3907
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
3908
3908
  extendedRequestId: output.headers["x-amz-id-2"],
3909
3909
  cfId: output.headers["x-amz-cf-id"],
3910
3910
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AddApplicationCloudWatchLoggingOptionCommand, } from "./commands/AddApplicationCloudWatchLoggingOptionCommand";
2
3
  import { AddApplicationInputCommand, } from "./commands/AddApplicationInputCommand";
3
4
  import { AddApplicationInputProcessingConfigurationCommand, } from "./commands/AddApplicationInputProcessingConfigurationCommand";
@@ -30,439 +31,445 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
30
31
  import { UpdateApplicationCommand, } from "./commands/UpdateApplicationCommand";
31
32
  import { UpdateApplicationMaintenanceConfigurationCommand, } from "./commands/UpdateApplicationMaintenanceConfigurationCommand";
32
33
  import { KinesisAnalyticsV2Client } from "./KinesisAnalyticsV2Client";
33
- export class KinesisAnalyticsV2 extends KinesisAnalyticsV2Client {
34
- addApplicationCloudWatchLoggingOption(args, optionsOrCb, cb) {
35
- const command = new AddApplicationCloudWatchLoggingOptionCommand(args);
34
+ var KinesisAnalyticsV2 = (function (_super) {
35
+ __extends(KinesisAnalyticsV2, _super);
36
+ function KinesisAnalyticsV2() {
37
+ return _super !== null && _super.apply(this, arguments) || this;
38
+ }
39
+ KinesisAnalyticsV2.prototype.addApplicationCloudWatchLoggingOption = function (args, optionsOrCb, cb) {
40
+ var command = new AddApplicationCloudWatchLoggingOptionCommand(args);
36
41
  if (typeof optionsOrCb === "function") {
37
42
  this.send(command, optionsOrCb);
38
43
  }
39
44
  else if (typeof cb === "function") {
40
45
  if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
46
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
42
47
  this.send(command, optionsOrCb || {}, cb);
43
48
  }
44
49
  else {
45
50
  return this.send(command, optionsOrCb);
46
51
  }
47
- }
48
- addApplicationInput(args, optionsOrCb, cb) {
49
- const command = new AddApplicationInputCommand(args);
52
+ };
53
+ KinesisAnalyticsV2.prototype.addApplicationInput = function (args, optionsOrCb, cb) {
54
+ var command = new AddApplicationInputCommand(args);
50
55
  if (typeof optionsOrCb === "function") {
51
56
  this.send(command, optionsOrCb);
52
57
  }
53
58
  else if (typeof cb === "function") {
54
59
  if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
60
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
56
61
  this.send(command, optionsOrCb || {}, cb);
57
62
  }
58
63
  else {
59
64
  return this.send(command, optionsOrCb);
60
65
  }
61
- }
62
- addApplicationInputProcessingConfiguration(args, optionsOrCb, cb) {
63
- const command = new AddApplicationInputProcessingConfigurationCommand(args);
66
+ };
67
+ KinesisAnalyticsV2.prototype.addApplicationInputProcessingConfiguration = function (args, optionsOrCb, cb) {
68
+ var command = new AddApplicationInputProcessingConfigurationCommand(args);
64
69
  if (typeof optionsOrCb === "function") {
65
70
  this.send(command, optionsOrCb);
66
71
  }
67
72
  else if (typeof cb === "function") {
68
73
  if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
74
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
70
75
  this.send(command, optionsOrCb || {}, cb);
71
76
  }
72
77
  else {
73
78
  return this.send(command, optionsOrCb);
74
79
  }
75
- }
76
- addApplicationOutput(args, optionsOrCb, cb) {
77
- const command = new AddApplicationOutputCommand(args);
80
+ };
81
+ KinesisAnalyticsV2.prototype.addApplicationOutput = function (args, optionsOrCb, cb) {
82
+ var command = new AddApplicationOutputCommand(args);
78
83
  if (typeof optionsOrCb === "function") {
79
84
  this.send(command, optionsOrCb);
80
85
  }
81
86
  else if (typeof cb === "function") {
82
87
  if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
88
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
84
89
  this.send(command, optionsOrCb || {}, cb);
85
90
  }
86
91
  else {
87
92
  return this.send(command, optionsOrCb);
88
93
  }
89
- }
90
- addApplicationReferenceDataSource(args, optionsOrCb, cb) {
91
- const command = new AddApplicationReferenceDataSourceCommand(args);
94
+ };
95
+ KinesisAnalyticsV2.prototype.addApplicationReferenceDataSource = function (args, optionsOrCb, cb) {
96
+ var command = new AddApplicationReferenceDataSourceCommand(args);
92
97
  if (typeof optionsOrCb === "function") {
93
98
  this.send(command, optionsOrCb);
94
99
  }
95
100
  else if (typeof cb === "function") {
96
101
  if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
102
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
98
103
  this.send(command, optionsOrCb || {}, cb);
99
104
  }
100
105
  else {
101
106
  return this.send(command, optionsOrCb);
102
107
  }
103
- }
104
- addApplicationVpcConfiguration(args, optionsOrCb, cb) {
105
- const command = new AddApplicationVpcConfigurationCommand(args);
108
+ };
109
+ KinesisAnalyticsV2.prototype.addApplicationVpcConfiguration = function (args, optionsOrCb, cb) {
110
+ var command = new AddApplicationVpcConfigurationCommand(args);
106
111
  if (typeof optionsOrCb === "function") {
107
112
  this.send(command, optionsOrCb);
108
113
  }
109
114
  else if (typeof cb === "function") {
110
115
  if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
116
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
112
117
  this.send(command, optionsOrCb || {}, cb);
113
118
  }
114
119
  else {
115
120
  return this.send(command, optionsOrCb);
116
121
  }
117
- }
118
- createApplication(args, optionsOrCb, cb) {
119
- const command = new CreateApplicationCommand(args);
122
+ };
123
+ KinesisAnalyticsV2.prototype.createApplication = function (args, optionsOrCb, cb) {
124
+ var command = new CreateApplicationCommand(args);
120
125
  if (typeof optionsOrCb === "function") {
121
126
  this.send(command, optionsOrCb);
122
127
  }
123
128
  else if (typeof cb === "function") {
124
129
  if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
130
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
126
131
  this.send(command, optionsOrCb || {}, cb);
127
132
  }
128
133
  else {
129
134
  return this.send(command, optionsOrCb);
130
135
  }
131
- }
132
- createApplicationPresignedUrl(args, optionsOrCb, cb) {
133
- const command = new CreateApplicationPresignedUrlCommand(args);
136
+ };
137
+ KinesisAnalyticsV2.prototype.createApplicationPresignedUrl = function (args, optionsOrCb, cb) {
138
+ var command = new CreateApplicationPresignedUrlCommand(args);
134
139
  if (typeof optionsOrCb === "function") {
135
140
  this.send(command, optionsOrCb);
136
141
  }
137
142
  else if (typeof cb === "function") {
138
143
  if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
144
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
140
145
  this.send(command, optionsOrCb || {}, cb);
141
146
  }
142
147
  else {
143
148
  return this.send(command, optionsOrCb);
144
149
  }
145
- }
146
- createApplicationSnapshot(args, optionsOrCb, cb) {
147
- const command = new CreateApplicationSnapshotCommand(args);
150
+ };
151
+ KinesisAnalyticsV2.prototype.createApplicationSnapshot = function (args, optionsOrCb, cb) {
152
+ var command = new CreateApplicationSnapshotCommand(args);
148
153
  if (typeof optionsOrCb === "function") {
149
154
  this.send(command, optionsOrCb);
150
155
  }
151
156
  else if (typeof cb === "function") {
152
157
  if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
158
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
154
159
  this.send(command, optionsOrCb || {}, cb);
155
160
  }
156
161
  else {
157
162
  return this.send(command, optionsOrCb);
158
163
  }
159
- }
160
- deleteApplication(args, optionsOrCb, cb) {
161
- const command = new DeleteApplicationCommand(args);
164
+ };
165
+ KinesisAnalyticsV2.prototype.deleteApplication = function (args, optionsOrCb, cb) {
166
+ var command = new DeleteApplicationCommand(args);
162
167
  if (typeof optionsOrCb === "function") {
163
168
  this.send(command, optionsOrCb);
164
169
  }
165
170
  else if (typeof cb === "function") {
166
171
  if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
172
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
168
173
  this.send(command, optionsOrCb || {}, cb);
169
174
  }
170
175
  else {
171
176
  return this.send(command, optionsOrCb);
172
177
  }
173
- }
174
- deleteApplicationCloudWatchLoggingOption(args, optionsOrCb, cb) {
175
- const command = new DeleteApplicationCloudWatchLoggingOptionCommand(args);
178
+ };
179
+ KinesisAnalyticsV2.prototype.deleteApplicationCloudWatchLoggingOption = function (args, optionsOrCb, cb) {
180
+ var command = new DeleteApplicationCloudWatchLoggingOptionCommand(args);
176
181
  if (typeof optionsOrCb === "function") {
177
182
  this.send(command, optionsOrCb);
178
183
  }
179
184
  else if (typeof cb === "function") {
180
185
  if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
186
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
182
187
  this.send(command, optionsOrCb || {}, cb);
183
188
  }
184
189
  else {
185
190
  return this.send(command, optionsOrCb);
186
191
  }
187
- }
188
- deleteApplicationInputProcessingConfiguration(args, optionsOrCb, cb) {
189
- const command = new DeleteApplicationInputProcessingConfigurationCommand(args);
192
+ };
193
+ KinesisAnalyticsV2.prototype.deleteApplicationInputProcessingConfiguration = function (args, optionsOrCb, cb) {
194
+ var command = new DeleteApplicationInputProcessingConfigurationCommand(args);
190
195
  if (typeof optionsOrCb === "function") {
191
196
  this.send(command, optionsOrCb);
192
197
  }
193
198
  else if (typeof cb === "function") {
194
199
  if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
200
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
196
201
  this.send(command, optionsOrCb || {}, cb);
197
202
  }
198
203
  else {
199
204
  return this.send(command, optionsOrCb);
200
205
  }
201
- }
202
- deleteApplicationOutput(args, optionsOrCb, cb) {
203
- const command = new DeleteApplicationOutputCommand(args);
206
+ };
207
+ KinesisAnalyticsV2.prototype.deleteApplicationOutput = function (args, optionsOrCb, cb) {
208
+ var command = new DeleteApplicationOutputCommand(args);
204
209
  if (typeof optionsOrCb === "function") {
205
210
  this.send(command, optionsOrCb);
206
211
  }
207
212
  else if (typeof cb === "function") {
208
213
  if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
214
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
210
215
  this.send(command, optionsOrCb || {}, cb);
211
216
  }
212
217
  else {
213
218
  return this.send(command, optionsOrCb);
214
219
  }
215
- }
216
- deleteApplicationReferenceDataSource(args, optionsOrCb, cb) {
217
- const command = new DeleteApplicationReferenceDataSourceCommand(args);
220
+ };
221
+ KinesisAnalyticsV2.prototype.deleteApplicationReferenceDataSource = function (args, optionsOrCb, cb) {
222
+ var command = new DeleteApplicationReferenceDataSourceCommand(args);
218
223
  if (typeof optionsOrCb === "function") {
219
224
  this.send(command, optionsOrCb);
220
225
  }
221
226
  else if (typeof cb === "function") {
222
227
  if (typeof optionsOrCb !== "object")
223
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
228
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
224
229
  this.send(command, optionsOrCb || {}, cb);
225
230
  }
226
231
  else {
227
232
  return this.send(command, optionsOrCb);
228
233
  }
229
- }
230
- deleteApplicationSnapshot(args, optionsOrCb, cb) {
231
- const command = new DeleteApplicationSnapshotCommand(args);
234
+ };
235
+ KinesisAnalyticsV2.prototype.deleteApplicationSnapshot = function (args, optionsOrCb, cb) {
236
+ var command = new DeleteApplicationSnapshotCommand(args);
232
237
  if (typeof optionsOrCb === "function") {
233
238
  this.send(command, optionsOrCb);
234
239
  }
235
240
  else if (typeof cb === "function") {
236
241
  if (typeof optionsOrCb !== "object")
237
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
242
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
238
243
  this.send(command, optionsOrCb || {}, cb);
239
244
  }
240
245
  else {
241
246
  return this.send(command, optionsOrCb);
242
247
  }
243
- }
244
- deleteApplicationVpcConfiguration(args, optionsOrCb, cb) {
245
- const command = new DeleteApplicationVpcConfigurationCommand(args);
248
+ };
249
+ KinesisAnalyticsV2.prototype.deleteApplicationVpcConfiguration = function (args, optionsOrCb, cb) {
250
+ var command = new DeleteApplicationVpcConfigurationCommand(args);
246
251
  if (typeof optionsOrCb === "function") {
247
252
  this.send(command, optionsOrCb);
248
253
  }
249
254
  else if (typeof cb === "function") {
250
255
  if (typeof optionsOrCb !== "object")
251
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
256
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
252
257
  this.send(command, optionsOrCb || {}, cb);
253
258
  }
254
259
  else {
255
260
  return this.send(command, optionsOrCb);
256
261
  }
257
- }
258
- describeApplication(args, optionsOrCb, cb) {
259
- const command = new DescribeApplicationCommand(args);
262
+ };
263
+ KinesisAnalyticsV2.prototype.describeApplication = function (args, optionsOrCb, cb) {
264
+ var command = new DescribeApplicationCommand(args);
260
265
  if (typeof optionsOrCb === "function") {
261
266
  this.send(command, optionsOrCb);
262
267
  }
263
268
  else if (typeof cb === "function") {
264
269
  if (typeof optionsOrCb !== "object")
265
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
270
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
266
271
  this.send(command, optionsOrCb || {}, cb);
267
272
  }
268
273
  else {
269
274
  return this.send(command, optionsOrCb);
270
275
  }
271
- }
272
- describeApplicationSnapshot(args, optionsOrCb, cb) {
273
- const command = new DescribeApplicationSnapshotCommand(args);
276
+ };
277
+ KinesisAnalyticsV2.prototype.describeApplicationSnapshot = function (args, optionsOrCb, cb) {
278
+ var command = new DescribeApplicationSnapshotCommand(args);
274
279
  if (typeof optionsOrCb === "function") {
275
280
  this.send(command, optionsOrCb);
276
281
  }
277
282
  else if (typeof cb === "function") {
278
283
  if (typeof optionsOrCb !== "object")
279
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
284
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
280
285
  this.send(command, optionsOrCb || {}, cb);
281
286
  }
282
287
  else {
283
288
  return this.send(command, optionsOrCb);
284
289
  }
285
- }
286
- describeApplicationVersion(args, optionsOrCb, cb) {
287
- const command = new DescribeApplicationVersionCommand(args);
290
+ };
291
+ KinesisAnalyticsV2.prototype.describeApplicationVersion = function (args, optionsOrCb, cb) {
292
+ var command = new DescribeApplicationVersionCommand(args);
288
293
  if (typeof optionsOrCb === "function") {
289
294
  this.send(command, optionsOrCb);
290
295
  }
291
296
  else if (typeof cb === "function") {
292
297
  if (typeof optionsOrCb !== "object")
293
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
298
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
294
299
  this.send(command, optionsOrCb || {}, cb);
295
300
  }
296
301
  else {
297
302
  return this.send(command, optionsOrCb);
298
303
  }
299
- }
300
- discoverInputSchema(args, optionsOrCb, cb) {
301
- const command = new DiscoverInputSchemaCommand(args);
304
+ };
305
+ KinesisAnalyticsV2.prototype.discoverInputSchema = function (args, optionsOrCb, cb) {
306
+ var command = new DiscoverInputSchemaCommand(args);
302
307
  if (typeof optionsOrCb === "function") {
303
308
  this.send(command, optionsOrCb);
304
309
  }
305
310
  else if (typeof cb === "function") {
306
311
  if (typeof optionsOrCb !== "object")
307
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
312
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
308
313
  this.send(command, optionsOrCb || {}, cb);
309
314
  }
310
315
  else {
311
316
  return this.send(command, optionsOrCb);
312
317
  }
313
- }
314
- listApplications(args, optionsOrCb, cb) {
315
- const command = new ListApplicationsCommand(args);
318
+ };
319
+ KinesisAnalyticsV2.prototype.listApplications = function (args, optionsOrCb, cb) {
320
+ var command = new ListApplicationsCommand(args);
316
321
  if (typeof optionsOrCb === "function") {
317
322
  this.send(command, optionsOrCb);
318
323
  }
319
324
  else if (typeof cb === "function") {
320
325
  if (typeof optionsOrCb !== "object")
321
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
326
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
322
327
  this.send(command, optionsOrCb || {}, cb);
323
328
  }
324
329
  else {
325
330
  return this.send(command, optionsOrCb);
326
331
  }
327
- }
328
- listApplicationSnapshots(args, optionsOrCb, cb) {
329
- const command = new ListApplicationSnapshotsCommand(args);
332
+ };
333
+ KinesisAnalyticsV2.prototype.listApplicationSnapshots = function (args, optionsOrCb, cb) {
334
+ var command = new ListApplicationSnapshotsCommand(args);
330
335
  if (typeof optionsOrCb === "function") {
331
336
  this.send(command, optionsOrCb);
332
337
  }
333
338
  else if (typeof cb === "function") {
334
339
  if (typeof optionsOrCb !== "object")
335
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
340
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
336
341
  this.send(command, optionsOrCb || {}, cb);
337
342
  }
338
343
  else {
339
344
  return this.send(command, optionsOrCb);
340
345
  }
341
- }
342
- listApplicationVersions(args, optionsOrCb, cb) {
343
- const command = new ListApplicationVersionsCommand(args);
346
+ };
347
+ KinesisAnalyticsV2.prototype.listApplicationVersions = function (args, optionsOrCb, cb) {
348
+ var command = new ListApplicationVersionsCommand(args);
344
349
  if (typeof optionsOrCb === "function") {
345
350
  this.send(command, optionsOrCb);
346
351
  }
347
352
  else if (typeof cb === "function") {
348
353
  if (typeof optionsOrCb !== "object")
349
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
354
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
350
355
  this.send(command, optionsOrCb || {}, cb);
351
356
  }
352
357
  else {
353
358
  return this.send(command, optionsOrCb);
354
359
  }
355
- }
356
- listTagsForResource(args, optionsOrCb, cb) {
357
- const command = new ListTagsForResourceCommand(args);
360
+ };
361
+ KinesisAnalyticsV2.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
362
+ var command = new ListTagsForResourceCommand(args);
358
363
  if (typeof optionsOrCb === "function") {
359
364
  this.send(command, optionsOrCb);
360
365
  }
361
366
  else if (typeof cb === "function") {
362
367
  if (typeof optionsOrCb !== "object")
363
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
368
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
364
369
  this.send(command, optionsOrCb || {}, cb);
365
370
  }
366
371
  else {
367
372
  return this.send(command, optionsOrCb);
368
373
  }
369
- }
370
- rollbackApplication(args, optionsOrCb, cb) {
371
- const command = new RollbackApplicationCommand(args);
374
+ };
375
+ KinesisAnalyticsV2.prototype.rollbackApplication = function (args, optionsOrCb, cb) {
376
+ var command = new RollbackApplicationCommand(args);
372
377
  if (typeof optionsOrCb === "function") {
373
378
  this.send(command, optionsOrCb);
374
379
  }
375
380
  else if (typeof cb === "function") {
376
381
  if (typeof optionsOrCb !== "object")
377
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
382
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
378
383
  this.send(command, optionsOrCb || {}, cb);
379
384
  }
380
385
  else {
381
386
  return this.send(command, optionsOrCb);
382
387
  }
383
- }
384
- startApplication(args, optionsOrCb, cb) {
385
- const command = new StartApplicationCommand(args);
388
+ };
389
+ KinesisAnalyticsV2.prototype.startApplication = function (args, optionsOrCb, cb) {
390
+ var command = new StartApplicationCommand(args);
386
391
  if (typeof optionsOrCb === "function") {
387
392
  this.send(command, optionsOrCb);
388
393
  }
389
394
  else if (typeof cb === "function") {
390
395
  if (typeof optionsOrCb !== "object")
391
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
396
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
392
397
  this.send(command, optionsOrCb || {}, cb);
393
398
  }
394
399
  else {
395
400
  return this.send(command, optionsOrCb);
396
401
  }
397
- }
398
- stopApplication(args, optionsOrCb, cb) {
399
- const command = new StopApplicationCommand(args);
402
+ };
403
+ KinesisAnalyticsV2.prototype.stopApplication = function (args, optionsOrCb, cb) {
404
+ var command = new StopApplicationCommand(args);
400
405
  if (typeof optionsOrCb === "function") {
401
406
  this.send(command, optionsOrCb);
402
407
  }
403
408
  else if (typeof cb === "function") {
404
409
  if (typeof optionsOrCb !== "object")
405
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
410
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
406
411
  this.send(command, optionsOrCb || {}, cb);
407
412
  }
408
413
  else {
409
414
  return this.send(command, optionsOrCb);
410
415
  }
411
- }
412
- tagResource(args, optionsOrCb, cb) {
413
- const command = new TagResourceCommand(args);
416
+ };
417
+ KinesisAnalyticsV2.prototype.tagResource = function (args, optionsOrCb, cb) {
418
+ var command = new TagResourceCommand(args);
414
419
  if (typeof optionsOrCb === "function") {
415
420
  this.send(command, optionsOrCb);
416
421
  }
417
422
  else if (typeof cb === "function") {
418
423
  if (typeof optionsOrCb !== "object")
419
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
424
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
420
425
  this.send(command, optionsOrCb || {}, cb);
421
426
  }
422
427
  else {
423
428
  return this.send(command, optionsOrCb);
424
429
  }
425
- }
426
- untagResource(args, optionsOrCb, cb) {
427
- const command = new UntagResourceCommand(args);
430
+ };
431
+ KinesisAnalyticsV2.prototype.untagResource = function (args, optionsOrCb, cb) {
432
+ var command = new UntagResourceCommand(args);
428
433
  if (typeof optionsOrCb === "function") {
429
434
  this.send(command, optionsOrCb);
430
435
  }
431
436
  else if (typeof cb === "function") {
432
437
  if (typeof optionsOrCb !== "object")
433
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
438
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
434
439
  this.send(command, optionsOrCb || {}, cb);
435
440
  }
436
441
  else {
437
442
  return this.send(command, optionsOrCb);
438
443
  }
439
- }
440
- updateApplication(args, optionsOrCb, cb) {
441
- const command = new UpdateApplicationCommand(args);
444
+ };
445
+ KinesisAnalyticsV2.prototype.updateApplication = function (args, optionsOrCb, cb) {
446
+ var command = new UpdateApplicationCommand(args);
442
447
  if (typeof optionsOrCb === "function") {
443
448
  this.send(command, optionsOrCb);
444
449
  }
445
450
  else if (typeof cb === "function") {
446
451
  if (typeof optionsOrCb !== "object")
447
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
452
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
448
453
  this.send(command, optionsOrCb || {}, cb);
449
454
  }
450
455
  else {
451
456
  return this.send(command, optionsOrCb);
452
457
  }
453
- }
454
- updateApplicationMaintenanceConfiguration(args, optionsOrCb, cb) {
455
- const command = new UpdateApplicationMaintenanceConfigurationCommand(args);
458
+ };
459
+ KinesisAnalyticsV2.prototype.updateApplicationMaintenanceConfiguration = function (args, optionsOrCb, cb) {
460
+ var command = new UpdateApplicationMaintenanceConfigurationCommand(args);
456
461
  if (typeof optionsOrCb === "function") {
457
462
  this.send(command, optionsOrCb);
458
463
  }
459
464
  else if (typeof cb === "function") {
460
465
  if (typeof optionsOrCb !== "object")
461
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
466
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
462
467
  this.send(command, optionsOrCb || {}, cb);
463
468
  }
464
469
  else {
465
470
  return this.send(command, optionsOrCb);
466
471
  }
467
- }
468
- }
472
+ };
473
+ return KinesisAnalyticsV2;
474
+ }(KinesisAnalyticsV2Client));
475
+ export { KinesisAnalyticsV2 };