@aws-sdk/client-ssm-incidents 3.31.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 +8 -0
- package/dist/cjs/SSMIncidentsClient.js +13 -13
- package/dist/cjs/SSMIncidentsClient.js.map +1 -1
- package/dist/cjs/commands/CreateReplicationSetCommand.js +3 -3
- package/dist/cjs/commands/CreateReplicationSetCommand.js.map +1 -1
- package/dist/cjs/commands/CreateResponsePlanCommand.js +3 -3
- package/dist/cjs/commands/CreateResponsePlanCommand.js.map +1 -1
- package/dist/cjs/commands/CreateTimelineEventCommand.js +3 -3
- package/dist/cjs/commands/CreateTimelineEventCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteIncidentRecordCommand.js +3 -3
- package/dist/cjs/commands/DeleteIncidentRecordCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteReplicationSetCommand.js +3 -3
- package/dist/cjs/commands/DeleteReplicationSetCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js +3 -3
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteResponsePlanCommand.js +3 -3
- package/dist/cjs/commands/DeleteResponsePlanCommand.js.map +1 -1
- package/dist/cjs/commands/DeleteTimelineEventCommand.js +3 -3
- package/dist/cjs/commands/DeleteTimelineEventCommand.js.map +1 -1
- package/dist/cjs/commands/GetIncidentRecordCommand.js +3 -3
- package/dist/cjs/commands/GetIncidentRecordCommand.js.map +1 -1
- package/dist/cjs/commands/GetReplicationSetCommand.js +3 -3
- package/dist/cjs/commands/GetReplicationSetCommand.js.map +1 -1
- package/dist/cjs/commands/GetResourcePoliciesCommand.js +3 -3
- package/dist/cjs/commands/GetResourcePoliciesCommand.js.map +1 -1
- package/dist/cjs/commands/GetResponsePlanCommand.js +3 -3
- package/dist/cjs/commands/GetResponsePlanCommand.js.map +1 -1
- package/dist/cjs/commands/GetTimelineEventCommand.js +3 -3
- package/dist/cjs/commands/GetTimelineEventCommand.js.map +1 -1
- package/dist/cjs/commands/ListIncidentRecordsCommand.js +3 -3
- package/dist/cjs/commands/ListIncidentRecordsCommand.js.map +1 -1
- package/dist/cjs/commands/ListRelatedItemsCommand.js +3 -3
- package/dist/cjs/commands/ListRelatedItemsCommand.js.map +1 -1
- package/dist/cjs/commands/ListReplicationSetsCommand.js +3 -3
- package/dist/cjs/commands/ListReplicationSetsCommand.js.map +1 -1
- package/dist/cjs/commands/ListResponsePlansCommand.js +3 -3
- package/dist/cjs/commands/ListResponsePlansCommand.js.map +1 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +1 -1
- package/dist/cjs/commands/ListTimelineEventsCommand.js +3 -3
- package/dist/cjs/commands/ListTimelineEventsCommand.js.map +1 -1
- package/dist/cjs/commands/PutResourcePolicyCommand.js +3 -3
- package/dist/cjs/commands/PutResourcePolicyCommand.js.map +1 -1
- package/dist/cjs/commands/StartIncidentCommand.js +3 -3
- package/dist/cjs/commands/StartIncidentCommand.js.map +1 -1
- package/dist/cjs/commands/TagResourceCommand.js +3 -3
- package/dist/cjs/commands/TagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UntagResourceCommand.js +3 -3
- package/dist/cjs/commands/UntagResourceCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateDeletionProtectionCommand.js +3 -3
- package/dist/cjs/commands/UpdateDeletionProtectionCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateIncidentRecordCommand.js +3 -3
- package/dist/cjs/commands/UpdateIncidentRecordCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateRelatedItemsCommand.js +3 -3
- package/dist/cjs/commands/UpdateRelatedItemsCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateReplicationSetCommand.js +3 -3
- package/dist/cjs/commands/UpdateReplicationSetCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateResponsePlanCommand.js +3 -3
- package/dist/cjs/commands/UpdateResponsePlanCommand.js.map +1 -1
- package/dist/cjs/commands/UpdateTimelineEventCommand.js +3 -3
- package/dist/cjs/commands/UpdateTimelineEventCommand.js.map +1 -1
- package/dist/cjs/endpoints.js +1 -1
- package/dist/cjs/endpoints.js.map +1 -1
- package/dist/cjs/index.js +41 -41
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/models/index.js +1 -1
- package/dist/cjs/models/index.js.map +1 -1
- package/dist/cjs/package.json +32 -32
- package/dist/cjs/protocols/Aws_restJson1.js +140 -140
- package/dist/cjs/protocols/Aws_restJson1.js.map +1 -1
- package/dist/cjs/runtimeConfig.browser.js +4 -4
- package/dist/cjs/runtimeConfig.browser.js.map +1 -1
- package/dist/cjs/runtimeConfig.js +8 -8
- package/dist/cjs/runtimeConfig.js.map +1 -1
- package/dist/cjs/runtimeConfig.native.js +1 -1
- package/dist/cjs/runtimeConfig.native.js.map +1 -1
- package/dist/cjs/waiters/waitForWaitForReplicationSetActive.js +3 -3
- package/dist/cjs/waiters/waitForWaitForReplicationSetActive.js.map +1 -1
- package/dist/cjs/waiters/waitForWaitForReplicationSetDeleted.js +3 -3
- package/dist/cjs/waiters/waitForWaitForReplicationSetDeleted.js.map +1 -1
- package/dist/es/package.json +32 -32
- package/dist/es/pagination/GetResourcePoliciesPaginator.js +4 -4
- package/dist/es/pagination/GetResourcePoliciesPaginator.js.map +1 -1
- package/dist/es/pagination/ListIncidentRecordsPaginator.js +4 -4
- package/dist/es/pagination/ListIncidentRecordsPaginator.js.map +1 -1
- package/dist/es/pagination/ListRelatedItemsPaginator.js +4 -4
- package/dist/es/pagination/ListRelatedItemsPaginator.js.map +1 -1
- package/dist/es/pagination/ListReplicationSetsPaginator.js +4 -4
- package/dist/es/pagination/ListReplicationSetsPaginator.js.map +1 -1
- package/dist/es/pagination/ListResponsePlansPaginator.js +4 -4
- package/dist/es/pagination/ListResponsePlansPaginator.js.map +1 -1
- package/dist/es/pagination/ListTimelineEventsPaginator.js +4 -4
- package/dist/es/pagination/ListTimelineEventsPaginator.js.map +1 -1
- package/package.json +32 -32
- package/tsconfig.json +1 -2
|
@@ -15,7 +15,7 @@ const serializeAws_restJson1CreateReplicationSetCommand = async (input, context)
|
|
|
15
15
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createReplicationSet";
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
18
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
19
19
|
...(input.regions !== undefined &&
|
|
20
20
|
input.regions !== null && { regions: serializeAws_restJson1RegionMapInput(input.regions, context) }),
|
|
21
21
|
});
|
|
@@ -43,7 +43,7 @@ const serializeAws_restJson1CreateResponsePlanCommand = async (input, context) =
|
|
|
43
43
|
input.actions !== null && { actions: serializeAws_restJson1ActionsList(input.actions, context) }),
|
|
44
44
|
...(input.chatChannel !== undefined &&
|
|
45
45
|
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
46
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
46
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
47
47
|
...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
|
|
48
48
|
...(input.engagements !== undefined &&
|
|
49
49
|
input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) }),
|
|
@@ -74,7 +74,7 @@ const serializeAws_restJson1CreateTimelineEventCommand = async (input, context)
|
|
|
74
74
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/createTimelineEvent";
|
|
75
75
|
let body;
|
|
76
76
|
body = JSON.stringify({
|
|
77
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
77
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
78
78
|
...(input.eventData !== undefined && input.eventData !== null && { eventData: input.eventData }),
|
|
79
79
|
...(input.eventTime !== undefined &&
|
|
80
80
|
input.eventTime !== null && { eventTime: Math.round(input.eventTime.getTime() / 1000) }),
|
|
@@ -408,7 +408,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
408
408
|
if (labelValue.length <= 0) {
|
|
409
409
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
410
410
|
}
|
|
411
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
411
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
412
412
|
}
|
|
413
413
|
else {
|
|
414
414
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -484,7 +484,7 @@ const serializeAws_restJson1StartIncidentCommand = async (input, context) => {
|
|
|
484
484
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/startIncident";
|
|
485
485
|
let body;
|
|
486
486
|
body = JSON.stringify({
|
|
487
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
487
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
488
488
|
...(input.impact !== undefined && input.impact !== null && { impact: input.impact }),
|
|
489
489
|
...(input.relatedItems !== undefined &&
|
|
490
490
|
input.relatedItems !== null && {
|
|
@@ -520,7 +520,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
520
520
|
if (labelValue.length <= 0) {
|
|
521
521
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
522
522
|
}
|
|
523
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
523
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
524
524
|
}
|
|
525
525
|
else {
|
|
526
526
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -549,7 +549,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
549
549
|
if (labelValue.length <= 0) {
|
|
550
550
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
551
551
|
}
|
|
552
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
552
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
553
553
|
}
|
|
554
554
|
else {
|
|
555
555
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -580,7 +580,7 @@ const serializeAws_restJson1UpdateDeletionProtectionCommand = async (input, cont
|
|
|
580
580
|
let body;
|
|
581
581
|
body = JSON.stringify({
|
|
582
582
|
...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
|
|
583
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
583
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
584
584
|
...(input.deletionProtected !== undefined &&
|
|
585
585
|
input.deletionProtected !== null && { deletionProtected: input.deletionProtected }),
|
|
586
586
|
});
|
|
@@ -607,7 +607,7 @@ const serializeAws_restJson1UpdateIncidentRecordCommand = async (input, context)
|
|
|
607
607
|
...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
|
|
608
608
|
...(input.chatChannel !== undefined &&
|
|
609
609
|
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
610
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
610
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
611
611
|
...(input.impact !== undefined && input.impact !== null && { impact: input.impact }),
|
|
612
612
|
...(input.notificationTargets !== undefined &&
|
|
613
613
|
input.notificationTargets !== null && {
|
|
@@ -637,7 +637,7 @@ const serializeAws_restJson1UpdateRelatedItemsCommand = async (input, context) =
|
|
|
637
637
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateRelatedItems";
|
|
638
638
|
let body;
|
|
639
639
|
body = JSON.stringify({
|
|
640
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
640
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
641
641
|
...(input.incidentRecordArn !== undefined &&
|
|
642
642
|
input.incidentRecordArn !== null && { incidentRecordArn: input.incidentRecordArn }),
|
|
643
643
|
...(input.relatedItemsUpdate !== undefined &&
|
|
@@ -668,7 +668,7 @@ const serializeAws_restJson1UpdateReplicationSetCommand = async (input, context)
|
|
|
668
668
|
...(input.actions !== undefined &&
|
|
669
669
|
input.actions !== null && { actions: serializeAws_restJson1UpdateActionList(input.actions, context) }),
|
|
670
670
|
...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
|
|
671
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
671
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
672
672
|
});
|
|
673
673
|
return new protocol_http_1.HttpRequest({
|
|
674
674
|
protocol,
|
|
@@ -695,7 +695,7 @@ const serializeAws_restJson1UpdateResponsePlanCommand = async (input, context) =
|
|
|
695
695
|
...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
|
|
696
696
|
...(input.chatChannel !== undefined &&
|
|
697
697
|
input.chatChannel !== null && { chatChannel: serializeAws_restJson1ChatChannel(input.chatChannel, context) }),
|
|
698
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
698
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
699
699
|
...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
|
|
700
700
|
...(input.engagements !== undefined &&
|
|
701
701
|
input.engagements !== null && { engagements: serializeAws_restJson1EngagementSet(input.engagements, context) }),
|
|
@@ -734,7 +734,7 @@ const serializeAws_restJson1UpdateTimelineEventCommand = async (input, context)
|
|
|
734
734
|
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateTimelineEvent";
|
|
735
735
|
let body;
|
|
736
736
|
body = JSON.stringify({
|
|
737
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
737
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
738
738
|
...(input.eventData !== undefined && input.eventData !== null && { eventData: input.eventData }),
|
|
739
739
|
...(input.eventId !== undefined && input.eventId !== null && { eventId: input.eventId }),
|
|
740
740
|
...(input.eventTime !== undefined &&
|
|
@@ -762,9 +762,9 @@ const deserializeAws_restJson1CreateReplicationSetCommand = async (output, conte
|
|
|
762
762
|
$metadata: deserializeMetadata(output),
|
|
763
763
|
arn: undefined,
|
|
764
764
|
};
|
|
765
|
-
const data =
|
|
765
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
766
766
|
if (data.arn !== undefined && data.arn !== null) {
|
|
767
|
-
contents.arn =
|
|
767
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
768
768
|
}
|
|
769
769
|
return Promise.resolve(contents);
|
|
770
770
|
};
|
|
@@ -850,9 +850,9 @@ const deserializeAws_restJson1CreateResponsePlanCommand = async (output, context
|
|
|
850
850
|
$metadata: deserializeMetadata(output),
|
|
851
851
|
arn: undefined,
|
|
852
852
|
};
|
|
853
|
-
const data =
|
|
853
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
854
854
|
if (data.arn !== undefined && data.arn !== null) {
|
|
855
|
-
contents.arn =
|
|
855
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
856
856
|
}
|
|
857
857
|
return Promise.resolve(contents);
|
|
858
858
|
};
|
|
@@ -939,12 +939,12 @@ const deserializeAws_restJson1CreateTimelineEventCommand = async (output, contex
|
|
|
939
939
|
eventId: undefined,
|
|
940
940
|
incidentRecordArn: undefined,
|
|
941
941
|
};
|
|
942
|
-
const data =
|
|
942
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
943
943
|
if (data.eventId !== undefined && data.eventId !== null) {
|
|
944
|
-
contents.eventId =
|
|
944
|
+
contents.eventId = smithy_client_1.expectString(data.eventId);
|
|
945
945
|
}
|
|
946
946
|
if (data.incidentRecordArn !== undefined && data.incidentRecordArn !== null) {
|
|
947
|
-
contents.incidentRecordArn =
|
|
947
|
+
contents.incidentRecordArn = smithy_client_1.expectString(data.incidentRecordArn);
|
|
948
948
|
}
|
|
949
949
|
return Promise.resolve(contents);
|
|
950
950
|
};
|
|
@@ -1386,7 +1386,7 @@ const deserializeAws_restJson1GetIncidentRecordCommand = async (output, context)
|
|
|
1386
1386
|
$metadata: deserializeMetadata(output),
|
|
1387
1387
|
incidentRecord: undefined,
|
|
1388
1388
|
};
|
|
1389
|
-
const data =
|
|
1389
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1390
1390
|
if (data.incidentRecord !== undefined && data.incidentRecord !== null) {
|
|
1391
1391
|
contents.incidentRecord = deserializeAws_restJson1IncidentRecord(data.incidentRecord, context);
|
|
1392
1392
|
}
|
|
@@ -1466,7 +1466,7 @@ const deserializeAws_restJson1GetReplicationSetCommand = async (output, context)
|
|
|
1466
1466
|
$metadata: deserializeMetadata(output),
|
|
1467
1467
|
replicationSet: undefined,
|
|
1468
1468
|
};
|
|
1469
|
-
const data =
|
|
1469
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1470
1470
|
if (data.replicationSet !== undefined && data.replicationSet !== null) {
|
|
1471
1471
|
contents.replicationSet = deserializeAws_restJson1ReplicationSet(data.replicationSet, context);
|
|
1472
1472
|
}
|
|
@@ -1547,9 +1547,9 @@ const deserializeAws_restJson1GetResourcePoliciesCommand = async (output, contex
|
|
|
1547
1547
|
nextToken: undefined,
|
|
1548
1548
|
resourcePolicies: undefined,
|
|
1549
1549
|
};
|
|
1550
|
-
const data =
|
|
1550
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1551
1551
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1552
|
-
contents.nextToken =
|
|
1552
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1553
1553
|
}
|
|
1554
1554
|
if (data.resourcePolicies !== undefined && data.resourcePolicies !== null) {
|
|
1555
1555
|
contents.resourcePolicies = deserializeAws_restJson1ResourcePolicyList(data.resourcePolicies, context);
|
|
@@ -1636,18 +1636,18 @@ const deserializeAws_restJson1GetResponsePlanCommand = async (output, context) =
|
|
|
1636
1636
|
incidentTemplate: undefined,
|
|
1637
1637
|
name: undefined,
|
|
1638
1638
|
};
|
|
1639
|
-
const data =
|
|
1639
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1640
1640
|
if (data.actions !== undefined && data.actions !== null) {
|
|
1641
1641
|
contents.actions = deserializeAws_restJson1ActionsList(data.actions, context);
|
|
1642
1642
|
}
|
|
1643
1643
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1644
|
-
contents.arn =
|
|
1644
|
+
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1645
1645
|
}
|
|
1646
1646
|
if (data.chatChannel !== undefined && data.chatChannel !== null) {
|
|
1647
|
-
contents.chatChannel = deserializeAws_restJson1ChatChannel(
|
|
1647
|
+
contents.chatChannel = deserializeAws_restJson1ChatChannel(smithy_client_1.expectUnion(data.chatChannel), context);
|
|
1648
1648
|
}
|
|
1649
1649
|
if (data.displayName !== undefined && data.displayName !== null) {
|
|
1650
|
-
contents.displayName =
|
|
1650
|
+
contents.displayName = smithy_client_1.expectString(data.displayName);
|
|
1651
1651
|
}
|
|
1652
1652
|
if (data.engagements !== undefined && data.engagements !== null) {
|
|
1653
1653
|
contents.engagements = deserializeAws_restJson1EngagementSet(data.engagements, context);
|
|
@@ -1656,7 +1656,7 @@ const deserializeAws_restJson1GetResponsePlanCommand = async (output, context) =
|
|
|
1656
1656
|
contents.incidentTemplate = deserializeAws_restJson1IncidentTemplate(data.incidentTemplate, context);
|
|
1657
1657
|
}
|
|
1658
1658
|
if (data.name !== undefined && data.name !== null) {
|
|
1659
|
-
contents.name =
|
|
1659
|
+
contents.name = smithy_client_1.expectString(data.name);
|
|
1660
1660
|
}
|
|
1661
1661
|
return Promise.resolve(contents);
|
|
1662
1662
|
};
|
|
@@ -1734,7 +1734,7 @@ const deserializeAws_restJson1GetTimelineEventCommand = async (output, context)
|
|
|
1734
1734
|
$metadata: deserializeMetadata(output),
|
|
1735
1735
|
event: undefined,
|
|
1736
1736
|
};
|
|
1737
|
-
const data =
|
|
1737
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1738
1738
|
if (data.event !== undefined && data.event !== null) {
|
|
1739
1739
|
contents.event = deserializeAws_restJson1TimelineEvent(data.event, context);
|
|
1740
1740
|
}
|
|
@@ -1815,12 +1815,12 @@ const deserializeAws_restJson1ListIncidentRecordsCommand = async (output, contex
|
|
|
1815
1815
|
incidentRecordSummaries: undefined,
|
|
1816
1816
|
nextToken: undefined,
|
|
1817
1817
|
};
|
|
1818
|
-
const data =
|
|
1818
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1819
1819
|
if (data.incidentRecordSummaries !== undefined && data.incidentRecordSummaries !== null) {
|
|
1820
1820
|
contents.incidentRecordSummaries = deserializeAws_restJson1IncidentRecordSummaryList(data.incidentRecordSummaries, context);
|
|
1821
1821
|
}
|
|
1822
1822
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1823
|
-
contents.nextToken =
|
|
1823
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1824
1824
|
}
|
|
1825
1825
|
return Promise.resolve(contents);
|
|
1826
1826
|
};
|
|
@@ -1891,9 +1891,9 @@ const deserializeAws_restJson1ListRelatedItemsCommand = async (output, context)
|
|
|
1891
1891
|
nextToken: undefined,
|
|
1892
1892
|
relatedItems: undefined,
|
|
1893
1893
|
};
|
|
1894
|
-
const data =
|
|
1894
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1895
1895
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1896
|
-
contents.nextToken =
|
|
1896
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1897
1897
|
}
|
|
1898
1898
|
if (data.relatedItems !== undefined && data.relatedItems !== null) {
|
|
1899
1899
|
contents.relatedItems = deserializeAws_restJson1RelatedItemList(data.relatedItems, context);
|
|
@@ -1967,9 +1967,9 @@ const deserializeAws_restJson1ListReplicationSetsCommand = async (output, contex
|
|
|
1967
1967
|
nextToken: undefined,
|
|
1968
1968
|
replicationSetArns: undefined,
|
|
1969
1969
|
};
|
|
1970
|
-
const data =
|
|
1970
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1971
1971
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1972
|
-
contents.nextToken =
|
|
1972
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1973
1973
|
}
|
|
1974
1974
|
if (data.replicationSetArns !== undefined && data.replicationSetArns !== null) {
|
|
1975
1975
|
contents.replicationSetArns = deserializeAws_restJson1ReplicationSetArnList(data.replicationSetArns, context);
|
|
@@ -2043,9 +2043,9 @@ const deserializeAws_restJson1ListResponsePlansCommand = async (output, context)
|
|
|
2043
2043
|
nextToken: undefined,
|
|
2044
2044
|
responsePlanSummaries: undefined,
|
|
2045
2045
|
};
|
|
2046
|
-
const data =
|
|
2046
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2047
2047
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2048
|
-
contents.nextToken =
|
|
2048
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2049
2049
|
}
|
|
2050
2050
|
if (data.responsePlanSummaries !== undefined && data.responsePlanSummaries !== null) {
|
|
2051
2051
|
contents.responsePlanSummaries = deserializeAws_restJson1ResponsePlanSummaryList(data.responsePlanSummaries, context);
|
|
@@ -2118,7 +2118,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
2118
2118
|
$metadata: deserializeMetadata(output),
|
|
2119
2119
|
tags: undefined,
|
|
2120
2120
|
};
|
|
2121
|
-
const data =
|
|
2121
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2122
2122
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2123
2123
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
2124
2124
|
}
|
|
@@ -2199,12 +2199,12 @@ const deserializeAws_restJson1ListTimelineEventsCommand = async (output, context
|
|
|
2199
2199
|
eventSummaries: undefined,
|
|
2200
2200
|
nextToken: undefined,
|
|
2201
2201
|
};
|
|
2202
|
-
const data =
|
|
2202
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2203
2203
|
if (data.eventSummaries !== undefined && data.eventSummaries !== null) {
|
|
2204
2204
|
contents.eventSummaries = deserializeAws_restJson1EventSummaryList(data.eventSummaries, context);
|
|
2205
2205
|
}
|
|
2206
2206
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
2207
|
-
contents.nextToken =
|
|
2207
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
2208
2208
|
}
|
|
2209
2209
|
return Promise.resolve(contents);
|
|
2210
2210
|
};
|
|
@@ -2274,9 +2274,9 @@ const deserializeAws_restJson1PutResourcePolicyCommand = async (output, context)
|
|
|
2274
2274
|
$metadata: deserializeMetadata(output),
|
|
2275
2275
|
policyId: undefined,
|
|
2276
2276
|
};
|
|
2277
|
-
const data =
|
|
2277
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2278
2278
|
if (data.policyId !== undefined && data.policyId !== null) {
|
|
2279
|
-
contents.policyId =
|
|
2279
|
+
contents.policyId = smithy_client_1.expectString(data.policyId);
|
|
2280
2280
|
}
|
|
2281
2281
|
return Promise.resolve(contents);
|
|
2282
2282
|
};
|
|
@@ -2354,9 +2354,9 @@ const deserializeAws_restJson1StartIncidentCommand = async (output, context) =>
|
|
|
2354
2354
|
$metadata: deserializeMetadata(output),
|
|
2355
2355
|
incidentRecordArn: undefined,
|
|
2356
2356
|
};
|
|
2357
|
-
const data =
|
|
2357
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2358
2358
|
if (data.incidentRecordArn !== undefined && data.incidentRecordArn !== null) {
|
|
2359
|
-
contents.incidentRecordArn =
|
|
2359
|
+
contents.incidentRecordArn = smithy_client_1.expectString(data.incidentRecordArn);
|
|
2360
2360
|
}
|
|
2361
2361
|
return Promise.resolve(contents);
|
|
2362
2362
|
};
|
|
@@ -3107,7 +3107,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3107
3107
|
};
|
|
3108
3108
|
const data = parsedOutput.body;
|
|
3109
3109
|
if (data.message !== undefined && data.message !== null) {
|
|
3110
|
-
contents.message =
|
|
3110
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3111
3111
|
}
|
|
3112
3112
|
return contents;
|
|
3113
3113
|
};
|
|
@@ -3122,13 +3122,13 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3122
3122
|
};
|
|
3123
3123
|
const data = parsedOutput.body;
|
|
3124
3124
|
if (data.message !== undefined && data.message !== null) {
|
|
3125
|
-
contents.message =
|
|
3125
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3126
3126
|
}
|
|
3127
3127
|
if (data.resourceIdentifier !== undefined && data.resourceIdentifier !== null) {
|
|
3128
|
-
contents.resourceIdentifier =
|
|
3128
|
+
contents.resourceIdentifier = smithy_client_1.expectString(data.resourceIdentifier);
|
|
3129
3129
|
}
|
|
3130
3130
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3131
|
-
contents.resourceType =
|
|
3131
|
+
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3132
3132
|
}
|
|
3133
3133
|
return contents;
|
|
3134
3134
|
};
|
|
@@ -3141,7 +3141,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3141
3141
|
};
|
|
3142
3142
|
const data = parsedOutput.body;
|
|
3143
3143
|
if (data.message !== undefined && data.message !== null) {
|
|
3144
|
-
contents.message =
|
|
3144
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3145
3145
|
}
|
|
3146
3146
|
return contents;
|
|
3147
3147
|
};
|
|
@@ -3156,13 +3156,13 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3156
3156
|
};
|
|
3157
3157
|
const data = parsedOutput.body;
|
|
3158
3158
|
if (data.message !== undefined && data.message !== null) {
|
|
3159
|
-
contents.message =
|
|
3159
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3160
3160
|
}
|
|
3161
3161
|
if (data.resourceIdentifier !== undefined && data.resourceIdentifier !== null) {
|
|
3162
|
-
contents.resourceIdentifier =
|
|
3162
|
+
contents.resourceIdentifier = smithy_client_1.expectString(data.resourceIdentifier);
|
|
3163
3163
|
}
|
|
3164
3164
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3165
|
-
contents.resourceType =
|
|
3165
|
+
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3166
3166
|
}
|
|
3167
3167
|
return contents;
|
|
3168
3168
|
};
|
|
@@ -3179,19 +3179,19 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3179
3179
|
};
|
|
3180
3180
|
const data = parsedOutput.body;
|
|
3181
3181
|
if (data.message !== undefined && data.message !== null) {
|
|
3182
|
-
contents.message =
|
|
3182
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3183
3183
|
}
|
|
3184
3184
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
3185
|
-
contents.quotaCode =
|
|
3185
|
+
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
3186
3186
|
}
|
|
3187
3187
|
if (data.resourceIdentifier !== undefined && data.resourceIdentifier !== null) {
|
|
3188
|
-
contents.resourceIdentifier =
|
|
3188
|
+
contents.resourceIdentifier = smithy_client_1.expectString(data.resourceIdentifier);
|
|
3189
3189
|
}
|
|
3190
3190
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
3191
|
-
contents.resourceType =
|
|
3191
|
+
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
3192
3192
|
}
|
|
3193
3193
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
3194
|
-
contents.serviceCode =
|
|
3194
|
+
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
3195
3195
|
}
|
|
3196
3196
|
return contents;
|
|
3197
3197
|
};
|
|
@@ -3206,13 +3206,13 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3206
3206
|
};
|
|
3207
3207
|
const data = parsedOutput.body;
|
|
3208
3208
|
if (data.message !== undefined && data.message !== null) {
|
|
3209
|
-
contents.message =
|
|
3209
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3210
3210
|
}
|
|
3211
3211
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
3212
|
-
contents.quotaCode =
|
|
3212
|
+
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
3213
3213
|
}
|
|
3214
3214
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
3215
|
-
contents.serviceCode =
|
|
3215
|
+
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
3216
3216
|
}
|
|
3217
3217
|
return contents;
|
|
3218
3218
|
};
|
|
@@ -3225,7 +3225,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
3225
3225
|
};
|
|
3226
3226
|
const data = parsedOutput.body;
|
|
3227
3227
|
if (data.message !== undefined && data.message !== null) {
|
|
3228
|
-
contents.message =
|
|
3228
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
3229
3229
|
}
|
|
3230
3230
|
return contents;
|
|
3231
3231
|
};
|
|
@@ -3505,12 +3505,12 @@ const deserializeAws_restJson1ActionsList = (output, context) => {
|
|
|
3505
3505
|
if (entry === null) {
|
|
3506
3506
|
return null;
|
|
3507
3507
|
}
|
|
3508
|
-
return deserializeAws_restJson1Action(
|
|
3508
|
+
return deserializeAws_restJson1Action(smithy_client_1.expectUnion(entry), context);
|
|
3509
3509
|
});
|
|
3510
3510
|
};
|
|
3511
3511
|
const deserializeAws_restJson1AutomationExecution = (output, context) => {
|
|
3512
|
-
if (
|
|
3513
|
-
return { ssmExecutionArn:
|
|
3512
|
+
if (smithy_client_1.expectString(output.ssmExecutionArn) !== undefined) {
|
|
3513
|
+
return { ssmExecutionArn: smithy_client_1.expectString(output.ssmExecutionArn) };
|
|
3514
3514
|
}
|
|
3515
3515
|
return { $unknown: Object.entries(output)[0] };
|
|
3516
3516
|
};
|
|
@@ -3522,7 +3522,7 @@ const deserializeAws_restJson1AutomationExecutionSet = (output, context) => {
|
|
|
3522
3522
|
if (entry === null) {
|
|
3523
3523
|
return null;
|
|
3524
3524
|
}
|
|
3525
|
-
const parsedEntry = deserializeAws_restJson1AutomationExecution(
|
|
3525
|
+
const parsedEntry = deserializeAws_restJson1AutomationExecution(smithy_client_1.expectUnion(entry), context);
|
|
3526
3526
|
if (uniqueValues.has(parsedEntry)) {
|
|
3527
3527
|
throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#AutomationExecutionSet" must be unique.');
|
|
3528
3528
|
}
|
|
@@ -3540,7 +3540,7 @@ const deserializeAws_restJson1ChatbotSnsConfigurationSet = (output, context) =>
|
|
|
3540
3540
|
if (entry === null) {
|
|
3541
3541
|
return null;
|
|
3542
3542
|
}
|
|
3543
|
-
const parsedEntry =
|
|
3543
|
+
const parsedEntry = smithy_client_1.expectString(entry);
|
|
3544
3544
|
if (uniqueValues.has(parsedEntry)) {
|
|
3545
3545
|
throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#ChatbotSnsConfigurationSet" must be unique.');
|
|
3546
3546
|
}
|
|
@@ -3574,7 +3574,7 @@ const deserializeAws_restJson1EngagementSet = (output, context) => {
|
|
|
3574
3574
|
if (entry === null) {
|
|
3575
3575
|
return null;
|
|
3576
3576
|
}
|
|
3577
|
-
const parsedEntry =
|
|
3577
|
+
const parsedEntry = smithy_client_1.expectString(entry);
|
|
3578
3578
|
if (uniqueValues.has(parsedEntry)) {
|
|
3579
3579
|
throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#EngagementSet" must be unique.');
|
|
3580
3580
|
}
|
|
@@ -3586,15 +3586,15 @@ const deserializeAws_restJson1EngagementSet = (output, context) => {
|
|
|
3586
3586
|
};
|
|
3587
3587
|
const deserializeAws_restJson1EventSummary = (output, context) => {
|
|
3588
3588
|
return {
|
|
3589
|
-
eventId:
|
|
3589
|
+
eventId: smithy_client_1.expectString(output.eventId),
|
|
3590
3590
|
eventTime: output.eventTime !== undefined && output.eventTime !== null
|
|
3591
|
-
?
|
|
3591
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventTime)))
|
|
3592
3592
|
: undefined,
|
|
3593
|
-
eventType:
|
|
3593
|
+
eventType: smithy_client_1.expectString(output.eventType),
|
|
3594
3594
|
eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
|
|
3595
|
-
?
|
|
3595
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventUpdatedTime)))
|
|
3596
3596
|
: undefined,
|
|
3597
|
-
incidentRecordArn:
|
|
3597
|
+
incidentRecordArn: smithy_client_1.expectString(output.incidentRecordArn),
|
|
3598
3598
|
};
|
|
3599
3599
|
};
|
|
3600
3600
|
const deserializeAws_restJson1EventSummaryList = (output, context) => {
|
|
@@ -3609,59 +3609,59 @@ const deserializeAws_restJson1EventSummaryList = (output, context) => {
|
|
|
3609
3609
|
};
|
|
3610
3610
|
const deserializeAws_restJson1IncidentRecord = (output, context) => {
|
|
3611
3611
|
return {
|
|
3612
|
-
arn:
|
|
3612
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
3613
3613
|
automationExecutions: output.automationExecutions !== undefined && output.automationExecutions !== null
|
|
3614
3614
|
? deserializeAws_restJson1AutomationExecutionSet(output.automationExecutions, context)
|
|
3615
3615
|
: undefined,
|
|
3616
3616
|
chatChannel: output.chatChannel !== undefined && output.chatChannel !== null
|
|
3617
|
-
? deserializeAws_restJson1ChatChannel(
|
|
3617
|
+
? deserializeAws_restJson1ChatChannel(smithy_client_1.expectUnion(output.chatChannel), context)
|
|
3618
3618
|
: undefined,
|
|
3619
3619
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
3620
|
-
?
|
|
3620
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
3621
3621
|
: undefined,
|
|
3622
|
-
dedupeString:
|
|
3623
|
-
impact:
|
|
3622
|
+
dedupeString: smithy_client_1.expectString(output.dedupeString),
|
|
3623
|
+
impact: smithy_client_1.expectInt32(output.impact),
|
|
3624
3624
|
incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
|
|
3625
3625
|
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
3626
3626
|
: undefined,
|
|
3627
|
-
lastModifiedBy:
|
|
3627
|
+
lastModifiedBy: smithy_client_1.expectString(output.lastModifiedBy),
|
|
3628
3628
|
lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
|
|
3629
|
-
?
|
|
3629
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastModifiedTime)))
|
|
3630
3630
|
: undefined,
|
|
3631
3631
|
notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
|
|
3632
3632
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
3633
3633
|
: undefined,
|
|
3634
3634
|
resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
|
|
3635
|
-
?
|
|
3635
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.resolvedTime)))
|
|
3636
3636
|
: undefined,
|
|
3637
|
-
status:
|
|
3638
|
-
summary:
|
|
3639
|
-
title:
|
|
3637
|
+
status: smithy_client_1.expectString(output.status),
|
|
3638
|
+
summary: smithy_client_1.expectString(output.summary),
|
|
3639
|
+
title: smithy_client_1.expectString(output.title),
|
|
3640
3640
|
};
|
|
3641
3641
|
};
|
|
3642
3642
|
const deserializeAws_restJson1IncidentRecordSource = (output, context) => {
|
|
3643
3643
|
return {
|
|
3644
|
-
createdBy:
|
|
3645
|
-
invokedBy:
|
|
3646
|
-
resourceArn:
|
|
3647
|
-
source:
|
|
3644
|
+
createdBy: smithy_client_1.expectString(output.createdBy),
|
|
3645
|
+
invokedBy: smithy_client_1.expectString(output.invokedBy),
|
|
3646
|
+
resourceArn: smithy_client_1.expectString(output.resourceArn),
|
|
3647
|
+
source: smithy_client_1.expectString(output.source),
|
|
3648
3648
|
};
|
|
3649
3649
|
};
|
|
3650
3650
|
const deserializeAws_restJson1IncidentRecordSummary = (output, context) => {
|
|
3651
3651
|
return {
|
|
3652
|
-
arn:
|
|
3652
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
3653
3653
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
3654
|
-
?
|
|
3654
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
3655
3655
|
: undefined,
|
|
3656
|
-
impact:
|
|
3656
|
+
impact: smithy_client_1.expectInt32(output.impact),
|
|
3657
3657
|
incidentRecordSource: output.incidentRecordSource !== undefined && output.incidentRecordSource !== null
|
|
3658
3658
|
? deserializeAws_restJson1IncidentRecordSource(output.incidentRecordSource, context)
|
|
3659
3659
|
: undefined,
|
|
3660
3660
|
resolvedTime: output.resolvedTime !== undefined && output.resolvedTime !== null
|
|
3661
|
-
?
|
|
3661
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.resolvedTime)))
|
|
3662
3662
|
: undefined,
|
|
3663
|
-
status:
|
|
3664
|
-
title:
|
|
3663
|
+
status: smithy_client_1.expectString(output.status),
|
|
3664
|
+
title: smithy_client_1.expectString(output.title),
|
|
3665
3665
|
};
|
|
3666
3666
|
};
|
|
3667
3667
|
const deserializeAws_restJson1IncidentRecordSummaryList = (output, context) => {
|
|
@@ -3676,38 +3676,38 @@ const deserializeAws_restJson1IncidentRecordSummaryList = (output, context) => {
|
|
|
3676
3676
|
};
|
|
3677
3677
|
const deserializeAws_restJson1IncidentTemplate = (output, context) => {
|
|
3678
3678
|
return {
|
|
3679
|
-
dedupeString:
|
|
3680
|
-
impact:
|
|
3679
|
+
dedupeString: smithy_client_1.expectString(output.dedupeString),
|
|
3680
|
+
impact: smithy_client_1.expectInt32(output.impact),
|
|
3681
3681
|
notificationTargets: output.notificationTargets !== undefined && output.notificationTargets !== null
|
|
3682
3682
|
? deserializeAws_restJson1NotificationTargetSet(output.notificationTargets, context)
|
|
3683
3683
|
: undefined,
|
|
3684
|
-
summary:
|
|
3685
|
-
title:
|
|
3684
|
+
summary: smithy_client_1.expectString(output.summary),
|
|
3685
|
+
title: smithy_client_1.expectString(output.title),
|
|
3686
3686
|
};
|
|
3687
3687
|
};
|
|
3688
3688
|
const deserializeAws_restJson1ItemIdentifier = (output, context) => {
|
|
3689
3689
|
return {
|
|
3690
|
-
type:
|
|
3690
|
+
type: smithy_client_1.expectString(output.type),
|
|
3691
3691
|
value: output.value !== undefined && output.value !== null
|
|
3692
|
-
? deserializeAws_restJson1ItemValue(
|
|
3692
|
+
? deserializeAws_restJson1ItemValue(smithy_client_1.expectUnion(output.value), context)
|
|
3693
3693
|
: undefined,
|
|
3694
3694
|
};
|
|
3695
3695
|
};
|
|
3696
3696
|
const deserializeAws_restJson1ItemValue = (output, context) => {
|
|
3697
|
-
if (
|
|
3698
|
-
return { arn:
|
|
3697
|
+
if (smithy_client_1.expectString(output.arn) !== undefined) {
|
|
3698
|
+
return { arn: smithy_client_1.expectString(output.arn) };
|
|
3699
3699
|
}
|
|
3700
|
-
if (
|
|
3701
|
-
return { metricDefinition:
|
|
3700
|
+
if (smithy_client_1.expectString(output.metricDefinition) !== undefined) {
|
|
3701
|
+
return { metricDefinition: smithy_client_1.expectString(output.metricDefinition) };
|
|
3702
3702
|
}
|
|
3703
|
-
if (
|
|
3704
|
-
return { url:
|
|
3703
|
+
if (smithy_client_1.expectString(output.url) !== undefined) {
|
|
3704
|
+
return { url: smithy_client_1.expectString(output.url) };
|
|
3705
3705
|
}
|
|
3706
3706
|
return { $unknown: Object.entries(output)[0] };
|
|
3707
3707
|
};
|
|
3708
3708
|
const deserializeAws_restJson1NotificationTargetItem = (output, context) => {
|
|
3709
|
-
if (
|
|
3710
|
-
return { snsTopicArn:
|
|
3709
|
+
if (smithy_client_1.expectString(output.snsTopicArn) !== undefined) {
|
|
3710
|
+
return { snsTopicArn: smithy_client_1.expectString(output.snsTopicArn) };
|
|
3711
3711
|
}
|
|
3712
3712
|
return { $unknown: Object.entries(output)[0] };
|
|
3713
3713
|
};
|
|
@@ -3719,7 +3719,7 @@ const deserializeAws_restJson1NotificationTargetSet = (output, context) => {
|
|
|
3719
3719
|
if (entry === null) {
|
|
3720
3720
|
return null;
|
|
3721
3721
|
}
|
|
3722
|
-
const parsedEntry = deserializeAws_restJson1NotificationTargetItem(
|
|
3722
|
+
const parsedEntry = deserializeAws_restJson1NotificationTargetItem(smithy_client_1.expectUnion(entry), context);
|
|
3723
3723
|
if (uniqueValues.has(parsedEntry)) {
|
|
3724
3724
|
throw new TypeError('All elements of the set "com.amazonaws.ssmincidents#NotificationTargetSet" must be unique.');
|
|
3725
3725
|
}
|
|
@@ -3731,11 +3731,11 @@ const deserializeAws_restJson1NotificationTargetSet = (output, context) => {
|
|
|
3731
3731
|
};
|
|
3732
3732
|
const deserializeAws_restJson1RegionInfo = (output, context) => {
|
|
3733
3733
|
return {
|
|
3734
|
-
sseKmsKeyId:
|
|
3735
|
-
status:
|
|
3736
|
-
statusMessage:
|
|
3734
|
+
sseKmsKeyId: smithy_client_1.expectString(output.sseKmsKeyId),
|
|
3735
|
+
status: smithy_client_1.expectString(output.status),
|
|
3736
|
+
statusMessage: smithy_client_1.expectString(output.statusMessage),
|
|
3737
3737
|
statusUpdateDateTime: output.statusUpdateDateTime !== undefined && output.statusUpdateDateTime !== null
|
|
3738
|
-
?
|
|
3738
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.statusUpdateDateTime)))
|
|
3739
3739
|
: undefined,
|
|
3740
3740
|
};
|
|
3741
3741
|
};
|
|
@@ -3755,7 +3755,7 @@ const deserializeAws_restJson1RelatedItem = (output, context) => {
|
|
|
3755
3755
|
identifier: output.identifier !== undefined && output.identifier !== null
|
|
3756
3756
|
? deserializeAws_restJson1ItemIdentifier(output.identifier, context)
|
|
3757
3757
|
: undefined,
|
|
3758
|
-
title:
|
|
3758
|
+
title: smithy_client_1.expectString(output.title),
|
|
3759
3759
|
};
|
|
3760
3760
|
};
|
|
3761
3761
|
const deserializeAws_restJson1RelatedItemList = (output, context) => {
|
|
@@ -3770,20 +3770,20 @@ const deserializeAws_restJson1RelatedItemList = (output, context) => {
|
|
|
3770
3770
|
};
|
|
3771
3771
|
const deserializeAws_restJson1ReplicationSet = (output, context) => {
|
|
3772
3772
|
return {
|
|
3773
|
-
arn:
|
|
3774
|
-
createdBy:
|
|
3773
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
3774
|
+
createdBy: smithy_client_1.expectString(output.createdBy),
|
|
3775
3775
|
createdTime: output.createdTime !== undefined && output.createdTime !== null
|
|
3776
|
-
?
|
|
3776
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.createdTime)))
|
|
3777
3777
|
: undefined,
|
|
3778
|
-
deletionProtected:
|
|
3779
|
-
lastModifiedBy:
|
|
3778
|
+
deletionProtected: smithy_client_1.expectBoolean(output.deletionProtected),
|
|
3779
|
+
lastModifiedBy: smithy_client_1.expectString(output.lastModifiedBy),
|
|
3780
3780
|
lastModifiedTime: output.lastModifiedTime !== undefined && output.lastModifiedTime !== null
|
|
3781
|
-
?
|
|
3781
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastModifiedTime)))
|
|
3782
3782
|
: undefined,
|
|
3783
3783
|
regionMap: output.regionMap !== undefined && output.regionMap !== null
|
|
3784
3784
|
? deserializeAws_restJson1RegionInfoMap(output.regionMap, context)
|
|
3785
3785
|
: undefined,
|
|
3786
|
-
status:
|
|
3786
|
+
status: smithy_client_1.expectString(output.status),
|
|
3787
3787
|
};
|
|
3788
3788
|
};
|
|
3789
3789
|
const deserializeAws_restJson1ReplicationSetArnList = (output, context) => {
|
|
@@ -3793,14 +3793,14 @@ const deserializeAws_restJson1ReplicationSetArnList = (output, context) => {
|
|
|
3793
3793
|
if (entry === null) {
|
|
3794
3794
|
return null;
|
|
3795
3795
|
}
|
|
3796
|
-
return
|
|
3796
|
+
return smithy_client_1.expectString(entry);
|
|
3797
3797
|
});
|
|
3798
3798
|
};
|
|
3799
3799
|
const deserializeAws_restJson1ResourcePolicy = (output, context) => {
|
|
3800
3800
|
return {
|
|
3801
|
-
policyDocument:
|
|
3802
|
-
policyId:
|
|
3803
|
-
ramResourceShareRegion:
|
|
3801
|
+
policyDocument: smithy_client_1.expectString(output.policyDocument),
|
|
3802
|
+
policyId: smithy_client_1.expectString(output.policyId),
|
|
3803
|
+
ramResourceShareRegion: smithy_client_1.expectString(output.ramResourceShareRegion),
|
|
3804
3804
|
};
|
|
3805
3805
|
};
|
|
3806
3806
|
const deserializeAws_restJson1ResourcePolicyList = (output, context) => {
|
|
@@ -3815,9 +3815,9 @@ const deserializeAws_restJson1ResourcePolicyList = (output, context) => {
|
|
|
3815
3815
|
};
|
|
3816
3816
|
const deserializeAws_restJson1ResponsePlanSummary = (output, context) => {
|
|
3817
3817
|
return {
|
|
3818
|
-
arn:
|
|
3819
|
-
displayName:
|
|
3820
|
-
name:
|
|
3818
|
+
arn: smithy_client_1.expectString(output.arn),
|
|
3819
|
+
displayName: smithy_client_1.expectString(output.displayName),
|
|
3820
|
+
name: smithy_client_1.expectString(output.name),
|
|
3821
3821
|
};
|
|
3822
3822
|
};
|
|
3823
3823
|
const deserializeAws_restJson1ResponsePlanSummaryList = (output, context) => {
|
|
@@ -3832,13 +3832,13 @@ const deserializeAws_restJson1ResponsePlanSummaryList = (output, context) => {
|
|
|
3832
3832
|
};
|
|
3833
3833
|
const deserializeAws_restJson1SsmAutomation = (output, context) => {
|
|
3834
3834
|
return {
|
|
3835
|
-
documentName:
|
|
3836
|
-
documentVersion:
|
|
3835
|
+
documentName: smithy_client_1.expectString(output.documentName),
|
|
3836
|
+
documentVersion: smithy_client_1.expectString(output.documentVersion),
|
|
3837
3837
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
3838
3838
|
? deserializeAws_restJson1SsmParameters(output.parameters, context)
|
|
3839
3839
|
: undefined,
|
|
3840
|
-
roleArn:
|
|
3841
|
-
targetAccount:
|
|
3840
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
3841
|
+
targetAccount: smithy_client_1.expectString(output.targetAccount),
|
|
3842
3842
|
};
|
|
3843
3843
|
};
|
|
3844
3844
|
const deserializeAws_restJson1SsmParameters = (output, context) => {
|
|
@@ -3859,7 +3859,7 @@ const deserializeAws_restJson1SsmParameterValues = (output, context) => {
|
|
|
3859
3859
|
if (entry === null) {
|
|
3860
3860
|
return null;
|
|
3861
3861
|
}
|
|
3862
|
-
return
|
|
3862
|
+
return smithy_client_1.expectString(entry);
|
|
3863
3863
|
});
|
|
3864
3864
|
};
|
|
3865
3865
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -3869,22 +3869,22 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3869
3869
|
}
|
|
3870
3870
|
return {
|
|
3871
3871
|
...acc,
|
|
3872
|
-
[key]:
|
|
3872
|
+
[key]: smithy_client_1.expectString(value),
|
|
3873
3873
|
};
|
|
3874
3874
|
}, {});
|
|
3875
3875
|
};
|
|
3876
3876
|
const deserializeAws_restJson1TimelineEvent = (output, context) => {
|
|
3877
3877
|
return {
|
|
3878
|
-
eventData:
|
|
3879
|
-
eventId:
|
|
3878
|
+
eventData: smithy_client_1.expectString(output.eventData),
|
|
3879
|
+
eventId: smithy_client_1.expectString(output.eventId),
|
|
3880
3880
|
eventTime: output.eventTime !== undefined && output.eventTime !== null
|
|
3881
|
-
?
|
|
3881
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventTime)))
|
|
3882
3882
|
: undefined,
|
|
3883
|
-
eventType:
|
|
3883
|
+
eventType: smithy_client_1.expectString(output.eventType),
|
|
3884
3884
|
eventUpdatedTime: output.eventUpdatedTime !== undefined && output.eventUpdatedTime !== null
|
|
3885
|
-
?
|
|
3885
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.eventUpdatedTime)))
|
|
3886
3886
|
: undefined,
|
|
3887
|
-
incidentRecordArn:
|
|
3887
|
+
incidentRecordArn: smithy_client_1.expectString(output.incidentRecordArn),
|
|
3888
3888
|
};
|
|
3889
3889
|
};
|
|
3890
3890
|
const deserializeMetadata = (output) => {
|