@aws-sdk/client-mq 3.28.0 → 3.32.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 +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_restJson1.js +37 -31
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_restJson1.js +118 -80
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_restJson1.ts +44 -32
package/dist/es/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mq",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mq Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0",
|
|
59
59
|
"uuid": "^8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
62
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
63
63
|
"@types/node": "^12.7.5",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|
|
65
65
|
"downlevel-dts": "0.7.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rimraf": "^3.0.0",
|
|
68
68
|
"ts-jest": "^26.4.1",
|
|
69
69
|
"typedoc": "^0.19.2",
|
|
70
|
-
"typescript": "~4.3.
|
|
70
|
+
"typescript": "~4.3.5"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=10.0.0"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { expectBoolean as __expectBoolean,
|
|
3
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseRfc3339DateTime as __parseRfc3339DateTime, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
export var serializeAws_restJson1CreateBrokerCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6
6
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
@@ -756,9 +756,9 @@ export var serializeAws_restJson1UpdateUserCommand = function (input, context) {
|
|
|
756
756
|
});
|
|
757
757
|
}); };
|
|
758
758
|
export var deserializeAws_restJson1CreateBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
759
|
-
var contents, data;
|
|
760
|
-
return __generator(this, function (
|
|
761
|
-
switch (
|
|
759
|
+
var contents, data, _a, _b;
|
|
760
|
+
return __generator(this, function (_c) {
|
|
761
|
+
switch (_c.label) {
|
|
762
762
|
case 0:
|
|
763
763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
764
|
return [2 /*return*/, deserializeAws_restJson1CreateBrokerCommandError(output, context)];
|
|
@@ -768,9 +768,11 @@ export var deserializeAws_restJson1CreateBrokerCommand = function (output, conte
|
|
|
768
768
|
BrokerArn: undefined,
|
|
769
769
|
BrokerId: undefined,
|
|
770
770
|
};
|
|
771
|
+
_a = __expectNonNull;
|
|
772
|
+
_b = __expectObject;
|
|
771
773
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
772
774
|
case 1:
|
|
773
|
-
data = _a.sent();
|
|
775
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
774
776
|
if (data.brokerArn !== undefined && data.brokerArn !== null) {
|
|
775
777
|
contents.BrokerArn = __expectString(data.brokerArn);
|
|
776
778
|
}
|
|
@@ -852,9 +854,9 @@ var deserializeAws_restJson1CreateBrokerCommandError = function (output, context
|
|
|
852
854
|
});
|
|
853
855
|
}); };
|
|
854
856
|
export var deserializeAws_restJson1CreateConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
855
|
-
var contents, data;
|
|
856
|
-
return __generator(this, function (
|
|
857
|
-
switch (
|
|
857
|
+
var contents, data, _a, _b;
|
|
858
|
+
return __generator(this, function (_c) {
|
|
859
|
+
switch (_c.label) {
|
|
858
860
|
case 0:
|
|
859
861
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
862
|
return [2 /*return*/, deserializeAws_restJson1CreateConfigurationCommandError(output, context)];
|
|
@@ -868,9 +870,11 @@ export var deserializeAws_restJson1CreateConfigurationCommand = function (output
|
|
|
868
870
|
LatestRevision: undefined,
|
|
869
871
|
Name: undefined,
|
|
870
872
|
};
|
|
873
|
+
_a = __expectNonNull;
|
|
874
|
+
_b = __expectObject;
|
|
871
875
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
872
876
|
case 1:
|
|
873
|
-
data = _a.sent();
|
|
877
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
874
878
|
if (data.arn !== undefined && data.arn !== null) {
|
|
875
879
|
contents.Arn = __expectString(data.arn);
|
|
876
880
|
}
|
|
@@ -878,7 +882,7 @@ export var deserializeAws_restJson1CreateConfigurationCommand = function (output
|
|
|
878
882
|
contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
|
|
879
883
|
}
|
|
880
884
|
if (data.created !== undefined && data.created !== null) {
|
|
881
|
-
contents.Created =
|
|
885
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
882
886
|
}
|
|
883
887
|
if (data.id !== undefined && data.id !== null) {
|
|
884
888
|
contents.Id = __expectString(data.id);
|
|
@@ -1124,9 +1128,9 @@ var deserializeAws_restJson1CreateUserCommandError = function (output, context)
|
|
|
1124
1128
|
});
|
|
1125
1129
|
}); };
|
|
1126
1130
|
export var deserializeAws_restJson1DeleteBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1127
|
-
var contents, data;
|
|
1128
|
-
return __generator(this, function (
|
|
1129
|
-
switch (
|
|
1131
|
+
var contents, data, _a, _b;
|
|
1132
|
+
return __generator(this, function (_c) {
|
|
1133
|
+
switch (_c.label) {
|
|
1130
1134
|
case 0:
|
|
1131
1135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1132
1136
|
return [2 /*return*/, deserializeAws_restJson1DeleteBrokerCommandError(output, context)];
|
|
@@ -1135,9 +1139,11 @@ export var deserializeAws_restJson1DeleteBrokerCommand = function (output, conte
|
|
|
1135
1139
|
$metadata: deserializeMetadata(output),
|
|
1136
1140
|
BrokerId: undefined,
|
|
1137
1141
|
};
|
|
1142
|
+
_a = __expectNonNull;
|
|
1143
|
+
_b = __expectObject;
|
|
1138
1144
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1139
1145
|
case 1:
|
|
1140
|
-
data = _a.sent();
|
|
1146
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1141
1147
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
1142
1148
|
contents.BrokerId = __expectString(data.brokerId);
|
|
1143
1149
|
}
|
|
@@ -1368,9 +1374,9 @@ var deserializeAws_restJson1DeleteUserCommandError = function (output, context)
|
|
|
1368
1374
|
});
|
|
1369
1375
|
}); };
|
|
1370
1376
|
export var deserializeAws_restJson1DescribeBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1371
|
-
var contents, data;
|
|
1372
|
-
return __generator(this, function (
|
|
1373
|
-
switch (
|
|
1377
|
+
var contents, data, _a, _b;
|
|
1378
|
+
return __generator(this, function (_c) {
|
|
1379
|
+
switch (_c.label) {
|
|
1374
1380
|
case 0:
|
|
1375
1381
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1376
1382
|
return [2 /*return*/, deserializeAws_restJson1DescribeBrokerCommandError(output, context)];
|
|
@@ -1406,9 +1412,11 @@ export var deserializeAws_restJson1DescribeBrokerCommand = function (output, con
|
|
|
1406
1412
|
Tags: undefined,
|
|
1407
1413
|
Users: undefined,
|
|
1408
1414
|
};
|
|
1415
|
+
_a = __expectNonNull;
|
|
1416
|
+
_b = __expectObject;
|
|
1409
1417
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1410
1418
|
case 1:
|
|
1411
|
-
data = _a.sent();
|
|
1419
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1412
1420
|
if (data.authenticationStrategy !== undefined && data.authenticationStrategy !== null) {
|
|
1413
1421
|
contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
|
|
1414
1422
|
}
|
|
@@ -1434,7 +1442,7 @@ export var deserializeAws_restJson1DescribeBrokerCommand = function (output, con
|
|
|
1434
1442
|
contents.Configurations = deserializeAws_restJson1Configurations(data.configurations, context);
|
|
1435
1443
|
}
|
|
1436
1444
|
if (data.created !== undefined && data.created !== null) {
|
|
1437
|
-
contents.Created =
|
|
1445
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
1438
1446
|
}
|
|
1439
1447
|
if (data.deploymentMode !== undefined && data.deploymentMode !== null) {
|
|
1440
1448
|
contents.DeploymentMode = __expectString(data.deploymentMode);
|
|
@@ -1560,9 +1568,9 @@ var deserializeAws_restJson1DescribeBrokerCommandError = function (output, conte
|
|
|
1560
1568
|
});
|
|
1561
1569
|
}); };
|
|
1562
1570
|
export var deserializeAws_restJson1DescribeBrokerEngineTypesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1563
|
-
var contents, data;
|
|
1564
|
-
return __generator(this, function (
|
|
1565
|
-
switch (
|
|
1571
|
+
var contents, data, _a, _b;
|
|
1572
|
+
return __generator(this, function (_c) {
|
|
1573
|
+
switch (_c.label) {
|
|
1566
1574
|
case 0:
|
|
1567
1575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1568
1576
|
return [2 /*return*/, deserializeAws_restJson1DescribeBrokerEngineTypesCommandError(output, context)];
|
|
@@ -1573,14 +1581,16 @@ export var deserializeAws_restJson1DescribeBrokerEngineTypesCommand = function (
|
|
|
1573
1581
|
MaxResults: undefined,
|
|
1574
1582
|
NextToken: undefined,
|
|
1575
1583
|
};
|
|
1584
|
+
_a = __expectNonNull;
|
|
1585
|
+
_b = __expectObject;
|
|
1576
1586
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1577
1587
|
case 1:
|
|
1578
|
-
data = _a.sent();
|
|
1588
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1579
1589
|
if (data.brokerEngineTypes !== undefined && data.brokerEngineTypes !== null) {
|
|
1580
1590
|
contents.BrokerEngineTypes = deserializeAws_restJson1__listOfBrokerEngineType(data.brokerEngineTypes, context);
|
|
1581
1591
|
}
|
|
1582
1592
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
1583
|
-
contents.MaxResults =
|
|
1593
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
1584
1594
|
}
|
|
1585
1595
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1586
1596
|
contents.NextToken = __expectString(data.nextToken);
|
|
@@ -1644,9 +1654,9 @@ var deserializeAws_restJson1DescribeBrokerEngineTypesCommandError = function (ou
|
|
|
1644
1654
|
});
|
|
1645
1655
|
}); };
|
|
1646
1656
|
export var deserializeAws_restJson1DescribeBrokerInstanceOptionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1647
|
-
var contents, data;
|
|
1648
|
-
return __generator(this, function (
|
|
1649
|
-
switch (
|
|
1657
|
+
var contents, data, _a, _b;
|
|
1658
|
+
return __generator(this, function (_c) {
|
|
1659
|
+
switch (_c.label) {
|
|
1650
1660
|
case 0:
|
|
1651
1661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1652
1662
|
return [2 /*return*/, deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError(output, context)];
|
|
@@ -1657,14 +1667,16 @@ export var deserializeAws_restJson1DescribeBrokerInstanceOptionsCommand = functi
|
|
|
1657
1667
|
MaxResults: undefined,
|
|
1658
1668
|
NextToken: undefined,
|
|
1659
1669
|
};
|
|
1670
|
+
_a = __expectNonNull;
|
|
1671
|
+
_b = __expectObject;
|
|
1660
1672
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1661
1673
|
case 1:
|
|
1662
|
-
data = _a.sent();
|
|
1674
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1663
1675
|
if (data.brokerInstanceOptions !== undefined && data.brokerInstanceOptions !== null) {
|
|
1664
1676
|
contents.BrokerInstanceOptions = deserializeAws_restJson1__listOfBrokerInstanceOption(data.brokerInstanceOptions, context);
|
|
1665
1677
|
}
|
|
1666
1678
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
1667
|
-
contents.MaxResults =
|
|
1679
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
1668
1680
|
}
|
|
1669
1681
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1670
1682
|
contents.NextToken = __expectString(data.nextToken);
|
|
@@ -1728,9 +1740,9 @@ var deserializeAws_restJson1DescribeBrokerInstanceOptionsCommandError = function
|
|
|
1728
1740
|
});
|
|
1729
1741
|
}); };
|
|
1730
1742
|
export var deserializeAws_restJson1DescribeConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1731
|
-
var contents, data;
|
|
1732
|
-
return __generator(this, function (
|
|
1733
|
-
switch (
|
|
1743
|
+
var contents, data, _a, _b;
|
|
1744
|
+
return __generator(this, function (_c) {
|
|
1745
|
+
switch (_c.label) {
|
|
1734
1746
|
case 0:
|
|
1735
1747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1736
1748
|
return [2 /*return*/, deserializeAws_restJson1DescribeConfigurationCommandError(output, context)];
|
|
@@ -1748,9 +1760,11 @@ export var deserializeAws_restJson1DescribeConfigurationCommand = function (outp
|
|
|
1748
1760
|
Name: undefined,
|
|
1749
1761
|
Tags: undefined,
|
|
1750
1762
|
};
|
|
1763
|
+
_a = __expectNonNull;
|
|
1764
|
+
_b = __expectObject;
|
|
1751
1765
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1752
1766
|
case 1:
|
|
1753
|
-
data = _a.sent();
|
|
1767
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1754
1768
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1755
1769
|
contents.Arn = __expectString(data.arn);
|
|
1756
1770
|
}
|
|
@@ -1758,7 +1772,7 @@ export var deserializeAws_restJson1DescribeConfigurationCommand = function (outp
|
|
|
1758
1772
|
contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
|
|
1759
1773
|
}
|
|
1760
1774
|
if (data.created !== undefined && data.created !== null) {
|
|
1761
|
-
contents.Created =
|
|
1775
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
1762
1776
|
}
|
|
1763
1777
|
if (data.description !== undefined && data.description !== null) {
|
|
1764
1778
|
contents.Description = __expectString(data.description);
|
|
@@ -1848,9 +1862,9 @@ var deserializeAws_restJson1DescribeConfigurationCommandError = function (output
|
|
|
1848
1862
|
});
|
|
1849
1863
|
}); };
|
|
1850
1864
|
export var deserializeAws_restJson1DescribeConfigurationRevisionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1851
|
-
var contents, data;
|
|
1852
|
-
return __generator(this, function (
|
|
1853
|
-
switch (
|
|
1865
|
+
var contents, data, _a, _b;
|
|
1866
|
+
return __generator(this, function (_c) {
|
|
1867
|
+
switch (_c.label) {
|
|
1854
1868
|
case 0:
|
|
1855
1869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1856
1870
|
return [2 /*return*/, deserializeAws_restJson1DescribeConfigurationRevisionCommandError(output, context)];
|
|
@@ -1862,14 +1876,16 @@ export var deserializeAws_restJson1DescribeConfigurationRevisionCommand = functi
|
|
|
1862
1876
|
Data: undefined,
|
|
1863
1877
|
Description: undefined,
|
|
1864
1878
|
};
|
|
1879
|
+
_a = __expectNonNull;
|
|
1880
|
+
_b = __expectObject;
|
|
1865
1881
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1866
1882
|
case 1:
|
|
1867
|
-
data = _a.sent();
|
|
1883
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1868
1884
|
if (data.configurationId !== undefined && data.configurationId !== null) {
|
|
1869
1885
|
contents.ConfigurationId = __expectString(data.configurationId);
|
|
1870
1886
|
}
|
|
1871
1887
|
if (data.created !== undefined && data.created !== null) {
|
|
1872
|
-
contents.Created =
|
|
1888
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
1873
1889
|
}
|
|
1874
1890
|
if (data.data !== undefined && data.data !== null) {
|
|
1875
1891
|
contents.Data = __expectString(data.data);
|
|
@@ -1944,9 +1960,9 @@ var deserializeAws_restJson1DescribeConfigurationRevisionCommandError = function
|
|
|
1944
1960
|
});
|
|
1945
1961
|
}); };
|
|
1946
1962
|
export var deserializeAws_restJson1DescribeUserCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1947
|
-
var contents, data;
|
|
1948
|
-
return __generator(this, function (
|
|
1949
|
-
switch (
|
|
1963
|
+
var contents, data, _a, _b;
|
|
1964
|
+
return __generator(this, function (_c) {
|
|
1965
|
+
switch (_c.label) {
|
|
1950
1966
|
case 0:
|
|
1951
1967
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1952
1968
|
return [2 /*return*/, deserializeAws_restJson1DescribeUserCommandError(output, context)];
|
|
@@ -1959,9 +1975,11 @@ export var deserializeAws_restJson1DescribeUserCommand = function (output, conte
|
|
|
1959
1975
|
Pending: undefined,
|
|
1960
1976
|
Username: undefined,
|
|
1961
1977
|
};
|
|
1978
|
+
_a = __expectNonNull;
|
|
1979
|
+
_b = __expectObject;
|
|
1962
1980
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1963
1981
|
case 1:
|
|
1964
|
-
data = _a.sent();
|
|
1982
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1965
1983
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
1966
1984
|
contents.BrokerId = __expectString(data.brokerId);
|
|
1967
1985
|
}
|
|
@@ -2044,9 +2062,9 @@ var deserializeAws_restJson1DescribeUserCommandError = function (output, context
|
|
|
2044
2062
|
});
|
|
2045
2063
|
}); };
|
|
2046
2064
|
export var deserializeAws_restJson1ListBrokersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2047
|
-
var contents, data;
|
|
2048
|
-
return __generator(this, function (
|
|
2049
|
-
switch (
|
|
2065
|
+
var contents, data, _a, _b;
|
|
2066
|
+
return __generator(this, function (_c) {
|
|
2067
|
+
switch (_c.label) {
|
|
2050
2068
|
case 0:
|
|
2051
2069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2052
2070
|
return [2 /*return*/, deserializeAws_restJson1ListBrokersCommandError(output, context)];
|
|
@@ -2056,9 +2074,11 @@ export var deserializeAws_restJson1ListBrokersCommand = function (output, contex
|
|
|
2056
2074
|
BrokerSummaries: undefined,
|
|
2057
2075
|
NextToken: undefined,
|
|
2058
2076
|
};
|
|
2077
|
+
_a = __expectNonNull;
|
|
2078
|
+
_b = __expectObject;
|
|
2059
2079
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2060
2080
|
case 1:
|
|
2061
|
-
data = _a.sent();
|
|
2081
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2062
2082
|
if (data.brokerSummaries !== undefined && data.brokerSummaries !== null) {
|
|
2063
2083
|
contents.BrokerSummaries = deserializeAws_restJson1__listOfBrokerSummary(data.brokerSummaries, context);
|
|
2064
2084
|
}
|
|
@@ -2124,9 +2144,9 @@ var deserializeAws_restJson1ListBrokersCommandError = function (output, context)
|
|
|
2124
2144
|
});
|
|
2125
2145
|
}); };
|
|
2126
2146
|
export var deserializeAws_restJson1ListConfigurationRevisionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2127
|
-
var contents, data;
|
|
2128
|
-
return __generator(this, function (
|
|
2129
|
-
switch (
|
|
2147
|
+
var contents, data, _a, _b;
|
|
2148
|
+
return __generator(this, function (_c) {
|
|
2149
|
+
switch (_c.label) {
|
|
2130
2150
|
case 0:
|
|
2131
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2132
2152
|
return [2 /*return*/, deserializeAws_restJson1ListConfigurationRevisionsCommandError(output, context)];
|
|
@@ -2138,14 +2158,16 @@ export var deserializeAws_restJson1ListConfigurationRevisionsCommand = function
|
|
|
2138
2158
|
NextToken: undefined,
|
|
2139
2159
|
Revisions: undefined,
|
|
2140
2160
|
};
|
|
2161
|
+
_a = __expectNonNull;
|
|
2162
|
+
_b = __expectObject;
|
|
2141
2163
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2142
2164
|
case 1:
|
|
2143
|
-
data = _a.sent();
|
|
2165
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2144
2166
|
if (data.configurationId !== undefined && data.configurationId !== null) {
|
|
2145
2167
|
contents.ConfigurationId = __expectString(data.configurationId);
|
|
2146
2168
|
}
|
|
2147
2169
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
2148
|
-
contents.MaxResults =
|
|
2170
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
2149
2171
|
}
|
|
2150
2172
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2151
2173
|
contents.NextToken = __expectString(data.nextToken);
|
|
@@ -2220,9 +2242,9 @@ var deserializeAws_restJson1ListConfigurationRevisionsCommandError = function (o
|
|
|
2220
2242
|
});
|
|
2221
2243
|
}); };
|
|
2222
2244
|
export var deserializeAws_restJson1ListConfigurationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2223
|
-
var contents, data;
|
|
2224
|
-
return __generator(this, function (
|
|
2225
|
-
switch (
|
|
2245
|
+
var contents, data, _a, _b;
|
|
2246
|
+
return __generator(this, function (_c) {
|
|
2247
|
+
switch (_c.label) {
|
|
2226
2248
|
case 0:
|
|
2227
2249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2228
2250
|
return [2 /*return*/, deserializeAws_restJson1ListConfigurationsCommandError(output, context)];
|
|
@@ -2233,14 +2255,16 @@ export var deserializeAws_restJson1ListConfigurationsCommand = function (output,
|
|
|
2233
2255
|
MaxResults: undefined,
|
|
2234
2256
|
NextToken: undefined,
|
|
2235
2257
|
};
|
|
2258
|
+
_a = __expectNonNull;
|
|
2259
|
+
_b = __expectObject;
|
|
2236
2260
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2237
2261
|
case 1:
|
|
2238
|
-
data = _a.sent();
|
|
2262
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2239
2263
|
if (data.configurations !== undefined && data.configurations !== null) {
|
|
2240
2264
|
contents.Configurations = deserializeAws_restJson1__listOfConfiguration(data.configurations, context);
|
|
2241
2265
|
}
|
|
2242
2266
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
2243
|
-
contents.MaxResults =
|
|
2267
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
2244
2268
|
}
|
|
2245
2269
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2246
2270
|
contents.NextToken = __expectString(data.nextToken);
|
|
@@ -2304,9 +2328,9 @@ var deserializeAws_restJson1ListConfigurationsCommandError = function (output, c
|
|
|
2304
2328
|
});
|
|
2305
2329
|
}); };
|
|
2306
2330
|
export var deserializeAws_restJson1ListTagsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2307
|
-
var contents, data;
|
|
2308
|
-
return __generator(this, function (
|
|
2309
|
-
switch (
|
|
2331
|
+
var contents, data, _a, _b;
|
|
2332
|
+
return __generator(this, function (_c) {
|
|
2333
|
+
switch (_c.label) {
|
|
2310
2334
|
case 0:
|
|
2311
2335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2312
2336
|
return [2 /*return*/, deserializeAws_restJson1ListTagsCommandError(output, context)];
|
|
@@ -2315,9 +2339,11 @@ export var deserializeAws_restJson1ListTagsCommand = function (output, context)
|
|
|
2315
2339
|
$metadata: deserializeMetadata(output),
|
|
2316
2340
|
Tags: undefined,
|
|
2317
2341
|
};
|
|
2342
|
+
_a = __expectNonNull;
|
|
2343
|
+
_b = __expectObject;
|
|
2318
2344
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2319
2345
|
case 1:
|
|
2320
|
-
data = _a.sent();
|
|
2346
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2321
2347
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2322
2348
|
contents.Tags = deserializeAws_restJson1__mapOf__string(data.tags, context);
|
|
2323
2349
|
}
|
|
@@ -2388,9 +2414,9 @@ var deserializeAws_restJson1ListTagsCommandError = function (output, context) {
|
|
|
2388
2414
|
});
|
|
2389
2415
|
}); };
|
|
2390
2416
|
export var deserializeAws_restJson1ListUsersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2391
|
-
var contents, data;
|
|
2392
|
-
return __generator(this, function (
|
|
2393
|
-
switch (
|
|
2417
|
+
var contents, data, _a, _b;
|
|
2418
|
+
return __generator(this, function (_c) {
|
|
2419
|
+
switch (_c.label) {
|
|
2394
2420
|
case 0:
|
|
2395
2421
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2396
2422
|
return [2 /*return*/, deserializeAws_restJson1ListUsersCommandError(output, context)];
|
|
@@ -2402,14 +2428,16 @@ export var deserializeAws_restJson1ListUsersCommand = function (output, context)
|
|
|
2402
2428
|
NextToken: undefined,
|
|
2403
2429
|
Users: undefined,
|
|
2404
2430
|
};
|
|
2431
|
+
_a = __expectNonNull;
|
|
2432
|
+
_b = __expectObject;
|
|
2405
2433
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2406
2434
|
case 1:
|
|
2407
|
-
data = _a.sent();
|
|
2435
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2408
2436
|
if (data.brokerId !== undefined && data.brokerId !== null) {
|
|
2409
2437
|
contents.BrokerId = __expectString(data.brokerId);
|
|
2410
2438
|
}
|
|
2411
2439
|
if (data.maxResults !== undefined && data.maxResults !== null) {
|
|
2412
|
-
contents.MaxResults =
|
|
2440
|
+
contents.MaxResults = __expectInt32(data.maxResults);
|
|
2413
2441
|
}
|
|
2414
2442
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2415
2443
|
contents.NextToken = __expectString(data.nextToken);
|
|
@@ -2564,9 +2592,9 @@ var deserializeAws_restJson1RebootBrokerCommandError = function (output, context
|
|
|
2564
2592
|
});
|
|
2565
2593
|
}); };
|
|
2566
2594
|
export var deserializeAws_restJson1UpdateBrokerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2567
|
-
var contents, data;
|
|
2568
|
-
return __generator(this, function (
|
|
2569
|
-
switch (
|
|
2595
|
+
var contents, data, _a, _b;
|
|
2596
|
+
return __generator(this, function (_c) {
|
|
2597
|
+
switch (_c.label) {
|
|
2570
2598
|
case 0:
|
|
2571
2599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2572
2600
|
return [2 /*return*/, deserializeAws_restJson1UpdateBrokerCommandError(output, context)];
|
|
@@ -2584,9 +2612,11 @@ export var deserializeAws_restJson1UpdateBrokerCommand = function (output, conte
|
|
|
2584
2612
|
MaintenanceWindowStartTime: undefined,
|
|
2585
2613
|
SecurityGroups: undefined,
|
|
2586
2614
|
};
|
|
2615
|
+
_a = __expectNonNull;
|
|
2616
|
+
_b = __expectObject;
|
|
2587
2617
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2588
2618
|
case 1:
|
|
2589
|
-
data = _a.sent();
|
|
2619
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2590
2620
|
if (data.authenticationStrategy !== undefined && data.authenticationStrategy !== null) {
|
|
2591
2621
|
contents.AuthenticationStrategy = __expectString(data.authenticationStrategy);
|
|
2592
2622
|
}
|
|
@@ -2692,9 +2722,9 @@ var deserializeAws_restJson1UpdateBrokerCommandError = function (output, context
|
|
|
2692
2722
|
});
|
|
2693
2723
|
}); };
|
|
2694
2724
|
export var deserializeAws_restJson1UpdateConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2695
|
-
var contents, data;
|
|
2696
|
-
return __generator(this, function (
|
|
2697
|
-
switch (
|
|
2725
|
+
var contents, data, _a, _b;
|
|
2726
|
+
return __generator(this, function (_c) {
|
|
2727
|
+
switch (_c.label) {
|
|
2698
2728
|
case 0:
|
|
2699
2729
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2700
2730
|
return [2 /*return*/, deserializeAws_restJson1UpdateConfigurationCommandError(output, context)];
|
|
@@ -2708,14 +2738,16 @@ export var deserializeAws_restJson1UpdateConfigurationCommand = function (output
|
|
|
2708
2738
|
Name: undefined,
|
|
2709
2739
|
Warnings: undefined,
|
|
2710
2740
|
};
|
|
2741
|
+
_a = __expectNonNull;
|
|
2742
|
+
_b = __expectObject;
|
|
2711
2743
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2712
2744
|
case 1:
|
|
2713
|
-
data = _a.sent();
|
|
2745
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2714
2746
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2715
2747
|
contents.Arn = __expectString(data.arn);
|
|
2716
2748
|
}
|
|
2717
2749
|
if (data.created !== undefined && data.created !== null) {
|
|
2718
|
-
contents.Created =
|
|
2750
|
+
contents.Created = __expectNonNull(__parseRfc3339DateTime(data.created));
|
|
2719
2751
|
}
|
|
2720
2752
|
if (data.id !== undefined && data.id !== null) {
|
|
2721
2753
|
contents.Id = __expectString(data.id);
|
|
@@ -3252,7 +3284,9 @@ var deserializeAws_restJson1BrokerSummary = function (output, context) {
|
|
|
3252
3284
|
BrokerId: __expectString(output.brokerId),
|
|
3253
3285
|
BrokerName: __expectString(output.brokerName),
|
|
3254
3286
|
BrokerState: __expectString(output.brokerState),
|
|
3255
|
-
Created: output.created !== undefined && output.created !== null
|
|
3287
|
+
Created: output.created !== undefined && output.created !== null
|
|
3288
|
+
? __expectNonNull(__parseRfc3339DateTime(output.created))
|
|
3289
|
+
: undefined,
|
|
3256
3290
|
DeploymentMode: __expectString(output.deploymentMode),
|
|
3257
3291
|
EngineType: __expectString(output.engineType),
|
|
3258
3292
|
HostInstanceType: __expectString(output.hostInstanceType),
|
|
@@ -3262,7 +3296,9 @@ var deserializeAws_restJson1Configuration = function (output, context) {
|
|
|
3262
3296
|
return {
|
|
3263
3297
|
Arn: __expectString(output.arn),
|
|
3264
3298
|
AuthenticationStrategy: __expectString(output.authenticationStrategy),
|
|
3265
|
-
Created: output.created !== undefined && output.created !== null
|
|
3299
|
+
Created: output.created !== undefined && output.created !== null
|
|
3300
|
+
? __expectNonNull(__parseRfc3339DateTime(output.created))
|
|
3301
|
+
: undefined,
|
|
3266
3302
|
Description: __expectString(output.description),
|
|
3267
3303
|
EngineType: __expectString(output.engineType),
|
|
3268
3304
|
EngineVersion: __expectString(output.engineVersion),
|
|
@@ -3279,14 +3315,16 @@ var deserializeAws_restJson1Configuration = function (output, context) {
|
|
|
3279
3315
|
var deserializeAws_restJson1ConfigurationId = function (output, context) {
|
|
3280
3316
|
return {
|
|
3281
3317
|
Id: __expectString(output.id),
|
|
3282
|
-
Revision:
|
|
3318
|
+
Revision: __expectInt32(output.revision),
|
|
3283
3319
|
};
|
|
3284
3320
|
};
|
|
3285
3321
|
var deserializeAws_restJson1ConfigurationRevision = function (output, context) {
|
|
3286
3322
|
return {
|
|
3287
|
-
Created: output.created !== undefined && output.created !== null
|
|
3323
|
+
Created: output.created !== undefined && output.created !== null
|
|
3324
|
+
? __expectNonNull(__parseRfc3339DateTime(output.created))
|
|
3325
|
+
: undefined,
|
|
3288
3326
|
Description: __expectString(output.description),
|
|
3289
|
-
Revision:
|
|
3327
|
+
Revision: __expectInt32(output.revision),
|
|
3290
3328
|
};
|
|
3291
3329
|
};
|
|
3292
3330
|
var deserializeAws_restJson1Configurations = function (output, context) {
|