@aws-sdk/client-auditmanager 3.39.0 → 3.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/dist-cjs/AuditManager.js +90 -0
- package/dist-cjs/commands/GetInsightsByAssessmentCommand.js +36 -0
- package/dist-cjs/commands/GetInsightsCommand.js +36 -0
- package/dist-cjs/commands/ListAssessmentControlInsightsByControlDomainCommand.js +36 -0
- package/dist-cjs/commands/ListControlDomainInsightsByAssessmentCommand.js +36 -0
- package/dist-cjs/commands/ListControlDomainInsightsCommand.js +36 -0
- package/dist-cjs/commands/ListControlInsightsByControlDomainCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +110 -2
- package/dist-cjs/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +35 -0
- package/dist-cjs/pagination/ListControlDomainInsightsByAssessmentPaginator.js +35 -0
- package/dist-cjs/pagination/ListControlDomainInsightsPaginator.js +35 -0
- package/dist-cjs/pagination/ListControlInsightsByControlDomainPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +753 -86
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/AuditManager.js +90 -0
- package/dist-es/commands/GetInsightsByAssessmentCommand.js +39 -0
- package/dist-es/commands/GetInsightsCommand.js +39 -0
- package/dist-es/commands/ListAssessmentControlInsightsByControlDomainCommand.js +39 -0
- package/dist-es/commands/ListControlDomainInsightsByAssessmentCommand.js +39 -0
- package/dist-es/commands/ListControlDomainInsightsCommand.js +39 -0
- package/dist-es/commands/ListControlInsightsByControlDomainCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +72 -0
- package/dist-es/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +74 -0
- package/dist-es/pagination/ListControlDomainInsightsByAssessmentPaginator.js +74 -0
- package/dist-es/pagination/ListControlDomainInsightsPaginator.js +74 -0
- package/dist-es/pagination/ListControlInsightsByControlDomainPaginator.js +74 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +798 -34
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/AuditManager.d.ts +69 -2
- package/dist-types/AuditManagerClient.d.ts +16 -2
- package/dist-types/commands/AssociateAssessmentReportEvidenceFolderCommand.d.ts +1 -1
- package/dist-types/commands/BatchAssociateAssessmentReportEvidenceCommand.d.ts +1 -1
- package/dist-types/commands/BatchCreateDelegationByAssessmentCommand.d.ts +1 -1
- package/dist-types/commands/BatchDeleteDelegationByAssessmentCommand.d.ts +1 -1
- package/dist-types/commands/BatchDisassociateAssessmentReportEvidenceCommand.d.ts +1 -1
- package/dist-types/commands/BatchImportEvidenceToAssessmentControlCommand.d.ts +1 -1
- package/dist-types/commands/CreateAssessmentCommand.d.ts +1 -1
- package/dist-types/commands/CreateAssessmentFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/CreateAssessmentReportCommand.d.ts +1 -1
- package/dist-types/commands/CreateControlCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAssessmentCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAssessmentFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAssessmentFrameworkShareCommand.d.ts +1 -1
- package/dist-types/commands/DeleteAssessmentReportCommand.d.ts +1 -1
- package/dist-types/commands/DeleteControlCommand.d.ts +1 -1
- package/dist-types/commands/DeregisterAccountCommand.d.ts +1 -1
- package/dist-types/commands/DeregisterOrganizationAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateAssessmentReportEvidenceFolderCommand.d.ts +1 -1
- package/dist-types/commands/GetAccountStatusCommand.d.ts +1 -1
- package/dist-types/commands/GetAssessmentCommand.d.ts +2 -2
- package/dist-types/commands/GetAssessmentFrameworkCommand.d.ts +2 -2
- package/dist-types/commands/GetAssessmentReportUrlCommand.d.ts +1 -1
- package/dist-types/commands/GetChangeLogsCommand.d.ts +1 -1
- package/dist-types/commands/GetControlCommand.d.ts +1 -1
- package/dist-types/commands/GetDelegationsCommand.d.ts +1 -1
- package/dist-types/commands/GetEvidenceByEvidenceFolderCommand.d.ts +1 -1
- package/dist-types/commands/GetEvidenceCommand.d.ts +1 -1
- package/dist-types/commands/GetEvidenceFolderCommand.d.ts +1 -1
- package/dist-types/commands/GetEvidenceFoldersByAssessmentCommand.d.ts +1 -1
- package/dist-types/commands/GetEvidenceFoldersByAssessmentControlCommand.d.ts +1 -1
- package/dist-types/commands/GetInsightsByAssessmentCommand.d.ts +35 -0
- package/dist-types/commands/GetInsightsCommand.d.ts +35 -0
- package/dist-types/commands/GetOrganizationAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/GetServicesInScopeCommand.d.ts +1 -1
- package/dist-types/commands/GetSettingsCommand.d.ts +1 -1
- package/dist-types/commands/ListAssessmentControlInsightsByControlDomainCommand.d.ts +42 -0
- package/dist-types/commands/ListAssessmentFrameworkShareRequestsCommand.d.ts +1 -1
- package/dist-types/commands/ListAssessmentFrameworksCommand.d.ts +1 -1
- package/dist-types/commands/ListAssessmentReportsCommand.d.ts +1 -1
- package/dist-types/commands/ListAssessmentsCommand.d.ts +1 -1
- package/dist-types/commands/ListControlDomainInsightsByAssessmentCommand.d.ts +40 -0
- package/dist-types/commands/ListControlDomainInsightsCommand.d.ts +41 -0
- package/dist-types/commands/ListControlInsightsByControlDomainCommand.d.ts +42 -0
- package/dist-types/commands/ListControlsCommand.d.ts +1 -1
- package/dist-types/commands/ListKeywordsForDataSourceCommand.d.ts +1 -1
- package/dist-types/commands/ListNotificationsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/RegisterAccountCommand.d.ts +1 -1
- package/dist-types/commands/RegisterOrganizationAdminAccountCommand.d.ts +1 -1
- package/dist-types/commands/StartAssessmentFrameworkShareCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssessmentCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssessmentControlCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssessmentControlSetStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssessmentFrameworkCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssessmentFrameworkShareCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssessmentStatusCommand.d.ts +1 -1
- package/dist-types/commands/UpdateControlCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSettingsCommand.d.ts +1 -1
- package/dist-types/commands/ValidateAssessmentReportIntegrityCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +521 -30
- package/dist-types/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +4 -0
- package/dist-types/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +4 -0
- package/dist-types/pagination/ListControlDomainInsightsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListControlInsightsByControlDomainPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/AuditManager.d.ts +30 -0
- package/dist-types/ts3.4/AuditManagerClient.d.ts +12 -2
- package/dist-types/ts3.4/commands/GetInsightsByAssessmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetInsightsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListAssessmentControlInsightsByControlDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListControlDomainInsightsByAssessmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListControlDomainInsightsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListControlInsightsByControlDomainCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +224 -0
- package/dist-types/ts3.4/pagination/ListAssessmentControlInsightsByControlDomainPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListControlDomainInsightsByAssessmentPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListControlDomainInsightsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListControlInsightsByControlDomainPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand = exports.deserializeAws_restJson1UpdateSettingsCommand = exports.deserializeAws_restJson1UpdateControlCommand = exports.deserializeAws_restJson1UpdateAssessmentStatusCommand = exports.deserializeAws_restJson1UpdateAssessmentFrameworkShareCommand = exports.deserializeAws_restJson1UpdateAssessmentFrameworkCommand = exports.deserializeAws_restJson1UpdateAssessmentControlSetStatusCommand = exports.deserializeAws_restJson1UpdateAssessmentControlCommand = exports.deserializeAws_restJson1UpdateAssessmentCommand = exports.deserializeAws_restJson1UntagResourceCommand = void 0;
|
|
3
|
+
exports.serializeAws_restJson1StartAssessmentFrameworkShareCommand = exports.serializeAws_restJson1RegisterOrganizationAdminAccountCommand = exports.serializeAws_restJson1RegisterAccountCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListNotificationsCommand = exports.serializeAws_restJson1ListKeywordsForDataSourceCommand = exports.serializeAws_restJson1ListControlsCommand = exports.serializeAws_restJson1ListControlInsightsByControlDomainCommand = exports.serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = exports.serializeAws_restJson1ListControlDomainInsightsCommand = exports.serializeAws_restJson1ListAssessmentsCommand = exports.serializeAws_restJson1ListAssessmentReportsCommand = exports.serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = exports.serializeAws_restJson1ListAssessmentFrameworksCommand = exports.serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = exports.serializeAws_restJson1GetSettingsCommand = exports.serializeAws_restJson1GetServicesInScopeCommand = exports.serializeAws_restJson1GetOrganizationAdminAccountCommand = exports.serializeAws_restJson1GetInsightsByAssessmentCommand = exports.serializeAws_restJson1GetInsightsCommand = exports.serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = exports.serializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = exports.serializeAws_restJson1GetEvidenceFolderCommand = exports.serializeAws_restJson1GetEvidenceByEvidenceFolderCommand = exports.serializeAws_restJson1GetEvidenceCommand = exports.serializeAws_restJson1GetDelegationsCommand = exports.serializeAws_restJson1GetControlCommand = exports.serializeAws_restJson1GetChangeLogsCommand = exports.serializeAws_restJson1GetAssessmentReportUrlCommand = exports.serializeAws_restJson1GetAssessmentFrameworkCommand = exports.serializeAws_restJson1GetAssessmentCommand = exports.serializeAws_restJson1GetAccountStatusCommand = exports.serializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand = exports.serializeAws_restJson1DeregisterOrganizationAdminAccountCommand = exports.serializeAws_restJson1DeregisterAccountCommand = exports.serializeAws_restJson1DeleteControlCommand = exports.serializeAws_restJson1DeleteAssessmentReportCommand = exports.serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = exports.serializeAws_restJson1DeleteAssessmentFrameworkCommand = exports.serializeAws_restJson1DeleteAssessmentCommand = exports.serializeAws_restJson1CreateControlCommand = exports.serializeAws_restJson1CreateAssessmentReportCommand = exports.serializeAws_restJson1CreateAssessmentFrameworkCommand = exports.serializeAws_restJson1CreateAssessmentCommand = exports.serializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = exports.serializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = exports.serializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = exports.serializeAws_restJson1BatchCreateDelegationByAssessmentCommand = exports.serializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = exports.serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1ListAssessmentReportsCommand = exports.deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = exports.deserializeAws_restJson1ListAssessmentFrameworksCommand = exports.deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = exports.deserializeAws_restJson1GetSettingsCommand = exports.deserializeAws_restJson1GetServicesInScopeCommand = exports.deserializeAws_restJson1GetOrganizationAdminAccountCommand = exports.deserializeAws_restJson1GetInsightsByAssessmentCommand = exports.deserializeAws_restJson1GetInsightsCommand = exports.deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = exports.deserializeAws_restJson1GetEvidenceFoldersByAssessmentCommand = exports.deserializeAws_restJson1GetEvidenceFolderCommand = exports.deserializeAws_restJson1GetEvidenceByEvidenceFolderCommand = exports.deserializeAws_restJson1GetEvidenceCommand = exports.deserializeAws_restJson1GetDelegationsCommand = exports.deserializeAws_restJson1GetControlCommand = exports.deserializeAws_restJson1GetChangeLogsCommand = exports.deserializeAws_restJson1GetAssessmentReportUrlCommand = exports.deserializeAws_restJson1GetAssessmentFrameworkCommand = exports.deserializeAws_restJson1GetAssessmentCommand = exports.deserializeAws_restJson1GetAccountStatusCommand = exports.deserializeAws_restJson1DisassociateAssessmentReportEvidenceFolderCommand = exports.deserializeAws_restJson1DeregisterOrganizationAdminAccountCommand = exports.deserializeAws_restJson1DeregisterAccountCommand = exports.deserializeAws_restJson1DeleteControlCommand = exports.deserializeAws_restJson1DeleteAssessmentReportCommand = exports.deserializeAws_restJson1DeleteAssessmentFrameworkShareCommand = exports.deserializeAws_restJson1DeleteAssessmentFrameworkCommand = exports.deserializeAws_restJson1DeleteAssessmentCommand = exports.deserializeAws_restJson1CreateControlCommand = exports.deserializeAws_restJson1CreateAssessmentReportCommand = exports.deserializeAws_restJson1CreateAssessmentFrameworkCommand = exports.deserializeAws_restJson1CreateAssessmentCommand = exports.deserializeAws_restJson1BatchImportEvidenceToAssessmentControlCommand = exports.deserializeAws_restJson1BatchDisassociateAssessmentReportEvidenceCommand = exports.deserializeAws_restJson1BatchDeleteDelegationByAssessmentCommand = exports.deserializeAws_restJson1BatchCreateDelegationByAssessmentCommand = exports.deserializeAws_restJson1BatchAssociateAssessmentReportEvidenceCommand = exports.deserializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = exports.serializeAws_restJson1ValidateAssessmentReportIntegrityCommand = exports.serializeAws_restJson1UpdateSettingsCommand = exports.serializeAws_restJson1UpdateControlCommand = exports.serializeAws_restJson1UpdateAssessmentStatusCommand = exports.serializeAws_restJson1UpdateAssessmentFrameworkShareCommand = exports.serializeAws_restJson1UpdateAssessmentFrameworkCommand = exports.serializeAws_restJson1UpdateAssessmentControlSetStatusCommand = exports.serializeAws_restJson1UpdateAssessmentControlCommand = exports.serializeAws_restJson1UpdateAssessmentCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1ValidateAssessmentReportIntegrityCommand = exports.deserializeAws_restJson1UpdateSettingsCommand = exports.deserializeAws_restJson1UpdateControlCommand = exports.deserializeAws_restJson1UpdateAssessmentStatusCommand = exports.deserializeAws_restJson1UpdateAssessmentFrameworkShareCommand = exports.deserializeAws_restJson1UpdateAssessmentFrameworkCommand = exports.deserializeAws_restJson1UpdateAssessmentControlSetStatusCommand = exports.deserializeAws_restJson1UpdateAssessmentControlCommand = exports.deserializeAws_restJson1UpdateAssessmentCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartAssessmentFrameworkShareCommand = exports.deserializeAws_restJson1RegisterOrganizationAdminAccountCommand = exports.deserializeAws_restJson1RegisterAccountCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListNotificationsCommand = exports.deserializeAws_restJson1ListKeywordsForDataSourceCommand = exports.deserializeAws_restJson1ListControlsCommand = exports.deserializeAws_restJson1ListControlInsightsByControlDomainCommand = exports.deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = exports.deserializeAws_restJson1ListControlDomainInsightsCommand = exports.deserializeAws_restJson1ListAssessmentsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const serializeAws_restJson1AssociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
|
|
@@ -1006,6 +1006,51 @@ const serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = async
|
|
|
1006
1006
|
});
|
|
1007
1007
|
};
|
|
1008
1008
|
exports.serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand = serializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommand;
|
|
1009
|
+
const serializeAws_restJson1GetInsightsCommand = async (input, context) => {
|
|
1010
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1011
|
+
const headers = {
|
|
1012
|
+
"content-type": "application/json",
|
|
1013
|
+
};
|
|
1014
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights";
|
|
1015
|
+
let body;
|
|
1016
|
+
body = "";
|
|
1017
|
+
return new protocol_http_1.HttpRequest({
|
|
1018
|
+
protocol,
|
|
1019
|
+
hostname,
|
|
1020
|
+
port,
|
|
1021
|
+
method: "GET",
|
|
1022
|
+
headers,
|
|
1023
|
+
path: resolvedPath,
|
|
1024
|
+
body,
|
|
1025
|
+
});
|
|
1026
|
+
};
|
|
1027
|
+
exports.serializeAws_restJson1GetInsightsCommand = serializeAws_restJson1GetInsightsCommand;
|
|
1028
|
+
const serializeAws_restJson1GetInsightsByAssessmentCommand = async (input, context) => {
|
|
1029
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1030
|
+
const headers = {};
|
|
1031
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/assessments/{assessmentId}";
|
|
1032
|
+
if (input.assessmentId !== undefined) {
|
|
1033
|
+
const labelValue = input.assessmentId;
|
|
1034
|
+
if (labelValue.length <= 0) {
|
|
1035
|
+
throw new Error("Empty value provided for input HTTP label: assessmentId.");
|
|
1036
|
+
}
|
|
1037
|
+
resolvedPath = resolvedPath.replace("{assessmentId}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
1038
|
+
}
|
|
1039
|
+
else {
|
|
1040
|
+
throw new Error("No value provided for input HTTP label: assessmentId.");
|
|
1041
|
+
}
|
|
1042
|
+
let body;
|
|
1043
|
+
return new protocol_http_1.HttpRequest({
|
|
1044
|
+
protocol,
|
|
1045
|
+
hostname,
|
|
1046
|
+
port,
|
|
1047
|
+
method: "GET",
|
|
1048
|
+
headers,
|
|
1049
|
+
path: resolvedPath,
|
|
1050
|
+
body,
|
|
1051
|
+
});
|
|
1052
|
+
};
|
|
1053
|
+
exports.serializeAws_restJson1GetInsightsByAssessmentCommand = serializeAws_restJson1GetInsightsByAssessmentCommand;
|
|
1009
1054
|
const serializeAws_restJson1GetOrganizationAdminAccountCommand = async (input, context) => {
|
|
1010
1055
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1011
1056
|
const headers = {
|
|
@@ -1070,6 +1115,29 @@ const serializeAws_restJson1GetSettingsCommand = async (input, context) => {
|
|
|
1070
1115
|
});
|
|
1071
1116
|
};
|
|
1072
1117
|
exports.serializeAws_restJson1GetSettingsCommand = serializeAws_restJson1GetSettingsCommand;
|
|
1118
|
+
const serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = async (input, context) => {
|
|
1119
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1120
|
+
const headers = {};
|
|
1121
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment";
|
|
1122
|
+
const query = {
|
|
1123
|
+
...(input.controlDomainId !== undefined && { controlDomainId: input.controlDomainId }),
|
|
1124
|
+
...(input.assessmentId !== undefined && { assessmentId: input.assessmentId }),
|
|
1125
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
1126
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
1127
|
+
};
|
|
1128
|
+
let body;
|
|
1129
|
+
return new protocol_http_1.HttpRequest({
|
|
1130
|
+
protocol,
|
|
1131
|
+
hostname,
|
|
1132
|
+
port,
|
|
1133
|
+
method: "GET",
|
|
1134
|
+
headers,
|
|
1135
|
+
path: resolvedPath,
|
|
1136
|
+
query,
|
|
1137
|
+
body,
|
|
1138
|
+
});
|
|
1139
|
+
};
|
|
1140
|
+
exports.serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = serializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand;
|
|
1073
1141
|
const serializeAws_restJson1ListAssessmentFrameworksCommand = async (input, context) => {
|
|
1074
1142
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1075
1143
|
const headers = {};
|
|
@@ -1140,6 +1208,7 @@ const serializeAws_restJson1ListAssessmentsCommand = async (input, context) => {
|
|
|
1140
1208
|
const headers = {};
|
|
1141
1209
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/assessments";
|
|
1142
1210
|
const query = {
|
|
1211
|
+
...(input.status !== undefined && { status: input.status }),
|
|
1143
1212
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
1144
1213
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
1145
1214
|
};
|
|
@@ -1156,6 +1225,71 @@ const serializeAws_restJson1ListAssessmentsCommand = async (input, context) => {
|
|
|
1156
1225
|
});
|
|
1157
1226
|
};
|
|
1158
1227
|
exports.serializeAws_restJson1ListAssessmentsCommand = serializeAws_restJson1ListAssessmentsCommand;
|
|
1228
|
+
const serializeAws_restJson1ListControlDomainInsightsCommand = async (input, context) => {
|
|
1229
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1230
|
+
const headers = {};
|
|
1231
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains";
|
|
1232
|
+
const query = {
|
|
1233
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
1234
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
1235
|
+
};
|
|
1236
|
+
let body;
|
|
1237
|
+
return new protocol_http_1.HttpRequest({
|
|
1238
|
+
protocol,
|
|
1239
|
+
hostname,
|
|
1240
|
+
port,
|
|
1241
|
+
method: "GET",
|
|
1242
|
+
headers,
|
|
1243
|
+
path: resolvedPath,
|
|
1244
|
+
query,
|
|
1245
|
+
body,
|
|
1246
|
+
});
|
|
1247
|
+
};
|
|
1248
|
+
exports.serializeAws_restJson1ListControlDomainInsightsCommand = serializeAws_restJson1ListControlDomainInsightsCommand;
|
|
1249
|
+
const serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = async (input, context) => {
|
|
1250
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1251
|
+
const headers = {};
|
|
1252
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment";
|
|
1253
|
+
const query = {
|
|
1254
|
+
...(input.assessmentId !== undefined && { assessmentId: input.assessmentId }),
|
|
1255
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
1256
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
1257
|
+
};
|
|
1258
|
+
let body;
|
|
1259
|
+
return new protocol_http_1.HttpRequest({
|
|
1260
|
+
protocol,
|
|
1261
|
+
hostname,
|
|
1262
|
+
port,
|
|
1263
|
+
method: "GET",
|
|
1264
|
+
headers,
|
|
1265
|
+
path: resolvedPath,
|
|
1266
|
+
query,
|
|
1267
|
+
body,
|
|
1268
|
+
});
|
|
1269
|
+
};
|
|
1270
|
+
exports.serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand;
|
|
1271
|
+
const serializeAws_restJson1ListControlInsightsByControlDomainCommand = async (input, context) => {
|
|
1272
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1273
|
+
const headers = {};
|
|
1274
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls";
|
|
1275
|
+
const query = {
|
|
1276
|
+
...(input.controlDomainId !== undefined && { controlDomainId: input.controlDomainId }),
|
|
1277
|
+
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
1278
|
+
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
1279
|
+
};
|
|
1280
|
+
let body;
|
|
1281
|
+
return new protocol_http_1.HttpRequest({
|
|
1282
|
+
protocol,
|
|
1283
|
+
hostname,
|
|
1284
|
+
port,
|
|
1285
|
+
method: "GET",
|
|
1286
|
+
headers,
|
|
1287
|
+
path: resolvedPath,
|
|
1288
|
+
query,
|
|
1289
|
+
body,
|
|
1290
|
+
});
|
|
1291
|
+
};
|
|
1292
|
+
exports.serializeAws_restJson1ListControlInsightsByControlDomainCommand = serializeAws_restJson1ListControlInsightsByControlDomainCommand;
|
|
1159
1293
|
const serializeAws_restJson1ListControlsCommand = async (input, context) => {
|
|
1160
1294
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1161
1295
|
const headers = {};
|
|
@@ -3855,26 +3989,22 @@ const deserializeAws_restJson1GetEvidenceFoldersByAssessmentControlCommandError
|
|
|
3855
3989
|
delete response.Message;
|
|
3856
3990
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3857
3991
|
};
|
|
3858
|
-
const
|
|
3992
|
+
const deserializeAws_restJson1GetInsightsCommand = async (output, context) => {
|
|
3859
3993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3860
|
-
return
|
|
3994
|
+
return deserializeAws_restJson1GetInsightsCommandError(output, context);
|
|
3861
3995
|
}
|
|
3862
3996
|
const contents = {
|
|
3863
3997
|
$metadata: deserializeMetadata(output),
|
|
3864
|
-
|
|
3865
|
-
organizationId: undefined,
|
|
3998
|
+
insights: undefined,
|
|
3866
3999
|
};
|
|
3867
4000
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3868
|
-
if (data.
|
|
3869
|
-
contents.
|
|
3870
|
-
}
|
|
3871
|
-
if (data.organizationId !== undefined && data.organizationId !== null) {
|
|
3872
|
-
contents.organizationId = smithy_client_1.expectString(data.organizationId);
|
|
4001
|
+
if (data.insights !== undefined && data.insights !== null) {
|
|
4002
|
+
contents.insights = deserializeAws_restJson1Insights(data.insights, context);
|
|
3873
4003
|
}
|
|
3874
4004
|
return Promise.resolve(contents);
|
|
3875
4005
|
};
|
|
3876
|
-
exports.
|
|
3877
|
-
const
|
|
4006
|
+
exports.deserializeAws_restJson1GetInsightsCommand = deserializeAws_restJson1GetInsightsCommand;
|
|
4007
|
+
const deserializeAws_restJson1GetInsightsCommandError = async (output, context) => {
|
|
3878
4008
|
const parsedOutput = {
|
|
3879
4009
|
...output,
|
|
3880
4010
|
body: await parseBody(output.body, context),
|
|
@@ -3899,22 +4029,6 @@ const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (o
|
|
|
3899
4029
|
$metadata: deserializeMetadata(output),
|
|
3900
4030
|
};
|
|
3901
4031
|
break;
|
|
3902
|
-
case "ResourceNotFoundException":
|
|
3903
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3904
|
-
response = {
|
|
3905
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3906
|
-
name: errorCode,
|
|
3907
|
-
$metadata: deserializeMetadata(output),
|
|
3908
|
-
};
|
|
3909
|
-
break;
|
|
3910
|
-
case "ValidationException":
|
|
3911
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3912
|
-
response = {
|
|
3913
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
3914
|
-
name: errorCode,
|
|
3915
|
-
$metadata: deserializeMetadata(output),
|
|
3916
|
-
};
|
|
3917
|
-
break;
|
|
3918
4032
|
default:
|
|
3919
4033
|
const parsedBody = parsedOutput.body;
|
|
3920
4034
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3931,22 +4045,22 @@ const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (o
|
|
|
3931
4045
|
delete response.Message;
|
|
3932
4046
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3933
4047
|
};
|
|
3934
|
-
const
|
|
4048
|
+
const deserializeAws_restJson1GetInsightsByAssessmentCommand = async (output, context) => {
|
|
3935
4049
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3936
|
-
return
|
|
4050
|
+
return deserializeAws_restJson1GetInsightsByAssessmentCommandError(output, context);
|
|
3937
4051
|
}
|
|
3938
4052
|
const contents = {
|
|
3939
4053
|
$metadata: deserializeMetadata(output),
|
|
3940
|
-
|
|
4054
|
+
insights: undefined,
|
|
3941
4055
|
};
|
|
3942
4056
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3943
|
-
if (data.
|
|
3944
|
-
contents.
|
|
4057
|
+
if (data.insights !== undefined && data.insights !== null) {
|
|
4058
|
+
contents.insights = deserializeAws_restJson1InsightsByAssessment(data.insights, context);
|
|
3945
4059
|
}
|
|
3946
4060
|
return Promise.resolve(contents);
|
|
3947
4061
|
};
|
|
3948
|
-
exports.
|
|
3949
|
-
const
|
|
4062
|
+
exports.deserializeAws_restJson1GetInsightsByAssessmentCommand = deserializeAws_restJson1GetInsightsByAssessmentCommand;
|
|
4063
|
+
const deserializeAws_restJson1GetInsightsByAssessmentCommandError = async (output, context) => {
|
|
3950
4064
|
const parsedOutput = {
|
|
3951
4065
|
...output,
|
|
3952
4066
|
body: await parseBody(output.body, context),
|
|
@@ -3971,6 +4085,14 @@ const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, co
|
|
|
3971
4085
|
$metadata: deserializeMetadata(output),
|
|
3972
4086
|
};
|
|
3973
4087
|
break;
|
|
4088
|
+
case "ResourceNotFoundException":
|
|
4089
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4090
|
+
response = {
|
|
4091
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4092
|
+
name: errorCode,
|
|
4093
|
+
$metadata: deserializeMetadata(output),
|
|
4094
|
+
};
|
|
4095
|
+
break;
|
|
3974
4096
|
case "ValidationException":
|
|
3975
4097
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
3976
4098
|
response = {
|
|
@@ -3995,22 +4117,26 @@ const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, co
|
|
|
3995
4117
|
delete response.Message;
|
|
3996
4118
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3997
4119
|
};
|
|
3998
|
-
const
|
|
4120
|
+
const deserializeAws_restJson1GetOrganizationAdminAccountCommand = async (output, context) => {
|
|
3999
4121
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4000
|
-
return
|
|
4122
|
+
return deserializeAws_restJson1GetOrganizationAdminAccountCommandError(output, context);
|
|
4001
4123
|
}
|
|
4002
4124
|
const contents = {
|
|
4003
4125
|
$metadata: deserializeMetadata(output),
|
|
4004
|
-
|
|
4126
|
+
adminAccountId: undefined,
|
|
4127
|
+
organizationId: undefined,
|
|
4005
4128
|
};
|
|
4006
4129
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4007
|
-
if (data.
|
|
4008
|
-
contents.
|
|
4130
|
+
if (data.adminAccountId !== undefined && data.adminAccountId !== null) {
|
|
4131
|
+
contents.adminAccountId = smithy_client_1.expectString(data.adminAccountId);
|
|
4132
|
+
}
|
|
4133
|
+
if (data.organizationId !== undefined && data.organizationId !== null) {
|
|
4134
|
+
contents.organizationId = smithy_client_1.expectString(data.organizationId);
|
|
4009
4135
|
}
|
|
4010
4136
|
return Promise.resolve(contents);
|
|
4011
4137
|
};
|
|
4012
|
-
exports.
|
|
4013
|
-
const
|
|
4138
|
+
exports.deserializeAws_restJson1GetOrganizationAdminAccountCommand = deserializeAws_restJson1GetOrganizationAdminAccountCommand;
|
|
4139
|
+
const deserializeAws_restJson1GetOrganizationAdminAccountCommandError = async (output, context) => {
|
|
4014
4140
|
const parsedOutput = {
|
|
4015
4141
|
...output,
|
|
4016
4142
|
body: await parseBody(output.body, context),
|
|
@@ -4035,6 +4161,22 @@ const deserializeAws_restJson1GetSettingsCommandError = async (output, context)
|
|
|
4035
4161
|
$metadata: deserializeMetadata(output),
|
|
4036
4162
|
};
|
|
4037
4163
|
break;
|
|
4164
|
+
case "ResourceNotFoundException":
|
|
4165
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4166
|
+
response = {
|
|
4167
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4168
|
+
name: errorCode,
|
|
4169
|
+
$metadata: deserializeMetadata(output),
|
|
4170
|
+
};
|
|
4171
|
+
break;
|
|
4172
|
+
case "ValidationException":
|
|
4173
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
4174
|
+
response = {
|
|
4175
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4176
|
+
name: errorCode,
|
|
4177
|
+
$metadata: deserializeMetadata(output),
|
|
4178
|
+
};
|
|
4179
|
+
break;
|
|
4038
4180
|
default:
|
|
4039
4181
|
const parsedBody = parsedOutput.body;
|
|
4040
4182
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4051,26 +4193,22 @@ const deserializeAws_restJson1GetSettingsCommandError = async (output, context)
|
|
|
4051
4193
|
delete response.Message;
|
|
4052
4194
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4053
4195
|
};
|
|
4054
|
-
const
|
|
4196
|
+
const deserializeAws_restJson1GetServicesInScopeCommand = async (output, context) => {
|
|
4055
4197
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4056
|
-
return
|
|
4198
|
+
return deserializeAws_restJson1GetServicesInScopeCommandError(output, context);
|
|
4057
4199
|
}
|
|
4058
4200
|
const contents = {
|
|
4059
4201
|
$metadata: deserializeMetadata(output),
|
|
4060
|
-
|
|
4061
|
-
nextToken: undefined,
|
|
4202
|
+
serviceMetadata: undefined,
|
|
4062
4203
|
};
|
|
4063
4204
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4064
|
-
if (data.
|
|
4065
|
-
contents.
|
|
4066
|
-
}
|
|
4067
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4068
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4205
|
+
if (data.serviceMetadata !== undefined && data.serviceMetadata !== null) {
|
|
4206
|
+
contents.serviceMetadata = deserializeAws_restJson1ServiceMetadataList(data.serviceMetadata, context);
|
|
4069
4207
|
}
|
|
4070
4208
|
return Promise.resolve(contents);
|
|
4071
4209
|
};
|
|
4072
|
-
exports.
|
|
4073
|
-
const
|
|
4210
|
+
exports.deserializeAws_restJson1GetServicesInScopeCommand = deserializeAws_restJson1GetServicesInScopeCommand;
|
|
4211
|
+
const deserializeAws_restJson1GetServicesInScopeCommandError = async (output, context) => {
|
|
4074
4212
|
const parsedOutput = {
|
|
4075
4213
|
...output,
|
|
4076
4214
|
body: await parseBody(output.body, context),
|
|
@@ -4119,26 +4257,22 @@ const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (outp
|
|
|
4119
4257
|
delete response.Message;
|
|
4120
4258
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4121
4259
|
};
|
|
4122
|
-
const
|
|
4260
|
+
const deserializeAws_restJson1GetSettingsCommand = async (output, context) => {
|
|
4123
4261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4124
|
-
return
|
|
4262
|
+
return deserializeAws_restJson1GetSettingsCommandError(output, context);
|
|
4125
4263
|
}
|
|
4126
4264
|
const contents = {
|
|
4127
4265
|
$metadata: deserializeMetadata(output),
|
|
4128
|
-
|
|
4129
|
-
nextToken: undefined,
|
|
4266
|
+
settings: undefined,
|
|
4130
4267
|
};
|
|
4131
4268
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4132
|
-
if (data.
|
|
4133
|
-
contents.
|
|
4134
|
-
}
|
|
4135
|
-
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4136
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4269
|
+
if (data.settings !== undefined && data.settings !== null) {
|
|
4270
|
+
contents.settings = deserializeAws_restJson1Settings(data.settings, context);
|
|
4137
4271
|
}
|
|
4138
4272
|
return Promise.resolve(contents);
|
|
4139
4273
|
};
|
|
4140
|
-
exports.
|
|
4141
|
-
const
|
|
4274
|
+
exports.deserializeAws_restJson1GetSettingsCommand = deserializeAws_restJson1GetSettingsCommand;
|
|
4275
|
+
const deserializeAws_restJson1GetSettingsCommandError = async (output, context) => {
|
|
4142
4276
|
const parsedOutput = {
|
|
4143
4277
|
...output,
|
|
4144
4278
|
body: await parseBody(output.body, context),
|
|
@@ -4163,14 +4297,6 @@ const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError =
|
|
|
4163
4297
|
$metadata: deserializeMetadata(output),
|
|
4164
4298
|
};
|
|
4165
4299
|
break;
|
|
4166
|
-
case "ValidationException":
|
|
4167
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
4168
|
-
response = {
|
|
4169
|
-
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4170
|
-
name: errorCode,
|
|
4171
|
-
$metadata: deserializeMetadata(output),
|
|
4172
|
-
};
|
|
4173
|
-
break;
|
|
4174
4300
|
default:
|
|
4175
4301
|
const parsedBody = parsedOutput.body;
|
|
4176
4302
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -4187,26 +4313,26 @@ const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError =
|
|
|
4187
4313
|
delete response.Message;
|
|
4188
4314
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4189
4315
|
};
|
|
4190
|
-
const
|
|
4316
|
+
const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = async (output, context) => {
|
|
4191
4317
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4192
|
-
return
|
|
4318
|
+
return deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommandError(output, context);
|
|
4193
4319
|
}
|
|
4194
4320
|
const contents = {
|
|
4195
4321
|
$metadata: deserializeMetadata(output),
|
|
4196
|
-
|
|
4322
|
+
controlInsightsByAssessment: undefined,
|
|
4197
4323
|
nextToken: undefined,
|
|
4198
4324
|
};
|
|
4199
4325
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4200
|
-
if (data.
|
|
4201
|
-
contents.
|
|
4326
|
+
if (data.controlInsightsByAssessment !== undefined && data.controlInsightsByAssessment !== null) {
|
|
4327
|
+
contents.controlInsightsByAssessment = deserializeAws_restJson1ControlInsightsMetadataByAssessment(data.controlInsightsByAssessment, context);
|
|
4202
4328
|
}
|
|
4203
4329
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4204
4330
|
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4205
4331
|
}
|
|
4206
4332
|
return Promise.resolve(contents);
|
|
4207
4333
|
};
|
|
4208
|
-
exports.
|
|
4209
|
-
const
|
|
4334
|
+
exports.deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand = deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommand;
|
|
4335
|
+
const deserializeAws_restJson1ListAssessmentControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
4210
4336
|
const parsedOutput = {
|
|
4211
4337
|
...output,
|
|
4212
4338
|
body: await parseBody(output.body, context),
|
|
@@ -4231,6 +4357,14 @@ const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output,
|
|
|
4231
4357
|
$metadata: deserializeMetadata(output),
|
|
4232
4358
|
};
|
|
4233
4359
|
break;
|
|
4360
|
+
case "ResourceNotFoundException":
|
|
4361
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4362
|
+
response = {
|
|
4363
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4364
|
+
name: errorCode,
|
|
4365
|
+
$metadata: deserializeMetadata(output),
|
|
4366
|
+
};
|
|
4367
|
+
break;
|
|
4234
4368
|
case "ValidationException":
|
|
4235
4369
|
case "com.amazonaws.auditmanager#ValidationException":
|
|
4236
4370
|
response = {
|
|
@@ -4255,18 +4389,222 @@ const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output,
|
|
|
4255
4389
|
delete response.Message;
|
|
4256
4390
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4257
4391
|
};
|
|
4258
|
-
const
|
|
4392
|
+
const deserializeAws_restJson1ListAssessmentFrameworksCommand = async (output, context) => {
|
|
4259
4393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4260
|
-
return
|
|
4394
|
+
return deserializeAws_restJson1ListAssessmentFrameworksCommandError(output, context);
|
|
4261
4395
|
}
|
|
4262
4396
|
const contents = {
|
|
4263
4397
|
$metadata: deserializeMetadata(output),
|
|
4264
|
-
|
|
4398
|
+
frameworkMetadataList: undefined,
|
|
4265
4399
|
nextToken: undefined,
|
|
4266
4400
|
};
|
|
4267
4401
|
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4268
|
-
if (data.
|
|
4269
|
-
contents.
|
|
4402
|
+
if (data.frameworkMetadataList !== undefined && data.frameworkMetadataList !== null) {
|
|
4403
|
+
contents.frameworkMetadataList = deserializeAws_restJson1FrameworkMetadataList(data.frameworkMetadataList, context);
|
|
4404
|
+
}
|
|
4405
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4406
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4407
|
+
}
|
|
4408
|
+
return Promise.resolve(contents);
|
|
4409
|
+
};
|
|
4410
|
+
exports.deserializeAws_restJson1ListAssessmentFrameworksCommand = deserializeAws_restJson1ListAssessmentFrameworksCommand;
|
|
4411
|
+
const deserializeAws_restJson1ListAssessmentFrameworksCommandError = async (output, context) => {
|
|
4412
|
+
const parsedOutput = {
|
|
4413
|
+
...output,
|
|
4414
|
+
body: await parseBody(output.body, context),
|
|
4415
|
+
};
|
|
4416
|
+
let response;
|
|
4417
|
+
let errorCode = "UnknownError";
|
|
4418
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4419
|
+
switch (errorCode) {
|
|
4420
|
+
case "AccessDeniedException":
|
|
4421
|
+
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4422
|
+
response = {
|
|
4423
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4424
|
+
name: errorCode,
|
|
4425
|
+
$metadata: deserializeMetadata(output),
|
|
4426
|
+
};
|
|
4427
|
+
break;
|
|
4428
|
+
case "InternalServerException":
|
|
4429
|
+
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4430
|
+
response = {
|
|
4431
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4432
|
+
name: errorCode,
|
|
4433
|
+
$metadata: deserializeMetadata(output),
|
|
4434
|
+
};
|
|
4435
|
+
break;
|
|
4436
|
+
case "ValidationException":
|
|
4437
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
4438
|
+
response = {
|
|
4439
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4440
|
+
name: errorCode,
|
|
4441
|
+
$metadata: deserializeMetadata(output),
|
|
4442
|
+
};
|
|
4443
|
+
break;
|
|
4444
|
+
default:
|
|
4445
|
+
const parsedBody = parsedOutput.body;
|
|
4446
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4447
|
+
response = {
|
|
4448
|
+
...parsedBody,
|
|
4449
|
+
name: `${errorCode}`,
|
|
4450
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4451
|
+
$fault: "client",
|
|
4452
|
+
$metadata: deserializeMetadata(output),
|
|
4453
|
+
};
|
|
4454
|
+
}
|
|
4455
|
+
const message = response.message || response.Message || errorCode;
|
|
4456
|
+
response.message = message;
|
|
4457
|
+
delete response.Message;
|
|
4458
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4459
|
+
};
|
|
4460
|
+
const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = async (output, context) => {
|
|
4461
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4462
|
+
return deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError(output, context);
|
|
4463
|
+
}
|
|
4464
|
+
const contents = {
|
|
4465
|
+
$metadata: deserializeMetadata(output),
|
|
4466
|
+
assessmentFrameworkShareRequests: undefined,
|
|
4467
|
+
nextToken: undefined,
|
|
4468
|
+
};
|
|
4469
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4470
|
+
if (data.assessmentFrameworkShareRequests !== undefined && data.assessmentFrameworkShareRequests !== null) {
|
|
4471
|
+
contents.assessmentFrameworkShareRequests = deserializeAws_restJson1AssessmentFrameworkShareRequestList(data.assessmentFrameworkShareRequests, context);
|
|
4472
|
+
}
|
|
4473
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4474
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4475
|
+
}
|
|
4476
|
+
return Promise.resolve(contents);
|
|
4477
|
+
};
|
|
4478
|
+
exports.deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand = deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand;
|
|
4479
|
+
const deserializeAws_restJson1ListAssessmentFrameworkShareRequestsCommandError = async (output, context) => {
|
|
4480
|
+
const parsedOutput = {
|
|
4481
|
+
...output,
|
|
4482
|
+
body: await parseBody(output.body, context),
|
|
4483
|
+
};
|
|
4484
|
+
let response;
|
|
4485
|
+
let errorCode = "UnknownError";
|
|
4486
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4487
|
+
switch (errorCode) {
|
|
4488
|
+
case "AccessDeniedException":
|
|
4489
|
+
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4490
|
+
response = {
|
|
4491
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4492
|
+
name: errorCode,
|
|
4493
|
+
$metadata: deserializeMetadata(output),
|
|
4494
|
+
};
|
|
4495
|
+
break;
|
|
4496
|
+
case "InternalServerException":
|
|
4497
|
+
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4498
|
+
response = {
|
|
4499
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4500
|
+
name: errorCode,
|
|
4501
|
+
$metadata: deserializeMetadata(output),
|
|
4502
|
+
};
|
|
4503
|
+
break;
|
|
4504
|
+
case "ValidationException":
|
|
4505
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
4506
|
+
response = {
|
|
4507
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4508
|
+
name: errorCode,
|
|
4509
|
+
$metadata: deserializeMetadata(output),
|
|
4510
|
+
};
|
|
4511
|
+
break;
|
|
4512
|
+
default:
|
|
4513
|
+
const parsedBody = parsedOutput.body;
|
|
4514
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4515
|
+
response = {
|
|
4516
|
+
...parsedBody,
|
|
4517
|
+
name: `${errorCode}`,
|
|
4518
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4519
|
+
$fault: "client",
|
|
4520
|
+
$metadata: deserializeMetadata(output),
|
|
4521
|
+
};
|
|
4522
|
+
}
|
|
4523
|
+
const message = response.message || response.Message || errorCode;
|
|
4524
|
+
response.message = message;
|
|
4525
|
+
delete response.Message;
|
|
4526
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4527
|
+
};
|
|
4528
|
+
const deserializeAws_restJson1ListAssessmentReportsCommand = async (output, context) => {
|
|
4529
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4530
|
+
return deserializeAws_restJson1ListAssessmentReportsCommandError(output, context);
|
|
4531
|
+
}
|
|
4532
|
+
const contents = {
|
|
4533
|
+
$metadata: deserializeMetadata(output),
|
|
4534
|
+
assessmentReports: undefined,
|
|
4535
|
+
nextToken: undefined,
|
|
4536
|
+
};
|
|
4537
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4538
|
+
if (data.assessmentReports !== undefined && data.assessmentReports !== null) {
|
|
4539
|
+
contents.assessmentReports = deserializeAws_restJson1AssessmentReportsMetadata(data.assessmentReports, context);
|
|
4540
|
+
}
|
|
4541
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4542
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4543
|
+
}
|
|
4544
|
+
return Promise.resolve(contents);
|
|
4545
|
+
};
|
|
4546
|
+
exports.deserializeAws_restJson1ListAssessmentReportsCommand = deserializeAws_restJson1ListAssessmentReportsCommand;
|
|
4547
|
+
const deserializeAws_restJson1ListAssessmentReportsCommandError = async (output, context) => {
|
|
4548
|
+
const parsedOutput = {
|
|
4549
|
+
...output,
|
|
4550
|
+
body: await parseBody(output.body, context),
|
|
4551
|
+
};
|
|
4552
|
+
let response;
|
|
4553
|
+
let errorCode = "UnknownError";
|
|
4554
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4555
|
+
switch (errorCode) {
|
|
4556
|
+
case "AccessDeniedException":
|
|
4557
|
+
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4558
|
+
response = {
|
|
4559
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4560
|
+
name: errorCode,
|
|
4561
|
+
$metadata: deserializeMetadata(output),
|
|
4562
|
+
};
|
|
4563
|
+
break;
|
|
4564
|
+
case "InternalServerException":
|
|
4565
|
+
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4566
|
+
response = {
|
|
4567
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4568
|
+
name: errorCode,
|
|
4569
|
+
$metadata: deserializeMetadata(output),
|
|
4570
|
+
};
|
|
4571
|
+
break;
|
|
4572
|
+
case "ValidationException":
|
|
4573
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
4574
|
+
response = {
|
|
4575
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4576
|
+
name: errorCode,
|
|
4577
|
+
$metadata: deserializeMetadata(output),
|
|
4578
|
+
};
|
|
4579
|
+
break;
|
|
4580
|
+
default:
|
|
4581
|
+
const parsedBody = parsedOutput.body;
|
|
4582
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4583
|
+
response = {
|
|
4584
|
+
...parsedBody,
|
|
4585
|
+
name: `${errorCode}`,
|
|
4586
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4587
|
+
$fault: "client",
|
|
4588
|
+
$metadata: deserializeMetadata(output),
|
|
4589
|
+
};
|
|
4590
|
+
}
|
|
4591
|
+
const message = response.message || response.Message || errorCode;
|
|
4592
|
+
response.message = message;
|
|
4593
|
+
delete response.Message;
|
|
4594
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4595
|
+
};
|
|
4596
|
+
const deserializeAws_restJson1ListAssessmentsCommand = async (output, context) => {
|
|
4597
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4598
|
+
return deserializeAws_restJson1ListAssessmentsCommandError(output, context);
|
|
4599
|
+
}
|
|
4600
|
+
const contents = {
|
|
4601
|
+
$metadata: deserializeMetadata(output),
|
|
4602
|
+
assessmentMetadata: undefined,
|
|
4603
|
+
nextToken: undefined,
|
|
4604
|
+
};
|
|
4605
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4606
|
+
if (data.assessmentMetadata !== undefined && data.assessmentMetadata !== null) {
|
|
4607
|
+
contents.assessmentMetadata = deserializeAws_restJson1ListAssessmentMetadata(data.assessmentMetadata, context);
|
|
4270
4608
|
}
|
|
4271
4609
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4272
4610
|
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
@@ -4323,6 +4661,234 @@ const deserializeAws_restJson1ListAssessmentsCommandError = async (output, conte
|
|
|
4323
4661
|
delete response.Message;
|
|
4324
4662
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
4325
4663
|
};
|
|
4664
|
+
const deserializeAws_restJson1ListControlDomainInsightsCommand = async (output, context) => {
|
|
4665
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4666
|
+
return deserializeAws_restJson1ListControlDomainInsightsCommandError(output, context);
|
|
4667
|
+
}
|
|
4668
|
+
const contents = {
|
|
4669
|
+
$metadata: deserializeMetadata(output),
|
|
4670
|
+
controlDomainInsights: undefined,
|
|
4671
|
+
nextToken: undefined,
|
|
4672
|
+
};
|
|
4673
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4674
|
+
if (data.controlDomainInsights !== undefined && data.controlDomainInsights !== null) {
|
|
4675
|
+
contents.controlDomainInsights = deserializeAws_restJson1ControlDomainInsightsList(data.controlDomainInsights, context);
|
|
4676
|
+
}
|
|
4677
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4678
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4679
|
+
}
|
|
4680
|
+
return Promise.resolve(contents);
|
|
4681
|
+
};
|
|
4682
|
+
exports.deserializeAws_restJson1ListControlDomainInsightsCommand = deserializeAws_restJson1ListControlDomainInsightsCommand;
|
|
4683
|
+
const deserializeAws_restJson1ListControlDomainInsightsCommandError = async (output, context) => {
|
|
4684
|
+
const parsedOutput = {
|
|
4685
|
+
...output,
|
|
4686
|
+
body: await parseBody(output.body, context),
|
|
4687
|
+
};
|
|
4688
|
+
let response;
|
|
4689
|
+
let errorCode = "UnknownError";
|
|
4690
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4691
|
+
switch (errorCode) {
|
|
4692
|
+
case "AccessDeniedException":
|
|
4693
|
+
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4694
|
+
response = {
|
|
4695
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4696
|
+
name: errorCode,
|
|
4697
|
+
$metadata: deserializeMetadata(output),
|
|
4698
|
+
};
|
|
4699
|
+
break;
|
|
4700
|
+
case "InternalServerException":
|
|
4701
|
+
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4702
|
+
response = {
|
|
4703
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4704
|
+
name: errorCode,
|
|
4705
|
+
$metadata: deserializeMetadata(output),
|
|
4706
|
+
};
|
|
4707
|
+
break;
|
|
4708
|
+
case "ResourceNotFoundException":
|
|
4709
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4710
|
+
response = {
|
|
4711
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4712
|
+
name: errorCode,
|
|
4713
|
+
$metadata: deserializeMetadata(output),
|
|
4714
|
+
};
|
|
4715
|
+
break;
|
|
4716
|
+
case "ValidationException":
|
|
4717
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
4718
|
+
response = {
|
|
4719
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4720
|
+
name: errorCode,
|
|
4721
|
+
$metadata: deserializeMetadata(output),
|
|
4722
|
+
};
|
|
4723
|
+
break;
|
|
4724
|
+
default:
|
|
4725
|
+
const parsedBody = parsedOutput.body;
|
|
4726
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4727
|
+
response = {
|
|
4728
|
+
...parsedBody,
|
|
4729
|
+
name: `${errorCode}`,
|
|
4730
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4731
|
+
$fault: "client",
|
|
4732
|
+
$metadata: deserializeMetadata(output),
|
|
4733
|
+
};
|
|
4734
|
+
}
|
|
4735
|
+
const message = response.message || response.Message || errorCode;
|
|
4736
|
+
response.message = message;
|
|
4737
|
+
delete response.Message;
|
|
4738
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4739
|
+
};
|
|
4740
|
+
const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = async (output, context) => {
|
|
4741
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4742
|
+
return deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError(output, context);
|
|
4743
|
+
}
|
|
4744
|
+
const contents = {
|
|
4745
|
+
$metadata: deserializeMetadata(output),
|
|
4746
|
+
controlDomainInsights: undefined,
|
|
4747
|
+
nextToken: undefined,
|
|
4748
|
+
};
|
|
4749
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4750
|
+
if (data.controlDomainInsights !== undefined && data.controlDomainInsights !== null) {
|
|
4751
|
+
contents.controlDomainInsights = deserializeAws_restJson1ControlDomainInsightsList(data.controlDomainInsights, context);
|
|
4752
|
+
}
|
|
4753
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4754
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4755
|
+
}
|
|
4756
|
+
return Promise.resolve(contents);
|
|
4757
|
+
};
|
|
4758
|
+
exports.deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand = deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommand;
|
|
4759
|
+
const deserializeAws_restJson1ListControlDomainInsightsByAssessmentCommandError = async (output, context) => {
|
|
4760
|
+
const parsedOutput = {
|
|
4761
|
+
...output,
|
|
4762
|
+
body: await parseBody(output.body, context),
|
|
4763
|
+
};
|
|
4764
|
+
let response;
|
|
4765
|
+
let errorCode = "UnknownError";
|
|
4766
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4767
|
+
switch (errorCode) {
|
|
4768
|
+
case "AccessDeniedException":
|
|
4769
|
+
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4770
|
+
response = {
|
|
4771
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4772
|
+
name: errorCode,
|
|
4773
|
+
$metadata: deserializeMetadata(output),
|
|
4774
|
+
};
|
|
4775
|
+
break;
|
|
4776
|
+
case "InternalServerException":
|
|
4777
|
+
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4778
|
+
response = {
|
|
4779
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4780
|
+
name: errorCode,
|
|
4781
|
+
$metadata: deserializeMetadata(output),
|
|
4782
|
+
};
|
|
4783
|
+
break;
|
|
4784
|
+
case "ResourceNotFoundException":
|
|
4785
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4786
|
+
response = {
|
|
4787
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4788
|
+
name: errorCode,
|
|
4789
|
+
$metadata: deserializeMetadata(output),
|
|
4790
|
+
};
|
|
4791
|
+
break;
|
|
4792
|
+
case "ValidationException":
|
|
4793
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
4794
|
+
response = {
|
|
4795
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4796
|
+
name: errorCode,
|
|
4797
|
+
$metadata: deserializeMetadata(output),
|
|
4798
|
+
};
|
|
4799
|
+
break;
|
|
4800
|
+
default:
|
|
4801
|
+
const parsedBody = parsedOutput.body;
|
|
4802
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4803
|
+
response = {
|
|
4804
|
+
...parsedBody,
|
|
4805
|
+
name: `${errorCode}`,
|
|
4806
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4807
|
+
$fault: "client",
|
|
4808
|
+
$metadata: deserializeMetadata(output),
|
|
4809
|
+
};
|
|
4810
|
+
}
|
|
4811
|
+
const message = response.message || response.Message || errorCode;
|
|
4812
|
+
response.message = message;
|
|
4813
|
+
delete response.Message;
|
|
4814
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4815
|
+
};
|
|
4816
|
+
const deserializeAws_restJson1ListControlInsightsByControlDomainCommand = async (output, context) => {
|
|
4817
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4818
|
+
return deserializeAws_restJson1ListControlInsightsByControlDomainCommandError(output, context);
|
|
4819
|
+
}
|
|
4820
|
+
const contents = {
|
|
4821
|
+
$metadata: deserializeMetadata(output),
|
|
4822
|
+
controlInsightsMetadata: undefined,
|
|
4823
|
+
nextToken: undefined,
|
|
4824
|
+
};
|
|
4825
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
4826
|
+
if (data.controlInsightsMetadata !== undefined && data.controlInsightsMetadata !== null) {
|
|
4827
|
+
contents.controlInsightsMetadata = deserializeAws_restJson1ControlInsightsMetadata(data.controlInsightsMetadata, context);
|
|
4828
|
+
}
|
|
4829
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
4830
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
4831
|
+
}
|
|
4832
|
+
return Promise.resolve(contents);
|
|
4833
|
+
};
|
|
4834
|
+
exports.deserializeAws_restJson1ListControlInsightsByControlDomainCommand = deserializeAws_restJson1ListControlInsightsByControlDomainCommand;
|
|
4835
|
+
const deserializeAws_restJson1ListControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
4836
|
+
const parsedOutput = {
|
|
4837
|
+
...output,
|
|
4838
|
+
body: await parseBody(output.body, context),
|
|
4839
|
+
};
|
|
4840
|
+
let response;
|
|
4841
|
+
let errorCode = "UnknownError";
|
|
4842
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4843
|
+
switch (errorCode) {
|
|
4844
|
+
case "AccessDeniedException":
|
|
4845
|
+
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
4846
|
+
response = {
|
|
4847
|
+
...(await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)),
|
|
4848
|
+
name: errorCode,
|
|
4849
|
+
$metadata: deserializeMetadata(output),
|
|
4850
|
+
};
|
|
4851
|
+
break;
|
|
4852
|
+
case "InternalServerException":
|
|
4853
|
+
case "com.amazonaws.auditmanager#InternalServerException":
|
|
4854
|
+
response = {
|
|
4855
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
4856
|
+
name: errorCode,
|
|
4857
|
+
$metadata: deserializeMetadata(output),
|
|
4858
|
+
};
|
|
4859
|
+
break;
|
|
4860
|
+
case "ResourceNotFoundException":
|
|
4861
|
+
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
4862
|
+
response = {
|
|
4863
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4864
|
+
name: errorCode,
|
|
4865
|
+
$metadata: deserializeMetadata(output),
|
|
4866
|
+
};
|
|
4867
|
+
break;
|
|
4868
|
+
case "ValidationException":
|
|
4869
|
+
case "com.amazonaws.auditmanager#ValidationException":
|
|
4870
|
+
response = {
|
|
4871
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
4872
|
+
name: errorCode,
|
|
4873
|
+
$metadata: deserializeMetadata(output),
|
|
4874
|
+
};
|
|
4875
|
+
break;
|
|
4876
|
+
default:
|
|
4877
|
+
const parsedBody = parsedOutput.body;
|
|
4878
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4879
|
+
response = {
|
|
4880
|
+
...parsedBody,
|
|
4881
|
+
name: `${errorCode}`,
|
|
4882
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4883
|
+
$fault: "client",
|
|
4884
|
+
$metadata: deserializeMetadata(output),
|
|
4885
|
+
};
|
|
4886
|
+
}
|
|
4887
|
+
const message = response.message || response.Message || errorCode;
|
|
4888
|
+
response.message = message;
|
|
4889
|
+
delete response.Message;
|
|
4890
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
4891
|
+
};
|
|
4326
4892
|
const deserializeAws_restJson1ListControlsCommand = async (output, context) => {
|
|
4327
4893
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4328
4894
|
return deserializeAws_restJson1ListControlsCommandError(output, context);
|
|
@@ -6336,6 +6902,75 @@ const deserializeAws_restJson1ControlComments = (output, context) => {
|
|
|
6336
6902
|
return deserializeAws_restJson1ControlComment(entry, context);
|
|
6337
6903
|
});
|
|
6338
6904
|
};
|
|
6905
|
+
const deserializeAws_restJson1ControlDomainInsights = (output, context) => {
|
|
6906
|
+
return {
|
|
6907
|
+
controlsCountByNoncompliantEvidence: smithy_client_1.expectInt32(output.controlsCountByNoncompliantEvidence),
|
|
6908
|
+
evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
|
|
6909
|
+
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
6910
|
+
: undefined,
|
|
6911
|
+
id: smithy_client_1.expectString(output.id),
|
|
6912
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
6913
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdated)))
|
|
6914
|
+
: undefined,
|
|
6915
|
+
name: smithy_client_1.expectString(output.name),
|
|
6916
|
+
totalControlsCount: smithy_client_1.expectInt32(output.totalControlsCount),
|
|
6917
|
+
};
|
|
6918
|
+
};
|
|
6919
|
+
const deserializeAws_restJson1ControlDomainInsightsList = (output, context) => {
|
|
6920
|
+
return (output || [])
|
|
6921
|
+
.filter((e) => e != null)
|
|
6922
|
+
.map((entry) => {
|
|
6923
|
+
if (entry === null) {
|
|
6924
|
+
return null;
|
|
6925
|
+
}
|
|
6926
|
+
return deserializeAws_restJson1ControlDomainInsights(entry, context);
|
|
6927
|
+
});
|
|
6928
|
+
};
|
|
6929
|
+
const deserializeAws_restJson1ControlInsightsMetadata = (output, context) => {
|
|
6930
|
+
return (output || [])
|
|
6931
|
+
.filter((e) => e != null)
|
|
6932
|
+
.map((entry) => {
|
|
6933
|
+
if (entry === null) {
|
|
6934
|
+
return null;
|
|
6935
|
+
}
|
|
6936
|
+
return deserializeAws_restJson1ControlInsightsMetadataItem(entry, context);
|
|
6937
|
+
});
|
|
6938
|
+
};
|
|
6939
|
+
const deserializeAws_restJson1ControlInsightsMetadataByAssessment = (output, context) => {
|
|
6940
|
+
return (output || [])
|
|
6941
|
+
.filter((e) => e != null)
|
|
6942
|
+
.map((entry) => {
|
|
6943
|
+
if (entry === null) {
|
|
6944
|
+
return null;
|
|
6945
|
+
}
|
|
6946
|
+
return deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem(entry, context);
|
|
6947
|
+
});
|
|
6948
|
+
};
|
|
6949
|
+
const deserializeAws_restJson1ControlInsightsMetadataByAssessmentItem = (output, context) => {
|
|
6950
|
+
return {
|
|
6951
|
+
controlSetName: smithy_client_1.expectString(output.controlSetName),
|
|
6952
|
+
evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
|
|
6953
|
+
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
6954
|
+
: undefined,
|
|
6955
|
+
id: smithy_client_1.expectString(output.id),
|
|
6956
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
6957
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdated)))
|
|
6958
|
+
: undefined,
|
|
6959
|
+
name: smithy_client_1.expectString(output.name),
|
|
6960
|
+
};
|
|
6961
|
+
};
|
|
6962
|
+
const deserializeAws_restJson1ControlInsightsMetadataItem = (output, context) => {
|
|
6963
|
+
return {
|
|
6964
|
+
evidenceInsights: output.evidenceInsights !== undefined && output.evidenceInsights !== null
|
|
6965
|
+
? deserializeAws_restJson1EvidenceInsights(output.evidenceInsights, context)
|
|
6966
|
+
: undefined,
|
|
6967
|
+
id: smithy_client_1.expectString(output.id),
|
|
6968
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
6969
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdated)))
|
|
6970
|
+
: undefined,
|
|
6971
|
+
name: smithy_client_1.expectString(output.name),
|
|
6972
|
+
};
|
|
6973
|
+
};
|
|
6339
6974
|
const deserializeAws_restJson1ControlMappingSource = (output, context) => {
|
|
6340
6975
|
return {
|
|
6341
6976
|
sourceDescription: smithy_client_1.expectString(output.sourceDescription),
|
|
@@ -6519,6 +7154,13 @@ const deserializeAws_restJson1EvidenceIds = (output, context) => {
|
|
|
6519
7154
|
return smithy_client_1.expectString(entry);
|
|
6520
7155
|
});
|
|
6521
7156
|
};
|
|
7157
|
+
const deserializeAws_restJson1EvidenceInsights = (output, context) => {
|
|
7158
|
+
return {
|
|
7159
|
+
compliantEvidenceCount: smithy_client_1.expectInt32(output.compliantEvidenceCount),
|
|
7160
|
+
inconclusiveEvidenceCount: smithy_client_1.expectInt32(output.inconclusiveEvidenceCount),
|
|
7161
|
+
noncompliantEvidenceCount: smithy_client_1.expectInt32(output.noncompliantEvidenceCount),
|
|
7162
|
+
};
|
|
7163
|
+
};
|
|
6522
7164
|
const deserializeAws_restJson1EvidenceList = (output, context) => {
|
|
6523
7165
|
return (output || [])
|
|
6524
7166
|
.filter((e) => e != null)
|
|
@@ -6583,6 +7225,31 @@ const deserializeAws_restJson1FrameworkMetadataList = (output, context) => {
|
|
|
6583
7225
|
return deserializeAws_restJson1AssessmentFrameworkMetadata(entry, context);
|
|
6584
7226
|
});
|
|
6585
7227
|
};
|
|
7228
|
+
const deserializeAws_restJson1Insights = (output, context) => {
|
|
7229
|
+
return {
|
|
7230
|
+
activeAssessmentsCount: smithy_client_1.expectInt32(output.activeAssessmentsCount),
|
|
7231
|
+
assessmentControlsCountByNoncompliantEvidence: smithy_client_1.expectInt32(output.assessmentControlsCountByNoncompliantEvidence),
|
|
7232
|
+
compliantEvidenceCount: smithy_client_1.expectInt32(output.compliantEvidenceCount),
|
|
7233
|
+
inconclusiveEvidenceCount: smithy_client_1.expectInt32(output.inconclusiveEvidenceCount),
|
|
7234
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7235
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdated)))
|
|
7236
|
+
: undefined,
|
|
7237
|
+
noncompliantEvidenceCount: smithy_client_1.expectInt32(output.noncompliantEvidenceCount),
|
|
7238
|
+
totalAssessmentControlsCount: smithy_client_1.expectInt32(output.totalAssessmentControlsCount),
|
|
7239
|
+
};
|
|
7240
|
+
};
|
|
7241
|
+
const deserializeAws_restJson1InsightsByAssessment = (output, context) => {
|
|
7242
|
+
return {
|
|
7243
|
+
assessmentControlsCountByNoncompliantEvidence: smithy_client_1.expectInt32(output.assessmentControlsCountByNoncompliantEvidence),
|
|
7244
|
+
compliantEvidenceCount: smithy_client_1.expectInt32(output.compliantEvidenceCount),
|
|
7245
|
+
inconclusiveEvidenceCount: smithy_client_1.expectInt32(output.inconclusiveEvidenceCount),
|
|
7246
|
+
lastUpdated: output.lastUpdated !== undefined && output.lastUpdated !== null
|
|
7247
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdated)))
|
|
7248
|
+
: undefined,
|
|
7249
|
+
noncompliantEvidenceCount: smithy_client_1.expectInt32(output.noncompliantEvidenceCount),
|
|
7250
|
+
totalAssessmentControlsCount: smithy_client_1.expectInt32(output.totalAssessmentControlsCount),
|
|
7251
|
+
};
|
|
7252
|
+
};
|
|
6586
7253
|
const deserializeAws_restJson1Keywords = (output, context) => {
|
|
6587
7254
|
return (output || [])
|
|
6588
7255
|
.filter((e) => e != null)
|