@aws-sdk/client-auditmanager 3.312.0 → 3.316.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/dist-cjs/AuditManager.js +65 -854
- package/dist-cjs/protocols/Aws_restJson1.js +792 -1509
- package/dist-es/AuditManager.js +65 -854
- package/dist-es/protocols/Aws_restJson1.js +708 -1425
- package/dist-types/AuditManager.d.ts +103 -347
- package/dist-types/ts3.4/AuditManager.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AuditManagerServiceException as __BaseException } from "../models/AuditManagerServiceException";
|
|
4
4
|
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_AssociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
|
|
@@ -11,9 +11,9 @@ export const se_AssociateAssessmentReportEvidenceFolderCommand = async (input, c
|
|
|
11
11
|
"/assessments/{assessmentId}/associateToAssessmentReport";
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify({
|
|
15
|
-
|
|
16
|
-
});
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
evidenceFolderId: [],
|
|
16
|
+
}));
|
|
17
17
|
return new __HttpRequest({
|
|
18
18
|
protocol,
|
|
19
19
|
hostname,
|
|
@@ -33,10 +33,10 @@ export const se_BatchAssociateAssessmentReportEvidenceCommand = async (input, co
|
|
|
33
33
|
"/assessments/{assessmentId}/batchAssociateToAssessmentReport";
|
|
34
34
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
35
35
|
let body;
|
|
36
|
-
body = JSON.stringify({
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
});
|
|
36
|
+
body = JSON.stringify(take(input, {
|
|
37
|
+
evidenceFolderId: [],
|
|
38
|
+
evidenceIds: (_) => _json(_),
|
|
39
|
+
}));
|
|
40
40
|
return new __HttpRequest({
|
|
41
41
|
protocol,
|
|
42
42
|
hostname,
|
|
@@ -55,11 +55,9 @@ export const se_BatchCreateDelegationByAssessmentCommand = async (input, context
|
|
|
55
55
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations";
|
|
56
56
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
57
57
|
let body;
|
|
58
|
-
body = JSON.stringify({
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}),
|
|
62
|
-
});
|
|
58
|
+
body = JSON.stringify(take(input, {
|
|
59
|
+
createDelegationRequests: (_) => _json(_),
|
|
60
|
+
}));
|
|
63
61
|
return new __HttpRequest({
|
|
64
62
|
protocol,
|
|
65
63
|
hostname,
|
|
@@ -78,9 +76,9 @@ export const se_BatchDeleteDelegationByAssessmentCommand = async (input, context
|
|
|
78
76
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/delegations";
|
|
79
77
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
80
78
|
let body;
|
|
81
|
-
body = JSON.stringify({
|
|
82
|
-
|
|
83
|
-
});
|
|
79
|
+
body = JSON.stringify(take(input, {
|
|
80
|
+
delegationIds: (_) => _json(_),
|
|
81
|
+
}));
|
|
84
82
|
return new __HttpRequest({
|
|
85
83
|
protocol,
|
|
86
84
|
hostname,
|
|
@@ -100,10 +98,10 @@ export const se_BatchDisassociateAssessmentReportEvidenceCommand = async (input,
|
|
|
100
98
|
"/assessments/{assessmentId}/batchDisassociateFromAssessmentReport";
|
|
101
99
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
102
100
|
let body;
|
|
103
|
-
body = JSON.stringify({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
});
|
|
101
|
+
body = JSON.stringify(take(input, {
|
|
102
|
+
evidenceFolderId: [],
|
|
103
|
+
evidenceIds: (_) => _json(_),
|
|
104
|
+
}));
|
|
107
105
|
return new __HttpRequest({
|
|
108
106
|
protocol,
|
|
109
107
|
hostname,
|
|
@@ -125,9 +123,9 @@ export const se_BatchImportEvidenceToAssessmentControlCommand = async (input, co
|
|
|
125
123
|
resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
126
124
|
resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
127
125
|
let body;
|
|
128
|
-
body = JSON.stringify({
|
|
129
|
-
|
|
130
|
-
});
|
|
126
|
+
body = JSON.stringify(take(input, {
|
|
127
|
+
manualEvidence: (_) => _json(_),
|
|
128
|
+
}));
|
|
131
129
|
return new __HttpRequest({
|
|
132
130
|
protocol,
|
|
133
131
|
hostname,
|
|
@@ -145,17 +143,15 @@ export const se_CreateAssessmentCommand = async (input, context) => {
|
|
|
145
143
|
};
|
|
146
144
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
|
|
147
145
|
let body;
|
|
148
|
-
body = JSON.stringify({
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
158
|
-
});
|
|
146
|
+
body = JSON.stringify(take(input, {
|
|
147
|
+
assessmentReportsDestination: (_) => _json(_),
|
|
148
|
+
description: [],
|
|
149
|
+
frameworkId: [],
|
|
150
|
+
name: [],
|
|
151
|
+
roles: (_) => _json(_),
|
|
152
|
+
scope: (_) => _json(_),
|
|
153
|
+
tags: (_) => _json(_),
|
|
154
|
+
}));
|
|
159
155
|
return new __HttpRequest({
|
|
160
156
|
protocol,
|
|
161
157
|
hostname,
|
|
@@ -173,15 +169,13 @@ export const se_CreateAssessmentFrameworkCommand = async (input, context) => {
|
|
|
173
169
|
};
|
|
174
170
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
|
|
175
171
|
let body;
|
|
176
|
-
body = JSON.stringify({
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
184
|
-
});
|
|
172
|
+
body = JSON.stringify(take(input, {
|
|
173
|
+
complianceType: [],
|
|
174
|
+
controlSets: (_) => _json(_),
|
|
175
|
+
description: [],
|
|
176
|
+
name: [],
|
|
177
|
+
tags: (_) => _json(_),
|
|
178
|
+
}));
|
|
185
179
|
return new __HttpRequest({
|
|
186
180
|
protocol,
|
|
187
181
|
hostname,
|
|
@@ -200,11 +194,11 @@ export const se_CreateAssessmentReportCommand = async (input, context) => {
|
|
|
200
194
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/reports";
|
|
201
195
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
202
196
|
let body;
|
|
203
|
-
body = JSON.stringify({
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
});
|
|
197
|
+
body = JSON.stringify(take(input, {
|
|
198
|
+
description: [],
|
|
199
|
+
name: [],
|
|
200
|
+
queryStatement: [],
|
|
201
|
+
}));
|
|
208
202
|
return new __HttpRequest({
|
|
209
203
|
protocol,
|
|
210
204
|
hostname,
|
|
@@ -222,17 +216,15 @@ export const se_CreateControlCommand = async (input, context) => {
|
|
|
222
216
|
};
|
|
223
217
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
|
|
224
218
|
let body;
|
|
225
|
-
body = JSON.stringify({
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
...(input.testingInformation != null && { testingInformation: input.testingInformation }),
|
|
235
|
-
});
|
|
219
|
+
body = JSON.stringify(take(input, {
|
|
220
|
+
actionPlanInstructions: [],
|
|
221
|
+
actionPlanTitle: [],
|
|
222
|
+
controlMappingSources: (_) => _json(_),
|
|
223
|
+
description: [],
|
|
224
|
+
name: [],
|
|
225
|
+
tags: (_) => _json(_),
|
|
226
|
+
testingInformation: [],
|
|
227
|
+
}));
|
|
236
228
|
return new __HttpRequest({
|
|
237
229
|
protocol,
|
|
238
230
|
hostname,
|
|
@@ -356,9 +348,9 @@ export const se_DeregisterOrganizationAdminAccountCommand = async (input, contex
|
|
|
356
348
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
357
349
|
"/account/deregisterOrganizationAdminAccount";
|
|
358
350
|
let body;
|
|
359
|
-
body = JSON.stringify({
|
|
360
|
-
|
|
361
|
-
});
|
|
351
|
+
body = JSON.stringify(take(input, {
|
|
352
|
+
adminAccountId: [],
|
|
353
|
+
}));
|
|
362
354
|
return new __HttpRequest({
|
|
363
355
|
protocol,
|
|
364
356
|
hostname,
|
|
@@ -378,9 +370,9 @@ export const se_DisassociateAssessmentReportEvidenceFolderCommand = async (input
|
|
|
378
370
|
"/assessments/{assessmentId}/disassociateFromAssessmentReport";
|
|
379
371
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
380
372
|
let body;
|
|
381
|
-
body = JSON.stringify({
|
|
382
|
-
|
|
383
|
-
});
|
|
373
|
+
body = JSON.stringify(take(input, {
|
|
374
|
+
evidenceFolderId: [],
|
|
375
|
+
}));
|
|
384
376
|
return new __HttpRequest({
|
|
385
377
|
protocol,
|
|
386
378
|
hostname,
|
|
@@ -965,10 +957,10 @@ export const se_RegisterAccountCommand = async (input, context) => {
|
|
|
965
957
|
};
|
|
966
958
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerAccount";
|
|
967
959
|
let body;
|
|
968
|
-
body = JSON.stringify({
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
});
|
|
960
|
+
body = JSON.stringify(take(input, {
|
|
961
|
+
delegatedAdminAccount: [],
|
|
962
|
+
kmsKey: [],
|
|
963
|
+
}));
|
|
972
964
|
return new __HttpRequest({
|
|
973
965
|
protocol,
|
|
974
966
|
hostname,
|
|
@@ -986,9 +978,9 @@ export const se_RegisterOrganizationAdminAccountCommand = async (input, context)
|
|
|
986
978
|
};
|
|
987
979
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/account/registerOrganizationAdminAccount";
|
|
988
980
|
let body;
|
|
989
|
-
body = JSON.stringify({
|
|
990
|
-
|
|
991
|
-
});
|
|
981
|
+
body = JSON.stringify(take(input, {
|
|
982
|
+
adminAccountId: [],
|
|
983
|
+
}));
|
|
992
984
|
return new __HttpRequest({
|
|
993
985
|
protocol,
|
|
994
986
|
hostname,
|
|
@@ -1008,11 +1000,11 @@ export const se_StartAssessmentFrameworkShareCommand = async (input, context) =>
|
|
|
1008
1000
|
"/assessmentFrameworks/{frameworkId}/shareRequests";
|
|
1009
1001
|
resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
1010
1002
|
let body;
|
|
1011
|
-
body = JSON.stringify({
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
});
|
|
1003
|
+
body = JSON.stringify(take(input, {
|
|
1004
|
+
comment: [],
|
|
1005
|
+
destinationAccount: [],
|
|
1006
|
+
destinationRegion: [],
|
|
1007
|
+
}));
|
|
1016
1008
|
return new __HttpRequest({
|
|
1017
1009
|
protocol,
|
|
1018
1010
|
hostname,
|
|
@@ -1031,9 +1023,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
1031
1023
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
1032
1024
|
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1033
1025
|
let body;
|
|
1034
|
-
body = JSON.stringify({
|
|
1035
|
-
|
|
1036
|
-
});
|
|
1026
|
+
body = JSON.stringify(take(input, {
|
|
1027
|
+
tags: (_) => _json(_),
|
|
1028
|
+
}));
|
|
1037
1029
|
return new __HttpRequest({
|
|
1038
1030
|
protocol,
|
|
1039
1031
|
hostname,
|
|
@@ -1075,15 +1067,13 @@ export const se_UpdateAssessmentCommand = async (input, context) => {
|
|
|
1075
1067
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}";
|
|
1076
1068
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1077
1069
|
let body;
|
|
1078
|
-
body = JSON.stringify({
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
...(input.scope != null && { scope: se_Scope(input.scope, context) }),
|
|
1086
|
-
});
|
|
1070
|
+
body = JSON.stringify(take(input, {
|
|
1071
|
+
assessmentDescription: [],
|
|
1072
|
+
assessmentName: [],
|
|
1073
|
+
assessmentReportsDestination: (_) => _json(_),
|
|
1074
|
+
roles: (_) => _json(_),
|
|
1075
|
+
scope: (_) => _json(_),
|
|
1076
|
+
}));
|
|
1087
1077
|
return new __HttpRequest({
|
|
1088
1078
|
protocol,
|
|
1089
1079
|
hostname,
|
|
@@ -1105,10 +1095,10 @@ export const se_UpdateAssessmentControlCommand = async (input, context) => {
|
|
|
1105
1095
|
resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
1106
1096
|
resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
1107
1097
|
let body;
|
|
1108
|
-
body = JSON.stringify({
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
});
|
|
1098
|
+
body = JSON.stringify(take(input, {
|
|
1099
|
+
commentBody: [],
|
|
1100
|
+
controlStatus: [],
|
|
1101
|
+
}));
|
|
1112
1102
|
return new __HttpRequest({
|
|
1113
1103
|
protocol,
|
|
1114
1104
|
hostname,
|
|
@@ -1129,10 +1119,10 @@ export const se_UpdateAssessmentControlSetStatusCommand = async (input, context)
|
|
|
1129
1119
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1130
1120
|
resolvedPath = __resolvedPath(resolvedPath, input, "controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
1131
1121
|
let body;
|
|
1132
|
-
body = JSON.stringify({
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
});
|
|
1122
|
+
body = JSON.stringify(take(input, {
|
|
1123
|
+
comment: [],
|
|
1124
|
+
status: [],
|
|
1125
|
+
}));
|
|
1136
1126
|
return new __HttpRequest({
|
|
1137
1127
|
protocol,
|
|
1138
1128
|
hostname,
|
|
@@ -1151,14 +1141,12 @@ export const se_UpdateAssessmentFrameworkCommand = async (input, context) => {
|
|
|
1151
1141
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks/{frameworkId}";
|
|
1152
1142
|
resolvedPath = __resolvedPath(resolvedPath, input, "frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
1153
1143
|
let body;
|
|
1154
|
-
body = JSON.stringify({
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
...(input.name != null && { name: input.name }),
|
|
1161
|
-
});
|
|
1144
|
+
body = JSON.stringify(take(input, {
|
|
1145
|
+
complianceType: [],
|
|
1146
|
+
controlSets: (_) => _json(_),
|
|
1147
|
+
description: [],
|
|
1148
|
+
name: [],
|
|
1149
|
+
}));
|
|
1162
1150
|
return new __HttpRequest({
|
|
1163
1151
|
protocol,
|
|
1164
1152
|
hostname,
|
|
@@ -1178,10 +1166,10 @@ export const se_UpdateAssessmentFrameworkShareCommand = async (input, context) =
|
|
|
1178
1166
|
"/assessmentFrameworkShareRequests/{requestId}";
|
|
1179
1167
|
resolvedPath = __resolvedPath(resolvedPath, input, "requestId", () => input.requestId, "{requestId}", false);
|
|
1180
1168
|
let body;
|
|
1181
|
-
body = JSON.stringify({
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
});
|
|
1169
|
+
body = JSON.stringify(take(input, {
|
|
1170
|
+
action: [],
|
|
1171
|
+
requestType: [],
|
|
1172
|
+
}));
|
|
1185
1173
|
return new __HttpRequest({
|
|
1186
1174
|
protocol,
|
|
1187
1175
|
hostname,
|
|
@@ -1200,9 +1188,9 @@ export const se_UpdateAssessmentStatusCommand = async (input, context) => {
|
|
|
1200
1188
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessments/{assessmentId}/status";
|
|
1201
1189
|
resolvedPath = __resolvedPath(resolvedPath, input, "assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
1202
1190
|
let body;
|
|
1203
|
-
body = JSON.stringify({
|
|
1204
|
-
|
|
1205
|
-
});
|
|
1191
|
+
body = JSON.stringify(take(input, {
|
|
1192
|
+
status: [],
|
|
1193
|
+
}));
|
|
1206
1194
|
return new __HttpRequest({
|
|
1207
1195
|
protocol,
|
|
1208
1196
|
hostname,
|
|
@@ -1221,16 +1209,14 @@ export const se_UpdateControlCommand = async (input, context) => {
|
|
|
1221
1209
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls/{controlId}";
|
|
1222
1210
|
resolvedPath = __resolvedPath(resolvedPath, input, "controlId", () => input.controlId, "{controlId}", false);
|
|
1223
1211
|
let body;
|
|
1224
|
-
body = JSON.stringify({
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
...(input.testingInformation != null && { testingInformation: input.testingInformation }),
|
|
1233
|
-
});
|
|
1212
|
+
body = JSON.stringify(take(input, {
|
|
1213
|
+
actionPlanInstructions: [],
|
|
1214
|
+
actionPlanTitle: [],
|
|
1215
|
+
controlMappingSources: (_) => _json(_),
|
|
1216
|
+
description: [],
|
|
1217
|
+
name: [],
|
|
1218
|
+
testingInformation: [],
|
|
1219
|
+
}));
|
|
1234
1220
|
return new __HttpRequest({
|
|
1235
1221
|
protocol,
|
|
1236
1222
|
hostname,
|
|
@@ -1248,18 +1234,14 @@ export const se_UpdateSettingsCommand = async (input, context) => {
|
|
|
1248
1234
|
};
|
|
1249
1235
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/settings";
|
|
1250
1236
|
let body;
|
|
1251
|
-
body = JSON.stringify({
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
...(input.evidenceFinderEnabled != null && { evidenceFinderEnabled: input.evidenceFinderEnabled }),
|
|
1260
|
-
...(input.kmsKey != null && { kmsKey: input.kmsKey }),
|
|
1261
|
-
...(input.snsTopic != null && { snsTopic: input.snsTopic }),
|
|
1262
|
-
});
|
|
1237
|
+
body = JSON.stringify(take(input, {
|
|
1238
|
+
defaultAssessmentReportsDestination: (_) => _json(_),
|
|
1239
|
+
defaultProcessOwners: (_) => _json(_),
|
|
1240
|
+
deregistrationPolicy: (_) => _json(_),
|
|
1241
|
+
evidenceFinderEnabled: [],
|
|
1242
|
+
kmsKey: [],
|
|
1243
|
+
snsTopic: [],
|
|
1244
|
+
}));
|
|
1263
1245
|
return new __HttpRequest({
|
|
1264
1246
|
protocol,
|
|
1265
1247
|
hostname,
|
|
@@ -1277,9 +1259,9 @@ export const se_ValidateAssessmentReportIntegrityCommand = async (input, context
|
|
|
1277
1259
|
};
|
|
1278
1260
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentReports/integrity";
|
|
1279
1261
|
let body;
|
|
1280
|
-
body = JSON.stringify({
|
|
1281
|
-
|
|
1282
|
-
});
|
|
1262
|
+
body = JSON.stringify(take(input, {
|
|
1263
|
+
s3RelativePath: [],
|
|
1264
|
+
}));
|
|
1283
1265
|
return new __HttpRequest({
|
|
1284
1266
|
protocol,
|
|
1285
1267
|
hostname,
|
|
@@ -1321,10 +1303,9 @@ const de_AssociateAssessmentReportEvidenceFolderCommandError = async (output, co
|
|
|
1321
1303
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1322
1304
|
default:
|
|
1323
1305
|
const parsedBody = parsedOutput.body;
|
|
1324
|
-
throwDefaultError({
|
|
1306
|
+
return throwDefaultError({
|
|
1325
1307
|
output,
|
|
1326
1308
|
parsedBody,
|
|
1327
|
-
exceptionCtor: __BaseException,
|
|
1328
1309
|
errorCode,
|
|
1329
1310
|
});
|
|
1330
1311
|
}
|
|
@@ -1337,12 +1318,11 @@ export const de_BatchAssociateAssessmentReportEvidenceCommand = async (output, c
|
|
|
1337
1318
|
$metadata: deserializeMetadata(output),
|
|
1338
1319
|
});
|
|
1339
1320
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
}
|
|
1321
|
+
const doc = take(data, {
|
|
1322
|
+
errors: _json,
|
|
1323
|
+
evidenceIds: _json,
|
|
1324
|
+
});
|
|
1325
|
+
Object.assign(contents, doc);
|
|
1346
1326
|
return contents;
|
|
1347
1327
|
};
|
|
1348
1328
|
const de_BatchAssociateAssessmentReportEvidenceCommandError = async (output, context) => {
|
|
@@ -1366,10 +1346,9 @@ const de_BatchAssociateAssessmentReportEvidenceCommandError = async (output, con
|
|
|
1366
1346
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1367
1347
|
default:
|
|
1368
1348
|
const parsedBody = parsedOutput.body;
|
|
1369
|
-
throwDefaultError({
|
|
1349
|
+
return throwDefaultError({
|
|
1370
1350
|
output,
|
|
1371
1351
|
parsedBody,
|
|
1372
|
-
exceptionCtor: __BaseException,
|
|
1373
1352
|
errorCode,
|
|
1374
1353
|
});
|
|
1375
1354
|
}
|
|
@@ -1382,12 +1361,11 @@ export const de_BatchCreateDelegationByAssessmentCommand = async (output, contex
|
|
|
1382
1361
|
$metadata: deserializeMetadata(output),
|
|
1383
1362
|
});
|
|
1384
1363
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
}
|
|
1364
|
+
const doc = take(data, {
|
|
1365
|
+
delegations: (_) => de_Delegations(_, context),
|
|
1366
|
+
errors: _json,
|
|
1367
|
+
});
|
|
1368
|
+
Object.assign(contents, doc);
|
|
1391
1369
|
return contents;
|
|
1392
1370
|
};
|
|
1393
1371
|
const de_BatchCreateDelegationByAssessmentCommandError = async (output, context) => {
|
|
@@ -1411,10 +1389,9 @@ const de_BatchCreateDelegationByAssessmentCommandError = async (output, context)
|
|
|
1411
1389
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1412
1390
|
default:
|
|
1413
1391
|
const parsedBody = parsedOutput.body;
|
|
1414
|
-
throwDefaultError({
|
|
1392
|
+
return throwDefaultError({
|
|
1415
1393
|
output,
|
|
1416
1394
|
parsedBody,
|
|
1417
|
-
exceptionCtor: __BaseException,
|
|
1418
1395
|
errorCode,
|
|
1419
1396
|
});
|
|
1420
1397
|
}
|
|
@@ -1427,9 +1404,10 @@ export const de_BatchDeleteDelegationByAssessmentCommand = async (output, contex
|
|
|
1427
1404
|
$metadata: deserializeMetadata(output),
|
|
1428
1405
|
});
|
|
1429
1406
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
}
|
|
1407
|
+
const doc = take(data, {
|
|
1408
|
+
errors: _json,
|
|
1409
|
+
});
|
|
1410
|
+
Object.assign(contents, doc);
|
|
1433
1411
|
return contents;
|
|
1434
1412
|
};
|
|
1435
1413
|
const de_BatchDeleteDelegationByAssessmentCommandError = async (output, context) => {
|
|
@@ -1453,10 +1431,9 @@ const de_BatchDeleteDelegationByAssessmentCommandError = async (output, context)
|
|
|
1453
1431
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1454
1432
|
default:
|
|
1455
1433
|
const parsedBody = parsedOutput.body;
|
|
1456
|
-
throwDefaultError({
|
|
1434
|
+
return throwDefaultError({
|
|
1457
1435
|
output,
|
|
1458
1436
|
parsedBody,
|
|
1459
|
-
exceptionCtor: __BaseException,
|
|
1460
1437
|
errorCode,
|
|
1461
1438
|
});
|
|
1462
1439
|
}
|
|
@@ -1469,12 +1446,11 @@ export const de_BatchDisassociateAssessmentReportEvidenceCommand = async (output
|
|
|
1469
1446
|
$metadata: deserializeMetadata(output),
|
|
1470
1447
|
});
|
|
1471
1448
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
}
|
|
1449
|
+
const doc = take(data, {
|
|
1450
|
+
errors: _json,
|
|
1451
|
+
evidenceIds: _json,
|
|
1452
|
+
});
|
|
1453
|
+
Object.assign(contents, doc);
|
|
1478
1454
|
return contents;
|
|
1479
1455
|
};
|
|
1480
1456
|
const de_BatchDisassociateAssessmentReportEvidenceCommandError = async (output, context) => {
|
|
@@ -1498,10 +1474,9 @@ const de_BatchDisassociateAssessmentReportEvidenceCommandError = async (output,
|
|
|
1498
1474
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1499
1475
|
default:
|
|
1500
1476
|
const parsedBody = parsedOutput.body;
|
|
1501
|
-
throwDefaultError({
|
|
1477
|
+
return throwDefaultError({
|
|
1502
1478
|
output,
|
|
1503
1479
|
parsedBody,
|
|
1504
|
-
exceptionCtor: __BaseException,
|
|
1505
1480
|
errorCode,
|
|
1506
1481
|
});
|
|
1507
1482
|
}
|
|
@@ -1514,9 +1489,10 @@ export const de_BatchImportEvidenceToAssessmentControlCommand = async (output, c
|
|
|
1514
1489
|
$metadata: deserializeMetadata(output),
|
|
1515
1490
|
});
|
|
1516
1491
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
}
|
|
1492
|
+
const doc = take(data, {
|
|
1493
|
+
errors: _json,
|
|
1494
|
+
});
|
|
1495
|
+
Object.assign(contents, doc);
|
|
1520
1496
|
return contents;
|
|
1521
1497
|
};
|
|
1522
1498
|
const de_BatchImportEvidenceToAssessmentControlCommandError = async (output, context) => {
|
|
@@ -1540,10 +1516,9 @@ const de_BatchImportEvidenceToAssessmentControlCommandError = async (output, con
|
|
|
1540
1516
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1541
1517
|
default:
|
|
1542
1518
|
const parsedBody = parsedOutput.body;
|
|
1543
|
-
throwDefaultError({
|
|
1519
|
+
return throwDefaultError({
|
|
1544
1520
|
output,
|
|
1545
1521
|
parsedBody,
|
|
1546
|
-
exceptionCtor: __BaseException,
|
|
1547
1522
|
errorCode,
|
|
1548
1523
|
});
|
|
1549
1524
|
}
|
|
@@ -1556,9 +1531,10 @@ export const de_CreateAssessmentCommand = async (output, context) => {
|
|
|
1556
1531
|
$metadata: deserializeMetadata(output),
|
|
1557
1532
|
});
|
|
1558
1533
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
}
|
|
1534
|
+
const doc = take(data, {
|
|
1535
|
+
assessment: (_) => de_Assessment(_, context),
|
|
1536
|
+
});
|
|
1537
|
+
Object.assign(contents, doc);
|
|
1562
1538
|
return contents;
|
|
1563
1539
|
};
|
|
1564
1540
|
const de_CreateAssessmentCommandError = async (output, context) => {
|
|
@@ -1585,10 +1561,9 @@ const de_CreateAssessmentCommandError = async (output, context) => {
|
|
|
1585
1561
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1586
1562
|
default:
|
|
1587
1563
|
const parsedBody = parsedOutput.body;
|
|
1588
|
-
throwDefaultError({
|
|
1564
|
+
return throwDefaultError({
|
|
1589
1565
|
output,
|
|
1590
1566
|
parsedBody,
|
|
1591
|
-
exceptionCtor: __BaseException,
|
|
1592
1567
|
errorCode,
|
|
1593
1568
|
});
|
|
1594
1569
|
}
|
|
@@ -1601,9 +1576,10 @@ export const de_CreateAssessmentFrameworkCommand = async (output, context) => {
|
|
|
1601
1576
|
$metadata: deserializeMetadata(output),
|
|
1602
1577
|
});
|
|
1603
1578
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
}
|
|
1579
|
+
const doc = take(data, {
|
|
1580
|
+
framework: (_) => de_Framework(_, context),
|
|
1581
|
+
});
|
|
1582
|
+
Object.assign(contents, doc);
|
|
1607
1583
|
return contents;
|
|
1608
1584
|
};
|
|
1609
1585
|
const de_CreateAssessmentFrameworkCommandError = async (output, context) => {
|
|
@@ -1630,10 +1606,9 @@ const de_CreateAssessmentFrameworkCommandError = async (output, context) => {
|
|
|
1630
1606
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1631
1607
|
default:
|
|
1632
1608
|
const parsedBody = parsedOutput.body;
|
|
1633
|
-
throwDefaultError({
|
|
1609
|
+
return throwDefaultError({
|
|
1634
1610
|
output,
|
|
1635
1611
|
parsedBody,
|
|
1636
|
-
exceptionCtor: __BaseException,
|
|
1637
1612
|
errorCode,
|
|
1638
1613
|
});
|
|
1639
1614
|
}
|
|
@@ -1646,9 +1621,10 @@ export const de_CreateAssessmentReportCommand = async (output, context) => {
|
|
|
1646
1621
|
$metadata: deserializeMetadata(output),
|
|
1647
1622
|
});
|
|
1648
1623
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
}
|
|
1624
|
+
const doc = take(data, {
|
|
1625
|
+
assessmentReport: (_) => de_AssessmentReport(_, context),
|
|
1626
|
+
});
|
|
1627
|
+
Object.assign(contents, doc);
|
|
1652
1628
|
return contents;
|
|
1653
1629
|
};
|
|
1654
1630
|
const de_CreateAssessmentReportCommandError = async (output, context) => {
|
|
@@ -1672,10 +1648,9 @@ const de_CreateAssessmentReportCommandError = async (output, context) => {
|
|
|
1672
1648
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1673
1649
|
default:
|
|
1674
1650
|
const parsedBody = parsedOutput.body;
|
|
1675
|
-
throwDefaultError({
|
|
1651
|
+
return throwDefaultError({
|
|
1676
1652
|
output,
|
|
1677
1653
|
parsedBody,
|
|
1678
|
-
exceptionCtor: __BaseException,
|
|
1679
1654
|
errorCode,
|
|
1680
1655
|
});
|
|
1681
1656
|
}
|
|
@@ -1688,9 +1663,10 @@ export const de_CreateControlCommand = async (output, context) => {
|
|
|
1688
1663
|
$metadata: deserializeMetadata(output),
|
|
1689
1664
|
});
|
|
1690
1665
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
}
|
|
1666
|
+
const doc = take(data, {
|
|
1667
|
+
control: (_) => de_Control(_, context),
|
|
1668
|
+
});
|
|
1669
|
+
Object.assign(contents, doc);
|
|
1694
1670
|
return contents;
|
|
1695
1671
|
};
|
|
1696
1672
|
const de_CreateControlCommandError = async (output, context) => {
|
|
@@ -1717,10 +1693,9 @@ const de_CreateControlCommandError = async (output, context) => {
|
|
|
1717
1693
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1718
1694
|
default:
|
|
1719
1695
|
const parsedBody = parsedOutput.body;
|
|
1720
|
-
throwDefaultError({
|
|
1696
|
+
return throwDefaultError({
|
|
1721
1697
|
output,
|
|
1722
1698
|
parsedBody,
|
|
1723
|
-
exceptionCtor: __BaseException,
|
|
1724
1699
|
errorCode,
|
|
1725
1700
|
});
|
|
1726
1701
|
}
|
|
@@ -1756,10 +1731,9 @@ const de_DeleteAssessmentCommandError = async (output, context) => {
|
|
|
1756
1731
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1757
1732
|
default:
|
|
1758
1733
|
const parsedBody = parsedOutput.body;
|
|
1759
|
-
throwDefaultError({
|
|
1734
|
+
return throwDefaultError({
|
|
1760
1735
|
output,
|
|
1761
1736
|
parsedBody,
|
|
1762
|
-
exceptionCtor: __BaseException,
|
|
1763
1737
|
errorCode,
|
|
1764
1738
|
});
|
|
1765
1739
|
}
|
|
@@ -1795,10 +1769,9 @@ const de_DeleteAssessmentFrameworkCommandError = async (output, context) => {
|
|
|
1795
1769
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1796
1770
|
default:
|
|
1797
1771
|
const parsedBody = parsedOutput.body;
|
|
1798
|
-
throwDefaultError({
|
|
1772
|
+
return throwDefaultError({
|
|
1799
1773
|
output,
|
|
1800
1774
|
parsedBody,
|
|
1801
|
-
exceptionCtor: __BaseException,
|
|
1802
1775
|
errorCode,
|
|
1803
1776
|
});
|
|
1804
1777
|
}
|
|
@@ -1834,10 +1807,9 @@ const de_DeleteAssessmentFrameworkShareCommandError = async (output, context) =>
|
|
|
1834
1807
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1835
1808
|
default:
|
|
1836
1809
|
const parsedBody = parsedOutput.body;
|
|
1837
|
-
throwDefaultError({
|
|
1810
|
+
return throwDefaultError({
|
|
1838
1811
|
output,
|
|
1839
1812
|
parsedBody,
|
|
1840
|
-
exceptionCtor: __BaseException,
|
|
1841
1813
|
errorCode,
|
|
1842
1814
|
});
|
|
1843
1815
|
}
|
|
@@ -1873,10 +1845,9 @@ const de_DeleteAssessmentReportCommandError = async (output, context) => {
|
|
|
1873
1845
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1874
1846
|
default:
|
|
1875
1847
|
const parsedBody = parsedOutput.body;
|
|
1876
|
-
throwDefaultError({
|
|
1848
|
+
return throwDefaultError({
|
|
1877
1849
|
output,
|
|
1878
1850
|
parsedBody,
|
|
1879
|
-
exceptionCtor: __BaseException,
|
|
1880
1851
|
errorCode,
|
|
1881
1852
|
});
|
|
1882
1853
|
}
|
|
@@ -1912,10 +1883,9 @@ const de_DeleteControlCommandError = async (output, context) => {
|
|
|
1912
1883
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1913
1884
|
default:
|
|
1914
1885
|
const parsedBody = parsedOutput.body;
|
|
1915
|
-
throwDefaultError({
|
|
1886
|
+
return throwDefaultError({
|
|
1916
1887
|
output,
|
|
1917
1888
|
parsedBody,
|
|
1918
|
-
exceptionCtor: __BaseException,
|
|
1919
1889
|
errorCode,
|
|
1920
1890
|
});
|
|
1921
1891
|
}
|
|
@@ -1928,9 +1898,10 @@ export const de_DeregisterAccountCommand = async (output, context) => {
|
|
|
1928
1898
|
$metadata: deserializeMetadata(output),
|
|
1929
1899
|
});
|
|
1930
1900
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
}
|
|
1901
|
+
const doc = take(data, {
|
|
1902
|
+
status: __expectString,
|
|
1903
|
+
});
|
|
1904
|
+
Object.assign(contents, doc);
|
|
1934
1905
|
return contents;
|
|
1935
1906
|
};
|
|
1936
1907
|
const de_DeregisterAccountCommandError = async (output, context) => {
|
|
@@ -1954,10 +1925,9 @@ const de_DeregisterAccountCommandError = async (output, context) => {
|
|
|
1954
1925
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1955
1926
|
default:
|
|
1956
1927
|
const parsedBody = parsedOutput.body;
|
|
1957
|
-
throwDefaultError({
|
|
1928
|
+
return throwDefaultError({
|
|
1958
1929
|
output,
|
|
1959
1930
|
parsedBody,
|
|
1960
|
-
exceptionCtor: __BaseException,
|
|
1961
1931
|
errorCode,
|
|
1962
1932
|
});
|
|
1963
1933
|
}
|
|
@@ -1993,10 +1963,9 @@ const de_DeregisterOrganizationAdminAccountCommandError = async (output, context
|
|
|
1993
1963
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1994
1964
|
default:
|
|
1995
1965
|
const parsedBody = parsedOutput.body;
|
|
1996
|
-
throwDefaultError({
|
|
1966
|
+
return throwDefaultError({
|
|
1997
1967
|
output,
|
|
1998
1968
|
parsedBody,
|
|
1999
|
-
exceptionCtor: __BaseException,
|
|
2000
1969
|
errorCode,
|
|
2001
1970
|
});
|
|
2002
1971
|
}
|
|
@@ -2032,10 +2001,9 @@ const de_DisassociateAssessmentReportEvidenceFolderCommandError = async (output,
|
|
|
2032
2001
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2033
2002
|
default:
|
|
2034
2003
|
const parsedBody = parsedOutput.body;
|
|
2035
|
-
throwDefaultError({
|
|
2004
|
+
return throwDefaultError({
|
|
2036
2005
|
output,
|
|
2037
2006
|
parsedBody,
|
|
2038
|
-
exceptionCtor: __BaseException,
|
|
2039
2007
|
errorCode,
|
|
2040
2008
|
});
|
|
2041
2009
|
}
|
|
@@ -2048,9 +2016,10 @@ export const de_GetAccountStatusCommand = async (output, context) => {
|
|
|
2048
2016
|
$metadata: deserializeMetadata(output),
|
|
2049
2017
|
});
|
|
2050
2018
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
}
|
|
2019
|
+
const doc = take(data, {
|
|
2020
|
+
status: __expectString,
|
|
2021
|
+
});
|
|
2022
|
+
Object.assign(contents, doc);
|
|
2054
2023
|
return contents;
|
|
2055
2024
|
};
|
|
2056
2025
|
const de_GetAccountStatusCommandError = async (output, context) => {
|
|
@@ -2065,10 +2034,9 @@ const de_GetAccountStatusCommandError = async (output, context) => {
|
|
|
2065
2034
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2066
2035
|
default:
|
|
2067
2036
|
const parsedBody = parsedOutput.body;
|
|
2068
|
-
throwDefaultError({
|
|
2037
|
+
return throwDefaultError({
|
|
2069
2038
|
output,
|
|
2070
2039
|
parsedBody,
|
|
2071
|
-
exceptionCtor: __BaseException,
|
|
2072
2040
|
errorCode,
|
|
2073
2041
|
});
|
|
2074
2042
|
}
|
|
@@ -2081,12 +2049,11 @@ export const de_GetAssessmentCommand = async (output, context) => {
|
|
|
2081
2049
|
$metadata: deserializeMetadata(output),
|
|
2082
2050
|
});
|
|
2083
2051
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
}
|
|
2052
|
+
const doc = take(data, {
|
|
2053
|
+
assessment: (_) => de_Assessment(_, context),
|
|
2054
|
+
userRole: _json,
|
|
2055
|
+
});
|
|
2056
|
+
Object.assign(contents, doc);
|
|
2090
2057
|
return contents;
|
|
2091
2058
|
};
|
|
2092
2059
|
const de_GetAssessmentCommandError = async (output, context) => {
|
|
@@ -2110,10 +2077,9 @@ const de_GetAssessmentCommandError = async (output, context) => {
|
|
|
2110
2077
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2111
2078
|
default:
|
|
2112
2079
|
const parsedBody = parsedOutput.body;
|
|
2113
|
-
throwDefaultError({
|
|
2080
|
+
return throwDefaultError({
|
|
2114
2081
|
output,
|
|
2115
2082
|
parsedBody,
|
|
2116
|
-
exceptionCtor: __BaseException,
|
|
2117
2083
|
errorCode,
|
|
2118
2084
|
});
|
|
2119
2085
|
}
|
|
@@ -2126,9 +2092,10 @@ export const de_GetAssessmentFrameworkCommand = async (output, context) => {
|
|
|
2126
2092
|
$metadata: deserializeMetadata(output),
|
|
2127
2093
|
});
|
|
2128
2094
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
}
|
|
2095
|
+
const doc = take(data, {
|
|
2096
|
+
framework: (_) => de_Framework(_, context),
|
|
2097
|
+
});
|
|
2098
|
+
Object.assign(contents, doc);
|
|
2132
2099
|
return contents;
|
|
2133
2100
|
};
|
|
2134
2101
|
const de_GetAssessmentFrameworkCommandError = async (output, context) => {
|
|
@@ -2152,10 +2119,9 @@ const de_GetAssessmentFrameworkCommandError = async (output, context) => {
|
|
|
2152
2119
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2153
2120
|
default:
|
|
2154
2121
|
const parsedBody = parsedOutput.body;
|
|
2155
|
-
throwDefaultError({
|
|
2122
|
+
return throwDefaultError({
|
|
2156
2123
|
output,
|
|
2157
2124
|
parsedBody,
|
|
2158
|
-
exceptionCtor: __BaseException,
|
|
2159
2125
|
errorCode,
|
|
2160
2126
|
});
|
|
2161
2127
|
}
|
|
@@ -2168,9 +2134,10 @@ export const de_GetAssessmentReportUrlCommand = async (output, context) => {
|
|
|
2168
2134
|
$metadata: deserializeMetadata(output),
|
|
2169
2135
|
});
|
|
2170
2136
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
}
|
|
2137
|
+
const doc = take(data, {
|
|
2138
|
+
preSignedUrl: _json,
|
|
2139
|
+
});
|
|
2140
|
+
Object.assign(contents, doc);
|
|
2174
2141
|
return contents;
|
|
2175
2142
|
};
|
|
2176
2143
|
const de_GetAssessmentReportUrlCommandError = async (output, context) => {
|
|
@@ -2194,10 +2161,9 @@ const de_GetAssessmentReportUrlCommandError = async (output, context) => {
|
|
|
2194
2161
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2195
2162
|
default:
|
|
2196
2163
|
const parsedBody = parsedOutput.body;
|
|
2197
|
-
throwDefaultError({
|
|
2164
|
+
return throwDefaultError({
|
|
2198
2165
|
output,
|
|
2199
2166
|
parsedBody,
|
|
2200
|
-
exceptionCtor: __BaseException,
|
|
2201
2167
|
errorCode,
|
|
2202
2168
|
});
|
|
2203
2169
|
}
|
|
@@ -2210,12 +2176,11 @@ export const de_GetChangeLogsCommand = async (output, context) => {
|
|
|
2210
2176
|
$metadata: deserializeMetadata(output),
|
|
2211
2177
|
});
|
|
2212
2178
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
}
|
|
2179
|
+
const doc = take(data, {
|
|
2180
|
+
changeLogs: (_) => de_ChangeLogs(_, context),
|
|
2181
|
+
nextToken: __expectString,
|
|
2182
|
+
});
|
|
2183
|
+
Object.assign(contents, doc);
|
|
2219
2184
|
return contents;
|
|
2220
2185
|
};
|
|
2221
2186
|
const de_GetChangeLogsCommandError = async (output, context) => {
|
|
@@ -2239,10 +2204,9 @@ const de_GetChangeLogsCommandError = async (output, context) => {
|
|
|
2239
2204
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2240
2205
|
default:
|
|
2241
2206
|
const parsedBody = parsedOutput.body;
|
|
2242
|
-
throwDefaultError({
|
|
2207
|
+
return throwDefaultError({
|
|
2243
2208
|
output,
|
|
2244
2209
|
parsedBody,
|
|
2245
|
-
exceptionCtor: __BaseException,
|
|
2246
2210
|
errorCode,
|
|
2247
2211
|
});
|
|
2248
2212
|
}
|
|
@@ -2255,9 +2219,10 @@ export const de_GetControlCommand = async (output, context) => {
|
|
|
2255
2219
|
$metadata: deserializeMetadata(output),
|
|
2256
2220
|
});
|
|
2257
2221
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
}
|
|
2222
|
+
const doc = take(data, {
|
|
2223
|
+
control: (_) => de_Control(_, context),
|
|
2224
|
+
});
|
|
2225
|
+
Object.assign(contents, doc);
|
|
2261
2226
|
return contents;
|
|
2262
2227
|
};
|
|
2263
2228
|
const de_GetControlCommandError = async (output, context) => {
|
|
@@ -2281,10 +2246,9 @@ const de_GetControlCommandError = async (output, context) => {
|
|
|
2281
2246
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2282
2247
|
default:
|
|
2283
2248
|
const parsedBody = parsedOutput.body;
|
|
2284
|
-
throwDefaultError({
|
|
2249
|
+
return throwDefaultError({
|
|
2285
2250
|
output,
|
|
2286
2251
|
parsedBody,
|
|
2287
|
-
exceptionCtor: __BaseException,
|
|
2288
2252
|
errorCode,
|
|
2289
2253
|
});
|
|
2290
2254
|
}
|
|
@@ -2297,12 +2261,11 @@ export const de_GetDelegationsCommand = async (output, context) => {
|
|
|
2297
2261
|
$metadata: deserializeMetadata(output),
|
|
2298
2262
|
});
|
|
2299
2263
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
}
|
|
2264
|
+
const doc = take(data, {
|
|
2265
|
+
delegations: (_) => de_DelegationMetadataList(_, context),
|
|
2266
|
+
nextToken: __expectString,
|
|
2267
|
+
});
|
|
2268
|
+
Object.assign(contents, doc);
|
|
2306
2269
|
return contents;
|
|
2307
2270
|
};
|
|
2308
2271
|
const de_GetDelegationsCommandError = async (output, context) => {
|
|
@@ -2323,10 +2286,9 @@ const de_GetDelegationsCommandError = async (output, context) => {
|
|
|
2323
2286
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2324
2287
|
default:
|
|
2325
2288
|
const parsedBody = parsedOutput.body;
|
|
2326
|
-
throwDefaultError({
|
|
2289
|
+
return throwDefaultError({
|
|
2327
2290
|
output,
|
|
2328
2291
|
parsedBody,
|
|
2329
|
-
exceptionCtor: __BaseException,
|
|
2330
2292
|
errorCode,
|
|
2331
2293
|
});
|
|
2332
2294
|
}
|
|
@@ -2339,9 +2301,10 @@ export const de_GetEvidenceCommand = async (output, context) => {
|
|
|
2339
2301
|
$metadata: deserializeMetadata(output),
|
|
2340
2302
|
});
|
|
2341
2303
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
}
|
|
2304
|
+
const doc = take(data, {
|
|
2305
|
+
evidence: (_) => de_Evidence(_, context),
|
|
2306
|
+
});
|
|
2307
|
+
Object.assign(contents, doc);
|
|
2345
2308
|
return contents;
|
|
2346
2309
|
};
|
|
2347
2310
|
const de_GetEvidenceCommandError = async (output, context) => {
|
|
@@ -2365,10 +2328,9 @@ const de_GetEvidenceCommandError = async (output, context) => {
|
|
|
2365
2328
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2366
2329
|
default:
|
|
2367
2330
|
const parsedBody = parsedOutput.body;
|
|
2368
|
-
throwDefaultError({
|
|
2331
|
+
return throwDefaultError({
|
|
2369
2332
|
output,
|
|
2370
2333
|
parsedBody,
|
|
2371
|
-
exceptionCtor: __BaseException,
|
|
2372
2334
|
errorCode,
|
|
2373
2335
|
});
|
|
2374
2336
|
}
|
|
@@ -2381,12 +2343,11 @@ export const de_GetEvidenceByEvidenceFolderCommand = async (output, context) =>
|
|
|
2381
2343
|
$metadata: deserializeMetadata(output),
|
|
2382
2344
|
});
|
|
2383
2345
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
}
|
|
2346
|
+
const doc = take(data, {
|
|
2347
|
+
evidence: (_) => de_EvidenceList(_, context),
|
|
2348
|
+
nextToken: __expectString,
|
|
2349
|
+
});
|
|
2350
|
+
Object.assign(contents, doc);
|
|
2390
2351
|
return contents;
|
|
2391
2352
|
};
|
|
2392
2353
|
const de_GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
|
|
@@ -2410,10 +2371,9 @@ const de_GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
|
|
|
2410
2371
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2411
2372
|
default:
|
|
2412
2373
|
const parsedBody = parsedOutput.body;
|
|
2413
|
-
throwDefaultError({
|
|
2374
|
+
return throwDefaultError({
|
|
2414
2375
|
output,
|
|
2415
2376
|
parsedBody,
|
|
2416
|
-
exceptionCtor: __BaseException,
|
|
2417
2377
|
errorCode,
|
|
2418
2378
|
});
|
|
2419
2379
|
}
|
|
@@ -2426,9 +2386,10 @@ export const de_GetEvidenceFolderCommand = async (output, context) => {
|
|
|
2426
2386
|
$metadata: deserializeMetadata(output),
|
|
2427
2387
|
});
|
|
2428
2388
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
}
|
|
2389
|
+
const doc = take(data, {
|
|
2390
|
+
evidenceFolder: (_) => de_AssessmentEvidenceFolder(_, context),
|
|
2391
|
+
});
|
|
2392
|
+
Object.assign(contents, doc);
|
|
2432
2393
|
return contents;
|
|
2433
2394
|
};
|
|
2434
2395
|
const de_GetEvidenceFolderCommandError = async (output, context) => {
|
|
@@ -2452,10 +2413,9 @@ const de_GetEvidenceFolderCommandError = async (output, context) => {
|
|
|
2452
2413
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2453
2414
|
default:
|
|
2454
2415
|
const parsedBody = parsedOutput.body;
|
|
2455
|
-
throwDefaultError({
|
|
2416
|
+
return throwDefaultError({
|
|
2456
2417
|
output,
|
|
2457
2418
|
parsedBody,
|
|
2458
|
-
exceptionCtor: __BaseException,
|
|
2459
2419
|
errorCode,
|
|
2460
2420
|
});
|
|
2461
2421
|
}
|
|
@@ -2468,12 +2428,11 @@ export const de_GetEvidenceFoldersByAssessmentCommand = async (output, context)
|
|
|
2468
2428
|
$metadata: deserializeMetadata(output),
|
|
2469
2429
|
});
|
|
2470
2430
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
}
|
|
2431
|
+
const doc = take(data, {
|
|
2432
|
+
evidenceFolders: (_) => de_AssessmentEvidenceFolders(_, context),
|
|
2433
|
+
nextToken: __expectString,
|
|
2434
|
+
});
|
|
2435
|
+
Object.assign(contents, doc);
|
|
2477
2436
|
return contents;
|
|
2478
2437
|
};
|
|
2479
2438
|
const de_GetEvidenceFoldersByAssessmentCommandError = async (output, context) => {
|
|
@@ -2497,10 +2456,9 @@ const de_GetEvidenceFoldersByAssessmentCommandError = async (output, context) =>
|
|
|
2497
2456
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2498
2457
|
default:
|
|
2499
2458
|
const parsedBody = parsedOutput.body;
|
|
2500
|
-
throwDefaultError({
|
|
2459
|
+
return throwDefaultError({
|
|
2501
2460
|
output,
|
|
2502
2461
|
parsedBody,
|
|
2503
|
-
exceptionCtor: __BaseException,
|
|
2504
2462
|
errorCode,
|
|
2505
2463
|
});
|
|
2506
2464
|
}
|
|
@@ -2513,12 +2471,11 @@ export const de_GetEvidenceFoldersByAssessmentControlCommand = async (output, co
|
|
|
2513
2471
|
$metadata: deserializeMetadata(output),
|
|
2514
2472
|
});
|
|
2515
2473
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
}
|
|
2474
|
+
const doc = take(data, {
|
|
2475
|
+
evidenceFolders: (_) => de_AssessmentEvidenceFolders(_, context),
|
|
2476
|
+
nextToken: __expectString,
|
|
2477
|
+
});
|
|
2478
|
+
Object.assign(contents, doc);
|
|
2522
2479
|
return contents;
|
|
2523
2480
|
};
|
|
2524
2481
|
const de_GetEvidenceFoldersByAssessmentControlCommandError = async (output, context) => {
|
|
@@ -2542,10 +2499,9 @@ const de_GetEvidenceFoldersByAssessmentControlCommandError = async (output, cont
|
|
|
2542
2499
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2543
2500
|
default:
|
|
2544
2501
|
const parsedBody = parsedOutput.body;
|
|
2545
|
-
throwDefaultError({
|
|
2502
|
+
return throwDefaultError({
|
|
2546
2503
|
output,
|
|
2547
2504
|
parsedBody,
|
|
2548
|
-
exceptionCtor: __BaseException,
|
|
2549
2505
|
errorCode,
|
|
2550
2506
|
});
|
|
2551
2507
|
}
|
|
@@ -2558,9 +2514,10 @@ export const de_GetInsightsCommand = async (output, context) => {
|
|
|
2558
2514
|
$metadata: deserializeMetadata(output),
|
|
2559
2515
|
});
|
|
2560
2516
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
}
|
|
2517
|
+
const doc = take(data, {
|
|
2518
|
+
insights: (_) => de_Insights(_, context),
|
|
2519
|
+
});
|
|
2520
|
+
Object.assign(contents, doc);
|
|
2564
2521
|
return contents;
|
|
2565
2522
|
};
|
|
2566
2523
|
const de_GetInsightsCommandError = async (output, context) => {
|
|
@@ -2578,10 +2535,9 @@ const de_GetInsightsCommandError = async (output, context) => {
|
|
|
2578
2535
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2579
2536
|
default:
|
|
2580
2537
|
const parsedBody = parsedOutput.body;
|
|
2581
|
-
throwDefaultError({
|
|
2538
|
+
return throwDefaultError({
|
|
2582
2539
|
output,
|
|
2583
2540
|
parsedBody,
|
|
2584
|
-
exceptionCtor: __BaseException,
|
|
2585
2541
|
errorCode,
|
|
2586
2542
|
});
|
|
2587
2543
|
}
|
|
@@ -2594,9 +2550,10 @@ export const de_GetInsightsByAssessmentCommand = async (output, context) => {
|
|
|
2594
2550
|
$metadata: deserializeMetadata(output),
|
|
2595
2551
|
});
|
|
2596
2552
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
}
|
|
2553
|
+
const doc = take(data, {
|
|
2554
|
+
insights: (_) => de_InsightsByAssessment(_, context),
|
|
2555
|
+
});
|
|
2556
|
+
Object.assign(contents, doc);
|
|
2600
2557
|
return contents;
|
|
2601
2558
|
};
|
|
2602
2559
|
const de_GetInsightsByAssessmentCommandError = async (output, context) => {
|
|
@@ -2620,10 +2577,9 @@ const de_GetInsightsByAssessmentCommandError = async (output, context) => {
|
|
|
2620
2577
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2621
2578
|
default:
|
|
2622
2579
|
const parsedBody = parsedOutput.body;
|
|
2623
|
-
throwDefaultError({
|
|
2580
|
+
return throwDefaultError({
|
|
2624
2581
|
output,
|
|
2625
2582
|
parsedBody,
|
|
2626
|
-
exceptionCtor: __BaseException,
|
|
2627
2583
|
errorCode,
|
|
2628
2584
|
});
|
|
2629
2585
|
}
|
|
@@ -2636,12 +2592,11 @@ export const de_GetOrganizationAdminAccountCommand = async (output, context) =>
|
|
|
2636
2592
|
$metadata: deserializeMetadata(output),
|
|
2637
2593
|
});
|
|
2638
2594
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
}
|
|
2595
|
+
const doc = take(data, {
|
|
2596
|
+
adminAccountId: __expectString,
|
|
2597
|
+
organizationId: __expectString,
|
|
2598
|
+
});
|
|
2599
|
+
Object.assign(contents, doc);
|
|
2645
2600
|
return contents;
|
|
2646
2601
|
};
|
|
2647
2602
|
const de_GetOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -2665,10 +2620,9 @@ const de_GetOrganizationAdminAccountCommandError = async (output, context) => {
|
|
|
2665
2620
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2666
2621
|
default:
|
|
2667
2622
|
const parsedBody = parsedOutput.body;
|
|
2668
|
-
throwDefaultError({
|
|
2623
|
+
return throwDefaultError({
|
|
2669
2624
|
output,
|
|
2670
2625
|
parsedBody,
|
|
2671
|
-
exceptionCtor: __BaseException,
|
|
2672
2626
|
errorCode,
|
|
2673
2627
|
});
|
|
2674
2628
|
}
|
|
@@ -2681,9 +2635,10 @@ export const de_GetServicesInScopeCommand = async (output, context) => {
|
|
|
2681
2635
|
$metadata: deserializeMetadata(output),
|
|
2682
2636
|
});
|
|
2683
2637
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
}
|
|
2638
|
+
const doc = take(data, {
|
|
2639
|
+
serviceMetadata: _json,
|
|
2640
|
+
});
|
|
2641
|
+
Object.assign(contents, doc);
|
|
2687
2642
|
return contents;
|
|
2688
2643
|
};
|
|
2689
2644
|
const de_GetServicesInScopeCommandError = async (output, context) => {
|
|
@@ -2704,10 +2659,9 @@ const de_GetServicesInScopeCommandError = async (output, context) => {
|
|
|
2704
2659
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2705
2660
|
default:
|
|
2706
2661
|
const parsedBody = parsedOutput.body;
|
|
2707
|
-
throwDefaultError({
|
|
2662
|
+
return throwDefaultError({
|
|
2708
2663
|
output,
|
|
2709
2664
|
parsedBody,
|
|
2710
|
-
exceptionCtor: __BaseException,
|
|
2711
2665
|
errorCode,
|
|
2712
2666
|
});
|
|
2713
2667
|
}
|
|
@@ -2720,9 +2674,10 @@ export const de_GetSettingsCommand = async (output, context) => {
|
|
|
2720
2674
|
$metadata: deserializeMetadata(output),
|
|
2721
2675
|
});
|
|
2722
2676
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
}
|
|
2677
|
+
const doc = take(data, {
|
|
2678
|
+
settings: _json,
|
|
2679
|
+
});
|
|
2680
|
+
Object.assign(contents, doc);
|
|
2726
2681
|
return contents;
|
|
2727
2682
|
};
|
|
2728
2683
|
const de_GetSettingsCommandError = async (output, context) => {
|
|
@@ -2740,10 +2695,9 @@ const de_GetSettingsCommandError = async (output, context) => {
|
|
|
2740
2695
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2741
2696
|
default:
|
|
2742
2697
|
const parsedBody = parsedOutput.body;
|
|
2743
|
-
throwDefaultError({
|
|
2698
|
+
return throwDefaultError({
|
|
2744
2699
|
output,
|
|
2745
2700
|
parsedBody,
|
|
2746
|
-
exceptionCtor: __BaseException,
|
|
2747
2701
|
errorCode,
|
|
2748
2702
|
});
|
|
2749
2703
|
}
|
|
@@ -2756,12 +2710,11 @@ export const de_ListAssessmentControlInsightsByControlDomainCommand = async (out
|
|
|
2756
2710
|
$metadata: deserializeMetadata(output),
|
|
2757
2711
|
});
|
|
2758
2712
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
}
|
|
2713
|
+
const doc = take(data, {
|
|
2714
|
+
controlInsightsByAssessment: (_) => de_ControlInsightsMetadataByAssessment(_, context),
|
|
2715
|
+
nextToken: __expectString,
|
|
2716
|
+
});
|
|
2717
|
+
Object.assign(contents, doc);
|
|
2765
2718
|
return contents;
|
|
2766
2719
|
};
|
|
2767
2720
|
const de_ListAssessmentControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
@@ -2785,10 +2738,9 @@ const de_ListAssessmentControlInsightsByControlDomainCommandError = async (outpu
|
|
|
2785
2738
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2786
2739
|
default:
|
|
2787
2740
|
const parsedBody = parsedOutput.body;
|
|
2788
|
-
throwDefaultError({
|
|
2741
|
+
return throwDefaultError({
|
|
2789
2742
|
output,
|
|
2790
2743
|
parsedBody,
|
|
2791
|
-
exceptionCtor: __BaseException,
|
|
2792
2744
|
errorCode,
|
|
2793
2745
|
});
|
|
2794
2746
|
}
|
|
@@ -2801,12 +2753,11 @@ export const de_ListAssessmentFrameworksCommand = async (output, context) => {
|
|
|
2801
2753
|
$metadata: deserializeMetadata(output),
|
|
2802
2754
|
});
|
|
2803
2755
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
}
|
|
2756
|
+
const doc = take(data, {
|
|
2757
|
+
frameworkMetadataList: (_) => de_FrameworkMetadataList(_, context),
|
|
2758
|
+
nextToken: __expectString,
|
|
2759
|
+
});
|
|
2760
|
+
Object.assign(contents, doc);
|
|
2810
2761
|
return contents;
|
|
2811
2762
|
};
|
|
2812
2763
|
const de_ListAssessmentFrameworksCommandError = async (output, context) => {
|
|
@@ -2827,10 +2778,9 @@ const de_ListAssessmentFrameworksCommandError = async (output, context) => {
|
|
|
2827
2778
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2828
2779
|
default:
|
|
2829
2780
|
const parsedBody = parsedOutput.body;
|
|
2830
|
-
throwDefaultError({
|
|
2781
|
+
return throwDefaultError({
|
|
2831
2782
|
output,
|
|
2832
2783
|
parsedBody,
|
|
2833
|
-
exceptionCtor: __BaseException,
|
|
2834
2784
|
errorCode,
|
|
2835
2785
|
});
|
|
2836
2786
|
}
|
|
@@ -2843,12 +2793,11 @@ export const de_ListAssessmentFrameworkShareRequestsCommand = async (output, con
|
|
|
2843
2793
|
$metadata: deserializeMetadata(output),
|
|
2844
2794
|
});
|
|
2845
2795
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
}
|
|
2796
|
+
const doc = take(data, {
|
|
2797
|
+
assessmentFrameworkShareRequests: (_) => de_AssessmentFrameworkShareRequestList(_, context),
|
|
2798
|
+
nextToken: __expectString,
|
|
2799
|
+
});
|
|
2800
|
+
Object.assign(contents, doc);
|
|
2852
2801
|
return contents;
|
|
2853
2802
|
};
|
|
2854
2803
|
const de_ListAssessmentFrameworkShareRequestsCommandError = async (output, context) => {
|
|
@@ -2869,10 +2818,9 @@ const de_ListAssessmentFrameworkShareRequestsCommandError = async (output, conte
|
|
|
2869
2818
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2870
2819
|
default:
|
|
2871
2820
|
const parsedBody = parsedOutput.body;
|
|
2872
|
-
throwDefaultError({
|
|
2821
|
+
return throwDefaultError({
|
|
2873
2822
|
output,
|
|
2874
2823
|
parsedBody,
|
|
2875
|
-
exceptionCtor: __BaseException,
|
|
2876
2824
|
errorCode,
|
|
2877
2825
|
});
|
|
2878
2826
|
}
|
|
@@ -2885,12 +2833,11 @@ export const de_ListAssessmentReportsCommand = async (output, context) => {
|
|
|
2885
2833
|
$metadata: deserializeMetadata(output),
|
|
2886
2834
|
});
|
|
2887
2835
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
}
|
|
2836
|
+
const doc = take(data, {
|
|
2837
|
+
assessmentReports: (_) => de_AssessmentReportsMetadata(_, context),
|
|
2838
|
+
nextToken: __expectString,
|
|
2839
|
+
});
|
|
2840
|
+
Object.assign(contents, doc);
|
|
2894
2841
|
return contents;
|
|
2895
2842
|
};
|
|
2896
2843
|
const de_ListAssessmentReportsCommandError = async (output, context) => {
|
|
@@ -2911,10 +2858,9 @@ const de_ListAssessmentReportsCommandError = async (output, context) => {
|
|
|
2911
2858
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2912
2859
|
default:
|
|
2913
2860
|
const parsedBody = parsedOutput.body;
|
|
2914
|
-
throwDefaultError({
|
|
2861
|
+
return throwDefaultError({
|
|
2915
2862
|
output,
|
|
2916
2863
|
parsedBody,
|
|
2917
|
-
exceptionCtor: __BaseException,
|
|
2918
2864
|
errorCode,
|
|
2919
2865
|
});
|
|
2920
2866
|
}
|
|
@@ -2927,12 +2873,11 @@ export const de_ListAssessmentsCommand = async (output, context) => {
|
|
|
2927
2873
|
$metadata: deserializeMetadata(output),
|
|
2928
2874
|
});
|
|
2929
2875
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
}
|
|
2876
|
+
const doc = take(data, {
|
|
2877
|
+
assessmentMetadata: (_) => de_ListAssessmentMetadata(_, context),
|
|
2878
|
+
nextToken: __expectString,
|
|
2879
|
+
});
|
|
2880
|
+
Object.assign(contents, doc);
|
|
2936
2881
|
return contents;
|
|
2937
2882
|
};
|
|
2938
2883
|
const de_ListAssessmentsCommandError = async (output, context) => {
|
|
@@ -2953,10 +2898,9 @@ const de_ListAssessmentsCommandError = async (output, context) => {
|
|
|
2953
2898
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2954
2899
|
default:
|
|
2955
2900
|
const parsedBody = parsedOutput.body;
|
|
2956
|
-
throwDefaultError({
|
|
2901
|
+
return throwDefaultError({
|
|
2957
2902
|
output,
|
|
2958
2903
|
parsedBody,
|
|
2959
|
-
exceptionCtor: __BaseException,
|
|
2960
2904
|
errorCode,
|
|
2961
2905
|
});
|
|
2962
2906
|
}
|
|
@@ -2969,12 +2913,11 @@ export const de_ListControlDomainInsightsCommand = async (output, context) => {
|
|
|
2969
2913
|
$metadata: deserializeMetadata(output),
|
|
2970
2914
|
});
|
|
2971
2915
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
}
|
|
2916
|
+
const doc = take(data, {
|
|
2917
|
+
controlDomainInsights: (_) => de_ControlDomainInsightsList(_, context),
|
|
2918
|
+
nextToken: __expectString,
|
|
2919
|
+
});
|
|
2920
|
+
Object.assign(contents, doc);
|
|
2978
2921
|
return contents;
|
|
2979
2922
|
};
|
|
2980
2923
|
const de_ListControlDomainInsightsCommandError = async (output, context) => {
|
|
@@ -2998,10 +2941,9 @@ const de_ListControlDomainInsightsCommandError = async (output, context) => {
|
|
|
2998
2941
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2999
2942
|
default:
|
|
3000
2943
|
const parsedBody = parsedOutput.body;
|
|
3001
|
-
throwDefaultError({
|
|
2944
|
+
return throwDefaultError({
|
|
3002
2945
|
output,
|
|
3003
2946
|
parsedBody,
|
|
3004
|
-
exceptionCtor: __BaseException,
|
|
3005
2947
|
errorCode,
|
|
3006
2948
|
});
|
|
3007
2949
|
}
|
|
@@ -3014,12 +2956,11 @@ export const de_ListControlDomainInsightsByAssessmentCommand = async (output, co
|
|
|
3014
2956
|
$metadata: deserializeMetadata(output),
|
|
3015
2957
|
});
|
|
3016
2958
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
}
|
|
2959
|
+
const doc = take(data, {
|
|
2960
|
+
controlDomainInsights: (_) => de_ControlDomainInsightsList(_, context),
|
|
2961
|
+
nextToken: __expectString,
|
|
2962
|
+
});
|
|
2963
|
+
Object.assign(contents, doc);
|
|
3023
2964
|
return contents;
|
|
3024
2965
|
};
|
|
3025
2966
|
const de_ListControlDomainInsightsByAssessmentCommandError = async (output, context) => {
|
|
@@ -3043,10 +2984,9 @@ const de_ListControlDomainInsightsByAssessmentCommandError = async (output, cont
|
|
|
3043
2984
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3044
2985
|
default:
|
|
3045
2986
|
const parsedBody = parsedOutput.body;
|
|
3046
|
-
throwDefaultError({
|
|
2987
|
+
return throwDefaultError({
|
|
3047
2988
|
output,
|
|
3048
2989
|
parsedBody,
|
|
3049
|
-
exceptionCtor: __BaseException,
|
|
3050
2990
|
errorCode,
|
|
3051
2991
|
});
|
|
3052
2992
|
}
|
|
@@ -3059,12 +2999,11 @@ export const de_ListControlInsightsByControlDomainCommand = async (output, conte
|
|
|
3059
2999
|
$metadata: deserializeMetadata(output),
|
|
3060
3000
|
});
|
|
3061
3001
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
}
|
|
3002
|
+
const doc = take(data, {
|
|
3003
|
+
controlInsightsMetadata: (_) => de_ControlInsightsMetadata(_, context),
|
|
3004
|
+
nextToken: __expectString,
|
|
3005
|
+
});
|
|
3006
|
+
Object.assign(contents, doc);
|
|
3068
3007
|
return contents;
|
|
3069
3008
|
};
|
|
3070
3009
|
const de_ListControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
@@ -3088,10 +3027,9 @@ const de_ListControlInsightsByControlDomainCommandError = async (output, context
|
|
|
3088
3027
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3089
3028
|
default:
|
|
3090
3029
|
const parsedBody = parsedOutput.body;
|
|
3091
|
-
throwDefaultError({
|
|
3030
|
+
return throwDefaultError({
|
|
3092
3031
|
output,
|
|
3093
3032
|
parsedBody,
|
|
3094
|
-
exceptionCtor: __BaseException,
|
|
3095
3033
|
errorCode,
|
|
3096
3034
|
});
|
|
3097
3035
|
}
|
|
@@ -3104,12 +3042,11 @@ export const de_ListControlsCommand = async (output, context) => {
|
|
|
3104
3042
|
$metadata: deserializeMetadata(output),
|
|
3105
3043
|
});
|
|
3106
3044
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
}
|
|
3045
|
+
const doc = take(data, {
|
|
3046
|
+
controlMetadataList: (_) => de_ControlMetadataList(_, context),
|
|
3047
|
+
nextToken: __expectString,
|
|
3048
|
+
});
|
|
3049
|
+
Object.assign(contents, doc);
|
|
3113
3050
|
return contents;
|
|
3114
3051
|
};
|
|
3115
3052
|
const de_ListControlsCommandError = async (output, context) => {
|
|
@@ -3130,10 +3067,9 @@ const de_ListControlsCommandError = async (output, context) => {
|
|
|
3130
3067
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3131
3068
|
default:
|
|
3132
3069
|
const parsedBody = parsedOutput.body;
|
|
3133
|
-
throwDefaultError({
|
|
3070
|
+
return throwDefaultError({
|
|
3134
3071
|
output,
|
|
3135
3072
|
parsedBody,
|
|
3136
|
-
exceptionCtor: __BaseException,
|
|
3137
3073
|
errorCode,
|
|
3138
3074
|
});
|
|
3139
3075
|
}
|
|
@@ -3146,12 +3082,11 @@ export const de_ListKeywordsForDataSourceCommand = async (output, context) => {
|
|
|
3146
3082
|
$metadata: deserializeMetadata(output),
|
|
3147
3083
|
});
|
|
3148
3084
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
}
|
|
3085
|
+
const doc = take(data, {
|
|
3086
|
+
keywords: _json,
|
|
3087
|
+
nextToken: __expectString,
|
|
3088
|
+
});
|
|
3089
|
+
Object.assign(contents, doc);
|
|
3155
3090
|
return contents;
|
|
3156
3091
|
};
|
|
3157
3092
|
const de_ListKeywordsForDataSourceCommandError = async (output, context) => {
|
|
@@ -3172,10 +3107,9 @@ const de_ListKeywordsForDataSourceCommandError = async (output, context) => {
|
|
|
3172
3107
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3173
3108
|
default:
|
|
3174
3109
|
const parsedBody = parsedOutput.body;
|
|
3175
|
-
throwDefaultError({
|
|
3110
|
+
return throwDefaultError({
|
|
3176
3111
|
output,
|
|
3177
3112
|
parsedBody,
|
|
3178
|
-
exceptionCtor: __BaseException,
|
|
3179
3113
|
errorCode,
|
|
3180
3114
|
});
|
|
3181
3115
|
}
|
|
@@ -3188,12 +3122,11 @@ export const de_ListNotificationsCommand = async (output, context) => {
|
|
|
3188
3122
|
$metadata: deserializeMetadata(output),
|
|
3189
3123
|
});
|
|
3190
3124
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
}
|
|
3125
|
+
const doc = take(data, {
|
|
3126
|
+
nextToken: __expectString,
|
|
3127
|
+
notifications: (_) => de_Notifications(_, context),
|
|
3128
|
+
});
|
|
3129
|
+
Object.assign(contents, doc);
|
|
3197
3130
|
return contents;
|
|
3198
3131
|
};
|
|
3199
3132
|
const de_ListNotificationsCommandError = async (output, context) => {
|
|
@@ -3214,10 +3147,9 @@ const de_ListNotificationsCommandError = async (output, context) => {
|
|
|
3214
3147
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3215
3148
|
default:
|
|
3216
3149
|
const parsedBody = parsedOutput.body;
|
|
3217
|
-
throwDefaultError({
|
|
3150
|
+
return throwDefaultError({
|
|
3218
3151
|
output,
|
|
3219
3152
|
parsedBody,
|
|
3220
|
-
exceptionCtor: __BaseException,
|
|
3221
3153
|
errorCode,
|
|
3222
3154
|
});
|
|
3223
3155
|
}
|
|
@@ -3230,9 +3162,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
3230
3162
|
$metadata: deserializeMetadata(output),
|
|
3231
3163
|
});
|
|
3232
3164
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
}
|
|
3165
|
+
const doc = take(data, {
|
|
3166
|
+
tags: _json,
|
|
3167
|
+
});
|
|
3168
|
+
Object.assign(contents, doc);
|
|
3236
3169
|
return contents;
|
|
3237
3170
|
};
|
|
3238
3171
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -3253,10 +3186,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
3253
3186
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3254
3187
|
default:
|
|
3255
3188
|
const parsedBody = parsedOutput.body;
|
|
3256
|
-
throwDefaultError({
|
|
3189
|
+
return throwDefaultError({
|
|
3257
3190
|
output,
|
|
3258
3191
|
parsedBody,
|
|
3259
|
-
exceptionCtor: __BaseException,
|
|
3260
3192
|
errorCode,
|
|
3261
3193
|
});
|
|
3262
3194
|
}
|
|
@@ -3269,9 +3201,10 @@ export const de_RegisterAccountCommand = async (output, context) => {
|
|
|
3269
3201
|
$metadata: deserializeMetadata(output),
|
|
3270
3202
|
});
|
|
3271
3203
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
}
|
|
3204
|
+
const doc = take(data, {
|
|
3205
|
+
status: __expectString,
|
|
3206
|
+
});
|
|
3207
|
+
Object.assign(contents, doc);
|
|
3275
3208
|
return contents;
|
|
3276
3209
|
};
|
|
3277
3210
|
const de_RegisterAccountCommandError = async (output, context) => {
|
|
@@ -3298,10 +3231,9 @@ const de_RegisterAccountCommandError = async (output, context) => {
|
|
|
3298
3231
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3299
3232
|
default:
|
|
3300
3233
|
const parsedBody = parsedOutput.body;
|
|
3301
|
-
throwDefaultError({
|
|
3234
|
+
return throwDefaultError({
|
|
3302
3235
|
output,
|
|
3303
3236
|
parsedBody,
|
|
3304
|
-
exceptionCtor: __BaseException,
|
|
3305
3237
|
errorCode,
|
|
3306
3238
|
});
|
|
3307
3239
|
}
|
|
@@ -3314,12 +3246,11 @@ export const de_RegisterOrganizationAdminAccountCommand = async (output, context
|
|
|
3314
3246
|
$metadata: deserializeMetadata(output),
|
|
3315
3247
|
});
|
|
3316
3248
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
}
|
|
3249
|
+
const doc = take(data, {
|
|
3250
|
+
adminAccountId: __expectString,
|
|
3251
|
+
organizationId: __expectString,
|
|
3252
|
+
});
|
|
3253
|
+
Object.assign(contents, doc);
|
|
3323
3254
|
return contents;
|
|
3324
3255
|
};
|
|
3325
3256
|
const de_RegisterOrganizationAdminAccountCommandError = async (output, context) => {
|
|
@@ -3343,10 +3274,9 @@ const de_RegisterOrganizationAdminAccountCommandError = async (output, context)
|
|
|
3343
3274
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3344
3275
|
default:
|
|
3345
3276
|
const parsedBody = parsedOutput.body;
|
|
3346
|
-
throwDefaultError({
|
|
3277
|
+
return throwDefaultError({
|
|
3347
3278
|
output,
|
|
3348
3279
|
parsedBody,
|
|
3349
|
-
exceptionCtor: __BaseException,
|
|
3350
3280
|
errorCode,
|
|
3351
3281
|
});
|
|
3352
3282
|
}
|
|
@@ -3359,9 +3289,10 @@ export const de_StartAssessmentFrameworkShareCommand = async (output, context) =
|
|
|
3359
3289
|
$metadata: deserializeMetadata(output),
|
|
3360
3290
|
});
|
|
3361
3291
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
}
|
|
3292
|
+
const doc = take(data, {
|
|
3293
|
+
assessmentFrameworkShareRequest: (_) => de_AssessmentFrameworkShareRequest(_, context),
|
|
3294
|
+
});
|
|
3295
|
+
Object.assign(contents, doc);
|
|
3365
3296
|
return contents;
|
|
3366
3297
|
};
|
|
3367
3298
|
const de_StartAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
@@ -3385,10 +3316,9 @@ const de_StartAssessmentFrameworkShareCommandError = async (output, context) =>
|
|
|
3385
3316
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3386
3317
|
default:
|
|
3387
3318
|
const parsedBody = parsedOutput.body;
|
|
3388
|
-
throwDefaultError({
|
|
3319
|
+
return throwDefaultError({
|
|
3389
3320
|
output,
|
|
3390
3321
|
parsedBody,
|
|
3391
|
-
exceptionCtor: __BaseException,
|
|
3392
3322
|
errorCode,
|
|
3393
3323
|
});
|
|
3394
3324
|
}
|
|
@@ -3421,10 +3351,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
3421
3351
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3422
3352
|
default:
|
|
3423
3353
|
const parsedBody = parsedOutput.body;
|
|
3424
|
-
throwDefaultError({
|
|
3354
|
+
return throwDefaultError({
|
|
3425
3355
|
output,
|
|
3426
3356
|
parsedBody,
|
|
3427
|
-
exceptionCtor: __BaseException,
|
|
3428
3357
|
errorCode,
|
|
3429
3358
|
});
|
|
3430
3359
|
}
|
|
@@ -3457,10 +3386,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
3457
3386
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3458
3387
|
default:
|
|
3459
3388
|
const parsedBody = parsedOutput.body;
|
|
3460
|
-
throwDefaultError({
|
|
3389
|
+
return throwDefaultError({
|
|
3461
3390
|
output,
|
|
3462
3391
|
parsedBody,
|
|
3463
|
-
exceptionCtor: __BaseException,
|
|
3464
3392
|
errorCode,
|
|
3465
3393
|
});
|
|
3466
3394
|
}
|
|
@@ -3473,9 +3401,10 @@ export const de_UpdateAssessmentCommand = async (output, context) => {
|
|
|
3473
3401
|
$metadata: deserializeMetadata(output),
|
|
3474
3402
|
});
|
|
3475
3403
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
}
|
|
3404
|
+
const doc = take(data, {
|
|
3405
|
+
assessment: (_) => de_Assessment(_, context),
|
|
3406
|
+
});
|
|
3407
|
+
Object.assign(contents, doc);
|
|
3479
3408
|
return contents;
|
|
3480
3409
|
};
|
|
3481
3410
|
const de_UpdateAssessmentCommandError = async (output, context) => {
|
|
@@ -3499,10 +3428,9 @@ const de_UpdateAssessmentCommandError = async (output, context) => {
|
|
|
3499
3428
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3500
3429
|
default:
|
|
3501
3430
|
const parsedBody = parsedOutput.body;
|
|
3502
|
-
throwDefaultError({
|
|
3431
|
+
return throwDefaultError({
|
|
3503
3432
|
output,
|
|
3504
3433
|
parsedBody,
|
|
3505
|
-
exceptionCtor: __BaseException,
|
|
3506
3434
|
errorCode,
|
|
3507
3435
|
});
|
|
3508
3436
|
}
|
|
@@ -3515,9 +3443,10 @@ export const de_UpdateAssessmentControlCommand = async (output, context) => {
|
|
|
3515
3443
|
$metadata: deserializeMetadata(output),
|
|
3516
3444
|
});
|
|
3517
3445
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
}
|
|
3446
|
+
const doc = take(data, {
|
|
3447
|
+
control: (_) => de_AssessmentControl(_, context),
|
|
3448
|
+
});
|
|
3449
|
+
Object.assign(contents, doc);
|
|
3521
3450
|
return contents;
|
|
3522
3451
|
};
|
|
3523
3452
|
const de_UpdateAssessmentControlCommandError = async (output, context) => {
|
|
@@ -3541,10 +3470,9 @@ const de_UpdateAssessmentControlCommandError = async (output, context) => {
|
|
|
3541
3470
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3542
3471
|
default:
|
|
3543
3472
|
const parsedBody = parsedOutput.body;
|
|
3544
|
-
throwDefaultError({
|
|
3473
|
+
return throwDefaultError({
|
|
3545
3474
|
output,
|
|
3546
3475
|
parsedBody,
|
|
3547
|
-
exceptionCtor: __BaseException,
|
|
3548
3476
|
errorCode,
|
|
3549
3477
|
});
|
|
3550
3478
|
}
|
|
@@ -3557,9 +3485,10 @@ export const de_UpdateAssessmentControlSetStatusCommand = async (output, context
|
|
|
3557
3485
|
$metadata: deserializeMetadata(output),
|
|
3558
3486
|
});
|
|
3559
3487
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
}
|
|
3488
|
+
const doc = take(data, {
|
|
3489
|
+
controlSet: (_) => de_AssessmentControlSet(_, context),
|
|
3490
|
+
});
|
|
3491
|
+
Object.assign(contents, doc);
|
|
3563
3492
|
return contents;
|
|
3564
3493
|
};
|
|
3565
3494
|
const de_UpdateAssessmentControlSetStatusCommandError = async (output, context) => {
|
|
@@ -3583,10 +3512,9 @@ const de_UpdateAssessmentControlSetStatusCommandError = async (output, context)
|
|
|
3583
3512
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3584
3513
|
default:
|
|
3585
3514
|
const parsedBody = parsedOutput.body;
|
|
3586
|
-
throwDefaultError({
|
|
3515
|
+
return throwDefaultError({
|
|
3587
3516
|
output,
|
|
3588
3517
|
parsedBody,
|
|
3589
|
-
exceptionCtor: __BaseException,
|
|
3590
3518
|
errorCode,
|
|
3591
3519
|
});
|
|
3592
3520
|
}
|
|
@@ -3599,9 +3527,10 @@ export const de_UpdateAssessmentFrameworkCommand = async (output, context) => {
|
|
|
3599
3527
|
$metadata: deserializeMetadata(output),
|
|
3600
3528
|
});
|
|
3601
3529
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
}
|
|
3530
|
+
const doc = take(data, {
|
|
3531
|
+
framework: (_) => de_Framework(_, context),
|
|
3532
|
+
});
|
|
3533
|
+
Object.assign(contents, doc);
|
|
3605
3534
|
return contents;
|
|
3606
3535
|
};
|
|
3607
3536
|
const de_UpdateAssessmentFrameworkCommandError = async (output, context) => {
|
|
@@ -3625,10 +3554,9 @@ const de_UpdateAssessmentFrameworkCommandError = async (output, context) => {
|
|
|
3625
3554
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3626
3555
|
default:
|
|
3627
3556
|
const parsedBody = parsedOutput.body;
|
|
3628
|
-
throwDefaultError({
|
|
3557
|
+
return throwDefaultError({
|
|
3629
3558
|
output,
|
|
3630
3559
|
parsedBody,
|
|
3631
|
-
exceptionCtor: __BaseException,
|
|
3632
3560
|
errorCode,
|
|
3633
3561
|
});
|
|
3634
3562
|
}
|
|
@@ -3641,9 +3569,10 @@ export const de_UpdateAssessmentFrameworkShareCommand = async (output, context)
|
|
|
3641
3569
|
$metadata: deserializeMetadata(output),
|
|
3642
3570
|
});
|
|
3643
3571
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
}
|
|
3572
|
+
const doc = take(data, {
|
|
3573
|
+
assessmentFrameworkShareRequest: (_) => de_AssessmentFrameworkShareRequest(_, context),
|
|
3574
|
+
});
|
|
3575
|
+
Object.assign(contents, doc);
|
|
3647
3576
|
return contents;
|
|
3648
3577
|
};
|
|
3649
3578
|
const de_UpdateAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
@@ -3670,10 +3599,9 @@ const de_UpdateAssessmentFrameworkShareCommandError = async (output, context) =>
|
|
|
3670
3599
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3671
3600
|
default:
|
|
3672
3601
|
const parsedBody = parsedOutput.body;
|
|
3673
|
-
throwDefaultError({
|
|
3602
|
+
return throwDefaultError({
|
|
3674
3603
|
output,
|
|
3675
3604
|
parsedBody,
|
|
3676
|
-
exceptionCtor: __BaseException,
|
|
3677
3605
|
errorCode,
|
|
3678
3606
|
});
|
|
3679
3607
|
}
|
|
@@ -3686,9 +3614,10 @@ export const de_UpdateAssessmentStatusCommand = async (output, context) => {
|
|
|
3686
3614
|
$metadata: deserializeMetadata(output),
|
|
3687
3615
|
});
|
|
3688
3616
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
}
|
|
3617
|
+
const doc = take(data, {
|
|
3618
|
+
assessment: (_) => de_Assessment(_, context),
|
|
3619
|
+
});
|
|
3620
|
+
Object.assign(contents, doc);
|
|
3692
3621
|
return contents;
|
|
3693
3622
|
};
|
|
3694
3623
|
const de_UpdateAssessmentStatusCommandError = async (output, context) => {
|
|
@@ -3715,10 +3644,9 @@ const de_UpdateAssessmentStatusCommandError = async (output, context) => {
|
|
|
3715
3644
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3716
3645
|
default:
|
|
3717
3646
|
const parsedBody = parsedOutput.body;
|
|
3718
|
-
throwDefaultError({
|
|
3647
|
+
return throwDefaultError({
|
|
3719
3648
|
output,
|
|
3720
3649
|
parsedBody,
|
|
3721
|
-
exceptionCtor: __BaseException,
|
|
3722
3650
|
errorCode,
|
|
3723
3651
|
});
|
|
3724
3652
|
}
|
|
@@ -3731,9 +3659,10 @@ export const de_UpdateControlCommand = async (output, context) => {
|
|
|
3731
3659
|
$metadata: deserializeMetadata(output),
|
|
3732
3660
|
});
|
|
3733
3661
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
}
|
|
3662
|
+
const doc = take(data, {
|
|
3663
|
+
control: (_) => de_Control(_, context),
|
|
3664
|
+
});
|
|
3665
|
+
Object.assign(contents, doc);
|
|
3737
3666
|
return contents;
|
|
3738
3667
|
};
|
|
3739
3668
|
const de_UpdateControlCommandError = async (output, context) => {
|
|
@@ -3757,10 +3686,9 @@ const de_UpdateControlCommandError = async (output, context) => {
|
|
|
3757
3686
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3758
3687
|
default:
|
|
3759
3688
|
const parsedBody = parsedOutput.body;
|
|
3760
|
-
throwDefaultError({
|
|
3689
|
+
return throwDefaultError({
|
|
3761
3690
|
output,
|
|
3762
3691
|
parsedBody,
|
|
3763
|
-
exceptionCtor: __BaseException,
|
|
3764
3692
|
errorCode,
|
|
3765
3693
|
});
|
|
3766
3694
|
}
|
|
@@ -3773,9 +3701,10 @@ export const de_UpdateSettingsCommand = async (output, context) => {
|
|
|
3773
3701
|
$metadata: deserializeMetadata(output),
|
|
3774
3702
|
});
|
|
3775
3703
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
}
|
|
3704
|
+
const doc = take(data, {
|
|
3705
|
+
settings: _json,
|
|
3706
|
+
});
|
|
3707
|
+
Object.assign(contents, doc);
|
|
3779
3708
|
return contents;
|
|
3780
3709
|
};
|
|
3781
3710
|
const de_UpdateSettingsCommandError = async (output, context) => {
|
|
@@ -3796,10 +3725,9 @@ const de_UpdateSettingsCommandError = async (output, context) => {
|
|
|
3796
3725
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3797
3726
|
default:
|
|
3798
3727
|
const parsedBody = parsedOutput.body;
|
|
3799
|
-
throwDefaultError({
|
|
3728
|
+
return throwDefaultError({
|
|
3800
3729
|
output,
|
|
3801
3730
|
parsedBody,
|
|
3802
|
-
exceptionCtor: __BaseException,
|
|
3803
3731
|
errorCode,
|
|
3804
3732
|
});
|
|
3805
3733
|
}
|
|
@@ -3812,21 +3740,14 @@ export const de_ValidateAssessmentReportIntegrityCommand = async (output, contex
|
|
|
3812
3740
|
$metadata: deserializeMetadata(output),
|
|
3813
3741
|
});
|
|
3814
3742
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
}
|
|
3824
|
-
if (data.signatureValid != null) {
|
|
3825
|
-
contents.signatureValid = __expectBoolean(data.signatureValid);
|
|
3826
|
-
}
|
|
3827
|
-
if (data.validationErrors != null) {
|
|
3828
|
-
contents.validationErrors = de_ValidationErrors(data.validationErrors, context);
|
|
3829
|
-
}
|
|
3743
|
+
const doc = take(data, {
|
|
3744
|
+
signatureAlgorithm: __expectString,
|
|
3745
|
+
signatureDateTime: __expectString,
|
|
3746
|
+
signatureKeyId: __expectString,
|
|
3747
|
+
signatureValid: __expectBoolean,
|
|
3748
|
+
validationErrors: _json,
|
|
3749
|
+
});
|
|
3750
|
+
Object.assign(contents, doc);
|
|
3830
3751
|
return contents;
|
|
3831
3752
|
};
|
|
3832
3753
|
const de_ValidateAssessmentReportIntegrityCommandError = async (output, context) => {
|
|
@@ -3850,21 +3771,21 @@ const de_ValidateAssessmentReportIntegrityCommandError = async (output, context)
|
|
|
3850
3771
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3851
3772
|
default:
|
|
3852
3773
|
const parsedBody = parsedOutput.body;
|
|
3853
|
-
throwDefaultError({
|
|
3774
|
+
return throwDefaultError({
|
|
3854
3775
|
output,
|
|
3855
3776
|
parsedBody,
|
|
3856
|
-
exceptionCtor: __BaseException,
|
|
3857
3777
|
errorCode,
|
|
3858
3778
|
});
|
|
3859
3779
|
}
|
|
3860
3780
|
};
|
|
3861
|
-
const
|
|
3781
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3862
3782
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3863
3783
|
const contents = map({});
|
|
3864
3784
|
const data = parsedOutput.body;
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
}
|
|
3785
|
+
const doc = take(data, {
|
|
3786
|
+
message: __expectString,
|
|
3787
|
+
});
|
|
3788
|
+
Object.assign(contents, doc);
|
|
3868
3789
|
const exception = new AccessDeniedException({
|
|
3869
3790
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3870
3791
|
...contents,
|
|
@@ -3874,9 +3795,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
3874
3795
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3875
3796
|
const contents = map({});
|
|
3876
3797
|
const data = parsedOutput.body;
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
}
|
|
3798
|
+
const doc = take(data, {
|
|
3799
|
+
message: __expectString,
|
|
3800
|
+
});
|
|
3801
|
+
Object.assign(contents, doc);
|
|
3880
3802
|
const exception = new InternalServerException({
|
|
3881
3803
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3882
3804
|
...contents,
|
|
@@ -3886,15 +3808,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
3886
3808
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3887
3809
|
const contents = map({});
|
|
3888
3810
|
const data = parsedOutput.body;
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
if (data.resourceType != null) {
|
|
3896
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
3897
|
-
}
|
|
3811
|
+
const doc = take(data, {
|
|
3812
|
+
message: __expectString,
|
|
3813
|
+
resourceId: __expectString,
|
|
3814
|
+
resourceType: __expectString,
|
|
3815
|
+
});
|
|
3816
|
+
Object.assign(contents, doc);
|
|
3898
3817
|
const exception = new ResourceNotFoundException({
|
|
3899
3818
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3900
3819
|
...contents,
|
|
@@ -3904,9 +3823,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
3904
3823
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3905
3824
|
const contents = map({});
|
|
3906
3825
|
const data = parsedOutput.body;
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
}
|
|
3826
|
+
const doc = take(data, {
|
|
3827
|
+
message: __expectString,
|
|
3828
|
+
});
|
|
3829
|
+
Object.assign(contents, doc);
|
|
3910
3830
|
const exception = new ServiceQuotaExceededException({
|
|
3911
3831
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3912
3832
|
...contents,
|
|
@@ -3916,9 +3836,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
3916
3836
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3917
3837
|
const contents = map({});
|
|
3918
3838
|
const data = parsedOutput.body;
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
}
|
|
3839
|
+
const doc = take(data, {
|
|
3840
|
+
message: __expectString,
|
|
3841
|
+
});
|
|
3842
|
+
Object.assign(contents, doc);
|
|
3922
3843
|
const exception = new ThrottlingException({
|
|
3923
3844
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3924
3845
|
...contents,
|
|
@@ -3928,630 +3849,273 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
3928
3849
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3929
3850
|
const contents = map({});
|
|
3930
3851
|
const data = parsedOutput.body;
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
if (data.reason != null) {
|
|
3938
|
-
contents.reason = __expectString(data.reason);
|
|
3939
|
-
}
|
|
3852
|
+
const doc = take(data, {
|
|
3853
|
+
fields: _json,
|
|
3854
|
+
message: __expectString,
|
|
3855
|
+
reason: __expectString,
|
|
3856
|
+
});
|
|
3857
|
+
Object.assign(contents, doc);
|
|
3940
3858
|
const exception = new ValidationException({
|
|
3941
3859
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3942
3860
|
...contents,
|
|
3943
3861
|
});
|
|
3944
3862
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3945
3863
|
};
|
|
3946
|
-
const se_AssessmentReportsDestination = (input, context) => {
|
|
3947
|
-
return {
|
|
3948
|
-
...(input.destination != null && { destination: input.destination }),
|
|
3949
|
-
...(input.destinationType != null && { destinationType: input.destinationType }),
|
|
3950
|
-
};
|
|
3951
|
-
};
|
|
3952
|
-
const se_AWSAccount = (input, context) => {
|
|
3953
|
-
return {
|
|
3954
|
-
...(input.emailAddress != null && { emailAddress: input.emailAddress }),
|
|
3955
|
-
...(input.id != null && { id: input.id }),
|
|
3956
|
-
...(input.name != null && { name: input.name }),
|
|
3957
|
-
};
|
|
3958
|
-
};
|
|
3959
|
-
const se_AWSAccounts = (input, context) => {
|
|
3960
|
-
return input
|
|
3961
|
-
.filter((e) => e != null)
|
|
3962
|
-
.map((entry) => {
|
|
3963
|
-
return se_AWSAccount(entry, context);
|
|
3964
|
-
});
|
|
3965
|
-
};
|
|
3966
|
-
const se_AWSService = (input, context) => {
|
|
3967
|
-
return {
|
|
3968
|
-
...(input.serviceName != null && { serviceName: input.serviceName }),
|
|
3969
|
-
};
|
|
3970
|
-
};
|
|
3971
|
-
const se_AWSServices = (input, context) => {
|
|
3972
|
-
return input
|
|
3973
|
-
.filter((e) => e != null)
|
|
3974
|
-
.map((entry) => {
|
|
3975
|
-
return se_AWSService(entry, context);
|
|
3976
|
-
});
|
|
3977
|
-
};
|
|
3978
|
-
const se_ControlMappingSource = (input, context) => {
|
|
3979
|
-
return {
|
|
3980
|
-
...(input.sourceDescription != null && { sourceDescription: input.sourceDescription }),
|
|
3981
|
-
...(input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency }),
|
|
3982
|
-
...(input.sourceId != null && { sourceId: input.sourceId }),
|
|
3983
|
-
...(input.sourceKeyword != null && { sourceKeyword: se_SourceKeyword(input.sourceKeyword, context) }),
|
|
3984
|
-
...(input.sourceName != null && { sourceName: input.sourceName }),
|
|
3985
|
-
...(input.sourceSetUpOption != null && { sourceSetUpOption: input.sourceSetUpOption }),
|
|
3986
|
-
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
3987
|
-
...(input.troubleshootingText != null && { troubleshootingText: input.troubleshootingText }),
|
|
3988
|
-
};
|
|
3989
|
-
};
|
|
3990
|
-
const se_ControlMappingSources = (input, context) => {
|
|
3991
|
-
return input
|
|
3992
|
-
.filter((e) => e != null)
|
|
3993
|
-
.map((entry) => {
|
|
3994
|
-
return se_ControlMappingSource(entry, context);
|
|
3995
|
-
});
|
|
3996
|
-
};
|
|
3997
|
-
const se_CreateAssessmentFrameworkControl = (input, context) => {
|
|
3998
|
-
return {
|
|
3999
|
-
...(input.id != null && { id: input.id }),
|
|
4000
|
-
};
|
|
4001
|
-
};
|
|
4002
|
-
const se_CreateAssessmentFrameworkControls = (input, context) => {
|
|
4003
|
-
return input
|
|
4004
|
-
.filter((e) => e != null)
|
|
4005
|
-
.map((entry) => {
|
|
4006
|
-
return se_CreateAssessmentFrameworkControl(entry, context);
|
|
4007
|
-
});
|
|
4008
|
-
};
|
|
4009
|
-
const se_CreateAssessmentFrameworkControlSet = (input, context) => {
|
|
4010
|
-
return {
|
|
4011
|
-
...(input.controls != null && { controls: se_CreateAssessmentFrameworkControls(input.controls, context) }),
|
|
4012
|
-
...(input.name != null && { name: input.name }),
|
|
4013
|
-
};
|
|
4014
|
-
};
|
|
4015
|
-
const se_CreateAssessmentFrameworkControlSets = (input, context) => {
|
|
4016
|
-
return input
|
|
4017
|
-
.filter((e) => e != null)
|
|
4018
|
-
.map((entry) => {
|
|
4019
|
-
return se_CreateAssessmentFrameworkControlSet(entry, context);
|
|
4020
|
-
});
|
|
4021
|
-
};
|
|
4022
|
-
const se_CreateControlMappingSource = (input, context) => {
|
|
4023
|
-
return {
|
|
4024
|
-
...(input.sourceDescription != null && { sourceDescription: input.sourceDescription }),
|
|
4025
|
-
...(input.sourceFrequency != null && { sourceFrequency: input.sourceFrequency }),
|
|
4026
|
-
...(input.sourceKeyword != null && { sourceKeyword: se_SourceKeyword(input.sourceKeyword, context) }),
|
|
4027
|
-
...(input.sourceName != null && { sourceName: input.sourceName }),
|
|
4028
|
-
...(input.sourceSetUpOption != null && { sourceSetUpOption: input.sourceSetUpOption }),
|
|
4029
|
-
...(input.sourceType != null && { sourceType: input.sourceType }),
|
|
4030
|
-
...(input.troubleshootingText != null && { troubleshootingText: input.troubleshootingText }),
|
|
4031
|
-
};
|
|
4032
|
-
};
|
|
4033
|
-
const se_CreateControlMappingSources = (input, context) => {
|
|
4034
|
-
return input
|
|
4035
|
-
.filter((e) => e != null)
|
|
4036
|
-
.map((entry) => {
|
|
4037
|
-
return se_CreateControlMappingSource(entry, context);
|
|
4038
|
-
});
|
|
4039
|
-
};
|
|
4040
|
-
const se_CreateDelegationRequest = (input, context) => {
|
|
4041
|
-
return {
|
|
4042
|
-
...(input.comment != null && { comment: input.comment }),
|
|
4043
|
-
...(input.controlSetId != null && { controlSetId: input.controlSetId }),
|
|
4044
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
4045
|
-
...(input.roleType != null && { roleType: input.roleType }),
|
|
4046
|
-
};
|
|
4047
|
-
};
|
|
4048
|
-
const se_CreateDelegationRequests = (input, context) => {
|
|
4049
|
-
return input
|
|
4050
|
-
.filter((e) => e != null)
|
|
4051
|
-
.map((entry) => {
|
|
4052
|
-
return se_CreateDelegationRequest(entry, context);
|
|
4053
|
-
});
|
|
4054
|
-
};
|
|
4055
|
-
const se_DelegationIds = (input, context) => {
|
|
4056
|
-
return input
|
|
4057
|
-
.filter((e) => e != null)
|
|
4058
|
-
.map((entry) => {
|
|
4059
|
-
return entry;
|
|
4060
|
-
});
|
|
4061
|
-
};
|
|
4062
|
-
const se_DeregistrationPolicy = (input, context) => {
|
|
4063
|
-
return {
|
|
4064
|
-
...(input.deleteResources != null && { deleteResources: input.deleteResources }),
|
|
4065
|
-
};
|
|
4066
|
-
};
|
|
4067
|
-
const se_EvidenceIds = (input, context) => {
|
|
4068
|
-
return input
|
|
4069
|
-
.filter((e) => e != null)
|
|
4070
|
-
.map((entry) => {
|
|
4071
|
-
return entry;
|
|
4072
|
-
});
|
|
4073
|
-
};
|
|
4074
|
-
const se_ManualEvidence = (input, context) => {
|
|
4075
|
-
return {
|
|
4076
|
-
...(input.s3ResourcePath != null && { s3ResourcePath: input.s3ResourcePath }),
|
|
4077
|
-
};
|
|
4078
|
-
};
|
|
4079
|
-
const se_ManualEvidenceList = (input, context) => {
|
|
4080
|
-
return input
|
|
4081
|
-
.filter((e) => e != null)
|
|
4082
|
-
.map((entry) => {
|
|
4083
|
-
return se_ManualEvidence(entry, context);
|
|
4084
|
-
});
|
|
4085
|
-
};
|
|
4086
|
-
const se_Role = (input, context) => {
|
|
4087
|
-
return {
|
|
4088
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
4089
|
-
...(input.roleType != null && { roleType: input.roleType }),
|
|
4090
|
-
};
|
|
4091
|
-
};
|
|
4092
|
-
const se_Roles = (input, context) => {
|
|
4093
|
-
return input
|
|
4094
|
-
.filter((e) => e != null)
|
|
4095
|
-
.map((entry) => {
|
|
4096
|
-
return se_Role(entry, context);
|
|
4097
|
-
});
|
|
4098
|
-
};
|
|
4099
|
-
const se_Scope = (input, context) => {
|
|
4100
|
-
return {
|
|
4101
|
-
...(input.awsAccounts != null && { awsAccounts: se_AWSAccounts(input.awsAccounts, context) }),
|
|
4102
|
-
...(input.awsServices != null && { awsServices: se_AWSServices(input.awsServices, context) }),
|
|
4103
|
-
};
|
|
4104
|
-
};
|
|
4105
|
-
const se_SourceKeyword = (input, context) => {
|
|
4106
|
-
return {
|
|
4107
|
-
...(input.keywordInputType != null && { keywordInputType: input.keywordInputType }),
|
|
4108
|
-
...(input.keywordValue != null && { keywordValue: input.keywordValue }),
|
|
4109
|
-
};
|
|
4110
|
-
};
|
|
4111
|
-
const se_TagMap = (input, context) => {
|
|
4112
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4113
|
-
if (value === null) {
|
|
4114
|
-
return acc;
|
|
4115
|
-
}
|
|
4116
|
-
acc[key] = value;
|
|
4117
|
-
return acc;
|
|
4118
|
-
}, {});
|
|
4119
|
-
};
|
|
4120
|
-
const se_UpdateAssessmentFrameworkControlSet = (input, context) => {
|
|
4121
|
-
return {
|
|
4122
|
-
...(input.controls != null && { controls: se_CreateAssessmentFrameworkControls(input.controls, context) }),
|
|
4123
|
-
...(input.id != null && { id: input.id }),
|
|
4124
|
-
...(input.name != null && { name: input.name }),
|
|
4125
|
-
};
|
|
4126
|
-
};
|
|
4127
|
-
const se_UpdateAssessmentFrameworkControlSets = (input, context) => {
|
|
4128
|
-
return input
|
|
4129
|
-
.filter((e) => e != null)
|
|
4130
|
-
.map((entry) => {
|
|
4131
|
-
return se_UpdateAssessmentFrameworkControlSet(entry, context);
|
|
4132
|
-
});
|
|
4133
|
-
};
|
|
4134
3864
|
const de_Assessment = (output, context) => {
|
|
4135
|
-
return {
|
|
4136
|
-
arn: __expectString
|
|
4137
|
-
awsAccount:
|
|
4138
|
-
framework:
|
|
4139
|
-
metadata:
|
|
4140
|
-
tags:
|
|
4141
|
-
};
|
|
3865
|
+
return take(output, {
|
|
3866
|
+
arn: __expectString,
|
|
3867
|
+
awsAccount: _json,
|
|
3868
|
+
framework: (_) => de_AssessmentFramework(_, context),
|
|
3869
|
+
metadata: (_) => de_AssessmentMetadata(_, context),
|
|
3870
|
+
tags: _json,
|
|
3871
|
+
});
|
|
4142
3872
|
};
|
|
4143
3873
|
const de_AssessmentControl = (output, context) => {
|
|
4144
|
-
return {
|
|
4145
|
-
assessmentReportEvidenceCount: __expectInt32
|
|
4146
|
-
comments:
|
|
4147
|
-
description: __expectString
|
|
4148
|
-
evidenceCount: __expectInt32
|
|
4149
|
-
evidenceSources:
|
|
4150
|
-
id: __expectString
|
|
4151
|
-
name: __expectString
|
|
4152
|
-
response: __expectString
|
|
4153
|
-
status: __expectString
|
|
4154
|
-
};
|
|
3874
|
+
return take(output, {
|
|
3875
|
+
assessmentReportEvidenceCount: __expectInt32,
|
|
3876
|
+
comments: (_) => de_ControlComments(_, context),
|
|
3877
|
+
description: __expectString,
|
|
3878
|
+
evidenceCount: __expectInt32,
|
|
3879
|
+
evidenceSources: _json,
|
|
3880
|
+
id: __expectString,
|
|
3881
|
+
name: __expectString,
|
|
3882
|
+
response: __expectString,
|
|
3883
|
+
status: __expectString,
|
|
3884
|
+
});
|
|
4155
3885
|
};
|
|
4156
3886
|
const de_AssessmentControls = (output, context) => {
|
|
4157
3887
|
const retVal = (output || [])
|
|
4158
3888
|
.filter((e) => e != null)
|
|
4159
3889
|
.map((entry) => {
|
|
4160
|
-
if (entry === null) {
|
|
4161
|
-
return null;
|
|
4162
|
-
}
|
|
4163
3890
|
return de_AssessmentControl(entry, context);
|
|
4164
3891
|
});
|
|
4165
3892
|
return retVal;
|
|
4166
3893
|
};
|
|
4167
3894
|
const de_AssessmentControlSet = (output, context) => {
|
|
4168
|
-
return {
|
|
4169
|
-
controls:
|
|
4170
|
-
delegations:
|
|
4171
|
-
description: __expectString
|
|
4172
|
-
id: __expectString
|
|
4173
|
-
manualEvidenceCount: __expectInt32
|
|
4174
|
-
roles:
|
|
4175
|
-
status: __expectString
|
|
4176
|
-
systemEvidenceCount: __expectInt32
|
|
4177
|
-
};
|
|
3895
|
+
return take(output, {
|
|
3896
|
+
controls: (_) => de_AssessmentControls(_, context),
|
|
3897
|
+
delegations: (_) => de_Delegations(_, context),
|
|
3898
|
+
description: __expectString,
|
|
3899
|
+
id: __expectString,
|
|
3900
|
+
manualEvidenceCount: __expectInt32,
|
|
3901
|
+
roles: _json,
|
|
3902
|
+
status: __expectString,
|
|
3903
|
+
systemEvidenceCount: __expectInt32,
|
|
3904
|
+
});
|
|
4178
3905
|
};
|
|
4179
3906
|
const de_AssessmentControlSets = (output, context) => {
|
|
4180
3907
|
const retVal = (output || [])
|
|
4181
3908
|
.filter((e) => e != null)
|
|
4182
3909
|
.map((entry) => {
|
|
4183
|
-
if (entry === null) {
|
|
4184
|
-
return null;
|
|
4185
|
-
}
|
|
4186
3910
|
return de_AssessmentControlSet(entry, context);
|
|
4187
3911
|
});
|
|
4188
3912
|
return retVal;
|
|
4189
3913
|
};
|
|
4190
3914
|
const de_AssessmentEvidenceFolder = (output, context) => {
|
|
4191
|
-
return {
|
|
4192
|
-
assessmentId: __expectString
|
|
4193
|
-
assessmentReportSelectionCount: __expectInt32
|
|
4194
|
-
author: __expectString
|
|
4195
|
-
controlId: __expectString
|
|
4196
|
-
controlName: __expectString
|
|
4197
|
-
controlSetId: __expectString
|
|
4198
|
-
dataSource: __expectString
|
|
4199
|
-
date:
|
|
4200
|
-
evidenceAwsServiceSourceCount: __expectInt32
|
|
4201
|
-
evidenceByTypeComplianceCheckCount: __expectInt32
|
|
4202
|
-
evidenceByTypeComplianceCheckIssuesCount: __expectInt32
|
|
4203
|
-
evidenceByTypeConfigurationDataCount: __expectInt32
|
|
4204
|
-
evidenceByTypeManualCount: __expectInt32
|
|
4205
|
-
evidenceByTypeUserActivityCount: __expectInt32
|
|
4206
|
-
evidenceResourcesIncludedCount: __expectInt32
|
|
4207
|
-
id: __expectString
|
|
4208
|
-
name: __expectString
|
|
4209
|
-
totalEvidence: __expectInt32
|
|
4210
|
-
};
|
|
3915
|
+
return take(output, {
|
|
3916
|
+
assessmentId: __expectString,
|
|
3917
|
+
assessmentReportSelectionCount: __expectInt32,
|
|
3918
|
+
author: __expectString,
|
|
3919
|
+
controlId: __expectString,
|
|
3920
|
+
controlName: __expectString,
|
|
3921
|
+
controlSetId: __expectString,
|
|
3922
|
+
dataSource: __expectString,
|
|
3923
|
+
date: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3924
|
+
evidenceAwsServiceSourceCount: __expectInt32,
|
|
3925
|
+
evidenceByTypeComplianceCheckCount: __expectInt32,
|
|
3926
|
+
evidenceByTypeComplianceCheckIssuesCount: __expectInt32,
|
|
3927
|
+
evidenceByTypeConfigurationDataCount: __expectInt32,
|
|
3928
|
+
evidenceByTypeManualCount: __expectInt32,
|
|
3929
|
+
evidenceByTypeUserActivityCount: __expectInt32,
|
|
3930
|
+
evidenceResourcesIncludedCount: __expectInt32,
|
|
3931
|
+
id: __expectString,
|
|
3932
|
+
name: __expectString,
|
|
3933
|
+
totalEvidence: __expectInt32,
|
|
3934
|
+
});
|
|
4211
3935
|
};
|
|
4212
3936
|
const de_AssessmentEvidenceFolders = (output, context) => {
|
|
4213
3937
|
const retVal = (output || [])
|
|
4214
3938
|
.filter((e) => e != null)
|
|
4215
3939
|
.map((entry) => {
|
|
4216
|
-
if (entry === null) {
|
|
4217
|
-
return null;
|
|
4218
|
-
}
|
|
4219
3940
|
return de_AssessmentEvidenceFolder(entry, context);
|
|
4220
3941
|
});
|
|
4221
3942
|
return retVal;
|
|
4222
3943
|
};
|
|
4223
3944
|
const de_AssessmentFramework = (output, context) => {
|
|
4224
|
-
return {
|
|
4225
|
-
arn: __expectString
|
|
4226
|
-
controlSets:
|
|
4227
|
-
id: __expectString
|
|
4228
|
-
metadata:
|
|
4229
|
-
};
|
|
3945
|
+
return take(output, {
|
|
3946
|
+
arn: __expectString,
|
|
3947
|
+
controlSets: (_) => de_AssessmentControlSets(_, context),
|
|
3948
|
+
id: __expectString,
|
|
3949
|
+
metadata: _json,
|
|
3950
|
+
});
|
|
4230
3951
|
};
|
|
4231
3952
|
const de_AssessmentFrameworkMetadata = (output, context) => {
|
|
4232
|
-
return {
|
|
4233
|
-
arn: __expectString
|
|
4234
|
-
complianceType: __expectString
|
|
4235
|
-
controlSetsCount: __expectInt32
|
|
4236
|
-
controlsCount: __expectInt32
|
|
4237
|
-
createdAt:
|
|
4238
|
-
description: __expectString
|
|
4239
|
-
id: __expectString
|
|
4240
|
-
lastUpdatedAt:
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
type: __expectString(output.type),
|
|
4246
|
-
};
|
|
3953
|
+
return take(output, {
|
|
3954
|
+
arn: __expectString,
|
|
3955
|
+
complianceType: __expectString,
|
|
3956
|
+
controlSetsCount: __expectInt32,
|
|
3957
|
+
controlsCount: __expectInt32,
|
|
3958
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3959
|
+
description: __expectString,
|
|
3960
|
+
id: __expectString,
|
|
3961
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3962
|
+
logo: __expectString,
|
|
3963
|
+
name: __expectString,
|
|
3964
|
+
type: __expectString,
|
|
3965
|
+
});
|
|
4247
3966
|
};
|
|
4248
3967
|
const de_AssessmentFrameworkShareRequest = (output, context) => {
|
|
4249
|
-
return {
|
|
4250
|
-
comment: __expectString
|
|
4251
|
-
complianceType: __expectString
|
|
4252
|
-
creationTime:
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdated)))
|
|
4267
|
-
: undefined,
|
|
4268
|
-
sourceAccount: __expectString(output.sourceAccount),
|
|
4269
|
-
standardControlsCount: __expectInt32(output.standardControlsCount),
|
|
4270
|
-
status: __expectString(output.status),
|
|
4271
|
-
};
|
|
3968
|
+
return take(output, {
|
|
3969
|
+
comment: __expectString,
|
|
3970
|
+
complianceType: __expectString,
|
|
3971
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3972
|
+
customControlsCount: __expectInt32,
|
|
3973
|
+
destinationAccount: __expectString,
|
|
3974
|
+
destinationRegion: __expectString,
|
|
3975
|
+
expirationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3976
|
+
frameworkDescription: __expectString,
|
|
3977
|
+
frameworkId: __expectString,
|
|
3978
|
+
frameworkName: __expectString,
|
|
3979
|
+
id: __expectString,
|
|
3980
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3981
|
+
sourceAccount: __expectString,
|
|
3982
|
+
standardControlsCount: __expectInt32,
|
|
3983
|
+
status: __expectString,
|
|
3984
|
+
});
|
|
4272
3985
|
};
|
|
4273
3986
|
const de_AssessmentFrameworkShareRequestList = (output, context) => {
|
|
4274
3987
|
const retVal = (output || [])
|
|
4275
3988
|
.filter((e) => e != null)
|
|
4276
3989
|
.map((entry) => {
|
|
4277
|
-
if (entry === null) {
|
|
4278
|
-
return null;
|
|
4279
|
-
}
|
|
4280
3990
|
return de_AssessmentFrameworkShareRequest(entry, context);
|
|
4281
3991
|
});
|
|
4282
3992
|
return retVal;
|
|
4283
3993
|
};
|
|
4284
3994
|
const de_AssessmentMetadata = (output, context) => {
|
|
4285
|
-
return {
|
|
4286
|
-
assessmentReportsDestination:
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
: undefined,
|
|
4299
|
-
name: __expectString(output.name),
|
|
4300
|
-
roles: output.roles != null ? de_Roles(output.roles, context) : undefined,
|
|
4301
|
-
scope: output.scope != null ? de_Scope(output.scope, context) : undefined,
|
|
4302
|
-
status: __expectString(output.status),
|
|
4303
|
-
};
|
|
3995
|
+
return take(output, {
|
|
3996
|
+
assessmentReportsDestination: _json,
|
|
3997
|
+
complianceType: __expectString,
|
|
3998
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3999
|
+
delegations: (_) => de_Delegations(_, context),
|
|
4000
|
+
description: __expectString,
|
|
4001
|
+
id: __expectString,
|
|
4002
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4003
|
+
name: __expectString,
|
|
4004
|
+
roles: _json,
|
|
4005
|
+
scope: _json,
|
|
4006
|
+
status: __expectString,
|
|
4007
|
+
});
|
|
4304
4008
|
};
|
|
4305
4009
|
const de_AssessmentMetadataItem = (output, context) => {
|
|
4306
|
-
return {
|
|
4307
|
-
complianceType: __expectString
|
|
4308
|
-
creationTime:
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
name: __expectString(output.name),
|
|
4317
|
-
roles: output.roles != null ? de_Roles(output.roles, context) : undefined,
|
|
4318
|
-
status: __expectString(output.status),
|
|
4319
|
-
};
|
|
4010
|
+
return take(output, {
|
|
4011
|
+
complianceType: __expectString,
|
|
4012
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4013
|
+
delegations: (_) => de_Delegations(_, context),
|
|
4014
|
+
id: __expectString,
|
|
4015
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4016
|
+
name: __expectString,
|
|
4017
|
+
roles: _json,
|
|
4018
|
+
status: __expectString,
|
|
4019
|
+
});
|
|
4320
4020
|
};
|
|
4321
4021
|
const de_AssessmentReport = (output, context) => {
|
|
4322
|
-
return {
|
|
4323
|
-
assessmentId: __expectString
|
|
4324
|
-
assessmentName: __expectString
|
|
4325
|
-
author: __expectString
|
|
4326
|
-
awsAccountId: __expectString
|
|
4327
|
-
creationTime:
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
name: __expectString(output.name),
|
|
4333
|
-
status: __expectString(output.status),
|
|
4334
|
-
};
|
|
4335
|
-
};
|
|
4336
|
-
const de_AssessmentReportEvidenceError = (output, context) => {
|
|
4337
|
-
return {
|
|
4338
|
-
errorCode: __expectString(output.errorCode),
|
|
4339
|
-
errorMessage: __expectString(output.errorMessage),
|
|
4340
|
-
evidenceId: __expectString(output.evidenceId),
|
|
4341
|
-
};
|
|
4342
|
-
};
|
|
4343
|
-
const de_AssessmentReportEvidenceErrors = (output, context) => {
|
|
4344
|
-
const retVal = (output || [])
|
|
4345
|
-
.filter((e) => e != null)
|
|
4346
|
-
.map((entry) => {
|
|
4347
|
-
if (entry === null) {
|
|
4348
|
-
return null;
|
|
4349
|
-
}
|
|
4350
|
-
return de_AssessmentReportEvidenceError(entry, context);
|
|
4022
|
+
return take(output, {
|
|
4023
|
+
assessmentId: __expectString,
|
|
4024
|
+
assessmentName: __expectString,
|
|
4025
|
+
author: __expectString,
|
|
4026
|
+
awsAccountId: __expectString,
|
|
4027
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4028
|
+
description: __expectString,
|
|
4029
|
+
id: __expectString,
|
|
4030
|
+
name: __expectString,
|
|
4031
|
+
status: __expectString,
|
|
4351
4032
|
});
|
|
4352
|
-
return retVal;
|
|
4353
4033
|
};
|
|
4354
4034
|
const de_AssessmentReportMetadata = (output, context) => {
|
|
4355
|
-
return {
|
|
4356
|
-
assessmentId: __expectString
|
|
4357
|
-
assessmentName: __expectString
|
|
4358
|
-
author: __expectString
|
|
4359
|
-
creationTime:
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
status: __expectString(output.status),
|
|
4366
|
-
};
|
|
4367
|
-
};
|
|
4368
|
-
const de_AssessmentReportsDestination = (output, context) => {
|
|
4369
|
-
return {
|
|
4370
|
-
destination: __expectString(output.destination),
|
|
4371
|
-
destinationType: __expectString(output.destinationType),
|
|
4372
|
-
};
|
|
4035
|
+
return take(output, {
|
|
4036
|
+
assessmentId: __expectString,
|
|
4037
|
+
assessmentName: __expectString,
|
|
4038
|
+
author: __expectString,
|
|
4039
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4040
|
+
description: __expectString,
|
|
4041
|
+
id: __expectString,
|
|
4042
|
+
name: __expectString,
|
|
4043
|
+
status: __expectString,
|
|
4044
|
+
});
|
|
4373
4045
|
};
|
|
4374
4046
|
const de_AssessmentReportsMetadata = (output, context) => {
|
|
4375
4047
|
const retVal = (output || [])
|
|
4376
4048
|
.filter((e) => e != null)
|
|
4377
4049
|
.map((entry) => {
|
|
4378
|
-
if (entry === null) {
|
|
4379
|
-
return null;
|
|
4380
|
-
}
|
|
4381
4050
|
return de_AssessmentReportMetadata(entry, context);
|
|
4382
4051
|
});
|
|
4383
4052
|
return retVal;
|
|
4384
4053
|
};
|
|
4385
|
-
const de_AWSAccount = (output, context) => {
|
|
4386
|
-
return {
|
|
4387
|
-
emailAddress: __expectString(output.emailAddress),
|
|
4388
|
-
id: __expectString(output.id),
|
|
4389
|
-
name: __expectString(output.name),
|
|
4390
|
-
};
|
|
4391
|
-
};
|
|
4392
|
-
const de_AWSAccounts = (output, context) => {
|
|
4393
|
-
const retVal = (output || [])
|
|
4394
|
-
.filter((e) => e != null)
|
|
4395
|
-
.map((entry) => {
|
|
4396
|
-
if (entry === null) {
|
|
4397
|
-
return null;
|
|
4398
|
-
}
|
|
4399
|
-
return de_AWSAccount(entry, context);
|
|
4400
|
-
});
|
|
4401
|
-
return retVal;
|
|
4402
|
-
};
|
|
4403
|
-
const de_AWSService = (output, context) => {
|
|
4404
|
-
return {
|
|
4405
|
-
serviceName: __expectString(output.serviceName),
|
|
4406
|
-
};
|
|
4407
|
-
};
|
|
4408
|
-
const de_AWSServices = (output, context) => {
|
|
4409
|
-
const retVal = (output || [])
|
|
4410
|
-
.filter((e) => e != null)
|
|
4411
|
-
.map((entry) => {
|
|
4412
|
-
if (entry === null) {
|
|
4413
|
-
return null;
|
|
4414
|
-
}
|
|
4415
|
-
return de_AWSService(entry, context);
|
|
4416
|
-
});
|
|
4417
|
-
return retVal;
|
|
4418
|
-
};
|
|
4419
|
-
const de_BatchCreateDelegationByAssessmentError = (output, context) => {
|
|
4420
|
-
return {
|
|
4421
|
-
createDelegationRequest: output.createDelegationRequest != null
|
|
4422
|
-
? de_CreateDelegationRequest(output.createDelegationRequest, context)
|
|
4423
|
-
: undefined,
|
|
4424
|
-
errorCode: __expectString(output.errorCode),
|
|
4425
|
-
errorMessage: __expectString(output.errorMessage),
|
|
4426
|
-
};
|
|
4427
|
-
};
|
|
4428
|
-
const de_BatchCreateDelegationByAssessmentErrors = (output, context) => {
|
|
4429
|
-
const retVal = (output || [])
|
|
4430
|
-
.filter((e) => e != null)
|
|
4431
|
-
.map((entry) => {
|
|
4432
|
-
if (entry === null) {
|
|
4433
|
-
return null;
|
|
4434
|
-
}
|
|
4435
|
-
return de_BatchCreateDelegationByAssessmentError(entry, context);
|
|
4436
|
-
});
|
|
4437
|
-
return retVal;
|
|
4438
|
-
};
|
|
4439
|
-
const de_BatchDeleteDelegationByAssessmentError = (output, context) => {
|
|
4440
|
-
return {
|
|
4441
|
-
delegationId: __expectString(output.delegationId),
|
|
4442
|
-
errorCode: __expectString(output.errorCode),
|
|
4443
|
-
errorMessage: __expectString(output.errorMessage),
|
|
4444
|
-
};
|
|
4445
|
-
};
|
|
4446
|
-
const de_BatchDeleteDelegationByAssessmentErrors = (output, context) => {
|
|
4447
|
-
const retVal = (output || [])
|
|
4448
|
-
.filter((e) => e != null)
|
|
4449
|
-
.map((entry) => {
|
|
4450
|
-
if (entry === null) {
|
|
4451
|
-
return null;
|
|
4452
|
-
}
|
|
4453
|
-
return de_BatchDeleteDelegationByAssessmentError(entry, context);
|
|
4454
|
-
});
|
|
4455
|
-
return retVal;
|
|
4456
|
-
};
|
|
4457
|
-
const de_BatchImportEvidenceToAssessmentControlError = (output, context) => {
|
|
4458
|
-
return {
|
|
4459
|
-
errorCode: __expectString(output.errorCode),
|
|
4460
|
-
errorMessage: __expectString(output.errorMessage),
|
|
4461
|
-
manualEvidence: output.manualEvidence != null ? de_ManualEvidence(output.manualEvidence, context) : undefined,
|
|
4462
|
-
};
|
|
4463
|
-
};
|
|
4464
|
-
const de_BatchImportEvidenceToAssessmentControlErrors = (output, context) => {
|
|
4465
|
-
const retVal = (output || [])
|
|
4466
|
-
.filter((e) => e != null)
|
|
4467
|
-
.map((entry) => {
|
|
4468
|
-
if (entry === null) {
|
|
4469
|
-
return null;
|
|
4470
|
-
}
|
|
4471
|
-
return de_BatchImportEvidenceToAssessmentControlError(entry, context);
|
|
4472
|
-
});
|
|
4473
|
-
return retVal;
|
|
4474
|
-
};
|
|
4475
4054
|
const de_ChangeLog = (output, context) => {
|
|
4476
|
-
return {
|
|
4477
|
-
action: __expectString
|
|
4478
|
-
createdAt:
|
|
4479
|
-
createdBy: __expectString
|
|
4480
|
-
objectName: __expectString
|
|
4481
|
-
objectType: __expectString
|
|
4482
|
-
};
|
|
4055
|
+
return take(output, {
|
|
4056
|
+
action: __expectString,
|
|
4057
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4058
|
+
createdBy: __expectString,
|
|
4059
|
+
objectName: __expectString,
|
|
4060
|
+
objectType: __expectString,
|
|
4061
|
+
});
|
|
4483
4062
|
};
|
|
4484
4063
|
const de_ChangeLogs = (output, context) => {
|
|
4485
4064
|
const retVal = (output || [])
|
|
4486
4065
|
.filter((e) => e != null)
|
|
4487
4066
|
.map((entry) => {
|
|
4488
|
-
if (entry === null) {
|
|
4489
|
-
return null;
|
|
4490
|
-
}
|
|
4491
4067
|
return de_ChangeLog(entry, context);
|
|
4492
4068
|
});
|
|
4493
4069
|
return retVal;
|
|
4494
4070
|
};
|
|
4495
4071
|
const de_Control = (output, context) => {
|
|
4496
|
-
return {
|
|
4497
|
-
actionPlanInstructions: __expectString
|
|
4498
|
-
actionPlanTitle: __expectString
|
|
4499
|
-
arn: __expectString
|
|
4500
|
-
controlMappingSources:
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
|
|
4514
|
-
testingInformation: __expectString(output.testingInformation),
|
|
4515
|
-
type: __expectString(output.type),
|
|
4516
|
-
};
|
|
4072
|
+
return take(output, {
|
|
4073
|
+
actionPlanInstructions: __expectString,
|
|
4074
|
+
actionPlanTitle: __expectString,
|
|
4075
|
+
arn: __expectString,
|
|
4076
|
+
controlMappingSources: _json,
|
|
4077
|
+
controlSources: __expectString,
|
|
4078
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4079
|
+
createdBy: __expectString,
|
|
4080
|
+
description: __expectString,
|
|
4081
|
+
id: __expectString,
|
|
4082
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4083
|
+
lastUpdatedBy: __expectString,
|
|
4084
|
+
name: __expectString,
|
|
4085
|
+
tags: _json,
|
|
4086
|
+
testingInformation: __expectString,
|
|
4087
|
+
type: __expectString,
|
|
4088
|
+
});
|
|
4517
4089
|
};
|
|
4518
4090
|
const de_ControlComment = (output, context) => {
|
|
4519
|
-
return {
|
|
4520
|
-
authorName: __expectString
|
|
4521
|
-
commentBody: __expectString
|
|
4522
|
-
postedDate:
|
|
4523
|
-
};
|
|
4091
|
+
return take(output, {
|
|
4092
|
+
authorName: __expectString,
|
|
4093
|
+
commentBody: __expectString,
|
|
4094
|
+
postedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4095
|
+
});
|
|
4524
4096
|
};
|
|
4525
4097
|
const de_ControlComments = (output, context) => {
|
|
4526
4098
|
const retVal = (output || [])
|
|
4527
4099
|
.filter((e) => e != null)
|
|
4528
4100
|
.map((entry) => {
|
|
4529
|
-
if (entry === null) {
|
|
4530
|
-
return null;
|
|
4531
|
-
}
|
|
4532
4101
|
return de_ControlComment(entry, context);
|
|
4533
4102
|
});
|
|
4534
4103
|
return retVal;
|
|
4535
4104
|
};
|
|
4536
4105
|
const de_ControlDomainInsights = (output, context) => {
|
|
4537
|
-
return {
|
|
4538
|
-
controlsCountByNoncompliantEvidence: __expectInt32
|
|
4539
|
-
evidenceInsights:
|
|
4540
|
-
id: __expectString
|
|
4541
|
-
lastUpdated:
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
totalControlsCount: __expectInt32(output.totalControlsCount),
|
|
4546
|
-
};
|
|
4106
|
+
return take(output, {
|
|
4107
|
+
controlsCountByNoncompliantEvidence: __expectInt32,
|
|
4108
|
+
evidenceInsights: _json,
|
|
4109
|
+
id: __expectString,
|
|
4110
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4111
|
+
name: __expectString,
|
|
4112
|
+
totalControlsCount: __expectInt32,
|
|
4113
|
+
});
|
|
4547
4114
|
};
|
|
4548
4115
|
const de_ControlDomainInsightsList = (output, context) => {
|
|
4549
4116
|
const retVal = (output || [])
|
|
4550
4117
|
.filter((e) => e != null)
|
|
4551
4118
|
.map((entry) => {
|
|
4552
|
-
if (entry === null) {
|
|
4553
|
-
return null;
|
|
4554
|
-
}
|
|
4555
4119
|
return de_ControlDomainInsights(entry, context);
|
|
4556
4120
|
});
|
|
4557
4121
|
return retVal;
|
|
@@ -4560,9 +4124,6 @@ const de_ControlInsightsMetadata = (output, context) => {
|
|
|
4560
4124
|
const retVal = (output || [])
|
|
4561
4125
|
.filter((e) => e != null)
|
|
4562
4126
|
.map((entry) => {
|
|
4563
|
-
if (entry === null) {
|
|
4564
|
-
return null;
|
|
4565
|
-
}
|
|
4566
4127
|
return de_ControlInsightsMetadataItem(entry, context);
|
|
4567
4128
|
});
|
|
4568
4129
|
return retVal;
|
|
@@ -4571,76 +4132,41 @@ const de_ControlInsightsMetadataByAssessment = (output, context) => {
|
|
|
4571
4132
|
const retVal = (output || [])
|
|
4572
4133
|
.filter((e) => e != null)
|
|
4573
4134
|
.map((entry) => {
|
|
4574
|
-
if (entry === null) {
|
|
4575
|
-
return null;
|
|
4576
|
-
}
|
|
4577
4135
|
return de_ControlInsightsMetadataByAssessmentItem(entry, context);
|
|
4578
4136
|
});
|
|
4579
4137
|
return retVal;
|
|
4580
4138
|
};
|
|
4581
4139
|
const de_ControlInsightsMetadataByAssessmentItem = (output, context) => {
|
|
4582
|
-
return {
|
|
4583
|
-
controlSetName: __expectString
|
|
4584
|
-
evidenceInsights:
|
|
4585
|
-
id: __expectString
|
|
4586
|
-
lastUpdated:
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
name: __expectString(output.name),
|
|
4590
|
-
};
|
|
4140
|
+
return take(output, {
|
|
4141
|
+
controlSetName: __expectString,
|
|
4142
|
+
evidenceInsights: _json,
|
|
4143
|
+
id: __expectString,
|
|
4144
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4145
|
+
name: __expectString,
|
|
4146
|
+
});
|
|
4591
4147
|
};
|
|
4592
4148
|
const de_ControlInsightsMetadataItem = (output, context) => {
|
|
4593
|
-
return {
|
|
4594
|
-
evidenceInsights:
|
|
4595
|
-
id: __expectString
|
|
4596
|
-
lastUpdated:
|
|
4597
|
-
|
|
4598
|
-
: undefined,
|
|
4599
|
-
name: __expectString(output.name),
|
|
4600
|
-
};
|
|
4601
|
-
};
|
|
4602
|
-
const de_ControlMappingSource = (output, context) => {
|
|
4603
|
-
return {
|
|
4604
|
-
sourceDescription: __expectString(output.sourceDescription),
|
|
4605
|
-
sourceFrequency: __expectString(output.sourceFrequency),
|
|
4606
|
-
sourceId: __expectString(output.sourceId),
|
|
4607
|
-
sourceKeyword: output.sourceKeyword != null ? de_SourceKeyword(output.sourceKeyword, context) : undefined,
|
|
4608
|
-
sourceName: __expectString(output.sourceName),
|
|
4609
|
-
sourceSetUpOption: __expectString(output.sourceSetUpOption),
|
|
4610
|
-
sourceType: __expectString(output.sourceType),
|
|
4611
|
-
troubleshootingText: __expectString(output.troubleshootingText),
|
|
4612
|
-
};
|
|
4613
|
-
};
|
|
4614
|
-
const de_ControlMappingSources = (output, context) => {
|
|
4615
|
-
const retVal = (output || [])
|
|
4616
|
-
.filter((e) => e != null)
|
|
4617
|
-
.map((entry) => {
|
|
4618
|
-
if (entry === null) {
|
|
4619
|
-
return null;
|
|
4620
|
-
}
|
|
4621
|
-
return de_ControlMappingSource(entry, context);
|
|
4149
|
+
return take(output, {
|
|
4150
|
+
evidenceInsights: _json,
|
|
4151
|
+
id: __expectString,
|
|
4152
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4153
|
+
name: __expectString,
|
|
4622
4154
|
});
|
|
4623
|
-
return retVal;
|
|
4624
4155
|
};
|
|
4625
4156
|
const de_ControlMetadata = (output, context) => {
|
|
4626
|
-
return {
|
|
4627
|
-
arn: __expectString
|
|
4628
|
-
controlSources: __expectString
|
|
4629
|
-
createdAt:
|
|
4630
|
-
id: __expectString
|
|
4631
|
-
lastUpdatedAt:
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
name: __expectString(output.name),
|
|
4635
|
-
};
|
|
4157
|
+
return take(output, {
|
|
4158
|
+
arn: __expectString,
|
|
4159
|
+
controlSources: __expectString,
|
|
4160
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4161
|
+
id: __expectString,
|
|
4162
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4163
|
+
name: __expectString,
|
|
4164
|
+
});
|
|
4636
4165
|
};
|
|
4637
4166
|
const de_ControlMetadataList = (output, context) => {
|
|
4638
4167
|
const retVal = (output || [])
|
|
4639
4168
|
.filter((e) => e != null)
|
|
4640
4169
|
.map((entry) => {
|
|
4641
|
-
if (entry === null) {
|
|
4642
|
-
return null;
|
|
4643
|
-
}
|
|
4644
4170
|
return de_ControlMetadata(entry, context);
|
|
4645
4171
|
});
|
|
4646
4172
|
return retVal;
|
|
@@ -4649,78 +4175,55 @@ const de_Controls = (output, context) => {
|
|
|
4649
4175
|
const retVal = (output || [])
|
|
4650
4176
|
.filter((e) => e != null)
|
|
4651
4177
|
.map((entry) => {
|
|
4652
|
-
if (entry === null) {
|
|
4653
|
-
return null;
|
|
4654
|
-
}
|
|
4655
4178
|
return de_Control(entry, context);
|
|
4656
4179
|
});
|
|
4657
4180
|
return retVal;
|
|
4658
4181
|
};
|
|
4659
4182
|
const de_ControlSet = (output, context) => {
|
|
4660
|
-
return {
|
|
4661
|
-
controls:
|
|
4662
|
-
id: __expectString
|
|
4663
|
-
name: __expectString
|
|
4664
|
-
};
|
|
4183
|
+
return take(output, {
|
|
4184
|
+
controls: (_) => de_Controls(_, context),
|
|
4185
|
+
id: __expectString,
|
|
4186
|
+
name: __expectString,
|
|
4187
|
+
});
|
|
4665
4188
|
};
|
|
4666
4189
|
const de_ControlSets = (output, context) => {
|
|
4667
4190
|
const retVal = (output || [])
|
|
4668
4191
|
.filter((e) => e != null)
|
|
4669
4192
|
.map((entry) => {
|
|
4670
|
-
if (entry === null) {
|
|
4671
|
-
return null;
|
|
4672
|
-
}
|
|
4673
4193
|
return de_ControlSet(entry, context);
|
|
4674
4194
|
});
|
|
4675
4195
|
return retVal;
|
|
4676
4196
|
};
|
|
4677
|
-
const de_CreateDelegationRequest = (output, context) => {
|
|
4678
|
-
return {
|
|
4679
|
-
comment: __expectString(output.comment),
|
|
4680
|
-
controlSetId: __expectString(output.controlSetId),
|
|
4681
|
-
roleArn: __expectString(output.roleArn),
|
|
4682
|
-
roleType: __expectString(output.roleType),
|
|
4683
|
-
};
|
|
4684
|
-
};
|
|
4685
4197
|
const de_Delegation = (output, context) => {
|
|
4686
|
-
return {
|
|
4687
|
-
assessmentId: __expectString
|
|
4688
|
-
assessmentName: __expectString
|
|
4689
|
-
comment: __expectString
|
|
4690
|
-
controlSetId: __expectString
|
|
4691
|
-
createdBy: __expectString
|
|
4692
|
-
creationTime:
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
roleArn: __expectString(output.roleArn),
|
|
4700
|
-
roleType: __expectString(output.roleType),
|
|
4701
|
-
status: __expectString(output.status),
|
|
4702
|
-
};
|
|
4198
|
+
return take(output, {
|
|
4199
|
+
assessmentId: __expectString,
|
|
4200
|
+
assessmentName: __expectString,
|
|
4201
|
+
comment: __expectString,
|
|
4202
|
+
controlSetId: __expectString,
|
|
4203
|
+
createdBy: __expectString,
|
|
4204
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4205
|
+
id: __expectString,
|
|
4206
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4207
|
+
roleArn: __expectString,
|
|
4208
|
+
roleType: __expectString,
|
|
4209
|
+
status: __expectString,
|
|
4210
|
+
});
|
|
4703
4211
|
};
|
|
4704
4212
|
const de_DelegationMetadata = (output, context) => {
|
|
4705
|
-
return {
|
|
4706
|
-
assessmentId: __expectString
|
|
4707
|
-
assessmentName: __expectString
|
|
4708
|
-
controlSetName: __expectString
|
|
4709
|
-
creationTime:
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
|
|
4714
|
-
status: __expectString(output.status),
|
|
4715
|
-
};
|
|
4213
|
+
return take(output, {
|
|
4214
|
+
assessmentId: __expectString,
|
|
4215
|
+
assessmentName: __expectString,
|
|
4216
|
+
controlSetName: __expectString,
|
|
4217
|
+
creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4218
|
+
id: __expectString,
|
|
4219
|
+
roleArn: __expectString,
|
|
4220
|
+
status: __expectString,
|
|
4221
|
+
});
|
|
4716
4222
|
};
|
|
4717
4223
|
const de_DelegationMetadataList = (output, context) => {
|
|
4718
4224
|
const retVal = (output || [])
|
|
4719
4225
|
.filter((e) => e != null)
|
|
4720
4226
|
.map((entry) => {
|
|
4721
|
-
if (entry === null) {
|
|
4722
|
-
return null;
|
|
4723
|
-
}
|
|
4724
4227
|
return de_DelegationMetadata(entry, context);
|
|
4725
4228
|
});
|
|
4726
4229
|
return retVal;
|
|
@@ -4729,332 +4232,112 @@ const de_Delegations = (output, context) => {
|
|
|
4729
4232
|
const retVal = (output || [])
|
|
4730
4233
|
.filter((e) => e != null)
|
|
4731
4234
|
.map((entry) => {
|
|
4732
|
-
if (entry === null) {
|
|
4733
|
-
return null;
|
|
4734
|
-
}
|
|
4735
4235
|
return de_Delegation(entry, context);
|
|
4736
4236
|
});
|
|
4737
4237
|
return retVal;
|
|
4738
4238
|
};
|
|
4739
|
-
const de_DeregistrationPolicy = (output, context) => {
|
|
4740
|
-
return {
|
|
4741
|
-
deleteResources: __expectString(output.deleteResources),
|
|
4742
|
-
};
|
|
4743
|
-
};
|
|
4744
4239
|
const de_Evidence = (output, context) => {
|
|
4745
|
-
return {
|
|
4746
|
-
assessmentReportSelection: __expectString
|
|
4747
|
-
attributes:
|
|
4748
|
-
awsAccountId: __expectString
|
|
4749
|
-
awsOrganization: __expectString
|
|
4750
|
-
complianceCheck: __expectString
|
|
4751
|
-
dataSource: __expectString
|
|
4752
|
-
eventName: __expectString
|
|
4753
|
-
eventSource: __expectString
|
|
4754
|
-
evidenceAwsAccountId: __expectString
|
|
4755
|
-
evidenceByType: __expectString
|
|
4756
|
-
evidenceFolderId: __expectString
|
|
4757
|
-
iamId: __expectString
|
|
4758
|
-
id: __expectString
|
|
4759
|
-
resourcesIncluded:
|
|
4760
|
-
time:
|
|
4761
|
-
};
|
|
4762
|
-
};
|
|
4763
|
-
const de_EvidenceAttributes = (output, context) => {
|
|
4764
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4765
|
-
if (value === null) {
|
|
4766
|
-
return acc;
|
|
4767
|
-
}
|
|
4768
|
-
acc[key] = __expectString(value);
|
|
4769
|
-
return acc;
|
|
4770
|
-
}, {});
|
|
4771
|
-
};
|
|
4772
|
-
const de_EvidenceFinderEnablement = (output, context) => {
|
|
4773
|
-
return {
|
|
4774
|
-
backfillStatus: __expectString(output.backfillStatus),
|
|
4775
|
-
enablementStatus: __expectString(output.enablementStatus),
|
|
4776
|
-
error: __expectString(output.error),
|
|
4777
|
-
eventDataStoreArn: __expectString(output.eventDataStoreArn),
|
|
4778
|
-
};
|
|
4779
|
-
};
|
|
4780
|
-
const de_EvidenceIds = (output, context) => {
|
|
4781
|
-
const retVal = (output || [])
|
|
4782
|
-
.filter((e) => e != null)
|
|
4783
|
-
.map((entry) => {
|
|
4784
|
-
if (entry === null) {
|
|
4785
|
-
return null;
|
|
4786
|
-
}
|
|
4787
|
-
return __expectString(entry);
|
|
4240
|
+
return take(output, {
|
|
4241
|
+
assessmentReportSelection: __expectString,
|
|
4242
|
+
attributes: _json,
|
|
4243
|
+
awsAccountId: __expectString,
|
|
4244
|
+
awsOrganization: __expectString,
|
|
4245
|
+
complianceCheck: __expectString,
|
|
4246
|
+
dataSource: __expectString,
|
|
4247
|
+
eventName: __expectString,
|
|
4248
|
+
eventSource: __expectString,
|
|
4249
|
+
evidenceAwsAccountId: __expectString,
|
|
4250
|
+
evidenceByType: __expectString,
|
|
4251
|
+
evidenceFolderId: __expectString,
|
|
4252
|
+
iamId: __expectString,
|
|
4253
|
+
id: __expectString,
|
|
4254
|
+
resourcesIncluded: _json,
|
|
4255
|
+
time: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4788
4256
|
});
|
|
4789
|
-
return retVal;
|
|
4790
|
-
};
|
|
4791
|
-
const de_EvidenceInsights = (output, context) => {
|
|
4792
|
-
return {
|
|
4793
|
-
compliantEvidenceCount: __expectInt32(output.compliantEvidenceCount),
|
|
4794
|
-
inconclusiveEvidenceCount: __expectInt32(output.inconclusiveEvidenceCount),
|
|
4795
|
-
noncompliantEvidenceCount: __expectInt32(output.noncompliantEvidenceCount),
|
|
4796
|
-
};
|
|
4797
4257
|
};
|
|
4798
4258
|
const de_EvidenceList = (output, context) => {
|
|
4799
4259
|
const retVal = (output || [])
|
|
4800
4260
|
.filter((e) => e != null)
|
|
4801
4261
|
.map((entry) => {
|
|
4802
|
-
if (entry === null) {
|
|
4803
|
-
return null;
|
|
4804
|
-
}
|
|
4805
4262
|
return de_Evidence(entry, context);
|
|
4806
4263
|
});
|
|
4807
4264
|
return retVal;
|
|
4808
4265
|
};
|
|
4809
|
-
const de_EvidenceSources = (output, context) => {
|
|
4810
|
-
const retVal = (output || [])
|
|
4811
|
-
.filter((e) => e != null)
|
|
4812
|
-
.map((entry) => {
|
|
4813
|
-
if (entry === null) {
|
|
4814
|
-
return null;
|
|
4815
|
-
}
|
|
4816
|
-
return __expectString(entry);
|
|
4817
|
-
});
|
|
4818
|
-
return retVal;
|
|
4819
|
-
};
|
|
4820
4266
|
const de_Framework = (output, context) => {
|
|
4821
|
-
return {
|
|
4822
|
-
arn: __expectString
|
|
4823
|
-
complianceType: __expectString
|
|
4824
|
-
controlSets:
|
|
4825
|
-
controlSources: __expectString
|
|
4826
|
-
createdAt:
|
|
4827
|
-
createdBy: __expectString
|
|
4828
|
-
description: __expectString
|
|
4829
|
-
id: __expectString
|
|
4830
|
-
lastUpdatedAt:
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
type: __expectString(output.type),
|
|
4838
|
-
};
|
|
4839
|
-
};
|
|
4840
|
-
const de_FrameworkMetadata = (output, context) => {
|
|
4841
|
-
return {
|
|
4842
|
-
complianceType: __expectString(output.complianceType),
|
|
4843
|
-
description: __expectString(output.description),
|
|
4844
|
-
logo: __expectString(output.logo),
|
|
4845
|
-
name: __expectString(output.name),
|
|
4846
|
-
};
|
|
4267
|
+
return take(output, {
|
|
4268
|
+
arn: __expectString,
|
|
4269
|
+
complianceType: __expectString,
|
|
4270
|
+
controlSets: (_) => de_ControlSets(_, context),
|
|
4271
|
+
controlSources: __expectString,
|
|
4272
|
+
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4273
|
+
createdBy: __expectString,
|
|
4274
|
+
description: __expectString,
|
|
4275
|
+
id: __expectString,
|
|
4276
|
+
lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4277
|
+
lastUpdatedBy: __expectString,
|
|
4278
|
+
logo: __expectString,
|
|
4279
|
+
name: __expectString,
|
|
4280
|
+
tags: _json,
|
|
4281
|
+
type: __expectString,
|
|
4282
|
+
});
|
|
4847
4283
|
};
|
|
4848
4284
|
const de_FrameworkMetadataList = (output, context) => {
|
|
4849
4285
|
const retVal = (output || [])
|
|
4850
4286
|
.filter((e) => e != null)
|
|
4851
4287
|
.map((entry) => {
|
|
4852
|
-
if (entry === null) {
|
|
4853
|
-
return null;
|
|
4854
|
-
}
|
|
4855
4288
|
return de_AssessmentFrameworkMetadata(entry, context);
|
|
4856
4289
|
});
|
|
4857
4290
|
return retVal;
|
|
4858
4291
|
};
|
|
4859
4292
|
const de_Insights = (output, context) => {
|
|
4860
|
-
return {
|
|
4861
|
-
activeAssessmentsCount: __expectInt32
|
|
4862
|
-
assessmentControlsCountByNoncompliantEvidence: __expectInt32
|
|
4863
|
-
compliantEvidenceCount: __expectInt32
|
|
4864
|
-
inconclusiveEvidenceCount: __expectInt32
|
|
4865
|
-
lastUpdated:
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
totalAssessmentControlsCount: __expectInt32(output.totalAssessmentControlsCount),
|
|
4870
|
-
};
|
|
4293
|
+
return take(output, {
|
|
4294
|
+
activeAssessmentsCount: __expectInt32,
|
|
4295
|
+
assessmentControlsCountByNoncompliantEvidence: __expectInt32,
|
|
4296
|
+
compliantEvidenceCount: __expectInt32,
|
|
4297
|
+
inconclusiveEvidenceCount: __expectInt32,
|
|
4298
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4299
|
+
noncompliantEvidenceCount: __expectInt32,
|
|
4300
|
+
totalAssessmentControlsCount: __expectInt32,
|
|
4301
|
+
});
|
|
4871
4302
|
};
|
|
4872
4303
|
const de_InsightsByAssessment = (output, context) => {
|
|
4873
|
-
return {
|
|
4874
|
-
assessmentControlsCountByNoncompliantEvidence: __expectInt32
|
|
4875
|
-
compliantEvidenceCount: __expectInt32
|
|
4876
|
-
inconclusiveEvidenceCount: __expectInt32
|
|
4877
|
-
lastUpdated:
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
noncompliantEvidenceCount: __expectInt32(output.noncompliantEvidenceCount),
|
|
4881
|
-
totalAssessmentControlsCount: __expectInt32(output.totalAssessmentControlsCount),
|
|
4882
|
-
};
|
|
4883
|
-
};
|
|
4884
|
-
const de_Keywords = (output, context) => {
|
|
4885
|
-
const retVal = (output || [])
|
|
4886
|
-
.filter((e) => e != null)
|
|
4887
|
-
.map((entry) => {
|
|
4888
|
-
if (entry === null) {
|
|
4889
|
-
return null;
|
|
4890
|
-
}
|
|
4891
|
-
return __expectString(entry);
|
|
4304
|
+
return take(output, {
|
|
4305
|
+
assessmentControlsCountByNoncompliantEvidence: __expectInt32,
|
|
4306
|
+
compliantEvidenceCount: __expectInt32,
|
|
4307
|
+
inconclusiveEvidenceCount: __expectInt32,
|
|
4308
|
+
lastUpdated: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4309
|
+
noncompliantEvidenceCount: __expectInt32,
|
|
4310
|
+
totalAssessmentControlsCount: __expectInt32,
|
|
4892
4311
|
});
|
|
4893
|
-
return retVal;
|
|
4894
4312
|
};
|
|
4895
4313
|
const de_ListAssessmentMetadata = (output, context) => {
|
|
4896
4314
|
const retVal = (output || [])
|
|
4897
4315
|
.filter((e) => e != null)
|
|
4898
4316
|
.map((entry) => {
|
|
4899
|
-
if (entry === null) {
|
|
4900
|
-
return null;
|
|
4901
|
-
}
|
|
4902
4317
|
return de_AssessmentMetadataItem(entry, context);
|
|
4903
4318
|
});
|
|
4904
4319
|
return retVal;
|
|
4905
4320
|
};
|
|
4906
|
-
const de_ManualEvidence = (output, context) => {
|
|
4907
|
-
return {
|
|
4908
|
-
s3ResourcePath: __expectString(output.s3ResourcePath),
|
|
4909
|
-
};
|
|
4910
|
-
};
|
|
4911
4321
|
const de_Notification = (output, context) => {
|
|
4912
|
-
return {
|
|
4913
|
-
assessmentId: __expectString
|
|
4914
|
-
assessmentName: __expectString
|
|
4915
|
-
controlSetId: __expectString
|
|
4916
|
-
controlSetName: __expectString
|
|
4917
|
-
description: __expectString
|
|
4918
|
-
eventTime:
|
|
4919
|
-
id: __expectString
|
|
4920
|
-
source: __expectString
|
|
4921
|
-
};
|
|
4322
|
+
return take(output, {
|
|
4323
|
+
assessmentId: __expectString,
|
|
4324
|
+
assessmentName: __expectString,
|
|
4325
|
+
controlSetId: __expectString,
|
|
4326
|
+
controlSetName: __expectString,
|
|
4327
|
+
description: __expectString,
|
|
4328
|
+
eventTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4329
|
+
id: __expectString,
|
|
4330
|
+
source: __expectString,
|
|
4331
|
+
});
|
|
4922
4332
|
};
|
|
4923
4333
|
const de_Notifications = (output, context) => {
|
|
4924
4334
|
const retVal = (output || [])
|
|
4925
4335
|
.filter((e) => e != null)
|
|
4926
4336
|
.map((entry) => {
|
|
4927
|
-
if (entry === null) {
|
|
4928
|
-
return null;
|
|
4929
|
-
}
|
|
4930
4337
|
return de_Notification(entry, context);
|
|
4931
4338
|
});
|
|
4932
4339
|
return retVal;
|
|
4933
4340
|
};
|
|
4934
|
-
const de_Resource = (output, context) => {
|
|
4935
|
-
return {
|
|
4936
|
-
arn: __expectString(output.arn),
|
|
4937
|
-
complianceCheck: __expectString(output.complianceCheck),
|
|
4938
|
-
value: __expectString(output.value),
|
|
4939
|
-
};
|
|
4940
|
-
};
|
|
4941
|
-
const de_Resources = (output, context) => {
|
|
4942
|
-
const retVal = (output || [])
|
|
4943
|
-
.filter((e) => e != null)
|
|
4944
|
-
.map((entry) => {
|
|
4945
|
-
if (entry === null) {
|
|
4946
|
-
return null;
|
|
4947
|
-
}
|
|
4948
|
-
return de_Resource(entry, context);
|
|
4949
|
-
});
|
|
4950
|
-
return retVal;
|
|
4951
|
-
};
|
|
4952
|
-
const de_Role = (output, context) => {
|
|
4953
|
-
return {
|
|
4954
|
-
roleArn: __expectString(output.roleArn),
|
|
4955
|
-
roleType: __expectString(output.roleType),
|
|
4956
|
-
};
|
|
4957
|
-
};
|
|
4958
|
-
const de_Roles = (output, context) => {
|
|
4959
|
-
const retVal = (output || [])
|
|
4960
|
-
.filter((e) => e != null)
|
|
4961
|
-
.map((entry) => {
|
|
4962
|
-
if (entry === null) {
|
|
4963
|
-
return null;
|
|
4964
|
-
}
|
|
4965
|
-
return de_Role(entry, context);
|
|
4966
|
-
});
|
|
4967
|
-
return retVal;
|
|
4968
|
-
};
|
|
4969
|
-
const de_Scope = (output, context) => {
|
|
4970
|
-
return {
|
|
4971
|
-
awsAccounts: output.awsAccounts != null ? de_AWSAccounts(output.awsAccounts, context) : undefined,
|
|
4972
|
-
awsServices: output.awsServices != null ? de_AWSServices(output.awsServices, context) : undefined,
|
|
4973
|
-
};
|
|
4974
|
-
};
|
|
4975
|
-
const de_ServiceMetadata = (output, context) => {
|
|
4976
|
-
return {
|
|
4977
|
-
category: __expectString(output.category),
|
|
4978
|
-
description: __expectString(output.description),
|
|
4979
|
-
displayName: __expectString(output.displayName),
|
|
4980
|
-
name: __expectString(output.name),
|
|
4981
|
-
};
|
|
4982
|
-
};
|
|
4983
|
-
const de_ServiceMetadataList = (output, context) => {
|
|
4984
|
-
const retVal = (output || [])
|
|
4985
|
-
.filter((e) => e != null)
|
|
4986
|
-
.map((entry) => {
|
|
4987
|
-
if (entry === null) {
|
|
4988
|
-
return null;
|
|
4989
|
-
}
|
|
4990
|
-
return de_ServiceMetadata(entry, context);
|
|
4991
|
-
});
|
|
4992
|
-
return retVal;
|
|
4993
|
-
};
|
|
4994
|
-
const de_Settings = (output, context) => {
|
|
4995
|
-
return {
|
|
4996
|
-
defaultAssessmentReportsDestination: output.defaultAssessmentReportsDestination != null
|
|
4997
|
-
? de_AssessmentReportsDestination(output.defaultAssessmentReportsDestination, context)
|
|
4998
|
-
: undefined,
|
|
4999
|
-
defaultProcessOwners: output.defaultProcessOwners != null ? de_Roles(output.defaultProcessOwners, context) : undefined,
|
|
5000
|
-
deregistrationPolicy: output.deregistrationPolicy != null ? de_DeregistrationPolicy(output.deregistrationPolicy, context) : undefined,
|
|
5001
|
-
evidenceFinderEnablement: output.evidenceFinderEnablement != null
|
|
5002
|
-
? de_EvidenceFinderEnablement(output.evidenceFinderEnablement, context)
|
|
5003
|
-
: undefined,
|
|
5004
|
-
isAwsOrgEnabled: __expectBoolean(output.isAwsOrgEnabled),
|
|
5005
|
-
kmsKey: __expectString(output.kmsKey),
|
|
5006
|
-
snsTopic: __expectString(output.snsTopic),
|
|
5007
|
-
};
|
|
5008
|
-
};
|
|
5009
|
-
const de_SourceKeyword = (output, context) => {
|
|
5010
|
-
return {
|
|
5011
|
-
keywordInputType: __expectString(output.keywordInputType),
|
|
5012
|
-
keywordValue: __expectString(output.keywordValue),
|
|
5013
|
-
};
|
|
5014
|
-
};
|
|
5015
|
-
const de_TagMap = (output, context) => {
|
|
5016
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
5017
|
-
if (value === null) {
|
|
5018
|
-
return acc;
|
|
5019
|
-
}
|
|
5020
|
-
acc[key] = __expectString(value);
|
|
5021
|
-
return acc;
|
|
5022
|
-
}, {});
|
|
5023
|
-
};
|
|
5024
|
-
const de_URL = (output, context) => {
|
|
5025
|
-
return {
|
|
5026
|
-
hyperlinkName: __expectString(output.hyperlinkName),
|
|
5027
|
-
link: __expectString(output.link),
|
|
5028
|
-
};
|
|
5029
|
-
};
|
|
5030
|
-
const de_ValidationErrors = (output, context) => {
|
|
5031
|
-
const retVal = (output || [])
|
|
5032
|
-
.filter((e) => e != null)
|
|
5033
|
-
.map((entry) => {
|
|
5034
|
-
if (entry === null) {
|
|
5035
|
-
return null;
|
|
5036
|
-
}
|
|
5037
|
-
return __expectString(entry);
|
|
5038
|
-
});
|
|
5039
|
-
return retVal;
|
|
5040
|
-
};
|
|
5041
|
-
const de_ValidationExceptionField = (output, context) => {
|
|
5042
|
-
return {
|
|
5043
|
-
message: __expectString(output.message),
|
|
5044
|
-
name: __expectString(output.name),
|
|
5045
|
-
};
|
|
5046
|
-
};
|
|
5047
|
-
const de_ValidationExceptionFieldList = (output, context) => {
|
|
5048
|
-
const retVal = (output || [])
|
|
5049
|
-
.filter((e) => e != null)
|
|
5050
|
-
.map((entry) => {
|
|
5051
|
-
if (entry === null) {
|
|
5052
|
-
return null;
|
|
5053
|
-
}
|
|
5054
|
-
return de_ValidationExceptionField(entry, context);
|
|
5055
|
-
});
|
|
5056
|
-
return retVal;
|
|
5057
|
-
};
|
|
5058
4341
|
const deserializeMetadata = (output) => ({
|
|
5059
4342
|
httpStatusCode: output.statusCode,
|
|
5060
4343
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|