@aws-sdk/client-eventbridge 3.56.0 → 3.67.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/README.md +2 -2
- package/dist-cjs/EventBridge.js +75 -0
- package/dist-cjs/commands/CreateEndpointCommand.js +36 -0
- package/dist-cjs/commands/DeleteEndpointCommand.js +36 -0
- package/dist-cjs/commands/DescribeEndpointCommand.js +36 -0
- package/dist-cjs/commands/ListEndpointsCommand.js +36 -0
- package/dist-cjs/commands/PutEventsCommand.js +2 -0
- package/dist-cjs/commands/UpdateEndpointCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +121 -4
- package/dist-cjs/protocols/Aws_json1_1.js +514 -3
- package/dist-cjs/runtimeConfig.shared.js +4 -2
- package/dist-es/EventBridge.js +75 -0
- package/dist-es/commands/CreateEndpointCommand.js +39 -0
- package/dist-es/commands/DeleteEndpointCommand.js +39 -0
- package/dist-es/commands/DescribeEndpointCommand.js +39 -0
- package/dist-es/commands/ListEndpointsCommand.js +39 -0
- package/dist-es/commands/PutEventsCommand.js +2 -0
- package/dist-es/commands/UpdateEndpointCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +83 -0
- package/dist-es/protocols/Aws_json1_1.js +556 -1
- package/dist-es/runtimeConfig.shared.js +4 -2
- package/dist-types/EventBridge.d.ts +81 -25
- package/dist-types/EventBridgeClient.d.ts +7 -2
- package/dist-types/commands/CreateEndpointCommand.d.ts +37 -0
- package/dist-types/commands/DeleteEndpointCommand.d.ts +35 -0
- package/dist-types/commands/DescribeEndpointCommand.d.ts +35 -0
- package/dist-types/commands/ListEndpointsCommand.d.ts +35 -0
- package/dist-types/commands/PutEventsCommand.d.ts +3 -0
- package/dist-types/commands/PutTargetsCommand.d.ts +41 -25
- package/dist-types/commands/UpdateEndpointCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +472 -3
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -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 +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/EventBridge.d.ts +25 -0
- package/dist-types/ts3.4/EventBridgeClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/CreateEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEndpointsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +264 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -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 +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +23 -19
|
@@ -58,6 +58,17 @@ export var serializeAws_json1_1CreateConnectionCommand = function (input, contex
|
|
|
58
58
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
59
59
|
});
|
|
60
60
|
}); };
|
|
61
|
+
export var serializeAws_json1_1CreateEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
|
+
var headers, body;
|
|
63
|
+
return __generator(this, function (_a) {
|
|
64
|
+
headers = {
|
|
65
|
+
"content-type": "application/x-amz-json-1.1",
|
|
66
|
+
"x-amz-target": "AWSEvents.CreateEndpoint",
|
|
67
|
+
};
|
|
68
|
+
body = JSON.stringify(serializeAws_json1_1CreateEndpointRequest(input, context));
|
|
69
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
70
|
+
});
|
|
71
|
+
}); };
|
|
61
72
|
export var serializeAws_json1_1CreateEventBusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
62
73
|
var headers, body;
|
|
63
74
|
return __generator(this, function (_a) {
|
|
@@ -135,6 +146,17 @@ export var serializeAws_json1_1DeleteConnectionCommand = function (input, contex
|
|
|
135
146
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
136
147
|
});
|
|
137
148
|
}); };
|
|
149
|
+
export var serializeAws_json1_1DeleteEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
var headers, body;
|
|
151
|
+
return __generator(this, function (_a) {
|
|
152
|
+
headers = {
|
|
153
|
+
"content-type": "application/x-amz-json-1.1",
|
|
154
|
+
"x-amz-target": "AWSEvents.DeleteEndpoint",
|
|
155
|
+
};
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1DeleteEndpointRequest(input, context));
|
|
157
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
158
|
+
});
|
|
159
|
+
}); };
|
|
138
160
|
export var serializeAws_json1_1DeleteEventBusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
139
161
|
var headers, body;
|
|
140
162
|
return __generator(this, function (_a) {
|
|
@@ -201,6 +223,17 @@ export var serializeAws_json1_1DescribeConnectionCommand = function (input, cont
|
|
|
201
223
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
202
224
|
});
|
|
203
225
|
}); };
|
|
226
|
+
export var serializeAws_json1_1DescribeEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
227
|
+
var headers, body;
|
|
228
|
+
return __generator(this, function (_a) {
|
|
229
|
+
headers = {
|
|
230
|
+
"content-type": "application/x-amz-json-1.1",
|
|
231
|
+
"x-amz-target": "AWSEvents.DescribeEndpoint",
|
|
232
|
+
};
|
|
233
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEndpointRequest(input, context));
|
|
234
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
235
|
+
});
|
|
236
|
+
}); };
|
|
204
237
|
export var serializeAws_json1_1DescribeEventBusCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
205
238
|
var headers, body;
|
|
206
239
|
return __generator(this, function (_a) {
|
|
@@ -311,6 +344,17 @@ export var serializeAws_json1_1ListConnectionsCommand = function (input, context
|
|
|
311
344
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
312
345
|
});
|
|
313
346
|
}); };
|
|
347
|
+
export var serializeAws_json1_1ListEndpointsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
348
|
+
var headers, body;
|
|
349
|
+
return __generator(this, function (_a) {
|
|
350
|
+
headers = {
|
|
351
|
+
"content-type": "application/x-amz-json-1.1",
|
|
352
|
+
"x-amz-target": "AWSEvents.ListEndpoints",
|
|
353
|
+
};
|
|
354
|
+
body = JSON.stringify(serializeAws_json1_1ListEndpointsRequest(input, context));
|
|
355
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
356
|
+
});
|
|
357
|
+
}); };
|
|
314
358
|
export var serializeAws_json1_1ListEventBusesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
315
359
|
var headers, body;
|
|
316
360
|
return __generator(this, function (_a) {
|
|
@@ -564,6 +608,17 @@ export var serializeAws_json1_1UpdateConnectionCommand = function (input, contex
|
|
|
564
608
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
565
609
|
});
|
|
566
610
|
}); };
|
|
611
|
+
export var serializeAws_json1_1UpdateEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
612
|
+
var headers, body;
|
|
613
|
+
return __generator(this, function (_a) {
|
|
614
|
+
headers = {
|
|
615
|
+
"content-type": "application/x-amz-json-1.1",
|
|
616
|
+
"x-amz-target": "AWSEvents.UpdateEndpoint",
|
|
617
|
+
};
|
|
618
|
+
body = JSON.stringify(serializeAws_json1_1UpdateEndpointRequest(input, context));
|
|
619
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
620
|
+
});
|
|
621
|
+
}); };
|
|
567
622
|
export var deserializeAws_json1_1ActivateEventSourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
568
623
|
var response;
|
|
569
624
|
return __generator(this, function (_a) {
|
|
@@ -882,6 +937,64 @@ var deserializeAws_json1_1CreateConnectionCommandError = function (output, conte
|
|
|
882
937
|
}
|
|
883
938
|
});
|
|
884
939
|
}); };
|
|
940
|
+
export var deserializeAws_json1_1CreateEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
941
|
+
var data, contents, response;
|
|
942
|
+
return __generator(this, function (_a) {
|
|
943
|
+
switch (_a.label) {
|
|
944
|
+
case 0:
|
|
945
|
+
if (output.statusCode >= 300) {
|
|
946
|
+
return [2, deserializeAws_json1_1CreateEndpointCommandError(output, context)];
|
|
947
|
+
}
|
|
948
|
+
return [4, parseBody(output.body, context)];
|
|
949
|
+
case 1:
|
|
950
|
+
data = _a.sent();
|
|
951
|
+
contents = {};
|
|
952
|
+
contents = deserializeAws_json1_1CreateEndpointResponse(data, context);
|
|
953
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
954
|
+
return [2, Promise.resolve(response)];
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
}); };
|
|
958
|
+
var deserializeAws_json1_1CreateEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
959
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
960
|
+
var _c;
|
|
961
|
+
return __generator(this, function (_d) {
|
|
962
|
+
switch (_d.label) {
|
|
963
|
+
case 0:
|
|
964
|
+
_a = [__assign({}, output)];
|
|
965
|
+
_c = {};
|
|
966
|
+
return [4, parseBody(output.body, context)];
|
|
967
|
+
case 1:
|
|
968
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
969
|
+
errorCode = "UnknownError";
|
|
970
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
|
+
_b = errorCode;
|
|
972
|
+
switch (_b) {
|
|
973
|
+
case "InternalException": return [3, 2];
|
|
974
|
+
case "com.amazonaws.eventbridge#InternalException": return [3, 2];
|
|
975
|
+
case "LimitExceededException": return [3, 4];
|
|
976
|
+
case "com.amazonaws.eventbridge#LimitExceededException": return [3, 4];
|
|
977
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
978
|
+
case "com.amazonaws.eventbridge#ResourceAlreadyExistsException": return [3, 6];
|
|
979
|
+
}
|
|
980
|
+
return [3, 8];
|
|
981
|
+
case 2: return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
982
|
+
case 3: throw _d.sent();
|
|
983
|
+
case 4: return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
984
|
+
case 5: throw _d.sent();
|
|
985
|
+
case 6: return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
986
|
+
case 7: throw _d.sent();
|
|
987
|
+
case 8:
|
|
988
|
+
parsedBody = parsedOutput.body;
|
|
989
|
+
response = new __BaseException({
|
|
990
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
991
|
+
$fault: "client",
|
|
992
|
+
$metadata: deserializeMetadata(output),
|
|
993
|
+
});
|
|
994
|
+
throw __decorateServiceException(response, parsedBody);
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
}); };
|
|
885
998
|
export var deserializeAws_json1_1CreateEventBusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
886
999
|
var data, contents, response;
|
|
887
1000
|
return __generator(this, function (_a) {
|
|
@@ -1320,6 +1433,64 @@ var deserializeAws_json1_1DeleteConnectionCommandError = function (output, conte
|
|
|
1320
1433
|
}
|
|
1321
1434
|
});
|
|
1322
1435
|
}); };
|
|
1436
|
+
export var deserializeAws_json1_1DeleteEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1437
|
+
var data, contents, response;
|
|
1438
|
+
return __generator(this, function (_a) {
|
|
1439
|
+
switch (_a.label) {
|
|
1440
|
+
case 0:
|
|
1441
|
+
if (output.statusCode >= 300) {
|
|
1442
|
+
return [2, deserializeAws_json1_1DeleteEndpointCommandError(output, context)];
|
|
1443
|
+
}
|
|
1444
|
+
return [4, parseBody(output.body, context)];
|
|
1445
|
+
case 1:
|
|
1446
|
+
data = _a.sent();
|
|
1447
|
+
contents = {};
|
|
1448
|
+
contents = deserializeAws_json1_1DeleteEndpointResponse(data, context);
|
|
1449
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1450
|
+
return [2, Promise.resolve(response)];
|
|
1451
|
+
}
|
|
1452
|
+
});
|
|
1453
|
+
}); };
|
|
1454
|
+
var deserializeAws_json1_1DeleteEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1455
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1456
|
+
var _c;
|
|
1457
|
+
return __generator(this, function (_d) {
|
|
1458
|
+
switch (_d.label) {
|
|
1459
|
+
case 0:
|
|
1460
|
+
_a = [__assign({}, output)];
|
|
1461
|
+
_c = {};
|
|
1462
|
+
return [4, parseBody(output.body, context)];
|
|
1463
|
+
case 1:
|
|
1464
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1465
|
+
errorCode = "UnknownError";
|
|
1466
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1467
|
+
_b = errorCode;
|
|
1468
|
+
switch (_b) {
|
|
1469
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
1470
|
+
case "com.amazonaws.eventbridge#ConcurrentModificationException": return [3, 2];
|
|
1471
|
+
case "InternalException": return [3, 4];
|
|
1472
|
+
case "com.amazonaws.eventbridge#InternalException": return [3, 4];
|
|
1473
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1474
|
+
case "com.amazonaws.eventbridge#ResourceNotFoundException": return [3, 6];
|
|
1475
|
+
}
|
|
1476
|
+
return [3, 8];
|
|
1477
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
1478
|
+
case 3: throw _d.sent();
|
|
1479
|
+
case 4: return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1480
|
+
case 5: throw _d.sent();
|
|
1481
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1482
|
+
case 7: throw _d.sent();
|
|
1483
|
+
case 8:
|
|
1484
|
+
parsedBody = parsedOutput.body;
|
|
1485
|
+
response = new __BaseException({
|
|
1486
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1487
|
+
$fault: "client",
|
|
1488
|
+
$metadata: deserializeMetadata(output),
|
|
1489
|
+
});
|
|
1490
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1491
|
+
}
|
|
1492
|
+
});
|
|
1493
|
+
}); };
|
|
1323
1494
|
export var deserializeAws_json1_1DeleteEventBusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1324
1495
|
var response;
|
|
1325
1496
|
return __generator(this, function (_a) {
|
|
@@ -1660,6 +1831,60 @@ var deserializeAws_json1_1DescribeConnectionCommandError = function (output, con
|
|
|
1660
1831
|
}
|
|
1661
1832
|
});
|
|
1662
1833
|
}); };
|
|
1834
|
+
export var deserializeAws_json1_1DescribeEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1835
|
+
var data, contents, response;
|
|
1836
|
+
return __generator(this, function (_a) {
|
|
1837
|
+
switch (_a.label) {
|
|
1838
|
+
case 0:
|
|
1839
|
+
if (output.statusCode >= 300) {
|
|
1840
|
+
return [2, deserializeAws_json1_1DescribeEndpointCommandError(output, context)];
|
|
1841
|
+
}
|
|
1842
|
+
return [4, parseBody(output.body, context)];
|
|
1843
|
+
case 1:
|
|
1844
|
+
data = _a.sent();
|
|
1845
|
+
contents = {};
|
|
1846
|
+
contents = deserializeAws_json1_1DescribeEndpointResponse(data, context);
|
|
1847
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1848
|
+
return [2, Promise.resolve(response)];
|
|
1849
|
+
}
|
|
1850
|
+
});
|
|
1851
|
+
}); };
|
|
1852
|
+
var deserializeAws_json1_1DescribeEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1853
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
1854
|
+
var _c;
|
|
1855
|
+
return __generator(this, function (_d) {
|
|
1856
|
+
switch (_d.label) {
|
|
1857
|
+
case 0:
|
|
1858
|
+
_a = [__assign({}, output)];
|
|
1859
|
+
_c = {};
|
|
1860
|
+
return [4, parseBody(output.body, context)];
|
|
1861
|
+
case 1:
|
|
1862
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1863
|
+
errorCode = "UnknownError";
|
|
1864
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1865
|
+
_b = errorCode;
|
|
1866
|
+
switch (_b) {
|
|
1867
|
+
case "InternalException": return [3, 2];
|
|
1868
|
+
case "com.amazonaws.eventbridge#InternalException": return [3, 2];
|
|
1869
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1870
|
+
case "com.amazonaws.eventbridge#ResourceNotFoundException": return [3, 4];
|
|
1871
|
+
}
|
|
1872
|
+
return [3, 6];
|
|
1873
|
+
case 2: return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
1874
|
+
case 3: throw _d.sent();
|
|
1875
|
+
case 4: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1876
|
+
case 5: throw _d.sent();
|
|
1877
|
+
case 6:
|
|
1878
|
+
parsedBody = parsedOutput.body;
|
|
1879
|
+
response = new __BaseException({
|
|
1880
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1881
|
+
$fault: "client",
|
|
1882
|
+
$metadata: deserializeMetadata(output),
|
|
1883
|
+
});
|
|
1884
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1885
|
+
}
|
|
1886
|
+
});
|
|
1887
|
+
}); };
|
|
1663
1888
|
export var deserializeAws_json1_1DescribeEventBusCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1664
1889
|
var data, contents, response;
|
|
1665
1890
|
return __generator(this, function (_a) {
|
|
@@ -2216,6 +2441,56 @@ var deserializeAws_json1_1ListConnectionsCommandError = function (output, contex
|
|
|
2216
2441
|
}
|
|
2217
2442
|
});
|
|
2218
2443
|
}); };
|
|
2444
|
+
export var deserializeAws_json1_1ListEndpointsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2445
|
+
var data, contents, response;
|
|
2446
|
+
return __generator(this, function (_a) {
|
|
2447
|
+
switch (_a.label) {
|
|
2448
|
+
case 0:
|
|
2449
|
+
if (output.statusCode >= 300) {
|
|
2450
|
+
return [2, deserializeAws_json1_1ListEndpointsCommandError(output, context)];
|
|
2451
|
+
}
|
|
2452
|
+
return [4, parseBody(output.body, context)];
|
|
2453
|
+
case 1:
|
|
2454
|
+
data = _a.sent();
|
|
2455
|
+
contents = {};
|
|
2456
|
+
contents = deserializeAws_json1_1ListEndpointsResponse(data, context);
|
|
2457
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2458
|
+
return [2, Promise.resolve(response)];
|
|
2459
|
+
}
|
|
2460
|
+
});
|
|
2461
|
+
}); };
|
|
2462
|
+
var deserializeAws_json1_1ListEndpointsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2463
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
2464
|
+
var _c;
|
|
2465
|
+
return __generator(this, function (_d) {
|
|
2466
|
+
switch (_d.label) {
|
|
2467
|
+
case 0:
|
|
2468
|
+
_a = [__assign({}, output)];
|
|
2469
|
+
_c = {};
|
|
2470
|
+
return [4, parseBody(output.body, context)];
|
|
2471
|
+
case 1:
|
|
2472
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2473
|
+
errorCode = "UnknownError";
|
|
2474
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2475
|
+
_b = errorCode;
|
|
2476
|
+
switch (_b) {
|
|
2477
|
+
case "InternalException": return [3, 2];
|
|
2478
|
+
case "com.amazonaws.eventbridge#InternalException": return [3, 2];
|
|
2479
|
+
}
|
|
2480
|
+
return [3, 4];
|
|
2481
|
+
case 2: return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
2482
|
+
case 3: throw _d.sent();
|
|
2483
|
+
case 4:
|
|
2484
|
+
parsedBody = parsedOutput.body;
|
|
2485
|
+
response = new __BaseException({
|
|
2486
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2487
|
+
$fault: "client",
|
|
2488
|
+
$metadata: deserializeMetadata(output),
|
|
2489
|
+
});
|
|
2490
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2491
|
+
}
|
|
2492
|
+
});
|
|
2493
|
+
}); };
|
|
2219
2494
|
export var deserializeAws_json1_1ListEventBusesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2220
2495
|
var data, contents, response;
|
|
2221
2496
|
return __generator(this, function (_a) {
|
|
@@ -3562,6 +3837,64 @@ var deserializeAws_json1_1UpdateConnectionCommandError = function (output, conte
|
|
|
3562
3837
|
}
|
|
3563
3838
|
});
|
|
3564
3839
|
}); };
|
|
3840
|
+
export var deserializeAws_json1_1UpdateEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3841
|
+
var data, contents, response;
|
|
3842
|
+
return __generator(this, function (_a) {
|
|
3843
|
+
switch (_a.label) {
|
|
3844
|
+
case 0:
|
|
3845
|
+
if (output.statusCode >= 300) {
|
|
3846
|
+
return [2, deserializeAws_json1_1UpdateEndpointCommandError(output, context)];
|
|
3847
|
+
}
|
|
3848
|
+
return [4, parseBody(output.body, context)];
|
|
3849
|
+
case 1:
|
|
3850
|
+
data = _a.sent();
|
|
3851
|
+
contents = {};
|
|
3852
|
+
contents = deserializeAws_json1_1UpdateEndpointResponse(data, context);
|
|
3853
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3854
|
+
return [2, Promise.resolve(response)];
|
|
3855
|
+
}
|
|
3856
|
+
});
|
|
3857
|
+
}); };
|
|
3858
|
+
var deserializeAws_json1_1UpdateEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3859
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
3860
|
+
var _c;
|
|
3861
|
+
return __generator(this, function (_d) {
|
|
3862
|
+
switch (_d.label) {
|
|
3863
|
+
case 0:
|
|
3864
|
+
_a = [__assign({}, output)];
|
|
3865
|
+
_c = {};
|
|
3866
|
+
return [4, parseBody(output.body, context)];
|
|
3867
|
+
case 1:
|
|
3868
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3869
|
+
errorCode = "UnknownError";
|
|
3870
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3871
|
+
_b = errorCode;
|
|
3872
|
+
switch (_b) {
|
|
3873
|
+
case "ConcurrentModificationException": return [3, 2];
|
|
3874
|
+
case "com.amazonaws.eventbridge#ConcurrentModificationException": return [3, 2];
|
|
3875
|
+
case "InternalException": return [3, 4];
|
|
3876
|
+
case "com.amazonaws.eventbridge#InternalException": return [3, 4];
|
|
3877
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3878
|
+
case "com.amazonaws.eventbridge#ResourceNotFoundException": return [3, 6];
|
|
3879
|
+
}
|
|
3880
|
+
return [3, 8];
|
|
3881
|
+
case 2: return [4, deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)];
|
|
3882
|
+
case 3: throw _d.sent();
|
|
3883
|
+
case 4: return [4, deserializeAws_json1_1InternalExceptionResponse(parsedOutput, context)];
|
|
3884
|
+
case 5: throw _d.sent();
|
|
3885
|
+
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3886
|
+
case 7: throw _d.sent();
|
|
3887
|
+
case 8:
|
|
3888
|
+
parsedBody = parsedOutput.body;
|
|
3889
|
+
response = new __BaseException({
|
|
3890
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3891
|
+
$fault: "client",
|
|
3892
|
+
$metadata: deserializeMetadata(output),
|
|
3893
|
+
});
|
|
3894
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3895
|
+
}
|
|
3896
|
+
});
|
|
3897
|
+
}); };
|
|
3565
3898
|
var deserializeAws_json1_1ConcurrentModificationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3566
3899
|
var body, deserialized, exception;
|
|
3567
3900
|
return __generator(this, function (_a) {
|
|
@@ -3810,6 +4143,16 @@ var serializeAws_json1_1CreateConnectionRequest = function (input, context) {
|
|
|
3810
4143
|
})), (input.AuthorizationType !== undefined &&
|
|
3811
4144
|
input.AuthorizationType !== null && { AuthorizationType: input.AuthorizationType })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
3812
4145
|
};
|
|
4146
|
+
var serializeAws_json1_1CreateEndpointRequest = function (input, context) {
|
|
4147
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EventBuses !== undefined &&
|
|
4148
|
+
input.EventBuses !== null && { EventBuses: serializeAws_json1_1EndpointEventBusList(input.EventBuses, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ReplicationConfig !== undefined &&
|
|
4149
|
+
input.ReplicationConfig !== null && {
|
|
4150
|
+
ReplicationConfig: serializeAws_json1_1ReplicationConfig(input.ReplicationConfig, context),
|
|
4151
|
+
})), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.RoutingConfig !== undefined &&
|
|
4152
|
+
input.RoutingConfig !== null && {
|
|
4153
|
+
RoutingConfig: serializeAws_json1_1RoutingConfig(input.RoutingConfig, context),
|
|
4154
|
+
}));
|
|
4155
|
+
};
|
|
3813
4156
|
var serializeAws_json1_1CreateEventBusRequest = function (input, context) {
|
|
3814
4157
|
return __assign(__assign(__assign({}, (input.EventSourceName !== undefined &&
|
|
3815
4158
|
input.EventSourceName !== null && { EventSourceName: input.EventSourceName })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }));
|
|
@@ -3835,6 +4178,9 @@ var serializeAws_json1_1DeleteArchiveRequest = function (input, context) {
|
|
|
3835
4178
|
var serializeAws_json1_1DeleteConnectionRequest = function (input, context) {
|
|
3836
4179
|
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
3837
4180
|
};
|
|
4181
|
+
var serializeAws_json1_1DeleteEndpointRequest = function (input, context) {
|
|
4182
|
+
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
4183
|
+
};
|
|
3838
4184
|
var serializeAws_json1_1DeleteEventBusRequest = function (input, context) {
|
|
3839
4185
|
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
3840
4186
|
};
|
|
@@ -3853,6 +4199,9 @@ var serializeAws_json1_1DescribeArchiveRequest = function (input, context) {
|
|
|
3853
4199
|
var serializeAws_json1_1DescribeConnectionRequest = function (input, context) {
|
|
3854
4200
|
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
3855
4201
|
};
|
|
4202
|
+
var serializeAws_json1_1DescribeEndpointRequest = function (input, context) {
|
|
4203
|
+
return __assign(__assign({}, (input.HomeRegion !== undefined && input.HomeRegion !== null && { HomeRegion: input.HomeRegion })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
4204
|
+
};
|
|
3856
4205
|
var serializeAws_json1_1DescribeEventBusRequest = function (input, context) {
|
|
3857
4206
|
return __assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
3858
4207
|
};
|
|
@@ -3893,6 +4242,19 @@ var serializeAws_json1_1EcsParameters = function (input, context) {
|
|
|
3893
4242
|
var serializeAws_json1_1EnableRuleRequest = function (input, context) {
|
|
3894
4243
|
return __assign(__assign({}, (input.EventBusName !== undefined && input.EventBusName !== null && { EventBusName: input.EventBusName })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
3895
4244
|
};
|
|
4245
|
+
var serializeAws_json1_1EndpointEventBus = function (input, context) {
|
|
4246
|
+
return __assign({}, (input.EventBusArn !== undefined && input.EventBusArn !== null && { EventBusArn: input.EventBusArn }));
|
|
4247
|
+
};
|
|
4248
|
+
var serializeAws_json1_1EndpointEventBusList = function (input, context) {
|
|
4249
|
+
return input
|
|
4250
|
+
.filter(function (e) { return e != null; })
|
|
4251
|
+
.map(function (entry) {
|
|
4252
|
+
if (entry === null) {
|
|
4253
|
+
return null;
|
|
4254
|
+
}
|
|
4255
|
+
return serializeAws_json1_1EndpointEventBus(entry, context);
|
|
4256
|
+
});
|
|
4257
|
+
};
|
|
3896
4258
|
var serializeAws_json1_1EventResourceList = function (input, context) {
|
|
3897
4259
|
return input
|
|
3898
4260
|
.filter(function (e) { return e != null; })
|
|
@@ -3903,6 +4265,11 @@ var serializeAws_json1_1EventResourceList = function (input, context) {
|
|
|
3903
4265
|
return entry;
|
|
3904
4266
|
});
|
|
3905
4267
|
};
|
|
4268
|
+
var serializeAws_json1_1FailoverConfig = function (input, context) {
|
|
4269
|
+
return __assign(__assign({}, (input.Primary !== undefined &&
|
|
4270
|
+
input.Primary !== null && { Primary: serializeAws_json1_1Primary(input.Primary, context) })), (input.Secondary !== undefined &&
|
|
4271
|
+
input.Secondary !== null && { Secondary: serializeAws_json1_1Secondary(input.Secondary, context) }));
|
|
4272
|
+
};
|
|
3906
4273
|
var serializeAws_json1_1HeaderParametersMap = function (input, context) {
|
|
3907
4274
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
3908
4275
|
var _b;
|
|
@@ -3946,6 +4313,9 @@ var serializeAws_json1_1ListConnectionsRequest = function (input, context) {
|
|
|
3946
4313
|
return __assign(__assign(__assign(__assign({}, (input.ConnectionState !== undefined &&
|
|
3947
4314
|
input.ConnectionState !== null && { ConnectionState: input.ConnectionState })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NamePrefix !== undefined && input.NamePrefix !== null && { NamePrefix: input.NamePrefix })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
3948
4315
|
};
|
|
4316
|
+
var serializeAws_json1_1ListEndpointsRequest = function (input, context) {
|
|
4317
|
+
return __assign(__assign(__assign(__assign({}, (input.HomeRegion !== undefined && input.HomeRegion !== null && { HomeRegion: input.HomeRegion })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NamePrefix !== undefined && input.NamePrefix !== null && { NamePrefix: input.NamePrefix })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
4318
|
+
};
|
|
3949
4319
|
var serializeAws_json1_1ListEventBusesRequest = function (input, context) {
|
|
3950
4320
|
return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NamePrefix !== undefined && input.NamePrefix !== null && { NamePrefix: input.NamePrefix })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
3951
4321
|
};
|
|
@@ -4017,8 +4387,11 @@ var serializeAws_json1_1PlacementStrategies = function (input, context) {
|
|
|
4017
4387
|
var serializeAws_json1_1PlacementStrategy = function (input, context) {
|
|
4018
4388
|
return __assign(__assign({}, (input.field !== undefined && input.field !== null && { field: input.field })), (input.type !== undefined && input.type !== null && { type: input.type }));
|
|
4019
4389
|
};
|
|
4390
|
+
var serializeAws_json1_1Primary = function (input, context) {
|
|
4391
|
+
return __assign({}, (input.HealthCheck !== undefined && input.HealthCheck !== null && { HealthCheck: input.HealthCheck }));
|
|
4392
|
+
};
|
|
4020
4393
|
var serializeAws_json1_1PutEventsRequest = function (input, context) {
|
|
4021
|
-
return __assign({}, (input.Entries !== undefined &&
|
|
4394
|
+
return __assign(__assign({}, (input.EndpointId !== undefined && input.EndpointId !== null && { EndpointId: input.EndpointId })), (input.Entries !== undefined &&
|
|
4022
4395
|
input.Entries !== null && { Entries: serializeAws_json1_1PutEventsRequestEntryList(input.Entries, context) }));
|
|
4023
4396
|
};
|
|
4024
4397
|
var serializeAws_json1_1PutEventsRequestEntry = function (input, context) {
|
|
@@ -4104,11 +4477,20 @@ var serializeAws_json1_1ReplayDestinationFilters = function (input, context) {
|
|
|
4104
4477
|
return entry;
|
|
4105
4478
|
});
|
|
4106
4479
|
};
|
|
4480
|
+
var serializeAws_json1_1ReplicationConfig = function (input, context) {
|
|
4481
|
+
return __assign({}, (input.State !== undefined && input.State !== null && { State: input.State }));
|
|
4482
|
+
};
|
|
4107
4483
|
var serializeAws_json1_1RetryPolicy = function (input, context) {
|
|
4108
4484
|
return __assign(__assign({}, (input.MaximumEventAgeInSeconds !== undefined &&
|
|
4109
4485
|
input.MaximumEventAgeInSeconds !== null && { MaximumEventAgeInSeconds: input.MaximumEventAgeInSeconds })), (input.MaximumRetryAttempts !== undefined &&
|
|
4110
4486
|
input.MaximumRetryAttempts !== null && { MaximumRetryAttempts: input.MaximumRetryAttempts }));
|
|
4111
4487
|
};
|
|
4488
|
+
var serializeAws_json1_1RoutingConfig = function (input, context) {
|
|
4489
|
+
return __assign({}, (input.FailoverConfig !== undefined &&
|
|
4490
|
+
input.FailoverConfig !== null && {
|
|
4491
|
+
FailoverConfig: serializeAws_json1_1FailoverConfig(input.FailoverConfig, context),
|
|
4492
|
+
}));
|
|
4493
|
+
};
|
|
4112
4494
|
var serializeAws_json1_1RunCommandParameters = function (input, context) {
|
|
4113
4495
|
return __assign({}, (input.RunCommandTargets !== undefined &&
|
|
4114
4496
|
input.RunCommandTargets !== null && {
|
|
@@ -4158,6 +4540,9 @@ var serializeAws_json1_1SageMakerPipelineParameters = function (input, context)
|
|
|
4158
4540
|
PipelineParameterList: serializeAws_json1_1SageMakerPipelineParameterList(input.PipelineParameterList, context),
|
|
4159
4541
|
}));
|
|
4160
4542
|
};
|
|
4543
|
+
var serializeAws_json1_1Secondary = function (input, context) {
|
|
4544
|
+
return __assign({}, (input.Route !== undefined && input.Route !== null && { Route: input.Route }));
|
|
4545
|
+
};
|
|
4161
4546
|
var serializeAws_json1_1SqsParameters = function (input, context) {
|
|
4162
4547
|
return __assign({}, (input.MessageGroupId !== undefined &&
|
|
4163
4548
|
input.MessageGroupId !== null && { MessageGroupId: input.MessageGroupId }));
|
|
@@ -4327,6 +4712,16 @@ var serializeAws_json1_1UpdateConnectionRequest = function (input, context) {
|
|
|
4327
4712
|
})), (input.AuthorizationType !== undefined &&
|
|
4328
4713
|
input.AuthorizationType !== null && { AuthorizationType: input.AuthorizationType })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
4329
4714
|
};
|
|
4715
|
+
var serializeAws_json1_1UpdateEndpointRequest = function (input, context) {
|
|
4716
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.EventBuses !== undefined &&
|
|
4717
|
+
input.EventBuses !== null && { EventBuses: serializeAws_json1_1EndpointEventBusList(input.EventBuses, context) })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ReplicationConfig !== undefined &&
|
|
4718
|
+
input.ReplicationConfig !== null && {
|
|
4719
|
+
ReplicationConfig: serializeAws_json1_1ReplicationConfig(input.ReplicationConfig, context),
|
|
4720
|
+
})), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.RoutingConfig !== undefined &&
|
|
4721
|
+
input.RoutingConfig !== null && {
|
|
4722
|
+
RoutingConfig: serializeAws_json1_1RoutingConfig(input.RoutingConfig, context),
|
|
4723
|
+
}));
|
|
4724
|
+
};
|
|
4330
4725
|
var deserializeAws_json1_1ApiDestination = function (output, context) {
|
|
4331
4726
|
return {
|
|
4332
4727
|
ApiDestinationArn: __expectString(output.ApiDestinationArn),
|
|
@@ -4616,6 +5011,23 @@ var deserializeAws_json1_1CreateConnectionResponse = function (output, context)
|
|
|
4616
5011
|
: undefined,
|
|
4617
5012
|
};
|
|
4618
5013
|
};
|
|
5014
|
+
var deserializeAws_json1_1CreateEndpointResponse = function (output, context) {
|
|
5015
|
+
return {
|
|
5016
|
+
Arn: __expectString(output.Arn),
|
|
5017
|
+
EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
|
|
5018
|
+
? deserializeAws_json1_1EndpointEventBusList(output.EventBuses, context)
|
|
5019
|
+
: undefined,
|
|
5020
|
+
Name: __expectString(output.Name),
|
|
5021
|
+
ReplicationConfig: output.ReplicationConfig !== undefined && output.ReplicationConfig !== null
|
|
5022
|
+
? deserializeAws_json1_1ReplicationConfig(output.ReplicationConfig, context)
|
|
5023
|
+
: undefined,
|
|
5024
|
+
RoleArn: __expectString(output.RoleArn),
|
|
5025
|
+
RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
|
|
5026
|
+
? deserializeAws_json1_1RoutingConfig(output.RoutingConfig, context)
|
|
5027
|
+
: undefined,
|
|
5028
|
+
State: __expectString(output.State),
|
|
5029
|
+
};
|
|
5030
|
+
};
|
|
4619
5031
|
var deserializeAws_json1_1CreateEventBusResponse = function (output, context) {
|
|
4620
5032
|
return {
|
|
4621
5033
|
EventBusArn: __expectString(output.EventBusArn),
|
|
@@ -4667,6 +5079,9 @@ var deserializeAws_json1_1DeleteConnectionResponse = function (output, context)
|
|
|
4667
5079
|
: undefined,
|
|
4668
5080
|
};
|
|
4669
5081
|
};
|
|
5082
|
+
var deserializeAws_json1_1DeleteEndpointResponse = function (output, context) {
|
|
5083
|
+
return {};
|
|
5084
|
+
};
|
|
4670
5085
|
var deserializeAws_json1_1DescribeApiDestinationResponse = function (output, context) {
|
|
4671
5086
|
return {
|
|
4672
5087
|
ApiDestinationArn: __expectString(output.ApiDestinationArn),
|
|
@@ -4725,6 +5140,33 @@ var deserializeAws_json1_1DescribeConnectionResponse = function (output, context
|
|
|
4725
5140
|
StateReason: __expectString(output.StateReason),
|
|
4726
5141
|
};
|
|
4727
5142
|
};
|
|
5143
|
+
var deserializeAws_json1_1DescribeEndpointResponse = function (output, context) {
|
|
5144
|
+
return {
|
|
5145
|
+
Arn: __expectString(output.Arn),
|
|
5146
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
5147
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
5148
|
+
: undefined,
|
|
5149
|
+
Description: __expectString(output.Description),
|
|
5150
|
+
EndpointId: __expectString(output.EndpointId),
|
|
5151
|
+
EndpointUrl: __expectString(output.EndpointUrl),
|
|
5152
|
+
EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
|
|
5153
|
+
? deserializeAws_json1_1EndpointEventBusList(output.EventBuses, context)
|
|
5154
|
+
: undefined,
|
|
5155
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
5156
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
5157
|
+
: undefined,
|
|
5158
|
+
Name: __expectString(output.Name),
|
|
5159
|
+
ReplicationConfig: output.ReplicationConfig !== undefined && output.ReplicationConfig !== null
|
|
5160
|
+
? deserializeAws_json1_1ReplicationConfig(output.ReplicationConfig, context)
|
|
5161
|
+
: undefined,
|
|
5162
|
+
RoleArn: __expectString(output.RoleArn),
|
|
5163
|
+
RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
|
|
5164
|
+
? deserializeAws_json1_1RoutingConfig(output.RoutingConfig, context)
|
|
5165
|
+
: undefined,
|
|
5166
|
+
State: __expectString(output.State),
|
|
5167
|
+
StateReason: __expectString(output.StateReason),
|
|
5168
|
+
};
|
|
5169
|
+
};
|
|
4728
5170
|
var deserializeAws_json1_1DescribeEventBusResponse = function (output, context) {
|
|
4729
5171
|
return {
|
|
4730
5172
|
Arn: __expectString(output.Arn),
|
|
@@ -4822,6 +5264,60 @@ var deserializeAws_json1_1EcsParameters = function (output, context) {
|
|
|
4822
5264
|
TaskDefinitionArn: __expectString(output.TaskDefinitionArn),
|
|
4823
5265
|
};
|
|
4824
5266
|
};
|
|
5267
|
+
var deserializeAws_json1_1Endpoint = function (output, context) {
|
|
5268
|
+
return {
|
|
5269
|
+
Arn: __expectString(output.Arn),
|
|
5270
|
+
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
5271
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
5272
|
+
: undefined,
|
|
5273
|
+
Description: __expectString(output.Description),
|
|
5274
|
+
EndpointId: __expectString(output.EndpointId),
|
|
5275
|
+
EndpointUrl: __expectString(output.EndpointUrl),
|
|
5276
|
+
EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
|
|
5277
|
+
? deserializeAws_json1_1EndpointEventBusList(output.EventBuses, context)
|
|
5278
|
+
: undefined,
|
|
5279
|
+
LastModifiedTime: output.LastModifiedTime !== undefined && output.LastModifiedTime !== null
|
|
5280
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedTime)))
|
|
5281
|
+
: undefined,
|
|
5282
|
+
Name: __expectString(output.Name),
|
|
5283
|
+
ReplicationConfig: output.ReplicationConfig !== undefined && output.ReplicationConfig !== null
|
|
5284
|
+
? deserializeAws_json1_1ReplicationConfig(output.ReplicationConfig, context)
|
|
5285
|
+
: undefined,
|
|
5286
|
+
RoleArn: __expectString(output.RoleArn),
|
|
5287
|
+
RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
|
|
5288
|
+
? deserializeAws_json1_1RoutingConfig(output.RoutingConfig, context)
|
|
5289
|
+
: undefined,
|
|
5290
|
+
State: __expectString(output.State),
|
|
5291
|
+
StateReason: __expectString(output.StateReason),
|
|
5292
|
+
};
|
|
5293
|
+
};
|
|
5294
|
+
var deserializeAws_json1_1EndpointEventBus = function (output, context) {
|
|
5295
|
+
return {
|
|
5296
|
+
EventBusArn: __expectString(output.EventBusArn),
|
|
5297
|
+
};
|
|
5298
|
+
};
|
|
5299
|
+
var deserializeAws_json1_1EndpointEventBusList = function (output, context) {
|
|
5300
|
+
var retVal = (output || [])
|
|
5301
|
+
.filter(function (e) { return e != null; })
|
|
5302
|
+
.map(function (entry) {
|
|
5303
|
+
if (entry === null) {
|
|
5304
|
+
return null;
|
|
5305
|
+
}
|
|
5306
|
+
return deserializeAws_json1_1EndpointEventBus(entry, context);
|
|
5307
|
+
});
|
|
5308
|
+
return retVal;
|
|
5309
|
+
};
|
|
5310
|
+
var deserializeAws_json1_1EndpointList = function (output, context) {
|
|
5311
|
+
var retVal = (output || [])
|
|
5312
|
+
.filter(function (e) { return e != null; })
|
|
5313
|
+
.map(function (entry) {
|
|
5314
|
+
if (entry === null) {
|
|
5315
|
+
return null;
|
|
5316
|
+
}
|
|
5317
|
+
return deserializeAws_json1_1Endpoint(entry, context);
|
|
5318
|
+
});
|
|
5319
|
+
return retVal;
|
|
5320
|
+
};
|
|
4825
5321
|
var deserializeAws_json1_1EventBus = function (output, context) {
|
|
4826
5322
|
return {
|
|
4827
5323
|
Arn: __expectString(output.Arn),
|
|
@@ -4865,6 +5361,16 @@ var deserializeAws_json1_1EventSourceList = function (output, context) {
|
|
|
4865
5361
|
});
|
|
4866
5362
|
return retVal;
|
|
4867
5363
|
};
|
|
5364
|
+
var deserializeAws_json1_1FailoverConfig = function (output, context) {
|
|
5365
|
+
return {
|
|
5366
|
+
Primary: output.Primary !== undefined && output.Primary !== null
|
|
5367
|
+
? deserializeAws_json1_1Primary(output.Primary, context)
|
|
5368
|
+
: undefined,
|
|
5369
|
+
Secondary: output.Secondary !== undefined && output.Secondary !== null
|
|
5370
|
+
? deserializeAws_json1_1Secondary(output.Secondary, context)
|
|
5371
|
+
: undefined,
|
|
5372
|
+
};
|
|
5373
|
+
};
|
|
4868
5374
|
var deserializeAws_json1_1HeaderParametersMap = function (output, context) {
|
|
4869
5375
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
4870
5376
|
var _b;
|
|
@@ -4950,6 +5456,14 @@ var deserializeAws_json1_1ListConnectionsResponse = function (output, context) {
|
|
|
4950
5456
|
NextToken: __expectString(output.NextToken),
|
|
4951
5457
|
};
|
|
4952
5458
|
};
|
|
5459
|
+
var deserializeAws_json1_1ListEndpointsResponse = function (output, context) {
|
|
5460
|
+
return {
|
|
5461
|
+
Endpoints: output.Endpoints !== undefined && output.Endpoints !== null
|
|
5462
|
+
? deserializeAws_json1_1EndpointList(output.Endpoints, context)
|
|
5463
|
+
: undefined,
|
|
5464
|
+
NextToken: __expectString(output.NextToken),
|
|
5465
|
+
};
|
|
5466
|
+
};
|
|
4953
5467
|
var deserializeAws_json1_1ListEventBusesResponse = function (output, context) {
|
|
4954
5468
|
return {
|
|
4955
5469
|
EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
|
|
@@ -5128,6 +5642,11 @@ var deserializeAws_json1_1PolicyLengthExceededException = function (output, cont
|
|
|
5128
5642
|
message: __expectString(output.message),
|
|
5129
5643
|
};
|
|
5130
5644
|
};
|
|
5645
|
+
var deserializeAws_json1_1Primary = function (output, context) {
|
|
5646
|
+
return {
|
|
5647
|
+
HealthCheck: __expectString(output.HealthCheck),
|
|
5648
|
+
};
|
|
5649
|
+
};
|
|
5131
5650
|
var deserializeAws_json1_1PutEventsResponse = function (output, context) {
|
|
5132
5651
|
return {
|
|
5133
5652
|
Entries: output.Entries !== undefined && output.Entries !== null
|
|
@@ -5310,6 +5829,11 @@ var deserializeAws_json1_1ReplayList = function (output, context) {
|
|
|
5310
5829
|
});
|
|
5311
5830
|
return retVal;
|
|
5312
5831
|
};
|
|
5832
|
+
var deserializeAws_json1_1ReplicationConfig = function (output, context) {
|
|
5833
|
+
return {
|
|
5834
|
+
State: __expectString(output.State),
|
|
5835
|
+
};
|
|
5836
|
+
};
|
|
5313
5837
|
var deserializeAws_json1_1ResourceAlreadyExistsException = function (output, context) {
|
|
5314
5838
|
return {
|
|
5315
5839
|
message: __expectString(output.message),
|
|
@@ -5326,6 +5850,13 @@ var deserializeAws_json1_1RetryPolicy = function (output, context) {
|
|
|
5326
5850
|
MaximumRetryAttempts: __expectInt32(output.MaximumRetryAttempts),
|
|
5327
5851
|
};
|
|
5328
5852
|
};
|
|
5853
|
+
var deserializeAws_json1_1RoutingConfig = function (output, context) {
|
|
5854
|
+
return {
|
|
5855
|
+
FailoverConfig: output.FailoverConfig !== undefined && output.FailoverConfig !== null
|
|
5856
|
+
? deserializeAws_json1_1FailoverConfig(output.FailoverConfig, context)
|
|
5857
|
+
: undefined,
|
|
5858
|
+
};
|
|
5859
|
+
};
|
|
5329
5860
|
var deserializeAws_json1_1Rule = function (output, context) {
|
|
5330
5861
|
return {
|
|
5331
5862
|
Arn: __expectString(output.Arn),
|
|
@@ -5422,6 +5953,11 @@ var deserializeAws_json1_1SageMakerPipelineParameters = function (output, contex
|
|
|
5422
5953
|
: undefined,
|
|
5423
5954
|
};
|
|
5424
5955
|
};
|
|
5956
|
+
var deserializeAws_json1_1Secondary = function (output, context) {
|
|
5957
|
+
return {
|
|
5958
|
+
Route: __expectString(output.Route),
|
|
5959
|
+
};
|
|
5960
|
+
};
|
|
5425
5961
|
var deserializeAws_json1_1SqsParameters = function (output, context) {
|
|
5426
5962
|
return {
|
|
5427
5963
|
MessageGroupId: __expectString(output.MessageGroupId),
|
|
@@ -5576,6 +6112,25 @@ var deserializeAws_json1_1UpdateConnectionResponse = function (output, context)
|
|
|
5576
6112
|
: undefined,
|
|
5577
6113
|
};
|
|
5578
6114
|
};
|
|
6115
|
+
var deserializeAws_json1_1UpdateEndpointResponse = function (output, context) {
|
|
6116
|
+
return {
|
|
6117
|
+
Arn: __expectString(output.Arn),
|
|
6118
|
+
EndpointId: __expectString(output.EndpointId),
|
|
6119
|
+
EndpointUrl: __expectString(output.EndpointUrl),
|
|
6120
|
+
EventBuses: output.EventBuses !== undefined && output.EventBuses !== null
|
|
6121
|
+
? deserializeAws_json1_1EndpointEventBusList(output.EventBuses, context)
|
|
6122
|
+
: undefined,
|
|
6123
|
+
Name: __expectString(output.Name),
|
|
6124
|
+
ReplicationConfig: output.ReplicationConfig !== undefined && output.ReplicationConfig !== null
|
|
6125
|
+
? deserializeAws_json1_1ReplicationConfig(output.ReplicationConfig, context)
|
|
6126
|
+
: undefined,
|
|
6127
|
+
RoleArn: __expectString(output.RoleArn),
|
|
6128
|
+
RoutingConfig: output.RoutingConfig !== undefined && output.RoutingConfig !== null
|
|
6129
|
+
? deserializeAws_json1_1RoutingConfig(output.RoutingConfig, context)
|
|
6130
|
+
: undefined,
|
|
6131
|
+
State: __expectString(output.State),
|
|
6132
|
+
};
|
|
6133
|
+
};
|
|
5579
6134
|
var deserializeMetadata = function (output) {
|
|
5580
6135
|
var _a;
|
|
5581
6136
|
return ({
|