@aws-sdk/client-ssm-incidents 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 +35 -0
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_restJson1.js +71 -39
- 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 +32 -32
- package/dist/es/protocols/Aws_restJson1.js +152 -88
- package/dist/es/protocols/Aws_restJson1.js.map +1 -1
- package/package.json +32 -32
- package/protocols/Aws_restJson1.ts +79 -40
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { Action, AttributeValueList, ChatChannel, Condition, ItemValue, NotificationTargetItem, RelatedItemsUpdate, UpdateReplicationSetAction, } from "../models/models_0";
|
|
3
3
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
4
|
-
import { expectBoolean as __expectBoolean,
|
|
4
|
+
import { expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
5
5
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
6
6
|
export var serializeAws_restJson1CreateReplicationSetCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
@@ -778,9 +778,9 @@ export var serializeAws_restJson1UpdateTimelineEventCommand = function (input, c
|
|
|
778
778
|
});
|
|
779
779
|
}); };
|
|
780
780
|
export var deserializeAws_restJson1CreateReplicationSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
781
|
-
var contents, data;
|
|
782
|
-
return __generator(this, function (
|
|
783
|
-
switch (
|
|
781
|
+
var contents, data, _a, _b;
|
|
782
|
+
return __generator(this, function (_c) {
|
|
783
|
+
switch (_c.label) {
|
|
784
784
|
case 0:
|
|
785
785
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
786
786
|
return [2 /*return*/, deserializeAws_restJson1CreateReplicationSetCommandError(output, context)];
|
|
@@ -789,9 +789,11 @@ export var deserializeAws_restJson1CreateReplicationSetCommand = function (outpu
|
|
|
789
789
|
$metadata: deserializeMetadata(output),
|
|
790
790
|
arn: undefined,
|
|
791
791
|
};
|
|
792
|
+
_a = __expectNonNull;
|
|
793
|
+
_b = __expectObject;
|
|
792
794
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
793
795
|
case 1:
|
|
794
|
-
data = _a.sent();
|
|
796
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
795
797
|
if (data.arn !== undefined && data.arn !== null) {
|
|
796
798
|
contents.arn = __expectString(data.arn);
|
|
797
799
|
}
|
|
@@ -878,9 +880,9 @@ var deserializeAws_restJson1CreateReplicationSetCommandError = function (output,
|
|
|
878
880
|
});
|
|
879
881
|
}); };
|
|
880
882
|
export var deserializeAws_restJson1CreateResponsePlanCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
881
|
-
var contents, data;
|
|
882
|
-
return __generator(this, function (
|
|
883
|
-
switch (
|
|
883
|
+
var contents, data, _a, _b;
|
|
884
|
+
return __generator(this, function (_c) {
|
|
885
|
+
switch (_c.label) {
|
|
884
886
|
case 0:
|
|
885
887
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
886
888
|
return [2 /*return*/, deserializeAws_restJson1CreateResponsePlanCommandError(output, context)];
|
|
@@ -889,9 +891,11 @@ export var deserializeAws_restJson1CreateResponsePlanCommand = function (output,
|
|
|
889
891
|
$metadata: deserializeMetadata(output),
|
|
890
892
|
arn: undefined,
|
|
891
893
|
};
|
|
894
|
+
_a = __expectNonNull;
|
|
895
|
+
_b = __expectObject;
|
|
892
896
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
893
897
|
case 1:
|
|
894
|
-
data = _a.sent();
|
|
898
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
895
899
|
if (data.arn !== undefined && data.arn !== null) {
|
|
896
900
|
contents.arn = __expectString(data.arn);
|
|
897
901
|
}
|
|
@@ -978,9 +982,9 @@ var deserializeAws_restJson1CreateResponsePlanCommandError = function (output, c
|
|
|
978
982
|
});
|
|
979
983
|
}); };
|
|
980
984
|
export var deserializeAws_restJson1CreateTimelineEventCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
981
|
-
var contents, data;
|
|
982
|
-
return __generator(this, function (
|
|
983
|
-
switch (
|
|
985
|
+
var contents, data, _a, _b;
|
|
986
|
+
return __generator(this, function (_c) {
|
|
987
|
+
switch (_c.label) {
|
|
984
988
|
case 0:
|
|
985
989
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
986
990
|
return [2 /*return*/, deserializeAws_restJson1CreateTimelineEventCommandError(output, context)];
|
|
@@ -990,9 +994,11 @@ export var deserializeAws_restJson1CreateTimelineEventCommand = function (output
|
|
|
990
994
|
eventId: undefined,
|
|
991
995
|
incidentRecordArn: undefined,
|
|
992
996
|
};
|
|
997
|
+
_a = __expectNonNull;
|
|
998
|
+
_b = __expectObject;
|
|
993
999
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
994
1000
|
case 1:
|
|
995
|
-
data = _a.sent();
|
|
1001
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
996
1002
|
if (data.eventId !== undefined && data.eventId !== null) {
|
|
997
1003
|
contents.eventId = __expectString(data.eventId);
|
|
998
1004
|
}
|
|
@@ -1498,9 +1504,9 @@ var deserializeAws_restJson1DeleteTimelineEventCommandError = function (output,
|
|
|
1498
1504
|
});
|
|
1499
1505
|
}); };
|
|
1500
1506
|
export var deserializeAws_restJson1GetIncidentRecordCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1501
|
-
var contents, data;
|
|
1502
|
-
return __generator(this, function (
|
|
1503
|
-
switch (
|
|
1507
|
+
var contents, data, _a, _b;
|
|
1508
|
+
return __generator(this, function (_c) {
|
|
1509
|
+
switch (_c.label) {
|
|
1504
1510
|
case 0:
|
|
1505
1511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1506
1512
|
return [2 /*return*/, deserializeAws_restJson1GetIncidentRecordCommandError(output, context)];
|
|
@@ -1509,9 +1515,11 @@ export var deserializeAws_restJson1GetIncidentRecordCommand = function (output,
|
|
|
1509
1515
|
$metadata: deserializeMetadata(output),
|
|
1510
1516
|
incidentRecord: undefined,
|
|
1511
1517
|
};
|
|
1518
|
+
_a = __expectNonNull;
|
|
1519
|
+
_b = __expectObject;
|
|
1512
1520
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1513
1521
|
case 1:
|
|
1514
|
-
data = _a.sent();
|
|
1522
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1515
1523
|
if (data.incidentRecord !== undefined && data.incidentRecord !== null) {
|
|
1516
1524
|
contents.incidentRecord = deserializeAws_restJson1IncidentRecord(data.incidentRecord, context);
|
|
1517
1525
|
}
|
|
@@ -1590,9 +1598,9 @@ var deserializeAws_restJson1GetIncidentRecordCommandError = function (output, co
|
|
|
1590
1598
|
});
|
|
1591
1599
|
}); };
|
|
1592
1600
|
export var deserializeAws_restJson1GetReplicationSetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1593
|
-
var contents, data;
|
|
1594
|
-
return __generator(this, function (
|
|
1595
|
-
switch (
|
|
1601
|
+
var contents, data, _a, _b;
|
|
1602
|
+
return __generator(this, function (_c) {
|
|
1603
|
+
switch (_c.label) {
|
|
1596
1604
|
case 0:
|
|
1597
1605
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1598
1606
|
return [2 /*return*/, deserializeAws_restJson1GetReplicationSetCommandError(output, context)];
|
|
@@ -1601,9 +1609,11 @@ export var deserializeAws_restJson1GetReplicationSetCommand = function (output,
|
|
|
1601
1609
|
$metadata: deserializeMetadata(output),
|
|
1602
1610
|
replicationSet: undefined,
|
|
1603
1611
|
};
|
|
1612
|
+
_a = __expectNonNull;
|
|
1613
|
+
_b = __expectObject;
|
|
1604
1614
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1605
1615
|
case 1:
|
|
1606
|
-
data = _a.sent();
|
|
1616
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1607
1617
|
if (data.replicationSet !== undefined && data.replicationSet !== null) {
|
|
1608
1618
|
contents.replicationSet = deserializeAws_restJson1ReplicationSet(data.replicationSet, context);
|
|
1609
1619
|
}
|
|
@@ -1682,9 +1692,9 @@ var deserializeAws_restJson1GetReplicationSetCommandError = function (output, co
|
|
|
1682
1692
|
});
|
|
1683
1693
|
}); };
|
|
1684
1694
|
export var deserializeAws_restJson1GetResourcePoliciesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1685
|
-
var contents, data;
|
|
1686
|
-
return __generator(this, function (
|
|
1687
|
-
switch (
|
|
1695
|
+
var contents, data, _a, _b;
|
|
1696
|
+
return __generator(this, function (_c) {
|
|
1697
|
+
switch (_c.label) {
|
|
1688
1698
|
case 0:
|
|
1689
1699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1690
1700
|
return [2 /*return*/, deserializeAws_restJson1GetResourcePoliciesCommandError(output, context)];
|
|
@@ -1694,9 +1704,11 @@ export var deserializeAws_restJson1GetResourcePoliciesCommand = function (output
|
|
|
1694
1704
|
nextToken: undefined,
|
|
1695
1705
|
resourcePolicies: undefined,
|
|
1696
1706
|
};
|
|
1707
|
+
_a = __expectNonNull;
|
|
1708
|
+
_b = __expectObject;
|
|
1697
1709
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1698
1710
|
case 1:
|
|
1699
|
-
data = _a.sent();
|
|
1711
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1700
1712
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1701
1713
|
contents.nextToken = __expectString(data.nextToken);
|
|
1702
1714
|
}
|
|
@@ -1778,9 +1790,9 @@ var deserializeAws_restJson1GetResourcePoliciesCommandError = function (output,
|
|
|
1778
1790
|
});
|
|
1779
1791
|
}); };
|
|
1780
1792
|
export var deserializeAws_restJson1GetResponsePlanCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1781
|
-
var contents, data;
|
|
1782
|
-
return __generator(this, function (
|
|
1783
|
-
switch (
|
|
1793
|
+
var contents, data, _a, _b;
|
|
1794
|
+
return __generator(this, function (_c) {
|
|
1795
|
+
switch (_c.label) {
|
|
1784
1796
|
case 0:
|
|
1785
1797
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
1798
|
return [2 /*return*/, deserializeAws_restJson1GetResponsePlanCommandError(output, context)];
|
|
@@ -1795,9 +1807,11 @@ export var deserializeAws_restJson1GetResponsePlanCommand = function (output, co
|
|
|
1795
1807
|
incidentTemplate: undefined,
|
|
1796
1808
|
name: undefined,
|
|
1797
1809
|
};
|
|
1810
|
+
_a = __expectNonNull;
|
|
1811
|
+
_b = __expectObject;
|
|
1798
1812
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1799
1813
|
case 1:
|
|
1800
|
-
data = _a.sent();
|
|
1814
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1801
1815
|
if (data.actions !== undefined && data.actions !== null) {
|
|
1802
1816
|
contents.actions = deserializeAws_restJson1ActionsList(data.actions, context);
|
|
1803
1817
|
}
|
|
@@ -1805,7 +1819,7 @@ export var deserializeAws_restJson1GetResponsePlanCommand = function (output, co
|
|
|
1805
1819
|
contents.arn = __expectString(data.arn);
|
|
1806
1820
|
}
|
|
1807
1821
|
if (data.chatChannel !== undefined && data.chatChannel !== null) {
|
|
1808
|
-
contents.chatChannel = deserializeAws_restJson1ChatChannel(data.chatChannel, context);
|
|
1822
|
+
contents.chatChannel = deserializeAws_restJson1ChatChannel(__expectUnion(data.chatChannel), context);
|
|
1809
1823
|
}
|
|
1810
1824
|
if (data.displayName !== undefined && data.displayName !== null) {
|
|
1811
1825
|
contents.displayName = __expectString(data.displayName);
|
|
@@ -1894,9 +1908,9 @@ var deserializeAws_restJson1GetResponsePlanCommandError = function (output, cont
|
|
|
1894
1908
|
});
|
|
1895
1909
|
}); };
|
|
1896
1910
|
export var deserializeAws_restJson1GetTimelineEventCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1897
|
-
var contents, data;
|
|
1898
|
-
return __generator(this, function (
|
|
1899
|
-
switch (
|
|
1911
|
+
var contents, data, _a, _b;
|
|
1912
|
+
return __generator(this, function (_c) {
|
|
1913
|
+
switch (_c.label) {
|
|
1900
1914
|
case 0:
|
|
1901
1915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1902
1916
|
return [2 /*return*/, deserializeAws_restJson1GetTimelineEventCommandError(output, context)];
|
|
@@ -1905,9 +1919,11 @@ export var deserializeAws_restJson1GetTimelineEventCommand = function (output, c
|
|
|
1905
1919
|
$metadata: deserializeMetadata(output),
|
|
1906
1920
|
event: undefined,
|
|
1907
1921
|
};
|
|
1922
|
+
_a = __expectNonNull;
|
|
1923
|
+
_b = __expectObject;
|
|
1908
1924
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
1909
1925
|
case 1:
|
|
1910
|
-
data = _a.sent();
|
|
1926
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1911
1927
|
if (data.event !== undefined && data.event !== null) {
|
|
1912
1928
|
contents.event = deserializeAws_restJson1TimelineEvent(data.event, context);
|
|
1913
1929
|
}
|
|
@@ -1986,9 +2002,9 @@ var deserializeAws_restJson1GetTimelineEventCommandError = function (output, con
|
|
|
1986
2002
|
});
|
|
1987
2003
|
}); };
|
|
1988
2004
|
export var deserializeAws_restJson1ListIncidentRecordsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1989
|
-
var contents, data;
|
|
1990
|
-
return __generator(this, function (
|
|
1991
|
-
switch (
|
|
2005
|
+
var contents, data, _a, _b;
|
|
2006
|
+
return __generator(this, function (_c) {
|
|
2007
|
+
switch (_c.label) {
|
|
1992
2008
|
case 0:
|
|
1993
2009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1994
2010
|
return [2 /*return*/, deserializeAws_restJson1ListIncidentRecordsCommandError(output, context)];
|
|
@@ -1998,9 +2014,11 @@ export var deserializeAws_restJson1ListIncidentRecordsCommand = function (output
|
|
|
1998
2014
|
incidentRecordSummaries: undefined,
|
|
1999
2015
|
nextToken: undefined,
|
|
2000
2016
|
};
|
|
2017
|
+
_a = __expectNonNull;
|
|
2018
|
+
_b = __expectObject;
|
|
2001
2019
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2002
2020
|
case 1:
|
|
2003
|
-
data = _a.sent();
|
|
2021
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2004
2022
|
if (data.incidentRecordSummaries !== undefined && data.incidentRecordSummaries !== null) {
|
|
2005
2023
|
contents.incidentRecordSummaries = deserializeAws_restJson1IncidentRecordSummaryList(data.incidentRecordSummaries, context);
|
|
2006
2024
|
}
|
|
@@ -2074,9 +2092,9 @@ var deserializeAws_restJson1ListIncidentRecordsCommandError = function (output,
|
|
|
2074
2092
|
});
|
|
2075
2093
|
}); };
|
|
2076
2094
|
export var deserializeAws_restJson1ListRelatedItemsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2077
|
-
var contents, data;
|
|
2078
|
-
return __generator(this, function (
|
|
2079
|
-
switch (
|
|
2095
|
+
var contents, data, _a, _b;
|
|
2096
|
+
return __generator(this, function (_c) {
|
|
2097
|
+
switch (_c.label) {
|
|
2080
2098
|
case 0:
|
|
2081
2099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2082
2100
|
return [2 /*return*/, deserializeAws_restJson1ListRelatedItemsCommandError(output, context)];
|
|
@@ -2086,9 +2104,11 @@ export var deserializeAws_restJson1ListRelatedItemsCommand = function (output, c
|
|
|
2086
2104
|
nextToken: undefined,
|
|
2087
2105
|
relatedItems: undefined,
|
|
2088
2106
|
};
|
|
2107
|
+
_a = __expectNonNull;
|
|
2108
|
+
_b = __expectObject;
|
|
2089
2109
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2090
2110
|
case 1:
|
|
2091
|
-
data = _a.sent();
|
|
2111
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2092
2112
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2093
2113
|
contents.nextToken = __expectString(data.nextToken);
|
|
2094
2114
|
}
|
|
@@ -2162,9 +2182,9 @@ var deserializeAws_restJson1ListRelatedItemsCommandError = function (output, con
|
|
|
2162
2182
|
});
|
|
2163
2183
|
}); };
|
|
2164
2184
|
export var deserializeAws_restJson1ListReplicationSetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2165
|
-
var contents, data;
|
|
2166
|
-
return __generator(this, function (
|
|
2167
|
-
switch (
|
|
2185
|
+
var contents, data, _a, _b;
|
|
2186
|
+
return __generator(this, function (_c) {
|
|
2187
|
+
switch (_c.label) {
|
|
2168
2188
|
case 0:
|
|
2169
2189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2170
2190
|
return [2 /*return*/, deserializeAws_restJson1ListReplicationSetsCommandError(output, context)];
|
|
@@ -2174,9 +2194,11 @@ export var deserializeAws_restJson1ListReplicationSetsCommand = function (output
|
|
|
2174
2194
|
nextToken: undefined,
|
|
2175
2195
|
replicationSetArns: undefined,
|
|
2176
2196
|
};
|
|
2197
|
+
_a = __expectNonNull;
|
|
2198
|
+
_b = __expectObject;
|
|
2177
2199
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2178
2200
|
case 1:
|
|
2179
|
-
data = _a.sent();
|
|
2201
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2180
2202
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2181
2203
|
contents.nextToken = __expectString(data.nextToken);
|
|
2182
2204
|
}
|
|
@@ -2250,9 +2272,9 @@ var deserializeAws_restJson1ListReplicationSetsCommandError = function (output,
|
|
|
2250
2272
|
});
|
|
2251
2273
|
}); };
|
|
2252
2274
|
export var deserializeAws_restJson1ListResponsePlansCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2253
|
-
var contents, data;
|
|
2254
|
-
return __generator(this, function (
|
|
2255
|
-
switch (
|
|
2275
|
+
var contents, data, _a, _b;
|
|
2276
|
+
return __generator(this, function (_c) {
|
|
2277
|
+
switch (_c.label) {
|
|
2256
2278
|
case 0:
|
|
2257
2279
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2258
2280
|
return [2 /*return*/, deserializeAws_restJson1ListResponsePlansCommandError(output, context)];
|
|
@@ -2262,9 +2284,11 @@ export var deserializeAws_restJson1ListResponsePlansCommand = function (output,
|
|
|
2262
2284
|
nextToken: undefined,
|
|
2263
2285
|
responsePlanSummaries: undefined,
|
|
2264
2286
|
};
|
|
2287
|
+
_a = __expectNonNull;
|
|
2288
|
+
_b = __expectObject;
|
|
2265
2289
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2266
2290
|
case 1:
|
|
2267
|
-
data = _a.sent();
|
|
2291
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2268
2292
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2269
2293
|
contents.nextToken = __expectString(data.nextToken);
|
|
2270
2294
|
}
|
|
@@ -2338,9 +2362,9 @@ var deserializeAws_restJson1ListResponsePlansCommandError = function (output, co
|
|
|
2338
2362
|
});
|
|
2339
2363
|
}); };
|
|
2340
2364
|
export var deserializeAws_restJson1ListTagsForResourceCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2341
|
-
var contents, data;
|
|
2342
|
-
return __generator(this, function (
|
|
2343
|
-
switch (
|
|
2365
|
+
var contents, data, _a, _b;
|
|
2366
|
+
return __generator(this, function (_c) {
|
|
2367
|
+
switch (_c.label) {
|
|
2344
2368
|
case 0:
|
|
2345
2369
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2346
2370
|
return [2 /*return*/, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
@@ -2349,9 +2373,11 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
2349
2373
|
$metadata: deserializeMetadata(output),
|
|
2350
2374
|
tags: undefined,
|
|
2351
2375
|
};
|
|
2376
|
+
_a = __expectNonNull;
|
|
2377
|
+
_b = __expectObject;
|
|
2352
2378
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2353
2379
|
case 1:
|
|
2354
|
-
data = _a.sent();
|
|
2380
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2355
2381
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2356
2382
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2357
2383
|
}
|
|
@@ -2430,9 +2456,9 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
2430
2456
|
});
|
|
2431
2457
|
}); };
|
|
2432
2458
|
export var deserializeAws_restJson1ListTimelineEventsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2433
|
-
var contents, data;
|
|
2434
|
-
return __generator(this, function (
|
|
2435
|
-
switch (
|
|
2459
|
+
var contents, data, _a, _b;
|
|
2460
|
+
return __generator(this, function (_c) {
|
|
2461
|
+
switch (_c.label) {
|
|
2436
2462
|
case 0:
|
|
2437
2463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2438
2464
|
return [2 /*return*/, deserializeAws_restJson1ListTimelineEventsCommandError(output, context)];
|
|
@@ -2442,9 +2468,11 @@ export var deserializeAws_restJson1ListTimelineEventsCommand = function (output,
|
|
|
2442
2468
|
eventSummaries: undefined,
|
|
2443
2469
|
nextToken: undefined,
|
|
2444
2470
|
};
|
|
2471
|
+
_a = __expectNonNull;
|
|
2472
|
+
_b = __expectObject;
|
|
2445
2473
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2446
2474
|
case 1:
|
|
2447
|
-
data = _a.sent();
|
|
2475
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2448
2476
|
if (data.eventSummaries !== undefined && data.eventSummaries !== null) {
|
|
2449
2477
|
contents.eventSummaries = deserializeAws_restJson1EventSummaryList(data.eventSummaries, context);
|
|
2450
2478
|
}
|
|
@@ -2518,9 +2546,9 @@ var deserializeAws_restJson1ListTimelineEventsCommandError = function (output, c
|
|
|
2518
2546
|
});
|
|
2519
2547
|
}); };
|
|
2520
2548
|
export var deserializeAws_restJson1PutResourcePolicyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2521
|
-
var contents, data;
|
|
2522
|
-
return __generator(this, function (
|
|
2523
|
-
switch (
|
|
2549
|
+
var contents, data, _a, _b;
|
|
2550
|
+
return __generator(this, function (_c) {
|
|
2551
|
+
switch (_c.label) {
|
|
2524
2552
|
case 0:
|
|
2525
2553
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2526
2554
|
return [2 /*return*/, deserializeAws_restJson1PutResourcePolicyCommandError(output, context)];
|
|
@@ -2529,9 +2557,11 @@ export var deserializeAws_restJson1PutResourcePolicyCommand = function (output,
|
|
|
2529
2557
|
$metadata: deserializeMetadata(output),
|
|
2530
2558
|
policyId: undefined,
|
|
2531
2559
|
};
|
|
2560
|
+
_a = __expectNonNull;
|
|
2561
|
+
_b = __expectObject;
|
|
2532
2562
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2533
2563
|
case 1:
|
|
2534
|
-
data = _a.sent();
|
|
2564
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2535
2565
|
if (data.policyId !== undefined && data.policyId !== null) {
|
|
2536
2566
|
contents.policyId = __expectString(data.policyId);
|
|
2537
2567
|
}
|
|
@@ -2610,9 +2640,9 @@ var deserializeAws_restJson1PutResourcePolicyCommandError = function (output, co
|
|
|
2610
2640
|
});
|
|
2611
2641
|
}); };
|
|
2612
2642
|
export var deserializeAws_restJson1StartIncidentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2613
|
-
var contents, data;
|
|
2614
|
-
return __generator(this, function (
|
|
2615
|
-
switch (
|
|
2643
|
+
var contents, data, _a, _b;
|
|
2644
|
+
return __generator(this, function (_c) {
|
|
2645
|
+
switch (_c.label) {
|
|
2616
2646
|
case 0:
|
|
2617
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2618
2648
|
return [2 /*return*/, deserializeAws_restJson1StartIncidentCommandError(output, context)];
|
|
@@ -2621,9 +2651,11 @@ export var deserializeAws_restJson1StartIncidentCommand = function (output, cont
|
|
|
2621
2651
|
$metadata: deserializeMetadata(output),
|
|
2622
2652
|
incidentRecordArn: undefined,
|
|
2623
2653
|
};
|
|
2654
|
+
_a = __expectNonNull;
|
|
2655
|
+
_b = __expectObject;
|
|
2624
2656
|
return [4 /*yield*/, parseBody(output.body, context)];
|
|
2625
2657
|
case 1:
|
|
2626
|
-
data = _a.sent();
|
|
2658
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2627
2659
|
if (data.incidentRecordArn !== undefined && data.incidentRecordArn !== null) {
|
|
2628
2660
|
contents.incidentRecordArn = __expectString(data.incidentRecordArn);
|
|
2629
2661
|
}
|
|
@@ -3861,7 +3893,7 @@ var deserializeAws_restJson1ActionsList = function (output, context) {
|
|
|
3861
3893
|
if (entry === null) {
|
|
3862
3894
|
return null;
|
|
3863
3895
|
}
|
|
3864
|
-
return deserializeAws_restJson1Action(entry, context);
|
|
3896
|
+
return deserializeAws_restJson1Action(__expectUnion(entry), context);
|
|
3865
3897
|
});
|
|
3866
3898
|
};
|
|
3867
3899
|
var deserializeAws_restJson1AutomationExecution = function (output, context) {
|
|
@@ -3871,23 +3903,39 @@ var deserializeAws_restJson1AutomationExecution = function (output, context) {
|
|
|
3871
3903
|
return { $unknown: Object.entries(output)[0] };
|
|
3872
3904
|
};
|
|
3873
3905
|
var deserializeAws_restJson1AutomationExecutionSet = function (output, context) {
|
|
3906
|
+
var uniqueValues = new Set();
|
|
3874
3907
|
return (output || [])
|
|
3875
3908
|
.filter(function (e) { return e != null; })
|
|
3876
3909
|
.map(function (entry) {
|
|
3877
3910
|
if (entry === null) {
|
|
3878
3911
|
return null;
|
|
3879
3912
|
}
|
|
3880
|
-
|
|
3913
|
+
var parsedEntry = deserializeAws_restJson1AutomationExecution(__expectUnion(entry), context);
|
|
3914
|
+
if (uniqueValues.has(parsedEntry)) {
|
|
3915
|
+
throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#AutomationExecutionSet" must be unique.');
|
|
3916
|
+
}
|
|
3917
|
+
else {
|
|
3918
|
+
uniqueValues.add(parsedEntry);
|
|
3919
|
+
return parsedEntry;
|
|
3920
|
+
}
|
|
3881
3921
|
});
|
|
3882
3922
|
};
|
|
3883
3923
|
var deserializeAws_restJson1ChatbotSnsConfigurationSet = function (output, context) {
|
|
3924
|
+
var uniqueValues = new Set();
|
|
3884
3925
|
return (output || [])
|
|
3885
3926
|
.filter(function (e) { return e != null; })
|
|
3886
3927
|
.map(function (entry) {
|
|
3887
3928
|
if (entry === null) {
|
|
3888
3929
|
return null;
|
|
3889
3930
|
}
|
|
3890
|
-
|
|
3931
|
+
var parsedEntry = __expectString(entry);
|
|
3932
|
+
if (uniqueValues.has(parsedEntry)) {
|
|
3933
|
+
throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#ChatbotSnsConfigurationSet" must be unique.');
|
|
3934
|
+
}
|
|
3935
|
+
else {
|
|
3936
|
+
uniqueValues.add(parsedEntry);
|
|
3937
|
+
return parsedEntry;
|
|
3938
|
+
}
|
|
3891
3939
|
});
|
|
3892
3940
|
};
|
|
3893
3941
|
var deserializeAws_restJson1ChatChannel = function (output, context) {
|
|
@@ -3907,24 +3955,32 @@ var deserializeAws_restJson1EmptyChatChannel = function (output, context) {
|
|
|
3907
3955
|
return {};
|
|
3908
3956
|
};
|
|
3909
3957
|
var deserializeAws_restJson1EngagementSet = function (output, context) {
|
|
3958
|
+
var uniqueValues = new Set();
|
|
3910
3959
|
return (output || [])
|
|
3911
3960
|
.filter(function (e) { return e != null; })
|
|
3912
3961
|
.map(function (entry) {
|
|
3913
3962
|
if (entry === null) {
|
|
3914
3963
|
return null;
|
|
3915
3964
|
}
|
|
3916
|
-
|
|
3965
|
+
var parsedEntry = __expectString(entry);
|
|
3966
|
+
if (uniqueValues.has(parsedEntry)) {
|
|
3967
|
+
throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#EngagementSet" must be unique.');
|
|
3968
|
+
}
|
|
3969
|
+
else {
|
|
3970
|
+
uniqueValues.add(parsedEntry);
|
|
3971
|
+
return parsedEntry;
|
|
3972
|
+
}
|
|
3917
3973
|
});
|
|
3918
3974
|
};
|
|
3919
3975
|
var deserializeAws_restJson1EventSummary = function (output, context) {
|
|
3920
3976
|
return {
|
|
3921
3977
|
eventId: __expectString(output.eventId),
|
|
3922
3978
|
eventTime: output.eventTime !== undefined && output.eventTime !== null
|
|
3923
|
-
?
|
|
3979
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
|
|
3924
3980
|
: undefined,
|
|
3925
3981
|
eventType: __expectString(output.eventType),
|
|
3926
3982
|
eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
|
|
3927
|
-
?
|
|
3983
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
|
|
3928
3984
|
: undefined,
|
|
3929
3985
|
incidentRecordArn: __expectString(output.incidentRecordArn),
|
|
3930
3986
|
};
|
|
@@ -3946,25 +4002,25 @@ var deserializeAws_restJson1IncidentRecord = function (output, context) {
|
|
|
3946
4002
|
? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
|
|
3947
4003
|
: undefined,
|
|
3948
4004
|
chatChannel: output.chatChannel !== undefined && output.chatChannel !== null
|
|
3949
|
-
? deserializeAws_restJson1ChatChannel(output.chatChannel, context)
|
|
4005
|
+
? deserializeAws_restJson1ChatChannel(__expectUnion(output.chatChannel), context)
|
|
3950
4006
|
: undefined,
|
|
3951
4007
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
3952
|
-
?
|
|
4008
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3953
4009
|
: undefined,
|
|
3954
4010
|
dedupeString: __expectString(output.dedupeString),
|
|
3955
|
-
impact:
|
|
4011
|
+
impact: __expectInt32(output.impact),
|
|
3956
4012
|
incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
|
|
3957
4013
|
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
3958
4014
|
: undefined,
|
|
3959
4015
|
lastModifiedBy: __expectString(output.lastModifiedBy),
|
|
3960
4016
|
lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
|
|
3961
|
-
?
|
|
4017
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
|
|
3962
4018
|
: undefined,
|
|
3963
4019
|
notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
|
|
3964
4020
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
3965
4021
|
: undefined,
|
|
3966
4022
|
resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
|
|
3967
|
-
?
|
|
4023
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
|
|
3968
4024
|
: undefined,
|
|
3969
4025
|
status: __expectString(output.status),
|
|
3970
4026
|
summary: __expectString(output.summary),
|
|
@@ -3983,14 +4039,14 @@ var deserializeAws_restJson1IncidentRecordSummary = function (output, context) {
|
|
|
3983
4039
|
return {
|
|
3984
4040
|
arn: __expectString(output.arn),
|
|
3985
4041
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
3986
|
-
?
|
|
4042
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationTime)))
|
|
3987
4043
|
: undefined,
|
|
3988
|
-
impact:
|
|
4044
|
+
impact: __expectInt32(output.impact),
|
|
3989
4045
|
incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
|
|
3990
4046
|
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
3991
4047
|
: undefined,
|
|
3992
4048
|
resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
|
|
3993
|
-
?
|
|
4049
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.resolvedTime)))
|
|
3994
4050
|
: undefined,
|
|
3995
4051
|
status: __expectString(output.status),
|
|
3996
4052
|
title: __expectString(output.title),
|
|
@@ -4009,7 +4065,7 @@ var deserializeAws_restJson1IncidentRecordSummaryList = function (output, contex
|
|
|
4009
4065
|
var deserializeAws_restJson1IncidentTemplate = function (output, context) {
|
|
4010
4066
|
return {
|
|
4011
4067
|
dedupeString: __expectString(output.dedupeString),
|
|
4012
|
-
impact:
|
|
4068
|
+
impact: __expectInt32(output.impact),
|
|
4013
4069
|
notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
|
|
4014
4070
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
4015
4071
|
: undefined,
|
|
@@ -4021,7 +4077,7 @@ var deserializeAws_restJson1ItemIdentifier = function (output, context) {
|
|
|
4021
4077
|
return {
|
|
4022
4078
|
type: __expectString(output.type),
|
|
4023
4079
|
value: output.value !== undefined && output.value !== null
|
|
4024
|
-
? deserializeAws_restJson1ItemValue(output.value, context)
|
|
4080
|
+
? deserializeAws_restJson1ItemValue(__expectUnion(output.value), context)
|
|
4025
4081
|
: undefined,
|
|
4026
4082
|
};
|
|
4027
4083
|
};
|
|
@@ -4044,13 +4100,21 @@ var deserializeAws_restJson1NotificationTargetItem = function (output, context)
|
|
|
4044
4100
|
return { $unknown: Object.entries(output)[0] };
|
|
4045
4101
|
};
|
|
4046
4102
|
var deserializeAws_restJson1NotificationTargetSet = function (output, context) {
|
|
4103
|
+
var uniqueValues = new Set();
|
|
4047
4104
|
return (output || [])
|
|
4048
4105
|
.filter(function (e) { return e != null; })
|
|
4049
4106
|
.map(function (entry) {
|
|
4050
4107
|
if (entry === null) {
|
|
4051
4108
|
return null;
|
|
4052
4109
|
}
|
|
4053
|
-
|
|
4110
|
+
var parsedEntry = deserializeAws_restJson1NotificationTargetItem(__expectUnion(entry), context);
|
|
4111
|
+
if (uniqueValues.has(parsedEntry)) {
|
|
4112
|
+
throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#NotificationTargetSet" must be unique.');
|
|
4113
|
+
}
|
|
4114
|
+
else {
|
|
4115
|
+
uniqueValues.add(parsedEntry);
|
|
4116
|
+
return parsedEntry;
|
|
4117
|
+
}
|
|
4054
4118
|
});
|
|
4055
4119
|
};
|
|
4056
4120
|
var deserializeAws_restJson1RegionInfo = function (output, context) {
|
|
@@ -4059,7 +4123,7 @@ var deserializeAws_restJson1RegionInfo = function (output, context) {
|
|
|
4059
4123
|
status: __expectString(output.status),
|
|
4060
4124
|
statusMessage: __expectString(output.statusMessage),
|
|
4061
4125
|
statusUpdateDateTime: output.statusUpdateDateTime !== undefined && output.statusUpdateDateTime !== null
|
|
4062
|
-
?
|
|
4126
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.statusUpdateDateTime)))
|
|
4063
4127
|
: undefined,
|
|
4064
4128
|
};
|
|
4065
4129
|
};
|
|
@@ -4096,12 +4160,12 @@ var deserializeAws_restJson1ReplicationSet = function (output, context) {
|
|
|
4096
4160
|
arn: __expectString(output.arn),
|
|
4097
4161
|
createdBy: __expectString(output.createdBy),
|
|
4098
4162
|
createdTime: output.createdTime !== undefined && output.createdTime !== null
|
|
4099
|
-
?
|
|
4163
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdTime)))
|
|
4100
4164
|
: undefined,
|
|
4101
4165
|
deletionProtected: __expectBoolean(output.deletionProtected),
|
|
4102
4166
|
lastModifiedBy: __expectString(output.lastModifiedBy),
|
|
4103
4167
|
lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
|
|
4104
|
-
?
|
|
4168
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedTime)))
|
|
4105
4169
|
: undefined,
|
|
4106
4170
|
regionMap: output.regionMap !== undefined && output.regionMap !== null
|
|
4107
4171
|
? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
|
|
@@ -4199,11 +4263,11 @@ var deserializeAws_restJson1TimelineEvent = function (output, context) {
|
|
|
4199
4263
|
eventData: __expectString(output.eventData),
|
|
4200
4264
|
eventId: __expectString(output.eventId),
|
|
4201
4265
|
eventTime: output.eventTime !== undefined && output.eventTime !== null
|
|
4202
|
-
?
|
|
4266
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventTime)))
|
|
4203
4267
|
: undefined,
|
|
4204
4268
|
eventType: __expectString(output.eventType),
|
|
4205
4269
|
eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
|
|
4206
|
-
?
|
|
4270
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.eventUpdatedTime)))
|
|
4207
4271
|
: undefined,
|
|
4208
4272
|
incidentRecordArn: __expectString(output.incidentRecordArn),
|
|
4209
4273
|
};
|