@aws-sdk/client-kafkaconnect 3.53.0 → 3.55.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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/KafkaConnect.js +15 -0
- package/dist-cjs/KafkaConnectClient.js +13 -13
- package/dist-cjs/commands/CreateConnectorCommand.js +3 -3
- package/dist-cjs/commands/CreateCustomPluginCommand.js +3 -3
- package/dist-cjs/commands/CreateWorkerConfigurationCommand.js +3 -3
- package/dist-cjs/commands/DeleteConnectorCommand.js +3 -3
- package/dist-cjs/commands/DeleteCustomPluginCommand.js +36 -0
- package/dist-cjs/commands/DescribeConnectorCommand.js +3 -3
- package/dist-cjs/commands/DescribeCustomPluginCommand.js +3 -3
- package/dist-cjs/commands/DescribeWorkerConfigurationCommand.js +3 -3
- package/dist-cjs/commands/ListConnectorsCommand.js +3 -3
- package/dist-cjs/commands/ListCustomPluginsCommand.js +3 -3
- package/dist-cjs/commands/ListWorkerConfigurationsCommand.js +3 -3
- package/dist-cjs/commands/UpdateConnectorCommand.js +3 -3
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +27 -1
- package/dist-cjs/protocols/Aws_restJson1.js +233 -134
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/KafkaConnect.js +26 -11
- package/dist-es/commands/DeleteCustomPluginCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +20 -5
- package/dist-es/pagination/ListConnectorsPaginator.js +4 -4
- package/dist-es/pagination/ListCustomPluginsPaginator.js +4 -4
- package/dist-es/pagination/ListWorkerConfigurationsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +140 -11
- package/dist-types/KafkaConnect.d.ts +10 -1
- package/dist-types/KafkaConnectClient.d.ts +5 -4
- package/dist-types/commands/DeleteCustomPluginCommand.d.ts +35 -0
- package/dist-types/commands/ListConnectorsCommand.d.ts +3 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +179 -58
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/KafkaConnect.d.ts +5 -0
- package/dist-types/ts3.4/KafkaConnectClient.d.ts +5 -4
- package/dist-types/ts3.4/commands/DeleteCustomPluginCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +33 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateConnectorCommand = exports.deserializeAws_restJson1ListWorkerConfigurationsCommand = exports.deserializeAws_restJson1ListCustomPluginsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1DescribeWorkerConfigurationCommand = exports.deserializeAws_restJson1DescribeCustomPluginCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteConnectorCommand = exports.deserializeAws_restJson1CreateWorkerConfigurationCommand = exports.deserializeAws_restJson1CreateCustomPluginCommand = exports.deserializeAws_restJson1CreateConnectorCommand = exports.serializeAws_restJson1UpdateConnectorCommand = exports.serializeAws_restJson1ListWorkerConfigurationsCommand = exports.serializeAws_restJson1ListCustomPluginsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1DescribeWorkerConfigurationCommand = exports.serializeAws_restJson1DescribeCustomPluginCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteConnectorCommand = exports.serializeAws_restJson1CreateWorkerConfigurationCommand = exports.serializeAws_restJson1CreateCustomPluginCommand = exports.serializeAws_restJson1CreateConnectorCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateConnectorCommand = exports.deserializeAws_restJson1ListWorkerConfigurationsCommand = exports.deserializeAws_restJson1ListCustomPluginsCommand = exports.deserializeAws_restJson1ListConnectorsCommand = exports.deserializeAws_restJson1DescribeWorkerConfigurationCommand = exports.deserializeAws_restJson1DescribeCustomPluginCommand = exports.deserializeAws_restJson1DescribeConnectorCommand = exports.deserializeAws_restJson1DeleteCustomPluginCommand = exports.deserializeAws_restJson1DeleteConnectorCommand = exports.deserializeAws_restJson1CreateWorkerConfigurationCommand = exports.deserializeAws_restJson1CreateCustomPluginCommand = exports.deserializeAws_restJson1CreateConnectorCommand = exports.serializeAws_restJson1UpdateConnectorCommand = exports.serializeAws_restJson1ListWorkerConfigurationsCommand = exports.serializeAws_restJson1ListCustomPluginsCommand = exports.serializeAws_restJson1ListConnectorsCommand = exports.serializeAws_restJson1DescribeWorkerConfigurationCommand = exports.serializeAws_restJson1DescribeCustomPluginCommand = exports.serializeAws_restJson1DescribeConnectorCommand = exports.serializeAws_restJson1DeleteCustomPluginCommand = exports.serializeAws_restJson1DeleteConnectorCommand = exports.serializeAws_restJson1CreateWorkerConfigurationCommand = exports.serializeAws_restJson1CreateCustomPluginCommand = exports.serializeAws_restJson1CreateConnectorCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const KafkaConnectServiceException_1 = require("../models/KafkaConnectServiceException");
|
|
@@ -114,7 +114,7 @@ const serializeAws_restJson1DeleteConnectorCommand = async (input, context) => {
|
|
|
114
114
|
if (labelValue.length <= 0) {
|
|
115
115
|
throw new Error("Empty value provided for input HTTP label: connectorArn.");
|
|
116
116
|
}
|
|
117
|
-
resolvedPath = resolvedPath.replace("{connectorArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
117
|
+
resolvedPath = resolvedPath.replace("{connectorArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
120
120
|
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
@@ -135,6 +135,32 @@ const serializeAws_restJson1DeleteConnectorCommand = async (input, context) => {
|
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
137
|
exports.serializeAws_restJson1DeleteConnectorCommand = serializeAws_restJson1DeleteConnectorCommand;
|
|
138
|
+
const serializeAws_restJson1DeleteCustomPluginCommand = async (input, context) => {
|
|
139
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
|
+
const headers = {};
|
|
141
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/custom-plugins/{customPluginArn}";
|
|
142
|
+
if (input.customPluginArn !== undefined) {
|
|
143
|
+
const labelValue = input.customPluginArn;
|
|
144
|
+
if (labelValue.length <= 0) {
|
|
145
|
+
throw new Error("Empty value provided for input HTTP label: customPluginArn.");
|
|
146
|
+
}
|
|
147
|
+
resolvedPath = resolvedPath.replace("{customPluginArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
throw new Error("No value provided for input HTTP label: customPluginArn.");
|
|
151
|
+
}
|
|
152
|
+
let body;
|
|
153
|
+
return new protocol_http_1.HttpRequest({
|
|
154
|
+
protocol,
|
|
155
|
+
hostname,
|
|
156
|
+
port,
|
|
157
|
+
method: "DELETE",
|
|
158
|
+
headers,
|
|
159
|
+
path: resolvedPath,
|
|
160
|
+
body,
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
exports.serializeAws_restJson1DeleteCustomPluginCommand = serializeAws_restJson1DeleteCustomPluginCommand;
|
|
138
164
|
const serializeAws_restJson1DescribeConnectorCommand = async (input, context) => {
|
|
139
165
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
166
|
const headers = {};
|
|
@@ -144,7 +170,7 @@ const serializeAws_restJson1DescribeConnectorCommand = async (input, context) =>
|
|
|
144
170
|
if (labelValue.length <= 0) {
|
|
145
171
|
throw new Error("Empty value provided for input HTTP label: connectorArn.");
|
|
146
172
|
}
|
|
147
|
-
resolvedPath = resolvedPath.replace("{connectorArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
173
|
+
resolvedPath = resolvedPath.replace("{connectorArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
148
174
|
}
|
|
149
175
|
else {
|
|
150
176
|
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
@@ -170,7 +196,7 @@ const serializeAws_restJson1DescribeCustomPluginCommand = async (input, context)
|
|
|
170
196
|
if (labelValue.length <= 0) {
|
|
171
197
|
throw new Error("Empty value provided for input HTTP label: customPluginArn.");
|
|
172
198
|
}
|
|
173
|
-
resolvedPath = resolvedPath.replace("{customPluginArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
199
|
+
resolvedPath = resolvedPath.replace("{customPluginArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
174
200
|
}
|
|
175
201
|
else {
|
|
176
202
|
throw new Error("No value provided for input HTTP label: customPluginArn.");
|
|
@@ -197,7 +223,7 @@ const serializeAws_restJson1DescribeWorkerConfigurationCommand = async (input, c
|
|
|
197
223
|
if (labelValue.length <= 0) {
|
|
198
224
|
throw new Error("Empty value provided for input HTTP label: workerConfigurationArn.");
|
|
199
225
|
}
|
|
200
|
-
resolvedPath = resolvedPath.replace("{workerConfigurationArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
226
|
+
resolvedPath = resolvedPath.replace("{workerConfigurationArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
201
227
|
}
|
|
202
228
|
else {
|
|
203
229
|
throw new Error("No value provided for input HTTP label: workerConfigurationArn.");
|
|
@@ -289,7 +315,7 @@ const serializeAws_restJson1UpdateConnectorCommand = async (input, context) => {
|
|
|
289
315
|
if (labelValue.length <= 0) {
|
|
290
316
|
throw new Error("Empty value provided for input HTTP label: connectorArn.");
|
|
291
317
|
}
|
|
292
|
-
resolvedPath = resolvedPath.replace("{connectorArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
318
|
+
resolvedPath = resolvedPath.replace("{connectorArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
293
319
|
}
|
|
294
320
|
else {
|
|
295
321
|
throw new Error("No value provided for input HTTP label: connectorArn.");
|
|
@@ -324,15 +350,15 @@ const deserializeAws_restJson1CreateConnectorCommand = async (output, context) =
|
|
|
324
350
|
connectorName: undefined,
|
|
325
351
|
connectorState: undefined,
|
|
326
352
|
};
|
|
327
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
353
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
328
354
|
if (data.connectorArn !== undefined && data.connectorArn !== null) {
|
|
329
|
-
contents.connectorArn = smithy_client_1.expectString(data.connectorArn);
|
|
355
|
+
contents.connectorArn = (0, smithy_client_1.expectString)(data.connectorArn);
|
|
330
356
|
}
|
|
331
357
|
if (data.connectorName !== undefined && data.connectorName !== null) {
|
|
332
|
-
contents.connectorName = smithy_client_1.expectString(data.connectorName);
|
|
358
|
+
contents.connectorName = (0, smithy_client_1.expectString)(data.connectorName);
|
|
333
359
|
}
|
|
334
360
|
if (data.connectorState !== undefined && data.connectorState !== null) {
|
|
335
|
-
contents.connectorState = smithy_client_1.expectString(data.connectorState);
|
|
361
|
+
contents.connectorState = (0, smithy_client_1.expectString)(data.connectorState);
|
|
336
362
|
}
|
|
337
363
|
return Promise.resolve(contents);
|
|
338
364
|
};
|
|
@@ -377,7 +403,7 @@ const deserializeAws_restJson1CreateConnectorCommandError = async (output, conte
|
|
|
377
403
|
$fault: "client",
|
|
378
404
|
$metadata: deserializeMetadata(output),
|
|
379
405
|
});
|
|
380
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
406
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
381
407
|
}
|
|
382
408
|
};
|
|
383
409
|
const deserializeAws_restJson1CreateCustomPluginCommand = async (output, context) => {
|
|
@@ -391,18 +417,18 @@ const deserializeAws_restJson1CreateCustomPluginCommand = async (output, context
|
|
|
391
417
|
name: undefined,
|
|
392
418
|
revision: undefined,
|
|
393
419
|
};
|
|
394
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
420
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
395
421
|
if (data.customPluginArn !== undefined && data.customPluginArn !== null) {
|
|
396
|
-
contents.customPluginArn = smithy_client_1.expectString(data.customPluginArn);
|
|
422
|
+
contents.customPluginArn = (0, smithy_client_1.expectString)(data.customPluginArn);
|
|
397
423
|
}
|
|
398
424
|
if (data.customPluginState !== undefined && data.customPluginState !== null) {
|
|
399
|
-
contents.customPluginState = smithy_client_1.expectString(data.customPluginState);
|
|
425
|
+
contents.customPluginState = (0, smithy_client_1.expectString)(data.customPluginState);
|
|
400
426
|
}
|
|
401
427
|
if (data.name !== undefined && data.name !== null) {
|
|
402
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
428
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
403
429
|
}
|
|
404
430
|
if (data.revision !== undefined && data.revision !== null) {
|
|
405
|
-
contents.revision = smithy_client_1.expectLong(data.revision);
|
|
431
|
+
contents.revision = (0, smithy_client_1.expectLong)(data.revision);
|
|
406
432
|
}
|
|
407
433
|
return Promise.resolve(contents);
|
|
408
434
|
};
|
|
@@ -447,7 +473,7 @@ const deserializeAws_restJson1CreateCustomPluginCommandError = async (output, co
|
|
|
447
473
|
$fault: "client",
|
|
448
474
|
$metadata: deserializeMetadata(output),
|
|
449
475
|
});
|
|
450
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
476
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
451
477
|
}
|
|
452
478
|
};
|
|
453
479
|
const deserializeAws_restJson1CreateWorkerConfigurationCommand = async (output, context) => {
|
|
@@ -461,18 +487,18 @@ const deserializeAws_restJson1CreateWorkerConfigurationCommand = async (output,
|
|
|
461
487
|
name: undefined,
|
|
462
488
|
workerConfigurationArn: undefined,
|
|
463
489
|
};
|
|
464
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
490
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
465
491
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
466
|
-
contents.creationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
492
|
+
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.creationTime));
|
|
467
493
|
}
|
|
468
494
|
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
469
495
|
contents.latestRevision = deserializeAws_restJson1WorkerConfigurationRevisionSummary(data.latestRevision, context);
|
|
470
496
|
}
|
|
471
497
|
if (data.name !== undefined && data.name !== null) {
|
|
472
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
498
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
473
499
|
}
|
|
474
500
|
if (data.workerConfigurationArn !== undefined && data.workerConfigurationArn !== null) {
|
|
475
|
-
contents.workerConfigurationArn = smithy_client_1.expectString(data.workerConfigurationArn);
|
|
501
|
+
contents.workerConfigurationArn = (0, smithy_client_1.expectString)(data.workerConfigurationArn);
|
|
476
502
|
}
|
|
477
503
|
return Promise.resolve(contents);
|
|
478
504
|
};
|
|
@@ -517,7 +543,7 @@ const deserializeAws_restJson1CreateWorkerConfigurationCommandError = async (out
|
|
|
517
543
|
$fault: "client",
|
|
518
544
|
$metadata: deserializeMetadata(output),
|
|
519
545
|
});
|
|
520
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
546
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
521
547
|
}
|
|
522
548
|
};
|
|
523
549
|
const deserializeAws_restJson1DeleteConnectorCommand = async (output, context) => {
|
|
@@ -529,12 +555,12 @@ const deserializeAws_restJson1DeleteConnectorCommand = async (output, context) =
|
|
|
529
555
|
connectorArn: undefined,
|
|
530
556
|
connectorState: undefined,
|
|
531
557
|
};
|
|
532
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
558
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
533
559
|
if (data.connectorArn !== undefined && data.connectorArn !== null) {
|
|
534
|
-
contents.connectorArn = smithy_client_1.expectString(data.connectorArn);
|
|
560
|
+
contents.connectorArn = (0, smithy_client_1.expectString)(data.connectorArn);
|
|
535
561
|
}
|
|
536
562
|
if (data.connectorState !== undefined && data.connectorState !== null) {
|
|
537
|
-
contents.connectorState = smithy_client_1.expectString(data.connectorState);
|
|
563
|
+
contents.connectorState = (0, smithy_client_1.expectString)(data.connectorState);
|
|
538
564
|
}
|
|
539
565
|
return Promise.resolve(contents);
|
|
540
566
|
};
|
|
@@ -576,7 +602,66 @@ const deserializeAws_restJson1DeleteConnectorCommandError = async (output, conte
|
|
|
576
602
|
$fault: "client",
|
|
577
603
|
$metadata: deserializeMetadata(output),
|
|
578
604
|
});
|
|
579
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
605
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
const deserializeAws_restJson1DeleteCustomPluginCommand = async (output, context) => {
|
|
609
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
+
return deserializeAws_restJson1DeleteCustomPluginCommandError(output, context);
|
|
611
|
+
}
|
|
612
|
+
const contents = {
|
|
613
|
+
$metadata: deserializeMetadata(output),
|
|
614
|
+
customPluginArn: undefined,
|
|
615
|
+
customPluginState: undefined,
|
|
616
|
+
};
|
|
617
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
618
|
+
if (data.customPluginArn !== undefined && data.customPluginArn !== null) {
|
|
619
|
+
contents.customPluginArn = (0, smithy_client_1.expectString)(data.customPluginArn);
|
|
620
|
+
}
|
|
621
|
+
if (data.customPluginState !== undefined && data.customPluginState !== null) {
|
|
622
|
+
contents.customPluginState = (0, smithy_client_1.expectString)(data.customPluginState);
|
|
623
|
+
}
|
|
624
|
+
return Promise.resolve(contents);
|
|
625
|
+
};
|
|
626
|
+
exports.deserializeAws_restJson1DeleteCustomPluginCommand = deserializeAws_restJson1DeleteCustomPluginCommand;
|
|
627
|
+
const deserializeAws_restJson1DeleteCustomPluginCommandError = async (output, context) => {
|
|
628
|
+
const parsedOutput = {
|
|
629
|
+
...output,
|
|
630
|
+
body: await parseBody(output.body, context),
|
|
631
|
+
};
|
|
632
|
+
let response;
|
|
633
|
+
let errorCode = "UnknownError";
|
|
634
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
|
+
switch (errorCode) {
|
|
636
|
+
case "BadRequestException":
|
|
637
|
+
case "com.amazonaws.kafkaconnect#BadRequestException":
|
|
638
|
+
throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
|
|
639
|
+
case "ForbiddenException":
|
|
640
|
+
case "com.amazonaws.kafkaconnect#ForbiddenException":
|
|
641
|
+
throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
|
|
642
|
+
case "InternalServerErrorException":
|
|
643
|
+
case "com.amazonaws.kafkaconnect#InternalServerErrorException":
|
|
644
|
+
throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
|
|
645
|
+
case "NotFoundException":
|
|
646
|
+
case "com.amazonaws.kafkaconnect#NotFoundException":
|
|
647
|
+
throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
|
|
648
|
+
case "ServiceUnavailableException":
|
|
649
|
+
case "com.amazonaws.kafkaconnect#ServiceUnavailableException":
|
|
650
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
651
|
+
case "TooManyRequestsException":
|
|
652
|
+
case "com.amazonaws.kafkaconnect#TooManyRequestsException":
|
|
653
|
+
throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
654
|
+
case "UnauthorizedException":
|
|
655
|
+
case "com.amazonaws.kafkaconnect#UnauthorizedException":
|
|
656
|
+
throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
|
|
657
|
+
default:
|
|
658
|
+
const parsedBody = parsedOutput.body;
|
|
659
|
+
response = new KafkaConnectServiceException_1.KafkaConnectServiceException({
|
|
660
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
661
|
+
$fault: "client",
|
|
662
|
+
$metadata: deserializeMetadata(output),
|
|
663
|
+
});
|
|
664
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
580
665
|
}
|
|
581
666
|
};
|
|
582
667
|
const deserializeAws_restJson1DescribeConnectorCommand = async (output, context) => {
|
|
@@ -600,32 +685,33 @@ const deserializeAws_restJson1DescribeConnectorCommand = async (output, context)
|
|
|
600
685
|
logDelivery: undefined,
|
|
601
686
|
plugins: undefined,
|
|
602
687
|
serviceExecutionRoleArn: undefined,
|
|
688
|
+
stateDescription: undefined,
|
|
603
689
|
workerConfiguration: undefined,
|
|
604
690
|
};
|
|
605
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
691
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
606
692
|
if (data.capacity !== undefined && data.capacity !== null) {
|
|
607
693
|
contents.capacity = deserializeAws_restJson1CapacityDescription(data.capacity, context);
|
|
608
694
|
}
|
|
609
695
|
if (data.connectorArn !== undefined && data.connectorArn !== null) {
|
|
610
|
-
contents.connectorArn = smithy_client_1.expectString(data.connectorArn);
|
|
696
|
+
contents.connectorArn = (0, smithy_client_1.expectString)(data.connectorArn);
|
|
611
697
|
}
|
|
612
698
|
if (data.connectorConfiguration !== undefined && data.connectorConfiguration !== null) {
|
|
613
699
|
contents.connectorConfiguration = deserializeAws_restJson1__mapOf__string(data.connectorConfiguration, context);
|
|
614
700
|
}
|
|
615
701
|
if (data.connectorDescription !== undefined && data.connectorDescription !== null) {
|
|
616
|
-
contents.connectorDescription = smithy_client_1.expectString(data.connectorDescription);
|
|
702
|
+
contents.connectorDescription = (0, smithy_client_1.expectString)(data.connectorDescription);
|
|
617
703
|
}
|
|
618
704
|
if (data.connectorName !== undefined && data.connectorName !== null) {
|
|
619
|
-
contents.connectorName = smithy_client_1.expectString(data.connectorName);
|
|
705
|
+
contents.connectorName = (0, smithy_client_1.expectString)(data.connectorName);
|
|
620
706
|
}
|
|
621
707
|
if (data.connectorState !== undefined && data.connectorState !== null) {
|
|
622
|
-
contents.connectorState = smithy_client_1.expectString(data.connectorState);
|
|
708
|
+
contents.connectorState = (0, smithy_client_1.expectString)(data.connectorState);
|
|
623
709
|
}
|
|
624
710
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
625
|
-
contents.creationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
711
|
+
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.creationTime));
|
|
626
712
|
}
|
|
627
713
|
if (data.currentVersion !== undefined && data.currentVersion !== null) {
|
|
628
|
-
contents.currentVersion = smithy_client_1.expectString(data.currentVersion);
|
|
714
|
+
contents.currentVersion = (0, smithy_client_1.expectString)(data.currentVersion);
|
|
629
715
|
}
|
|
630
716
|
if (data.kafkaCluster !== undefined && data.kafkaCluster !== null) {
|
|
631
717
|
contents.kafkaCluster = deserializeAws_restJson1KafkaClusterDescription(data.kafkaCluster, context);
|
|
@@ -637,7 +723,7 @@ const deserializeAws_restJson1DescribeConnectorCommand = async (output, context)
|
|
|
637
723
|
contents.kafkaClusterEncryptionInTransit = deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription(data.kafkaClusterEncryptionInTransit, context);
|
|
638
724
|
}
|
|
639
725
|
if (data.kafkaConnectVersion !== undefined && data.kafkaConnectVersion !== null) {
|
|
640
|
-
contents.kafkaConnectVersion = smithy_client_1.expectString(data.kafkaConnectVersion);
|
|
726
|
+
contents.kafkaConnectVersion = (0, smithy_client_1.expectString)(data.kafkaConnectVersion);
|
|
641
727
|
}
|
|
642
728
|
if (data.logDelivery !== undefined && data.logDelivery !== null) {
|
|
643
729
|
contents.logDelivery = deserializeAws_restJson1LogDeliveryDescription(data.logDelivery, context);
|
|
@@ -646,7 +732,10 @@ const deserializeAws_restJson1DescribeConnectorCommand = async (output, context)
|
|
|
646
732
|
contents.plugins = deserializeAws_restJson1__listOfPluginDescription(data.plugins, context);
|
|
647
733
|
}
|
|
648
734
|
if (data.serviceExecutionRoleArn !== undefined && data.serviceExecutionRoleArn !== null) {
|
|
649
|
-
contents.serviceExecutionRoleArn = smithy_client_1.expectString(data.serviceExecutionRoleArn);
|
|
735
|
+
contents.serviceExecutionRoleArn = (0, smithy_client_1.expectString)(data.serviceExecutionRoleArn);
|
|
736
|
+
}
|
|
737
|
+
if (data.stateDescription !== undefined && data.stateDescription !== null) {
|
|
738
|
+
contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
|
|
650
739
|
}
|
|
651
740
|
if (data.workerConfiguration !== undefined && data.workerConfiguration !== null) {
|
|
652
741
|
contents.workerConfiguration = deserializeAws_restJson1WorkerConfigurationDescription(data.workerConfiguration, context);
|
|
@@ -691,7 +780,7 @@ const deserializeAws_restJson1DescribeConnectorCommandError = async (output, con
|
|
|
691
780
|
$fault: "client",
|
|
692
781
|
$metadata: deserializeMetadata(output),
|
|
693
782
|
});
|
|
694
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
783
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
695
784
|
}
|
|
696
785
|
};
|
|
697
786
|
const deserializeAws_restJson1DescribeCustomPluginCommand = async (output, context) => {
|
|
@@ -706,25 +795,29 @@ const deserializeAws_restJson1DescribeCustomPluginCommand = async (output, conte
|
|
|
706
795
|
description: undefined,
|
|
707
796
|
latestRevision: undefined,
|
|
708
797
|
name: undefined,
|
|
798
|
+
stateDescription: undefined,
|
|
709
799
|
};
|
|
710
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
800
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
711
801
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
712
|
-
contents.creationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
802
|
+
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.creationTime));
|
|
713
803
|
}
|
|
714
804
|
if (data.customPluginArn !== undefined && data.customPluginArn !== null) {
|
|
715
|
-
contents.customPluginArn = smithy_client_1.expectString(data.customPluginArn);
|
|
805
|
+
contents.customPluginArn = (0, smithy_client_1.expectString)(data.customPluginArn);
|
|
716
806
|
}
|
|
717
807
|
if (data.customPluginState !== undefined && data.customPluginState !== null) {
|
|
718
|
-
contents.customPluginState = smithy_client_1.expectString(data.customPluginState);
|
|
808
|
+
contents.customPluginState = (0, smithy_client_1.expectString)(data.customPluginState);
|
|
719
809
|
}
|
|
720
810
|
if (data.description !== undefined && data.description !== null) {
|
|
721
|
-
contents.description = smithy_client_1.expectString(data.description);
|
|
811
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
722
812
|
}
|
|
723
813
|
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
724
814
|
contents.latestRevision = deserializeAws_restJson1CustomPluginRevisionSummary(data.latestRevision, context);
|
|
725
815
|
}
|
|
726
816
|
if (data.name !== undefined && data.name !== null) {
|
|
727
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
817
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
818
|
+
}
|
|
819
|
+
if (data.stateDescription !== undefined && data.stateDescription !== null) {
|
|
820
|
+
contents.stateDescription = deserializeAws_restJson1StateDescription(data.stateDescription, context);
|
|
728
821
|
}
|
|
729
822
|
return Promise.resolve(contents);
|
|
730
823
|
};
|
|
@@ -766,7 +859,7 @@ const deserializeAws_restJson1DescribeCustomPluginCommandError = async (output,
|
|
|
766
859
|
$fault: "client",
|
|
767
860
|
$metadata: deserializeMetadata(output),
|
|
768
861
|
});
|
|
769
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
862
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
770
863
|
}
|
|
771
864
|
};
|
|
772
865
|
const deserializeAws_restJson1DescribeWorkerConfigurationCommand = async (output, context) => {
|
|
@@ -781,21 +874,21 @@ const deserializeAws_restJson1DescribeWorkerConfigurationCommand = async (output
|
|
|
781
874
|
name: undefined,
|
|
782
875
|
workerConfigurationArn: undefined,
|
|
783
876
|
};
|
|
784
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
877
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
785
878
|
if (data.creationTime !== undefined && data.creationTime !== null) {
|
|
786
|
-
contents.creationTime = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(data.creationTime));
|
|
879
|
+
contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(data.creationTime));
|
|
787
880
|
}
|
|
788
881
|
if (data.description !== undefined && data.description !== null) {
|
|
789
|
-
contents.description = smithy_client_1.expectString(data.description);
|
|
882
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
790
883
|
}
|
|
791
884
|
if (data.latestRevision !== undefined && data.latestRevision !== null) {
|
|
792
885
|
contents.latestRevision = deserializeAws_restJson1WorkerConfigurationRevisionDescription(data.latestRevision, context);
|
|
793
886
|
}
|
|
794
887
|
if (data.name !== undefined && data.name !== null) {
|
|
795
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
888
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
796
889
|
}
|
|
797
890
|
if (data.workerConfigurationArn !== undefined && data.workerConfigurationArn !== null) {
|
|
798
|
-
contents.workerConfigurationArn = smithy_client_1.expectString(data.workerConfigurationArn);
|
|
891
|
+
contents.workerConfigurationArn = (0, smithy_client_1.expectString)(data.workerConfigurationArn);
|
|
799
892
|
}
|
|
800
893
|
return Promise.resolve(contents);
|
|
801
894
|
};
|
|
@@ -837,7 +930,7 @@ const deserializeAws_restJson1DescribeWorkerConfigurationCommandError = async (o
|
|
|
837
930
|
$fault: "client",
|
|
838
931
|
$metadata: deserializeMetadata(output),
|
|
839
932
|
});
|
|
840
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
933
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
841
934
|
}
|
|
842
935
|
};
|
|
843
936
|
const deserializeAws_restJson1ListConnectorsCommand = async (output, context) => {
|
|
@@ -849,12 +942,12 @@ const deserializeAws_restJson1ListConnectorsCommand = async (output, context) =>
|
|
|
849
942
|
connectors: undefined,
|
|
850
943
|
nextToken: undefined,
|
|
851
944
|
};
|
|
852
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
945
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
853
946
|
if (data.connectors !== undefined && data.connectors !== null) {
|
|
854
947
|
contents.connectors = deserializeAws_restJson1__listOfConnectorSummary(data.connectors, context);
|
|
855
948
|
}
|
|
856
949
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
857
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
950
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
858
951
|
}
|
|
859
952
|
return Promise.resolve(contents);
|
|
860
953
|
};
|
|
@@ -896,7 +989,7 @@ const deserializeAws_restJson1ListConnectorsCommandError = async (output, contex
|
|
|
896
989
|
$fault: "client",
|
|
897
990
|
$metadata: deserializeMetadata(output),
|
|
898
991
|
});
|
|
899
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
992
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
900
993
|
}
|
|
901
994
|
};
|
|
902
995
|
const deserializeAws_restJson1ListCustomPluginsCommand = async (output, context) => {
|
|
@@ -908,12 +1001,12 @@ const deserializeAws_restJson1ListCustomPluginsCommand = async (output, context)
|
|
|
908
1001
|
customPlugins: undefined,
|
|
909
1002
|
nextToken: undefined,
|
|
910
1003
|
};
|
|
911
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1004
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
912
1005
|
if (data.customPlugins !== undefined && data.customPlugins !== null) {
|
|
913
1006
|
contents.customPlugins = deserializeAws_restJson1__listOfCustomPluginSummary(data.customPlugins, context);
|
|
914
1007
|
}
|
|
915
1008
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
916
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1009
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
917
1010
|
}
|
|
918
1011
|
return Promise.resolve(contents);
|
|
919
1012
|
};
|
|
@@ -955,7 +1048,7 @@ const deserializeAws_restJson1ListCustomPluginsCommandError = async (output, con
|
|
|
955
1048
|
$fault: "client",
|
|
956
1049
|
$metadata: deserializeMetadata(output),
|
|
957
1050
|
});
|
|
958
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1051
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
959
1052
|
}
|
|
960
1053
|
};
|
|
961
1054
|
const deserializeAws_restJson1ListWorkerConfigurationsCommand = async (output, context) => {
|
|
@@ -967,9 +1060,9 @@ const deserializeAws_restJson1ListWorkerConfigurationsCommand = async (output, c
|
|
|
967
1060
|
nextToken: undefined,
|
|
968
1061
|
workerConfigurations: undefined,
|
|
969
1062
|
};
|
|
970
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1063
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
971
1064
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
972
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1065
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
973
1066
|
}
|
|
974
1067
|
if (data.workerConfigurations !== undefined && data.workerConfigurations !== null) {
|
|
975
1068
|
contents.workerConfigurations = deserializeAws_restJson1__listOfWorkerConfigurationSummary(data.workerConfigurations, context);
|
|
@@ -1014,7 +1107,7 @@ const deserializeAws_restJson1ListWorkerConfigurationsCommandError = async (outp
|
|
|
1014
1107
|
$fault: "client",
|
|
1015
1108
|
$metadata: deserializeMetadata(output),
|
|
1016
1109
|
});
|
|
1017
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1110
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1018
1111
|
}
|
|
1019
1112
|
};
|
|
1020
1113
|
const deserializeAws_restJson1UpdateConnectorCommand = async (output, context) => {
|
|
@@ -1026,12 +1119,12 @@ const deserializeAws_restJson1UpdateConnectorCommand = async (output, context) =
|
|
|
1026
1119
|
connectorArn: undefined,
|
|
1027
1120
|
connectorState: undefined,
|
|
1028
1121
|
};
|
|
1029
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1122
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1030
1123
|
if (data.connectorArn !== undefined && data.connectorArn !== null) {
|
|
1031
|
-
contents.connectorArn = smithy_client_1.expectString(data.connectorArn);
|
|
1124
|
+
contents.connectorArn = (0, smithy_client_1.expectString)(data.connectorArn);
|
|
1032
1125
|
}
|
|
1033
1126
|
if (data.connectorState !== undefined && data.connectorState !== null) {
|
|
1034
|
-
contents.connectorState = smithy_client_1.expectString(data.connectorState);
|
|
1127
|
+
contents.connectorState = (0, smithy_client_1.expectString)(data.connectorState);
|
|
1035
1128
|
}
|
|
1036
1129
|
return Promise.resolve(contents);
|
|
1037
1130
|
};
|
|
@@ -1073,104 +1166,104 @@ const deserializeAws_restJson1UpdateConnectorCommandError = async (output, conte
|
|
|
1073
1166
|
$fault: "client",
|
|
1074
1167
|
$metadata: deserializeMetadata(output),
|
|
1075
1168
|
});
|
|
1076
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1169
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1077
1170
|
}
|
|
1078
1171
|
};
|
|
1079
1172
|
const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1080
1173
|
const contents = {};
|
|
1081
1174
|
const data = parsedOutput.body;
|
|
1082
1175
|
if (data.message !== undefined && data.message !== null) {
|
|
1083
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1176
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1084
1177
|
}
|
|
1085
1178
|
const exception = new models_0_1.BadRequestException({
|
|
1086
1179
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1087
1180
|
...contents,
|
|
1088
1181
|
});
|
|
1089
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1182
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1090
1183
|
};
|
|
1091
1184
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1092
1185
|
const contents = {};
|
|
1093
1186
|
const data = parsedOutput.body;
|
|
1094
1187
|
if (data.message !== undefined && data.message !== null) {
|
|
1095
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1188
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1096
1189
|
}
|
|
1097
1190
|
const exception = new models_0_1.ConflictException({
|
|
1098
1191
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1099
1192
|
...contents,
|
|
1100
1193
|
});
|
|
1101
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1194
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1102
1195
|
};
|
|
1103
1196
|
const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
|
|
1104
1197
|
const contents = {};
|
|
1105
1198
|
const data = parsedOutput.body;
|
|
1106
1199
|
if (data.message !== undefined && data.message !== null) {
|
|
1107
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1200
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1108
1201
|
}
|
|
1109
1202
|
const exception = new models_0_1.ForbiddenException({
|
|
1110
1203
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1111
1204
|
...contents,
|
|
1112
1205
|
});
|
|
1113
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1206
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1114
1207
|
};
|
|
1115
1208
|
const deserializeAws_restJson1InternalServerErrorExceptionResponse = async (parsedOutput, context) => {
|
|
1116
1209
|
const contents = {};
|
|
1117
1210
|
const data = parsedOutput.body;
|
|
1118
1211
|
if (data.message !== undefined && data.message !== null) {
|
|
1119
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1212
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1120
1213
|
}
|
|
1121
1214
|
const exception = new models_0_1.InternalServerErrorException({
|
|
1122
1215
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
1216
|
...contents,
|
|
1124
1217
|
});
|
|
1125
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1218
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1126
1219
|
};
|
|
1127
1220
|
const deserializeAws_restJson1NotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1128
1221
|
const contents = {};
|
|
1129
1222
|
const data = parsedOutput.body;
|
|
1130
1223
|
if (data.message !== undefined && data.message !== null) {
|
|
1131
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1224
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1132
1225
|
}
|
|
1133
1226
|
const exception = new models_0_1.NotFoundException({
|
|
1134
1227
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1135
1228
|
...contents,
|
|
1136
1229
|
});
|
|
1137
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1230
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1138
1231
|
};
|
|
1139
1232
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1140
1233
|
const contents = {};
|
|
1141
1234
|
const data = parsedOutput.body;
|
|
1142
1235
|
if (data.message !== undefined && data.message !== null) {
|
|
1143
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1236
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1144
1237
|
}
|
|
1145
1238
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
1146
1239
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1147
1240
|
...contents,
|
|
1148
1241
|
});
|
|
1149
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1242
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1150
1243
|
};
|
|
1151
1244
|
const deserializeAws_restJson1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1152
1245
|
const contents = {};
|
|
1153
1246
|
const data = parsedOutput.body;
|
|
1154
1247
|
if (data.message !== undefined && data.message !== null) {
|
|
1155
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1248
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1156
1249
|
}
|
|
1157
1250
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1158
1251
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
1252
|
...contents,
|
|
1160
1253
|
});
|
|
1161
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1254
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1162
1255
|
};
|
|
1163
1256
|
const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
|
|
1164
1257
|
const contents = {};
|
|
1165
1258
|
const data = parsedOutput.body;
|
|
1166
1259
|
if (data.message !== undefined && data.message !== null) {
|
|
1167
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
1260
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
1168
1261
|
}
|
|
1169
1262
|
const exception = new models_0_1.UnauthorizedException({
|
|
1170
1263
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1171
1264
|
...contents,
|
|
1172
1265
|
});
|
|
1173
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
1266
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1174
1267
|
};
|
|
1175
1268
|
const serializeAws_restJson1__listOf__string = (input, context) => {
|
|
1176
1269
|
return input
|
|
@@ -1411,7 +1504,7 @@ const deserializeAws_restJson1__listOf__string = (output, context) => {
|
|
|
1411
1504
|
if (entry === null) {
|
|
1412
1505
|
return null;
|
|
1413
1506
|
}
|
|
1414
|
-
return smithy_client_1.expectString(entry);
|
|
1507
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1415
1508
|
});
|
|
1416
1509
|
return retVal;
|
|
1417
1510
|
};
|
|
@@ -1466,13 +1559,13 @@ const deserializeAws_restJson1__mapOf__string = (output, context) => {
|
|
|
1466
1559
|
}
|
|
1467
1560
|
return {
|
|
1468
1561
|
...acc,
|
|
1469
|
-
[key]: smithy_client_1.expectString(value),
|
|
1562
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
1470
1563
|
};
|
|
1471
1564
|
}, {});
|
|
1472
1565
|
};
|
|
1473
1566
|
const deserializeAws_restJson1ApacheKafkaClusterDescription = (output, context) => {
|
|
1474
1567
|
return {
|
|
1475
|
-
bootstrapServers: smithy_client_1.expectString(output.bootstrapServers),
|
|
1568
|
+
bootstrapServers: (0, smithy_client_1.expectString)(output.bootstrapServers),
|
|
1476
1569
|
vpc: output.vpc !== undefined && output.vpc !== null
|
|
1477
1570
|
? deserializeAws_restJson1VpcDescription(output.vpc, context)
|
|
1478
1571
|
: undefined,
|
|
@@ -1480,9 +1573,9 @@ const deserializeAws_restJson1ApacheKafkaClusterDescription = (output, context)
|
|
|
1480
1573
|
};
|
|
1481
1574
|
const deserializeAws_restJson1AutoScalingDescription = (output, context) => {
|
|
1482
1575
|
return {
|
|
1483
|
-
maxWorkerCount: smithy_client_1.expectInt32(output.maxWorkerCount),
|
|
1484
|
-
mcuCount: smithy_client_1.expectInt32(output.mcuCount),
|
|
1485
|
-
minWorkerCount: smithy_client_1.expectInt32(output.minWorkerCount),
|
|
1576
|
+
maxWorkerCount: (0, smithy_client_1.expectInt32)(output.maxWorkerCount),
|
|
1577
|
+
mcuCount: (0, smithy_client_1.expectInt32)(output.mcuCount),
|
|
1578
|
+
minWorkerCount: (0, smithy_client_1.expectInt32)(output.minWorkerCount),
|
|
1486
1579
|
scaleInPolicy: output.scaleInPolicy !== undefined && output.scaleInPolicy !== null
|
|
1487
1580
|
? deserializeAws_restJson1ScaleInPolicyDescription(output.scaleInPolicy, context)
|
|
1488
1581
|
: undefined,
|
|
@@ -1503,8 +1596,8 @@ const deserializeAws_restJson1CapacityDescription = (output, context) => {
|
|
|
1503
1596
|
};
|
|
1504
1597
|
const deserializeAws_restJson1CloudWatchLogsLogDeliveryDescription = (output, context) => {
|
|
1505
1598
|
return {
|
|
1506
|
-
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
1507
|
-
logGroup: smithy_client_1.expectString(output.logGroup),
|
|
1599
|
+
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1600
|
+
logGroup: (0, smithy_client_1.expectString)(output.logGroup),
|
|
1508
1601
|
};
|
|
1509
1602
|
};
|
|
1510
1603
|
const deserializeAws_restJson1ConnectorSummary = (output, context) => {
|
|
@@ -1512,14 +1605,14 @@ const deserializeAws_restJson1ConnectorSummary = (output, context) => {
|
|
|
1512
1605
|
capacity: output.capacity !== undefined && output.capacity !== null
|
|
1513
1606
|
? deserializeAws_restJson1CapacityDescription(output.capacity, context)
|
|
1514
1607
|
: undefined,
|
|
1515
|
-
connectorArn: smithy_client_1.expectString(output.connectorArn),
|
|
1516
|
-
connectorDescription: smithy_client_1.expectString(output.connectorDescription),
|
|
1517
|
-
connectorName: smithy_client_1.expectString(output.connectorName),
|
|
1518
|
-
connectorState: smithy_client_1.expectString(output.connectorState),
|
|
1608
|
+
connectorArn: (0, smithy_client_1.expectString)(output.connectorArn),
|
|
1609
|
+
connectorDescription: (0, smithy_client_1.expectString)(output.connectorDescription),
|
|
1610
|
+
connectorName: (0, smithy_client_1.expectString)(output.connectorName),
|
|
1611
|
+
connectorState: (0, smithy_client_1.expectString)(output.connectorState),
|
|
1519
1612
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1520
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
1613
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1521
1614
|
: undefined,
|
|
1522
|
-
currentVersion: smithy_client_1.expectString(output.currentVersion),
|
|
1615
|
+
currentVersion: (0, smithy_client_1.expectString)(output.currentVersion),
|
|
1523
1616
|
kafkaCluster: output.kafkaCluster !== undefined && output.kafkaCluster !== null
|
|
1524
1617
|
? deserializeAws_restJson1KafkaClusterDescription(output.kafkaCluster, context)
|
|
1525
1618
|
: undefined,
|
|
@@ -1529,14 +1622,14 @@ const deserializeAws_restJson1ConnectorSummary = (output, context) => {
|
|
|
1529
1622
|
kafkaClusterEncryptionInTransit: output.kafkaClusterEncryptionInTransit !== undefined && output.kafkaClusterEncryptionInTransit !== null
|
|
1530
1623
|
? deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription(output.kafkaClusterEncryptionInTransit, context)
|
|
1531
1624
|
: undefined,
|
|
1532
|
-
kafkaConnectVersion: smithy_client_1.expectString(output.kafkaConnectVersion),
|
|
1625
|
+
kafkaConnectVersion: (0, smithy_client_1.expectString)(output.kafkaConnectVersion),
|
|
1533
1626
|
logDelivery: output.logDelivery !== undefined && output.logDelivery !== null
|
|
1534
1627
|
? deserializeAws_restJson1LogDeliveryDescription(output.logDelivery, context)
|
|
1535
1628
|
: undefined,
|
|
1536
1629
|
plugins: output.plugins !== undefined && output.plugins !== null
|
|
1537
1630
|
? deserializeAws_restJson1__listOfPluginDescription(output.plugins, context)
|
|
1538
1631
|
: undefined,
|
|
1539
|
-
serviceExecutionRoleArn: smithy_client_1.expectString(output.serviceExecutionRoleArn),
|
|
1632
|
+
serviceExecutionRoleArn: (0, smithy_client_1.expectString)(output.serviceExecutionRoleArn),
|
|
1540
1633
|
workerConfiguration: output.workerConfiguration !== undefined && output.workerConfiguration !== null
|
|
1541
1634
|
? deserializeAws_restJson1WorkerConfigurationDescription(output.workerConfiguration, context)
|
|
1542
1635
|
: undefined,
|
|
@@ -1544,14 +1637,14 @@ const deserializeAws_restJson1ConnectorSummary = (output, context) => {
|
|
|
1544
1637
|
};
|
|
1545
1638
|
const deserializeAws_restJson1CustomPluginDescription = (output, context) => {
|
|
1546
1639
|
return {
|
|
1547
|
-
customPluginArn: smithy_client_1.expectString(output.customPluginArn),
|
|
1548
|
-
revision: smithy_client_1.expectLong(output.revision),
|
|
1640
|
+
customPluginArn: (0, smithy_client_1.expectString)(output.customPluginArn),
|
|
1641
|
+
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
1549
1642
|
};
|
|
1550
1643
|
};
|
|
1551
1644
|
const deserializeAws_restJson1CustomPluginFileDescription = (output, context) => {
|
|
1552
1645
|
return {
|
|
1553
|
-
fileMd5: smithy_client_1.expectString(output.fileMd5),
|
|
1554
|
-
fileSize: smithy_client_1.expectLong(output.fileSize),
|
|
1646
|
+
fileMd5: (0, smithy_client_1.expectString)(output.fileMd5),
|
|
1647
|
+
fileSize: (0, smithy_client_1.expectLong)(output.fileSize),
|
|
1555
1648
|
};
|
|
1556
1649
|
};
|
|
1557
1650
|
const deserializeAws_restJson1CustomPluginLocationDescription = (output, context) => {
|
|
@@ -1563,43 +1656,43 @@ const deserializeAws_restJson1CustomPluginLocationDescription = (output, context
|
|
|
1563
1656
|
};
|
|
1564
1657
|
const deserializeAws_restJson1CustomPluginRevisionSummary = (output, context) => {
|
|
1565
1658
|
return {
|
|
1566
|
-
contentType: smithy_client_1.expectString(output.contentType),
|
|
1659
|
+
contentType: (0, smithy_client_1.expectString)(output.contentType),
|
|
1567
1660
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1568
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
1661
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1569
1662
|
: undefined,
|
|
1570
|
-
description: smithy_client_1.expectString(output.description),
|
|
1663
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1571
1664
|
fileDescription: output.fileDescription !== undefined && output.fileDescription !== null
|
|
1572
1665
|
? deserializeAws_restJson1CustomPluginFileDescription(output.fileDescription, context)
|
|
1573
1666
|
: undefined,
|
|
1574
1667
|
location: output.location !== undefined && output.location !== null
|
|
1575
1668
|
? deserializeAws_restJson1CustomPluginLocationDescription(output.location, context)
|
|
1576
1669
|
: undefined,
|
|
1577
|
-
revision: smithy_client_1.expectLong(output.revision),
|
|
1670
|
+
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
1578
1671
|
};
|
|
1579
1672
|
};
|
|
1580
1673
|
const deserializeAws_restJson1CustomPluginSummary = (output, context) => {
|
|
1581
1674
|
return {
|
|
1582
1675
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1583
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
1676
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1584
1677
|
: undefined,
|
|
1585
|
-
customPluginArn: smithy_client_1.expectString(output.customPluginArn),
|
|
1586
|
-
customPluginState: smithy_client_1.expectString(output.customPluginState),
|
|
1587
|
-
description: smithy_client_1.expectString(output.description),
|
|
1678
|
+
customPluginArn: (0, smithy_client_1.expectString)(output.customPluginArn),
|
|
1679
|
+
customPluginState: (0, smithy_client_1.expectString)(output.customPluginState),
|
|
1680
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1588
1681
|
latestRevision: output.latestRevision !== undefined && output.latestRevision !== null
|
|
1589
1682
|
? deserializeAws_restJson1CustomPluginRevisionSummary(output.latestRevision, context)
|
|
1590
1683
|
: undefined,
|
|
1591
|
-
name: smithy_client_1.expectString(output.name),
|
|
1684
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1592
1685
|
};
|
|
1593
1686
|
};
|
|
1594
1687
|
const deserializeAws_restJson1FirehoseLogDeliveryDescription = (output, context) => {
|
|
1595
1688
|
return {
|
|
1596
|
-
deliveryStream: smithy_client_1.expectString(output.deliveryStream),
|
|
1597
|
-
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
1689
|
+
deliveryStream: (0, smithy_client_1.expectString)(output.deliveryStream),
|
|
1690
|
+
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1598
1691
|
};
|
|
1599
1692
|
};
|
|
1600
1693
|
const deserializeAws_restJson1KafkaClusterClientAuthenticationDescription = (output, context) => {
|
|
1601
1694
|
return {
|
|
1602
|
-
authenticationType: smithy_client_1.expectString(output.authenticationType),
|
|
1695
|
+
authenticationType: (0, smithy_client_1.expectString)(output.authenticationType),
|
|
1603
1696
|
};
|
|
1604
1697
|
};
|
|
1605
1698
|
const deserializeAws_restJson1KafkaClusterDescription = (output, context) => {
|
|
@@ -1611,7 +1704,7 @@ const deserializeAws_restJson1KafkaClusterDescription = (output, context) => {
|
|
|
1611
1704
|
};
|
|
1612
1705
|
const deserializeAws_restJson1KafkaClusterEncryptionInTransitDescription = (output, context) => {
|
|
1613
1706
|
return {
|
|
1614
|
-
encryptionType: smithy_client_1.expectString(output.encryptionType),
|
|
1707
|
+
encryptionType: (0, smithy_client_1.expectString)(output.encryptionType),
|
|
1615
1708
|
};
|
|
1616
1709
|
};
|
|
1617
1710
|
const deserializeAws_restJson1LogDeliveryDescription = (output, context) => {
|
|
@@ -1630,32 +1723,38 @@ const deserializeAws_restJson1PluginDescription = (output, context) => {
|
|
|
1630
1723
|
};
|
|
1631
1724
|
const deserializeAws_restJson1ProvisionedCapacityDescription = (output, context) => {
|
|
1632
1725
|
return {
|
|
1633
|
-
mcuCount: smithy_client_1.expectInt32(output.mcuCount),
|
|
1634
|
-
workerCount: smithy_client_1.expectInt32(output.workerCount),
|
|
1726
|
+
mcuCount: (0, smithy_client_1.expectInt32)(output.mcuCount),
|
|
1727
|
+
workerCount: (0, smithy_client_1.expectInt32)(output.workerCount),
|
|
1635
1728
|
};
|
|
1636
1729
|
};
|
|
1637
1730
|
const deserializeAws_restJson1S3LocationDescription = (output, context) => {
|
|
1638
1731
|
return {
|
|
1639
|
-
bucketArn: smithy_client_1.expectString(output.bucketArn),
|
|
1640
|
-
fileKey: smithy_client_1.expectString(output.fileKey),
|
|
1641
|
-
objectVersion: smithy_client_1.expectString(output.objectVersion),
|
|
1732
|
+
bucketArn: (0, smithy_client_1.expectString)(output.bucketArn),
|
|
1733
|
+
fileKey: (0, smithy_client_1.expectString)(output.fileKey),
|
|
1734
|
+
objectVersion: (0, smithy_client_1.expectString)(output.objectVersion),
|
|
1642
1735
|
};
|
|
1643
1736
|
};
|
|
1644
1737
|
const deserializeAws_restJson1S3LogDeliveryDescription = (output, context) => {
|
|
1645
1738
|
return {
|
|
1646
|
-
bucket: smithy_client_1.expectString(output.bucket),
|
|
1647
|
-
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
1648
|
-
prefix: smithy_client_1.expectString(output.prefix),
|
|
1739
|
+
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
1740
|
+
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
1741
|
+
prefix: (0, smithy_client_1.expectString)(output.prefix),
|
|
1649
1742
|
};
|
|
1650
1743
|
};
|
|
1651
1744
|
const deserializeAws_restJson1ScaleInPolicyDescription = (output, context) => {
|
|
1652
1745
|
return {
|
|
1653
|
-
cpuUtilizationPercentage: smithy_client_1.expectInt32(output.cpuUtilizationPercentage),
|
|
1746
|
+
cpuUtilizationPercentage: (0, smithy_client_1.expectInt32)(output.cpuUtilizationPercentage),
|
|
1654
1747
|
};
|
|
1655
1748
|
};
|
|
1656
1749
|
const deserializeAws_restJson1ScaleOutPolicyDescription = (output, context) => {
|
|
1657
1750
|
return {
|
|
1658
|
-
cpuUtilizationPercentage: smithy_client_1.expectInt32(output.cpuUtilizationPercentage),
|
|
1751
|
+
cpuUtilizationPercentage: (0, smithy_client_1.expectInt32)(output.cpuUtilizationPercentage),
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
const deserializeAws_restJson1StateDescription = (output, context) => {
|
|
1755
|
+
return {
|
|
1756
|
+
code: (0, smithy_client_1.expectString)(output.code),
|
|
1757
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
1659
1758
|
};
|
|
1660
1759
|
};
|
|
1661
1760
|
const deserializeAws_restJson1VpcDescription = (output, context) => {
|
|
@@ -1670,40 +1769,40 @@ const deserializeAws_restJson1VpcDescription = (output, context) => {
|
|
|
1670
1769
|
};
|
|
1671
1770
|
const deserializeAws_restJson1WorkerConfigurationDescription = (output, context) => {
|
|
1672
1771
|
return {
|
|
1673
|
-
revision: smithy_client_1.expectLong(output.revision),
|
|
1674
|
-
workerConfigurationArn: smithy_client_1.expectString(output.workerConfigurationArn),
|
|
1772
|
+
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
1773
|
+
workerConfigurationArn: (0, smithy_client_1.expectString)(output.workerConfigurationArn),
|
|
1675
1774
|
};
|
|
1676
1775
|
};
|
|
1677
1776
|
const deserializeAws_restJson1WorkerConfigurationRevisionDescription = (output, context) => {
|
|
1678
1777
|
return {
|
|
1679
1778
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1680
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
1779
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1681
1780
|
: undefined,
|
|
1682
|
-
description: smithy_client_1.expectString(output.description),
|
|
1683
|
-
propertiesFileContent: smithy_client_1.expectString(output.propertiesFileContent),
|
|
1684
|
-
revision: smithy_client_1.expectLong(output.revision),
|
|
1781
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1782
|
+
propertiesFileContent: (0, smithy_client_1.expectString)(output.propertiesFileContent),
|
|
1783
|
+
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
1685
1784
|
};
|
|
1686
1785
|
};
|
|
1687
1786
|
const deserializeAws_restJson1WorkerConfigurationRevisionSummary = (output, context) => {
|
|
1688
1787
|
return {
|
|
1689
1788
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1690
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
1789
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1691
1790
|
: undefined,
|
|
1692
|
-
description: smithy_client_1.expectString(output.description),
|
|
1693
|
-
revision: smithy_client_1.expectLong(output.revision),
|
|
1791
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1792
|
+
revision: (0, smithy_client_1.expectLong)(output.revision),
|
|
1694
1793
|
};
|
|
1695
1794
|
};
|
|
1696
1795
|
const deserializeAws_restJson1WorkerConfigurationSummary = (output, context) => {
|
|
1697
1796
|
return {
|
|
1698
1797
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1699
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.creationTime))
|
|
1798
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.creationTime))
|
|
1700
1799
|
: undefined,
|
|
1701
|
-
description: smithy_client_1.expectString(output.description),
|
|
1800
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1702
1801
|
latestRevision: output.latestRevision !== undefined && output.latestRevision !== null
|
|
1703
1802
|
? deserializeAws_restJson1WorkerConfigurationRevisionSummary(output.latestRevision, context)
|
|
1704
1803
|
: undefined,
|
|
1705
|
-
name: smithy_client_1.expectString(output.name),
|
|
1706
|
-
workerConfigurationArn: smithy_client_1.expectString(output.workerConfigurationArn),
|
|
1804
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1805
|
+
workerConfigurationArn: (0, smithy_client_1.expectString)(output.workerConfigurationArn),
|
|
1707
1806
|
};
|
|
1708
1807
|
};
|
|
1709
1808
|
const deserializeAws_restJson1WorkerLogDeliveryDescription = (output, context) => {
|