@aws-sdk/client-auditmanager 3.490.0 → 3.495.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 +1 -135
- package/dist-cjs/AuditManagerClient.js +1 -43
- package/dist-cjs/commands/AssociateAssessmentReportEvidenceFolderCommand.js +1 -28
- package/dist-cjs/commands/BatchAssociateAssessmentReportEvidenceCommand.js +1 -28
- package/dist-cjs/commands/BatchCreateDelegationByAssessmentCommand.js +1 -29
- package/dist-cjs/commands/BatchDeleteDelegationByAssessmentCommand.js +1 -29
- package/dist-cjs/commands/BatchDisassociateAssessmentReportEvidenceCommand.js +1 -28
- package/dist-cjs/commands/BatchImportEvidenceToAssessmentControlCommand.js +1 -29
- package/dist-cjs/commands/CreateAssessmentCommand.js +1 -29
- package/dist-cjs/commands/CreateAssessmentFrameworkCommand.js +1 -29
- package/dist-cjs/commands/CreateAssessmentReportCommand.js +1 -29
- package/dist-cjs/commands/CreateControlCommand.js +1 -29
- package/dist-cjs/commands/DeleteAssessmentCommand.js +1 -28
- package/dist-cjs/commands/DeleteAssessmentFrameworkCommand.js +1 -28
- package/dist-cjs/commands/DeleteAssessmentFrameworkShareCommand.js +1 -28
- package/dist-cjs/commands/DeleteAssessmentReportCommand.js +1 -28
- package/dist-cjs/commands/DeleteControlCommand.js +1 -28
- package/dist-cjs/commands/DeregisterAccountCommand.js +1 -28
- package/dist-cjs/commands/DeregisterOrganizationAdminAccountCommand.js +1 -28
- package/dist-cjs/commands/DisassociateAssessmentReportEvidenceFolderCommand.js +1 -28
- package/dist-cjs/commands/GetAccountStatusCommand.js +1 -28
- package/dist-cjs/commands/GetAssessmentCommand.js +1 -29
- package/dist-cjs/commands/GetAssessmentFrameworkCommand.js +1 -29
- package/dist-cjs/commands/GetAssessmentReportUrlCommand.js +1 -28
- package/dist-cjs/commands/GetChangeLogsCommand.js +1 -28
- package/dist-cjs/commands/GetControlCommand.js +1 -29
- package/dist-cjs/commands/GetDelegationsCommand.js +1 -29
- package/dist-cjs/commands/GetEvidenceByEvidenceFolderCommand.js +1 -28
- package/dist-cjs/commands/GetEvidenceCommand.js +1 -28
- package/dist-cjs/commands/GetEvidenceFileUploadUrlCommand.js +1 -29
- package/dist-cjs/commands/GetEvidenceFolderCommand.js +1 -28
- package/dist-cjs/commands/GetEvidenceFoldersByAssessmentCommand.js +1 -28
- package/dist-cjs/commands/GetEvidenceFoldersByAssessmentControlCommand.js +1 -28
- package/dist-cjs/commands/GetInsightsByAssessmentCommand.js +1 -28
- package/dist-cjs/commands/GetInsightsCommand.js +1 -28
- package/dist-cjs/commands/GetOrganizationAdminAccountCommand.js +1 -28
- package/dist-cjs/commands/GetServicesInScopeCommand.js +1 -28
- package/dist-cjs/commands/GetSettingsCommand.js +1 -29
- package/dist-cjs/commands/ListAssessmentControlInsightsByControlDomainCommand.js +1 -28
- package/dist-cjs/commands/ListAssessmentFrameworkShareRequestsCommand.js +1 -29
- package/dist-cjs/commands/ListAssessmentFrameworksCommand.js +1 -29
- package/dist-cjs/commands/ListAssessmentReportsCommand.js +1 -29
- package/dist-cjs/commands/ListAssessmentsCommand.js +1 -29
- package/dist-cjs/commands/ListControlDomainInsightsByAssessmentCommand.js +1 -28
- package/dist-cjs/commands/ListControlDomainInsightsCommand.js +1 -28
- package/dist-cjs/commands/ListControlInsightsByControlDomainCommand.js +1 -28
- package/dist-cjs/commands/ListControlsCommand.js +1 -28
- package/dist-cjs/commands/ListKeywordsForDataSourceCommand.js +1 -28
- package/dist-cjs/commands/ListNotificationsCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/RegisterAccountCommand.js +1 -28
- package/dist-cjs/commands/RegisterOrganizationAdminAccountCommand.js +1 -28
- package/dist-cjs/commands/StartAssessmentFrameworkShareCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAssessmentCommand.js +1 -29
- package/dist-cjs/commands/UpdateAssessmentControlCommand.js +1 -29
- package/dist-cjs/commands/UpdateAssessmentControlSetStatusCommand.js +1 -29
- package/dist-cjs/commands/UpdateAssessmentFrameworkCommand.js +1 -29
- package/dist-cjs/commands/UpdateAssessmentFrameworkShareCommand.js +1 -29
- package/dist-cjs/commands/UpdateAssessmentStatusCommand.js +1 -29
- package/dist-cjs/commands/UpdateControlCommand.js +1 -29
- package/dist-cjs/commands/UpdateSettingsCommand.js +1 -29
- package/dist-cjs/commands/ValidateAssessmentReportIntegrityCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -65
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6305 -11
- package/dist-cjs/models/AuditManagerServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -639
- package/dist-cjs/pagination/GetChangeLogsPaginator.js +1 -7
- package/dist-cjs/pagination/GetDelegationsPaginator.js +1 -7
- package/dist-cjs/pagination/GetEvidenceByEvidenceFolderPaginator.js +1 -7
- package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentControlPaginator.js +1 -7
- package/dist-cjs/pagination/GetEvidenceFoldersByAssessmentPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAssessmentControlInsightsByControlDomainPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssessmentFrameworkShareRequestsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssessmentFrameworksPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssessmentReportsPaginator.js +1 -7
- package/dist-cjs/pagination/ListAssessmentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListControlDomainInsightsByAssessmentPaginator.js +1 -7
- package/dist-cjs/pagination/ListControlDomainInsightsPaginator.js +1 -7
- package/dist-cjs/pagination/ListControlInsightsByControlDomainPaginator.js +1 -7
- package/dist-cjs/pagination/ListControlsPaginator.js +1 -7
- package/dist-cjs/pagination/ListKeywordsForDataSourcePaginator.js +1 -7
- package/dist-cjs/pagination/ListNotificationsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -20
- package/dist-cjs/protocols/Aws_restJson1.js +1 -4129
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4129 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_RegisterOrganizationAdminAccountCommand = exports.se_RegisterAccountCommand = exports.se_ListTagsForResourceCommand = exports.se_ListNotificationsCommand = exports.se_ListKeywordsForDataSourceCommand = exports.se_ListControlsCommand = exports.se_ListControlInsightsByControlDomainCommand = exports.se_ListControlDomainInsightsByAssessmentCommand = exports.se_ListControlDomainInsightsCommand = exports.se_ListAssessmentsCommand = exports.se_ListAssessmentReportsCommand = exports.se_ListAssessmentFrameworkShareRequestsCommand = exports.se_ListAssessmentFrameworksCommand = exports.se_ListAssessmentControlInsightsByControlDomainCommand = exports.se_GetSettingsCommand = exports.se_GetServicesInScopeCommand = exports.se_GetOrganizationAdminAccountCommand = exports.se_GetInsightsByAssessmentCommand = exports.se_GetInsightsCommand = exports.se_GetEvidenceFoldersByAssessmentControlCommand = exports.se_GetEvidenceFoldersByAssessmentCommand = exports.se_GetEvidenceFolderCommand = exports.se_GetEvidenceFileUploadUrlCommand = exports.se_GetEvidenceByEvidenceFolderCommand = exports.se_GetEvidenceCommand = exports.se_GetDelegationsCommand = exports.se_GetControlCommand = exports.se_GetChangeLogsCommand = exports.se_GetAssessmentReportUrlCommand = exports.se_GetAssessmentFrameworkCommand = exports.se_GetAssessmentCommand = exports.se_GetAccountStatusCommand = exports.se_DisassociateAssessmentReportEvidenceFolderCommand = exports.se_DeregisterOrganizationAdminAccountCommand = exports.se_DeregisterAccountCommand = exports.se_DeleteControlCommand = exports.se_DeleteAssessmentReportCommand = exports.se_DeleteAssessmentFrameworkShareCommand = exports.se_DeleteAssessmentFrameworkCommand = exports.se_DeleteAssessmentCommand = exports.se_CreateControlCommand = exports.se_CreateAssessmentReportCommand = exports.se_CreateAssessmentFrameworkCommand = exports.se_CreateAssessmentCommand = exports.se_BatchImportEvidenceToAssessmentControlCommand = exports.se_BatchDisassociateAssessmentReportEvidenceCommand = exports.se_BatchDeleteDelegationByAssessmentCommand = exports.se_BatchCreateDelegationByAssessmentCommand = exports.se_BatchAssociateAssessmentReportEvidenceCommand = exports.se_AssociateAssessmentReportEvidenceFolderCommand = void 0;
|
|
4
|
-
exports.de_ListAssessmentFrameworksCommand = exports.de_ListAssessmentControlInsightsByControlDomainCommand = exports.de_GetSettingsCommand = exports.de_GetServicesInScopeCommand = exports.de_GetOrganizationAdminAccountCommand = exports.de_GetInsightsByAssessmentCommand = exports.de_GetInsightsCommand = exports.de_GetEvidenceFoldersByAssessmentControlCommand = exports.de_GetEvidenceFoldersByAssessmentCommand = exports.de_GetEvidenceFolderCommand = exports.de_GetEvidenceFileUploadUrlCommand = exports.de_GetEvidenceByEvidenceFolderCommand = exports.de_GetEvidenceCommand = exports.de_GetDelegationsCommand = exports.de_GetControlCommand = exports.de_GetChangeLogsCommand = exports.de_GetAssessmentReportUrlCommand = exports.de_GetAssessmentFrameworkCommand = exports.de_GetAssessmentCommand = exports.de_GetAccountStatusCommand = exports.de_DisassociateAssessmentReportEvidenceFolderCommand = exports.de_DeregisterOrganizationAdminAccountCommand = exports.de_DeregisterAccountCommand = exports.de_DeleteControlCommand = exports.de_DeleteAssessmentReportCommand = exports.de_DeleteAssessmentFrameworkShareCommand = exports.de_DeleteAssessmentFrameworkCommand = exports.de_DeleteAssessmentCommand = exports.de_CreateControlCommand = exports.de_CreateAssessmentReportCommand = exports.de_CreateAssessmentFrameworkCommand = exports.de_CreateAssessmentCommand = exports.de_BatchImportEvidenceToAssessmentControlCommand = exports.de_BatchDisassociateAssessmentReportEvidenceCommand = exports.de_BatchDeleteDelegationByAssessmentCommand = exports.de_BatchCreateDelegationByAssessmentCommand = exports.de_BatchAssociateAssessmentReportEvidenceCommand = exports.de_AssociateAssessmentReportEvidenceFolderCommand = exports.se_ValidateAssessmentReportIntegrityCommand = exports.se_UpdateSettingsCommand = exports.se_UpdateControlCommand = exports.se_UpdateAssessmentStatusCommand = exports.se_UpdateAssessmentFrameworkShareCommand = exports.se_UpdateAssessmentFrameworkCommand = exports.se_UpdateAssessmentControlSetStatusCommand = exports.se_UpdateAssessmentControlCommand = exports.se_UpdateAssessmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartAssessmentFrameworkShareCommand = void 0;
|
|
5
|
-
exports.de_ValidateAssessmentReportIntegrityCommand = exports.de_UpdateSettingsCommand = exports.de_UpdateControlCommand = exports.de_UpdateAssessmentStatusCommand = exports.de_UpdateAssessmentFrameworkShareCommand = exports.de_UpdateAssessmentFrameworkCommand = exports.de_UpdateAssessmentControlSetStatusCommand = exports.de_UpdateAssessmentControlCommand = exports.de_UpdateAssessmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartAssessmentFrameworkShareCommand = exports.de_RegisterOrganizationAdminAccountCommand = exports.de_RegisterAccountCommand = exports.de_ListTagsForResourceCommand = exports.de_ListNotificationsCommand = exports.de_ListKeywordsForDataSourceCommand = exports.de_ListControlsCommand = exports.de_ListControlInsightsByControlDomainCommand = exports.de_ListControlDomainInsightsByAssessmentCommand = exports.de_ListControlDomainInsightsCommand = exports.de_ListAssessmentsCommand = exports.de_ListAssessmentReportsCommand = exports.de_ListAssessmentFrameworkShareRequestsCommand = void 0;
|
|
6
|
-
const core_1 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const AuditManagerServiceException_1 = require("../models/AuditManagerServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_AssociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
12
|
-
const headers = {
|
|
13
|
-
"content-type": "application/json",
|
|
14
|
-
};
|
|
15
|
-
b.bp("/assessments/{assessmentId}/associateToAssessmentReport");
|
|
16
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
-
evidenceFolderId: [],
|
|
20
|
-
}));
|
|
21
|
-
b.m("PUT").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
exports.se_AssociateAssessmentReportEvidenceFolderCommand = se_AssociateAssessmentReportEvidenceFolderCommand;
|
|
25
|
-
const se_BatchAssociateAssessmentReportEvidenceCommand = async (input, context) => {
|
|
26
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
27
|
-
const headers = {
|
|
28
|
-
"content-type": "application/json",
|
|
29
|
-
};
|
|
30
|
-
b.bp("/assessments/{assessmentId}/batchAssociateToAssessmentReport");
|
|
31
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
34
|
-
evidenceFolderId: [],
|
|
35
|
-
evidenceIds: (_) => (0, smithy_client_1._json)(_),
|
|
36
|
-
}));
|
|
37
|
-
b.m("PUT").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
exports.se_BatchAssociateAssessmentReportEvidenceCommand = se_BatchAssociateAssessmentReportEvidenceCommand;
|
|
41
|
-
const se_BatchCreateDelegationByAssessmentCommand = async (input, context) => {
|
|
42
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
43
|
-
const headers = {
|
|
44
|
-
"content-type": "application/json",
|
|
45
|
-
};
|
|
46
|
-
b.bp("/assessments/{assessmentId}/delegations");
|
|
47
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
50
|
-
createDelegationRequests: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
-
}));
|
|
52
|
-
b.m("POST").h(headers).b(body);
|
|
53
|
-
return b.build();
|
|
54
|
-
};
|
|
55
|
-
exports.se_BatchCreateDelegationByAssessmentCommand = se_BatchCreateDelegationByAssessmentCommand;
|
|
56
|
-
const se_BatchDeleteDelegationByAssessmentCommand = async (input, context) => {
|
|
57
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
58
|
-
const headers = {
|
|
59
|
-
"content-type": "application/json",
|
|
60
|
-
};
|
|
61
|
-
b.bp("/assessments/{assessmentId}/delegations");
|
|
62
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
|
-
delegationIds: (_) => (0, smithy_client_1._json)(_),
|
|
66
|
-
}));
|
|
67
|
-
b.m("PUT").h(headers).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
exports.se_BatchDeleteDelegationByAssessmentCommand = se_BatchDeleteDelegationByAssessmentCommand;
|
|
71
|
-
const se_BatchDisassociateAssessmentReportEvidenceCommand = async (input, context) => {
|
|
72
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
73
|
-
const headers = {
|
|
74
|
-
"content-type": "application/json",
|
|
75
|
-
};
|
|
76
|
-
b.bp("/assessments/{assessmentId}/batchDisassociateFromAssessmentReport");
|
|
77
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
78
|
-
let body;
|
|
79
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
80
|
-
evidenceFolderId: [],
|
|
81
|
-
evidenceIds: (_) => (0, smithy_client_1._json)(_),
|
|
82
|
-
}));
|
|
83
|
-
b.m("PUT").h(headers).b(body);
|
|
84
|
-
return b.build();
|
|
85
|
-
};
|
|
86
|
-
exports.se_BatchDisassociateAssessmentReportEvidenceCommand = se_BatchDisassociateAssessmentReportEvidenceCommand;
|
|
87
|
-
const se_BatchImportEvidenceToAssessmentControlCommand = async (input, context) => {
|
|
88
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
89
|
-
const headers = {
|
|
90
|
-
"content-type": "application/json",
|
|
91
|
-
};
|
|
92
|
-
b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence");
|
|
93
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
94
|
-
b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
95
|
-
b.p("controlId", () => input.controlId, "{controlId}", false);
|
|
96
|
-
let body;
|
|
97
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
98
|
-
manualEvidence: (_) => (0, smithy_client_1._json)(_),
|
|
99
|
-
}));
|
|
100
|
-
b.m("POST").h(headers).b(body);
|
|
101
|
-
return b.build();
|
|
102
|
-
};
|
|
103
|
-
exports.se_BatchImportEvidenceToAssessmentControlCommand = se_BatchImportEvidenceToAssessmentControlCommand;
|
|
104
|
-
const se_CreateAssessmentCommand = async (input, context) => {
|
|
105
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
106
|
-
const headers = {
|
|
107
|
-
"content-type": "application/json",
|
|
108
|
-
};
|
|
109
|
-
b.bp("/assessments");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
112
|
-
assessmentReportsDestination: (_) => (0, smithy_client_1._json)(_),
|
|
113
|
-
description: [],
|
|
114
|
-
frameworkId: [],
|
|
115
|
-
name: [],
|
|
116
|
-
roles: (_) => (0, smithy_client_1._json)(_),
|
|
117
|
-
scope: (_) => (0, smithy_client_1._json)(_),
|
|
118
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
119
|
-
}));
|
|
120
|
-
b.m("POST").h(headers).b(body);
|
|
121
|
-
return b.build();
|
|
122
|
-
};
|
|
123
|
-
exports.se_CreateAssessmentCommand = se_CreateAssessmentCommand;
|
|
124
|
-
const se_CreateAssessmentFrameworkCommand = async (input, context) => {
|
|
125
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
126
|
-
const headers = {
|
|
127
|
-
"content-type": "application/json",
|
|
128
|
-
};
|
|
129
|
-
b.bp("/assessmentFrameworks");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
132
|
-
complianceType: [],
|
|
133
|
-
controlSets: (_) => (0, smithy_client_1._json)(_),
|
|
134
|
-
description: [],
|
|
135
|
-
name: [],
|
|
136
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
137
|
-
}));
|
|
138
|
-
b.m("POST").h(headers).b(body);
|
|
139
|
-
return b.build();
|
|
140
|
-
};
|
|
141
|
-
exports.se_CreateAssessmentFrameworkCommand = se_CreateAssessmentFrameworkCommand;
|
|
142
|
-
const se_CreateAssessmentReportCommand = async (input, context) => {
|
|
143
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
144
|
-
const headers = {
|
|
145
|
-
"content-type": "application/json",
|
|
146
|
-
};
|
|
147
|
-
b.bp("/assessments/{assessmentId}/reports");
|
|
148
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
151
|
-
description: [],
|
|
152
|
-
name: [],
|
|
153
|
-
queryStatement: [],
|
|
154
|
-
}));
|
|
155
|
-
b.m("POST").h(headers).b(body);
|
|
156
|
-
return b.build();
|
|
157
|
-
};
|
|
158
|
-
exports.se_CreateAssessmentReportCommand = se_CreateAssessmentReportCommand;
|
|
159
|
-
const se_CreateControlCommand = async (input, context) => {
|
|
160
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
161
|
-
const headers = {
|
|
162
|
-
"content-type": "application/json",
|
|
163
|
-
};
|
|
164
|
-
b.bp("/controls");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
167
|
-
actionPlanInstructions: [],
|
|
168
|
-
actionPlanTitle: [],
|
|
169
|
-
controlMappingSources: (_) => (0, smithy_client_1._json)(_),
|
|
170
|
-
description: [],
|
|
171
|
-
name: [],
|
|
172
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
173
|
-
testingInformation: [],
|
|
174
|
-
}));
|
|
175
|
-
b.m("POST").h(headers).b(body);
|
|
176
|
-
return b.build();
|
|
177
|
-
};
|
|
178
|
-
exports.se_CreateControlCommand = se_CreateControlCommand;
|
|
179
|
-
const se_DeleteAssessmentCommand = async (input, context) => {
|
|
180
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
181
|
-
const headers = {};
|
|
182
|
-
b.bp("/assessments/{assessmentId}");
|
|
183
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
184
|
-
let body;
|
|
185
|
-
b.m("DELETE").h(headers).b(body);
|
|
186
|
-
return b.build();
|
|
187
|
-
};
|
|
188
|
-
exports.se_DeleteAssessmentCommand = se_DeleteAssessmentCommand;
|
|
189
|
-
const se_DeleteAssessmentFrameworkCommand = async (input, context) => {
|
|
190
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
191
|
-
const headers = {};
|
|
192
|
-
b.bp("/assessmentFrameworks/{frameworkId}");
|
|
193
|
-
b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
194
|
-
let body;
|
|
195
|
-
b.m("DELETE").h(headers).b(body);
|
|
196
|
-
return b.build();
|
|
197
|
-
};
|
|
198
|
-
exports.se_DeleteAssessmentFrameworkCommand = se_DeleteAssessmentFrameworkCommand;
|
|
199
|
-
const se_DeleteAssessmentFrameworkShareCommand = async (input, context) => {
|
|
200
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
201
|
-
const headers = {};
|
|
202
|
-
b.bp("/assessmentFrameworkShareRequests/{requestId}");
|
|
203
|
-
b.p("requestId", () => input.requestId, "{requestId}", false);
|
|
204
|
-
const query = (0, smithy_client_1.map)({
|
|
205
|
-
[_rT]: [, (0, smithy_client_1.expectNonNull)(input[_rT], `requestType`)],
|
|
206
|
-
});
|
|
207
|
-
let body;
|
|
208
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
209
|
-
return b.build();
|
|
210
|
-
};
|
|
211
|
-
exports.se_DeleteAssessmentFrameworkShareCommand = se_DeleteAssessmentFrameworkShareCommand;
|
|
212
|
-
const se_DeleteAssessmentReportCommand = async (input, context) => {
|
|
213
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
214
|
-
const headers = {};
|
|
215
|
-
b.bp("/assessments/{assessmentId}/reports/{assessmentReportId}");
|
|
216
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
217
|
-
b.p("assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
|
|
218
|
-
let body;
|
|
219
|
-
b.m("DELETE").h(headers).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
exports.se_DeleteAssessmentReportCommand = se_DeleteAssessmentReportCommand;
|
|
223
|
-
const se_DeleteControlCommand = async (input, context) => {
|
|
224
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/controls/{controlId}");
|
|
227
|
-
b.p("controlId", () => input.controlId, "{controlId}", false);
|
|
228
|
-
let body;
|
|
229
|
-
b.m("DELETE").h(headers).b(body);
|
|
230
|
-
return b.build();
|
|
231
|
-
};
|
|
232
|
-
exports.se_DeleteControlCommand = se_DeleteControlCommand;
|
|
233
|
-
const se_DeregisterAccountCommand = async (input, context) => {
|
|
234
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
235
|
-
const headers = {
|
|
236
|
-
"content-type": "application/json",
|
|
237
|
-
};
|
|
238
|
-
b.bp("/account/deregisterAccount");
|
|
239
|
-
let body;
|
|
240
|
-
body = "";
|
|
241
|
-
b.m("POST").h(headers).b(body);
|
|
242
|
-
return b.build();
|
|
243
|
-
};
|
|
244
|
-
exports.se_DeregisterAccountCommand = se_DeregisterAccountCommand;
|
|
245
|
-
const se_DeregisterOrganizationAdminAccountCommand = async (input, context) => {
|
|
246
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
247
|
-
const headers = {
|
|
248
|
-
"content-type": "application/json",
|
|
249
|
-
};
|
|
250
|
-
b.bp("/account/deregisterOrganizationAdminAccount");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
253
|
-
adminAccountId: [],
|
|
254
|
-
}));
|
|
255
|
-
b.m("POST").h(headers).b(body);
|
|
256
|
-
return b.build();
|
|
257
|
-
};
|
|
258
|
-
exports.se_DeregisterOrganizationAdminAccountCommand = se_DeregisterOrganizationAdminAccountCommand;
|
|
259
|
-
const se_DisassociateAssessmentReportEvidenceFolderCommand = async (input, context) => {
|
|
260
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
261
|
-
const headers = {
|
|
262
|
-
"content-type": "application/json",
|
|
263
|
-
};
|
|
264
|
-
b.bp("/assessments/{assessmentId}/disassociateFromAssessmentReport");
|
|
265
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
268
|
-
evidenceFolderId: [],
|
|
269
|
-
}));
|
|
270
|
-
b.m("PUT").h(headers).b(body);
|
|
271
|
-
return b.build();
|
|
272
|
-
};
|
|
273
|
-
exports.se_DisassociateAssessmentReportEvidenceFolderCommand = se_DisassociateAssessmentReportEvidenceFolderCommand;
|
|
274
|
-
const se_GetAccountStatusCommand = async (input, context) => {
|
|
275
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
276
|
-
const headers = {
|
|
277
|
-
"content-type": "application/json",
|
|
278
|
-
};
|
|
279
|
-
b.bp("/account/status");
|
|
280
|
-
let body;
|
|
281
|
-
body = "";
|
|
282
|
-
b.m("GET").h(headers).b(body);
|
|
283
|
-
return b.build();
|
|
284
|
-
};
|
|
285
|
-
exports.se_GetAccountStatusCommand = se_GetAccountStatusCommand;
|
|
286
|
-
const se_GetAssessmentCommand = async (input, context) => {
|
|
287
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
288
|
-
const headers = {};
|
|
289
|
-
b.bp("/assessments/{assessmentId}");
|
|
290
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
291
|
-
let body;
|
|
292
|
-
b.m("GET").h(headers).b(body);
|
|
293
|
-
return b.build();
|
|
294
|
-
};
|
|
295
|
-
exports.se_GetAssessmentCommand = se_GetAssessmentCommand;
|
|
296
|
-
const se_GetAssessmentFrameworkCommand = async (input, context) => {
|
|
297
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
298
|
-
const headers = {};
|
|
299
|
-
b.bp("/assessmentFrameworks/{frameworkId}");
|
|
300
|
-
b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
301
|
-
let body;
|
|
302
|
-
b.m("GET").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
exports.se_GetAssessmentFrameworkCommand = se_GetAssessmentFrameworkCommand;
|
|
306
|
-
const se_GetAssessmentReportUrlCommand = async (input, context) => {
|
|
307
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
308
|
-
const headers = {};
|
|
309
|
-
b.bp("/assessments/{assessmentId}/reports/{assessmentReportId}/url");
|
|
310
|
-
b.p("assessmentReportId", () => input.assessmentReportId, "{assessmentReportId}", false);
|
|
311
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
312
|
-
let body;
|
|
313
|
-
b.m("GET").h(headers).b(body);
|
|
314
|
-
return b.build();
|
|
315
|
-
};
|
|
316
|
-
exports.se_GetAssessmentReportUrlCommand = se_GetAssessmentReportUrlCommand;
|
|
317
|
-
const se_GetChangeLogsCommand = async (input, context) => {
|
|
318
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
319
|
-
const headers = {};
|
|
320
|
-
b.bp("/assessments/{assessmentId}/changelogs");
|
|
321
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
322
|
-
const query = (0, smithy_client_1.map)({
|
|
323
|
-
[_cSI]: [, input[_cSI]],
|
|
324
|
-
[_cI]: [, input[_cI]],
|
|
325
|
-
[_nT]: [, input[_nT]],
|
|
326
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
327
|
-
});
|
|
328
|
-
let body;
|
|
329
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
330
|
-
return b.build();
|
|
331
|
-
};
|
|
332
|
-
exports.se_GetChangeLogsCommand = se_GetChangeLogsCommand;
|
|
333
|
-
const se_GetControlCommand = async (input, context) => {
|
|
334
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
335
|
-
const headers = {};
|
|
336
|
-
b.bp("/controls/{controlId}");
|
|
337
|
-
b.p("controlId", () => input.controlId, "{controlId}", false);
|
|
338
|
-
let body;
|
|
339
|
-
b.m("GET").h(headers).b(body);
|
|
340
|
-
return b.build();
|
|
341
|
-
};
|
|
342
|
-
exports.se_GetControlCommand = se_GetControlCommand;
|
|
343
|
-
const se_GetDelegationsCommand = async (input, context) => {
|
|
344
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
345
|
-
const headers = {};
|
|
346
|
-
b.bp("/delegations");
|
|
347
|
-
const query = (0, smithy_client_1.map)({
|
|
348
|
-
[_nT]: [, input[_nT]],
|
|
349
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
350
|
-
});
|
|
351
|
-
let body;
|
|
352
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
353
|
-
return b.build();
|
|
354
|
-
};
|
|
355
|
-
exports.se_GetDelegationsCommand = se_GetDelegationsCommand;
|
|
356
|
-
const se_GetEvidenceCommand = async (input, context) => {
|
|
357
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
358
|
-
const headers = {};
|
|
359
|
-
b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence/{evidenceId}");
|
|
360
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
361
|
-
b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
362
|
-
b.p("evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
|
|
363
|
-
b.p("evidenceId", () => input.evidenceId, "{evidenceId}", false);
|
|
364
|
-
let body;
|
|
365
|
-
b.m("GET").h(headers).b(body);
|
|
366
|
-
return b.build();
|
|
367
|
-
};
|
|
368
|
-
exports.se_GetEvidenceCommand = se_GetEvidenceCommand;
|
|
369
|
-
const se_GetEvidenceByEvidenceFolderCommand = async (input, context) => {
|
|
370
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
371
|
-
const headers = {};
|
|
372
|
-
b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}/evidence");
|
|
373
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
374
|
-
b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
375
|
-
b.p("evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
|
|
376
|
-
const query = (0, smithy_client_1.map)({
|
|
377
|
-
[_nT]: [, input[_nT]],
|
|
378
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
379
|
-
});
|
|
380
|
-
let body;
|
|
381
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
382
|
-
return b.build();
|
|
383
|
-
};
|
|
384
|
-
exports.se_GetEvidenceByEvidenceFolderCommand = se_GetEvidenceByEvidenceFolderCommand;
|
|
385
|
-
const se_GetEvidenceFileUploadUrlCommand = async (input, context) => {
|
|
386
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
387
|
-
const headers = {};
|
|
388
|
-
b.bp("/evidenceFileUploadUrl");
|
|
389
|
-
const query = (0, smithy_client_1.map)({
|
|
390
|
-
[_fN]: [, (0, smithy_client_1.expectNonNull)(input[_fN], `fileName`)],
|
|
391
|
-
});
|
|
392
|
-
let body;
|
|
393
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
394
|
-
return b.build();
|
|
395
|
-
};
|
|
396
|
-
exports.se_GetEvidenceFileUploadUrlCommand = se_GetEvidenceFileUploadUrlCommand;
|
|
397
|
-
const se_GetEvidenceFolderCommand = async (input, context) => {
|
|
398
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
399
|
-
const headers = {};
|
|
400
|
-
b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/evidenceFolders/{evidenceFolderId}");
|
|
401
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
402
|
-
b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
403
|
-
b.p("evidenceFolderId", () => input.evidenceFolderId, "{evidenceFolderId}", false);
|
|
404
|
-
let body;
|
|
405
|
-
b.m("GET").h(headers).b(body);
|
|
406
|
-
return b.build();
|
|
407
|
-
};
|
|
408
|
-
exports.se_GetEvidenceFolderCommand = se_GetEvidenceFolderCommand;
|
|
409
|
-
const se_GetEvidenceFoldersByAssessmentCommand = async (input, context) => {
|
|
410
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
411
|
-
const headers = {};
|
|
412
|
-
b.bp("/assessments/{assessmentId}/evidenceFolders");
|
|
413
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
414
|
-
const query = (0, smithy_client_1.map)({
|
|
415
|
-
[_nT]: [, input[_nT]],
|
|
416
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
417
|
-
});
|
|
418
|
-
let body;
|
|
419
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
420
|
-
return b.build();
|
|
421
|
-
};
|
|
422
|
-
exports.se_GetEvidenceFoldersByAssessmentCommand = se_GetEvidenceFoldersByAssessmentCommand;
|
|
423
|
-
const se_GetEvidenceFoldersByAssessmentControlCommand = async (input, context) => {
|
|
424
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
425
|
-
const headers = {};
|
|
426
|
-
b.bp("/assessments/{assessmentId}/evidenceFolders-by-assessment-control/{controlSetId}/{controlId}");
|
|
427
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
428
|
-
b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
429
|
-
b.p("controlId", () => input.controlId, "{controlId}", false);
|
|
430
|
-
const query = (0, smithy_client_1.map)({
|
|
431
|
-
[_nT]: [, input[_nT]],
|
|
432
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
433
|
-
});
|
|
434
|
-
let body;
|
|
435
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
436
|
-
return b.build();
|
|
437
|
-
};
|
|
438
|
-
exports.se_GetEvidenceFoldersByAssessmentControlCommand = se_GetEvidenceFoldersByAssessmentControlCommand;
|
|
439
|
-
const se_GetInsightsCommand = async (input, context) => {
|
|
440
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
441
|
-
const headers = {
|
|
442
|
-
"content-type": "application/json",
|
|
443
|
-
};
|
|
444
|
-
b.bp("/insights");
|
|
445
|
-
let body;
|
|
446
|
-
body = "";
|
|
447
|
-
b.m("GET").h(headers).b(body);
|
|
448
|
-
return b.build();
|
|
449
|
-
};
|
|
450
|
-
exports.se_GetInsightsCommand = se_GetInsightsCommand;
|
|
451
|
-
const se_GetInsightsByAssessmentCommand = async (input, context) => {
|
|
452
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
453
|
-
const headers = {};
|
|
454
|
-
b.bp("/insights/assessments/{assessmentId}");
|
|
455
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
456
|
-
let body;
|
|
457
|
-
b.m("GET").h(headers).b(body);
|
|
458
|
-
return b.build();
|
|
459
|
-
};
|
|
460
|
-
exports.se_GetInsightsByAssessmentCommand = se_GetInsightsByAssessmentCommand;
|
|
461
|
-
const se_GetOrganizationAdminAccountCommand = async (input, context) => {
|
|
462
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
463
|
-
const headers = {
|
|
464
|
-
"content-type": "application/json",
|
|
465
|
-
};
|
|
466
|
-
b.bp("/account/organizationAdminAccount");
|
|
467
|
-
let body;
|
|
468
|
-
body = "";
|
|
469
|
-
b.m("GET").h(headers).b(body);
|
|
470
|
-
return b.build();
|
|
471
|
-
};
|
|
472
|
-
exports.se_GetOrganizationAdminAccountCommand = se_GetOrganizationAdminAccountCommand;
|
|
473
|
-
const se_GetServicesInScopeCommand = async (input, context) => {
|
|
474
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
475
|
-
const headers = {
|
|
476
|
-
"content-type": "application/json",
|
|
477
|
-
};
|
|
478
|
-
b.bp("/services");
|
|
479
|
-
let body;
|
|
480
|
-
body = "";
|
|
481
|
-
b.m("GET").h(headers).b(body);
|
|
482
|
-
return b.build();
|
|
483
|
-
};
|
|
484
|
-
exports.se_GetServicesInScopeCommand = se_GetServicesInScopeCommand;
|
|
485
|
-
const se_GetSettingsCommand = async (input, context) => {
|
|
486
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
487
|
-
const headers = {};
|
|
488
|
-
b.bp("/settings/{attribute}");
|
|
489
|
-
b.p("attribute", () => input.attribute, "{attribute}", false);
|
|
490
|
-
let body;
|
|
491
|
-
b.m("GET").h(headers).b(body);
|
|
492
|
-
return b.build();
|
|
493
|
-
};
|
|
494
|
-
exports.se_GetSettingsCommand = se_GetSettingsCommand;
|
|
495
|
-
const se_ListAssessmentControlInsightsByControlDomainCommand = async (input, context) => {
|
|
496
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
497
|
-
const headers = {};
|
|
498
|
-
b.bp("/insights/controls-by-assessment");
|
|
499
|
-
const query = (0, smithy_client_1.map)({
|
|
500
|
-
[_cDI]: [, (0, smithy_client_1.expectNonNull)(input[_cDI], `controlDomainId`)],
|
|
501
|
-
[_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `assessmentId`)],
|
|
502
|
-
[_nT]: [, input[_nT]],
|
|
503
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
504
|
-
});
|
|
505
|
-
let body;
|
|
506
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
507
|
-
return b.build();
|
|
508
|
-
};
|
|
509
|
-
exports.se_ListAssessmentControlInsightsByControlDomainCommand = se_ListAssessmentControlInsightsByControlDomainCommand;
|
|
510
|
-
const se_ListAssessmentFrameworksCommand = async (input, context) => {
|
|
511
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
512
|
-
const headers = {};
|
|
513
|
-
b.bp("/assessmentFrameworks");
|
|
514
|
-
const query = (0, smithy_client_1.map)({
|
|
515
|
-
[_fT]: [, (0, smithy_client_1.expectNonNull)(input[_fT], `frameworkType`)],
|
|
516
|
-
[_nT]: [, input[_nT]],
|
|
517
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
518
|
-
});
|
|
519
|
-
let body;
|
|
520
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
521
|
-
return b.build();
|
|
522
|
-
};
|
|
523
|
-
exports.se_ListAssessmentFrameworksCommand = se_ListAssessmentFrameworksCommand;
|
|
524
|
-
const se_ListAssessmentFrameworkShareRequestsCommand = async (input, context) => {
|
|
525
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
526
|
-
const headers = {};
|
|
527
|
-
b.bp("/assessmentFrameworkShareRequests");
|
|
528
|
-
const query = (0, smithy_client_1.map)({
|
|
529
|
-
[_rT]: [, (0, smithy_client_1.expectNonNull)(input[_rT], `requestType`)],
|
|
530
|
-
[_nT]: [, input[_nT]],
|
|
531
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
532
|
-
});
|
|
533
|
-
let body;
|
|
534
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
535
|
-
return b.build();
|
|
536
|
-
};
|
|
537
|
-
exports.se_ListAssessmentFrameworkShareRequestsCommand = se_ListAssessmentFrameworkShareRequestsCommand;
|
|
538
|
-
const se_ListAssessmentReportsCommand = async (input, context) => {
|
|
539
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
540
|
-
const headers = {};
|
|
541
|
-
b.bp("/assessmentReports");
|
|
542
|
-
const query = (0, smithy_client_1.map)({
|
|
543
|
-
[_nT]: [, input[_nT]],
|
|
544
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
545
|
-
});
|
|
546
|
-
let body;
|
|
547
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
548
|
-
return b.build();
|
|
549
|
-
};
|
|
550
|
-
exports.se_ListAssessmentReportsCommand = se_ListAssessmentReportsCommand;
|
|
551
|
-
const se_ListAssessmentsCommand = async (input, context) => {
|
|
552
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
553
|
-
const headers = {};
|
|
554
|
-
b.bp("/assessments");
|
|
555
|
-
const query = (0, smithy_client_1.map)({
|
|
556
|
-
[_s]: [, input[_s]],
|
|
557
|
-
[_nT]: [, input[_nT]],
|
|
558
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
559
|
-
});
|
|
560
|
-
let body;
|
|
561
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
562
|
-
return b.build();
|
|
563
|
-
};
|
|
564
|
-
exports.se_ListAssessmentsCommand = se_ListAssessmentsCommand;
|
|
565
|
-
const se_ListControlDomainInsightsCommand = async (input, context) => {
|
|
566
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
567
|
-
const headers = {};
|
|
568
|
-
b.bp("/insights/control-domains");
|
|
569
|
-
const query = (0, smithy_client_1.map)({
|
|
570
|
-
[_nT]: [, input[_nT]],
|
|
571
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
572
|
-
});
|
|
573
|
-
let body;
|
|
574
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
575
|
-
return b.build();
|
|
576
|
-
};
|
|
577
|
-
exports.se_ListControlDomainInsightsCommand = se_ListControlDomainInsightsCommand;
|
|
578
|
-
const se_ListControlDomainInsightsByAssessmentCommand = async (input, context) => {
|
|
579
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
580
|
-
const headers = {};
|
|
581
|
-
b.bp("/insights/control-domains-by-assessment");
|
|
582
|
-
const query = (0, smithy_client_1.map)({
|
|
583
|
-
[_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `assessmentId`)],
|
|
584
|
-
[_nT]: [, input[_nT]],
|
|
585
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
586
|
-
});
|
|
587
|
-
let body;
|
|
588
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
589
|
-
return b.build();
|
|
590
|
-
};
|
|
591
|
-
exports.se_ListControlDomainInsightsByAssessmentCommand = se_ListControlDomainInsightsByAssessmentCommand;
|
|
592
|
-
const se_ListControlInsightsByControlDomainCommand = async (input, context) => {
|
|
593
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
594
|
-
const headers = {};
|
|
595
|
-
b.bp("/insights/controls");
|
|
596
|
-
const query = (0, smithy_client_1.map)({
|
|
597
|
-
[_cDI]: [, (0, smithy_client_1.expectNonNull)(input[_cDI], `controlDomainId`)],
|
|
598
|
-
[_nT]: [, input[_nT]],
|
|
599
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
600
|
-
});
|
|
601
|
-
let body;
|
|
602
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
603
|
-
return b.build();
|
|
604
|
-
};
|
|
605
|
-
exports.se_ListControlInsightsByControlDomainCommand = se_ListControlInsightsByControlDomainCommand;
|
|
606
|
-
const se_ListControlsCommand = async (input, context) => {
|
|
607
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
608
|
-
const headers = {};
|
|
609
|
-
b.bp("/controls");
|
|
610
|
-
const query = (0, smithy_client_1.map)({
|
|
611
|
-
[_cT]: [, (0, smithy_client_1.expectNonNull)(input[_cT], `controlType`)],
|
|
612
|
-
[_nT]: [, input[_nT]],
|
|
613
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
614
|
-
});
|
|
615
|
-
let body;
|
|
616
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
617
|
-
return b.build();
|
|
618
|
-
};
|
|
619
|
-
exports.se_ListControlsCommand = se_ListControlsCommand;
|
|
620
|
-
const se_ListKeywordsForDataSourceCommand = async (input, context) => {
|
|
621
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
622
|
-
const headers = {};
|
|
623
|
-
b.bp("/dataSourceKeywords");
|
|
624
|
-
const query = (0, smithy_client_1.map)({
|
|
625
|
-
[_so]: [, (0, smithy_client_1.expectNonNull)(input[_so], `source`)],
|
|
626
|
-
[_nT]: [, input[_nT]],
|
|
627
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
628
|
-
});
|
|
629
|
-
let body;
|
|
630
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
631
|
-
return b.build();
|
|
632
|
-
};
|
|
633
|
-
exports.se_ListKeywordsForDataSourceCommand = se_ListKeywordsForDataSourceCommand;
|
|
634
|
-
const se_ListNotificationsCommand = async (input, context) => {
|
|
635
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
636
|
-
const headers = {};
|
|
637
|
-
b.bp("/notifications");
|
|
638
|
-
const query = (0, smithy_client_1.map)({
|
|
639
|
-
[_nT]: [, input[_nT]],
|
|
640
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
641
|
-
});
|
|
642
|
-
let body;
|
|
643
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
644
|
-
return b.build();
|
|
645
|
-
};
|
|
646
|
-
exports.se_ListNotificationsCommand = se_ListNotificationsCommand;
|
|
647
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
648
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
649
|
-
const headers = {};
|
|
650
|
-
b.bp("/tags/{resourceArn}");
|
|
651
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
652
|
-
let body;
|
|
653
|
-
b.m("GET").h(headers).b(body);
|
|
654
|
-
return b.build();
|
|
655
|
-
};
|
|
656
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
657
|
-
const se_RegisterAccountCommand = async (input, context) => {
|
|
658
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
659
|
-
const headers = {
|
|
660
|
-
"content-type": "application/json",
|
|
661
|
-
};
|
|
662
|
-
b.bp("/account/registerAccount");
|
|
663
|
-
let body;
|
|
664
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
665
|
-
delegatedAdminAccount: [],
|
|
666
|
-
kmsKey: [],
|
|
667
|
-
}));
|
|
668
|
-
b.m("POST").h(headers).b(body);
|
|
669
|
-
return b.build();
|
|
670
|
-
};
|
|
671
|
-
exports.se_RegisterAccountCommand = se_RegisterAccountCommand;
|
|
672
|
-
const se_RegisterOrganizationAdminAccountCommand = async (input, context) => {
|
|
673
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
674
|
-
const headers = {
|
|
675
|
-
"content-type": "application/json",
|
|
676
|
-
};
|
|
677
|
-
b.bp("/account/registerOrganizationAdminAccount");
|
|
678
|
-
let body;
|
|
679
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
680
|
-
adminAccountId: [],
|
|
681
|
-
}));
|
|
682
|
-
b.m("POST").h(headers).b(body);
|
|
683
|
-
return b.build();
|
|
684
|
-
};
|
|
685
|
-
exports.se_RegisterOrganizationAdminAccountCommand = se_RegisterOrganizationAdminAccountCommand;
|
|
686
|
-
const se_StartAssessmentFrameworkShareCommand = async (input, context) => {
|
|
687
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
688
|
-
const headers = {
|
|
689
|
-
"content-type": "application/json",
|
|
690
|
-
};
|
|
691
|
-
b.bp("/assessmentFrameworks/{frameworkId}/shareRequests");
|
|
692
|
-
b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
693
|
-
let body;
|
|
694
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
695
|
-
comment: [],
|
|
696
|
-
destinationAccount: [],
|
|
697
|
-
destinationRegion: [],
|
|
698
|
-
}));
|
|
699
|
-
b.m("POST").h(headers).b(body);
|
|
700
|
-
return b.build();
|
|
701
|
-
};
|
|
702
|
-
exports.se_StartAssessmentFrameworkShareCommand = se_StartAssessmentFrameworkShareCommand;
|
|
703
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
704
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
705
|
-
const headers = {
|
|
706
|
-
"content-type": "application/json",
|
|
707
|
-
};
|
|
708
|
-
b.bp("/tags/{resourceArn}");
|
|
709
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
710
|
-
let body;
|
|
711
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
712
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
713
|
-
}));
|
|
714
|
-
b.m("POST").h(headers).b(body);
|
|
715
|
-
return b.build();
|
|
716
|
-
};
|
|
717
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
718
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
719
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
720
|
-
const headers = {};
|
|
721
|
-
b.bp("/tags/{resourceArn}");
|
|
722
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
723
|
-
const query = (0, smithy_client_1.map)({
|
|
724
|
-
[_tK]: [
|
|
725
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
726
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
727
|
-
],
|
|
728
|
-
});
|
|
729
|
-
let body;
|
|
730
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
731
|
-
return b.build();
|
|
732
|
-
};
|
|
733
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
734
|
-
const se_UpdateAssessmentCommand = async (input, context) => {
|
|
735
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
736
|
-
const headers = {
|
|
737
|
-
"content-type": "application/json",
|
|
738
|
-
};
|
|
739
|
-
b.bp("/assessments/{assessmentId}");
|
|
740
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
741
|
-
let body;
|
|
742
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
743
|
-
assessmentDescription: [],
|
|
744
|
-
assessmentName: [],
|
|
745
|
-
assessmentReportsDestination: (_) => (0, smithy_client_1._json)(_),
|
|
746
|
-
roles: (_) => (0, smithy_client_1._json)(_),
|
|
747
|
-
scope: (_) => (0, smithy_client_1._json)(_),
|
|
748
|
-
}));
|
|
749
|
-
b.m("PUT").h(headers).b(body);
|
|
750
|
-
return b.build();
|
|
751
|
-
};
|
|
752
|
-
exports.se_UpdateAssessmentCommand = se_UpdateAssessmentCommand;
|
|
753
|
-
const se_UpdateAssessmentControlCommand = async (input, context) => {
|
|
754
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
755
|
-
const headers = {
|
|
756
|
-
"content-type": "application/json",
|
|
757
|
-
};
|
|
758
|
-
b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}");
|
|
759
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
760
|
-
b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
761
|
-
b.p("controlId", () => input.controlId, "{controlId}", false);
|
|
762
|
-
let body;
|
|
763
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
764
|
-
commentBody: [],
|
|
765
|
-
controlStatus: [],
|
|
766
|
-
}));
|
|
767
|
-
b.m("PUT").h(headers).b(body);
|
|
768
|
-
return b.build();
|
|
769
|
-
};
|
|
770
|
-
exports.se_UpdateAssessmentControlCommand = se_UpdateAssessmentControlCommand;
|
|
771
|
-
const se_UpdateAssessmentControlSetStatusCommand = async (input, context) => {
|
|
772
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
773
|
-
const headers = {
|
|
774
|
-
"content-type": "application/json",
|
|
775
|
-
};
|
|
776
|
-
b.bp("/assessments/{assessmentId}/controlSets/{controlSetId}/status");
|
|
777
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
778
|
-
b.p("controlSetId", () => input.controlSetId, "{controlSetId}", false);
|
|
779
|
-
let body;
|
|
780
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
781
|
-
comment: [],
|
|
782
|
-
status: [],
|
|
783
|
-
}));
|
|
784
|
-
b.m("PUT").h(headers).b(body);
|
|
785
|
-
return b.build();
|
|
786
|
-
};
|
|
787
|
-
exports.se_UpdateAssessmentControlSetStatusCommand = se_UpdateAssessmentControlSetStatusCommand;
|
|
788
|
-
const se_UpdateAssessmentFrameworkCommand = async (input, context) => {
|
|
789
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
790
|
-
const headers = {
|
|
791
|
-
"content-type": "application/json",
|
|
792
|
-
};
|
|
793
|
-
b.bp("/assessmentFrameworks/{frameworkId}");
|
|
794
|
-
b.p("frameworkId", () => input.frameworkId, "{frameworkId}", false);
|
|
795
|
-
let body;
|
|
796
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
797
|
-
complianceType: [],
|
|
798
|
-
controlSets: (_) => (0, smithy_client_1._json)(_),
|
|
799
|
-
description: [],
|
|
800
|
-
name: [],
|
|
801
|
-
}));
|
|
802
|
-
b.m("PUT").h(headers).b(body);
|
|
803
|
-
return b.build();
|
|
804
|
-
};
|
|
805
|
-
exports.se_UpdateAssessmentFrameworkCommand = se_UpdateAssessmentFrameworkCommand;
|
|
806
|
-
const se_UpdateAssessmentFrameworkShareCommand = async (input, context) => {
|
|
807
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
808
|
-
const headers = {
|
|
809
|
-
"content-type": "application/json",
|
|
810
|
-
};
|
|
811
|
-
b.bp("/assessmentFrameworkShareRequests/{requestId}");
|
|
812
|
-
b.p("requestId", () => input.requestId, "{requestId}", false);
|
|
813
|
-
let body;
|
|
814
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
815
|
-
action: [],
|
|
816
|
-
requestType: [],
|
|
817
|
-
}));
|
|
818
|
-
b.m("PUT").h(headers).b(body);
|
|
819
|
-
return b.build();
|
|
820
|
-
};
|
|
821
|
-
exports.se_UpdateAssessmentFrameworkShareCommand = se_UpdateAssessmentFrameworkShareCommand;
|
|
822
|
-
const se_UpdateAssessmentStatusCommand = async (input, context) => {
|
|
823
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
824
|
-
const headers = {
|
|
825
|
-
"content-type": "application/json",
|
|
826
|
-
};
|
|
827
|
-
b.bp("/assessments/{assessmentId}/status");
|
|
828
|
-
b.p("assessmentId", () => input.assessmentId, "{assessmentId}", false);
|
|
829
|
-
let body;
|
|
830
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
831
|
-
status: [],
|
|
832
|
-
}));
|
|
833
|
-
b.m("PUT").h(headers).b(body);
|
|
834
|
-
return b.build();
|
|
835
|
-
};
|
|
836
|
-
exports.se_UpdateAssessmentStatusCommand = se_UpdateAssessmentStatusCommand;
|
|
837
|
-
const se_UpdateControlCommand = async (input, context) => {
|
|
838
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
839
|
-
const headers = {
|
|
840
|
-
"content-type": "application/json",
|
|
841
|
-
};
|
|
842
|
-
b.bp("/controls/{controlId}");
|
|
843
|
-
b.p("controlId", () => input.controlId, "{controlId}", false);
|
|
844
|
-
let body;
|
|
845
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
846
|
-
actionPlanInstructions: [],
|
|
847
|
-
actionPlanTitle: [],
|
|
848
|
-
controlMappingSources: (_) => (0, smithy_client_1._json)(_),
|
|
849
|
-
description: [],
|
|
850
|
-
name: [],
|
|
851
|
-
testingInformation: [],
|
|
852
|
-
}));
|
|
853
|
-
b.m("PUT").h(headers).b(body);
|
|
854
|
-
return b.build();
|
|
855
|
-
};
|
|
856
|
-
exports.se_UpdateControlCommand = se_UpdateControlCommand;
|
|
857
|
-
const se_UpdateSettingsCommand = async (input, context) => {
|
|
858
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
859
|
-
const headers = {
|
|
860
|
-
"content-type": "application/json",
|
|
861
|
-
};
|
|
862
|
-
b.bp("/settings");
|
|
863
|
-
let body;
|
|
864
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
865
|
-
defaultAssessmentReportsDestination: (_) => (0, smithy_client_1._json)(_),
|
|
866
|
-
defaultExportDestination: (_) => (0, smithy_client_1._json)(_),
|
|
867
|
-
defaultProcessOwners: (_) => (0, smithy_client_1._json)(_),
|
|
868
|
-
deregistrationPolicy: (_) => (0, smithy_client_1._json)(_),
|
|
869
|
-
evidenceFinderEnabled: [],
|
|
870
|
-
kmsKey: [],
|
|
871
|
-
snsTopic: [],
|
|
872
|
-
}));
|
|
873
|
-
b.m("PUT").h(headers).b(body);
|
|
874
|
-
return b.build();
|
|
875
|
-
};
|
|
876
|
-
exports.se_UpdateSettingsCommand = se_UpdateSettingsCommand;
|
|
877
|
-
const se_ValidateAssessmentReportIntegrityCommand = async (input, context) => {
|
|
878
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
879
|
-
const headers = {
|
|
880
|
-
"content-type": "application/json",
|
|
881
|
-
};
|
|
882
|
-
b.bp("/assessmentReports/integrity");
|
|
883
|
-
let body;
|
|
884
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
885
|
-
s3RelativePath: [],
|
|
886
|
-
}));
|
|
887
|
-
b.m("POST").h(headers).b(body);
|
|
888
|
-
return b.build();
|
|
889
|
-
};
|
|
890
|
-
exports.se_ValidateAssessmentReportIntegrityCommand = se_ValidateAssessmentReportIntegrityCommand;
|
|
891
|
-
const de_AssociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
|
|
892
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
-
return de_AssociateAssessmentReportEvidenceFolderCommandError(output, context);
|
|
894
|
-
}
|
|
895
|
-
const contents = (0, smithy_client_1.map)({
|
|
896
|
-
$metadata: deserializeMetadata(output),
|
|
897
|
-
});
|
|
898
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
899
|
-
return contents;
|
|
900
|
-
};
|
|
901
|
-
exports.de_AssociateAssessmentReportEvidenceFolderCommand = de_AssociateAssessmentReportEvidenceFolderCommand;
|
|
902
|
-
const de_AssociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context),
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "AccessDeniedException":
|
|
910
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
911
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
912
|
-
case "InternalServerException":
|
|
913
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
914
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ResourceNotFoundException":
|
|
916
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ValidationException":
|
|
919
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
920
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
921
|
-
default:
|
|
922
|
-
const parsedBody = parsedOutput.body;
|
|
923
|
-
return throwDefaultError({
|
|
924
|
-
output,
|
|
925
|
-
parsedBody,
|
|
926
|
-
errorCode,
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
};
|
|
930
|
-
const de_BatchAssociateAssessmentReportEvidenceCommand = async (output, context) => {
|
|
931
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
|
-
return de_BatchAssociateAssessmentReportEvidenceCommandError(output, context);
|
|
933
|
-
}
|
|
934
|
-
const contents = (0, smithy_client_1.map)({
|
|
935
|
-
$metadata: deserializeMetadata(output),
|
|
936
|
-
});
|
|
937
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
938
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
939
|
-
errors: smithy_client_1._json,
|
|
940
|
-
evidenceIds: smithy_client_1._json,
|
|
941
|
-
});
|
|
942
|
-
Object.assign(contents, doc);
|
|
943
|
-
return contents;
|
|
944
|
-
};
|
|
945
|
-
exports.de_BatchAssociateAssessmentReportEvidenceCommand = de_BatchAssociateAssessmentReportEvidenceCommand;
|
|
946
|
-
const de_BatchAssociateAssessmentReportEvidenceCommandError = async (output, context) => {
|
|
947
|
-
const parsedOutput = {
|
|
948
|
-
...output,
|
|
949
|
-
body: await parseErrorBody(output.body, context),
|
|
950
|
-
};
|
|
951
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
952
|
-
switch (errorCode) {
|
|
953
|
-
case "AccessDeniedException":
|
|
954
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
955
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
956
|
-
case "InternalServerException":
|
|
957
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
958
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
959
|
-
case "ResourceNotFoundException":
|
|
960
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
961
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
962
|
-
case "ValidationException":
|
|
963
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
964
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
|
-
default:
|
|
966
|
-
const parsedBody = parsedOutput.body;
|
|
967
|
-
return throwDefaultError({
|
|
968
|
-
output,
|
|
969
|
-
parsedBody,
|
|
970
|
-
errorCode,
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
|
-
};
|
|
974
|
-
const de_BatchCreateDelegationByAssessmentCommand = async (output, context) => {
|
|
975
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
976
|
-
return de_BatchCreateDelegationByAssessmentCommandError(output, context);
|
|
977
|
-
}
|
|
978
|
-
const contents = (0, smithy_client_1.map)({
|
|
979
|
-
$metadata: deserializeMetadata(output),
|
|
980
|
-
});
|
|
981
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
982
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
983
|
-
delegations: (_) => de_Delegations(_, context),
|
|
984
|
-
errors: smithy_client_1._json,
|
|
985
|
-
});
|
|
986
|
-
Object.assign(contents, doc);
|
|
987
|
-
return contents;
|
|
988
|
-
};
|
|
989
|
-
exports.de_BatchCreateDelegationByAssessmentCommand = de_BatchCreateDelegationByAssessmentCommand;
|
|
990
|
-
const de_BatchCreateDelegationByAssessmentCommandError = async (output, context) => {
|
|
991
|
-
const parsedOutput = {
|
|
992
|
-
...output,
|
|
993
|
-
body: await parseErrorBody(output.body, context),
|
|
994
|
-
};
|
|
995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
|
-
switch (errorCode) {
|
|
997
|
-
case "AccessDeniedException":
|
|
998
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
999
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "InternalServerException":
|
|
1001
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1002
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ResourceNotFoundException":
|
|
1004
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1005
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ValidationException":
|
|
1007
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
|
-
default:
|
|
1010
|
-
const parsedBody = parsedOutput.body;
|
|
1011
|
-
return throwDefaultError({
|
|
1012
|
-
output,
|
|
1013
|
-
parsedBody,
|
|
1014
|
-
errorCode,
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
const de_BatchDeleteDelegationByAssessmentCommand = async (output, context) => {
|
|
1019
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1020
|
-
return de_BatchDeleteDelegationByAssessmentCommandError(output, context);
|
|
1021
|
-
}
|
|
1022
|
-
const contents = (0, smithy_client_1.map)({
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
});
|
|
1025
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1026
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1027
|
-
errors: smithy_client_1._json,
|
|
1028
|
-
});
|
|
1029
|
-
Object.assign(contents, doc);
|
|
1030
|
-
return contents;
|
|
1031
|
-
};
|
|
1032
|
-
exports.de_BatchDeleteDelegationByAssessmentCommand = de_BatchDeleteDelegationByAssessmentCommand;
|
|
1033
|
-
const de_BatchDeleteDelegationByAssessmentCommandError = async (output, context) => {
|
|
1034
|
-
const parsedOutput = {
|
|
1035
|
-
...output,
|
|
1036
|
-
body: await parseErrorBody(output.body, context),
|
|
1037
|
-
};
|
|
1038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
-
switch (errorCode) {
|
|
1040
|
-
case "AccessDeniedException":
|
|
1041
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1042
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "InternalServerException":
|
|
1044
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1045
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "ResourceNotFoundException":
|
|
1047
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1048
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "ValidationException":
|
|
1050
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1051
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1052
|
-
default:
|
|
1053
|
-
const parsedBody = parsedOutput.body;
|
|
1054
|
-
return throwDefaultError({
|
|
1055
|
-
output,
|
|
1056
|
-
parsedBody,
|
|
1057
|
-
errorCode,
|
|
1058
|
-
});
|
|
1059
|
-
}
|
|
1060
|
-
};
|
|
1061
|
-
const de_BatchDisassociateAssessmentReportEvidenceCommand = async (output, context) => {
|
|
1062
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1063
|
-
return de_BatchDisassociateAssessmentReportEvidenceCommandError(output, context);
|
|
1064
|
-
}
|
|
1065
|
-
const contents = (0, smithy_client_1.map)({
|
|
1066
|
-
$metadata: deserializeMetadata(output),
|
|
1067
|
-
});
|
|
1068
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1069
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1070
|
-
errors: smithy_client_1._json,
|
|
1071
|
-
evidenceIds: smithy_client_1._json,
|
|
1072
|
-
});
|
|
1073
|
-
Object.assign(contents, doc);
|
|
1074
|
-
return contents;
|
|
1075
|
-
};
|
|
1076
|
-
exports.de_BatchDisassociateAssessmentReportEvidenceCommand = de_BatchDisassociateAssessmentReportEvidenceCommand;
|
|
1077
|
-
const de_BatchDisassociateAssessmentReportEvidenceCommandError = async (output, context) => {
|
|
1078
|
-
const parsedOutput = {
|
|
1079
|
-
...output,
|
|
1080
|
-
body: await parseErrorBody(output.body, context),
|
|
1081
|
-
};
|
|
1082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1083
|
-
switch (errorCode) {
|
|
1084
|
-
case "AccessDeniedException":
|
|
1085
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1086
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1087
|
-
case "InternalServerException":
|
|
1088
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1089
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1090
|
-
case "ResourceNotFoundException":
|
|
1091
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1092
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1093
|
-
case "ValidationException":
|
|
1094
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1095
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1096
|
-
default:
|
|
1097
|
-
const parsedBody = parsedOutput.body;
|
|
1098
|
-
return throwDefaultError({
|
|
1099
|
-
output,
|
|
1100
|
-
parsedBody,
|
|
1101
|
-
errorCode,
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
|
-
const de_BatchImportEvidenceToAssessmentControlCommand = async (output, context) => {
|
|
1106
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1107
|
-
return de_BatchImportEvidenceToAssessmentControlCommandError(output, context);
|
|
1108
|
-
}
|
|
1109
|
-
const contents = (0, smithy_client_1.map)({
|
|
1110
|
-
$metadata: deserializeMetadata(output),
|
|
1111
|
-
});
|
|
1112
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1113
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1114
|
-
errors: smithy_client_1._json,
|
|
1115
|
-
});
|
|
1116
|
-
Object.assign(contents, doc);
|
|
1117
|
-
return contents;
|
|
1118
|
-
};
|
|
1119
|
-
exports.de_BatchImportEvidenceToAssessmentControlCommand = de_BatchImportEvidenceToAssessmentControlCommand;
|
|
1120
|
-
const de_BatchImportEvidenceToAssessmentControlCommandError = async (output, context) => {
|
|
1121
|
-
const parsedOutput = {
|
|
1122
|
-
...output,
|
|
1123
|
-
body: await parseErrorBody(output.body, context),
|
|
1124
|
-
};
|
|
1125
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1126
|
-
switch (errorCode) {
|
|
1127
|
-
case "AccessDeniedException":
|
|
1128
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1129
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "InternalServerException":
|
|
1131
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1132
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "ResourceNotFoundException":
|
|
1134
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1135
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ThrottlingException":
|
|
1137
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
1138
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1139
|
-
case "ValidationException":
|
|
1140
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1141
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1142
|
-
default:
|
|
1143
|
-
const parsedBody = parsedOutput.body;
|
|
1144
|
-
return throwDefaultError({
|
|
1145
|
-
output,
|
|
1146
|
-
parsedBody,
|
|
1147
|
-
errorCode,
|
|
1148
|
-
});
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
|
-
const de_CreateAssessmentCommand = async (output, context) => {
|
|
1152
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1153
|
-
return de_CreateAssessmentCommandError(output, context);
|
|
1154
|
-
}
|
|
1155
|
-
const contents = (0, smithy_client_1.map)({
|
|
1156
|
-
$metadata: deserializeMetadata(output),
|
|
1157
|
-
});
|
|
1158
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1159
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1160
|
-
assessment: (_) => de_Assessment(_, context),
|
|
1161
|
-
});
|
|
1162
|
-
Object.assign(contents, doc);
|
|
1163
|
-
return contents;
|
|
1164
|
-
};
|
|
1165
|
-
exports.de_CreateAssessmentCommand = de_CreateAssessmentCommand;
|
|
1166
|
-
const de_CreateAssessmentCommandError = async (output, context) => {
|
|
1167
|
-
const parsedOutput = {
|
|
1168
|
-
...output,
|
|
1169
|
-
body: await parseErrorBody(output.body, context),
|
|
1170
|
-
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
-
switch (errorCode) {
|
|
1173
|
-
case "AccessDeniedException":
|
|
1174
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1175
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1176
|
-
case "InternalServerException":
|
|
1177
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1178
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1179
|
-
case "ResourceNotFoundException":
|
|
1180
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1181
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1182
|
-
case "ServiceQuotaExceededException":
|
|
1183
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1184
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1185
|
-
case "ValidationException":
|
|
1186
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1187
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1188
|
-
default:
|
|
1189
|
-
const parsedBody = parsedOutput.body;
|
|
1190
|
-
return throwDefaultError({
|
|
1191
|
-
output,
|
|
1192
|
-
parsedBody,
|
|
1193
|
-
errorCode,
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
};
|
|
1197
|
-
const de_CreateAssessmentFrameworkCommand = async (output, context) => {
|
|
1198
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1199
|
-
return de_CreateAssessmentFrameworkCommandError(output, context);
|
|
1200
|
-
}
|
|
1201
|
-
const contents = (0, smithy_client_1.map)({
|
|
1202
|
-
$metadata: deserializeMetadata(output),
|
|
1203
|
-
});
|
|
1204
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1205
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1206
|
-
framework: (_) => de_Framework(_, context),
|
|
1207
|
-
});
|
|
1208
|
-
Object.assign(contents, doc);
|
|
1209
|
-
return contents;
|
|
1210
|
-
};
|
|
1211
|
-
exports.de_CreateAssessmentFrameworkCommand = de_CreateAssessmentFrameworkCommand;
|
|
1212
|
-
const de_CreateAssessmentFrameworkCommandError = async (output, context) => {
|
|
1213
|
-
const parsedOutput = {
|
|
1214
|
-
...output,
|
|
1215
|
-
body: await parseErrorBody(output.body, context),
|
|
1216
|
-
};
|
|
1217
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1218
|
-
switch (errorCode) {
|
|
1219
|
-
case "AccessDeniedException":
|
|
1220
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1221
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1222
|
-
case "InternalServerException":
|
|
1223
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1224
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "ResourceNotFoundException":
|
|
1226
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1227
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "ServiceQuotaExceededException":
|
|
1229
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1230
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "ValidationException":
|
|
1232
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1233
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1234
|
-
default:
|
|
1235
|
-
const parsedBody = parsedOutput.body;
|
|
1236
|
-
return throwDefaultError({
|
|
1237
|
-
output,
|
|
1238
|
-
parsedBody,
|
|
1239
|
-
errorCode,
|
|
1240
|
-
});
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
const de_CreateAssessmentReportCommand = async (output, context) => {
|
|
1244
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1245
|
-
return de_CreateAssessmentReportCommandError(output, context);
|
|
1246
|
-
}
|
|
1247
|
-
const contents = (0, smithy_client_1.map)({
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
});
|
|
1250
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1251
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1252
|
-
assessmentReport: (_) => de_AssessmentReport(_, context),
|
|
1253
|
-
});
|
|
1254
|
-
Object.assign(contents, doc);
|
|
1255
|
-
return contents;
|
|
1256
|
-
};
|
|
1257
|
-
exports.de_CreateAssessmentReportCommand = de_CreateAssessmentReportCommand;
|
|
1258
|
-
const de_CreateAssessmentReportCommandError = async (output, context) => {
|
|
1259
|
-
const parsedOutput = {
|
|
1260
|
-
...output,
|
|
1261
|
-
body: await parseErrorBody(output.body, context),
|
|
1262
|
-
};
|
|
1263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
|
-
switch (errorCode) {
|
|
1265
|
-
case "AccessDeniedException":
|
|
1266
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1267
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "InternalServerException":
|
|
1269
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1270
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "ResourceNotFoundException":
|
|
1272
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1273
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ValidationException":
|
|
1275
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1276
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1277
|
-
default:
|
|
1278
|
-
const parsedBody = parsedOutput.body;
|
|
1279
|
-
return throwDefaultError({
|
|
1280
|
-
output,
|
|
1281
|
-
parsedBody,
|
|
1282
|
-
errorCode,
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
};
|
|
1286
|
-
const de_CreateControlCommand = async (output, context) => {
|
|
1287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1288
|
-
return de_CreateControlCommandError(output, context);
|
|
1289
|
-
}
|
|
1290
|
-
const contents = (0, smithy_client_1.map)({
|
|
1291
|
-
$metadata: deserializeMetadata(output),
|
|
1292
|
-
});
|
|
1293
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1294
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1295
|
-
control: (_) => de_Control(_, context),
|
|
1296
|
-
});
|
|
1297
|
-
Object.assign(contents, doc);
|
|
1298
|
-
return contents;
|
|
1299
|
-
};
|
|
1300
|
-
exports.de_CreateControlCommand = de_CreateControlCommand;
|
|
1301
|
-
const de_CreateControlCommandError = async (output, context) => {
|
|
1302
|
-
const parsedOutput = {
|
|
1303
|
-
...output,
|
|
1304
|
-
body: await parseErrorBody(output.body, context),
|
|
1305
|
-
};
|
|
1306
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
-
switch (errorCode) {
|
|
1308
|
-
case "AccessDeniedException":
|
|
1309
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1310
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1311
|
-
case "InternalServerException":
|
|
1312
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1313
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1314
|
-
case "ResourceNotFoundException":
|
|
1315
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1316
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1317
|
-
case "ServiceQuotaExceededException":
|
|
1318
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
1319
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1320
|
-
case "ValidationException":
|
|
1321
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1322
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
|
-
default:
|
|
1324
|
-
const parsedBody = parsedOutput.body;
|
|
1325
|
-
return throwDefaultError({
|
|
1326
|
-
output,
|
|
1327
|
-
parsedBody,
|
|
1328
|
-
errorCode,
|
|
1329
|
-
});
|
|
1330
|
-
}
|
|
1331
|
-
};
|
|
1332
|
-
const de_DeleteAssessmentCommand = async (output, context) => {
|
|
1333
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1334
|
-
return de_DeleteAssessmentCommandError(output, context);
|
|
1335
|
-
}
|
|
1336
|
-
const contents = (0, smithy_client_1.map)({
|
|
1337
|
-
$metadata: deserializeMetadata(output),
|
|
1338
|
-
});
|
|
1339
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1340
|
-
return contents;
|
|
1341
|
-
};
|
|
1342
|
-
exports.de_DeleteAssessmentCommand = de_DeleteAssessmentCommand;
|
|
1343
|
-
const de_DeleteAssessmentCommandError = async (output, context) => {
|
|
1344
|
-
const parsedOutput = {
|
|
1345
|
-
...output,
|
|
1346
|
-
body: await parseErrorBody(output.body, context),
|
|
1347
|
-
};
|
|
1348
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
|
-
switch (errorCode) {
|
|
1350
|
-
case "AccessDeniedException":
|
|
1351
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1352
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1353
|
-
case "InternalServerException":
|
|
1354
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1355
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1356
|
-
case "ResourceNotFoundException":
|
|
1357
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1358
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1359
|
-
case "ValidationException":
|
|
1360
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1361
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1362
|
-
default:
|
|
1363
|
-
const parsedBody = parsedOutput.body;
|
|
1364
|
-
return throwDefaultError({
|
|
1365
|
-
output,
|
|
1366
|
-
parsedBody,
|
|
1367
|
-
errorCode,
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
};
|
|
1371
|
-
const de_DeleteAssessmentFrameworkCommand = async (output, context) => {
|
|
1372
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1373
|
-
return de_DeleteAssessmentFrameworkCommandError(output, context);
|
|
1374
|
-
}
|
|
1375
|
-
const contents = (0, smithy_client_1.map)({
|
|
1376
|
-
$metadata: deserializeMetadata(output),
|
|
1377
|
-
});
|
|
1378
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1379
|
-
return contents;
|
|
1380
|
-
};
|
|
1381
|
-
exports.de_DeleteAssessmentFrameworkCommand = de_DeleteAssessmentFrameworkCommand;
|
|
1382
|
-
const de_DeleteAssessmentFrameworkCommandError = async (output, context) => {
|
|
1383
|
-
const parsedOutput = {
|
|
1384
|
-
...output,
|
|
1385
|
-
body: await parseErrorBody(output.body, context),
|
|
1386
|
-
};
|
|
1387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
|
-
switch (errorCode) {
|
|
1389
|
-
case "AccessDeniedException":
|
|
1390
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1391
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "InternalServerException":
|
|
1393
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1394
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ResourceNotFoundException":
|
|
1396
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ValidationException":
|
|
1399
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1400
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1401
|
-
default:
|
|
1402
|
-
const parsedBody = parsedOutput.body;
|
|
1403
|
-
return throwDefaultError({
|
|
1404
|
-
output,
|
|
1405
|
-
parsedBody,
|
|
1406
|
-
errorCode,
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
};
|
|
1410
|
-
const de_DeleteAssessmentFrameworkShareCommand = async (output, context) => {
|
|
1411
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1412
|
-
return de_DeleteAssessmentFrameworkShareCommandError(output, context);
|
|
1413
|
-
}
|
|
1414
|
-
const contents = (0, smithy_client_1.map)({
|
|
1415
|
-
$metadata: deserializeMetadata(output),
|
|
1416
|
-
});
|
|
1417
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1418
|
-
return contents;
|
|
1419
|
-
};
|
|
1420
|
-
exports.de_DeleteAssessmentFrameworkShareCommand = de_DeleteAssessmentFrameworkShareCommand;
|
|
1421
|
-
const de_DeleteAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
1422
|
-
const parsedOutput = {
|
|
1423
|
-
...output,
|
|
1424
|
-
body: await parseErrorBody(output.body, context),
|
|
1425
|
-
};
|
|
1426
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1427
|
-
switch (errorCode) {
|
|
1428
|
-
case "AccessDeniedException":
|
|
1429
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1430
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1431
|
-
case "InternalServerException":
|
|
1432
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1433
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1434
|
-
case "ResourceNotFoundException":
|
|
1435
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1436
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1437
|
-
case "ValidationException":
|
|
1438
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1439
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1440
|
-
default:
|
|
1441
|
-
const parsedBody = parsedOutput.body;
|
|
1442
|
-
return throwDefaultError({
|
|
1443
|
-
output,
|
|
1444
|
-
parsedBody,
|
|
1445
|
-
errorCode,
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
const de_DeleteAssessmentReportCommand = async (output, context) => {
|
|
1450
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1451
|
-
return de_DeleteAssessmentReportCommandError(output, context);
|
|
1452
|
-
}
|
|
1453
|
-
const contents = (0, smithy_client_1.map)({
|
|
1454
|
-
$metadata: deserializeMetadata(output),
|
|
1455
|
-
});
|
|
1456
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1457
|
-
return contents;
|
|
1458
|
-
};
|
|
1459
|
-
exports.de_DeleteAssessmentReportCommand = de_DeleteAssessmentReportCommand;
|
|
1460
|
-
const de_DeleteAssessmentReportCommandError = async (output, context) => {
|
|
1461
|
-
const parsedOutput = {
|
|
1462
|
-
...output,
|
|
1463
|
-
body: await parseErrorBody(output.body, context),
|
|
1464
|
-
};
|
|
1465
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1466
|
-
switch (errorCode) {
|
|
1467
|
-
case "AccessDeniedException":
|
|
1468
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1469
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1470
|
-
case "InternalServerException":
|
|
1471
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1472
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1473
|
-
case "ResourceNotFoundException":
|
|
1474
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1475
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1476
|
-
case "ValidationException":
|
|
1477
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1479
|
-
default:
|
|
1480
|
-
const parsedBody = parsedOutput.body;
|
|
1481
|
-
return throwDefaultError({
|
|
1482
|
-
output,
|
|
1483
|
-
parsedBody,
|
|
1484
|
-
errorCode,
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
};
|
|
1488
|
-
const de_DeleteControlCommand = async (output, context) => {
|
|
1489
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1490
|
-
return de_DeleteControlCommandError(output, context);
|
|
1491
|
-
}
|
|
1492
|
-
const contents = (0, smithy_client_1.map)({
|
|
1493
|
-
$metadata: deserializeMetadata(output),
|
|
1494
|
-
});
|
|
1495
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1496
|
-
return contents;
|
|
1497
|
-
};
|
|
1498
|
-
exports.de_DeleteControlCommand = de_DeleteControlCommand;
|
|
1499
|
-
const de_DeleteControlCommandError = async (output, context) => {
|
|
1500
|
-
const parsedOutput = {
|
|
1501
|
-
...output,
|
|
1502
|
-
body: await parseErrorBody(output.body, context),
|
|
1503
|
-
};
|
|
1504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
-
switch (errorCode) {
|
|
1506
|
-
case "AccessDeniedException":
|
|
1507
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1508
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "InternalServerException":
|
|
1510
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1511
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "ResourceNotFoundException":
|
|
1513
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1514
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ValidationException":
|
|
1516
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1517
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode,
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
|
-
const de_DeregisterAccountCommand = async (output, context) => {
|
|
1528
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1529
|
-
return de_DeregisterAccountCommandError(output, context);
|
|
1530
|
-
}
|
|
1531
|
-
const contents = (0, smithy_client_1.map)({
|
|
1532
|
-
$metadata: deserializeMetadata(output),
|
|
1533
|
-
});
|
|
1534
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1535
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1536
|
-
status: smithy_client_1.expectString,
|
|
1537
|
-
});
|
|
1538
|
-
Object.assign(contents, doc);
|
|
1539
|
-
return contents;
|
|
1540
|
-
};
|
|
1541
|
-
exports.de_DeregisterAccountCommand = de_DeregisterAccountCommand;
|
|
1542
|
-
const de_DeregisterAccountCommandError = async (output, context) => {
|
|
1543
|
-
const parsedOutput = {
|
|
1544
|
-
...output,
|
|
1545
|
-
body: await parseErrorBody(output.body, context),
|
|
1546
|
-
};
|
|
1547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
|
-
switch (errorCode) {
|
|
1549
|
-
case "AccessDeniedException":
|
|
1550
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1551
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "InternalServerException":
|
|
1553
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1554
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ResourceNotFoundException":
|
|
1556
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "ValidationException":
|
|
1559
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1560
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1561
|
-
default:
|
|
1562
|
-
const parsedBody = parsedOutput.body;
|
|
1563
|
-
return throwDefaultError({
|
|
1564
|
-
output,
|
|
1565
|
-
parsedBody,
|
|
1566
|
-
errorCode,
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
};
|
|
1570
|
-
const de_DeregisterOrganizationAdminAccountCommand = async (output, context) => {
|
|
1571
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1572
|
-
return de_DeregisterOrganizationAdminAccountCommandError(output, context);
|
|
1573
|
-
}
|
|
1574
|
-
const contents = (0, smithy_client_1.map)({
|
|
1575
|
-
$metadata: deserializeMetadata(output),
|
|
1576
|
-
});
|
|
1577
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1578
|
-
return contents;
|
|
1579
|
-
};
|
|
1580
|
-
exports.de_DeregisterOrganizationAdminAccountCommand = de_DeregisterOrganizationAdminAccountCommand;
|
|
1581
|
-
const de_DeregisterOrganizationAdminAccountCommandError = async (output, context) => {
|
|
1582
|
-
const parsedOutput = {
|
|
1583
|
-
...output,
|
|
1584
|
-
body: await parseErrorBody(output.body, context),
|
|
1585
|
-
};
|
|
1586
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1587
|
-
switch (errorCode) {
|
|
1588
|
-
case "AccessDeniedException":
|
|
1589
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1590
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "InternalServerException":
|
|
1592
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1593
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "ResourceNotFoundException":
|
|
1595
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1596
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "ValidationException":
|
|
1598
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1599
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1600
|
-
default:
|
|
1601
|
-
const parsedBody = parsedOutput.body;
|
|
1602
|
-
return throwDefaultError({
|
|
1603
|
-
output,
|
|
1604
|
-
parsedBody,
|
|
1605
|
-
errorCode,
|
|
1606
|
-
});
|
|
1607
|
-
}
|
|
1608
|
-
};
|
|
1609
|
-
const de_DisassociateAssessmentReportEvidenceFolderCommand = async (output, context) => {
|
|
1610
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1611
|
-
return de_DisassociateAssessmentReportEvidenceFolderCommandError(output, context);
|
|
1612
|
-
}
|
|
1613
|
-
const contents = (0, smithy_client_1.map)({
|
|
1614
|
-
$metadata: deserializeMetadata(output),
|
|
1615
|
-
});
|
|
1616
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1617
|
-
return contents;
|
|
1618
|
-
};
|
|
1619
|
-
exports.de_DisassociateAssessmentReportEvidenceFolderCommand = de_DisassociateAssessmentReportEvidenceFolderCommand;
|
|
1620
|
-
const de_DisassociateAssessmentReportEvidenceFolderCommandError = async (output, context) => {
|
|
1621
|
-
const parsedOutput = {
|
|
1622
|
-
...output,
|
|
1623
|
-
body: await parseErrorBody(output.body, context),
|
|
1624
|
-
};
|
|
1625
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1626
|
-
switch (errorCode) {
|
|
1627
|
-
case "AccessDeniedException":
|
|
1628
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1629
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1630
|
-
case "InternalServerException":
|
|
1631
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1632
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "ResourceNotFoundException":
|
|
1634
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1635
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1636
|
-
case "ValidationException":
|
|
1637
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1638
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1639
|
-
default:
|
|
1640
|
-
const parsedBody = parsedOutput.body;
|
|
1641
|
-
return throwDefaultError({
|
|
1642
|
-
output,
|
|
1643
|
-
parsedBody,
|
|
1644
|
-
errorCode,
|
|
1645
|
-
});
|
|
1646
|
-
}
|
|
1647
|
-
};
|
|
1648
|
-
const de_GetAccountStatusCommand = async (output, context) => {
|
|
1649
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1650
|
-
return de_GetAccountStatusCommandError(output, context);
|
|
1651
|
-
}
|
|
1652
|
-
const contents = (0, smithy_client_1.map)({
|
|
1653
|
-
$metadata: deserializeMetadata(output),
|
|
1654
|
-
});
|
|
1655
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1656
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1657
|
-
status: smithy_client_1.expectString,
|
|
1658
|
-
});
|
|
1659
|
-
Object.assign(contents, doc);
|
|
1660
|
-
return contents;
|
|
1661
|
-
};
|
|
1662
|
-
exports.de_GetAccountStatusCommand = de_GetAccountStatusCommand;
|
|
1663
|
-
const de_GetAccountStatusCommandError = async (output, context) => {
|
|
1664
|
-
const parsedOutput = {
|
|
1665
|
-
...output,
|
|
1666
|
-
body: await parseErrorBody(output.body, context),
|
|
1667
|
-
};
|
|
1668
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1669
|
-
switch (errorCode) {
|
|
1670
|
-
case "InternalServerException":
|
|
1671
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1672
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1673
|
-
default:
|
|
1674
|
-
const parsedBody = parsedOutput.body;
|
|
1675
|
-
return throwDefaultError({
|
|
1676
|
-
output,
|
|
1677
|
-
parsedBody,
|
|
1678
|
-
errorCode,
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
};
|
|
1682
|
-
const de_GetAssessmentCommand = async (output, context) => {
|
|
1683
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1684
|
-
return de_GetAssessmentCommandError(output, context);
|
|
1685
|
-
}
|
|
1686
|
-
const contents = (0, smithy_client_1.map)({
|
|
1687
|
-
$metadata: deserializeMetadata(output),
|
|
1688
|
-
});
|
|
1689
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1690
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1691
|
-
assessment: (_) => de_Assessment(_, context),
|
|
1692
|
-
userRole: smithy_client_1._json,
|
|
1693
|
-
});
|
|
1694
|
-
Object.assign(contents, doc);
|
|
1695
|
-
return contents;
|
|
1696
|
-
};
|
|
1697
|
-
exports.de_GetAssessmentCommand = de_GetAssessmentCommand;
|
|
1698
|
-
const de_GetAssessmentCommandError = async (output, context) => {
|
|
1699
|
-
const parsedOutput = {
|
|
1700
|
-
...output,
|
|
1701
|
-
body: await parseErrorBody(output.body, context),
|
|
1702
|
-
};
|
|
1703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1704
|
-
switch (errorCode) {
|
|
1705
|
-
case "AccessDeniedException":
|
|
1706
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1707
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1708
|
-
case "InternalServerException":
|
|
1709
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1710
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1711
|
-
case "ResourceNotFoundException":
|
|
1712
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1714
|
-
case "ValidationException":
|
|
1715
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1716
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1717
|
-
default:
|
|
1718
|
-
const parsedBody = parsedOutput.body;
|
|
1719
|
-
return throwDefaultError({
|
|
1720
|
-
output,
|
|
1721
|
-
parsedBody,
|
|
1722
|
-
errorCode,
|
|
1723
|
-
});
|
|
1724
|
-
}
|
|
1725
|
-
};
|
|
1726
|
-
const de_GetAssessmentFrameworkCommand = async (output, context) => {
|
|
1727
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1728
|
-
return de_GetAssessmentFrameworkCommandError(output, context);
|
|
1729
|
-
}
|
|
1730
|
-
const contents = (0, smithy_client_1.map)({
|
|
1731
|
-
$metadata: deserializeMetadata(output),
|
|
1732
|
-
});
|
|
1733
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1734
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1735
|
-
framework: (_) => de_Framework(_, context),
|
|
1736
|
-
});
|
|
1737
|
-
Object.assign(contents, doc);
|
|
1738
|
-
return contents;
|
|
1739
|
-
};
|
|
1740
|
-
exports.de_GetAssessmentFrameworkCommand = de_GetAssessmentFrameworkCommand;
|
|
1741
|
-
const de_GetAssessmentFrameworkCommandError = async (output, context) => {
|
|
1742
|
-
const parsedOutput = {
|
|
1743
|
-
...output,
|
|
1744
|
-
body: await parseErrorBody(output.body, context),
|
|
1745
|
-
};
|
|
1746
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1747
|
-
switch (errorCode) {
|
|
1748
|
-
case "AccessDeniedException":
|
|
1749
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1750
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1751
|
-
case "InternalServerException":
|
|
1752
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1753
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "ResourceNotFoundException":
|
|
1755
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1756
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "ValidationException":
|
|
1758
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1759
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1760
|
-
default:
|
|
1761
|
-
const parsedBody = parsedOutput.body;
|
|
1762
|
-
return throwDefaultError({
|
|
1763
|
-
output,
|
|
1764
|
-
parsedBody,
|
|
1765
|
-
errorCode,
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
};
|
|
1769
|
-
const de_GetAssessmentReportUrlCommand = async (output, context) => {
|
|
1770
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1771
|
-
return de_GetAssessmentReportUrlCommandError(output, context);
|
|
1772
|
-
}
|
|
1773
|
-
const contents = (0, smithy_client_1.map)({
|
|
1774
|
-
$metadata: deserializeMetadata(output),
|
|
1775
|
-
});
|
|
1776
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1777
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1778
|
-
preSignedUrl: smithy_client_1._json,
|
|
1779
|
-
});
|
|
1780
|
-
Object.assign(contents, doc);
|
|
1781
|
-
return contents;
|
|
1782
|
-
};
|
|
1783
|
-
exports.de_GetAssessmentReportUrlCommand = de_GetAssessmentReportUrlCommand;
|
|
1784
|
-
const de_GetAssessmentReportUrlCommandError = async (output, context) => {
|
|
1785
|
-
const parsedOutput = {
|
|
1786
|
-
...output,
|
|
1787
|
-
body: await parseErrorBody(output.body, context),
|
|
1788
|
-
};
|
|
1789
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1790
|
-
switch (errorCode) {
|
|
1791
|
-
case "AccessDeniedException":
|
|
1792
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1793
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1794
|
-
case "InternalServerException":
|
|
1795
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1796
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1797
|
-
case "ResourceNotFoundException":
|
|
1798
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1799
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1800
|
-
case "ValidationException":
|
|
1801
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1802
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1803
|
-
default:
|
|
1804
|
-
const parsedBody = parsedOutput.body;
|
|
1805
|
-
return throwDefaultError({
|
|
1806
|
-
output,
|
|
1807
|
-
parsedBody,
|
|
1808
|
-
errorCode,
|
|
1809
|
-
});
|
|
1810
|
-
}
|
|
1811
|
-
};
|
|
1812
|
-
const de_GetChangeLogsCommand = async (output, context) => {
|
|
1813
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1814
|
-
return de_GetChangeLogsCommandError(output, context);
|
|
1815
|
-
}
|
|
1816
|
-
const contents = (0, smithy_client_1.map)({
|
|
1817
|
-
$metadata: deserializeMetadata(output),
|
|
1818
|
-
});
|
|
1819
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1820
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1821
|
-
changeLogs: (_) => de_ChangeLogs(_, context),
|
|
1822
|
-
nextToken: smithy_client_1.expectString,
|
|
1823
|
-
});
|
|
1824
|
-
Object.assign(contents, doc);
|
|
1825
|
-
return contents;
|
|
1826
|
-
};
|
|
1827
|
-
exports.de_GetChangeLogsCommand = de_GetChangeLogsCommand;
|
|
1828
|
-
const de_GetChangeLogsCommandError = async (output, context) => {
|
|
1829
|
-
const parsedOutput = {
|
|
1830
|
-
...output,
|
|
1831
|
-
body: await parseErrorBody(output.body, context),
|
|
1832
|
-
};
|
|
1833
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1834
|
-
switch (errorCode) {
|
|
1835
|
-
case "AccessDeniedException":
|
|
1836
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1837
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "InternalServerException":
|
|
1839
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1840
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1841
|
-
case "ResourceNotFoundException":
|
|
1842
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1843
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1844
|
-
case "ValidationException":
|
|
1845
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1846
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1847
|
-
default:
|
|
1848
|
-
const parsedBody = parsedOutput.body;
|
|
1849
|
-
return throwDefaultError({
|
|
1850
|
-
output,
|
|
1851
|
-
parsedBody,
|
|
1852
|
-
errorCode,
|
|
1853
|
-
});
|
|
1854
|
-
}
|
|
1855
|
-
};
|
|
1856
|
-
const de_GetControlCommand = async (output, context) => {
|
|
1857
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1858
|
-
return de_GetControlCommandError(output, context);
|
|
1859
|
-
}
|
|
1860
|
-
const contents = (0, smithy_client_1.map)({
|
|
1861
|
-
$metadata: deserializeMetadata(output),
|
|
1862
|
-
});
|
|
1863
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1864
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1865
|
-
control: (_) => de_Control(_, context),
|
|
1866
|
-
});
|
|
1867
|
-
Object.assign(contents, doc);
|
|
1868
|
-
return contents;
|
|
1869
|
-
};
|
|
1870
|
-
exports.de_GetControlCommand = de_GetControlCommand;
|
|
1871
|
-
const de_GetControlCommandError = async (output, context) => {
|
|
1872
|
-
const parsedOutput = {
|
|
1873
|
-
...output,
|
|
1874
|
-
body: await parseErrorBody(output.body, context),
|
|
1875
|
-
};
|
|
1876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1877
|
-
switch (errorCode) {
|
|
1878
|
-
case "AccessDeniedException":
|
|
1879
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1880
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "InternalServerException":
|
|
1882
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1883
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "ResourceNotFoundException":
|
|
1885
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "ValidationException":
|
|
1888
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1889
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1890
|
-
default:
|
|
1891
|
-
const parsedBody = parsedOutput.body;
|
|
1892
|
-
return throwDefaultError({
|
|
1893
|
-
output,
|
|
1894
|
-
parsedBody,
|
|
1895
|
-
errorCode,
|
|
1896
|
-
});
|
|
1897
|
-
}
|
|
1898
|
-
};
|
|
1899
|
-
const de_GetDelegationsCommand = async (output, context) => {
|
|
1900
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1901
|
-
return de_GetDelegationsCommandError(output, context);
|
|
1902
|
-
}
|
|
1903
|
-
const contents = (0, smithy_client_1.map)({
|
|
1904
|
-
$metadata: deserializeMetadata(output),
|
|
1905
|
-
});
|
|
1906
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1907
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1908
|
-
delegations: (_) => de_DelegationMetadataList(_, context),
|
|
1909
|
-
nextToken: smithy_client_1.expectString,
|
|
1910
|
-
});
|
|
1911
|
-
Object.assign(contents, doc);
|
|
1912
|
-
return contents;
|
|
1913
|
-
};
|
|
1914
|
-
exports.de_GetDelegationsCommand = de_GetDelegationsCommand;
|
|
1915
|
-
const de_GetDelegationsCommandError = async (output, context) => {
|
|
1916
|
-
const parsedOutput = {
|
|
1917
|
-
...output,
|
|
1918
|
-
body: await parseErrorBody(output.body, context),
|
|
1919
|
-
};
|
|
1920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1921
|
-
switch (errorCode) {
|
|
1922
|
-
case "AccessDeniedException":
|
|
1923
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1924
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "InternalServerException":
|
|
1926
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1927
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "ValidationException":
|
|
1929
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1930
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1931
|
-
default:
|
|
1932
|
-
const parsedBody = parsedOutput.body;
|
|
1933
|
-
return throwDefaultError({
|
|
1934
|
-
output,
|
|
1935
|
-
parsedBody,
|
|
1936
|
-
errorCode,
|
|
1937
|
-
});
|
|
1938
|
-
}
|
|
1939
|
-
};
|
|
1940
|
-
const de_GetEvidenceCommand = async (output, context) => {
|
|
1941
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1942
|
-
return de_GetEvidenceCommandError(output, context);
|
|
1943
|
-
}
|
|
1944
|
-
const contents = (0, smithy_client_1.map)({
|
|
1945
|
-
$metadata: deserializeMetadata(output),
|
|
1946
|
-
});
|
|
1947
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1948
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1949
|
-
evidence: (_) => de_Evidence(_, context),
|
|
1950
|
-
});
|
|
1951
|
-
Object.assign(contents, doc);
|
|
1952
|
-
return contents;
|
|
1953
|
-
};
|
|
1954
|
-
exports.de_GetEvidenceCommand = de_GetEvidenceCommand;
|
|
1955
|
-
const de_GetEvidenceCommandError = async (output, context) => {
|
|
1956
|
-
const parsedOutput = {
|
|
1957
|
-
...output,
|
|
1958
|
-
body: await parseErrorBody(output.body, context),
|
|
1959
|
-
};
|
|
1960
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1961
|
-
switch (errorCode) {
|
|
1962
|
-
case "AccessDeniedException":
|
|
1963
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
1964
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1965
|
-
case "InternalServerException":
|
|
1966
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
1967
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1968
|
-
case "ResourceNotFoundException":
|
|
1969
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
1970
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1971
|
-
case "ValidationException":
|
|
1972
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
1973
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1974
|
-
default:
|
|
1975
|
-
const parsedBody = parsedOutput.body;
|
|
1976
|
-
return throwDefaultError({
|
|
1977
|
-
output,
|
|
1978
|
-
parsedBody,
|
|
1979
|
-
errorCode,
|
|
1980
|
-
});
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
|
-
const de_GetEvidenceByEvidenceFolderCommand = async (output, context) => {
|
|
1984
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1985
|
-
return de_GetEvidenceByEvidenceFolderCommandError(output, context);
|
|
1986
|
-
}
|
|
1987
|
-
const contents = (0, smithy_client_1.map)({
|
|
1988
|
-
$metadata: deserializeMetadata(output),
|
|
1989
|
-
});
|
|
1990
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1991
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1992
|
-
evidence: (_) => de_EvidenceList(_, context),
|
|
1993
|
-
nextToken: smithy_client_1.expectString,
|
|
1994
|
-
});
|
|
1995
|
-
Object.assign(contents, doc);
|
|
1996
|
-
return contents;
|
|
1997
|
-
};
|
|
1998
|
-
exports.de_GetEvidenceByEvidenceFolderCommand = de_GetEvidenceByEvidenceFolderCommand;
|
|
1999
|
-
const de_GetEvidenceByEvidenceFolderCommandError = async (output, context) => {
|
|
2000
|
-
const parsedOutput = {
|
|
2001
|
-
...output,
|
|
2002
|
-
body: await parseErrorBody(output.body, context),
|
|
2003
|
-
};
|
|
2004
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2005
|
-
switch (errorCode) {
|
|
2006
|
-
case "AccessDeniedException":
|
|
2007
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2008
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "InternalServerException":
|
|
2010
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2011
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "ResourceNotFoundException":
|
|
2013
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2014
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "ValidationException":
|
|
2016
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2017
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2018
|
-
default:
|
|
2019
|
-
const parsedBody = parsedOutput.body;
|
|
2020
|
-
return throwDefaultError({
|
|
2021
|
-
output,
|
|
2022
|
-
parsedBody,
|
|
2023
|
-
errorCode,
|
|
2024
|
-
});
|
|
2025
|
-
}
|
|
2026
|
-
};
|
|
2027
|
-
const de_GetEvidenceFileUploadUrlCommand = async (output, context) => {
|
|
2028
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2029
|
-
return de_GetEvidenceFileUploadUrlCommandError(output, context);
|
|
2030
|
-
}
|
|
2031
|
-
const contents = (0, smithy_client_1.map)({
|
|
2032
|
-
$metadata: deserializeMetadata(output),
|
|
2033
|
-
});
|
|
2034
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2035
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2036
|
-
evidenceFileName: smithy_client_1.expectString,
|
|
2037
|
-
uploadUrl: smithy_client_1.expectString,
|
|
2038
|
-
});
|
|
2039
|
-
Object.assign(contents, doc);
|
|
2040
|
-
return contents;
|
|
2041
|
-
};
|
|
2042
|
-
exports.de_GetEvidenceFileUploadUrlCommand = de_GetEvidenceFileUploadUrlCommand;
|
|
2043
|
-
const de_GetEvidenceFileUploadUrlCommandError = async (output, context) => {
|
|
2044
|
-
const parsedOutput = {
|
|
2045
|
-
...output,
|
|
2046
|
-
body: await parseErrorBody(output.body, context),
|
|
2047
|
-
};
|
|
2048
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2049
|
-
switch (errorCode) {
|
|
2050
|
-
case "AccessDeniedException":
|
|
2051
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2052
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "InternalServerException":
|
|
2054
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2055
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "ThrottlingException":
|
|
2057
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
2058
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "ValidationException":
|
|
2060
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2061
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2062
|
-
default:
|
|
2063
|
-
const parsedBody = parsedOutput.body;
|
|
2064
|
-
return throwDefaultError({
|
|
2065
|
-
output,
|
|
2066
|
-
parsedBody,
|
|
2067
|
-
errorCode,
|
|
2068
|
-
});
|
|
2069
|
-
}
|
|
2070
|
-
};
|
|
2071
|
-
const de_GetEvidenceFolderCommand = async (output, context) => {
|
|
2072
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2073
|
-
return de_GetEvidenceFolderCommandError(output, context);
|
|
2074
|
-
}
|
|
2075
|
-
const contents = (0, smithy_client_1.map)({
|
|
2076
|
-
$metadata: deserializeMetadata(output),
|
|
2077
|
-
});
|
|
2078
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2079
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2080
|
-
evidenceFolder: (_) => de_AssessmentEvidenceFolder(_, context),
|
|
2081
|
-
});
|
|
2082
|
-
Object.assign(contents, doc);
|
|
2083
|
-
return contents;
|
|
2084
|
-
};
|
|
2085
|
-
exports.de_GetEvidenceFolderCommand = de_GetEvidenceFolderCommand;
|
|
2086
|
-
const de_GetEvidenceFolderCommandError = async (output, context) => {
|
|
2087
|
-
const parsedOutput = {
|
|
2088
|
-
...output,
|
|
2089
|
-
body: await parseErrorBody(output.body, context),
|
|
2090
|
-
};
|
|
2091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2092
|
-
switch (errorCode) {
|
|
2093
|
-
case "AccessDeniedException":
|
|
2094
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2095
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "InternalServerException":
|
|
2097
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2098
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "ResourceNotFoundException":
|
|
2100
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2101
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "ValidationException":
|
|
2103
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2104
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2105
|
-
default:
|
|
2106
|
-
const parsedBody = parsedOutput.body;
|
|
2107
|
-
return throwDefaultError({
|
|
2108
|
-
output,
|
|
2109
|
-
parsedBody,
|
|
2110
|
-
errorCode,
|
|
2111
|
-
});
|
|
2112
|
-
}
|
|
2113
|
-
};
|
|
2114
|
-
const de_GetEvidenceFoldersByAssessmentCommand = async (output, context) => {
|
|
2115
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2116
|
-
return de_GetEvidenceFoldersByAssessmentCommandError(output, context);
|
|
2117
|
-
}
|
|
2118
|
-
const contents = (0, smithy_client_1.map)({
|
|
2119
|
-
$metadata: deserializeMetadata(output),
|
|
2120
|
-
});
|
|
2121
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2122
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2123
|
-
evidenceFolders: (_) => de_AssessmentEvidenceFolders(_, context),
|
|
2124
|
-
nextToken: smithy_client_1.expectString,
|
|
2125
|
-
});
|
|
2126
|
-
Object.assign(contents, doc);
|
|
2127
|
-
return contents;
|
|
2128
|
-
};
|
|
2129
|
-
exports.de_GetEvidenceFoldersByAssessmentCommand = de_GetEvidenceFoldersByAssessmentCommand;
|
|
2130
|
-
const de_GetEvidenceFoldersByAssessmentCommandError = async (output, context) => {
|
|
2131
|
-
const parsedOutput = {
|
|
2132
|
-
...output,
|
|
2133
|
-
body: await parseErrorBody(output.body, context),
|
|
2134
|
-
};
|
|
2135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2136
|
-
switch (errorCode) {
|
|
2137
|
-
case "AccessDeniedException":
|
|
2138
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2139
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2140
|
-
case "InternalServerException":
|
|
2141
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2142
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "ResourceNotFoundException":
|
|
2144
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2145
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2146
|
-
case "ValidationException":
|
|
2147
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2148
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2149
|
-
default:
|
|
2150
|
-
const parsedBody = parsedOutput.body;
|
|
2151
|
-
return throwDefaultError({
|
|
2152
|
-
output,
|
|
2153
|
-
parsedBody,
|
|
2154
|
-
errorCode,
|
|
2155
|
-
});
|
|
2156
|
-
}
|
|
2157
|
-
};
|
|
2158
|
-
const de_GetEvidenceFoldersByAssessmentControlCommand = async (output, context) => {
|
|
2159
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2160
|
-
return de_GetEvidenceFoldersByAssessmentControlCommandError(output, context);
|
|
2161
|
-
}
|
|
2162
|
-
const contents = (0, smithy_client_1.map)({
|
|
2163
|
-
$metadata: deserializeMetadata(output),
|
|
2164
|
-
});
|
|
2165
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2166
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2167
|
-
evidenceFolders: (_) => de_AssessmentEvidenceFolders(_, context),
|
|
2168
|
-
nextToken: smithy_client_1.expectString,
|
|
2169
|
-
});
|
|
2170
|
-
Object.assign(contents, doc);
|
|
2171
|
-
return contents;
|
|
2172
|
-
};
|
|
2173
|
-
exports.de_GetEvidenceFoldersByAssessmentControlCommand = de_GetEvidenceFoldersByAssessmentControlCommand;
|
|
2174
|
-
const de_GetEvidenceFoldersByAssessmentControlCommandError = async (output, context) => {
|
|
2175
|
-
const parsedOutput = {
|
|
2176
|
-
...output,
|
|
2177
|
-
body: await parseErrorBody(output.body, context),
|
|
2178
|
-
};
|
|
2179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2180
|
-
switch (errorCode) {
|
|
2181
|
-
case "AccessDeniedException":
|
|
2182
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2183
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2184
|
-
case "InternalServerException":
|
|
2185
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2186
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2187
|
-
case "ResourceNotFoundException":
|
|
2188
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2189
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2190
|
-
case "ValidationException":
|
|
2191
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2192
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2193
|
-
default:
|
|
2194
|
-
const parsedBody = parsedOutput.body;
|
|
2195
|
-
return throwDefaultError({
|
|
2196
|
-
output,
|
|
2197
|
-
parsedBody,
|
|
2198
|
-
errorCode,
|
|
2199
|
-
});
|
|
2200
|
-
}
|
|
2201
|
-
};
|
|
2202
|
-
const de_GetInsightsCommand = async (output, context) => {
|
|
2203
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2204
|
-
return de_GetInsightsCommandError(output, context);
|
|
2205
|
-
}
|
|
2206
|
-
const contents = (0, smithy_client_1.map)({
|
|
2207
|
-
$metadata: deserializeMetadata(output),
|
|
2208
|
-
});
|
|
2209
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2210
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2211
|
-
insights: (_) => de_Insights(_, context),
|
|
2212
|
-
});
|
|
2213
|
-
Object.assign(contents, doc);
|
|
2214
|
-
return contents;
|
|
2215
|
-
};
|
|
2216
|
-
exports.de_GetInsightsCommand = de_GetInsightsCommand;
|
|
2217
|
-
const de_GetInsightsCommandError = async (output, context) => {
|
|
2218
|
-
const parsedOutput = {
|
|
2219
|
-
...output,
|
|
2220
|
-
body: await parseErrorBody(output.body, context),
|
|
2221
|
-
};
|
|
2222
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2223
|
-
switch (errorCode) {
|
|
2224
|
-
case "AccessDeniedException":
|
|
2225
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2226
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "InternalServerException":
|
|
2228
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2229
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2230
|
-
default:
|
|
2231
|
-
const parsedBody = parsedOutput.body;
|
|
2232
|
-
return throwDefaultError({
|
|
2233
|
-
output,
|
|
2234
|
-
parsedBody,
|
|
2235
|
-
errorCode,
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
};
|
|
2239
|
-
const de_GetInsightsByAssessmentCommand = async (output, context) => {
|
|
2240
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2241
|
-
return de_GetInsightsByAssessmentCommandError(output, context);
|
|
2242
|
-
}
|
|
2243
|
-
const contents = (0, smithy_client_1.map)({
|
|
2244
|
-
$metadata: deserializeMetadata(output),
|
|
2245
|
-
});
|
|
2246
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2247
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2248
|
-
insights: (_) => de_InsightsByAssessment(_, context),
|
|
2249
|
-
});
|
|
2250
|
-
Object.assign(contents, doc);
|
|
2251
|
-
return contents;
|
|
2252
|
-
};
|
|
2253
|
-
exports.de_GetInsightsByAssessmentCommand = de_GetInsightsByAssessmentCommand;
|
|
2254
|
-
const de_GetInsightsByAssessmentCommandError = async (output, context) => {
|
|
2255
|
-
const parsedOutput = {
|
|
2256
|
-
...output,
|
|
2257
|
-
body: await parseErrorBody(output.body, context),
|
|
2258
|
-
};
|
|
2259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
|
-
switch (errorCode) {
|
|
2261
|
-
case "AccessDeniedException":
|
|
2262
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "InternalServerException":
|
|
2265
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2266
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ResourceNotFoundException":
|
|
2268
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2269
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ValidationException":
|
|
2271
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2272
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2273
|
-
default:
|
|
2274
|
-
const parsedBody = parsedOutput.body;
|
|
2275
|
-
return throwDefaultError({
|
|
2276
|
-
output,
|
|
2277
|
-
parsedBody,
|
|
2278
|
-
errorCode,
|
|
2279
|
-
});
|
|
2280
|
-
}
|
|
2281
|
-
};
|
|
2282
|
-
const de_GetOrganizationAdminAccountCommand = async (output, context) => {
|
|
2283
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2284
|
-
return de_GetOrganizationAdminAccountCommandError(output, context);
|
|
2285
|
-
}
|
|
2286
|
-
const contents = (0, smithy_client_1.map)({
|
|
2287
|
-
$metadata: deserializeMetadata(output),
|
|
2288
|
-
});
|
|
2289
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2290
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2291
|
-
adminAccountId: smithy_client_1.expectString,
|
|
2292
|
-
organizationId: smithy_client_1.expectString,
|
|
2293
|
-
});
|
|
2294
|
-
Object.assign(contents, doc);
|
|
2295
|
-
return contents;
|
|
2296
|
-
};
|
|
2297
|
-
exports.de_GetOrganizationAdminAccountCommand = de_GetOrganizationAdminAccountCommand;
|
|
2298
|
-
const de_GetOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2299
|
-
const parsedOutput = {
|
|
2300
|
-
...output,
|
|
2301
|
-
body: await parseErrorBody(output.body, context),
|
|
2302
|
-
};
|
|
2303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2304
|
-
switch (errorCode) {
|
|
2305
|
-
case "AccessDeniedException":
|
|
2306
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2307
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2308
|
-
case "InternalServerException":
|
|
2309
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2310
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2311
|
-
case "ResourceNotFoundException":
|
|
2312
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2313
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2314
|
-
case "ValidationException":
|
|
2315
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2316
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2317
|
-
default:
|
|
2318
|
-
const parsedBody = parsedOutput.body;
|
|
2319
|
-
return throwDefaultError({
|
|
2320
|
-
output,
|
|
2321
|
-
parsedBody,
|
|
2322
|
-
errorCode,
|
|
2323
|
-
});
|
|
2324
|
-
}
|
|
2325
|
-
};
|
|
2326
|
-
const de_GetServicesInScopeCommand = async (output, context) => {
|
|
2327
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2328
|
-
return de_GetServicesInScopeCommandError(output, context);
|
|
2329
|
-
}
|
|
2330
|
-
const contents = (0, smithy_client_1.map)({
|
|
2331
|
-
$metadata: deserializeMetadata(output),
|
|
2332
|
-
});
|
|
2333
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2334
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2335
|
-
serviceMetadata: smithy_client_1._json,
|
|
2336
|
-
});
|
|
2337
|
-
Object.assign(contents, doc);
|
|
2338
|
-
return contents;
|
|
2339
|
-
};
|
|
2340
|
-
exports.de_GetServicesInScopeCommand = de_GetServicesInScopeCommand;
|
|
2341
|
-
const de_GetServicesInScopeCommandError = async (output, context) => {
|
|
2342
|
-
const parsedOutput = {
|
|
2343
|
-
...output,
|
|
2344
|
-
body: await parseErrorBody(output.body, context),
|
|
2345
|
-
};
|
|
2346
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2347
|
-
switch (errorCode) {
|
|
2348
|
-
case "AccessDeniedException":
|
|
2349
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2350
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2351
|
-
case "InternalServerException":
|
|
2352
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2353
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "ValidationException":
|
|
2355
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2356
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2357
|
-
default:
|
|
2358
|
-
const parsedBody = parsedOutput.body;
|
|
2359
|
-
return throwDefaultError({
|
|
2360
|
-
output,
|
|
2361
|
-
parsedBody,
|
|
2362
|
-
errorCode,
|
|
2363
|
-
});
|
|
2364
|
-
}
|
|
2365
|
-
};
|
|
2366
|
-
const de_GetSettingsCommand = async (output, context) => {
|
|
2367
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2368
|
-
return de_GetSettingsCommandError(output, context);
|
|
2369
|
-
}
|
|
2370
|
-
const contents = (0, smithy_client_1.map)({
|
|
2371
|
-
$metadata: deserializeMetadata(output),
|
|
2372
|
-
});
|
|
2373
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2374
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2375
|
-
settings: smithy_client_1._json,
|
|
2376
|
-
});
|
|
2377
|
-
Object.assign(contents, doc);
|
|
2378
|
-
return contents;
|
|
2379
|
-
};
|
|
2380
|
-
exports.de_GetSettingsCommand = de_GetSettingsCommand;
|
|
2381
|
-
const de_GetSettingsCommandError = async (output, context) => {
|
|
2382
|
-
const parsedOutput = {
|
|
2383
|
-
...output,
|
|
2384
|
-
body: await parseErrorBody(output.body, context),
|
|
2385
|
-
};
|
|
2386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2387
|
-
switch (errorCode) {
|
|
2388
|
-
case "AccessDeniedException":
|
|
2389
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2390
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2391
|
-
case "InternalServerException":
|
|
2392
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2393
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2394
|
-
default:
|
|
2395
|
-
const parsedBody = parsedOutput.body;
|
|
2396
|
-
return throwDefaultError({
|
|
2397
|
-
output,
|
|
2398
|
-
parsedBody,
|
|
2399
|
-
errorCode,
|
|
2400
|
-
});
|
|
2401
|
-
}
|
|
2402
|
-
};
|
|
2403
|
-
const de_ListAssessmentControlInsightsByControlDomainCommand = async (output, context) => {
|
|
2404
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2405
|
-
return de_ListAssessmentControlInsightsByControlDomainCommandError(output, context);
|
|
2406
|
-
}
|
|
2407
|
-
const contents = (0, smithy_client_1.map)({
|
|
2408
|
-
$metadata: deserializeMetadata(output),
|
|
2409
|
-
});
|
|
2410
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2411
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2412
|
-
controlInsightsByAssessment: (_) => de_ControlInsightsMetadataByAssessment(_, context),
|
|
2413
|
-
nextToken: smithy_client_1.expectString,
|
|
2414
|
-
});
|
|
2415
|
-
Object.assign(contents, doc);
|
|
2416
|
-
return contents;
|
|
2417
|
-
};
|
|
2418
|
-
exports.de_ListAssessmentControlInsightsByControlDomainCommand = de_ListAssessmentControlInsightsByControlDomainCommand;
|
|
2419
|
-
const de_ListAssessmentControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
2420
|
-
const parsedOutput = {
|
|
2421
|
-
...output,
|
|
2422
|
-
body: await parseErrorBody(output.body, context),
|
|
2423
|
-
};
|
|
2424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2425
|
-
switch (errorCode) {
|
|
2426
|
-
case "AccessDeniedException":
|
|
2427
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2428
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "InternalServerException":
|
|
2430
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2431
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2432
|
-
case "ResourceNotFoundException":
|
|
2433
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2434
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "ValidationException":
|
|
2436
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2437
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2438
|
-
default:
|
|
2439
|
-
const parsedBody = parsedOutput.body;
|
|
2440
|
-
return throwDefaultError({
|
|
2441
|
-
output,
|
|
2442
|
-
parsedBody,
|
|
2443
|
-
errorCode,
|
|
2444
|
-
});
|
|
2445
|
-
}
|
|
2446
|
-
};
|
|
2447
|
-
const de_ListAssessmentFrameworksCommand = async (output, context) => {
|
|
2448
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2449
|
-
return de_ListAssessmentFrameworksCommandError(output, context);
|
|
2450
|
-
}
|
|
2451
|
-
const contents = (0, smithy_client_1.map)({
|
|
2452
|
-
$metadata: deserializeMetadata(output),
|
|
2453
|
-
});
|
|
2454
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2455
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2456
|
-
frameworkMetadataList: (_) => de_FrameworkMetadataList(_, context),
|
|
2457
|
-
nextToken: smithy_client_1.expectString,
|
|
2458
|
-
});
|
|
2459
|
-
Object.assign(contents, doc);
|
|
2460
|
-
return contents;
|
|
2461
|
-
};
|
|
2462
|
-
exports.de_ListAssessmentFrameworksCommand = de_ListAssessmentFrameworksCommand;
|
|
2463
|
-
const de_ListAssessmentFrameworksCommandError = async (output, context) => {
|
|
2464
|
-
const parsedOutput = {
|
|
2465
|
-
...output,
|
|
2466
|
-
body: await parseErrorBody(output.body, context),
|
|
2467
|
-
};
|
|
2468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2469
|
-
switch (errorCode) {
|
|
2470
|
-
case "AccessDeniedException":
|
|
2471
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2472
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "InternalServerException":
|
|
2474
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2475
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "ValidationException":
|
|
2477
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2479
|
-
default:
|
|
2480
|
-
const parsedBody = parsedOutput.body;
|
|
2481
|
-
return throwDefaultError({
|
|
2482
|
-
output,
|
|
2483
|
-
parsedBody,
|
|
2484
|
-
errorCode,
|
|
2485
|
-
});
|
|
2486
|
-
}
|
|
2487
|
-
};
|
|
2488
|
-
const de_ListAssessmentFrameworkShareRequestsCommand = async (output, context) => {
|
|
2489
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2490
|
-
return de_ListAssessmentFrameworkShareRequestsCommandError(output, context);
|
|
2491
|
-
}
|
|
2492
|
-
const contents = (0, smithy_client_1.map)({
|
|
2493
|
-
$metadata: deserializeMetadata(output),
|
|
2494
|
-
});
|
|
2495
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2496
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2497
|
-
assessmentFrameworkShareRequests: (_) => de_AssessmentFrameworkShareRequestList(_, context),
|
|
2498
|
-
nextToken: smithy_client_1.expectString,
|
|
2499
|
-
});
|
|
2500
|
-
Object.assign(contents, doc);
|
|
2501
|
-
return contents;
|
|
2502
|
-
};
|
|
2503
|
-
exports.de_ListAssessmentFrameworkShareRequestsCommand = de_ListAssessmentFrameworkShareRequestsCommand;
|
|
2504
|
-
const de_ListAssessmentFrameworkShareRequestsCommandError = async (output, context) => {
|
|
2505
|
-
const parsedOutput = {
|
|
2506
|
-
...output,
|
|
2507
|
-
body: await parseErrorBody(output.body, context),
|
|
2508
|
-
};
|
|
2509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2510
|
-
switch (errorCode) {
|
|
2511
|
-
case "AccessDeniedException":
|
|
2512
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2513
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2514
|
-
case "InternalServerException":
|
|
2515
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2516
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2517
|
-
case "ValidationException":
|
|
2518
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2519
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2520
|
-
default:
|
|
2521
|
-
const parsedBody = parsedOutput.body;
|
|
2522
|
-
return throwDefaultError({
|
|
2523
|
-
output,
|
|
2524
|
-
parsedBody,
|
|
2525
|
-
errorCode,
|
|
2526
|
-
});
|
|
2527
|
-
}
|
|
2528
|
-
};
|
|
2529
|
-
const de_ListAssessmentReportsCommand = async (output, context) => {
|
|
2530
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2531
|
-
return de_ListAssessmentReportsCommandError(output, context);
|
|
2532
|
-
}
|
|
2533
|
-
const contents = (0, smithy_client_1.map)({
|
|
2534
|
-
$metadata: deserializeMetadata(output),
|
|
2535
|
-
});
|
|
2536
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2537
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2538
|
-
assessmentReports: (_) => de_AssessmentReportsMetadata(_, context),
|
|
2539
|
-
nextToken: smithy_client_1.expectString,
|
|
2540
|
-
});
|
|
2541
|
-
Object.assign(contents, doc);
|
|
2542
|
-
return contents;
|
|
2543
|
-
};
|
|
2544
|
-
exports.de_ListAssessmentReportsCommand = de_ListAssessmentReportsCommand;
|
|
2545
|
-
const de_ListAssessmentReportsCommandError = async (output, context) => {
|
|
2546
|
-
const parsedOutput = {
|
|
2547
|
-
...output,
|
|
2548
|
-
body: await parseErrorBody(output.body, context),
|
|
2549
|
-
};
|
|
2550
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2551
|
-
switch (errorCode) {
|
|
2552
|
-
case "AccessDeniedException":
|
|
2553
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2554
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2555
|
-
case "InternalServerException":
|
|
2556
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2557
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2558
|
-
case "ValidationException":
|
|
2559
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2560
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2561
|
-
default:
|
|
2562
|
-
const parsedBody = parsedOutput.body;
|
|
2563
|
-
return throwDefaultError({
|
|
2564
|
-
output,
|
|
2565
|
-
parsedBody,
|
|
2566
|
-
errorCode,
|
|
2567
|
-
});
|
|
2568
|
-
}
|
|
2569
|
-
};
|
|
2570
|
-
const de_ListAssessmentsCommand = async (output, context) => {
|
|
2571
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2572
|
-
return de_ListAssessmentsCommandError(output, context);
|
|
2573
|
-
}
|
|
2574
|
-
const contents = (0, smithy_client_1.map)({
|
|
2575
|
-
$metadata: deserializeMetadata(output),
|
|
2576
|
-
});
|
|
2577
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2578
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2579
|
-
assessmentMetadata: (_) => de_ListAssessmentMetadata(_, context),
|
|
2580
|
-
nextToken: smithy_client_1.expectString,
|
|
2581
|
-
});
|
|
2582
|
-
Object.assign(contents, doc);
|
|
2583
|
-
return contents;
|
|
2584
|
-
};
|
|
2585
|
-
exports.de_ListAssessmentsCommand = de_ListAssessmentsCommand;
|
|
2586
|
-
const de_ListAssessmentsCommandError = async (output, context) => {
|
|
2587
|
-
const parsedOutput = {
|
|
2588
|
-
...output,
|
|
2589
|
-
body: await parseErrorBody(output.body, context),
|
|
2590
|
-
};
|
|
2591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
|
-
switch (errorCode) {
|
|
2593
|
-
case "AccessDeniedException":
|
|
2594
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2595
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "InternalServerException":
|
|
2597
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2598
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2599
|
-
case "ValidationException":
|
|
2600
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2601
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2602
|
-
default:
|
|
2603
|
-
const parsedBody = parsedOutput.body;
|
|
2604
|
-
return throwDefaultError({
|
|
2605
|
-
output,
|
|
2606
|
-
parsedBody,
|
|
2607
|
-
errorCode,
|
|
2608
|
-
});
|
|
2609
|
-
}
|
|
2610
|
-
};
|
|
2611
|
-
const de_ListControlDomainInsightsCommand = async (output, context) => {
|
|
2612
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2613
|
-
return de_ListControlDomainInsightsCommandError(output, context);
|
|
2614
|
-
}
|
|
2615
|
-
const contents = (0, smithy_client_1.map)({
|
|
2616
|
-
$metadata: deserializeMetadata(output),
|
|
2617
|
-
});
|
|
2618
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2619
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2620
|
-
controlDomainInsights: (_) => de_ControlDomainInsightsList(_, context),
|
|
2621
|
-
nextToken: smithy_client_1.expectString,
|
|
2622
|
-
});
|
|
2623
|
-
Object.assign(contents, doc);
|
|
2624
|
-
return contents;
|
|
2625
|
-
};
|
|
2626
|
-
exports.de_ListControlDomainInsightsCommand = de_ListControlDomainInsightsCommand;
|
|
2627
|
-
const de_ListControlDomainInsightsCommandError = async (output, context) => {
|
|
2628
|
-
const parsedOutput = {
|
|
2629
|
-
...output,
|
|
2630
|
-
body: await parseErrorBody(output.body, context),
|
|
2631
|
-
};
|
|
2632
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2633
|
-
switch (errorCode) {
|
|
2634
|
-
case "AccessDeniedException":
|
|
2635
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2636
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2637
|
-
case "InternalServerException":
|
|
2638
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2639
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2640
|
-
case "ResourceNotFoundException":
|
|
2641
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2642
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2643
|
-
case "ValidationException":
|
|
2644
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2645
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2646
|
-
default:
|
|
2647
|
-
const parsedBody = parsedOutput.body;
|
|
2648
|
-
return throwDefaultError({
|
|
2649
|
-
output,
|
|
2650
|
-
parsedBody,
|
|
2651
|
-
errorCode,
|
|
2652
|
-
});
|
|
2653
|
-
}
|
|
2654
|
-
};
|
|
2655
|
-
const de_ListControlDomainInsightsByAssessmentCommand = async (output, context) => {
|
|
2656
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2657
|
-
return de_ListControlDomainInsightsByAssessmentCommandError(output, context);
|
|
2658
|
-
}
|
|
2659
|
-
const contents = (0, smithy_client_1.map)({
|
|
2660
|
-
$metadata: deserializeMetadata(output),
|
|
2661
|
-
});
|
|
2662
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2663
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2664
|
-
controlDomainInsights: (_) => de_ControlDomainInsightsList(_, context),
|
|
2665
|
-
nextToken: smithy_client_1.expectString,
|
|
2666
|
-
});
|
|
2667
|
-
Object.assign(contents, doc);
|
|
2668
|
-
return contents;
|
|
2669
|
-
};
|
|
2670
|
-
exports.de_ListControlDomainInsightsByAssessmentCommand = de_ListControlDomainInsightsByAssessmentCommand;
|
|
2671
|
-
const de_ListControlDomainInsightsByAssessmentCommandError = async (output, context) => {
|
|
2672
|
-
const parsedOutput = {
|
|
2673
|
-
...output,
|
|
2674
|
-
body: await parseErrorBody(output.body, context),
|
|
2675
|
-
};
|
|
2676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2677
|
-
switch (errorCode) {
|
|
2678
|
-
case "AccessDeniedException":
|
|
2679
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2680
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "InternalServerException":
|
|
2682
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2683
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2684
|
-
case "ResourceNotFoundException":
|
|
2685
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2686
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2687
|
-
case "ValidationException":
|
|
2688
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2689
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2690
|
-
default:
|
|
2691
|
-
const parsedBody = parsedOutput.body;
|
|
2692
|
-
return throwDefaultError({
|
|
2693
|
-
output,
|
|
2694
|
-
parsedBody,
|
|
2695
|
-
errorCode,
|
|
2696
|
-
});
|
|
2697
|
-
}
|
|
2698
|
-
};
|
|
2699
|
-
const de_ListControlInsightsByControlDomainCommand = async (output, context) => {
|
|
2700
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2701
|
-
return de_ListControlInsightsByControlDomainCommandError(output, context);
|
|
2702
|
-
}
|
|
2703
|
-
const contents = (0, smithy_client_1.map)({
|
|
2704
|
-
$metadata: deserializeMetadata(output),
|
|
2705
|
-
});
|
|
2706
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2707
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2708
|
-
controlInsightsMetadata: (_) => de_ControlInsightsMetadata(_, context),
|
|
2709
|
-
nextToken: smithy_client_1.expectString,
|
|
2710
|
-
});
|
|
2711
|
-
Object.assign(contents, doc);
|
|
2712
|
-
return contents;
|
|
2713
|
-
};
|
|
2714
|
-
exports.de_ListControlInsightsByControlDomainCommand = de_ListControlInsightsByControlDomainCommand;
|
|
2715
|
-
const de_ListControlInsightsByControlDomainCommandError = async (output, context) => {
|
|
2716
|
-
const parsedOutput = {
|
|
2717
|
-
...output,
|
|
2718
|
-
body: await parseErrorBody(output.body, context),
|
|
2719
|
-
};
|
|
2720
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
|
-
switch (errorCode) {
|
|
2722
|
-
case "AccessDeniedException":
|
|
2723
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2724
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2725
|
-
case "InternalServerException":
|
|
2726
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2727
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2728
|
-
case "ResourceNotFoundException":
|
|
2729
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2730
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2731
|
-
case "ValidationException":
|
|
2732
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2733
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2734
|
-
default:
|
|
2735
|
-
const parsedBody = parsedOutput.body;
|
|
2736
|
-
return throwDefaultError({
|
|
2737
|
-
output,
|
|
2738
|
-
parsedBody,
|
|
2739
|
-
errorCode,
|
|
2740
|
-
});
|
|
2741
|
-
}
|
|
2742
|
-
};
|
|
2743
|
-
const de_ListControlsCommand = async (output, context) => {
|
|
2744
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2745
|
-
return de_ListControlsCommandError(output, context);
|
|
2746
|
-
}
|
|
2747
|
-
const contents = (0, smithy_client_1.map)({
|
|
2748
|
-
$metadata: deserializeMetadata(output),
|
|
2749
|
-
});
|
|
2750
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2751
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2752
|
-
controlMetadataList: (_) => de_ControlMetadataList(_, context),
|
|
2753
|
-
nextToken: smithy_client_1.expectString,
|
|
2754
|
-
});
|
|
2755
|
-
Object.assign(contents, doc);
|
|
2756
|
-
return contents;
|
|
2757
|
-
};
|
|
2758
|
-
exports.de_ListControlsCommand = de_ListControlsCommand;
|
|
2759
|
-
const de_ListControlsCommandError = async (output, context) => {
|
|
2760
|
-
const parsedOutput = {
|
|
2761
|
-
...output,
|
|
2762
|
-
body: await parseErrorBody(output.body, context),
|
|
2763
|
-
};
|
|
2764
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2765
|
-
switch (errorCode) {
|
|
2766
|
-
case "AccessDeniedException":
|
|
2767
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2768
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2769
|
-
case "InternalServerException":
|
|
2770
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2771
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2772
|
-
case "ValidationException":
|
|
2773
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2774
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2775
|
-
default:
|
|
2776
|
-
const parsedBody = parsedOutput.body;
|
|
2777
|
-
return throwDefaultError({
|
|
2778
|
-
output,
|
|
2779
|
-
parsedBody,
|
|
2780
|
-
errorCode,
|
|
2781
|
-
});
|
|
2782
|
-
}
|
|
2783
|
-
};
|
|
2784
|
-
const de_ListKeywordsForDataSourceCommand = async (output, context) => {
|
|
2785
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2786
|
-
return de_ListKeywordsForDataSourceCommandError(output, context);
|
|
2787
|
-
}
|
|
2788
|
-
const contents = (0, smithy_client_1.map)({
|
|
2789
|
-
$metadata: deserializeMetadata(output),
|
|
2790
|
-
});
|
|
2791
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2792
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2793
|
-
keywords: smithy_client_1._json,
|
|
2794
|
-
nextToken: smithy_client_1.expectString,
|
|
2795
|
-
});
|
|
2796
|
-
Object.assign(contents, doc);
|
|
2797
|
-
return contents;
|
|
2798
|
-
};
|
|
2799
|
-
exports.de_ListKeywordsForDataSourceCommand = de_ListKeywordsForDataSourceCommand;
|
|
2800
|
-
const de_ListKeywordsForDataSourceCommandError = async (output, context) => {
|
|
2801
|
-
const parsedOutput = {
|
|
2802
|
-
...output,
|
|
2803
|
-
body: await parseErrorBody(output.body, context),
|
|
2804
|
-
};
|
|
2805
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2806
|
-
switch (errorCode) {
|
|
2807
|
-
case "AccessDeniedException":
|
|
2808
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2809
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "InternalServerException":
|
|
2811
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2812
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "ValidationException":
|
|
2814
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2815
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2816
|
-
default:
|
|
2817
|
-
const parsedBody = parsedOutput.body;
|
|
2818
|
-
return throwDefaultError({
|
|
2819
|
-
output,
|
|
2820
|
-
parsedBody,
|
|
2821
|
-
errorCode,
|
|
2822
|
-
});
|
|
2823
|
-
}
|
|
2824
|
-
};
|
|
2825
|
-
const de_ListNotificationsCommand = async (output, context) => {
|
|
2826
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2827
|
-
return de_ListNotificationsCommandError(output, context);
|
|
2828
|
-
}
|
|
2829
|
-
const contents = (0, smithy_client_1.map)({
|
|
2830
|
-
$metadata: deserializeMetadata(output),
|
|
2831
|
-
});
|
|
2832
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2833
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2834
|
-
nextToken: smithy_client_1.expectString,
|
|
2835
|
-
notifications: (_) => de_Notifications(_, context),
|
|
2836
|
-
});
|
|
2837
|
-
Object.assign(contents, doc);
|
|
2838
|
-
return contents;
|
|
2839
|
-
};
|
|
2840
|
-
exports.de_ListNotificationsCommand = de_ListNotificationsCommand;
|
|
2841
|
-
const de_ListNotificationsCommandError = async (output, context) => {
|
|
2842
|
-
const parsedOutput = {
|
|
2843
|
-
...output,
|
|
2844
|
-
body: await parseErrorBody(output.body, context),
|
|
2845
|
-
};
|
|
2846
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2847
|
-
switch (errorCode) {
|
|
2848
|
-
case "AccessDeniedException":
|
|
2849
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2850
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2851
|
-
case "InternalServerException":
|
|
2852
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2853
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2854
|
-
case "ValidationException":
|
|
2855
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2856
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2857
|
-
default:
|
|
2858
|
-
const parsedBody = parsedOutput.body;
|
|
2859
|
-
return throwDefaultError({
|
|
2860
|
-
output,
|
|
2861
|
-
parsedBody,
|
|
2862
|
-
errorCode,
|
|
2863
|
-
});
|
|
2864
|
-
}
|
|
2865
|
-
};
|
|
2866
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2867
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2868
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2869
|
-
}
|
|
2870
|
-
const contents = (0, smithy_client_1.map)({
|
|
2871
|
-
$metadata: deserializeMetadata(output),
|
|
2872
|
-
});
|
|
2873
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2874
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2875
|
-
tags: smithy_client_1._json,
|
|
2876
|
-
});
|
|
2877
|
-
Object.assign(contents, doc);
|
|
2878
|
-
return contents;
|
|
2879
|
-
};
|
|
2880
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2881
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2882
|
-
const parsedOutput = {
|
|
2883
|
-
...output,
|
|
2884
|
-
body: await parseErrorBody(output.body, context),
|
|
2885
|
-
};
|
|
2886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2887
|
-
switch (errorCode) {
|
|
2888
|
-
case "InternalServerException":
|
|
2889
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2890
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "ResourceNotFoundException":
|
|
2892
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2893
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2894
|
-
case "ValidationException":
|
|
2895
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2896
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2897
|
-
default:
|
|
2898
|
-
const parsedBody = parsedOutput.body;
|
|
2899
|
-
return throwDefaultError({
|
|
2900
|
-
output,
|
|
2901
|
-
parsedBody,
|
|
2902
|
-
errorCode,
|
|
2903
|
-
});
|
|
2904
|
-
}
|
|
2905
|
-
};
|
|
2906
|
-
const de_RegisterAccountCommand = async (output, context) => {
|
|
2907
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2908
|
-
return de_RegisterAccountCommandError(output, context);
|
|
2909
|
-
}
|
|
2910
|
-
const contents = (0, smithy_client_1.map)({
|
|
2911
|
-
$metadata: deserializeMetadata(output),
|
|
2912
|
-
});
|
|
2913
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2914
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2915
|
-
status: smithy_client_1.expectString,
|
|
2916
|
-
});
|
|
2917
|
-
Object.assign(contents, doc);
|
|
2918
|
-
return contents;
|
|
2919
|
-
};
|
|
2920
|
-
exports.de_RegisterAccountCommand = de_RegisterAccountCommand;
|
|
2921
|
-
const de_RegisterAccountCommandError = async (output, context) => {
|
|
2922
|
-
const parsedOutput = {
|
|
2923
|
-
...output,
|
|
2924
|
-
body: await parseErrorBody(output.body, context),
|
|
2925
|
-
};
|
|
2926
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2927
|
-
switch (errorCode) {
|
|
2928
|
-
case "AccessDeniedException":
|
|
2929
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2930
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "InternalServerException":
|
|
2932
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2933
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "ResourceNotFoundException":
|
|
2935
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ThrottlingException":
|
|
2938
|
-
case "com.amazonaws.auditmanager#ThrottlingException":
|
|
2939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2940
|
-
case "ValidationException":
|
|
2941
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2942
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2943
|
-
default:
|
|
2944
|
-
const parsedBody = parsedOutput.body;
|
|
2945
|
-
return throwDefaultError({
|
|
2946
|
-
output,
|
|
2947
|
-
parsedBody,
|
|
2948
|
-
errorCode,
|
|
2949
|
-
});
|
|
2950
|
-
}
|
|
2951
|
-
};
|
|
2952
|
-
const de_RegisterOrganizationAdminAccountCommand = async (output, context) => {
|
|
2953
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2954
|
-
return de_RegisterOrganizationAdminAccountCommandError(output, context);
|
|
2955
|
-
}
|
|
2956
|
-
const contents = (0, smithy_client_1.map)({
|
|
2957
|
-
$metadata: deserializeMetadata(output),
|
|
2958
|
-
});
|
|
2959
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2960
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2961
|
-
adminAccountId: smithy_client_1.expectString,
|
|
2962
|
-
organizationId: smithy_client_1.expectString,
|
|
2963
|
-
});
|
|
2964
|
-
Object.assign(contents, doc);
|
|
2965
|
-
return contents;
|
|
2966
|
-
};
|
|
2967
|
-
exports.de_RegisterOrganizationAdminAccountCommand = de_RegisterOrganizationAdminAccountCommand;
|
|
2968
|
-
const de_RegisterOrganizationAdminAccountCommandError = async (output, context) => {
|
|
2969
|
-
const parsedOutput = {
|
|
2970
|
-
...output,
|
|
2971
|
-
body: await parseErrorBody(output.body, context),
|
|
2972
|
-
};
|
|
2973
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2974
|
-
switch (errorCode) {
|
|
2975
|
-
case "AccessDeniedException":
|
|
2976
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
2977
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "InternalServerException":
|
|
2979
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
2980
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "ResourceNotFoundException":
|
|
2982
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
2983
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "ValidationException":
|
|
2985
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
2986
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2987
|
-
default:
|
|
2988
|
-
const parsedBody = parsedOutput.body;
|
|
2989
|
-
return throwDefaultError({
|
|
2990
|
-
output,
|
|
2991
|
-
parsedBody,
|
|
2992
|
-
errorCode,
|
|
2993
|
-
});
|
|
2994
|
-
}
|
|
2995
|
-
};
|
|
2996
|
-
const de_StartAssessmentFrameworkShareCommand = async (output, context) => {
|
|
2997
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2998
|
-
return de_StartAssessmentFrameworkShareCommandError(output, context);
|
|
2999
|
-
}
|
|
3000
|
-
const contents = (0, smithy_client_1.map)({
|
|
3001
|
-
$metadata: deserializeMetadata(output),
|
|
3002
|
-
});
|
|
3003
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3004
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3005
|
-
assessmentFrameworkShareRequest: (_) => de_AssessmentFrameworkShareRequest(_, context),
|
|
3006
|
-
});
|
|
3007
|
-
Object.assign(contents, doc);
|
|
3008
|
-
return contents;
|
|
3009
|
-
};
|
|
3010
|
-
exports.de_StartAssessmentFrameworkShareCommand = de_StartAssessmentFrameworkShareCommand;
|
|
3011
|
-
const de_StartAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
3012
|
-
const parsedOutput = {
|
|
3013
|
-
...output,
|
|
3014
|
-
body: await parseErrorBody(output.body, context),
|
|
3015
|
-
};
|
|
3016
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3017
|
-
switch (errorCode) {
|
|
3018
|
-
case "AccessDeniedException":
|
|
3019
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3020
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "InternalServerException":
|
|
3022
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3023
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3024
|
-
case "ResourceNotFoundException":
|
|
3025
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3026
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3027
|
-
case "ValidationException":
|
|
3028
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3029
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3030
|
-
default:
|
|
3031
|
-
const parsedBody = parsedOutput.body;
|
|
3032
|
-
return throwDefaultError({
|
|
3033
|
-
output,
|
|
3034
|
-
parsedBody,
|
|
3035
|
-
errorCode,
|
|
3036
|
-
});
|
|
3037
|
-
}
|
|
3038
|
-
};
|
|
3039
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3040
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3041
|
-
return de_TagResourceCommandError(output, context);
|
|
3042
|
-
}
|
|
3043
|
-
const contents = (0, smithy_client_1.map)({
|
|
3044
|
-
$metadata: deserializeMetadata(output),
|
|
3045
|
-
});
|
|
3046
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3047
|
-
return contents;
|
|
3048
|
-
};
|
|
3049
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3050
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3051
|
-
const parsedOutput = {
|
|
3052
|
-
...output,
|
|
3053
|
-
body: await parseErrorBody(output.body, context),
|
|
3054
|
-
};
|
|
3055
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3056
|
-
switch (errorCode) {
|
|
3057
|
-
case "InternalServerException":
|
|
3058
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3059
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3060
|
-
case "ResourceNotFoundException":
|
|
3061
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3062
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3063
|
-
case "ValidationException":
|
|
3064
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3065
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3066
|
-
default:
|
|
3067
|
-
const parsedBody = parsedOutput.body;
|
|
3068
|
-
return throwDefaultError({
|
|
3069
|
-
output,
|
|
3070
|
-
parsedBody,
|
|
3071
|
-
errorCode,
|
|
3072
|
-
});
|
|
3073
|
-
}
|
|
3074
|
-
};
|
|
3075
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3076
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3077
|
-
return de_UntagResourceCommandError(output, context);
|
|
3078
|
-
}
|
|
3079
|
-
const contents = (0, smithy_client_1.map)({
|
|
3080
|
-
$metadata: deserializeMetadata(output),
|
|
3081
|
-
});
|
|
3082
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3083
|
-
return contents;
|
|
3084
|
-
};
|
|
3085
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3086
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3087
|
-
const parsedOutput = {
|
|
3088
|
-
...output,
|
|
3089
|
-
body: await parseErrorBody(output.body, context),
|
|
3090
|
-
};
|
|
3091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3092
|
-
switch (errorCode) {
|
|
3093
|
-
case "InternalServerException":
|
|
3094
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3095
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3096
|
-
case "ResourceNotFoundException":
|
|
3097
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3098
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3099
|
-
case "ValidationException":
|
|
3100
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3101
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3102
|
-
default:
|
|
3103
|
-
const parsedBody = parsedOutput.body;
|
|
3104
|
-
return throwDefaultError({
|
|
3105
|
-
output,
|
|
3106
|
-
parsedBody,
|
|
3107
|
-
errorCode,
|
|
3108
|
-
});
|
|
3109
|
-
}
|
|
3110
|
-
};
|
|
3111
|
-
const de_UpdateAssessmentCommand = async (output, context) => {
|
|
3112
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3113
|
-
return de_UpdateAssessmentCommandError(output, context);
|
|
3114
|
-
}
|
|
3115
|
-
const contents = (0, smithy_client_1.map)({
|
|
3116
|
-
$metadata: deserializeMetadata(output),
|
|
3117
|
-
});
|
|
3118
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3119
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3120
|
-
assessment: (_) => de_Assessment(_, context),
|
|
3121
|
-
});
|
|
3122
|
-
Object.assign(contents, doc);
|
|
3123
|
-
return contents;
|
|
3124
|
-
};
|
|
3125
|
-
exports.de_UpdateAssessmentCommand = de_UpdateAssessmentCommand;
|
|
3126
|
-
const de_UpdateAssessmentCommandError = async (output, context) => {
|
|
3127
|
-
const parsedOutput = {
|
|
3128
|
-
...output,
|
|
3129
|
-
body: await parseErrorBody(output.body, context),
|
|
3130
|
-
};
|
|
3131
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3132
|
-
switch (errorCode) {
|
|
3133
|
-
case "AccessDeniedException":
|
|
3134
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3135
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3136
|
-
case "InternalServerException":
|
|
3137
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3138
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3139
|
-
case "ResourceNotFoundException":
|
|
3140
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3141
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3142
|
-
case "ValidationException":
|
|
3143
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3144
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3145
|
-
default:
|
|
3146
|
-
const parsedBody = parsedOutput.body;
|
|
3147
|
-
return throwDefaultError({
|
|
3148
|
-
output,
|
|
3149
|
-
parsedBody,
|
|
3150
|
-
errorCode,
|
|
3151
|
-
});
|
|
3152
|
-
}
|
|
3153
|
-
};
|
|
3154
|
-
const de_UpdateAssessmentControlCommand = async (output, context) => {
|
|
3155
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3156
|
-
return de_UpdateAssessmentControlCommandError(output, context);
|
|
3157
|
-
}
|
|
3158
|
-
const contents = (0, smithy_client_1.map)({
|
|
3159
|
-
$metadata: deserializeMetadata(output),
|
|
3160
|
-
});
|
|
3161
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3162
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3163
|
-
control: (_) => de_AssessmentControl(_, context),
|
|
3164
|
-
});
|
|
3165
|
-
Object.assign(contents, doc);
|
|
3166
|
-
return contents;
|
|
3167
|
-
};
|
|
3168
|
-
exports.de_UpdateAssessmentControlCommand = de_UpdateAssessmentControlCommand;
|
|
3169
|
-
const de_UpdateAssessmentControlCommandError = async (output, context) => {
|
|
3170
|
-
const parsedOutput = {
|
|
3171
|
-
...output,
|
|
3172
|
-
body: await parseErrorBody(output.body, context),
|
|
3173
|
-
};
|
|
3174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3175
|
-
switch (errorCode) {
|
|
3176
|
-
case "AccessDeniedException":
|
|
3177
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3178
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3179
|
-
case "InternalServerException":
|
|
3180
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3181
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3182
|
-
case "ResourceNotFoundException":
|
|
3183
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3184
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3185
|
-
case "ValidationException":
|
|
3186
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3187
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3188
|
-
default:
|
|
3189
|
-
const parsedBody = parsedOutput.body;
|
|
3190
|
-
return throwDefaultError({
|
|
3191
|
-
output,
|
|
3192
|
-
parsedBody,
|
|
3193
|
-
errorCode,
|
|
3194
|
-
});
|
|
3195
|
-
}
|
|
3196
|
-
};
|
|
3197
|
-
const de_UpdateAssessmentControlSetStatusCommand = async (output, context) => {
|
|
3198
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3199
|
-
return de_UpdateAssessmentControlSetStatusCommandError(output, context);
|
|
3200
|
-
}
|
|
3201
|
-
const contents = (0, smithy_client_1.map)({
|
|
3202
|
-
$metadata: deserializeMetadata(output),
|
|
3203
|
-
});
|
|
3204
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3205
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3206
|
-
controlSet: (_) => de_AssessmentControlSet(_, context),
|
|
3207
|
-
});
|
|
3208
|
-
Object.assign(contents, doc);
|
|
3209
|
-
return contents;
|
|
3210
|
-
};
|
|
3211
|
-
exports.de_UpdateAssessmentControlSetStatusCommand = de_UpdateAssessmentControlSetStatusCommand;
|
|
3212
|
-
const de_UpdateAssessmentControlSetStatusCommandError = async (output, context) => {
|
|
3213
|
-
const parsedOutput = {
|
|
3214
|
-
...output,
|
|
3215
|
-
body: await parseErrorBody(output.body, context),
|
|
3216
|
-
};
|
|
3217
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3218
|
-
switch (errorCode) {
|
|
3219
|
-
case "AccessDeniedException":
|
|
3220
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3221
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "InternalServerException":
|
|
3223
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3224
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3225
|
-
case "ResourceNotFoundException":
|
|
3226
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3227
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3228
|
-
case "ValidationException":
|
|
3229
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3230
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3231
|
-
default:
|
|
3232
|
-
const parsedBody = parsedOutput.body;
|
|
3233
|
-
return throwDefaultError({
|
|
3234
|
-
output,
|
|
3235
|
-
parsedBody,
|
|
3236
|
-
errorCode,
|
|
3237
|
-
});
|
|
3238
|
-
}
|
|
3239
|
-
};
|
|
3240
|
-
const de_UpdateAssessmentFrameworkCommand = async (output, context) => {
|
|
3241
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3242
|
-
return de_UpdateAssessmentFrameworkCommandError(output, context);
|
|
3243
|
-
}
|
|
3244
|
-
const contents = (0, smithy_client_1.map)({
|
|
3245
|
-
$metadata: deserializeMetadata(output),
|
|
3246
|
-
});
|
|
3247
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3248
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3249
|
-
framework: (_) => de_Framework(_, context),
|
|
3250
|
-
});
|
|
3251
|
-
Object.assign(contents, doc);
|
|
3252
|
-
return contents;
|
|
3253
|
-
};
|
|
3254
|
-
exports.de_UpdateAssessmentFrameworkCommand = de_UpdateAssessmentFrameworkCommand;
|
|
3255
|
-
const de_UpdateAssessmentFrameworkCommandError = async (output, context) => {
|
|
3256
|
-
const parsedOutput = {
|
|
3257
|
-
...output,
|
|
3258
|
-
body: await parseErrorBody(output.body, context),
|
|
3259
|
-
};
|
|
3260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3261
|
-
switch (errorCode) {
|
|
3262
|
-
case "AccessDeniedException":
|
|
3263
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3264
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "InternalServerException":
|
|
3266
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3267
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "ResourceNotFoundException":
|
|
3269
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3270
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "ValidationException":
|
|
3272
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3273
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3274
|
-
default:
|
|
3275
|
-
const parsedBody = parsedOutput.body;
|
|
3276
|
-
return throwDefaultError({
|
|
3277
|
-
output,
|
|
3278
|
-
parsedBody,
|
|
3279
|
-
errorCode,
|
|
3280
|
-
});
|
|
3281
|
-
}
|
|
3282
|
-
};
|
|
3283
|
-
const de_UpdateAssessmentFrameworkShareCommand = async (output, context) => {
|
|
3284
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3285
|
-
return de_UpdateAssessmentFrameworkShareCommandError(output, context);
|
|
3286
|
-
}
|
|
3287
|
-
const contents = (0, smithy_client_1.map)({
|
|
3288
|
-
$metadata: deserializeMetadata(output),
|
|
3289
|
-
});
|
|
3290
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3291
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3292
|
-
assessmentFrameworkShareRequest: (_) => de_AssessmentFrameworkShareRequest(_, context),
|
|
3293
|
-
});
|
|
3294
|
-
Object.assign(contents, doc);
|
|
3295
|
-
return contents;
|
|
3296
|
-
};
|
|
3297
|
-
exports.de_UpdateAssessmentFrameworkShareCommand = de_UpdateAssessmentFrameworkShareCommand;
|
|
3298
|
-
const de_UpdateAssessmentFrameworkShareCommandError = async (output, context) => {
|
|
3299
|
-
const parsedOutput = {
|
|
3300
|
-
...output,
|
|
3301
|
-
body: await parseErrorBody(output.body, context),
|
|
3302
|
-
};
|
|
3303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3304
|
-
switch (errorCode) {
|
|
3305
|
-
case "AccessDeniedException":
|
|
3306
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3307
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3308
|
-
case "InternalServerException":
|
|
3309
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3310
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3311
|
-
case "ResourceNotFoundException":
|
|
3312
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3313
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3314
|
-
case "ServiceQuotaExceededException":
|
|
3315
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
3316
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3317
|
-
case "ValidationException":
|
|
3318
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3319
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3320
|
-
default:
|
|
3321
|
-
const parsedBody = parsedOutput.body;
|
|
3322
|
-
return throwDefaultError({
|
|
3323
|
-
output,
|
|
3324
|
-
parsedBody,
|
|
3325
|
-
errorCode,
|
|
3326
|
-
});
|
|
3327
|
-
}
|
|
3328
|
-
};
|
|
3329
|
-
const de_UpdateAssessmentStatusCommand = async (output, context) => {
|
|
3330
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3331
|
-
return de_UpdateAssessmentStatusCommandError(output, context);
|
|
3332
|
-
}
|
|
3333
|
-
const contents = (0, smithy_client_1.map)({
|
|
3334
|
-
$metadata: deserializeMetadata(output),
|
|
3335
|
-
});
|
|
3336
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3337
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3338
|
-
assessment: (_) => de_Assessment(_, context),
|
|
3339
|
-
});
|
|
3340
|
-
Object.assign(contents, doc);
|
|
3341
|
-
return contents;
|
|
3342
|
-
};
|
|
3343
|
-
exports.de_UpdateAssessmentStatusCommand = de_UpdateAssessmentStatusCommand;
|
|
3344
|
-
const de_UpdateAssessmentStatusCommandError = async (output, context) => {
|
|
3345
|
-
const parsedOutput = {
|
|
3346
|
-
...output,
|
|
3347
|
-
body: await parseErrorBody(output.body, context),
|
|
3348
|
-
};
|
|
3349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3350
|
-
switch (errorCode) {
|
|
3351
|
-
case "AccessDeniedException":
|
|
3352
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3353
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3354
|
-
case "InternalServerException":
|
|
3355
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3356
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3357
|
-
case "ResourceNotFoundException":
|
|
3358
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3359
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3360
|
-
case "ServiceQuotaExceededException":
|
|
3361
|
-
case "com.amazonaws.auditmanager#ServiceQuotaExceededException":
|
|
3362
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3363
|
-
case "ValidationException":
|
|
3364
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3365
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3366
|
-
default:
|
|
3367
|
-
const parsedBody = parsedOutput.body;
|
|
3368
|
-
return throwDefaultError({
|
|
3369
|
-
output,
|
|
3370
|
-
parsedBody,
|
|
3371
|
-
errorCode,
|
|
3372
|
-
});
|
|
3373
|
-
}
|
|
3374
|
-
};
|
|
3375
|
-
const de_UpdateControlCommand = async (output, context) => {
|
|
3376
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3377
|
-
return de_UpdateControlCommandError(output, context);
|
|
3378
|
-
}
|
|
3379
|
-
const contents = (0, smithy_client_1.map)({
|
|
3380
|
-
$metadata: deserializeMetadata(output),
|
|
3381
|
-
});
|
|
3382
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3383
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3384
|
-
control: (_) => de_Control(_, context),
|
|
3385
|
-
});
|
|
3386
|
-
Object.assign(contents, doc);
|
|
3387
|
-
return contents;
|
|
3388
|
-
};
|
|
3389
|
-
exports.de_UpdateControlCommand = de_UpdateControlCommand;
|
|
3390
|
-
const de_UpdateControlCommandError = async (output, context) => {
|
|
3391
|
-
const parsedOutput = {
|
|
3392
|
-
...output,
|
|
3393
|
-
body: await parseErrorBody(output.body, context),
|
|
3394
|
-
};
|
|
3395
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3396
|
-
switch (errorCode) {
|
|
3397
|
-
case "AccessDeniedException":
|
|
3398
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3399
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3400
|
-
case "InternalServerException":
|
|
3401
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3402
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3403
|
-
case "ResourceNotFoundException":
|
|
3404
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3405
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3406
|
-
case "ValidationException":
|
|
3407
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3408
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3409
|
-
default:
|
|
3410
|
-
const parsedBody = parsedOutput.body;
|
|
3411
|
-
return throwDefaultError({
|
|
3412
|
-
output,
|
|
3413
|
-
parsedBody,
|
|
3414
|
-
errorCode,
|
|
3415
|
-
});
|
|
3416
|
-
}
|
|
3417
|
-
};
|
|
3418
|
-
const de_UpdateSettingsCommand = async (output, context) => {
|
|
3419
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3420
|
-
return de_UpdateSettingsCommandError(output, context);
|
|
3421
|
-
}
|
|
3422
|
-
const contents = (0, smithy_client_1.map)({
|
|
3423
|
-
$metadata: deserializeMetadata(output),
|
|
3424
|
-
});
|
|
3425
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3426
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3427
|
-
settings: smithy_client_1._json,
|
|
3428
|
-
});
|
|
3429
|
-
Object.assign(contents, doc);
|
|
3430
|
-
return contents;
|
|
3431
|
-
};
|
|
3432
|
-
exports.de_UpdateSettingsCommand = de_UpdateSettingsCommand;
|
|
3433
|
-
const de_UpdateSettingsCommandError = async (output, context) => {
|
|
3434
|
-
const parsedOutput = {
|
|
3435
|
-
...output,
|
|
3436
|
-
body: await parseErrorBody(output.body, context),
|
|
3437
|
-
};
|
|
3438
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3439
|
-
switch (errorCode) {
|
|
3440
|
-
case "AccessDeniedException":
|
|
3441
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3442
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3443
|
-
case "InternalServerException":
|
|
3444
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3445
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3446
|
-
case "ValidationException":
|
|
3447
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3448
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3449
|
-
default:
|
|
3450
|
-
const parsedBody = parsedOutput.body;
|
|
3451
|
-
return throwDefaultError({
|
|
3452
|
-
output,
|
|
3453
|
-
parsedBody,
|
|
3454
|
-
errorCode,
|
|
3455
|
-
});
|
|
3456
|
-
}
|
|
3457
|
-
};
|
|
3458
|
-
const de_ValidateAssessmentReportIntegrityCommand = async (output, context) => {
|
|
3459
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3460
|
-
return de_ValidateAssessmentReportIntegrityCommandError(output, context);
|
|
3461
|
-
}
|
|
3462
|
-
const contents = (0, smithy_client_1.map)({
|
|
3463
|
-
$metadata: deserializeMetadata(output),
|
|
3464
|
-
});
|
|
3465
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3466
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3467
|
-
signatureAlgorithm: smithy_client_1.expectString,
|
|
3468
|
-
signatureDateTime: smithy_client_1.expectString,
|
|
3469
|
-
signatureKeyId: smithy_client_1.expectString,
|
|
3470
|
-
signatureValid: smithy_client_1.expectBoolean,
|
|
3471
|
-
validationErrors: smithy_client_1._json,
|
|
3472
|
-
});
|
|
3473
|
-
Object.assign(contents, doc);
|
|
3474
|
-
return contents;
|
|
3475
|
-
};
|
|
3476
|
-
exports.de_ValidateAssessmentReportIntegrityCommand = de_ValidateAssessmentReportIntegrityCommand;
|
|
3477
|
-
const de_ValidateAssessmentReportIntegrityCommandError = async (output, context) => {
|
|
3478
|
-
const parsedOutput = {
|
|
3479
|
-
...output,
|
|
3480
|
-
body: await parseErrorBody(output.body, context),
|
|
3481
|
-
};
|
|
3482
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3483
|
-
switch (errorCode) {
|
|
3484
|
-
case "AccessDeniedException":
|
|
3485
|
-
case "com.amazonaws.auditmanager#AccessDeniedException":
|
|
3486
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3487
|
-
case "InternalServerException":
|
|
3488
|
-
case "com.amazonaws.auditmanager#InternalServerException":
|
|
3489
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3490
|
-
case "ResourceNotFoundException":
|
|
3491
|
-
case "com.amazonaws.auditmanager#ResourceNotFoundException":
|
|
3492
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3493
|
-
case "ValidationException":
|
|
3494
|
-
case "com.amazonaws.auditmanager#ValidationException":
|
|
3495
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3496
|
-
default:
|
|
3497
|
-
const parsedBody = parsedOutput.body;
|
|
3498
|
-
return throwDefaultError({
|
|
3499
|
-
output,
|
|
3500
|
-
parsedBody,
|
|
3501
|
-
errorCode,
|
|
3502
|
-
});
|
|
3503
|
-
}
|
|
3504
|
-
};
|
|
3505
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(AuditManagerServiceException_1.AuditManagerServiceException);
|
|
3506
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3507
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3508
|
-
const data = parsedOutput.body;
|
|
3509
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3510
|
-
message: smithy_client_1.expectString,
|
|
3511
|
-
});
|
|
3512
|
-
Object.assign(contents, doc);
|
|
3513
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3514
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3515
|
-
...contents,
|
|
3516
|
-
});
|
|
3517
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3518
|
-
};
|
|
3519
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3520
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3521
|
-
const data = parsedOutput.body;
|
|
3522
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3523
|
-
message: smithy_client_1.expectString,
|
|
3524
|
-
});
|
|
3525
|
-
Object.assign(contents, doc);
|
|
3526
|
-
const exception = new models_0_1.InternalServerException({
|
|
3527
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3528
|
-
...contents,
|
|
3529
|
-
});
|
|
3530
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3531
|
-
};
|
|
3532
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3533
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3534
|
-
const data = parsedOutput.body;
|
|
3535
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3536
|
-
message: smithy_client_1.expectString,
|
|
3537
|
-
resourceId: smithy_client_1.expectString,
|
|
3538
|
-
resourceType: smithy_client_1.expectString,
|
|
3539
|
-
});
|
|
3540
|
-
Object.assign(contents, doc);
|
|
3541
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3542
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3543
|
-
...contents,
|
|
3544
|
-
});
|
|
3545
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3546
|
-
};
|
|
3547
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3548
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3549
|
-
const data = parsedOutput.body;
|
|
3550
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3551
|
-
message: smithy_client_1.expectString,
|
|
3552
|
-
});
|
|
3553
|
-
Object.assign(contents, doc);
|
|
3554
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3555
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3556
|
-
...contents,
|
|
3557
|
-
});
|
|
3558
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3559
|
-
};
|
|
3560
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3561
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3562
|
-
const data = parsedOutput.body;
|
|
3563
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3564
|
-
message: smithy_client_1.expectString,
|
|
3565
|
-
});
|
|
3566
|
-
Object.assign(contents, doc);
|
|
3567
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3568
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3569
|
-
...contents,
|
|
3570
|
-
});
|
|
3571
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3572
|
-
};
|
|
3573
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3574
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3575
|
-
const data = parsedOutput.body;
|
|
3576
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3577
|
-
fields: smithy_client_1._json,
|
|
3578
|
-
message: smithy_client_1.expectString,
|
|
3579
|
-
reason: smithy_client_1.expectString,
|
|
3580
|
-
});
|
|
3581
|
-
Object.assign(contents, doc);
|
|
3582
|
-
const exception = new models_0_1.ValidationException({
|
|
3583
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3584
|
-
...contents,
|
|
3585
|
-
});
|
|
3586
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3587
|
-
};
|
|
3588
|
-
const de_Assessment = (output, context) => {
|
|
3589
|
-
return (0, smithy_client_1.take)(output, {
|
|
3590
|
-
arn: smithy_client_1.expectString,
|
|
3591
|
-
awsAccount: smithy_client_1._json,
|
|
3592
|
-
framework: (_) => de_AssessmentFramework(_, context),
|
|
3593
|
-
metadata: (_) => de_AssessmentMetadata(_, context),
|
|
3594
|
-
tags: smithy_client_1._json,
|
|
3595
|
-
});
|
|
3596
|
-
};
|
|
3597
|
-
const de_AssessmentControl = (output, context) => {
|
|
3598
|
-
return (0, smithy_client_1.take)(output, {
|
|
3599
|
-
assessmentReportEvidenceCount: smithy_client_1.expectInt32,
|
|
3600
|
-
comments: (_) => de_ControlComments(_, context),
|
|
3601
|
-
description: smithy_client_1.expectString,
|
|
3602
|
-
evidenceCount: smithy_client_1.expectInt32,
|
|
3603
|
-
evidenceSources: smithy_client_1._json,
|
|
3604
|
-
id: smithy_client_1.expectString,
|
|
3605
|
-
name: smithy_client_1.expectString,
|
|
3606
|
-
response: smithy_client_1.expectString,
|
|
3607
|
-
status: smithy_client_1.expectString,
|
|
3608
|
-
});
|
|
3609
|
-
};
|
|
3610
|
-
const de_AssessmentControls = (output, context) => {
|
|
3611
|
-
const retVal = (output || [])
|
|
3612
|
-
.filter((e) => e != null)
|
|
3613
|
-
.map((entry) => {
|
|
3614
|
-
return de_AssessmentControl(entry, context);
|
|
3615
|
-
});
|
|
3616
|
-
return retVal;
|
|
3617
|
-
};
|
|
3618
|
-
const de_AssessmentControlSet = (output, context) => {
|
|
3619
|
-
return (0, smithy_client_1.take)(output, {
|
|
3620
|
-
controls: (_) => de_AssessmentControls(_, context),
|
|
3621
|
-
delegations: (_) => de_Delegations(_, context),
|
|
3622
|
-
description: smithy_client_1.expectString,
|
|
3623
|
-
id: smithy_client_1.expectString,
|
|
3624
|
-
manualEvidenceCount: smithy_client_1.expectInt32,
|
|
3625
|
-
roles: smithy_client_1._json,
|
|
3626
|
-
status: smithy_client_1.expectString,
|
|
3627
|
-
systemEvidenceCount: smithy_client_1.expectInt32,
|
|
3628
|
-
});
|
|
3629
|
-
};
|
|
3630
|
-
const de_AssessmentControlSets = (output, context) => {
|
|
3631
|
-
const retVal = (output || [])
|
|
3632
|
-
.filter((e) => e != null)
|
|
3633
|
-
.map((entry) => {
|
|
3634
|
-
return de_AssessmentControlSet(entry, context);
|
|
3635
|
-
});
|
|
3636
|
-
return retVal;
|
|
3637
|
-
};
|
|
3638
|
-
const de_AssessmentEvidenceFolder = (output, context) => {
|
|
3639
|
-
return (0, smithy_client_1.take)(output, {
|
|
3640
|
-
assessmentId: smithy_client_1.expectString,
|
|
3641
|
-
assessmentReportSelectionCount: smithy_client_1.expectInt32,
|
|
3642
|
-
author: smithy_client_1.expectString,
|
|
3643
|
-
controlId: smithy_client_1.expectString,
|
|
3644
|
-
controlName: smithy_client_1.expectString,
|
|
3645
|
-
controlSetId: smithy_client_1.expectString,
|
|
3646
|
-
dataSource: smithy_client_1.expectString,
|
|
3647
|
-
date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3648
|
-
evidenceAwsServiceSourceCount: smithy_client_1.expectInt32,
|
|
3649
|
-
evidenceByTypeComplianceCheckCount: smithy_client_1.expectInt32,
|
|
3650
|
-
evidenceByTypeComplianceCheckIssuesCount: smithy_client_1.expectInt32,
|
|
3651
|
-
evidenceByTypeConfigurationDataCount: smithy_client_1.expectInt32,
|
|
3652
|
-
evidenceByTypeManualCount: smithy_client_1.expectInt32,
|
|
3653
|
-
evidenceByTypeUserActivityCount: smithy_client_1.expectInt32,
|
|
3654
|
-
evidenceResourcesIncludedCount: smithy_client_1.expectInt32,
|
|
3655
|
-
id: smithy_client_1.expectString,
|
|
3656
|
-
name: smithy_client_1.expectString,
|
|
3657
|
-
totalEvidence: smithy_client_1.expectInt32,
|
|
3658
|
-
});
|
|
3659
|
-
};
|
|
3660
|
-
const de_AssessmentEvidenceFolders = (output, context) => {
|
|
3661
|
-
const retVal = (output || [])
|
|
3662
|
-
.filter((e) => e != null)
|
|
3663
|
-
.map((entry) => {
|
|
3664
|
-
return de_AssessmentEvidenceFolder(entry, context);
|
|
3665
|
-
});
|
|
3666
|
-
return retVal;
|
|
3667
|
-
};
|
|
3668
|
-
const de_AssessmentFramework = (output, context) => {
|
|
3669
|
-
return (0, smithy_client_1.take)(output, {
|
|
3670
|
-
arn: smithy_client_1.expectString,
|
|
3671
|
-
controlSets: (_) => de_AssessmentControlSets(_, context),
|
|
3672
|
-
id: smithy_client_1.expectString,
|
|
3673
|
-
metadata: smithy_client_1._json,
|
|
3674
|
-
});
|
|
3675
|
-
};
|
|
3676
|
-
const de_AssessmentFrameworkMetadata = (output, context) => {
|
|
3677
|
-
return (0, smithy_client_1.take)(output, {
|
|
3678
|
-
arn: smithy_client_1.expectString,
|
|
3679
|
-
complianceType: smithy_client_1.expectString,
|
|
3680
|
-
controlSetsCount: smithy_client_1.expectInt32,
|
|
3681
|
-
controlsCount: smithy_client_1.expectInt32,
|
|
3682
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3683
|
-
description: smithy_client_1.expectString,
|
|
3684
|
-
id: smithy_client_1.expectString,
|
|
3685
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3686
|
-
logo: smithy_client_1.expectString,
|
|
3687
|
-
name: smithy_client_1.expectString,
|
|
3688
|
-
type: smithy_client_1.expectString,
|
|
3689
|
-
});
|
|
3690
|
-
};
|
|
3691
|
-
const de_AssessmentFrameworkShareRequest = (output, context) => {
|
|
3692
|
-
return (0, smithy_client_1.take)(output, {
|
|
3693
|
-
comment: smithy_client_1.expectString,
|
|
3694
|
-
complianceType: smithy_client_1.expectString,
|
|
3695
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3696
|
-
customControlsCount: smithy_client_1.expectInt32,
|
|
3697
|
-
destinationAccount: smithy_client_1.expectString,
|
|
3698
|
-
destinationRegion: smithy_client_1.expectString,
|
|
3699
|
-
expirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3700
|
-
frameworkDescription: smithy_client_1.expectString,
|
|
3701
|
-
frameworkId: smithy_client_1.expectString,
|
|
3702
|
-
frameworkName: smithy_client_1.expectString,
|
|
3703
|
-
id: smithy_client_1.expectString,
|
|
3704
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3705
|
-
sourceAccount: smithy_client_1.expectString,
|
|
3706
|
-
standardControlsCount: smithy_client_1.expectInt32,
|
|
3707
|
-
status: smithy_client_1.expectString,
|
|
3708
|
-
});
|
|
3709
|
-
};
|
|
3710
|
-
const de_AssessmentFrameworkShareRequestList = (output, context) => {
|
|
3711
|
-
const retVal = (output || [])
|
|
3712
|
-
.filter((e) => e != null)
|
|
3713
|
-
.map((entry) => {
|
|
3714
|
-
return de_AssessmentFrameworkShareRequest(entry, context);
|
|
3715
|
-
});
|
|
3716
|
-
return retVal;
|
|
3717
|
-
};
|
|
3718
|
-
const de_AssessmentMetadata = (output, context) => {
|
|
3719
|
-
return (0, smithy_client_1.take)(output, {
|
|
3720
|
-
assessmentReportsDestination: smithy_client_1._json,
|
|
3721
|
-
complianceType: smithy_client_1.expectString,
|
|
3722
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3723
|
-
delegations: (_) => de_Delegations(_, context),
|
|
3724
|
-
description: smithy_client_1.expectString,
|
|
3725
|
-
id: smithy_client_1.expectString,
|
|
3726
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3727
|
-
name: smithy_client_1.expectString,
|
|
3728
|
-
roles: smithy_client_1._json,
|
|
3729
|
-
scope: smithy_client_1._json,
|
|
3730
|
-
status: smithy_client_1.expectString,
|
|
3731
|
-
});
|
|
3732
|
-
};
|
|
3733
|
-
const de_AssessmentMetadataItem = (output, context) => {
|
|
3734
|
-
return (0, smithy_client_1.take)(output, {
|
|
3735
|
-
complianceType: smithy_client_1.expectString,
|
|
3736
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3737
|
-
delegations: (_) => de_Delegations(_, context),
|
|
3738
|
-
id: smithy_client_1.expectString,
|
|
3739
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3740
|
-
name: smithy_client_1.expectString,
|
|
3741
|
-
roles: smithy_client_1._json,
|
|
3742
|
-
status: smithy_client_1.expectString,
|
|
3743
|
-
});
|
|
3744
|
-
};
|
|
3745
|
-
const de_AssessmentReport = (output, context) => {
|
|
3746
|
-
return (0, smithy_client_1.take)(output, {
|
|
3747
|
-
assessmentId: smithy_client_1.expectString,
|
|
3748
|
-
assessmentName: smithy_client_1.expectString,
|
|
3749
|
-
author: smithy_client_1.expectString,
|
|
3750
|
-
awsAccountId: smithy_client_1.expectString,
|
|
3751
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3752
|
-
description: smithy_client_1.expectString,
|
|
3753
|
-
id: smithy_client_1.expectString,
|
|
3754
|
-
name: smithy_client_1.expectString,
|
|
3755
|
-
status: smithy_client_1.expectString,
|
|
3756
|
-
});
|
|
3757
|
-
};
|
|
3758
|
-
const de_AssessmentReportMetadata = (output, context) => {
|
|
3759
|
-
return (0, smithy_client_1.take)(output, {
|
|
3760
|
-
assessmentId: smithy_client_1.expectString,
|
|
3761
|
-
assessmentName: smithy_client_1.expectString,
|
|
3762
|
-
author: smithy_client_1.expectString,
|
|
3763
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3764
|
-
description: smithy_client_1.expectString,
|
|
3765
|
-
id: smithy_client_1.expectString,
|
|
3766
|
-
name: smithy_client_1.expectString,
|
|
3767
|
-
status: smithy_client_1.expectString,
|
|
3768
|
-
});
|
|
3769
|
-
};
|
|
3770
|
-
const de_AssessmentReportsMetadata = (output, context) => {
|
|
3771
|
-
const retVal = (output || [])
|
|
3772
|
-
.filter((e) => e != null)
|
|
3773
|
-
.map((entry) => {
|
|
3774
|
-
return de_AssessmentReportMetadata(entry, context);
|
|
3775
|
-
});
|
|
3776
|
-
return retVal;
|
|
3777
|
-
};
|
|
3778
|
-
const de_ChangeLog = (output, context) => {
|
|
3779
|
-
return (0, smithy_client_1.take)(output, {
|
|
3780
|
-
action: smithy_client_1.expectString,
|
|
3781
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3782
|
-
createdBy: smithy_client_1.expectString,
|
|
3783
|
-
objectName: smithy_client_1.expectString,
|
|
3784
|
-
objectType: smithy_client_1.expectString,
|
|
3785
|
-
});
|
|
3786
|
-
};
|
|
3787
|
-
const de_ChangeLogs = (output, context) => {
|
|
3788
|
-
const retVal = (output || [])
|
|
3789
|
-
.filter((e) => e != null)
|
|
3790
|
-
.map((entry) => {
|
|
3791
|
-
return de_ChangeLog(entry, context);
|
|
3792
|
-
});
|
|
3793
|
-
return retVal;
|
|
3794
|
-
};
|
|
3795
|
-
const de_Control = (output, context) => {
|
|
3796
|
-
return (0, smithy_client_1.take)(output, {
|
|
3797
|
-
actionPlanInstructions: smithy_client_1.expectString,
|
|
3798
|
-
actionPlanTitle: smithy_client_1.expectString,
|
|
3799
|
-
arn: smithy_client_1.expectString,
|
|
3800
|
-
controlMappingSources: smithy_client_1._json,
|
|
3801
|
-
controlSources: smithy_client_1.expectString,
|
|
3802
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3803
|
-
createdBy: smithy_client_1.expectString,
|
|
3804
|
-
description: smithy_client_1.expectString,
|
|
3805
|
-
id: smithy_client_1.expectString,
|
|
3806
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3807
|
-
lastUpdatedBy: smithy_client_1.expectString,
|
|
3808
|
-
name: smithy_client_1.expectString,
|
|
3809
|
-
tags: smithy_client_1._json,
|
|
3810
|
-
testingInformation: smithy_client_1.expectString,
|
|
3811
|
-
type: smithy_client_1.expectString,
|
|
3812
|
-
});
|
|
3813
|
-
};
|
|
3814
|
-
const de_ControlComment = (output, context) => {
|
|
3815
|
-
return (0, smithy_client_1.take)(output, {
|
|
3816
|
-
authorName: smithy_client_1.expectString,
|
|
3817
|
-
commentBody: smithy_client_1.expectString,
|
|
3818
|
-
postedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3819
|
-
});
|
|
3820
|
-
};
|
|
3821
|
-
const de_ControlComments = (output, context) => {
|
|
3822
|
-
const retVal = (output || [])
|
|
3823
|
-
.filter((e) => e != null)
|
|
3824
|
-
.map((entry) => {
|
|
3825
|
-
return de_ControlComment(entry, context);
|
|
3826
|
-
});
|
|
3827
|
-
return retVal;
|
|
3828
|
-
};
|
|
3829
|
-
const de_ControlDomainInsights = (output, context) => {
|
|
3830
|
-
return (0, smithy_client_1.take)(output, {
|
|
3831
|
-
controlsCountByNoncompliantEvidence: smithy_client_1.expectInt32,
|
|
3832
|
-
evidenceInsights: smithy_client_1._json,
|
|
3833
|
-
id: smithy_client_1.expectString,
|
|
3834
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3835
|
-
name: smithy_client_1.expectString,
|
|
3836
|
-
totalControlsCount: smithy_client_1.expectInt32,
|
|
3837
|
-
});
|
|
3838
|
-
};
|
|
3839
|
-
const de_ControlDomainInsightsList = (output, context) => {
|
|
3840
|
-
const retVal = (output || [])
|
|
3841
|
-
.filter((e) => e != null)
|
|
3842
|
-
.map((entry) => {
|
|
3843
|
-
return de_ControlDomainInsights(entry, context);
|
|
3844
|
-
});
|
|
3845
|
-
return retVal;
|
|
3846
|
-
};
|
|
3847
|
-
const de_ControlInsightsMetadata = (output, context) => {
|
|
3848
|
-
const retVal = (output || [])
|
|
3849
|
-
.filter((e) => e != null)
|
|
3850
|
-
.map((entry) => {
|
|
3851
|
-
return de_ControlInsightsMetadataItem(entry, context);
|
|
3852
|
-
});
|
|
3853
|
-
return retVal;
|
|
3854
|
-
};
|
|
3855
|
-
const de_ControlInsightsMetadataByAssessment = (output, context) => {
|
|
3856
|
-
const retVal = (output || [])
|
|
3857
|
-
.filter((e) => e != null)
|
|
3858
|
-
.map((entry) => {
|
|
3859
|
-
return de_ControlInsightsMetadataByAssessmentItem(entry, context);
|
|
3860
|
-
});
|
|
3861
|
-
return retVal;
|
|
3862
|
-
};
|
|
3863
|
-
const de_ControlInsightsMetadataByAssessmentItem = (output, context) => {
|
|
3864
|
-
return (0, smithy_client_1.take)(output, {
|
|
3865
|
-
controlSetName: smithy_client_1.expectString,
|
|
3866
|
-
evidenceInsights: smithy_client_1._json,
|
|
3867
|
-
id: smithy_client_1.expectString,
|
|
3868
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3869
|
-
name: smithy_client_1.expectString,
|
|
3870
|
-
});
|
|
3871
|
-
};
|
|
3872
|
-
const de_ControlInsightsMetadataItem = (output, context) => {
|
|
3873
|
-
return (0, smithy_client_1.take)(output, {
|
|
3874
|
-
evidenceInsights: smithy_client_1._json,
|
|
3875
|
-
id: smithy_client_1.expectString,
|
|
3876
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3877
|
-
name: smithy_client_1.expectString,
|
|
3878
|
-
});
|
|
3879
|
-
};
|
|
3880
|
-
const de_ControlMetadata = (output, context) => {
|
|
3881
|
-
return (0, smithy_client_1.take)(output, {
|
|
3882
|
-
arn: smithy_client_1.expectString,
|
|
3883
|
-
controlSources: smithy_client_1.expectString,
|
|
3884
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3885
|
-
id: smithy_client_1.expectString,
|
|
3886
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3887
|
-
name: smithy_client_1.expectString,
|
|
3888
|
-
});
|
|
3889
|
-
};
|
|
3890
|
-
const de_ControlMetadataList = (output, context) => {
|
|
3891
|
-
const retVal = (output || [])
|
|
3892
|
-
.filter((e) => e != null)
|
|
3893
|
-
.map((entry) => {
|
|
3894
|
-
return de_ControlMetadata(entry, context);
|
|
3895
|
-
});
|
|
3896
|
-
return retVal;
|
|
3897
|
-
};
|
|
3898
|
-
const de_Controls = (output, context) => {
|
|
3899
|
-
const retVal = (output || [])
|
|
3900
|
-
.filter((e) => e != null)
|
|
3901
|
-
.map((entry) => {
|
|
3902
|
-
return de_Control(entry, context);
|
|
3903
|
-
});
|
|
3904
|
-
return retVal;
|
|
3905
|
-
};
|
|
3906
|
-
const de_ControlSet = (output, context) => {
|
|
3907
|
-
return (0, smithy_client_1.take)(output, {
|
|
3908
|
-
controls: (_) => de_Controls(_, context),
|
|
3909
|
-
id: smithy_client_1.expectString,
|
|
3910
|
-
name: smithy_client_1.expectString,
|
|
3911
|
-
});
|
|
3912
|
-
};
|
|
3913
|
-
const de_ControlSets = (output, context) => {
|
|
3914
|
-
const retVal = (output || [])
|
|
3915
|
-
.filter((e) => e != null)
|
|
3916
|
-
.map((entry) => {
|
|
3917
|
-
return de_ControlSet(entry, context);
|
|
3918
|
-
});
|
|
3919
|
-
return retVal;
|
|
3920
|
-
};
|
|
3921
|
-
const de_Delegation = (output, context) => {
|
|
3922
|
-
return (0, smithy_client_1.take)(output, {
|
|
3923
|
-
assessmentId: smithy_client_1.expectString,
|
|
3924
|
-
assessmentName: smithy_client_1.expectString,
|
|
3925
|
-
comment: smithy_client_1.expectString,
|
|
3926
|
-
controlSetId: smithy_client_1.expectString,
|
|
3927
|
-
createdBy: smithy_client_1.expectString,
|
|
3928
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3929
|
-
id: smithy_client_1.expectString,
|
|
3930
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3931
|
-
roleArn: smithy_client_1.expectString,
|
|
3932
|
-
roleType: smithy_client_1.expectString,
|
|
3933
|
-
status: smithy_client_1.expectString,
|
|
3934
|
-
});
|
|
3935
|
-
};
|
|
3936
|
-
const de_DelegationMetadata = (output, context) => {
|
|
3937
|
-
return (0, smithy_client_1.take)(output, {
|
|
3938
|
-
assessmentId: smithy_client_1.expectString,
|
|
3939
|
-
assessmentName: smithy_client_1.expectString,
|
|
3940
|
-
controlSetName: smithy_client_1.expectString,
|
|
3941
|
-
creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3942
|
-
id: smithy_client_1.expectString,
|
|
3943
|
-
roleArn: smithy_client_1.expectString,
|
|
3944
|
-
status: smithy_client_1.expectString,
|
|
3945
|
-
});
|
|
3946
|
-
};
|
|
3947
|
-
const de_DelegationMetadataList = (output, context) => {
|
|
3948
|
-
const retVal = (output || [])
|
|
3949
|
-
.filter((e) => e != null)
|
|
3950
|
-
.map((entry) => {
|
|
3951
|
-
return de_DelegationMetadata(entry, context);
|
|
3952
|
-
});
|
|
3953
|
-
return retVal;
|
|
3954
|
-
};
|
|
3955
|
-
const de_Delegations = (output, context) => {
|
|
3956
|
-
const retVal = (output || [])
|
|
3957
|
-
.filter((e) => e != null)
|
|
3958
|
-
.map((entry) => {
|
|
3959
|
-
return de_Delegation(entry, context);
|
|
3960
|
-
});
|
|
3961
|
-
return retVal;
|
|
3962
|
-
};
|
|
3963
|
-
const de_Evidence = (output, context) => {
|
|
3964
|
-
return (0, smithy_client_1.take)(output, {
|
|
3965
|
-
assessmentReportSelection: smithy_client_1.expectString,
|
|
3966
|
-
attributes: smithy_client_1._json,
|
|
3967
|
-
awsAccountId: smithy_client_1.expectString,
|
|
3968
|
-
awsOrganization: smithy_client_1.expectString,
|
|
3969
|
-
complianceCheck: smithy_client_1.expectString,
|
|
3970
|
-
dataSource: smithy_client_1.expectString,
|
|
3971
|
-
eventName: smithy_client_1.expectString,
|
|
3972
|
-
eventSource: smithy_client_1.expectString,
|
|
3973
|
-
evidenceAwsAccountId: smithy_client_1.expectString,
|
|
3974
|
-
evidenceByType: smithy_client_1.expectString,
|
|
3975
|
-
evidenceFolderId: smithy_client_1.expectString,
|
|
3976
|
-
iamId: smithy_client_1.expectString,
|
|
3977
|
-
id: smithy_client_1.expectString,
|
|
3978
|
-
resourcesIncluded: smithy_client_1._json,
|
|
3979
|
-
time: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3980
|
-
});
|
|
3981
|
-
};
|
|
3982
|
-
const de_EvidenceList = (output, context) => {
|
|
3983
|
-
const retVal = (output || [])
|
|
3984
|
-
.filter((e) => e != null)
|
|
3985
|
-
.map((entry) => {
|
|
3986
|
-
return de_Evidence(entry, context);
|
|
3987
|
-
});
|
|
3988
|
-
return retVal;
|
|
3989
|
-
};
|
|
3990
|
-
const de_Framework = (output, context) => {
|
|
3991
|
-
return (0, smithy_client_1.take)(output, {
|
|
3992
|
-
arn: smithy_client_1.expectString,
|
|
3993
|
-
complianceType: smithy_client_1.expectString,
|
|
3994
|
-
controlSets: (_) => de_ControlSets(_, context),
|
|
3995
|
-
controlSources: smithy_client_1.expectString,
|
|
3996
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3997
|
-
createdBy: smithy_client_1.expectString,
|
|
3998
|
-
description: smithy_client_1.expectString,
|
|
3999
|
-
id: smithy_client_1.expectString,
|
|
4000
|
-
lastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4001
|
-
lastUpdatedBy: smithy_client_1.expectString,
|
|
4002
|
-
logo: smithy_client_1.expectString,
|
|
4003
|
-
name: smithy_client_1.expectString,
|
|
4004
|
-
tags: smithy_client_1._json,
|
|
4005
|
-
type: smithy_client_1.expectString,
|
|
4006
|
-
});
|
|
4007
|
-
};
|
|
4008
|
-
const de_FrameworkMetadataList = (output, context) => {
|
|
4009
|
-
const retVal = (output || [])
|
|
4010
|
-
.filter((e) => e != null)
|
|
4011
|
-
.map((entry) => {
|
|
4012
|
-
return de_AssessmentFrameworkMetadata(entry, context);
|
|
4013
|
-
});
|
|
4014
|
-
return retVal;
|
|
4015
|
-
};
|
|
4016
|
-
const de_Insights = (output, context) => {
|
|
4017
|
-
return (0, smithy_client_1.take)(output, {
|
|
4018
|
-
activeAssessmentsCount: smithy_client_1.expectInt32,
|
|
4019
|
-
assessmentControlsCountByNoncompliantEvidence: smithy_client_1.expectInt32,
|
|
4020
|
-
compliantEvidenceCount: smithy_client_1.expectInt32,
|
|
4021
|
-
inconclusiveEvidenceCount: smithy_client_1.expectInt32,
|
|
4022
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4023
|
-
noncompliantEvidenceCount: smithy_client_1.expectInt32,
|
|
4024
|
-
totalAssessmentControlsCount: smithy_client_1.expectInt32,
|
|
4025
|
-
});
|
|
4026
|
-
};
|
|
4027
|
-
const de_InsightsByAssessment = (output, context) => {
|
|
4028
|
-
return (0, smithy_client_1.take)(output, {
|
|
4029
|
-
assessmentControlsCountByNoncompliantEvidence: smithy_client_1.expectInt32,
|
|
4030
|
-
compliantEvidenceCount: smithy_client_1.expectInt32,
|
|
4031
|
-
inconclusiveEvidenceCount: smithy_client_1.expectInt32,
|
|
4032
|
-
lastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4033
|
-
noncompliantEvidenceCount: smithy_client_1.expectInt32,
|
|
4034
|
-
totalAssessmentControlsCount: smithy_client_1.expectInt32,
|
|
4035
|
-
});
|
|
4036
|
-
};
|
|
4037
|
-
const de_ListAssessmentMetadata = (output, context) => {
|
|
4038
|
-
const retVal = (output || [])
|
|
4039
|
-
.filter((e) => e != null)
|
|
4040
|
-
.map((entry) => {
|
|
4041
|
-
return de_AssessmentMetadataItem(entry, context);
|
|
4042
|
-
});
|
|
4043
|
-
return retVal;
|
|
4044
|
-
};
|
|
4045
|
-
const de_Notification = (output, context) => {
|
|
4046
|
-
return (0, smithy_client_1.take)(output, {
|
|
4047
|
-
assessmentId: smithy_client_1.expectString,
|
|
4048
|
-
assessmentName: smithy_client_1.expectString,
|
|
4049
|
-
controlSetId: smithy_client_1.expectString,
|
|
4050
|
-
controlSetName: smithy_client_1.expectString,
|
|
4051
|
-
description: smithy_client_1.expectString,
|
|
4052
|
-
eventTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4053
|
-
id: smithy_client_1.expectString,
|
|
4054
|
-
source: smithy_client_1.expectString,
|
|
4055
|
-
});
|
|
4056
|
-
};
|
|
4057
|
-
const de_Notifications = (output, context) => {
|
|
4058
|
-
const retVal = (output || [])
|
|
4059
|
-
.filter((e) => e != null)
|
|
4060
|
-
.map((entry) => {
|
|
4061
|
-
return de_Notification(entry, context);
|
|
4062
|
-
});
|
|
4063
|
-
return retVal;
|
|
4064
|
-
};
|
|
4065
|
-
const deserializeMetadata = (output) => ({
|
|
4066
|
-
httpStatusCode: output.statusCode,
|
|
4067
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4068
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4069
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4070
|
-
});
|
|
4071
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4072
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4073
|
-
value !== null &&
|
|
4074
|
-
value !== "" &&
|
|
4075
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4076
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4077
|
-
const _aI = "assessmentId";
|
|
4078
|
-
const _cDI = "controlDomainId";
|
|
4079
|
-
const _cI = "controlId";
|
|
4080
|
-
const _cSI = "controlSetId";
|
|
4081
|
-
const _cT = "controlType";
|
|
4082
|
-
const _fN = "fileName";
|
|
4083
|
-
const _fT = "frameworkType";
|
|
4084
|
-
const _mR = "maxResults";
|
|
4085
|
-
const _nT = "nextToken";
|
|
4086
|
-
const _rT = "requestType";
|
|
4087
|
-
const _s = "status";
|
|
4088
|
-
const _so = "source";
|
|
4089
|
-
const _tK = "tagKeys";
|
|
4090
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4091
|
-
if (encoded.length) {
|
|
4092
|
-
return JSON.parse(encoded);
|
|
4093
|
-
}
|
|
4094
|
-
return {};
|
|
4095
|
-
});
|
|
4096
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4097
|
-
const value = await parseBody(errorBody, context);
|
|
4098
|
-
value.message = value.message ?? value.Message;
|
|
4099
|
-
return value;
|
|
4100
|
-
};
|
|
4101
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4102
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4103
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4104
|
-
let cleanValue = rawValue;
|
|
4105
|
-
if (typeof cleanValue === "number") {
|
|
4106
|
-
cleanValue = cleanValue.toString();
|
|
4107
|
-
}
|
|
4108
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4109
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4110
|
-
}
|
|
4111
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4112
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4113
|
-
}
|
|
4114
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4115
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4116
|
-
}
|
|
4117
|
-
return cleanValue;
|
|
4118
|
-
};
|
|
4119
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4120
|
-
if (headerKey !== undefined) {
|
|
4121
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4122
|
-
}
|
|
4123
|
-
if (data.code !== undefined) {
|
|
4124
|
-
return sanitizeErrorCode(data.code);
|
|
4125
|
-
}
|
|
4126
|
-
if (data["__type"] !== undefined) {
|
|
4127
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4128
|
-
}
|
|
4129
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|