@aws-sdk/client-inspector 3.306.0 → 3.309.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/commands/AddAttributesToFindingsCommand.js +2 -2
- package/dist-cjs/commands/CreateAssessmentTargetCommand.js +2 -2
- package/dist-cjs/commands/CreateAssessmentTemplateCommand.js +2 -2
- package/dist-cjs/commands/CreateExclusionsPreviewCommand.js +2 -2
- package/dist-cjs/commands/CreateResourceGroupCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssessmentRunCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssessmentTargetCommand.js +2 -2
- package/dist-cjs/commands/DeleteAssessmentTemplateCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssessmentRunsCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssessmentTargetsCommand.js +2 -2
- package/dist-cjs/commands/DescribeAssessmentTemplatesCommand.js +2 -2
- package/dist-cjs/commands/DescribeCrossAccountAccessRoleCommand.js +2 -2
- package/dist-cjs/commands/DescribeExclusionsCommand.js +2 -2
- package/dist-cjs/commands/DescribeFindingsCommand.js +2 -2
- package/dist-cjs/commands/DescribeResourceGroupsCommand.js +2 -2
- package/dist-cjs/commands/DescribeRulesPackagesCommand.js +2 -2
- package/dist-cjs/commands/GetAssessmentReportCommand.js +2 -2
- package/dist-cjs/commands/GetExclusionsPreviewCommand.js +2 -2
- package/dist-cjs/commands/GetTelemetryMetadataCommand.js +2 -2
- package/dist-cjs/commands/ListAssessmentRunAgentsCommand.js +2 -2
- package/dist-cjs/commands/ListAssessmentRunsCommand.js +2 -2
- package/dist-cjs/commands/ListAssessmentTargetsCommand.js +2 -2
- package/dist-cjs/commands/ListAssessmentTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListEventSubscriptionsCommand.js +2 -2
- package/dist-cjs/commands/ListExclusionsCommand.js +2 -2
- package/dist-cjs/commands/ListFindingsCommand.js +2 -2
- package/dist-cjs/commands/ListRulesPackagesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/PreviewAgentsCommand.js +2 -2
- package/dist-cjs/commands/RegisterCrossAccountAccessRoleCommand.js +2 -2
- package/dist-cjs/commands/RemoveAttributesFromFindingsCommand.js +2 -2
- package/dist-cjs/commands/SetTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartAssessmentRunCommand.js +2 -2
- package/dist-cjs/commands/StopAssessmentRunCommand.js +2 -2
- package/dist-cjs/commands/SubscribeToEventCommand.js +2 -2
- package/dist-cjs/commands/UnsubscribeFromEventCommand.js +2 -2
- package/dist-cjs/commands/UpdateAssessmentTargetCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +757 -823
- package/dist-es/commands/AddAttributesToFindingsCommand.js +3 -3
- package/dist-es/commands/CreateAssessmentTargetCommand.js +3 -3
- package/dist-es/commands/CreateAssessmentTemplateCommand.js +3 -3
- package/dist-es/commands/CreateExclusionsPreviewCommand.js +3 -3
- package/dist-es/commands/CreateResourceGroupCommand.js +3 -3
- package/dist-es/commands/DeleteAssessmentRunCommand.js +3 -3
- package/dist-es/commands/DeleteAssessmentTargetCommand.js +3 -3
- package/dist-es/commands/DeleteAssessmentTemplateCommand.js +3 -3
- package/dist-es/commands/DescribeAssessmentRunsCommand.js +3 -3
- package/dist-es/commands/DescribeAssessmentTargetsCommand.js +3 -3
- package/dist-es/commands/DescribeAssessmentTemplatesCommand.js +3 -3
- package/dist-es/commands/DescribeCrossAccountAccessRoleCommand.js +3 -3
- package/dist-es/commands/DescribeExclusionsCommand.js +3 -3
- package/dist-es/commands/DescribeFindingsCommand.js +3 -3
- package/dist-es/commands/DescribeResourceGroupsCommand.js +3 -3
- package/dist-es/commands/DescribeRulesPackagesCommand.js +3 -3
- package/dist-es/commands/GetAssessmentReportCommand.js +3 -3
- package/dist-es/commands/GetExclusionsPreviewCommand.js +3 -3
- package/dist-es/commands/GetTelemetryMetadataCommand.js +3 -3
- package/dist-es/commands/ListAssessmentRunAgentsCommand.js +3 -3
- package/dist-es/commands/ListAssessmentRunsCommand.js +3 -3
- package/dist-es/commands/ListAssessmentTargetsCommand.js +3 -3
- package/dist-es/commands/ListAssessmentTemplatesCommand.js +3 -3
- package/dist-es/commands/ListEventSubscriptionsCommand.js +3 -3
- package/dist-es/commands/ListExclusionsCommand.js +3 -3
- package/dist-es/commands/ListFindingsCommand.js +3 -3
- package/dist-es/commands/ListRulesPackagesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/PreviewAgentsCommand.js +3 -3
- package/dist-es/commands/RegisterCrossAccountAccessRoleCommand.js +3 -3
- package/dist-es/commands/RemoveAttributesFromFindingsCommand.js +3 -3
- package/dist-es/commands/SetTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartAssessmentRunCommand.js +3 -3
- package/dist-es/commands/StopAssessmentRunCommand.js +3 -3
- package/dist-es/commands/SubscribeToEventCommand.js +3 -3
- package/dist-es/commands/UnsubscribeFromEventCommand.js +3 -3
- package/dist-es/commands/UpdateAssessmentTargetCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +681 -747
- package/dist-types/protocols/Aws_json1_1.d.ts +296 -74
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +74 -74
- package/package.json +6 -6
|
@@ -2,106 +2,106 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { InspectorServiceException as __BaseException } from "../models/InspectorServiceException";
|
|
4
4
|
import { AccessDeniedException, AgentsAlreadyRunningAssessmentException, AssessmentRunInProgressException, InternalException, InvalidCrossAccountRoleException, InvalidInputException, LimitExceededException, NoSuchEntityException, PreviewGenerationInProgressException, ServiceTemporarilyUnavailableException, UnsupportedFeatureException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_AddAttributesToFindingsCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
8
8
|
"x-amz-target": "InspectorService.AddAttributesToFindings",
|
|
9
9
|
};
|
|
10
10
|
let body;
|
|
11
|
-
body = JSON.stringify(
|
|
11
|
+
body = JSON.stringify(se_AddAttributesToFindingsRequest(input, context));
|
|
12
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
13
13
|
};
|
|
14
|
-
export const
|
|
14
|
+
export const se_CreateAssessmentTargetCommand = async (input, context) => {
|
|
15
15
|
const headers = {
|
|
16
16
|
"content-type": "application/x-amz-json-1.1",
|
|
17
17
|
"x-amz-target": "InspectorService.CreateAssessmentTarget",
|
|
18
18
|
};
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(se_CreateAssessmentTargetRequest(input, context));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
|
-
export const
|
|
23
|
+
export const se_CreateAssessmentTemplateCommand = async (input, context) => {
|
|
24
24
|
const headers = {
|
|
25
25
|
"content-type": "application/x-amz-json-1.1",
|
|
26
26
|
"x-amz-target": "InspectorService.CreateAssessmentTemplate",
|
|
27
27
|
};
|
|
28
28
|
let body;
|
|
29
|
-
body = JSON.stringify(
|
|
29
|
+
body = JSON.stringify(se_CreateAssessmentTemplateRequest(input, context));
|
|
30
30
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
31
31
|
};
|
|
32
|
-
export const
|
|
32
|
+
export const se_CreateExclusionsPreviewCommand = async (input, context) => {
|
|
33
33
|
const headers = {
|
|
34
34
|
"content-type": "application/x-amz-json-1.1",
|
|
35
35
|
"x-amz-target": "InspectorService.CreateExclusionsPreview",
|
|
36
36
|
};
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(se_CreateExclusionsPreviewRequest(input, context));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
|
-
export const
|
|
41
|
+
export const se_CreateResourceGroupCommand = async (input, context) => {
|
|
42
42
|
const headers = {
|
|
43
43
|
"content-type": "application/x-amz-json-1.1",
|
|
44
44
|
"x-amz-target": "InspectorService.CreateResourceGroup",
|
|
45
45
|
};
|
|
46
46
|
let body;
|
|
47
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify(se_CreateResourceGroupRequest(input, context));
|
|
48
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
49
|
};
|
|
50
|
-
export const
|
|
50
|
+
export const se_DeleteAssessmentRunCommand = async (input, context) => {
|
|
51
51
|
const headers = {
|
|
52
52
|
"content-type": "application/x-amz-json-1.1",
|
|
53
53
|
"x-amz-target": "InspectorService.DeleteAssessmentRun",
|
|
54
54
|
};
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(se_DeleteAssessmentRunRequest(input, context));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
|
-
export const
|
|
59
|
+
export const se_DeleteAssessmentTargetCommand = async (input, context) => {
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/x-amz-json-1.1",
|
|
62
62
|
"x-amz-target": "InspectorService.DeleteAssessmentTarget",
|
|
63
63
|
};
|
|
64
64
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
65
|
+
body = JSON.stringify(se_DeleteAssessmentTargetRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_DeleteAssessmentTemplateCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "InspectorService.DeleteAssessmentTemplate",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_DeleteAssessmentTemplateRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
export const
|
|
77
|
+
export const se_DescribeAssessmentRunsCommand = async (input, context) => {
|
|
78
78
|
const headers = {
|
|
79
79
|
"content-type": "application/x-amz-json-1.1",
|
|
80
80
|
"x-amz-target": "InspectorService.DescribeAssessmentRuns",
|
|
81
81
|
};
|
|
82
82
|
let body;
|
|
83
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify(se_DescribeAssessmentRunsRequest(input, context));
|
|
84
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
85
|
};
|
|
86
|
-
export const
|
|
86
|
+
export const se_DescribeAssessmentTargetsCommand = async (input, context) => {
|
|
87
87
|
const headers = {
|
|
88
88
|
"content-type": "application/x-amz-json-1.1",
|
|
89
89
|
"x-amz-target": "InspectorService.DescribeAssessmentTargets",
|
|
90
90
|
};
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(se_DescribeAssessmentTargetsRequest(input, context));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
|
-
export const
|
|
95
|
+
export const se_DescribeAssessmentTemplatesCommand = async (input, context) => {
|
|
96
96
|
const headers = {
|
|
97
97
|
"content-type": "application/x-amz-json-1.1",
|
|
98
98
|
"x-amz-target": "InspectorService.DescribeAssessmentTemplates",
|
|
99
99
|
};
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify(
|
|
101
|
+
body = JSON.stringify(se_DescribeAssessmentTemplatesRequest(input, context));
|
|
102
102
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
103
103
|
};
|
|
104
|
-
export const
|
|
104
|
+
export const se_DescribeCrossAccountAccessRoleCommand = async (input, context) => {
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/x-amz-json-1.1",
|
|
107
107
|
"x-amz-target": "InspectorService.DescribeCrossAccountAccessRole",
|
|
@@ -109,245 +109,245 @@ export const serializeAws_json1_1DescribeCrossAccountAccessRoleCommand = async (
|
|
|
109
109
|
const body = "{}";
|
|
110
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
111
111
|
};
|
|
112
|
-
export const
|
|
112
|
+
export const se_DescribeExclusionsCommand = async (input, context) => {
|
|
113
113
|
const headers = {
|
|
114
114
|
"content-type": "application/x-amz-json-1.1",
|
|
115
115
|
"x-amz-target": "InspectorService.DescribeExclusions",
|
|
116
116
|
};
|
|
117
117
|
let body;
|
|
118
|
-
body = JSON.stringify(
|
|
118
|
+
body = JSON.stringify(se_DescribeExclusionsRequest(input, context));
|
|
119
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
120
|
};
|
|
121
|
-
export const
|
|
121
|
+
export const se_DescribeFindingsCommand = async (input, context) => {
|
|
122
122
|
const headers = {
|
|
123
123
|
"content-type": "application/x-amz-json-1.1",
|
|
124
124
|
"x-amz-target": "InspectorService.DescribeFindings",
|
|
125
125
|
};
|
|
126
126
|
let body;
|
|
127
|
-
body = JSON.stringify(
|
|
127
|
+
body = JSON.stringify(se_DescribeFindingsRequest(input, context));
|
|
128
128
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
129
129
|
};
|
|
130
|
-
export const
|
|
130
|
+
export const se_DescribeResourceGroupsCommand = async (input, context) => {
|
|
131
131
|
const headers = {
|
|
132
132
|
"content-type": "application/x-amz-json-1.1",
|
|
133
133
|
"x-amz-target": "InspectorService.DescribeResourceGroups",
|
|
134
134
|
};
|
|
135
135
|
let body;
|
|
136
|
-
body = JSON.stringify(
|
|
136
|
+
body = JSON.stringify(se_DescribeResourceGroupsRequest(input, context));
|
|
137
137
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
138
|
};
|
|
139
|
-
export const
|
|
139
|
+
export const se_DescribeRulesPackagesCommand = async (input, context) => {
|
|
140
140
|
const headers = {
|
|
141
141
|
"content-type": "application/x-amz-json-1.1",
|
|
142
142
|
"x-amz-target": "InspectorService.DescribeRulesPackages",
|
|
143
143
|
};
|
|
144
144
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
145
|
+
body = JSON.stringify(se_DescribeRulesPackagesRequest(input, context));
|
|
146
146
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
147
|
};
|
|
148
|
-
export const
|
|
148
|
+
export const se_GetAssessmentReportCommand = async (input, context) => {
|
|
149
149
|
const headers = {
|
|
150
150
|
"content-type": "application/x-amz-json-1.1",
|
|
151
151
|
"x-amz-target": "InspectorService.GetAssessmentReport",
|
|
152
152
|
};
|
|
153
153
|
let body;
|
|
154
|
-
body = JSON.stringify(
|
|
154
|
+
body = JSON.stringify(se_GetAssessmentReportRequest(input, context));
|
|
155
155
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
156
|
};
|
|
157
|
-
export const
|
|
157
|
+
export const se_GetExclusionsPreviewCommand = async (input, context) => {
|
|
158
158
|
const headers = {
|
|
159
159
|
"content-type": "application/x-amz-json-1.1",
|
|
160
160
|
"x-amz-target": "InspectorService.GetExclusionsPreview",
|
|
161
161
|
};
|
|
162
162
|
let body;
|
|
163
|
-
body = JSON.stringify(
|
|
163
|
+
body = JSON.stringify(se_GetExclusionsPreviewRequest(input, context));
|
|
164
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
165
165
|
};
|
|
166
|
-
export const
|
|
166
|
+
export const se_GetTelemetryMetadataCommand = async (input, context) => {
|
|
167
167
|
const headers = {
|
|
168
168
|
"content-type": "application/x-amz-json-1.1",
|
|
169
169
|
"x-amz-target": "InspectorService.GetTelemetryMetadata",
|
|
170
170
|
};
|
|
171
171
|
let body;
|
|
172
|
-
body = JSON.stringify(
|
|
172
|
+
body = JSON.stringify(se_GetTelemetryMetadataRequest(input, context));
|
|
173
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
174
|
};
|
|
175
|
-
export const
|
|
175
|
+
export const se_ListAssessmentRunAgentsCommand = async (input, context) => {
|
|
176
176
|
const headers = {
|
|
177
177
|
"content-type": "application/x-amz-json-1.1",
|
|
178
178
|
"x-amz-target": "InspectorService.ListAssessmentRunAgents",
|
|
179
179
|
};
|
|
180
180
|
let body;
|
|
181
|
-
body = JSON.stringify(
|
|
181
|
+
body = JSON.stringify(se_ListAssessmentRunAgentsRequest(input, context));
|
|
182
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
183
183
|
};
|
|
184
|
-
export const
|
|
184
|
+
export const se_ListAssessmentRunsCommand = async (input, context) => {
|
|
185
185
|
const headers = {
|
|
186
186
|
"content-type": "application/x-amz-json-1.1",
|
|
187
187
|
"x-amz-target": "InspectorService.ListAssessmentRuns",
|
|
188
188
|
};
|
|
189
189
|
let body;
|
|
190
|
-
body = JSON.stringify(
|
|
190
|
+
body = JSON.stringify(se_ListAssessmentRunsRequest(input, context));
|
|
191
191
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
192
192
|
};
|
|
193
|
-
export const
|
|
193
|
+
export const se_ListAssessmentTargetsCommand = async (input, context) => {
|
|
194
194
|
const headers = {
|
|
195
195
|
"content-type": "application/x-amz-json-1.1",
|
|
196
196
|
"x-amz-target": "InspectorService.ListAssessmentTargets",
|
|
197
197
|
};
|
|
198
198
|
let body;
|
|
199
|
-
body = JSON.stringify(
|
|
199
|
+
body = JSON.stringify(se_ListAssessmentTargetsRequest(input, context));
|
|
200
200
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
201
201
|
};
|
|
202
|
-
export const
|
|
202
|
+
export const se_ListAssessmentTemplatesCommand = async (input, context) => {
|
|
203
203
|
const headers = {
|
|
204
204
|
"content-type": "application/x-amz-json-1.1",
|
|
205
205
|
"x-amz-target": "InspectorService.ListAssessmentTemplates",
|
|
206
206
|
};
|
|
207
207
|
let body;
|
|
208
|
-
body = JSON.stringify(
|
|
208
|
+
body = JSON.stringify(se_ListAssessmentTemplatesRequest(input, context));
|
|
209
209
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
210
|
};
|
|
211
|
-
export const
|
|
211
|
+
export const se_ListEventSubscriptionsCommand = async (input, context) => {
|
|
212
212
|
const headers = {
|
|
213
213
|
"content-type": "application/x-amz-json-1.1",
|
|
214
214
|
"x-amz-target": "InspectorService.ListEventSubscriptions",
|
|
215
215
|
};
|
|
216
216
|
let body;
|
|
217
|
-
body = JSON.stringify(
|
|
217
|
+
body = JSON.stringify(se_ListEventSubscriptionsRequest(input, context));
|
|
218
218
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
219
|
};
|
|
220
|
-
export const
|
|
220
|
+
export const se_ListExclusionsCommand = async (input, context) => {
|
|
221
221
|
const headers = {
|
|
222
222
|
"content-type": "application/x-amz-json-1.1",
|
|
223
223
|
"x-amz-target": "InspectorService.ListExclusions",
|
|
224
224
|
};
|
|
225
225
|
let body;
|
|
226
|
-
body = JSON.stringify(
|
|
226
|
+
body = JSON.stringify(se_ListExclusionsRequest(input, context));
|
|
227
227
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
228
|
};
|
|
229
|
-
export const
|
|
229
|
+
export const se_ListFindingsCommand = async (input, context) => {
|
|
230
230
|
const headers = {
|
|
231
231
|
"content-type": "application/x-amz-json-1.1",
|
|
232
232
|
"x-amz-target": "InspectorService.ListFindings",
|
|
233
233
|
};
|
|
234
234
|
let body;
|
|
235
|
-
body = JSON.stringify(
|
|
235
|
+
body = JSON.stringify(se_ListFindingsRequest(input, context));
|
|
236
236
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
237
237
|
};
|
|
238
|
-
export const
|
|
238
|
+
export const se_ListRulesPackagesCommand = async (input, context) => {
|
|
239
239
|
const headers = {
|
|
240
240
|
"content-type": "application/x-amz-json-1.1",
|
|
241
241
|
"x-amz-target": "InspectorService.ListRulesPackages",
|
|
242
242
|
};
|
|
243
243
|
let body;
|
|
244
|
-
body = JSON.stringify(
|
|
244
|
+
body = JSON.stringify(se_ListRulesPackagesRequest(input, context));
|
|
245
245
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
246
|
};
|
|
247
|
-
export const
|
|
247
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
248
248
|
const headers = {
|
|
249
249
|
"content-type": "application/x-amz-json-1.1",
|
|
250
250
|
"x-amz-target": "InspectorService.ListTagsForResource",
|
|
251
251
|
};
|
|
252
252
|
let body;
|
|
253
|
-
body = JSON.stringify(
|
|
253
|
+
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
254
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
255
255
|
};
|
|
256
|
-
export const
|
|
256
|
+
export const se_PreviewAgentsCommand = async (input, context) => {
|
|
257
257
|
const headers = {
|
|
258
258
|
"content-type": "application/x-amz-json-1.1",
|
|
259
259
|
"x-amz-target": "InspectorService.PreviewAgents",
|
|
260
260
|
};
|
|
261
261
|
let body;
|
|
262
|
-
body = JSON.stringify(
|
|
262
|
+
body = JSON.stringify(se_PreviewAgentsRequest(input, context));
|
|
263
263
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
264
264
|
};
|
|
265
|
-
export const
|
|
265
|
+
export const se_RegisterCrossAccountAccessRoleCommand = async (input, context) => {
|
|
266
266
|
const headers = {
|
|
267
267
|
"content-type": "application/x-amz-json-1.1",
|
|
268
268
|
"x-amz-target": "InspectorService.RegisterCrossAccountAccessRole",
|
|
269
269
|
};
|
|
270
270
|
let body;
|
|
271
|
-
body = JSON.stringify(
|
|
271
|
+
body = JSON.stringify(se_RegisterCrossAccountAccessRoleRequest(input, context));
|
|
272
272
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
273
|
};
|
|
274
|
-
export const
|
|
274
|
+
export const se_RemoveAttributesFromFindingsCommand = async (input, context) => {
|
|
275
275
|
const headers = {
|
|
276
276
|
"content-type": "application/x-amz-json-1.1",
|
|
277
277
|
"x-amz-target": "InspectorService.RemoveAttributesFromFindings",
|
|
278
278
|
};
|
|
279
279
|
let body;
|
|
280
|
-
body = JSON.stringify(
|
|
280
|
+
body = JSON.stringify(se_RemoveAttributesFromFindingsRequest(input, context));
|
|
281
281
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
282
|
};
|
|
283
|
-
export const
|
|
283
|
+
export const se_SetTagsForResourceCommand = async (input, context) => {
|
|
284
284
|
const headers = {
|
|
285
285
|
"content-type": "application/x-amz-json-1.1",
|
|
286
286
|
"x-amz-target": "InspectorService.SetTagsForResource",
|
|
287
287
|
};
|
|
288
288
|
let body;
|
|
289
|
-
body = JSON.stringify(
|
|
289
|
+
body = JSON.stringify(se_SetTagsForResourceRequest(input, context));
|
|
290
290
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
291
291
|
};
|
|
292
|
-
export const
|
|
292
|
+
export const se_StartAssessmentRunCommand = async (input, context) => {
|
|
293
293
|
const headers = {
|
|
294
294
|
"content-type": "application/x-amz-json-1.1",
|
|
295
295
|
"x-amz-target": "InspectorService.StartAssessmentRun",
|
|
296
296
|
};
|
|
297
297
|
let body;
|
|
298
|
-
body = JSON.stringify(
|
|
298
|
+
body = JSON.stringify(se_StartAssessmentRunRequest(input, context));
|
|
299
299
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
300
300
|
};
|
|
301
|
-
export const
|
|
301
|
+
export const se_StopAssessmentRunCommand = async (input, context) => {
|
|
302
302
|
const headers = {
|
|
303
303
|
"content-type": "application/x-amz-json-1.1",
|
|
304
304
|
"x-amz-target": "InspectorService.StopAssessmentRun",
|
|
305
305
|
};
|
|
306
306
|
let body;
|
|
307
|
-
body = JSON.stringify(
|
|
307
|
+
body = JSON.stringify(se_StopAssessmentRunRequest(input, context));
|
|
308
308
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
309
309
|
};
|
|
310
|
-
export const
|
|
310
|
+
export const se_SubscribeToEventCommand = async (input, context) => {
|
|
311
311
|
const headers = {
|
|
312
312
|
"content-type": "application/x-amz-json-1.1",
|
|
313
313
|
"x-amz-target": "InspectorService.SubscribeToEvent",
|
|
314
314
|
};
|
|
315
315
|
let body;
|
|
316
|
-
body = JSON.stringify(
|
|
316
|
+
body = JSON.stringify(se_SubscribeToEventRequest(input, context));
|
|
317
317
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
318
|
};
|
|
319
|
-
export const
|
|
319
|
+
export const se_UnsubscribeFromEventCommand = async (input, context) => {
|
|
320
320
|
const headers = {
|
|
321
321
|
"content-type": "application/x-amz-json-1.1",
|
|
322
322
|
"x-amz-target": "InspectorService.UnsubscribeFromEvent",
|
|
323
323
|
};
|
|
324
324
|
let body;
|
|
325
|
-
body = JSON.stringify(
|
|
325
|
+
body = JSON.stringify(se_UnsubscribeFromEventRequest(input, context));
|
|
326
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
327
327
|
};
|
|
328
|
-
export const
|
|
328
|
+
export const se_UpdateAssessmentTargetCommand = async (input, context) => {
|
|
329
329
|
const headers = {
|
|
330
330
|
"content-type": "application/x-amz-json-1.1",
|
|
331
331
|
"x-amz-target": "InspectorService.UpdateAssessmentTarget",
|
|
332
332
|
};
|
|
333
333
|
let body;
|
|
334
|
-
body = JSON.stringify(
|
|
334
|
+
body = JSON.stringify(se_UpdateAssessmentTargetRequest(input, context));
|
|
335
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
336
|
};
|
|
337
|
-
export const
|
|
337
|
+
export const de_AddAttributesToFindingsCommand = async (output, context) => {
|
|
338
338
|
if (output.statusCode >= 300) {
|
|
339
|
-
return
|
|
339
|
+
return de_AddAttributesToFindingsCommandError(output, context);
|
|
340
340
|
}
|
|
341
341
|
const data = await parseBody(output.body, context);
|
|
342
342
|
let contents = {};
|
|
343
|
-
contents =
|
|
343
|
+
contents = de_AddAttributesToFindingsResponse(data, context);
|
|
344
344
|
const response = {
|
|
345
345
|
$metadata: deserializeMetadata(output),
|
|
346
346
|
...contents,
|
|
347
347
|
};
|
|
348
348
|
return Promise.resolve(response);
|
|
349
349
|
};
|
|
350
|
-
const
|
|
350
|
+
const de_AddAttributesToFindingsCommandError = async (output, context) => {
|
|
351
351
|
const parsedOutput = {
|
|
352
352
|
...output,
|
|
353
353
|
body: await parseErrorBody(output.body, context),
|
|
@@ -356,19 +356,19 @@ const deserializeAws_json1_1AddAttributesToFindingsCommandError = async (output,
|
|
|
356
356
|
switch (errorCode) {
|
|
357
357
|
case "AccessDeniedException":
|
|
358
358
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
359
|
-
throw await
|
|
359
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
360
360
|
case "InternalException":
|
|
361
361
|
case "com.amazonaws.inspector#InternalException":
|
|
362
|
-
throw await
|
|
362
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
363
363
|
case "InvalidInputException":
|
|
364
364
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
365
|
-
throw await
|
|
365
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
366
366
|
case "NoSuchEntityException":
|
|
367
367
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
368
|
-
throw await
|
|
368
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
369
369
|
case "ServiceTemporarilyUnavailableException":
|
|
370
370
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
371
|
-
throw await
|
|
371
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
372
372
|
default:
|
|
373
373
|
const parsedBody = parsedOutput.body;
|
|
374
374
|
throwDefaultError({
|
|
@@ -379,20 +379,20 @@ const deserializeAws_json1_1AddAttributesToFindingsCommandError = async (output,
|
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
|
-
export const
|
|
382
|
+
export const de_CreateAssessmentTargetCommand = async (output, context) => {
|
|
383
383
|
if (output.statusCode >= 300) {
|
|
384
|
-
return
|
|
384
|
+
return de_CreateAssessmentTargetCommandError(output, context);
|
|
385
385
|
}
|
|
386
386
|
const data = await parseBody(output.body, context);
|
|
387
387
|
let contents = {};
|
|
388
|
-
contents =
|
|
388
|
+
contents = de_CreateAssessmentTargetResponse(data, context);
|
|
389
389
|
const response = {
|
|
390
390
|
$metadata: deserializeMetadata(output),
|
|
391
391
|
...contents,
|
|
392
392
|
};
|
|
393
393
|
return Promise.resolve(response);
|
|
394
394
|
};
|
|
395
|
-
const
|
|
395
|
+
const de_CreateAssessmentTargetCommandError = async (output, context) => {
|
|
396
396
|
const parsedOutput = {
|
|
397
397
|
...output,
|
|
398
398
|
body: await parseErrorBody(output.body, context),
|
|
@@ -401,25 +401,25 @@ const deserializeAws_json1_1CreateAssessmentTargetCommandError = async (output,
|
|
|
401
401
|
switch (errorCode) {
|
|
402
402
|
case "AccessDeniedException":
|
|
403
403
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
404
|
-
throw await
|
|
404
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
405
405
|
case "InternalException":
|
|
406
406
|
case "com.amazonaws.inspector#InternalException":
|
|
407
|
-
throw await
|
|
407
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
408
408
|
case "InvalidCrossAccountRoleException":
|
|
409
409
|
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
410
|
-
throw await
|
|
410
|
+
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
411
411
|
case "InvalidInputException":
|
|
412
412
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
413
|
-
throw await
|
|
413
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
414
414
|
case "LimitExceededException":
|
|
415
415
|
case "com.amazonaws.inspector#LimitExceededException":
|
|
416
|
-
throw await
|
|
416
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
417
417
|
case "NoSuchEntityException":
|
|
418
418
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
419
|
-
throw await
|
|
419
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
420
420
|
case "ServiceTemporarilyUnavailableException":
|
|
421
421
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
422
|
-
throw await
|
|
422
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
423
423
|
default:
|
|
424
424
|
const parsedBody = parsedOutput.body;
|
|
425
425
|
throwDefaultError({
|
|
@@ -430,20 +430,20 @@ const deserializeAws_json1_1CreateAssessmentTargetCommandError = async (output,
|
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
432
|
};
|
|
433
|
-
export const
|
|
433
|
+
export const de_CreateAssessmentTemplateCommand = async (output, context) => {
|
|
434
434
|
if (output.statusCode >= 300) {
|
|
435
|
-
return
|
|
435
|
+
return de_CreateAssessmentTemplateCommandError(output, context);
|
|
436
436
|
}
|
|
437
437
|
const data = await parseBody(output.body, context);
|
|
438
438
|
let contents = {};
|
|
439
|
-
contents =
|
|
439
|
+
contents = de_CreateAssessmentTemplateResponse(data, context);
|
|
440
440
|
const response = {
|
|
441
441
|
$metadata: deserializeMetadata(output),
|
|
442
442
|
...contents,
|
|
443
443
|
};
|
|
444
444
|
return Promise.resolve(response);
|
|
445
445
|
};
|
|
446
|
-
const
|
|
446
|
+
const de_CreateAssessmentTemplateCommandError = async (output, context) => {
|
|
447
447
|
const parsedOutput = {
|
|
448
448
|
...output,
|
|
449
449
|
body: await parseErrorBody(output.body, context),
|
|
@@ -452,22 +452,22 @@ const deserializeAws_json1_1CreateAssessmentTemplateCommandError = async (output
|
|
|
452
452
|
switch (errorCode) {
|
|
453
453
|
case "AccessDeniedException":
|
|
454
454
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
455
|
-
throw await
|
|
455
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
456
456
|
case "InternalException":
|
|
457
457
|
case "com.amazonaws.inspector#InternalException":
|
|
458
|
-
throw await
|
|
458
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
459
459
|
case "InvalidInputException":
|
|
460
460
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
461
|
-
throw await
|
|
461
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
462
462
|
case "LimitExceededException":
|
|
463
463
|
case "com.amazonaws.inspector#LimitExceededException":
|
|
464
|
-
throw await
|
|
464
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
465
465
|
case "NoSuchEntityException":
|
|
466
466
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
467
|
-
throw await
|
|
467
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
468
468
|
case "ServiceTemporarilyUnavailableException":
|
|
469
469
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
470
|
-
throw await
|
|
470
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
471
471
|
default:
|
|
472
472
|
const parsedBody = parsedOutput.body;
|
|
473
473
|
throwDefaultError({
|
|
@@ -478,20 +478,20 @@ const deserializeAws_json1_1CreateAssessmentTemplateCommandError = async (output
|
|
|
478
478
|
});
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
|
-
export const
|
|
481
|
+
export const de_CreateExclusionsPreviewCommand = async (output, context) => {
|
|
482
482
|
if (output.statusCode >= 300) {
|
|
483
|
-
return
|
|
483
|
+
return de_CreateExclusionsPreviewCommandError(output, context);
|
|
484
484
|
}
|
|
485
485
|
const data = await parseBody(output.body, context);
|
|
486
486
|
let contents = {};
|
|
487
|
-
contents =
|
|
487
|
+
contents = de_CreateExclusionsPreviewResponse(data, context);
|
|
488
488
|
const response = {
|
|
489
489
|
$metadata: deserializeMetadata(output),
|
|
490
490
|
...contents,
|
|
491
491
|
};
|
|
492
492
|
return Promise.resolve(response);
|
|
493
493
|
};
|
|
494
|
-
const
|
|
494
|
+
const de_CreateExclusionsPreviewCommandError = async (output, context) => {
|
|
495
495
|
const parsedOutput = {
|
|
496
496
|
...output,
|
|
497
497
|
body: await parseErrorBody(output.body, context),
|
|
@@ -500,22 +500,22 @@ const deserializeAws_json1_1CreateExclusionsPreviewCommandError = async (output,
|
|
|
500
500
|
switch (errorCode) {
|
|
501
501
|
case "AccessDeniedException":
|
|
502
502
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
503
|
-
throw await
|
|
503
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
504
504
|
case "InternalException":
|
|
505
505
|
case "com.amazonaws.inspector#InternalException":
|
|
506
|
-
throw await
|
|
506
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
507
507
|
case "InvalidInputException":
|
|
508
508
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
509
|
-
throw await
|
|
509
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
510
510
|
case "NoSuchEntityException":
|
|
511
511
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
512
|
-
throw await
|
|
512
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
513
513
|
case "PreviewGenerationInProgressException":
|
|
514
514
|
case "com.amazonaws.inspector#PreviewGenerationInProgressException":
|
|
515
|
-
throw await
|
|
515
|
+
throw await de_PreviewGenerationInProgressExceptionRes(parsedOutput, context);
|
|
516
516
|
case "ServiceTemporarilyUnavailableException":
|
|
517
517
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
518
|
-
throw await
|
|
518
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
519
519
|
default:
|
|
520
520
|
const parsedBody = parsedOutput.body;
|
|
521
521
|
throwDefaultError({
|
|
@@ -526,20 +526,20 @@ const deserializeAws_json1_1CreateExclusionsPreviewCommandError = async (output,
|
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
|
-
export const
|
|
529
|
+
export const de_CreateResourceGroupCommand = async (output, context) => {
|
|
530
530
|
if (output.statusCode >= 300) {
|
|
531
|
-
return
|
|
531
|
+
return de_CreateResourceGroupCommandError(output, context);
|
|
532
532
|
}
|
|
533
533
|
const data = await parseBody(output.body, context);
|
|
534
534
|
let contents = {};
|
|
535
|
-
contents =
|
|
535
|
+
contents = de_CreateResourceGroupResponse(data, context);
|
|
536
536
|
const response = {
|
|
537
537
|
$metadata: deserializeMetadata(output),
|
|
538
538
|
...contents,
|
|
539
539
|
};
|
|
540
540
|
return Promise.resolve(response);
|
|
541
541
|
};
|
|
542
|
-
const
|
|
542
|
+
const de_CreateResourceGroupCommandError = async (output, context) => {
|
|
543
543
|
const parsedOutput = {
|
|
544
544
|
...output,
|
|
545
545
|
body: await parseErrorBody(output.body, context),
|
|
@@ -548,19 +548,19 @@ const deserializeAws_json1_1CreateResourceGroupCommandError = async (output, con
|
|
|
548
548
|
switch (errorCode) {
|
|
549
549
|
case "AccessDeniedException":
|
|
550
550
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
551
|
-
throw await
|
|
551
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
552
552
|
case "InternalException":
|
|
553
553
|
case "com.amazonaws.inspector#InternalException":
|
|
554
|
-
throw await
|
|
554
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
555
555
|
case "InvalidInputException":
|
|
556
556
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
557
|
-
throw await
|
|
557
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
558
558
|
case "LimitExceededException":
|
|
559
559
|
case "com.amazonaws.inspector#LimitExceededException":
|
|
560
|
-
throw await
|
|
560
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
561
561
|
case "ServiceTemporarilyUnavailableException":
|
|
562
562
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
563
|
-
throw await
|
|
563
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
564
564
|
default:
|
|
565
565
|
const parsedBody = parsedOutput.body;
|
|
566
566
|
throwDefaultError({
|
|
@@ -571,9 +571,9 @@ const deserializeAws_json1_1CreateResourceGroupCommandError = async (output, con
|
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
573
|
};
|
|
574
|
-
export const
|
|
574
|
+
export const de_DeleteAssessmentRunCommand = async (output, context) => {
|
|
575
575
|
if (output.statusCode >= 300) {
|
|
576
|
-
return
|
|
576
|
+
return de_DeleteAssessmentRunCommandError(output, context);
|
|
577
577
|
}
|
|
578
578
|
await collectBody(output.body, context);
|
|
579
579
|
const response = {
|
|
@@ -581,7 +581,7 @@ export const deserializeAws_json1_1DeleteAssessmentRunCommand = async (output, c
|
|
|
581
581
|
};
|
|
582
582
|
return Promise.resolve(response);
|
|
583
583
|
};
|
|
584
|
-
const
|
|
584
|
+
const de_DeleteAssessmentRunCommandError = async (output, context) => {
|
|
585
585
|
const parsedOutput = {
|
|
586
586
|
...output,
|
|
587
587
|
body: await parseErrorBody(output.body, context),
|
|
@@ -590,22 +590,22 @@ const deserializeAws_json1_1DeleteAssessmentRunCommandError = async (output, con
|
|
|
590
590
|
switch (errorCode) {
|
|
591
591
|
case "AccessDeniedException":
|
|
592
592
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
593
|
-
throw await
|
|
593
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
594
594
|
case "AssessmentRunInProgressException":
|
|
595
595
|
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
596
|
-
throw await
|
|
596
|
+
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
597
597
|
case "InternalException":
|
|
598
598
|
case "com.amazonaws.inspector#InternalException":
|
|
599
|
-
throw await
|
|
599
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
600
600
|
case "InvalidInputException":
|
|
601
601
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
602
|
-
throw await
|
|
602
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
603
603
|
case "NoSuchEntityException":
|
|
604
604
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
605
|
-
throw await
|
|
605
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
606
606
|
case "ServiceTemporarilyUnavailableException":
|
|
607
607
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
608
|
-
throw await
|
|
608
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
609
609
|
default:
|
|
610
610
|
const parsedBody = parsedOutput.body;
|
|
611
611
|
throwDefaultError({
|
|
@@ -616,9 +616,9 @@ const deserializeAws_json1_1DeleteAssessmentRunCommandError = async (output, con
|
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
};
|
|
619
|
-
export const
|
|
619
|
+
export const de_DeleteAssessmentTargetCommand = async (output, context) => {
|
|
620
620
|
if (output.statusCode >= 300) {
|
|
621
|
-
return
|
|
621
|
+
return de_DeleteAssessmentTargetCommandError(output, context);
|
|
622
622
|
}
|
|
623
623
|
await collectBody(output.body, context);
|
|
624
624
|
const response = {
|
|
@@ -626,7 +626,7 @@ export const deserializeAws_json1_1DeleteAssessmentTargetCommand = async (output
|
|
|
626
626
|
};
|
|
627
627
|
return Promise.resolve(response);
|
|
628
628
|
};
|
|
629
|
-
const
|
|
629
|
+
const de_DeleteAssessmentTargetCommandError = async (output, context) => {
|
|
630
630
|
const parsedOutput = {
|
|
631
631
|
...output,
|
|
632
632
|
body: await parseErrorBody(output.body, context),
|
|
@@ -635,22 +635,22 @@ const deserializeAws_json1_1DeleteAssessmentTargetCommandError = async (output,
|
|
|
635
635
|
switch (errorCode) {
|
|
636
636
|
case "AccessDeniedException":
|
|
637
637
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
638
|
-
throw await
|
|
638
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
639
639
|
case "AssessmentRunInProgressException":
|
|
640
640
|
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
641
|
-
throw await
|
|
641
|
+
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
642
642
|
case "InternalException":
|
|
643
643
|
case "com.amazonaws.inspector#InternalException":
|
|
644
|
-
throw await
|
|
644
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
645
645
|
case "InvalidInputException":
|
|
646
646
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
647
|
-
throw await
|
|
647
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
648
648
|
case "NoSuchEntityException":
|
|
649
649
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
650
|
-
throw await
|
|
650
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
651
651
|
case "ServiceTemporarilyUnavailableException":
|
|
652
652
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
653
|
-
throw await
|
|
653
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
654
654
|
default:
|
|
655
655
|
const parsedBody = parsedOutput.body;
|
|
656
656
|
throwDefaultError({
|
|
@@ -661,9 +661,9 @@ const deserializeAws_json1_1DeleteAssessmentTargetCommandError = async (output,
|
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
};
|
|
664
|
-
export const
|
|
664
|
+
export const de_DeleteAssessmentTemplateCommand = async (output, context) => {
|
|
665
665
|
if (output.statusCode >= 300) {
|
|
666
|
-
return
|
|
666
|
+
return de_DeleteAssessmentTemplateCommandError(output, context);
|
|
667
667
|
}
|
|
668
668
|
await collectBody(output.body, context);
|
|
669
669
|
const response = {
|
|
@@ -671,7 +671,7 @@ export const deserializeAws_json1_1DeleteAssessmentTemplateCommand = async (outp
|
|
|
671
671
|
};
|
|
672
672
|
return Promise.resolve(response);
|
|
673
673
|
};
|
|
674
|
-
const
|
|
674
|
+
const de_DeleteAssessmentTemplateCommandError = async (output, context) => {
|
|
675
675
|
const parsedOutput = {
|
|
676
676
|
...output,
|
|
677
677
|
body: await parseErrorBody(output.body, context),
|
|
@@ -680,22 +680,22 @@ const deserializeAws_json1_1DeleteAssessmentTemplateCommandError = async (output
|
|
|
680
680
|
switch (errorCode) {
|
|
681
681
|
case "AccessDeniedException":
|
|
682
682
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
683
|
-
throw await
|
|
683
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
684
684
|
case "AssessmentRunInProgressException":
|
|
685
685
|
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
686
|
-
throw await
|
|
686
|
+
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
687
687
|
case "InternalException":
|
|
688
688
|
case "com.amazonaws.inspector#InternalException":
|
|
689
|
-
throw await
|
|
689
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
690
690
|
case "InvalidInputException":
|
|
691
691
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
692
|
-
throw await
|
|
692
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
693
693
|
case "NoSuchEntityException":
|
|
694
694
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
695
|
-
throw await
|
|
695
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
696
696
|
case "ServiceTemporarilyUnavailableException":
|
|
697
697
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
698
|
-
throw await
|
|
698
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
699
699
|
default:
|
|
700
700
|
const parsedBody = parsedOutput.body;
|
|
701
701
|
throwDefaultError({
|
|
@@ -706,20 +706,20 @@ const deserializeAws_json1_1DeleteAssessmentTemplateCommandError = async (output
|
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
|
-
export const
|
|
709
|
+
export const de_DescribeAssessmentRunsCommand = async (output, context) => {
|
|
710
710
|
if (output.statusCode >= 300) {
|
|
711
|
-
return
|
|
711
|
+
return de_DescribeAssessmentRunsCommandError(output, context);
|
|
712
712
|
}
|
|
713
713
|
const data = await parseBody(output.body, context);
|
|
714
714
|
let contents = {};
|
|
715
|
-
contents =
|
|
715
|
+
contents = de_DescribeAssessmentRunsResponse(data, context);
|
|
716
716
|
const response = {
|
|
717
717
|
$metadata: deserializeMetadata(output),
|
|
718
718
|
...contents,
|
|
719
719
|
};
|
|
720
720
|
return Promise.resolve(response);
|
|
721
721
|
};
|
|
722
|
-
const
|
|
722
|
+
const de_DescribeAssessmentRunsCommandError = async (output, context) => {
|
|
723
723
|
const parsedOutput = {
|
|
724
724
|
...output,
|
|
725
725
|
body: await parseErrorBody(output.body, context),
|
|
@@ -728,10 +728,10 @@ const deserializeAws_json1_1DescribeAssessmentRunsCommandError = async (output,
|
|
|
728
728
|
switch (errorCode) {
|
|
729
729
|
case "InternalException":
|
|
730
730
|
case "com.amazonaws.inspector#InternalException":
|
|
731
|
-
throw await
|
|
731
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
732
732
|
case "InvalidInputException":
|
|
733
733
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
734
|
-
throw await
|
|
734
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
735
735
|
default:
|
|
736
736
|
const parsedBody = parsedOutput.body;
|
|
737
737
|
throwDefaultError({
|
|
@@ -742,20 +742,20 @@ const deserializeAws_json1_1DescribeAssessmentRunsCommandError = async (output,
|
|
|
742
742
|
});
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
|
-
export const
|
|
745
|
+
export const de_DescribeAssessmentTargetsCommand = async (output, context) => {
|
|
746
746
|
if (output.statusCode >= 300) {
|
|
747
|
-
return
|
|
747
|
+
return de_DescribeAssessmentTargetsCommandError(output, context);
|
|
748
748
|
}
|
|
749
749
|
const data = await parseBody(output.body, context);
|
|
750
750
|
let contents = {};
|
|
751
|
-
contents =
|
|
751
|
+
contents = de_DescribeAssessmentTargetsResponse(data, context);
|
|
752
752
|
const response = {
|
|
753
753
|
$metadata: deserializeMetadata(output),
|
|
754
754
|
...contents,
|
|
755
755
|
};
|
|
756
756
|
return Promise.resolve(response);
|
|
757
757
|
};
|
|
758
|
-
const
|
|
758
|
+
const de_DescribeAssessmentTargetsCommandError = async (output, context) => {
|
|
759
759
|
const parsedOutput = {
|
|
760
760
|
...output,
|
|
761
761
|
body: await parseErrorBody(output.body, context),
|
|
@@ -764,10 +764,10 @@ const deserializeAws_json1_1DescribeAssessmentTargetsCommandError = async (outpu
|
|
|
764
764
|
switch (errorCode) {
|
|
765
765
|
case "InternalException":
|
|
766
766
|
case "com.amazonaws.inspector#InternalException":
|
|
767
|
-
throw await
|
|
767
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
768
768
|
case "InvalidInputException":
|
|
769
769
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
770
|
-
throw await
|
|
770
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
771
771
|
default:
|
|
772
772
|
const parsedBody = parsedOutput.body;
|
|
773
773
|
throwDefaultError({
|
|
@@ -778,20 +778,20 @@ const deserializeAws_json1_1DescribeAssessmentTargetsCommandError = async (outpu
|
|
|
778
778
|
});
|
|
779
779
|
}
|
|
780
780
|
};
|
|
781
|
-
export const
|
|
781
|
+
export const de_DescribeAssessmentTemplatesCommand = async (output, context) => {
|
|
782
782
|
if (output.statusCode >= 300) {
|
|
783
|
-
return
|
|
783
|
+
return de_DescribeAssessmentTemplatesCommandError(output, context);
|
|
784
784
|
}
|
|
785
785
|
const data = await parseBody(output.body, context);
|
|
786
786
|
let contents = {};
|
|
787
|
-
contents =
|
|
787
|
+
contents = de_DescribeAssessmentTemplatesResponse(data, context);
|
|
788
788
|
const response = {
|
|
789
789
|
$metadata: deserializeMetadata(output),
|
|
790
790
|
...contents,
|
|
791
791
|
};
|
|
792
792
|
return Promise.resolve(response);
|
|
793
793
|
};
|
|
794
|
-
const
|
|
794
|
+
const de_DescribeAssessmentTemplatesCommandError = async (output, context) => {
|
|
795
795
|
const parsedOutput = {
|
|
796
796
|
...output,
|
|
797
797
|
body: await parseErrorBody(output.body, context),
|
|
@@ -800,10 +800,10 @@ const deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = async (out
|
|
|
800
800
|
switch (errorCode) {
|
|
801
801
|
case "InternalException":
|
|
802
802
|
case "com.amazonaws.inspector#InternalException":
|
|
803
|
-
throw await
|
|
803
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
804
804
|
case "InvalidInputException":
|
|
805
805
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
806
|
-
throw await
|
|
806
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
807
807
|
default:
|
|
808
808
|
const parsedBody = parsedOutput.body;
|
|
809
809
|
throwDefaultError({
|
|
@@ -814,20 +814,20 @@ const deserializeAws_json1_1DescribeAssessmentTemplatesCommandError = async (out
|
|
|
814
814
|
});
|
|
815
815
|
}
|
|
816
816
|
};
|
|
817
|
-
export const
|
|
817
|
+
export const de_DescribeCrossAccountAccessRoleCommand = async (output, context) => {
|
|
818
818
|
if (output.statusCode >= 300) {
|
|
819
|
-
return
|
|
819
|
+
return de_DescribeCrossAccountAccessRoleCommandError(output, context);
|
|
820
820
|
}
|
|
821
821
|
const data = await parseBody(output.body, context);
|
|
822
822
|
let contents = {};
|
|
823
|
-
contents =
|
|
823
|
+
contents = de_DescribeCrossAccountAccessRoleResponse(data, context);
|
|
824
824
|
const response = {
|
|
825
825
|
$metadata: deserializeMetadata(output),
|
|
826
826
|
...contents,
|
|
827
827
|
};
|
|
828
828
|
return Promise.resolve(response);
|
|
829
829
|
};
|
|
830
|
-
const
|
|
830
|
+
const de_DescribeCrossAccountAccessRoleCommandError = async (output, context) => {
|
|
831
831
|
const parsedOutput = {
|
|
832
832
|
...output,
|
|
833
833
|
body: await parseErrorBody(output.body, context),
|
|
@@ -836,7 +836,7 @@ const deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError = async (
|
|
|
836
836
|
switch (errorCode) {
|
|
837
837
|
case "InternalException":
|
|
838
838
|
case "com.amazonaws.inspector#InternalException":
|
|
839
|
-
throw await
|
|
839
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
840
840
|
default:
|
|
841
841
|
const parsedBody = parsedOutput.body;
|
|
842
842
|
throwDefaultError({
|
|
@@ -847,20 +847,20 @@ const deserializeAws_json1_1DescribeCrossAccountAccessRoleCommandError = async (
|
|
|
847
847
|
});
|
|
848
848
|
}
|
|
849
849
|
};
|
|
850
|
-
export const
|
|
850
|
+
export const de_DescribeExclusionsCommand = async (output, context) => {
|
|
851
851
|
if (output.statusCode >= 300) {
|
|
852
|
-
return
|
|
852
|
+
return de_DescribeExclusionsCommandError(output, context);
|
|
853
853
|
}
|
|
854
854
|
const data = await parseBody(output.body, context);
|
|
855
855
|
let contents = {};
|
|
856
|
-
contents =
|
|
856
|
+
contents = de_DescribeExclusionsResponse(data, context);
|
|
857
857
|
const response = {
|
|
858
858
|
$metadata: deserializeMetadata(output),
|
|
859
859
|
...contents,
|
|
860
860
|
};
|
|
861
861
|
return Promise.resolve(response);
|
|
862
862
|
};
|
|
863
|
-
const
|
|
863
|
+
const de_DescribeExclusionsCommandError = async (output, context) => {
|
|
864
864
|
const parsedOutput = {
|
|
865
865
|
...output,
|
|
866
866
|
body: await parseErrorBody(output.body, context),
|
|
@@ -869,10 +869,10 @@ const deserializeAws_json1_1DescribeExclusionsCommandError = async (output, cont
|
|
|
869
869
|
switch (errorCode) {
|
|
870
870
|
case "InternalException":
|
|
871
871
|
case "com.amazonaws.inspector#InternalException":
|
|
872
|
-
throw await
|
|
872
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
873
873
|
case "InvalidInputException":
|
|
874
874
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
875
|
-
throw await
|
|
875
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
876
876
|
default:
|
|
877
877
|
const parsedBody = parsedOutput.body;
|
|
878
878
|
throwDefaultError({
|
|
@@ -883,20 +883,20 @@ const deserializeAws_json1_1DescribeExclusionsCommandError = async (output, cont
|
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
885
|
};
|
|
886
|
-
export const
|
|
886
|
+
export const de_DescribeFindingsCommand = async (output, context) => {
|
|
887
887
|
if (output.statusCode >= 300) {
|
|
888
|
-
return
|
|
888
|
+
return de_DescribeFindingsCommandError(output, context);
|
|
889
889
|
}
|
|
890
890
|
const data = await parseBody(output.body, context);
|
|
891
891
|
let contents = {};
|
|
892
|
-
contents =
|
|
892
|
+
contents = de_DescribeFindingsResponse(data, context);
|
|
893
893
|
const response = {
|
|
894
894
|
$metadata: deserializeMetadata(output),
|
|
895
895
|
...contents,
|
|
896
896
|
};
|
|
897
897
|
return Promise.resolve(response);
|
|
898
898
|
};
|
|
899
|
-
const
|
|
899
|
+
const de_DescribeFindingsCommandError = async (output, context) => {
|
|
900
900
|
const parsedOutput = {
|
|
901
901
|
...output,
|
|
902
902
|
body: await parseErrorBody(output.body, context),
|
|
@@ -905,10 +905,10 @@ const deserializeAws_json1_1DescribeFindingsCommandError = async (output, contex
|
|
|
905
905
|
switch (errorCode) {
|
|
906
906
|
case "InternalException":
|
|
907
907
|
case "com.amazonaws.inspector#InternalException":
|
|
908
|
-
throw await
|
|
908
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
909
909
|
case "InvalidInputException":
|
|
910
910
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
911
|
-
throw await
|
|
911
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
912
912
|
default:
|
|
913
913
|
const parsedBody = parsedOutput.body;
|
|
914
914
|
throwDefaultError({
|
|
@@ -919,20 +919,20 @@ const deserializeAws_json1_1DescribeFindingsCommandError = async (output, contex
|
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
921
|
};
|
|
922
|
-
export const
|
|
922
|
+
export const de_DescribeResourceGroupsCommand = async (output, context) => {
|
|
923
923
|
if (output.statusCode >= 300) {
|
|
924
|
-
return
|
|
924
|
+
return de_DescribeResourceGroupsCommandError(output, context);
|
|
925
925
|
}
|
|
926
926
|
const data = await parseBody(output.body, context);
|
|
927
927
|
let contents = {};
|
|
928
|
-
contents =
|
|
928
|
+
contents = de_DescribeResourceGroupsResponse(data, context);
|
|
929
929
|
const response = {
|
|
930
930
|
$metadata: deserializeMetadata(output),
|
|
931
931
|
...contents,
|
|
932
932
|
};
|
|
933
933
|
return Promise.resolve(response);
|
|
934
934
|
};
|
|
935
|
-
const
|
|
935
|
+
const de_DescribeResourceGroupsCommandError = async (output, context) => {
|
|
936
936
|
const parsedOutput = {
|
|
937
937
|
...output,
|
|
938
938
|
body: await parseErrorBody(output.body, context),
|
|
@@ -941,10 +941,10 @@ const deserializeAws_json1_1DescribeResourceGroupsCommandError = async (output,
|
|
|
941
941
|
switch (errorCode) {
|
|
942
942
|
case "InternalException":
|
|
943
943
|
case "com.amazonaws.inspector#InternalException":
|
|
944
|
-
throw await
|
|
944
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
945
945
|
case "InvalidInputException":
|
|
946
946
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
947
|
-
throw await
|
|
947
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
948
948
|
default:
|
|
949
949
|
const parsedBody = parsedOutput.body;
|
|
950
950
|
throwDefaultError({
|
|
@@ -955,20 +955,20 @@ const deserializeAws_json1_1DescribeResourceGroupsCommandError = async (output,
|
|
|
955
955
|
});
|
|
956
956
|
}
|
|
957
957
|
};
|
|
958
|
-
export const
|
|
958
|
+
export const de_DescribeRulesPackagesCommand = async (output, context) => {
|
|
959
959
|
if (output.statusCode >= 300) {
|
|
960
|
-
return
|
|
960
|
+
return de_DescribeRulesPackagesCommandError(output, context);
|
|
961
961
|
}
|
|
962
962
|
const data = await parseBody(output.body, context);
|
|
963
963
|
let contents = {};
|
|
964
|
-
contents =
|
|
964
|
+
contents = de_DescribeRulesPackagesResponse(data, context);
|
|
965
965
|
const response = {
|
|
966
966
|
$metadata: deserializeMetadata(output),
|
|
967
967
|
...contents,
|
|
968
968
|
};
|
|
969
969
|
return Promise.resolve(response);
|
|
970
970
|
};
|
|
971
|
-
const
|
|
971
|
+
const de_DescribeRulesPackagesCommandError = async (output, context) => {
|
|
972
972
|
const parsedOutput = {
|
|
973
973
|
...output,
|
|
974
974
|
body: await parseErrorBody(output.body, context),
|
|
@@ -977,10 +977,10 @@ const deserializeAws_json1_1DescribeRulesPackagesCommandError = async (output, c
|
|
|
977
977
|
switch (errorCode) {
|
|
978
978
|
case "InternalException":
|
|
979
979
|
case "com.amazonaws.inspector#InternalException":
|
|
980
|
-
throw await
|
|
980
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
981
981
|
case "InvalidInputException":
|
|
982
982
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
983
|
-
throw await
|
|
983
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
984
984
|
default:
|
|
985
985
|
const parsedBody = parsedOutput.body;
|
|
986
986
|
throwDefaultError({
|
|
@@ -991,20 +991,20 @@ const deserializeAws_json1_1DescribeRulesPackagesCommandError = async (output, c
|
|
|
991
991
|
});
|
|
992
992
|
}
|
|
993
993
|
};
|
|
994
|
-
export const
|
|
994
|
+
export const de_GetAssessmentReportCommand = async (output, context) => {
|
|
995
995
|
if (output.statusCode >= 300) {
|
|
996
|
-
return
|
|
996
|
+
return de_GetAssessmentReportCommandError(output, context);
|
|
997
997
|
}
|
|
998
998
|
const data = await parseBody(output.body, context);
|
|
999
999
|
let contents = {};
|
|
1000
|
-
contents =
|
|
1000
|
+
contents = de_GetAssessmentReportResponse(data, context);
|
|
1001
1001
|
const response = {
|
|
1002
1002
|
$metadata: deserializeMetadata(output),
|
|
1003
1003
|
...contents,
|
|
1004
1004
|
};
|
|
1005
1005
|
return Promise.resolve(response);
|
|
1006
1006
|
};
|
|
1007
|
-
const
|
|
1007
|
+
const de_GetAssessmentReportCommandError = async (output, context) => {
|
|
1008
1008
|
const parsedOutput = {
|
|
1009
1009
|
...output,
|
|
1010
1010
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1013,25 +1013,25 @@ const deserializeAws_json1_1GetAssessmentReportCommandError = async (output, con
|
|
|
1013
1013
|
switch (errorCode) {
|
|
1014
1014
|
case "AccessDeniedException":
|
|
1015
1015
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1016
|
-
throw await
|
|
1016
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1017
1017
|
case "AssessmentRunInProgressException":
|
|
1018
1018
|
case "com.amazonaws.inspector#AssessmentRunInProgressException":
|
|
1019
|
-
throw await
|
|
1019
|
+
throw await de_AssessmentRunInProgressExceptionRes(parsedOutput, context);
|
|
1020
1020
|
case "InternalException":
|
|
1021
1021
|
case "com.amazonaws.inspector#InternalException":
|
|
1022
|
-
throw await
|
|
1022
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1023
1023
|
case "InvalidInputException":
|
|
1024
1024
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1025
|
-
throw await
|
|
1025
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1026
1026
|
case "NoSuchEntityException":
|
|
1027
1027
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1028
|
-
throw await
|
|
1028
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1029
1029
|
case "ServiceTemporarilyUnavailableException":
|
|
1030
1030
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1031
|
-
throw await
|
|
1031
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1032
1032
|
case "UnsupportedFeatureException":
|
|
1033
1033
|
case "com.amazonaws.inspector#UnsupportedFeatureException":
|
|
1034
|
-
throw await
|
|
1034
|
+
throw await de_UnsupportedFeatureExceptionRes(parsedOutput, context);
|
|
1035
1035
|
default:
|
|
1036
1036
|
const parsedBody = parsedOutput.body;
|
|
1037
1037
|
throwDefaultError({
|
|
@@ -1042,20 +1042,20 @@ const deserializeAws_json1_1GetAssessmentReportCommandError = async (output, con
|
|
|
1042
1042
|
});
|
|
1043
1043
|
}
|
|
1044
1044
|
};
|
|
1045
|
-
export const
|
|
1045
|
+
export const de_GetExclusionsPreviewCommand = async (output, context) => {
|
|
1046
1046
|
if (output.statusCode >= 300) {
|
|
1047
|
-
return
|
|
1047
|
+
return de_GetExclusionsPreviewCommandError(output, context);
|
|
1048
1048
|
}
|
|
1049
1049
|
const data = await parseBody(output.body, context);
|
|
1050
1050
|
let contents = {};
|
|
1051
|
-
contents =
|
|
1051
|
+
contents = de_GetExclusionsPreviewResponse(data, context);
|
|
1052
1052
|
const response = {
|
|
1053
1053
|
$metadata: deserializeMetadata(output),
|
|
1054
1054
|
...contents,
|
|
1055
1055
|
};
|
|
1056
1056
|
return Promise.resolve(response);
|
|
1057
1057
|
};
|
|
1058
|
-
const
|
|
1058
|
+
const de_GetExclusionsPreviewCommandError = async (output, context) => {
|
|
1059
1059
|
const parsedOutput = {
|
|
1060
1060
|
...output,
|
|
1061
1061
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1064,16 +1064,16 @@ const deserializeAws_json1_1GetExclusionsPreviewCommandError = async (output, co
|
|
|
1064
1064
|
switch (errorCode) {
|
|
1065
1065
|
case "AccessDeniedException":
|
|
1066
1066
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1067
|
-
throw await
|
|
1067
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1068
1068
|
case "InternalException":
|
|
1069
1069
|
case "com.amazonaws.inspector#InternalException":
|
|
1070
|
-
throw await
|
|
1070
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1071
1071
|
case "InvalidInputException":
|
|
1072
1072
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1073
|
-
throw await
|
|
1073
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1074
1074
|
case "NoSuchEntityException":
|
|
1075
1075
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1076
|
-
throw await
|
|
1076
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1077
1077
|
default:
|
|
1078
1078
|
const parsedBody = parsedOutput.body;
|
|
1079
1079
|
throwDefaultError({
|
|
@@ -1084,20 +1084,20 @@ const deserializeAws_json1_1GetExclusionsPreviewCommandError = async (output, co
|
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
1086
|
};
|
|
1087
|
-
export const
|
|
1087
|
+
export const de_GetTelemetryMetadataCommand = async (output, context) => {
|
|
1088
1088
|
if (output.statusCode >= 300) {
|
|
1089
|
-
return
|
|
1089
|
+
return de_GetTelemetryMetadataCommandError(output, context);
|
|
1090
1090
|
}
|
|
1091
1091
|
const data = await parseBody(output.body, context);
|
|
1092
1092
|
let contents = {};
|
|
1093
|
-
contents =
|
|
1093
|
+
contents = de_GetTelemetryMetadataResponse(data, context);
|
|
1094
1094
|
const response = {
|
|
1095
1095
|
$metadata: deserializeMetadata(output),
|
|
1096
1096
|
...contents,
|
|
1097
1097
|
};
|
|
1098
1098
|
return Promise.resolve(response);
|
|
1099
1099
|
};
|
|
1100
|
-
const
|
|
1100
|
+
const de_GetTelemetryMetadataCommandError = async (output, context) => {
|
|
1101
1101
|
const parsedOutput = {
|
|
1102
1102
|
...output,
|
|
1103
1103
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1106,16 +1106,16 @@ const deserializeAws_json1_1GetTelemetryMetadataCommandError = async (output, co
|
|
|
1106
1106
|
switch (errorCode) {
|
|
1107
1107
|
case "AccessDeniedException":
|
|
1108
1108
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1109
|
-
throw await
|
|
1109
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1110
1110
|
case "InternalException":
|
|
1111
1111
|
case "com.amazonaws.inspector#InternalException":
|
|
1112
|
-
throw await
|
|
1112
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1113
1113
|
case "InvalidInputException":
|
|
1114
1114
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1115
|
-
throw await
|
|
1115
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1116
1116
|
case "NoSuchEntityException":
|
|
1117
1117
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1118
|
-
throw await
|
|
1118
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1119
1119
|
default:
|
|
1120
1120
|
const parsedBody = parsedOutput.body;
|
|
1121
1121
|
throwDefaultError({
|
|
@@ -1126,20 +1126,20 @@ const deserializeAws_json1_1GetTelemetryMetadataCommandError = async (output, co
|
|
|
1126
1126
|
});
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
|
-
export const
|
|
1129
|
+
export const de_ListAssessmentRunAgentsCommand = async (output, context) => {
|
|
1130
1130
|
if (output.statusCode >= 300) {
|
|
1131
|
-
return
|
|
1131
|
+
return de_ListAssessmentRunAgentsCommandError(output, context);
|
|
1132
1132
|
}
|
|
1133
1133
|
const data = await parseBody(output.body, context);
|
|
1134
1134
|
let contents = {};
|
|
1135
|
-
contents =
|
|
1135
|
+
contents = de_ListAssessmentRunAgentsResponse(data, context);
|
|
1136
1136
|
const response = {
|
|
1137
1137
|
$metadata: deserializeMetadata(output),
|
|
1138
1138
|
...contents,
|
|
1139
1139
|
};
|
|
1140
1140
|
return Promise.resolve(response);
|
|
1141
1141
|
};
|
|
1142
|
-
const
|
|
1142
|
+
const de_ListAssessmentRunAgentsCommandError = async (output, context) => {
|
|
1143
1143
|
const parsedOutput = {
|
|
1144
1144
|
...output,
|
|
1145
1145
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1148,16 +1148,16 @@ const deserializeAws_json1_1ListAssessmentRunAgentsCommandError = async (output,
|
|
|
1148
1148
|
switch (errorCode) {
|
|
1149
1149
|
case "AccessDeniedException":
|
|
1150
1150
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1151
|
-
throw await
|
|
1151
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1152
1152
|
case "InternalException":
|
|
1153
1153
|
case "com.amazonaws.inspector#InternalException":
|
|
1154
|
-
throw await
|
|
1154
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1155
1155
|
case "InvalidInputException":
|
|
1156
1156
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1157
|
-
throw await
|
|
1157
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1158
1158
|
case "NoSuchEntityException":
|
|
1159
1159
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1160
|
-
throw await
|
|
1160
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1161
1161
|
default:
|
|
1162
1162
|
const parsedBody = parsedOutput.body;
|
|
1163
1163
|
throwDefaultError({
|
|
@@ -1168,20 +1168,20 @@ const deserializeAws_json1_1ListAssessmentRunAgentsCommandError = async (output,
|
|
|
1168
1168
|
});
|
|
1169
1169
|
}
|
|
1170
1170
|
};
|
|
1171
|
-
export const
|
|
1171
|
+
export const de_ListAssessmentRunsCommand = async (output, context) => {
|
|
1172
1172
|
if (output.statusCode >= 300) {
|
|
1173
|
-
return
|
|
1173
|
+
return de_ListAssessmentRunsCommandError(output, context);
|
|
1174
1174
|
}
|
|
1175
1175
|
const data = await parseBody(output.body, context);
|
|
1176
1176
|
let contents = {};
|
|
1177
|
-
contents =
|
|
1177
|
+
contents = de_ListAssessmentRunsResponse(data, context);
|
|
1178
1178
|
const response = {
|
|
1179
1179
|
$metadata: deserializeMetadata(output),
|
|
1180
1180
|
...contents,
|
|
1181
1181
|
};
|
|
1182
1182
|
return Promise.resolve(response);
|
|
1183
1183
|
};
|
|
1184
|
-
const
|
|
1184
|
+
const de_ListAssessmentRunsCommandError = async (output, context) => {
|
|
1185
1185
|
const parsedOutput = {
|
|
1186
1186
|
...output,
|
|
1187
1187
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1190,16 +1190,16 @@ const deserializeAws_json1_1ListAssessmentRunsCommandError = async (output, cont
|
|
|
1190
1190
|
switch (errorCode) {
|
|
1191
1191
|
case "AccessDeniedException":
|
|
1192
1192
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1193
|
-
throw await
|
|
1193
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1194
1194
|
case "InternalException":
|
|
1195
1195
|
case "com.amazonaws.inspector#InternalException":
|
|
1196
|
-
throw await
|
|
1196
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1197
1197
|
case "InvalidInputException":
|
|
1198
1198
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1199
|
-
throw await
|
|
1199
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1200
1200
|
case "NoSuchEntityException":
|
|
1201
1201
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1202
|
-
throw await
|
|
1202
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1203
1203
|
default:
|
|
1204
1204
|
const parsedBody = parsedOutput.body;
|
|
1205
1205
|
throwDefaultError({
|
|
@@ -1210,20 +1210,20 @@ const deserializeAws_json1_1ListAssessmentRunsCommandError = async (output, cont
|
|
|
1210
1210
|
});
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
|
-
export const
|
|
1213
|
+
export const de_ListAssessmentTargetsCommand = async (output, context) => {
|
|
1214
1214
|
if (output.statusCode >= 300) {
|
|
1215
|
-
return
|
|
1215
|
+
return de_ListAssessmentTargetsCommandError(output, context);
|
|
1216
1216
|
}
|
|
1217
1217
|
const data = await parseBody(output.body, context);
|
|
1218
1218
|
let contents = {};
|
|
1219
|
-
contents =
|
|
1219
|
+
contents = de_ListAssessmentTargetsResponse(data, context);
|
|
1220
1220
|
const response = {
|
|
1221
1221
|
$metadata: deserializeMetadata(output),
|
|
1222
1222
|
...contents,
|
|
1223
1223
|
};
|
|
1224
1224
|
return Promise.resolve(response);
|
|
1225
1225
|
};
|
|
1226
|
-
const
|
|
1226
|
+
const de_ListAssessmentTargetsCommandError = async (output, context) => {
|
|
1227
1227
|
const parsedOutput = {
|
|
1228
1228
|
...output,
|
|
1229
1229
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1232,13 +1232,13 @@ const deserializeAws_json1_1ListAssessmentTargetsCommandError = async (output, c
|
|
|
1232
1232
|
switch (errorCode) {
|
|
1233
1233
|
case "AccessDeniedException":
|
|
1234
1234
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1235
|
-
throw await
|
|
1235
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1236
1236
|
case "InternalException":
|
|
1237
1237
|
case "com.amazonaws.inspector#InternalException":
|
|
1238
|
-
throw await
|
|
1238
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1239
1239
|
case "InvalidInputException":
|
|
1240
1240
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1241
|
-
throw await
|
|
1241
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1242
1242
|
default:
|
|
1243
1243
|
const parsedBody = parsedOutput.body;
|
|
1244
1244
|
throwDefaultError({
|
|
@@ -1249,20 +1249,20 @@ const deserializeAws_json1_1ListAssessmentTargetsCommandError = async (output, c
|
|
|
1249
1249
|
});
|
|
1250
1250
|
}
|
|
1251
1251
|
};
|
|
1252
|
-
export const
|
|
1252
|
+
export const de_ListAssessmentTemplatesCommand = async (output, context) => {
|
|
1253
1253
|
if (output.statusCode >= 300) {
|
|
1254
|
-
return
|
|
1254
|
+
return de_ListAssessmentTemplatesCommandError(output, context);
|
|
1255
1255
|
}
|
|
1256
1256
|
const data = await parseBody(output.body, context);
|
|
1257
1257
|
let contents = {};
|
|
1258
|
-
contents =
|
|
1258
|
+
contents = de_ListAssessmentTemplatesResponse(data, context);
|
|
1259
1259
|
const response = {
|
|
1260
1260
|
$metadata: deserializeMetadata(output),
|
|
1261
1261
|
...contents,
|
|
1262
1262
|
};
|
|
1263
1263
|
return Promise.resolve(response);
|
|
1264
1264
|
};
|
|
1265
|
-
const
|
|
1265
|
+
const de_ListAssessmentTemplatesCommandError = async (output, context) => {
|
|
1266
1266
|
const parsedOutput = {
|
|
1267
1267
|
...output,
|
|
1268
1268
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1271,16 +1271,16 @@ const deserializeAws_json1_1ListAssessmentTemplatesCommandError = async (output,
|
|
|
1271
1271
|
switch (errorCode) {
|
|
1272
1272
|
case "AccessDeniedException":
|
|
1273
1273
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1274
|
-
throw await
|
|
1274
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1275
1275
|
case "InternalException":
|
|
1276
1276
|
case "com.amazonaws.inspector#InternalException":
|
|
1277
|
-
throw await
|
|
1277
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1278
1278
|
case "InvalidInputException":
|
|
1279
1279
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1280
|
-
throw await
|
|
1280
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1281
1281
|
case "NoSuchEntityException":
|
|
1282
1282
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1283
|
-
throw await
|
|
1283
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1284
1284
|
default:
|
|
1285
1285
|
const parsedBody = parsedOutput.body;
|
|
1286
1286
|
throwDefaultError({
|
|
@@ -1291,20 +1291,20 @@ const deserializeAws_json1_1ListAssessmentTemplatesCommandError = async (output,
|
|
|
1291
1291
|
});
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
|
-
export const
|
|
1294
|
+
export const de_ListEventSubscriptionsCommand = async (output, context) => {
|
|
1295
1295
|
if (output.statusCode >= 300) {
|
|
1296
|
-
return
|
|
1296
|
+
return de_ListEventSubscriptionsCommandError(output, context);
|
|
1297
1297
|
}
|
|
1298
1298
|
const data = await parseBody(output.body, context);
|
|
1299
1299
|
let contents = {};
|
|
1300
|
-
contents =
|
|
1300
|
+
contents = de_ListEventSubscriptionsResponse(data, context);
|
|
1301
1301
|
const response = {
|
|
1302
1302
|
$metadata: deserializeMetadata(output),
|
|
1303
1303
|
...contents,
|
|
1304
1304
|
};
|
|
1305
1305
|
return Promise.resolve(response);
|
|
1306
1306
|
};
|
|
1307
|
-
const
|
|
1307
|
+
const de_ListEventSubscriptionsCommandError = async (output, context) => {
|
|
1308
1308
|
const parsedOutput = {
|
|
1309
1309
|
...output,
|
|
1310
1310
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1313,16 +1313,16 @@ const deserializeAws_json1_1ListEventSubscriptionsCommandError = async (output,
|
|
|
1313
1313
|
switch (errorCode) {
|
|
1314
1314
|
case "AccessDeniedException":
|
|
1315
1315
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1316
|
-
throw await
|
|
1316
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1317
1317
|
case "InternalException":
|
|
1318
1318
|
case "com.amazonaws.inspector#InternalException":
|
|
1319
|
-
throw await
|
|
1319
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1320
1320
|
case "InvalidInputException":
|
|
1321
1321
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1322
|
-
throw await
|
|
1322
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1323
1323
|
case "NoSuchEntityException":
|
|
1324
1324
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1325
|
-
throw await
|
|
1325
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1326
1326
|
default:
|
|
1327
1327
|
const parsedBody = parsedOutput.body;
|
|
1328
1328
|
throwDefaultError({
|
|
@@ -1333,20 +1333,20 @@ const deserializeAws_json1_1ListEventSubscriptionsCommandError = async (output,
|
|
|
1333
1333
|
});
|
|
1334
1334
|
}
|
|
1335
1335
|
};
|
|
1336
|
-
export const
|
|
1336
|
+
export const de_ListExclusionsCommand = async (output, context) => {
|
|
1337
1337
|
if (output.statusCode >= 300) {
|
|
1338
|
-
return
|
|
1338
|
+
return de_ListExclusionsCommandError(output, context);
|
|
1339
1339
|
}
|
|
1340
1340
|
const data = await parseBody(output.body, context);
|
|
1341
1341
|
let contents = {};
|
|
1342
|
-
contents =
|
|
1342
|
+
contents = de_ListExclusionsResponse(data, context);
|
|
1343
1343
|
const response = {
|
|
1344
1344
|
$metadata: deserializeMetadata(output),
|
|
1345
1345
|
...contents,
|
|
1346
1346
|
};
|
|
1347
1347
|
return Promise.resolve(response);
|
|
1348
1348
|
};
|
|
1349
|
-
const
|
|
1349
|
+
const de_ListExclusionsCommandError = async (output, context) => {
|
|
1350
1350
|
const parsedOutput = {
|
|
1351
1351
|
...output,
|
|
1352
1352
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1355,16 +1355,16 @@ const deserializeAws_json1_1ListExclusionsCommandError = async (output, context)
|
|
|
1355
1355
|
switch (errorCode) {
|
|
1356
1356
|
case "AccessDeniedException":
|
|
1357
1357
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1358
|
-
throw await
|
|
1358
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1359
1359
|
case "InternalException":
|
|
1360
1360
|
case "com.amazonaws.inspector#InternalException":
|
|
1361
|
-
throw await
|
|
1361
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1362
1362
|
case "InvalidInputException":
|
|
1363
1363
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1364
|
-
throw await
|
|
1364
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1365
1365
|
case "NoSuchEntityException":
|
|
1366
1366
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1367
|
-
throw await
|
|
1367
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1368
1368
|
default:
|
|
1369
1369
|
const parsedBody = parsedOutput.body;
|
|
1370
1370
|
throwDefaultError({
|
|
@@ -1375,20 +1375,20 @@ const deserializeAws_json1_1ListExclusionsCommandError = async (output, context)
|
|
|
1375
1375
|
});
|
|
1376
1376
|
}
|
|
1377
1377
|
};
|
|
1378
|
-
export const
|
|
1378
|
+
export const de_ListFindingsCommand = async (output, context) => {
|
|
1379
1379
|
if (output.statusCode >= 300) {
|
|
1380
|
-
return
|
|
1380
|
+
return de_ListFindingsCommandError(output, context);
|
|
1381
1381
|
}
|
|
1382
1382
|
const data = await parseBody(output.body, context);
|
|
1383
1383
|
let contents = {};
|
|
1384
|
-
contents =
|
|
1384
|
+
contents = de_ListFindingsResponse(data, context);
|
|
1385
1385
|
const response = {
|
|
1386
1386
|
$metadata: deserializeMetadata(output),
|
|
1387
1387
|
...contents,
|
|
1388
1388
|
};
|
|
1389
1389
|
return Promise.resolve(response);
|
|
1390
1390
|
};
|
|
1391
|
-
const
|
|
1391
|
+
const de_ListFindingsCommandError = async (output, context) => {
|
|
1392
1392
|
const parsedOutput = {
|
|
1393
1393
|
...output,
|
|
1394
1394
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1397,16 +1397,16 @@ const deserializeAws_json1_1ListFindingsCommandError = async (output, context) =
|
|
|
1397
1397
|
switch (errorCode) {
|
|
1398
1398
|
case "AccessDeniedException":
|
|
1399
1399
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1400
|
-
throw await
|
|
1400
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1401
1401
|
case "InternalException":
|
|
1402
1402
|
case "com.amazonaws.inspector#InternalException":
|
|
1403
|
-
throw await
|
|
1403
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1404
1404
|
case "InvalidInputException":
|
|
1405
1405
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1406
|
-
throw await
|
|
1406
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1407
1407
|
case "NoSuchEntityException":
|
|
1408
1408
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1409
|
-
throw await
|
|
1409
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1410
1410
|
default:
|
|
1411
1411
|
const parsedBody = parsedOutput.body;
|
|
1412
1412
|
throwDefaultError({
|
|
@@ -1417,20 +1417,20 @@ const deserializeAws_json1_1ListFindingsCommandError = async (output, context) =
|
|
|
1417
1417
|
});
|
|
1418
1418
|
}
|
|
1419
1419
|
};
|
|
1420
|
-
export const
|
|
1420
|
+
export const de_ListRulesPackagesCommand = async (output, context) => {
|
|
1421
1421
|
if (output.statusCode >= 300) {
|
|
1422
|
-
return
|
|
1422
|
+
return de_ListRulesPackagesCommandError(output, context);
|
|
1423
1423
|
}
|
|
1424
1424
|
const data = await parseBody(output.body, context);
|
|
1425
1425
|
let contents = {};
|
|
1426
|
-
contents =
|
|
1426
|
+
contents = de_ListRulesPackagesResponse(data, context);
|
|
1427
1427
|
const response = {
|
|
1428
1428
|
$metadata: deserializeMetadata(output),
|
|
1429
1429
|
...contents,
|
|
1430
1430
|
};
|
|
1431
1431
|
return Promise.resolve(response);
|
|
1432
1432
|
};
|
|
1433
|
-
const
|
|
1433
|
+
const de_ListRulesPackagesCommandError = async (output, context) => {
|
|
1434
1434
|
const parsedOutput = {
|
|
1435
1435
|
...output,
|
|
1436
1436
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1439,13 +1439,13 @@ const deserializeAws_json1_1ListRulesPackagesCommandError = async (output, conte
|
|
|
1439
1439
|
switch (errorCode) {
|
|
1440
1440
|
case "AccessDeniedException":
|
|
1441
1441
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1442
|
-
throw await
|
|
1442
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1443
1443
|
case "InternalException":
|
|
1444
1444
|
case "com.amazonaws.inspector#InternalException":
|
|
1445
|
-
throw await
|
|
1445
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1446
1446
|
case "InvalidInputException":
|
|
1447
1447
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1448
|
-
throw await
|
|
1448
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1449
1449
|
default:
|
|
1450
1450
|
const parsedBody = parsedOutput.body;
|
|
1451
1451
|
throwDefaultError({
|
|
@@ -1456,20 +1456,20 @@ const deserializeAws_json1_1ListRulesPackagesCommandError = async (output, conte
|
|
|
1456
1456
|
});
|
|
1457
1457
|
}
|
|
1458
1458
|
};
|
|
1459
|
-
export const
|
|
1459
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1460
1460
|
if (output.statusCode >= 300) {
|
|
1461
|
-
return
|
|
1461
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
1462
1462
|
}
|
|
1463
1463
|
const data = await parseBody(output.body, context);
|
|
1464
1464
|
let contents = {};
|
|
1465
|
-
contents =
|
|
1465
|
+
contents = de_ListTagsForResourceResponse(data, context);
|
|
1466
1466
|
const response = {
|
|
1467
1467
|
$metadata: deserializeMetadata(output),
|
|
1468
1468
|
...contents,
|
|
1469
1469
|
};
|
|
1470
1470
|
return Promise.resolve(response);
|
|
1471
1471
|
};
|
|
1472
|
-
const
|
|
1472
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1473
1473
|
const parsedOutput = {
|
|
1474
1474
|
...output,
|
|
1475
1475
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1478,16 +1478,16 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1478
1478
|
switch (errorCode) {
|
|
1479
1479
|
case "AccessDeniedException":
|
|
1480
1480
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1481
|
-
throw await
|
|
1481
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1482
1482
|
case "InternalException":
|
|
1483
1483
|
case "com.amazonaws.inspector#InternalException":
|
|
1484
|
-
throw await
|
|
1484
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1485
1485
|
case "InvalidInputException":
|
|
1486
1486
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1487
|
-
throw await
|
|
1487
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1488
1488
|
case "NoSuchEntityException":
|
|
1489
1489
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1490
|
-
throw await
|
|
1490
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1491
1491
|
default:
|
|
1492
1492
|
const parsedBody = parsedOutput.body;
|
|
1493
1493
|
throwDefaultError({
|
|
@@ -1498,20 +1498,20 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1498
1498
|
});
|
|
1499
1499
|
}
|
|
1500
1500
|
};
|
|
1501
|
-
export const
|
|
1501
|
+
export const de_PreviewAgentsCommand = async (output, context) => {
|
|
1502
1502
|
if (output.statusCode >= 300) {
|
|
1503
|
-
return
|
|
1503
|
+
return de_PreviewAgentsCommandError(output, context);
|
|
1504
1504
|
}
|
|
1505
1505
|
const data = await parseBody(output.body, context);
|
|
1506
1506
|
let contents = {};
|
|
1507
|
-
contents =
|
|
1507
|
+
contents = de_PreviewAgentsResponse(data, context);
|
|
1508
1508
|
const response = {
|
|
1509
1509
|
$metadata: deserializeMetadata(output),
|
|
1510
1510
|
...contents,
|
|
1511
1511
|
};
|
|
1512
1512
|
return Promise.resolve(response);
|
|
1513
1513
|
};
|
|
1514
|
-
const
|
|
1514
|
+
const de_PreviewAgentsCommandError = async (output, context) => {
|
|
1515
1515
|
const parsedOutput = {
|
|
1516
1516
|
...output,
|
|
1517
1517
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1520,19 +1520,19 @@ const deserializeAws_json1_1PreviewAgentsCommandError = async (output, context)
|
|
|
1520
1520
|
switch (errorCode) {
|
|
1521
1521
|
case "AccessDeniedException":
|
|
1522
1522
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1523
|
-
throw await
|
|
1523
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1524
1524
|
case "InternalException":
|
|
1525
1525
|
case "com.amazonaws.inspector#InternalException":
|
|
1526
|
-
throw await
|
|
1526
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1527
1527
|
case "InvalidCrossAccountRoleException":
|
|
1528
1528
|
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
1529
|
-
throw await
|
|
1529
|
+
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
1530
1530
|
case "InvalidInputException":
|
|
1531
1531
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1532
|
-
throw await
|
|
1532
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1533
1533
|
case "NoSuchEntityException":
|
|
1534
1534
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1535
|
-
throw await
|
|
1535
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1536
1536
|
default:
|
|
1537
1537
|
const parsedBody = parsedOutput.body;
|
|
1538
1538
|
throwDefaultError({
|
|
@@ -1543,9 +1543,9 @@ const deserializeAws_json1_1PreviewAgentsCommandError = async (output, context)
|
|
|
1543
1543
|
});
|
|
1544
1544
|
}
|
|
1545
1545
|
};
|
|
1546
|
-
export const
|
|
1546
|
+
export const de_RegisterCrossAccountAccessRoleCommand = async (output, context) => {
|
|
1547
1547
|
if (output.statusCode >= 300) {
|
|
1548
|
-
return
|
|
1548
|
+
return de_RegisterCrossAccountAccessRoleCommandError(output, context);
|
|
1549
1549
|
}
|
|
1550
1550
|
await collectBody(output.body, context);
|
|
1551
1551
|
const response = {
|
|
@@ -1553,7 +1553,7 @@ export const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommand = async
|
|
|
1553
1553
|
};
|
|
1554
1554
|
return Promise.resolve(response);
|
|
1555
1555
|
};
|
|
1556
|
-
const
|
|
1556
|
+
const de_RegisterCrossAccountAccessRoleCommandError = async (output, context) => {
|
|
1557
1557
|
const parsedOutput = {
|
|
1558
1558
|
...output,
|
|
1559
1559
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1562,19 +1562,19 @@ const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = async (
|
|
|
1562
1562
|
switch (errorCode) {
|
|
1563
1563
|
case "AccessDeniedException":
|
|
1564
1564
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1565
|
-
throw await
|
|
1565
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1566
1566
|
case "InternalException":
|
|
1567
1567
|
case "com.amazonaws.inspector#InternalException":
|
|
1568
|
-
throw await
|
|
1568
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1569
1569
|
case "InvalidCrossAccountRoleException":
|
|
1570
1570
|
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
1571
|
-
throw await
|
|
1571
|
+
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
1572
1572
|
case "InvalidInputException":
|
|
1573
1573
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1574
|
-
throw await
|
|
1574
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1575
1575
|
case "ServiceTemporarilyUnavailableException":
|
|
1576
1576
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1577
|
-
throw await
|
|
1577
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1578
1578
|
default:
|
|
1579
1579
|
const parsedBody = parsedOutput.body;
|
|
1580
1580
|
throwDefaultError({
|
|
@@ -1585,20 +1585,20 @@ const deserializeAws_json1_1RegisterCrossAccountAccessRoleCommandError = async (
|
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
1587
|
};
|
|
1588
|
-
export const
|
|
1588
|
+
export const de_RemoveAttributesFromFindingsCommand = async (output, context) => {
|
|
1589
1589
|
if (output.statusCode >= 300) {
|
|
1590
|
-
return
|
|
1590
|
+
return de_RemoveAttributesFromFindingsCommandError(output, context);
|
|
1591
1591
|
}
|
|
1592
1592
|
const data = await parseBody(output.body, context);
|
|
1593
1593
|
let contents = {};
|
|
1594
|
-
contents =
|
|
1594
|
+
contents = de_RemoveAttributesFromFindingsResponse(data, context);
|
|
1595
1595
|
const response = {
|
|
1596
1596
|
$metadata: deserializeMetadata(output),
|
|
1597
1597
|
...contents,
|
|
1598
1598
|
};
|
|
1599
1599
|
return Promise.resolve(response);
|
|
1600
1600
|
};
|
|
1601
|
-
const
|
|
1601
|
+
const de_RemoveAttributesFromFindingsCommandError = async (output, context) => {
|
|
1602
1602
|
const parsedOutput = {
|
|
1603
1603
|
...output,
|
|
1604
1604
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1607,19 +1607,19 @@ const deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = async (ou
|
|
|
1607
1607
|
switch (errorCode) {
|
|
1608
1608
|
case "AccessDeniedException":
|
|
1609
1609
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1610
|
-
throw await
|
|
1610
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1611
1611
|
case "InternalException":
|
|
1612
1612
|
case "com.amazonaws.inspector#InternalException":
|
|
1613
|
-
throw await
|
|
1613
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1614
1614
|
case "InvalidInputException":
|
|
1615
1615
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1616
|
-
throw await
|
|
1616
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1617
1617
|
case "NoSuchEntityException":
|
|
1618
1618
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1619
|
-
throw await
|
|
1619
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1620
1620
|
case "ServiceTemporarilyUnavailableException":
|
|
1621
1621
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1622
|
-
throw await
|
|
1622
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1623
1623
|
default:
|
|
1624
1624
|
const parsedBody = parsedOutput.body;
|
|
1625
1625
|
throwDefaultError({
|
|
@@ -1630,9 +1630,9 @@ const deserializeAws_json1_1RemoveAttributesFromFindingsCommandError = async (ou
|
|
|
1630
1630
|
});
|
|
1631
1631
|
}
|
|
1632
1632
|
};
|
|
1633
|
-
export const
|
|
1633
|
+
export const de_SetTagsForResourceCommand = async (output, context) => {
|
|
1634
1634
|
if (output.statusCode >= 300) {
|
|
1635
|
-
return
|
|
1635
|
+
return de_SetTagsForResourceCommandError(output, context);
|
|
1636
1636
|
}
|
|
1637
1637
|
await collectBody(output.body, context);
|
|
1638
1638
|
const response = {
|
|
@@ -1640,7 +1640,7 @@ export const deserializeAws_json1_1SetTagsForResourceCommand = async (output, co
|
|
|
1640
1640
|
};
|
|
1641
1641
|
return Promise.resolve(response);
|
|
1642
1642
|
};
|
|
1643
|
-
const
|
|
1643
|
+
const de_SetTagsForResourceCommandError = async (output, context) => {
|
|
1644
1644
|
const parsedOutput = {
|
|
1645
1645
|
...output,
|
|
1646
1646
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1649,19 +1649,19 @@ const deserializeAws_json1_1SetTagsForResourceCommandError = async (output, cont
|
|
|
1649
1649
|
switch (errorCode) {
|
|
1650
1650
|
case "AccessDeniedException":
|
|
1651
1651
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1652
|
-
throw await
|
|
1652
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1653
1653
|
case "InternalException":
|
|
1654
1654
|
case "com.amazonaws.inspector#InternalException":
|
|
1655
|
-
throw await
|
|
1655
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1656
1656
|
case "InvalidInputException":
|
|
1657
1657
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1658
|
-
throw await
|
|
1658
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1659
1659
|
case "NoSuchEntityException":
|
|
1660
1660
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1661
|
-
throw await
|
|
1661
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1662
1662
|
case "ServiceTemporarilyUnavailableException":
|
|
1663
1663
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1664
|
-
throw await
|
|
1664
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1665
1665
|
default:
|
|
1666
1666
|
const parsedBody = parsedOutput.body;
|
|
1667
1667
|
throwDefaultError({
|
|
@@ -1672,20 +1672,20 @@ const deserializeAws_json1_1SetTagsForResourceCommandError = async (output, cont
|
|
|
1672
1672
|
});
|
|
1673
1673
|
}
|
|
1674
1674
|
};
|
|
1675
|
-
export const
|
|
1675
|
+
export const de_StartAssessmentRunCommand = async (output, context) => {
|
|
1676
1676
|
if (output.statusCode >= 300) {
|
|
1677
|
-
return
|
|
1677
|
+
return de_StartAssessmentRunCommandError(output, context);
|
|
1678
1678
|
}
|
|
1679
1679
|
const data = await parseBody(output.body, context);
|
|
1680
1680
|
let contents = {};
|
|
1681
|
-
contents =
|
|
1681
|
+
contents = de_StartAssessmentRunResponse(data, context);
|
|
1682
1682
|
const response = {
|
|
1683
1683
|
$metadata: deserializeMetadata(output),
|
|
1684
1684
|
...contents,
|
|
1685
1685
|
};
|
|
1686
1686
|
return Promise.resolve(response);
|
|
1687
1687
|
};
|
|
1688
|
-
const
|
|
1688
|
+
const de_StartAssessmentRunCommandError = async (output, context) => {
|
|
1689
1689
|
const parsedOutput = {
|
|
1690
1690
|
...output,
|
|
1691
1691
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1694,28 +1694,28 @@ const deserializeAws_json1_1StartAssessmentRunCommandError = async (output, cont
|
|
|
1694
1694
|
switch (errorCode) {
|
|
1695
1695
|
case "AccessDeniedException":
|
|
1696
1696
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1697
|
-
throw await
|
|
1697
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1698
1698
|
case "AgentsAlreadyRunningAssessmentException":
|
|
1699
1699
|
case "com.amazonaws.inspector#AgentsAlreadyRunningAssessmentException":
|
|
1700
|
-
throw await
|
|
1700
|
+
throw await de_AgentsAlreadyRunningAssessmentExceptionRes(parsedOutput, context);
|
|
1701
1701
|
case "InternalException":
|
|
1702
1702
|
case "com.amazonaws.inspector#InternalException":
|
|
1703
|
-
throw await
|
|
1703
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1704
1704
|
case "InvalidCrossAccountRoleException":
|
|
1705
1705
|
case "com.amazonaws.inspector#InvalidCrossAccountRoleException":
|
|
1706
|
-
throw await
|
|
1706
|
+
throw await de_InvalidCrossAccountRoleExceptionRes(parsedOutput, context);
|
|
1707
1707
|
case "InvalidInputException":
|
|
1708
1708
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1709
|
-
throw await
|
|
1709
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1710
1710
|
case "LimitExceededException":
|
|
1711
1711
|
case "com.amazonaws.inspector#LimitExceededException":
|
|
1712
|
-
throw await
|
|
1712
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1713
1713
|
case "NoSuchEntityException":
|
|
1714
1714
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1715
|
-
throw await
|
|
1715
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1716
1716
|
case "ServiceTemporarilyUnavailableException":
|
|
1717
1717
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1718
|
-
throw await
|
|
1718
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1719
1719
|
default:
|
|
1720
1720
|
const parsedBody = parsedOutput.body;
|
|
1721
1721
|
throwDefaultError({
|
|
@@ -1726,9 +1726,9 @@ const deserializeAws_json1_1StartAssessmentRunCommandError = async (output, cont
|
|
|
1726
1726
|
});
|
|
1727
1727
|
}
|
|
1728
1728
|
};
|
|
1729
|
-
export const
|
|
1729
|
+
export const de_StopAssessmentRunCommand = async (output, context) => {
|
|
1730
1730
|
if (output.statusCode >= 300) {
|
|
1731
|
-
return
|
|
1731
|
+
return de_StopAssessmentRunCommandError(output, context);
|
|
1732
1732
|
}
|
|
1733
1733
|
await collectBody(output.body, context);
|
|
1734
1734
|
const response = {
|
|
@@ -1736,7 +1736,7 @@ export const deserializeAws_json1_1StopAssessmentRunCommand = async (output, con
|
|
|
1736
1736
|
};
|
|
1737
1737
|
return Promise.resolve(response);
|
|
1738
1738
|
};
|
|
1739
|
-
const
|
|
1739
|
+
const de_StopAssessmentRunCommandError = async (output, context) => {
|
|
1740
1740
|
const parsedOutput = {
|
|
1741
1741
|
...output,
|
|
1742
1742
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1745,19 +1745,19 @@ const deserializeAws_json1_1StopAssessmentRunCommandError = async (output, conte
|
|
|
1745
1745
|
switch (errorCode) {
|
|
1746
1746
|
case "AccessDeniedException":
|
|
1747
1747
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1748
|
-
throw await
|
|
1748
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1749
1749
|
case "InternalException":
|
|
1750
1750
|
case "com.amazonaws.inspector#InternalException":
|
|
1751
|
-
throw await
|
|
1751
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1752
1752
|
case "InvalidInputException":
|
|
1753
1753
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1754
|
-
throw await
|
|
1754
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1755
1755
|
case "NoSuchEntityException":
|
|
1756
1756
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1757
|
-
throw await
|
|
1757
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1758
1758
|
case "ServiceTemporarilyUnavailableException":
|
|
1759
1759
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1760
|
-
throw await
|
|
1760
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1761
1761
|
default:
|
|
1762
1762
|
const parsedBody = parsedOutput.body;
|
|
1763
1763
|
throwDefaultError({
|
|
@@ -1768,9 +1768,9 @@ const deserializeAws_json1_1StopAssessmentRunCommandError = async (output, conte
|
|
|
1768
1768
|
});
|
|
1769
1769
|
}
|
|
1770
1770
|
};
|
|
1771
|
-
export const
|
|
1771
|
+
export const de_SubscribeToEventCommand = async (output, context) => {
|
|
1772
1772
|
if (output.statusCode >= 300) {
|
|
1773
|
-
return
|
|
1773
|
+
return de_SubscribeToEventCommandError(output, context);
|
|
1774
1774
|
}
|
|
1775
1775
|
await collectBody(output.body, context);
|
|
1776
1776
|
const response = {
|
|
@@ -1778,7 +1778,7 @@ export const deserializeAws_json1_1SubscribeToEventCommand = async (output, cont
|
|
|
1778
1778
|
};
|
|
1779
1779
|
return Promise.resolve(response);
|
|
1780
1780
|
};
|
|
1781
|
-
const
|
|
1781
|
+
const de_SubscribeToEventCommandError = async (output, context) => {
|
|
1782
1782
|
const parsedOutput = {
|
|
1783
1783
|
...output,
|
|
1784
1784
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1787,22 +1787,22 @@ const deserializeAws_json1_1SubscribeToEventCommandError = async (output, contex
|
|
|
1787
1787
|
switch (errorCode) {
|
|
1788
1788
|
case "AccessDeniedException":
|
|
1789
1789
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1790
|
-
throw await
|
|
1790
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1791
1791
|
case "InternalException":
|
|
1792
1792
|
case "com.amazonaws.inspector#InternalException":
|
|
1793
|
-
throw await
|
|
1793
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1794
1794
|
case "InvalidInputException":
|
|
1795
1795
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1796
|
-
throw await
|
|
1796
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1797
1797
|
case "LimitExceededException":
|
|
1798
1798
|
case "com.amazonaws.inspector#LimitExceededException":
|
|
1799
|
-
throw await
|
|
1799
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1800
1800
|
case "NoSuchEntityException":
|
|
1801
1801
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1802
|
-
throw await
|
|
1802
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1803
1803
|
case "ServiceTemporarilyUnavailableException":
|
|
1804
1804
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1805
|
-
throw await
|
|
1805
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1806
1806
|
default:
|
|
1807
1807
|
const parsedBody = parsedOutput.body;
|
|
1808
1808
|
throwDefaultError({
|
|
@@ -1813,9 +1813,9 @@ const deserializeAws_json1_1SubscribeToEventCommandError = async (output, contex
|
|
|
1813
1813
|
});
|
|
1814
1814
|
}
|
|
1815
1815
|
};
|
|
1816
|
-
export const
|
|
1816
|
+
export const de_UnsubscribeFromEventCommand = async (output, context) => {
|
|
1817
1817
|
if (output.statusCode >= 300) {
|
|
1818
|
-
return
|
|
1818
|
+
return de_UnsubscribeFromEventCommandError(output, context);
|
|
1819
1819
|
}
|
|
1820
1820
|
await collectBody(output.body, context);
|
|
1821
1821
|
const response = {
|
|
@@ -1823,7 +1823,7 @@ export const deserializeAws_json1_1UnsubscribeFromEventCommand = async (output,
|
|
|
1823
1823
|
};
|
|
1824
1824
|
return Promise.resolve(response);
|
|
1825
1825
|
};
|
|
1826
|
-
const
|
|
1826
|
+
const de_UnsubscribeFromEventCommandError = async (output, context) => {
|
|
1827
1827
|
const parsedOutput = {
|
|
1828
1828
|
...output,
|
|
1829
1829
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1832,19 +1832,19 @@ const deserializeAws_json1_1UnsubscribeFromEventCommandError = async (output, co
|
|
|
1832
1832
|
switch (errorCode) {
|
|
1833
1833
|
case "AccessDeniedException":
|
|
1834
1834
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1835
|
-
throw await
|
|
1835
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1836
1836
|
case "InternalException":
|
|
1837
1837
|
case "com.amazonaws.inspector#InternalException":
|
|
1838
|
-
throw await
|
|
1838
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1839
1839
|
case "InvalidInputException":
|
|
1840
1840
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1841
|
-
throw await
|
|
1841
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1842
1842
|
case "NoSuchEntityException":
|
|
1843
1843
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1844
|
-
throw await
|
|
1844
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1845
1845
|
case "ServiceTemporarilyUnavailableException":
|
|
1846
1846
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1847
|
-
throw await
|
|
1847
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1848
1848
|
default:
|
|
1849
1849
|
const parsedBody = parsedOutput.body;
|
|
1850
1850
|
throwDefaultError({
|
|
@@ -1855,9 +1855,9 @@ const deserializeAws_json1_1UnsubscribeFromEventCommandError = async (output, co
|
|
|
1855
1855
|
});
|
|
1856
1856
|
}
|
|
1857
1857
|
};
|
|
1858
|
-
export const
|
|
1858
|
+
export const de_UpdateAssessmentTargetCommand = async (output, context) => {
|
|
1859
1859
|
if (output.statusCode >= 300) {
|
|
1860
|
-
return
|
|
1860
|
+
return de_UpdateAssessmentTargetCommandError(output, context);
|
|
1861
1861
|
}
|
|
1862
1862
|
await collectBody(output.body, context);
|
|
1863
1863
|
const response = {
|
|
@@ -1865,7 +1865,7 @@ export const deserializeAws_json1_1UpdateAssessmentTargetCommand = async (output
|
|
|
1865
1865
|
};
|
|
1866
1866
|
return Promise.resolve(response);
|
|
1867
1867
|
};
|
|
1868
|
-
const
|
|
1868
|
+
const de_UpdateAssessmentTargetCommandError = async (output, context) => {
|
|
1869
1869
|
const parsedOutput = {
|
|
1870
1870
|
...output,
|
|
1871
1871
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1874,19 +1874,19 @@ const deserializeAws_json1_1UpdateAssessmentTargetCommandError = async (output,
|
|
|
1874
1874
|
switch (errorCode) {
|
|
1875
1875
|
case "AccessDeniedException":
|
|
1876
1876
|
case "com.amazonaws.inspector#AccessDeniedException":
|
|
1877
|
-
throw await
|
|
1877
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1878
1878
|
case "InternalException":
|
|
1879
1879
|
case "com.amazonaws.inspector#InternalException":
|
|
1880
|
-
throw await
|
|
1880
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1881
1881
|
case "InvalidInputException":
|
|
1882
1882
|
case "com.amazonaws.inspector#InvalidInputException":
|
|
1883
|
-
throw await
|
|
1883
|
+
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1884
1884
|
case "NoSuchEntityException":
|
|
1885
1885
|
case "com.amazonaws.inspector#NoSuchEntityException":
|
|
1886
|
-
throw await
|
|
1886
|
+
throw await de_NoSuchEntityExceptionRes(parsedOutput, context);
|
|
1887
1887
|
case "ServiceTemporarilyUnavailableException":
|
|
1888
1888
|
case "com.amazonaws.inspector#ServiceTemporarilyUnavailableException":
|
|
1889
|
-
throw await
|
|
1889
|
+
throw await de_ServiceTemporarilyUnavailableExceptionRes(parsedOutput, context);
|
|
1890
1890
|
default:
|
|
1891
1891
|
const parsedBody = parsedOutput.body;
|
|
1892
1892
|
throwDefaultError({
|
|
@@ -1897,377 +1897,361 @@ const deserializeAws_json1_1UpdateAssessmentTargetCommandError = async (output,
|
|
|
1897
1897
|
});
|
|
1898
1898
|
}
|
|
1899
1899
|
};
|
|
1900
|
-
const
|
|
1900
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1901
1901
|
const body = parsedOutput.body;
|
|
1902
|
-
const deserialized =
|
|
1902
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
1903
1903
|
const exception = new AccessDeniedException({
|
|
1904
1904
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1905
1905
|
...deserialized,
|
|
1906
1906
|
});
|
|
1907
1907
|
return __decorateServiceException(exception, body);
|
|
1908
1908
|
};
|
|
1909
|
-
const
|
|
1909
|
+
const de_AgentsAlreadyRunningAssessmentExceptionRes = async (parsedOutput, context) => {
|
|
1910
1910
|
const body = parsedOutput.body;
|
|
1911
|
-
const deserialized =
|
|
1911
|
+
const deserialized = de_AgentsAlreadyRunningAssessmentException(body, context);
|
|
1912
1912
|
const exception = new AgentsAlreadyRunningAssessmentException({
|
|
1913
1913
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1914
1914
|
...deserialized,
|
|
1915
1915
|
});
|
|
1916
1916
|
return __decorateServiceException(exception, body);
|
|
1917
1917
|
};
|
|
1918
|
-
const
|
|
1918
|
+
const de_AssessmentRunInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1919
1919
|
const body = parsedOutput.body;
|
|
1920
|
-
const deserialized =
|
|
1920
|
+
const deserialized = de_AssessmentRunInProgressException(body, context);
|
|
1921
1921
|
const exception = new AssessmentRunInProgressException({
|
|
1922
1922
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1923
1923
|
...deserialized,
|
|
1924
1924
|
});
|
|
1925
1925
|
return __decorateServiceException(exception, body);
|
|
1926
1926
|
};
|
|
1927
|
-
const
|
|
1927
|
+
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
1928
1928
|
const body = parsedOutput.body;
|
|
1929
|
-
const deserialized =
|
|
1929
|
+
const deserialized = de_InternalException(body, context);
|
|
1930
1930
|
const exception = new InternalException({
|
|
1931
1931
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1932
1932
|
...deserialized,
|
|
1933
1933
|
});
|
|
1934
1934
|
return __decorateServiceException(exception, body);
|
|
1935
1935
|
};
|
|
1936
|
-
const
|
|
1936
|
+
const de_InvalidCrossAccountRoleExceptionRes = async (parsedOutput, context) => {
|
|
1937
1937
|
const body = parsedOutput.body;
|
|
1938
|
-
const deserialized =
|
|
1938
|
+
const deserialized = de_InvalidCrossAccountRoleException(body, context);
|
|
1939
1939
|
const exception = new InvalidCrossAccountRoleException({
|
|
1940
1940
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1941
1941
|
...deserialized,
|
|
1942
1942
|
});
|
|
1943
1943
|
return __decorateServiceException(exception, body);
|
|
1944
1944
|
};
|
|
1945
|
-
const
|
|
1945
|
+
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1946
1946
|
const body = parsedOutput.body;
|
|
1947
|
-
const deserialized =
|
|
1947
|
+
const deserialized = de_InvalidInputException(body, context);
|
|
1948
1948
|
const exception = new InvalidInputException({
|
|
1949
1949
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1950
1950
|
...deserialized,
|
|
1951
1951
|
});
|
|
1952
1952
|
return __decorateServiceException(exception, body);
|
|
1953
1953
|
};
|
|
1954
|
-
const
|
|
1954
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1955
1955
|
const body = parsedOutput.body;
|
|
1956
|
-
const deserialized =
|
|
1956
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1957
1957
|
const exception = new LimitExceededException({
|
|
1958
1958
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1959
1959
|
...deserialized,
|
|
1960
1960
|
});
|
|
1961
1961
|
return __decorateServiceException(exception, body);
|
|
1962
1962
|
};
|
|
1963
|
-
const
|
|
1963
|
+
const de_NoSuchEntityExceptionRes = async (parsedOutput, context) => {
|
|
1964
1964
|
const body = parsedOutput.body;
|
|
1965
|
-
const deserialized =
|
|
1965
|
+
const deserialized = de_NoSuchEntityException(body, context);
|
|
1966
1966
|
const exception = new NoSuchEntityException({
|
|
1967
1967
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1968
1968
|
...deserialized,
|
|
1969
1969
|
});
|
|
1970
1970
|
return __decorateServiceException(exception, body);
|
|
1971
1971
|
};
|
|
1972
|
-
const
|
|
1972
|
+
const de_PreviewGenerationInProgressExceptionRes = async (parsedOutput, context) => {
|
|
1973
1973
|
const body = parsedOutput.body;
|
|
1974
|
-
const deserialized =
|
|
1974
|
+
const deserialized = de_PreviewGenerationInProgressException(body, context);
|
|
1975
1975
|
const exception = new PreviewGenerationInProgressException({
|
|
1976
1976
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1977
1977
|
...deserialized,
|
|
1978
1978
|
});
|
|
1979
1979
|
return __decorateServiceException(exception, body);
|
|
1980
1980
|
};
|
|
1981
|
-
const
|
|
1981
|
+
const de_ServiceTemporarilyUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1982
1982
|
const body = parsedOutput.body;
|
|
1983
|
-
const deserialized =
|
|
1983
|
+
const deserialized = de_ServiceTemporarilyUnavailableException(body, context);
|
|
1984
1984
|
const exception = new ServiceTemporarilyUnavailableException({
|
|
1985
1985
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1986
1986
|
...deserialized,
|
|
1987
1987
|
});
|
|
1988
1988
|
return __decorateServiceException(exception, body);
|
|
1989
1989
|
};
|
|
1990
|
-
const
|
|
1990
|
+
const de_UnsupportedFeatureExceptionRes = async (parsedOutput, context) => {
|
|
1991
1991
|
const body = parsedOutput.body;
|
|
1992
|
-
const deserialized =
|
|
1992
|
+
const deserialized = de_UnsupportedFeatureException(body, context);
|
|
1993
1993
|
const exception = new UnsupportedFeatureException({
|
|
1994
1994
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1995
1995
|
...deserialized,
|
|
1996
1996
|
});
|
|
1997
1997
|
return __decorateServiceException(exception, body);
|
|
1998
1998
|
};
|
|
1999
|
-
const
|
|
1999
|
+
const se_AddAttributesToFindingsRequest = (input, context) => {
|
|
2000
2000
|
return {
|
|
2001
|
-
...(input.attributes != null && { attributes:
|
|
2002
|
-
...(input.findingArns != null && {
|
|
2003
|
-
findingArns: serializeAws_json1_1AddRemoveAttributesFindingArnList(input.findingArns, context),
|
|
2004
|
-
}),
|
|
2001
|
+
...(input.attributes != null && { attributes: se_UserAttributeList(input.attributes, context) }),
|
|
2002
|
+
...(input.findingArns != null && { findingArns: se_AddRemoveAttributesFindingArnList(input.findingArns, context) }),
|
|
2005
2003
|
};
|
|
2006
2004
|
};
|
|
2007
|
-
const
|
|
2005
|
+
const se_AddRemoveAttributesFindingArnList = (input, context) => {
|
|
2008
2006
|
return input
|
|
2009
2007
|
.filter((e) => e != null)
|
|
2010
2008
|
.map((entry) => {
|
|
2011
2009
|
return entry;
|
|
2012
2010
|
});
|
|
2013
2011
|
};
|
|
2014
|
-
const
|
|
2012
|
+
const se_AgentFilter = (input, context) => {
|
|
2015
2013
|
return {
|
|
2016
2014
|
...(input.agentHealthCodes != null && {
|
|
2017
|
-
agentHealthCodes:
|
|
2018
|
-
}),
|
|
2019
|
-
...(input.agentHealths != null && {
|
|
2020
|
-
agentHealths: serializeAws_json1_1AgentHealthList(input.agentHealths, context),
|
|
2015
|
+
agentHealthCodes: se_AgentHealthCodeList(input.agentHealthCodes, context),
|
|
2021
2016
|
}),
|
|
2017
|
+
...(input.agentHealths != null && { agentHealths: se_AgentHealthList(input.agentHealths, context) }),
|
|
2022
2018
|
};
|
|
2023
2019
|
};
|
|
2024
|
-
const
|
|
2020
|
+
const se_AgentHealthCodeList = (input, context) => {
|
|
2025
2021
|
return input
|
|
2026
2022
|
.filter((e) => e != null)
|
|
2027
2023
|
.map((entry) => {
|
|
2028
2024
|
return entry;
|
|
2029
2025
|
});
|
|
2030
2026
|
};
|
|
2031
|
-
const
|
|
2027
|
+
const se_AgentHealthList = (input, context) => {
|
|
2032
2028
|
return input
|
|
2033
2029
|
.filter((e) => e != null)
|
|
2034
2030
|
.map((entry) => {
|
|
2035
2031
|
return entry;
|
|
2036
2032
|
});
|
|
2037
2033
|
};
|
|
2038
|
-
const
|
|
2034
|
+
const se_AgentIdList = (input, context) => {
|
|
2039
2035
|
return input
|
|
2040
2036
|
.filter((e) => e != null)
|
|
2041
2037
|
.map((entry) => {
|
|
2042
2038
|
return entry;
|
|
2043
2039
|
});
|
|
2044
2040
|
};
|
|
2045
|
-
const
|
|
2041
|
+
const se_AssessmentRunFilter = (input, context) => {
|
|
2046
2042
|
return {
|
|
2047
2043
|
...(input.completionTimeRange != null && {
|
|
2048
|
-
completionTimeRange:
|
|
2049
|
-
}),
|
|
2050
|
-
...(input.durationRange != null && {
|
|
2051
|
-
durationRange: serializeAws_json1_1DurationRange(input.durationRange, context),
|
|
2044
|
+
completionTimeRange: se_TimestampRange(input.completionTimeRange, context),
|
|
2052
2045
|
}),
|
|
2046
|
+
...(input.durationRange != null && { durationRange: se_DurationRange(input.durationRange, context) }),
|
|
2053
2047
|
...(input.namePattern != null && { namePattern: input.namePattern }),
|
|
2054
2048
|
...(input.rulesPackageArns != null && {
|
|
2055
|
-
rulesPackageArns:
|
|
2056
|
-
}),
|
|
2057
|
-
...(input.startTimeRange != null && {
|
|
2058
|
-
startTimeRange: serializeAws_json1_1TimestampRange(input.startTimeRange, context),
|
|
2049
|
+
rulesPackageArns: se_FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2059
2050
|
}),
|
|
2051
|
+
...(input.startTimeRange != null && { startTimeRange: se_TimestampRange(input.startTimeRange, context) }),
|
|
2060
2052
|
...(input.stateChangeTimeRange != null && {
|
|
2061
|
-
stateChangeTimeRange:
|
|
2053
|
+
stateChangeTimeRange: se_TimestampRange(input.stateChangeTimeRange, context),
|
|
2062
2054
|
}),
|
|
2063
|
-
...(input.states != null && { states:
|
|
2055
|
+
...(input.states != null && { states: se_AssessmentRunStateList(input.states, context) }),
|
|
2064
2056
|
};
|
|
2065
2057
|
};
|
|
2066
|
-
const
|
|
2058
|
+
const se_AssessmentRunStateList = (input, context) => {
|
|
2067
2059
|
return input
|
|
2068
2060
|
.filter((e) => e != null)
|
|
2069
2061
|
.map((entry) => {
|
|
2070
2062
|
return entry;
|
|
2071
2063
|
});
|
|
2072
2064
|
};
|
|
2073
|
-
const
|
|
2065
|
+
const se_AssessmentTargetFilter = (input, context) => {
|
|
2074
2066
|
return {
|
|
2075
2067
|
...(input.assessmentTargetNamePattern != null && {
|
|
2076
2068
|
assessmentTargetNamePattern: input.assessmentTargetNamePattern,
|
|
2077
2069
|
}),
|
|
2078
2070
|
};
|
|
2079
2071
|
};
|
|
2080
|
-
const
|
|
2072
|
+
const se_AssessmentTemplateFilter = (input, context) => {
|
|
2081
2073
|
return {
|
|
2082
|
-
...(input.durationRange != null && {
|
|
2083
|
-
durationRange: serializeAws_json1_1DurationRange(input.durationRange, context),
|
|
2084
|
-
}),
|
|
2074
|
+
...(input.durationRange != null && { durationRange: se_DurationRange(input.durationRange, context) }),
|
|
2085
2075
|
...(input.namePattern != null && { namePattern: input.namePattern }),
|
|
2086
2076
|
...(input.rulesPackageArns != null && {
|
|
2087
|
-
rulesPackageArns:
|
|
2077
|
+
rulesPackageArns: se_FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2088
2078
|
}),
|
|
2089
2079
|
};
|
|
2090
2080
|
};
|
|
2091
|
-
const
|
|
2081
|
+
const se_AssessmentTemplateRulesPackageArnList = (input, context) => {
|
|
2092
2082
|
return input
|
|
2093
2083
|
.filter((e) => e != null)
|
|
2094
2084
|
.map((entry) => {
|
|
2095
2085
|
return entry;
|
|
2096
2086
|
});
|
|
2097
2087
|
};
|
|
2098
|
-
const
|
|
2088
|
+
const se_Attribute = (input, context) => {
|
|
2099
2089
|
return {
|
|
2100
2090
|
...(input.key != null && { key: input.key }),
|
|
2101
2091
|
...(input.value != null && { value: input.value }),
|
|
2102
2092
|
};
|
|
2103
2093
|
};
|
|
2104
|
-
const
|
|
2094
|
+
const se_AttributeList = (input, context) => {
|
|
2105
2095
|
return input
|
|
2106
2096
|
.filter((e) => e != null)
|
|
2107
2097
|
.map((entry) => {
|
|
2108
|
-
return
|
|
2098
|
+
return se_Attribute(entry, context);
|
|
2109
2099
|
});
|
|
2110
2100
|
};
|
|
2111
|
-
const
|
|
2101
|
+
const se_AutoScalingGroupList = (input, context) => {
|
|
2112
2102
|
return input
|
|
2113
2103
|
.filter((e) => e != null)
|
|
2114
2104
|
.map((entry) => {
|
|
2115
2105
|
return entry;
|
|
2116
2106
|
});
|
|
2117
2107
|
};
|
|
2118
|
-
const
|
|
2108
|
+
const se_BatchDescribeArnList = (input, context) => {
|
|
2119
2109
|
return input
|
|
2120
2110
|
.filter((e) => e != null)
|
|
2121
2111
|
.map((entry) => {
|
|
2122
2112
|
return entry;
|
|
2123
2113
|
});
|
|
2124
2114
|
};
|
|
2125
|
-
const
|
|
2115
|
+
const se_BatchDescribeExclusionsArnList = (input, context) => {
|
|
2126
2116
|
return input
|
|
2127
2117
|
.filter((e) => e != null)
|
|
2128
2118
|
.map((entry) => {
|
|
2129
2119
|
return entry;
|
|
2130
2120
|
});
|
|
2131
2121
|
};
|
|
2132
|
-
const
|
|
2122
|
+
const se_CreateAssessmentTargetRequest = (input, context) => {
|
|
2133
2123
|
return {
|
|
2134
2124
|
...(input.assessmentTargetName != null && { assessmentTargetName: input.assessmentTargetName }),
|
|
2135
2125
|
...(input.resourceGroupArn != null && { resourceGroupArn: input.resourceGroupArn }),
|
|
2136
2126
|
};
|
|
2137
2127
|
};
|
|
2138
|
-
const
|
|
2128
|
+
const se_CreateAssessmentTemplateRequest = (input, context) => {
|
|
2139
2129
|
return {
|
|
2140
2130
|
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2141
2131
|
...(input.assessmentTemplateName != null && { assessmentTemplateName: input.assessmentTemplateName }),
|
|
2142
2132
|
...(input.durationInSeconds != null && { durationInSeconds: input.durationInSeconds }),
|
|
2143
2133
|
...(input.rulesPackageArns != null && {
|
|
2144
|
-
rulesPackageArns:
|
|
2134
|
+
rulesPackageArns: se_AssessmentTemplateRulesPackageArnList(input.rulesPackageArns, context),
|
|
2145
2135
|
}),
|
|
2146
2136
|
...(input.userAttributesForFindings != null && {
|
|
2147
|
-
userAttributesForFindings:
|
|
2137
|
+
userAttributesForFindings: se_UserAttributeList(input.userAttributesForFindings, context),
|
|
2148
2138
|
}),
|
|
2149
2139
|
};
|
|
2150
2140
|
};
|
|
2151
|
-
const
|
|
2141
|
+
const se_CreateExclusionsPreviewRequest = (input, context) => {
|
|
2152
2142
|
return {
|
|
2153
2143
|
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2154
2144
|
};
|
|
2155
2145
|
};
|
|
2156
|
-
const
|
|
2146
|
+
const se_CreateResourceGroupRequest = (input, context) => {
|
|
2157
2147
|
return {
|
|
2158
2148
|
...(input.resourceGroupTags != null && {
|
|
2159
|
-
resourceGroupTags:
|
|
2149
|
+
resourceGroupTags: se_ResourceGroupTags(input.resourceGroupTags, context),
|
|
2160
2150
|
}),
|
|
2161
2151
|
};
|
|
2162
2152
|
};
|
|
2163
|
-
const
|
|
2153
|
+
const se_DeleteAssessmentRunRequest = (input, context) => {
|
|
2164
2154
|
return {
|
|
2165
2155
|
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2166
2156
|
};
|
|
2167
2157
|
};
|
|
2168
|
-
const
|
|
2158
|
+
const se_DeleteAssessmentTargetRequest = (input, context) => {
|
|
2169
2159
|
return {
|
|
2170
2160
|
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2171
2161
|
};
|
|
2172
2162
|
};
|
|
2173
|
-
const
|
|
2163
|
+
const se_DeleteAssessmentTemplateRequest = (input, context) => {
|
|
2174
2164
|
return {
|
|
2175
2165
|
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2176
2166
|
};
|
|
2177
2167
|
};
|
|
2178
|
-
const
|
|
2168
|
+
const se_DescribeAssessmentRunsRequest = (input, context) => {
|
|
2179
2169
|
return {
|
|
2180
2170
|
...(input.assessmentRunArns != null && {
|
|
2181
|
-
assessmentRunArns:
|
|
2171
|
+
assessmentRunArns: se_BatchDescribeArnList(input.assessmentRunArns, context),
|
|
2182
2172
|
}),
|
|
2183
2173
|
};
|
|
2184
2174
|
};
|
|
2185
|
-
const
|
|
2175
|
+
const se_DescribeAssessmentTargetsRequest = (input, context) => {
|
|
2186
2176
|
return {
|
|
2187
2177
|
...(input.assessmentTargetArns != null && {
|
|
2188
|
-
assessmentTargetArns:
|
|
2178
|
+
assessmentTargetArns: se_BatchDescribeArnList(input.assessmentTargetArns, context),
|
|
2189
2179
|
}),
|
|
2190
2180
|
};
|
|
2191
2181
|
};
|
|
2192
|
-
const
|
|
2182
|
+
const se_DescribeAssessmentTemplatesRequest = (input, context) => {
|
|
2193
2183
|
return {
|
|
2194
2184
|
...(input.assessmentTemplateArns != null && {
|
|
2195
|
-
assessmentTemplateArns:
|
|
2185
|
+
assessmentTemplateArns: se_BatchDescribeArnList(input.assessmentTemplateArns, context),
|
|
2196
2186
|
}),
|
|
2197
2187
|
};
|
|
2198
2188
|
};
|
|
2199
|
-
const
|
|
2189
|
+
const se_DescribeExclusionsRequest = (input, context) => {
|
|
2200
2190
|
return {
|
|
2201
2191
|
...(input.exclusionArns != null && {
|
|
2202
|
-
exclusionArns:
|
|
2192
|
+
exclusionArns: se_BatchDescribeExclusionsArnList(input.exclusionArns, context),
|
|
2203
2193
|
}),
|
|
2204
2194
|
...(input.locale != null && { locale: input.locale }),
|
|
2205
2195
|
};
|
|
2206
2196
|
};
|
|
2207
|
-
const
|
|
2197
|
+
const se_DescribeFindingsRequest = (input, context) => {
|
|
2208
2198
|
return {
|
|
2209
|
-
...(input.findingArns != null && {
|
|
2210
|
-
findingArns: serializeAws_json1_1BatchDescribeArnList(input.findingArns, context),
|
|
2211
|
-
}),
|
|
2199
|
+
...(input.findingArns != null && { findingArns: se_BatchDescribeArnList(input.findingArns, context) }),
|
|
2212
2200
|
...(input.locale != null && { locale: input.locale }),
|
|
2213
2201
|
};
|
|
2214
2202
|
};
|
|
2215
|
-
const
|
|
2203
|
+
const se_DescribeResourceGroupsRequest = (input, context) => {
|
|
2216
2204
|
return {
|
|
2217
2205
|
...(input.resourceGroupArns != null && {
|
|
2218
|
-
resourceGroupArns:
|
|
2206
|
+
resourceGroupArns: se_BatchDescribeArnList(input.resourceGroupArns, context),
|
|
2219
2207
|
}),
|
|
2220
2208
|
};
|
|
2221
2209
|
};
|
|
2222
|
-
const
|
|
2210
|
+
const se_DescribeRulesPackagesRequest = (input, context) => {
|
|
2223
2211
|
return {
|
|
2224
2212
|
...(input.locale != null && { locale: input.locale }),
|
|
2225
2213
|
...(input.rulesPackageArns != null && {
|
|
2226
|
-
rulesPackageArns:
|
|
2214
|
+
rulesPackageArns: se_BatchDescribeArnList(input.rulesPackageArns, context),
|
|
2227
2215
|
}),
|
|
2228
2216
|
};
|
|
2229
2217
|
};
|
|
2230
|
-
const
|
|
2218
|
+
const se_DurationRange = (input, context) => {
|
|
2231
2219
|
return {
|
|
2232
2220
|
...(input.maxSeconds != null && { maxSeconds: input.maxSeconds }),
|
|
2233
2221
|
...(input.minSeconds != null && { minSeconds: input.minSeconds }),
|
|
2234
2222
|
};
|
|
2235
2223
|
};
|
|
2236
|
-
const
|
|
2224
|
+
const se_FilterRulesPackageArnList = (input, context) => {
|
|
2237
2225
|
return input
|
|
2238
2226
|
.filter((e) => e != null)
|
|
2239
2227
|
.map((entry) => {
|
|
2240
2228
|
return entry;
|
|
2241
2229
|
});
|
|
2242
2230
|
};
|
|
2243
|
-
const
|
|
2231
|
+
const se_FindingFilter = (input, context) => {
|
|
2244
2232
|
return {
|
|
2245
|
-
...(input.agentIds != null && { agentIds:
|
|
2246
|
-
...(input.attributes != null && { attributes:
|
|
2233
|
+
...(input.agentIds != null && { agentIds: se_AgentIdList(input.agentIds, context) }),
|
|
2234
|
+
...(input.attributes != null && { attributes: se_AttributeList(input.attributes, context) }),
|
|
2247
2235
|
...(input.autoScalingGroups != null && {
|
|
2248
|
-
autoScalingGroups:
|
|
2249
|
-
}),
|
|
2250
|
-
...(input.creationTimeRange != null && {
|
|
2251
|
-
creationTimeRange: serializeAws_json1_1TimestampRange(input.creationTimeRange, context),
|
|
2236
|
+
autoScalingGroups: se_AutoScalingGroupList(input.autoScalingGroups, context),
|
|
2252
2237
|
}),
|
|
2253
|
-
...(input.
|
|
2238
|
+
...(input.creationTimeRange != null && { creationTimeRange: se_TimestampRange(input.creationTimeRange, context) }),
|
|
2239
|
+
...(input.ruleNames != null && { ruleNames: se_RuleNameList(input.ruleNames, context) }),
|
|
2254
2240
|
...(input.rulesPackageArns != null && {
|
|
2255
|
-
rulesPackageArns:
|
|
2256
|
-
}),
|
|
2257
|
-
...(input.severities != null && { severities: serializeAws_json1_1SeverityList(input.severities, context) }),
|
|
2258
|
-
...(input.userAttributes != null && {
|
|
2259
|
-
userAttributes: serializeAws_json1_1AttributeList(input.userAttributes, context),
|
|
2241
|
+
rulesPackageArns: se_FilterRulesPackageArnList(input.rulesPackageArns, context),
|
|
2260
2242
|
}),
|
|
2243
|
+
...(input.severities != null && { severities: se_SeverityList(input.severities, context) }),
|
|
2244
|
+
...(input.userAttributes != null && { userAttributes: se_AttributeList(input.userAttributes, context) }),
|
|
2261
2245
|
};
|
|
2262
2246
|
};
|
|
2263
|
-
const
|
|
2247
|
+
const se_GetAssessmentReportRequest = (input, context) => {
|
|
2264
2248
|
return {
|
|
2265
2249
|
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2266
2250
|
...(input.reportFileFormat != null && { reportFileFormat: input.reportFileFormat }),
|
|
2267
2251
|
...(input.reportType != null && { reportType: input.reportType }),
|
|
2268
2252
|
};
|
|
2269
2253
|
};
|
|
2270
|
-
const
|
|
2254
|
+
const se_GetExclusionsPreviewRequest = (input, context) => {
|
|
2271
2255
|
return {
|
|
2272
2256
|
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2273
2257
|
...(input.locale != null && { locale: input.locale }),
|
|
@@ -2276,239 +2260,235 @@ const serializeAws_json1_1GetExclusionsPreviewRequest = (input, context) => {
|
|
|
2276
2260
|
...(input.previewToken != null && { previewToken: input.previewToken }),
|
|
2277
2261
|
};
|
|
2278
2262
|
};
|
|
2279
|
-
const
|
|
2263
|
+
const se_GetTelemetryMetadataRequest = (input, context) => {
|
|
2280
2264
|
return {
|
|
2281
2265
|
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2282
2266
|
};
|
|
2283
2267
|
};
|
|
2284
|
-
const
|
|
2268
|
+
const se_ListAssessmentRunAgentsRequest = (input, context) => {
|
|
2285
2269
|
return {
|
|
2286
2270
|
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2287
|
-
...(input.filter != null && { filter:
|
|
2271
|
+
...(input.filter != null && { filter: se_AgentFilter(input.filter, context) }),
|
|
2288
2272
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2289
2273
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2290
2274
|
};
|
|
2291
2275
|
};
|
|
2292
|
-
const
|
|
2276
|
+
const se_ListAssessmentRunsRequest = (input, context) => {
|
|
2293
2277
|
return {
|
|
2294
2278
|
...(input.assessmentTemplateArns != null && {
|
|
2295
|
-
assessmentTemplateArns:
|
|
2279
|
+
assessmentTemplateArns: se_ListParentArnList(input.assessmentTemplateArns, context),
|
|
2296
2280
|
}),
|
|
2297
|
-
...(input.filter != null && { filter:
|
|
2281
|
+
...(input.filter != null && { filter: se_AssessmentRunFilter(input.filter, context) }),
|
|
2298
2282
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2299
2283
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2300
2284
|
};
|
|
2301
2285
|
};
|
|
2302
|
-
const
|
|
2286
|
+
const se_ListAssessmentTargetsRequest = (input, context) => {
|
|
2303
2287
|
return {
|
|
2304
|
-
...(input.filter != null && { filter:
|
|
2288
|
+
...(input.filter != null && { filter: se_AssessmentTargetFilter(input.filter, context) }),
|
|
2305
2289
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2306
2290
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2307
2291
|
};
|
|
2308
2292
|
};
|
|
2309
|
-
const
|
|
2293
|
+
const se_ListAssessmentTemplatesRequest = (input, context) => {
|
|
2310
2294
|
return {
|
|
2311
2295
|
...(input.assessmentTargetArns != null && {
|
|
2312
|
-
assessmentTargetArns:
|
|
2296
|
+
assessmentTargetArns: se_ListParentArnList(input.assessmentTargetArns, context),
|
|
2313
2297
|
}),
|
|
2314
|
-
...(input.filter != null && { filter:
|
|
2298
|
+
...(input.filter != null && { filter: se_AssessmentTemplateFilter(input.filter, context) }),
|
|
2315
2299
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2316
2300
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2317
2301
|
};
|
|
2318
2302
|
};
|
|
2319
|
-
const
|
|
2303
|
+
const se_ListEventSubscriptionsRequest = (input, context) => {
|
|
2320
2304
|
return {
|
|
2321
2305
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2322
2306
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2323
2307
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2324
2308
|
};
|
|
2325
2309
|
};
|
|
2326
|
-
const
|
|
2310
|
+
const se_ListExclusionsRequest = (input, context) => {
|
|
2327
2311
|
return {
|
|
2328
2312
|
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2329
2313
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2330
2314
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2331
2315
|
};
|
|
2332
2316
|
};
|
|
2333
|
-
const
|
|
2317
|
+
const se_ListFindingsRequest = (input, context) => {
|
|
2334
2318
|
return {
|
|
2335
2319
|
...(input.assessmentRunArns != null && {
|
|
2336
|
-
assessmentRunArns:
|
|
2320
|
+
assessmentRunArns: se_ListParentArnList(input.assessmentRunArns, context),
|
|
2337
2321
|
}),
|
|
2338
|
-
...(input.filter != null && { filter:
|
|
2322
|
+
...(input.filter != null && { filter: se_FindingFilter(input.filter, context) }),
|
|
2339
2323
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2340
2324
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2341
2325
|
};
|
|
2342
2326
|
};
|
|
2343
|
-
const
|
|
2327
|
+
const se_ListParentArnList = (input, context) => {
|
|
2344
2328
|
return input
|
|
2345
2329
|
.filter((e) => e != null)
|
|
2346
2330
|
.map((entry) => {
|
|
2347
2331
|
return entry;
|
|
2348
2332
|
});
|
|
2349
2333
|
};
|
|
2350
|
-
const
|
|
2334
|
+
const se_ListRulesPackagesRequest = (input, context) => {
|
|
2351
2335
|
return {
|
|
2352
2336
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2353
2337
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2354
2338
|
};
|
|
2355
2339
|
};
|
|
2356
|
-
const
|
|
2340
|
+
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2357
2341
|
return {
|
|
2358
2342
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2359
2343
|
};
|
|
2360
2344
|
};
|
|
2361
|
-
const
|
|
2345
|
+
const se_PreviewAgentsRequest = (input, context) => {
|
|
2362
2346
|
return {
|
|
2363
2347
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2364
2348
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2365
2349
|
...(input.previewAgentsArn != null && { previewAgentsArn: input.previewAgentsArn }),
|
|
2366
2350
|
};
|
|
2367
2351
|
};
|
|
2368
|
-
const
|
|
2352
|
+
const se_RegisterCrossAccountAccessRoleRequest = (input, context) => {
|
|
2369
2353
|
return {
|
|
2370
2354
|
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2371
2355
|
};
|
|
2372
2356
|
};
|
|
2373
|
-
const
|
|
2357
|
+
const se_RemoveAttributesFromFindingsRequest = (input, context) => {
|
|
2374
2358
|
return {
|
|
2375
|
-
...(input.attributeKeys != null && {
|
|
2376
|
-
|
|
2377
|
-
}),
|
|
2378
|
-
...(input.findingArns != null && {
|
|
2379
|
-
findingArns: serializeAws_json1_1AddRemoveAttributesFindingArnList(input.findingArns, context),
|
|
2380
|
-
}),
|
|
2359
|
+
...(input.attributeKeys != null && { attributeKeys: se_UserAttributeKeyList(input.attributeKeys, context) }),
|
|
2360
|
+
...(input.findingArns != null && { findingArns: se_AddRemoveAttributesFindingArnList(input.findingArns, context) }),
|
|
2381
2361
|
};
|
|
2382
2362
|
};
|
|
2383
|
-
const
|
|
2363
|
+
const se_ResourceGroupTag = (input, context) => {
|
|
2384
2364
|
return {
|
|
2385
2365
|
...(input.key != null && { key: input.key }),
|
|
2386
2366
|
...(input.value != null && { value: input.value }),
|
|
2387
2367
|
};
|
|
2388
2368
|
};
|
|
2389
|
-
const
|
|
2369
|
+
const se_ResourceGroupTags = (input, context) => {
|
|
2390
2370
|
return input
|
|
2391
2371
|
.filter((e) => e != null)
|
|
2392
2372
|
.map((entry) => {
|
|
2393
|
-
return
|
|
2373
|
+
return se_ResourceGroupTag(entry, context);
|
|
2394
2374
|
});
|
|
2395
2375
|
};
|
|
2396
|
-
const
|
|
2376
|
+
const se_RuleNameList = (input, context) => {
|
|
2397
2377
|
return input
|
|
2398
2378
|
.filter((e) => e != null)
|
|
2399
2379
|
.map((entry) => {
|
|
2400
2380
|
return entry;
|
|
2401
2381
|
});
|
|
2402
2382
|
};
|
|
2403
|
-
const
|
|
2383
|
+
const se_SetTagsForResourceRequest = (input, context) => {
|
|
2404
2384
|
return {
|
|
2405
2385
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2406
|
-
...(input.tags != null && { tags:
|
|
2386
|
+
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2407
2387
|
};
|
|
2408
2388
|
};
|
|
2409
|
-
const
|
|
2389
|
+
const se_SeverityList = (input, context) => {
|
|
2410
2390
|
return input
|
|
2411
2391
|
.filter((e) => e != null)
|
|
2412
2392
|
.map((entry) => {
|
|
2413
2393
|
return entry;
|
|
2414
2394
|
});
|
|
2415
2395
|
};
|
|
2416
|
-
const
|
|
2396
|
+
const se_StartAssessmentRunRequest = (input, context) => {
|
|
2417
2397
|
return {
|
|
2418
2398
|
...(input.assessmentRunName != null && { assessmentRunName: input.assessmentRunName }),
|
|
2419
2399
|
...(input.assessmentTemplateArn != null && { assessmentTemplateArn: input.assessmentTemplateArn }),
|
|
2420
2400
|
};
|
|
2421
2401
|
};
|
|
2422
|
-
const
|
|
2402
|
+
const se_StopAssessmentRunRequest = (input, context) => {
|
|
2423
2403
|
return {
|
|
2424
2404
|
...(input.assessmentRunArn != null && { assessmentRunArn: input.assessmentRunArn }),
|
|
2425
2405
|
...(input.stopAction != null && { stopAction: input.stopAction }),
|
|
2426
2406
|
};
|
|
2427
2407
|
};
|
|
2428
|
-
const
|
|
2408
|
+
const se_SubscribeToEventRequest = (input, context) => {
|
|
2429
2409
|
return {
|
|
2430
2410
|
...(input.event != null && { event: input.event }),
|
|
2431
2411
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2432
2412
|
...(input.topicArn != null && { topicArn: input.topicArn }),
|
|
2433
2413
|
};
|
|
2434
2414
|
};
|
|
2435
|
-
const
|
|
2415
|
+
const se_Tag = (input, context) => {
|
|
2436
2416
|
return {
|
|
2437
2417
|
...(input.key != null && { key: input.key }),
|
|
2438
2418
|
...(input.value != null && { value: input.value }),
|
|
2439
2419
|
};
|
|
2440
2420
|
};
|
|
2441
|
-
const
|
|
2421
|
+
const se_TagList = (input, context) => {
|
|
2442
2422
|
return input
|
|
2443
2423
|
.filter((e) => e != null)
|
|
2444
2424
|
.map((entry) => {
|
|
2445
|
-
return
|
|
2425
|
+
return se_Tag(entry, context);
|
|
2446
2426
|
});
|
|
2447
2427
|
};
|
|
2448
|
-
const
|
|
2428
|
+
const se_TimestampRange = (input, context) => {
|
|
2449
2429
|
return {
|
|
2450
2430
|
...(input.beginDate != null && { beginDate: Math.round(input.beginDate.getTime() / 1000) }),
|
|
2451
2431
|
...(input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) }),
|
|
2452
2432
|
};
|
|
2453
2433
|
};
|
|
2454
|
-
const
|
|
2434
|
+
const se_UnsubscribeFromEventRequest = (input, context) => {
|
|
2455
2435
|
return {
|
|
2456
2436
|
...(input.event != null && { event: input.event }),
|
|
2457
2437
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2458
2438
|
...(input.topicArn != null && { topicArn: input.topicArn }),
|
|
2459
2439
|
};
|
|
2460
2440
|
};
|
|
2461
|
-
const
|
|
2441
|
+
const se_UpdateAssessmentTargetRequest = (input, context) => {
|
|
2462
2442
|
return {
|
|
2463
2443
|
...(input.assessmentTargetArn != null && { assessmentTargetArn: input.assessmentTargetArn }),
|
|
2464
2444
|
...(input.assessmentTargetName != null && { assessmentTargetName: input.assessmentTargetName }),
|
|
2465
2445
|
...(input.resourceGroupArn != null && { resourceGroupArn: input.resourceGroupArn }),
|
|
2466
2446
|
};
|
|
2467
2447
|
};
|
|
2468
|
-
const
|
|
2448
|
+
const se_UserAttributeKeyList = (input, context) => {
|
|
2469
2449
|
return input
|
|
2470
2450
|
.filter((e) => e != null)
|
|
2471
2451
|
.map((entry) => {
|
|
2472
2452
|
return entry;
|
|
2473
2453
|
});
|
|
2474
2454
|
};
|
|
2475
|
-
const
|
|
2455
|
+
const se_UserAttributeList = (input, context) => {
|
|
2476
2456
|
return input
|
|
2477
2457
|
.filter((e) => e != null)
|
|
2478
2458
|
.map((entry) => {
|
|
2479
|
-
return
|
|
2459
|
+
return se_Attribute(entry, context);
|
|
2480
2460
|
});
|
|
2481
2461
|
};
|
|
2482
|
-
const
|
|
2462
|
+
const de_AccessDeniedException = (output, context) => {
|
|
2483
2463
|
return {
|
|
2484
2464
|
canRetry: __expectBoolean(output.canRetry),
|
|
2485
2465
|
errorCode: __expectString(output.errorCode),
|
|
2486
2466
|
message: __expectString(output.message),
|
|
2487
2467
|
};
|
|
2488
2468
|
};
|
|
2489
|
-
const
|
|
2469
|
+
const de_AddAttributesToFindingsResponse = (output, context) => {
|
|
2490
2470
|
return {
|
|
2491
|
-
failedItems: output.failedItems != null ?
|
|
2471
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2492
2472
|
};
|
|
2493
2473
|
};
|
|
2494
|
-
const
|
|
2474
|
+
const de_AgentAlreadyRunningAssessment = (output, context) => {
|
|
2495
2475
|
return {
|
|
2496
2476
|
agentId: __expectString(output.agentId),
|
|
2497
2477
|
assessmentRunArn: __expectString(output.assessmentRunArn),
|
|
2498
2478
|
};
|
|
2499
2479
|
};
|
|
2500
|
-
const
|
|
2480
|
+
const de_AgentAlreadyRunningAssessmentList = (output, context) => {
|
|
2501
2481
|
const retVal = (output || [])
|
|
2502
2482
|
.filter((e) => e != null)
|
|
2503
2483
|
.map((entry) => {
|
|
2504
2484
|
if (entry === null) {
|
|
2505
2485
|
return null;
|
|
2506
2486
|
}
|
|
2507
|
-
return
|
|
2487
|
+
return de_AgentAlreadyRunningAssessment(entry, context);
|
|
2508
2488
|
});
|
|
2509
2489
|
return retVal;
|
|
2510
2490
|
};
|
|
2511
|
-
const
|
|
2491
|
+
const de_AgentPreview = (output, context) => {
|
|
2512
2492
|
return {
|
|
2513
2493
|
agentHealth: __expectString(output.agentHealth),
|
|
2514
2494
|
agentId: __expectString(output.agentId),
|
|
@@ -2520,28 +2500,26 @@ const deserializeAws_json1_1AgentPreview = (output, context) => {
|
|
|
2520
2500
|
operatingSystem: __expectString(output.operatingSystem),
|
|
2521
2501
|
};
|
|
2522
2502
|
};
|
|
2523
|
-
const
|
|
2503
|
+
const de_AgentPreviewList = (output, context) => {
|
|
2524
2504
|
const retVal = (output || [])
|
|
2525
2505
|
.filter((e) => e != null)
|
|
2526
2506
|
.map((entry) => {
|
|
2527
2507
|
if (entry === null) {
|
|
2528
2508
|
return null;
|
|
2529
2509
|
}
|
|
2530
|
-
return
|
|
2510
|
+
return de_AgentPreview(entry, context);
|
|
2531
2511
|
});
|
|
2532
2512
|
return retVal;
|
|
2533
2513
|
};
|
|
2534
|
-
const
|
|
2514
|
+
const de_AgentsAlreadyRunningAssessmentException = (output, context) => {
|
|
2535
2515
|
return {
|
|
2536
|
-
agents: output.agents != null
|
|
2537
|
-
? deserializeAws_json1_1AgentAlreadyRunningAssessmentList(output.agents, context)
|
|
2538
|
-
: undefined,
|
|
2516
|
+
agents: output.agents != null ? de_AgentAlreadyRunningAssessmentList(output.agents, context) : undefined,
|
|
2539
2517
|
agentsTruncated: __expectBoolean(output.agentsTruncated),
|
|
2540
2518
|
canRetry: __expectBoolean(output.canRetry),
|
|
2541
2519
|
message: __expectString(output.message),
|
|
2542
2520
|
};
|
|
2543
2521
|
};
|
|
2544
|
-
const
|
|
2522
|
+
const de_AssessmentRulesPackageArnList = (output, context) => {
|
|
2545
2523
|
const retVal = (output || [])
|
|
2546
2524
|
.filter((e) => e != null)
|
|
2547
2525
|
.map((entry) => {
|
|
@@ -2552,7 +2530,7 @@ const deserializeAws_json1_1AssessmentRulesPackageArnList = (output, context) =>
|
|
|
2552
2530
|
});
|
|
2553
2531
|
return retVal;
|
|
2554
2532
|
};
|
|
2555
|
-
const
|
|
2533
|
+
const de_AssessmentRun = (output, context) => {
|
|
2556
2534
|
return {
|
|
2557
2535
|
arn: __expectString(output.arn),
|
|
2558
2536
|
assessmentTemplateArn: __expectString(output.assessmentTemplateArn),
|
|
@@ -2562,30 +2540,22 @@ const deserializeAws_json1_1AssessmentRun = (output, context) => {
|
|
|
2562
2540
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2563
2541
|
dataCollected: __expectBoolean(output.dataCollected),
|
|
2564
2542
|
durationInSeconds: __expectInt32(output.durationInSeconds),
|
|
2565
|
-
findingCounts: output.findingCounts != null
|
|
2566
|
-
? deserializeAws_json1_1AssessmentRunFindingCounts(output.findingCounts, context)
|
|
2567
|
-
: undefined,
|
|
2543
|
+
findingCounts: output.findingCounts != null ? de_AssessmentRunFindingCounts(output.findingCounts, context) : undefined,
|
|
2568
2544
|
name: __expectString(output.name),
|
|
2569
|
-
notifications: output.notifications != null
|
|
2570
|
-
|
|
2571
|
-
: undefined,
|
|
2572
|
-
rulesPackageArns: output.rulesPackageArns != null
|
|
2573
|
-
? deserializeAws_json1_1AssessmentRulesPackageArnList(output.rulesPackageArns, context)
|
|
2574
|
-
: undefined,
|
|
2545
|
+
notifications: output.notifications != null ? de_AssessmentRunNotificationList(output.notifications, context) : undefined,
|
|
2546
|
+
rulesPackageArns: output.rulesPackageArns != null ? de_AssessmentRulesPackageArnList(output.rulesPackageArns, context) : undefined,
|
|
2575
2547
|
startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
|
|
2576
2548
|
state: __expectString(output.state),
|
|
2577
2549
|
stateChangedAt: output.stateChangedAt != null
|
|
2578
2550
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.stateChangedAt)))
|
|
2579
2551
|
: undefined,
|
|
2580
|
-
stateChanges: output.stateChanges != null
|
|
2581
|
-
? deserializeAws_json1_1AssessmentRunStateChangeList(output.stateChanges, context)
|
|
2582
|
-
: undefined,
|
|
2552
|
+
stateChanges: output.stateChanges != null ? de_AssessmentRunStateChangeList(output.stateChanges, context) : undefined,
|
|
2583
2553
|
userAttributesForFindings: output.userAttributesForFindings != null
|
|
2584
|
-
?
|
|
2554
|
+
? de_UserAttributeList(output.userAttributesForFindings, context)
|
|
2585
2555
|
: undefined,
|
|
2586
2556
|
};
|
|
2587
2557
|
};
|
|
2588
|
-
const
|
|
2558
|
+
const de_AssessmentRunAgent = (output, context) => {
|
|
2589
2559
|
return {
|
|
2590
2560
|
agentHealth: __expectString(output.agentHealth),
|
|
2591
2561
|
agentHealthCode: __expectString(output.agentHealthCode),
|
|
@@ -2593,23 +2563,21 @@ const deserializeAws_json1_1AssessmentRunAgent = (output, context) => {
|
|
|
2593
2563
|
agentId: __expectString(output.agentId),
|
|
2594
2564
|
assessmentRunArn: __expectString(output.assessmentRunArn),
|
|
2595
2565
|
autoScalingGroup: __expectString(output.autoScalingGroup),
|
|
2596
|
-
telemetryMetadata: output.telemetryMetadata != null
|
|
2597
|
-
? deserializeAws_json1_1TelemetryMetadataList(output.telemetryMetadata, context)
|
|
2598
|
-
: undefined,
|
|
2566
|
+
telemetryMetadata: output.telemetryMetadata != null ? de_TelemetryMetadataList(output.telemetryMetadata, context) : undefined,
|
|
2599
2567
|
};
|
|
2600
2568
|
};
|
|
2601
|
-
const
|
|
2569
|
+
const de_AssessmentRunAgentList = (output, context) => {
|
|
2602
2570
|
const retVal = (output || [])
|
|
2603
2571
|
.filter((e) => e != null)
|
|
2604
2572
|
.map((entry) => {
|
|
2605
2573
|
if (entry === null) {
|
|
2606
2574
|
return null;
|
|
2607
2575
|
}
|
|
2608
|
-
return
|
|
2576
|
+
return de_AssessmentRunAgent(entry, context);
|
|
2609
2577
|
});
|
|
2610
2578
|
return retVal;
|
|
2611
2579
|
};
|
|
2612
|
-
const
|
|
2580
|
+
const de_AssessmentRunFindingCounts = (output, context) => {
|
|
2613
2581
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2614
2582
|
if (value === null) {
|
|
2615
2583
|
return acc;
|
|
@@ -2618,7 +2586,7 @@ const deserializeAws_json1_1AssessmentRunFindingCounts = (output, context) => {
|
|
|
2618
2586
|
return acc;
|
|
2619
2587
|
}, {});
|
|
2620
2588
|
};
|
|
2621
|
-
const
|
|
2589
|
+
const de_AssessmentRunInProgressArnList = (output, context) => {
|
|
2622
2590
|
const retVal = (output || [])
|
|
2623
2591
|
.filter((e) => e != null)
|
|
2624
2592
|
.map((entry) => {
|
|
@@ -2629,28 +2597,28 @@ const deserializeAws_json1_1AssessmentRunInProgressArnList = (output, context) =
|
|
|
2629
2597
|
});
|
|
2630
2598
|
return retVal;
|
|
2631
2599
|
};
|
|
2632
|
-
const
|
|
2600
|
+
const de_AssessmentRunInProgressException = (output, context) => {
|
|
2633
2601
|
return {
|
|
2634
2602
|
assessmentRunArns: output.assessmentRunArns != null
|
|
2635
|
-
?
|
|
2603
|
+
? de_AssessmentRunInProgressArnList(output.assessmentRunArns, context)
|
|
2636
2604
|
: undefined,
|
|
2637
2605
|
assessmentRunArnsTruncated: __expectBoolean(output.assessmentRunArnsTruncated),
|
|
2638
2606
|
canRetry: __expectBoolean(output.canRetry),
|
|
2639
2607
|
message: __expectString(output.message),
|
|
2640
2608
|
};
|
|
2641
2609
|
};
|
|
2642
|
-
const
|
|
2610
|
+
const de_AssessmentRunList = (output, context) => {
|
|
2643
2611
|
const retVal = (output || [])
|
|
2644
2612
|
.filter((e) => e != null)
|
|
2645
2613
|
.map((entry) => {
|
|
2646
2614
|
if (entry === null) {
|
|
2647
2615
|
return null;
|
|
2648
2616
|
}
|
|
2649
|
-
return
|
|
2617
|
+
return de_AssessmentRun(entry, context);
|
|
2650
2618
|
});
|
|
2651
2619
|
return retVal;
|
|
2652
2620
|
};
|
|
2653
|
-
const
|
|
2621
|
+
const de_AssessmentRunNotification = (output, context) => {
|
|
2654
2622
|
return {
|
|
2655
2623
|
date: output.date != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.date))) : undefined,
|
|
2656
2624
|
error: __expectBoolean(output.error),
|
|
@@ -2660,18 +2628,18 @@ const deserializeAws_json1_1AssessmentRunNotification = (output, context) => {
|
|
|
2660
2628
|
snsTopicArn: __expectString(output.snsTopicArn),
|
|
2661
2629
|
};
|
|
2662
2630
|
};
|
|
2663
|
-
const
|
|
2631
|
+
const de_AssessmentRunNotificationList = (output, context) => {
|
|
2664
2632
|
const retVal = (output || [])
|
|
2665
2633
|
.filter((e) => e != null)
|
|
2666
2634
|
.map((entry) => {
|
|
2667
2635
|
if (entry === null) {
|
|
2668
2636
|
return null;
|
|
2669
2637
|
}
|
|
2670
|
-
return
|
|
2638
|
+
return de_AssessmentRunNotification(entry, context);
|
|
2671
2639
|
});
|
|
2672
2640
|
return retVal;
|
|
2673
2641
|
};
|
|
2674
|
-
const
|
|
2642
|
+
const de_AssessmentRunStateChange = (output, context) => {
|
|
2675
2643
|
return {
|
|
2676
2644
|
state: __expectString(output.state),
|
|
2677
2645
|
stateChangedAt: output.stateChangedAt != null
|
|
@@ -2679,18 +2647,18 @@ const deserializeAws_json1_1AssessmentRunStateChange = (output, context) => {
|
|
|
2679
2647
|
: undefined,
|
|
2680
2648
|
};
|
|
2681
2649
|
};
|
|
2682
|
-
const
|
|
2650
|
+
const de_AssessmentRunStateChangeList = (output, context) => {
|
|
2683
2651
|
const retVal = (output || [])
|
|
2684
2652
|
.filter((e) => e != null)
|
|
2685
2653
|
.map((entry) => {
|
|
2686
2654
|
if (entry === null) {
|
|
2687
2655
|
return null;
|
|
2688
2656
|
}
|
|
2689
|
-
return
|
|
2657
|
+
return de_AssessmentRunStateChange(entry, context);
|
|
2690
2658
|
});
|
|
2691
2659
|
return retVal;
|
|
2692
2660
|
};
|
|
2693
|
-
const
|
|
2661
|
+
const de_AssessmentTarget = (output, context) => {
|
|
2694
2662
|
return {
|
|
2695
2663
|
arn: __expectString(output.arn),
|
|
2696
2664
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
@@ -2699,18 +2667,18 @@ const deserializeAws_json1_1AssessmentTarget = (output, context) => {
|
|
|
2699
2667
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
2700
2668
|
};
|
|
2701
2669
|
};
|
|
2702
|
-
const
|
|
2670
|
+
const de_AssessmentTargetList = (output, context) => {
|
|
2703
2671
|
const retVal = (output || [])
|
|
2704
2672
|
.filter((e) => e != null)
|
|
2705
2673
|
.map((entry) => {
|
|
2706
2674
|
if (entry === null) {
|
|
2707
2675
|
return null;
|
|
2708
2676
|
}
|
|
2709
|
-
return
|
|
2677
|
+
return de_AssessmentTarget(entry, context);
|
|
2710
2678
|
});
|
|
2711
2679
|
return retVal;
|
|
2712
2680
|
};
|
|
2713
|
-
const
|
|
2681
|
+
const de_AssessmentTemplate = (output, context) => {
|
|
2714
2682
|
return {
|
|
2715
2683
|
arn: __expectString(output.arn),
|
|
2716
2684
|
assessmentRunCount: __expectInt32(output.assessmentRunCount),
|
|
@@ -2720,25 +2688,25 @@ const deserializeAws_json1_1AssessmentTemplate = (output, context) => {
|
|
|
2720
2688
|
lastAssessmentRunArn: __expectString(output.lastAssessmentRunArn),
|
|
2721
2689
|
name: __expectString(output.name),
|
|
2722
2690
|
rulesPackageArns: output.rulesPackageArns != null
|
|
2723
|
-
?
|
|
2691
|
+
? de_AssessmentTemplateRulesPackageArnList(output.rulesPackageArns, context)
|
|
2724
2692
|
: undefined,
|
|
2725
2693
|
userAttributesForFindings: output.userAttributesForFindings != null
|
|
2726
|
-
?
|
|
2694
|
+
? de_UserAttributeList(output.userAttributesForFindings, context)
|
|
2727
2695
|
: undefined,
|
|
2728
2696
|
};
|
|
2729
2697
|
};
|
|
2730
|
-
const
|
|
2698
|
+
const de_AssessmentTemplateList = (output, context) => {
|
|
2731
2699
|
const retVal = (output || [])
|
|
2732
2700
|
.filter((e) => e != null)
|
|
2733
2701
|
.map((entry) => {
|
|
2734
2702
|
if (entry === null) {
|
|
2735
2703
|
return null;
|
|
2736
2704
|
}
|
|
2737
|
-
return
|
|
2705
|
+
return de_AssessmentTemplate(entry, context);
|
|
2738
2706
|
});
|
|
2739
2707
|
return retVal;
|
|
2740
2708
|
};
|
|
2741
|
-
const
|
|
2709
|
+
const de_AssessmentTemplateRulesPackageArnList = (output, context) => {
|
|
2742
2710
|
const retVal = (output || [])
|
|
2743
2711
|
.filter((e) => e != null)
|
|
2744
2712
|
.map((entry) => {
|
|
@@ -2749,82 +2717,74 @@ const deserializeAws_json1_1AssessmentTemplateRulesPackageArnList = (output, con
|
|
|
2749
2717
|
});
|
|
2750
2718
|
return retVal;
|
|
2751
2719
|
};
|
|
2752
|
-
const
|
|
2720
|
+
const de_AssetAttributes = (output, context) => {
|
|
2753
2721
|
return {
|
|
2754
2722
|
agentId: __expectString(output.agentId),
|
|
2755
2723
|
amiId: __expectString(output.amiId),
|
|
2756
2724
|
autoScalingGroup: __expectString(output.autoScalingGroup),
|
|
2757
2725
|
hostname: __expectString(output.hostname),
|
|
2758
|
-
ipv4Addresses: output.ipv4Addresses != null ?
|
|
2759
|
-
networkInterfaces: output.networkInterfaces != null
|
|
2760
|
-
? deserializeAws_json1_1NetworkInterfaces(output.networkInterfaces, context)
|
|
2761
|
-
: undefined,
|
|
2726
|
+
ipv4Addresses: output.ipv4Addresses != null ? de_Ipv4AddressList(output.ipv4Addresses, context) : undefined,
|
|
2727
|
+
networkInterfaces: output.networkInterfaces != null ? de_NetworkInterfaces(output.networkInterfaces, context) : undefined,
|
|
2762
2728
|
schemaVersion: __expectInt32(output.schemaVersion),
|
|
2763
|
-
tags: output.tags != null ?
|
|
2729
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2764
2730
|
};
|
|
2765
2731
|
};
|
|
2766
|
-
const
|
|
2732
|
+
const de_Attribute = (output, context) => {
|
|
2767
2733
|
return {
|
|
2768
2734
|
key: __expectString(output.key),
|
|
2769
2735
|
value: __expectString(output.value),
|
|
2770
2736
|
};
|
|
2771
2737
|
};
|
|
2772
|
-
const
|
|
2738
|
+
const de_AttributeList = (output, context) => {
|
|
2773
2739
|
const retVal = (output || [])
|
|
2774
2740
|
.filter((e) => e != null)
|
|
2775
2741
|
.map((entry) => {
|
|
2776
2742
|
if (entry === null) {
|
|
2777
2743
|
return null;
|
|
2778
2744
|
}
|
|
2779
|
-
return
|
|
2745
|
+
return de_Attribute(entry, context);
|
|
2780
2746
|
});
|
|
2781
2747
|
return retVal;
|
|
2782
2748
|
};
|
|
2783
|
-
const
|
|
2749
|
+
const de_CreateAssessmentTargetResponse = (output, context) => {
|
|
2784
2750
|
return {
|
|
2785
2751
|
assessmentTargetArn: __expectString(output.assessmentTargetArn),
|
|
2786
2752
|
};
|
|
2787
2753
|
};
|
|
2788
|
-
const
|
|
2754
|
+
const de_CreateAssessmentTemplateResponse = (output, context) => {
|
|
2789
2755
|
return {
|
|
2790
2756
|
assessmentTemplateArn: __expectString(output.assessmentTemplateArn),
|
|
2791
2757
|
};
|
|
2792
2758
|
};
|
|
2793
|
-
const
|
|
2759
|
+
const de_CreateExclusionsPreviewResponse = (output, context) => {
|
|
2794
2760
|
return {
|
|
2795
2761
|
previewToken: __expectString(output.previewToken),
|
|
2796
2762
|
};
|
|
2797
2763
|
};
|
|
2798
|
-
const
|
|
2764
|
+
const de_CreateResourceGroupResponse = (output, context) => {
|
|
2799
2765
|
return {
|
|
2800
2766
|
resourceGroupArn: __expectString(output.resourceGroupArn),
|
|
2801
2767
|
};
|
|
2802
2768
|
};
|
|
2803
|
-
const
|
|
2769
|
+
const de_DescribeAssessmentRunsResponse = (output, context) => {
|
|
2804
2770
|
return {
|
|
2805
|
-
assessmentRuns: output.assessmentRuns != null
|
|
2806
|
-
|
|
2807
|
-
: undefined,
|
|
2808
|
-
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
2771
|
+
assessmentRuns: output.assessmentRuns != null ? de_AssessmentRunList(output.assessmentRuns, context) : undefined,
|
|
2772
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2809
2773
|
};
|
|
2810
2774
|
};
|
|
2811
|
-
const
|
|
2775
|
+
const de_DescribeAssessmentTargetsResponse = (output, context) => {
|
|
2812
2776
|
return {
|
|
2813
|
-
assessmentTargets: output.assessmentTargets != null
|
|
2814
|
-
|
|
2815
|
-
: undefined,
|
|
2816
|
-
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
2777
|
+
assessmentTargets: output.assessmentTargets != null ? de_AssessmentTargetList(output.assessmentTargets, context) : undefined,
|
|
2778
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2817
2779
|
};
|
|
2818
2780
|
};
|
|
2819
|
-
const
|
|
2781
|
+
const de_DescribeAssessmentTemplatesResponse = (output, context) => {
|
|
2820
2782
|
return {
|
|
2821
|
-
assessmentTemplates: output.assessmentTemplates != null
|
|
2822
|
-
|
|
2823
|
-
: undefined,
|
|
2824
|
-
failedItems: output.failedItems != null ? deserializeAws_json1_1FailedItems(output.failedItems, context) : undefined,
|
|
2783
|
+
assessmentTemplates: output.assessmentTemplates != null ? de_AssessmentTemplateList(output.assessmentTemplates, context) : undefined,
|
|
2784
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2825
2785
|
};
|
|
2826
2786
|
};
|
|
2827
|
-
const
|
|
2787
|
+
const de_DescribeCrossAccountAccessRoleResponse = (output, context) => {
|
|
2828
2788
|
return {
|
|
2829
2789
|
registeredAt: output.registeredAt != null
|
|
2830
2790
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
|
|
@@ -2833,33 +2793,31 @@ const deserializeAws_json1_1DescribeCrossAccountAccessRoleResponse = (output, co
|
|
|
2833
2793
|
valid: __expectBoolean(output.valid),
|
|
2834
2794
|
};
|
|
2835
2795
|
};
|
|
2836
|
-
const
|
|
2796
|
+
const de_DescribeExclusionsResponse = (output, context) => {
|
|
2837
2797
|
return {
|
|
2838
|
-
exclusions: output.exclusions != null ?
|
|
2839
|
-
failedItems: output.failedItems != null ?
|
|
2798
|
+
exclusions: output.exclusions != null ? de_ExclusionMap(output.exclusions, context) : undefined,
|
|
2799
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2840
2800
|
};
|
|
2841
2801
|
};
|
|
2842
|
-
const
|
|
2802
|
+
const de_DescribeFindingsResponse = (output, context) => {
|
|
2843
2803
|
return {
|
|
2844
|
-
failedItems: output.failedItems != null ?
|
|
2845
|
-
findings: output.findings != null ?
|
|
2804
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2805
|
+
findings: output.findings != null ? de_FindingList(output.findings, context) : undefined,
|
|
2846
2806
|
};
|
|
2847
2807
|
};
|
|
2848
|
-
const
|
|
2808
|
+
const de_DescribeResourceGroupsResponse = (output, context) => {
|
|
2849
2809
|
return {
|
|
2850
|
-
failedItems: output.failedItems != null ?
|
|
2851
|
-
resourceGroups: output.resourceGroups != null
|
|
2852
|
-
? deserializeAws_json1_1ResourceGroupList(output.resourceGroups, context)
|
|
2853
|
-
: undefined,
|
|
2810
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2811
|
+
resourceGroups: output.resourceGroups != null ? de_ResourceGroupList(output.resourceGroups, context) : undefined,
|
|
2854
2812
|
};
|
|
2855
2813
|
};
|
|
2856
|
-
const
|
|
2814
|
+
const de_DescribeRulesPackagesResponse = (output, context) => {
|
|
2857
2815
|
return {
|
|
2858
|
-
failedItems: output.failedItems != null ?
|
|
2859
|
-
rulesPackages: output.rulesPackages != null ?
|
|
2816
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
2817
|
+
rulesPackages: output.rulesPackages != null ? de_RulesPackageList(output.rulesPackages, context) : undefined,
|
|
2860
2818
|
};
|
|
2861
2819
|
};
|
|
2862
|
-
const
|
|
2820
|
+
const de_EventSubscription = (output, context) => {
|
|
2863
2821
|
return {
|
|
2864
2822
|
event: __expectString(output.event),
|
|
2865
2823
|
subscribedAt: output.subscribedAt != null
|
|
@@ -2867,79 +2825,77 @@ const deserializeAws_json1_1EventSubscription = (output, context) => {
|
|
|
2867
2825
|
: undefined,
|
|
2868
2826
|
};
|
|
2869
2827
|
};
|
|
2870
|
-
const
|
|
2828
|
+
const de_EventSubscriptionList = (output, context) => {
|
|
2871
2829
|
const retVal = (output || [])
|
|
2872
2830
|
.filter((e) => e != null)
|
|
2873
2831
|
.map((entry) => {
|
|
2874
2832
|
if (entry === null) {
|
|
2875
2833
|
return null;
|
|
2876
2834
|
}
|
|
2877
|
-
return
|
|
2835
|
+
return de_EventSubscription(entry, context);
|
|
2878
2836
|
});
|
|
2879
2837
|
return retVal;
|
|
2880
2838
|
};
|
|
2881
|
-
const
|
|
2839
|
+
const de_Exclusion = (output, context) => {
|
|
2882
2840
|
return {
|
|
2883
2841
|
arn: __expectString(output.arn),
|
|
2884
|
-
attributes: output.attributes != null ?
|
|
2842
|
+
attributes: output.attributes != null ? de_AttributeList(output.attributes, context) : undefined,
|
|
2885
2843
|
description: __expectString(output.description),
|
|
2886
2844
|
recommendation: __expectString(output.recommendation),
|
|
2887
|
-
scopes: output.scopes != null ?
|
|
2845
|
+
scopes: output.scopes != null ? de_ScopeList(output.scopes, context) : undefined,
|
|
2888
2846
|
title: __expectString(output.title),
|
|
2889
2847
|
};
|
|
2890
2848
|
};
|
|
2891
|
-
const
|
|
2849
|
+
const de_ExclusionMap = (output, context) => {
|
|
2892
2850
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2893
2851
|
if (value === null) {
|
|
2894
2852
|
return acc;
|
|
2895
2853
|
}
|
|
2896
|
-
acc[key] =
|
|
2854
|
+
acc[key] = de_Exclusion(value, context);
|
|
2897
2855
|
return acc;
|
|
2898
2856
|
}, {});
|
|
2899
2857
|
};
|
|
2900
|
-
const
|
|
2858
|
+
const de_ExclusionPreview = (output, context) => {
|
|
2901
2859
|
return {
|
|
2902
|
-
attributes: output.attributes != null ?
|
|
2860
|
+
attributes: output.attributes != null ? de_AttributeList(output.attributes, context) : undefined,
|
|
2903
2861
|
description: __expectString(output.description),
|
|
2904
2862
|
recommendation: __expectString(output.recommendation),
|
|
2905
|
-
scopes: output.scopes != null ?
|
|
2863
|
+
scopes: output.scopes != null ? de_ScopeList(output.scopes, context) : undefined,
|
|
2906
2864
|
title: __expectString(output.title),
|
|
2907
2865
|
};
|
|
2908
2866
|
};
|
|
2909
|
-
const
|
|
2867
|
+
const de_ExclusionPreviewList = (output, context) => {
|
|
2910
2868
|
const retVal = (output || [])
|
|
2911
2869
|
.filter((e) => e != null)
|
|
2912
2870
|
.map((entry) => {
|
|
2913
2871
|
if (entry === null) {
|
|
2914
2872
|
return null;
|
|
2915
2873
|
}
|
|
2916
|
-
return
|
|
2874
|
+
return de_ExclusionPreview(entry, context);
|
|
2917
2875
|
});
|
|
2918
2876
|
return retVal;
|
|
2919
2877
|
};
|
|
2920
|
-
const
|
|
2878
|
+
const de_FailedItemDetails = (output, context) => {
|
|
2921
2879
|
return {
|
|
2922
2880
|
failureCode: __expectString(output.failureCode),
|
|
2923
2881
|
retryable: __expectBoolean(output.retryable),
|
|
2924
2882
|
};
|
|
2925
2883
|
};
|
|
2926
|
-
const
|
|
2884
|
+
const de_FailedItems = (output, context) => {
|
|
2927
2885
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2928
2886
|
if (value === null) {
|
|
2929
2887
|
return acc;
|
|
2930
2888
|
}
|
|
2931
|
-
acc[key] =
|
|
2889
|
+
acc[key] = de_FailedItemDetails(value, context);
|
|
2932
2890
|
return acc;
|
|
2933
2891
|
}, {});
|
|
2934
2892
|
};
|
|
2935
|
-
const
|
|
2893
|
+
const de_Finding = (output, context) => {
|
|
2936
2894
|
return {
|
|
2937
2895
|
arn: __expectString(output.arn),
|
|
2938
|
-
assetAttributes: output.assetAttributes != null
|
|
2939
|
-
? deserializeAws_json1_1AssetAttributes(output.assetAttributes, context)
|
|
2940
|
-
: undefined,
|
|
2896
|
+
assetAttributes: output.assetAttributes != null ? de_AssetAttributes(output.assetAttributes, context) : undefined,
|
|
2941
2897
|
assetType: __expectString(output.assetType),
|
|
2942
|
-
attributes: output.attributes != null ?
|
|
2898
|
+
attributes: output.attributes != null ? de_AttributeList(output.attributes, context) : undefined,
|
|
2943
2899
|
confidence: __expectInt32(output.confidence),
|
|
2944
2900
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
2945
2901
|
description: __expectString(output.description),
|
|
@@ -2949,78 +2905,70 @@ const deserializeAws_json1_1Finding = (output, context) => {
|
|
|
2949
2905
|
recommendation: __expectString(output.recommendation),
|
|
2950
2906
|
schemaVersion: __expectInt32(output.schemaVersion),
|
|
2951
2907
|
service: __expectString(output.service),
|
|
2952
|
-
serviceAttributes: output.serviceAttributes != null
|
|
2953
|
-
? deserializeAws_json1_1InspectorServiceAttributes(output.serviceAttributes, context)
|
|
2954
|
-
: undefined,
|
|
2908
|
+
serviceAttributes: output.serviceAttributes != null ? de_InspectorServiceAttributes(output.serviceAttributes, context) : undefined,
|
|
2955
2909
|
severity: __expectString(output.severity),
|
|
2956
2910
|
title: __expectString(output.title),
|
|
2957
2911
|
updatedAt: output.updatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updatedAt))) : undefined,
|
|
2958
|
-
userAttributes: output.userAttributes != null
|
|
2959
|
-
? deserializeAws_json1_1UserAttributeList(output.userAttributes, context)
|
|
2960
|
-
: undefined,
|
|
2912
|
+
userAttributes: output.userAttributes != null ? de_UserAttributeList(output.userAttributes, context) : undefined,
|
|
2961
2913
|
};
|
|
2962
2914
|
};
|
|
2963
|
-
const
|
|
2915
|
+
const de_FindingList = (output, context) => {
|
|
2964
2916
|
const retVal = (output || [])
|
|
2965
2917
|
.filter((e) => e != null)
|
|
2966
2918
|
.map((entry) => {
|
|
2967
2919
|
if (entry === null) {
|
|
2968
2920
|
return null;
|
|
2969
2921
|
}
|
|
2970
|
-
return
|
|
2922
|
+
return de_Finding(entry, context);
|
|
2971
2923
|
});
|
|
2972
2924
|
return retVal;
|
|
2973
2925
|
};
|
|
2974
|
-
const
|
|
2926
|
+
const de_GetAssessmentReportResponse = (output, context) => {
|
|
2975
2927
|
return {
|
|
2976
2928
|
status: __expectString(output.status),
|
|
2977
2929
|
url: __expectString(output.url),
|
|
2978
2930
|
};
|
|
2979
2931
|
};
|
|
2980
|
-
const
|
|
2932
|
+
const de_GetExclusionsPreviewResponse = (output, context) => {
|
|
2981
2933
|
return {
|
|
2982
|
-
exclusionPreviews: output.exclusionPreviews != null
|
|
2983
|
-
? deserializeAws_json1_1ExclusionPreviewList(output.exclusionPreviews, context)
|
|
2984
|
-
: undefined,
|
|
2934
|
+
exclusionPreviews: output.exclusionPreviews != null ? de_ExclusionPreviewList(output.exclusionPreviews, context) : undefined,
|
|
2985
2935
|
nextToken: __expectString(output.nextToken),
|
|
2986
2936
|
previewStatus: __expectString(output.previewStatus),
|
|
2987
2937
|
};
|
|
2988
2938
|
};
|
|
2989
|
-
const
|
|
2939
|
+
const de_GetTelemetryMetadataResponse = (output, context) => {
|
|
2990
2940
|
return {
|
|
2991
|
-
telemetryMetadata: output.telemetryMetadata != null
|
|
2992
|
-
? deserializeAws_json1_1TelemetryMetadataList(output.telemetryMetadata, context)
|
|
2993
|
-
: undefined,
|
|
2941
|
+
telemetryMetadata: output.telemetryMetadata != null ? de_TelemetryMetadataList(output.telemetryMetadata, context) : undefined,
|
|
2994
2942
|
};
|
|
2995
2943
|
};
|
|
2996
|
-
const
|
|
2944
|
+
const de_InspectorServiceAttributes = (output, context) => {
|
|
2997
2945
|
return {
|
|
2998
2946
|
assessmentRunArn: __expectString(output.assessmentRunArn),
|
|
2999
2947
|
rulesPackageArn: __expectString(output.rulesPackageArn),
|
|
3000
2948
|
schemaVersion: __expectInt32(output.schemaVersion),
|
|
3001
2949
|
};
|
|
3002
2950
|
};
|
|
3003
|
-
const
|
|
2951
|
+
const de_InternalException = (output, context) => {
|
|
3004
2952
|
return {
|
|
3005
2953
|
canRetry: __expectBoolean(output.canRetry),
|
|
3006
2954
|
message: __expectString(output.message),
|
|
3007
2955
|
};
|
|
3008
2956
|
};
|
|
3009
|
-
const
|
|
2957
|
+
const de_InvalidCrossAccountRoleException = (output, context) => {
|
|
3010
2958
|
return {
|
|
3011
2959
|
canRetry: __expectBoolean(output.canRetry),
|
|
3012
2960
|
errorCode: __expectString(output.errorCode),
|
|
3013
2961
|
message: __expectString(output.message),
|
|
3014
2962
|
};
|
|
3015
2963
|
};
|
|
3016
|
-
const
|
|
2964
|
+
const de_InvalidInputException = (output, context) => {
|
|
3017
2965
|
return {
|
|
3018
2966
|
canRetry: __expectBoolean(output.canRetry),
|
|
3019
2967
|
errorCode: __expectString(output.errorCode),
|
|
3020
2968
|
message: __expectString(output.message),
|
|
3021
2969
|
};
|
|
3022
2970
|
};
|
|
3023
|
-
const
|
|
2971
|
+
const de_Ipv4AddressList = (output, context) => {
|
|
3024
2972
|
const retVal = (output || [])
|
|
3025
2973
|
.filter((e) => e != null)
|
|
3026
2974
|
.map((entry) => {
|
|
@@ -3031,7 +2979,7 @@ const deserializeAws_json1_1Ipv4AddressList = (output, context) => {
|
|
|
3031
2979
|
});
|
|
3032
2980
|
return retVal;
|
|
3033
2981
|
};
|
|
3034
|
-
const
|
|
2982
|
+
const de_Ipv6Addresses = (output, context) => {
|
|
3035
2983
|
const retVal = (output || [])
|
|
3036
2984
|
.filter((e) => e != null)
|
|
3037
2985
|
.map((entry) => {
|
|
@@ -3042,66 +2990,58 @@ const deserializeAws_json1_1Ipv6Addresses = (output, context) => {
|
|
|
3042
2990
|
});
|
|
3043
2991
|
return retVal;
|
|
3044
2992
|
};
|
|
3045
|
-
const
|
|
2993
|
+
const de_LimitExceededException = (output, context) => {
|
|
3046
2994
|
return {
|
|
3047
2995
|
canRetry: __expectBoolean(output.canRetry),
|
|
3048
2996
|
errorCode: __expectString(output.errorCode),
|
|
3049
2997
|
message: __expectString(output.message),
|
|
3050
2998
|
};
|
|
3051
2999
|
};
|
|
3052
|
-
const
|
|
3000
|
+
const de_ListAssessmentRunAgentsResponse = (output, context) => {
|
|
3053
3001
|
return {
|
|
3054
|
-
assessmentRunAgents: output.assessmentRunAgents != null
|
|
3055
|
-
? deserializeAws_json1_1AssessmentRunAgentList(output.assessmentRunAgents, context)
|
|
3056
|
-
: undefined,
|
|
3002
|
+
assessmentRunAgents: output.assessmentRunAgents != null ? de_AssessmentRunAgentList(output.assessmentRunAgents, context) : undefined,
|
|
3057
3003
|
nextToken: __expectString(output.nextToken),
|
|
3058
3004
|
};
|
|
3059
3005
|
};
|
|
3060
|
-
const
|
|
3006
|
+
const de_ListAssessmentRunsResponse = (output, context) => {
|
|
3061
3007
|
return {
|
|
3062
|
-
assessmentRunArns: output.assessmentRunArns != null
|
|
3063
|
-
? deserializeAws_json1_1ListReturnedArnList(output.assessmentRunArns, context)
|
|
3064
|
-
: undefined,
|
|
3008
|
+
assessmentRunArns: output.assessmentRunArns != null ? de_ListReturnedArnList(output.assessmentRunArns, context) : undefined,
|
|
3065
3009
|
nextToken: __expectString(output.nextToken),
|
|
3066
3010
|
};
|
|
3067
3011
|
};
|
|
3068
|
-
const
|
|
3012
|
+
const de_ListAssessmentTargetsResponse = (output, context) => {
|
|
3069
3013
|
return {
|
|
3070
|
-
assessmentTargetArns: output.assessmentTargetArns != null
|
|
3071
|
-
? deserializeAws_json1_1ListReturnedArnList(output.assessmentTargetArns, context)
|
|
3072
|
-
: undefined,
|
|
3014
|
+
assessmentTargetArns: output.assessmentTargetArns != null ? de_ListReturnedArnList(output.assessmentTargetArns, context) : undefined,
|
|
3073
3015
|
nextToken: __expectString(output.nextToken),
|
|
3074
3016
|
};
|
|
3075
3017
|
};
|
|
3076
|
-
const
|
|
3018
|
+
const de_ListAssessmentTemplatesResponse = (output, context) => {
|
|
3077
3019
|
return {
|
|
3078
3020
|
assessmentTemplateArns: output.assessmentTemplateArns != null
|
|
3079
|
-
?
|
|
3021
|
+
? de_ListReturnedArnList(output.assessmentTemplateArns, context)
|
|
3080
3022
|
: undefined,
|
|
3081
3023
|
nextToken: __expectString(output.nextToken),
|
|
3082
3024
|
};
|
|
3083
3025
|
};
|
|
3084
|
-
const
|
|
3026
|
+
const de_ListEventSubscriptionsResponse = (output, context) => {
|
|
3085
3027
|
return {
|
|
3086
3028
|
nextToken: __expectString(output.nextToken),
|
|
3087
|
-
subscriptions: output.subscriptions != null ?
|
|
3029
|
+
subscriptions: output.subscriptions != null ? de_SubscriptionList(output.subscriptions, context) : undefined,
|
|
3088
3030
|
};
|
|
3089
3031
|
};
|
|
3090
|
-
const
|
|
3032
|
+
const de_ListExclusionsResponse = (output, context) => {
|
|
3091
3033
|
return {
|
|
3092
|
-
exclusionArns: output.exclusionArns != null
|
|
3093
|
-
? deserializeAws_json1_1ListReturnedArnList(output.exclusionArns, context)
|
|
3094
|
-
: undefined,
|
|
3034
|
+
exclusionArns: output.exclusionArns != null ? de_ListReturnedArnList(output.exclusionArns, context) : undefined,
|
|
3095
3035
|
nextToken: __expectString(output.nextToken),
|
|
3096
3036
|
};
|
|
3097
3037
|
};
|
|
3098
|
-
const
|
|
3038
|
+
const de_ListFindingsResponse = (output, context) => {
|
|
3099
3039
|
return {
|
|
3100
|
-
findingArns: output.findingArns != null ?
|
|
3040
|
+
findingArns: output.findingArns != null ? de_ListReturnedArnList(output.findingArns, context) : undefined,
|
|
3101
3041
|
nextToken: __expectString(output.nextToken),
|
|
3102
3042
|
};
|
|
3103
3043
|
};
|
|
3104
|
-
const
|
|
3044
|
+
const de_ListReturnedArnList = (output, context) => {
|
|
3105
3045
|
const retVal = (output || [])
|
|
3106
3046
|
.filter((e) => e != null)
|
|
3107
3047
|
.map((entry) => {
|
|
@@ -3112,122 +3052,118 @@ const deserializeAws_json1_1ListReturnedArnList = (output, context) => {
|
|
|
3112
3052
|
});
|
|
3113
3053
|
return retVal;
|
|
3114
3054
|
};
|
|
3115
|
-
const
|
|
3055
|
+
const de_ListRulesPackagesResponse = (output, context) => {
|
|
3116
3056
|
return {
|
|
3117
3057
|
nextToken: __expectString(output.nextToken),
|
|
3118
|
-
rulesPackageArns: output.rulesPackageArns != null
|
|
3119
|
-
? deserializeAws_json1_1ListReturnedArnList(output.rulesPackageArns, context)
|
|
3120
|
-
: undefined,
|
|
3058
|
+
rulesPackageArns: output.rulesPackageArns != null ? de_ListReturnedArnList(output.rulesPackageArns, context) : undefined,
|
|
3121
3059
|
};
|
|
3122
3060
|
};
|
|
3123
|
-
const
|
|
3061
|
+
const de_ListTagsForResourceResponse = (output, context) => {
|
|
3124
3062
|
return {
|
|
3125
|
-
tags: output.tags != null ?
|
|
3063
|
+
tags: output.tags != null ? de_TagList(output.tags, context) : undefined,
|
|
3126
3064
|
};
|
|
3127
3065
|
};
|
|
3128
|
-
const
|
|
3066
|
+
const de_NetworkInterface = (output, context) => {
|
|
3129
3067
|
return {
|
|
3130
|
-
ipv6Addresses: output.ipv6Addresses != null ?
|
|
3068
|
+
ipv6Addresses: output.ipv6Addresses != null ? de_Ipv6Addresses(output.ipv6Addresses, context) : undefined,
|
|
3131
3069
|
networkInterfaceId: __expectString(output.networkInterfaceId),
|
|
3132
3070
|
privateDnsName: __expectString(output.privateDnsName),
|
|
3133
3071
|
privateIpAddress: __expectString(output.privateIpAddress),
|
|
3134
|
-
privateIpAddresses: output.privateIpAddresses != null
|
|
3135
|
-
? deserializeAws_json1_1PrivateIpAddresses(output.privateIpAddresses, context)
|
|
3136
|
-
: undefined,
|
|
3072
|
+
privateIpAddresses: output.privateIpAddresses != null ? de_PrivateIpAddresses(output.privateIpAddresses, context) : undefined,
|
|
3137
3073
|
publicDnsName: __expectString(output.publicDnsName),
|
|
3138
3074
|
publicIp: __expectString(output.publicIp),
|
|
3139
|
-
securityGroups: output.securityGroups != null ?
|
|
3075
|
+
securityGroups: output.securityGroups != null ? de_SecurityGroups(output.securityGroups, context) : undefined,
|
|
3140
3076
|
subnetId: __expectString(output.subnetId),
|
|
3141
3077
|
vpcId: __expectString(output.vpcId),
|
|
3142
3078
|
};
|
|
3143
3079
|
};
|
|
3144
|
-
const
|
|
3080
|
+
const de_NetworkInterfaces = (output, context) => {
|
|
3145
3081
|
const retVal = (output || [])
|
|
3146
3082
|
.filter((e) => e != null)
|
|
3147
3083
|
.map((entry) => {
|
|
3148
3084
|
if (entry === null) {
|
|
3149
3085
|
return null;
|
|
3150
3086
|
}
|
|
3151
|
-
return
|
|
3087
|
+
return de_NetworkInterface(entry, context);
|
|
3152
3088
|
});
|
|
3153
3089
|
return retVal;
|
|
3154
3090
|
};
|
|
3155
|
-
const
|
|
3091
|
+
const de_NoSuchEntityException = (output, context) => {
|
|
3156
3092
|
return {
|
|
3157
3093
|
canRetry: __expectBoolean(output.canRetry),
|
|
3158
3094
|
errorCode: __expectString(output.errorCode),
|
|
3159
3095
|
message: __expectString(output.message),
|
|
3160
3096
|
};
|
|
3161
3097
|
};
|
|
3162
|
-
const
|
|
3098
|
+
const de_PreviewAgentsResponse = (output, context) => {
|
|
3163
3099
|
return {
|
|
3164
|
-
agentPreviews: output.agentPreviews != null ?
|
|
3100
|
+
agentPreviews: output.agentPreviews != null ? de_AgentPreviewList(output.agentPreviews, context) : undefined,
|
|
3165
3101
|
nextToken: __expectString(output.nextToken),
|
|
3166
3102
|
};
|
|
3167
3103
|
};
|
|
3168
|
-
const
|
|
3104
|
+
const de_PreviewGenerationInProgressException = (output, context) => {
|
|
3169
3105
|
return {
|
|
3170
3106
|
message: __expectString(output.message),
|
|
3171
3107
|
};
|
|
3172
3108
|
};
|
|
3173
|
-
const
|
|
3109
|
+
const de_PrivateIp = (output, context) => {
|
|
3174
3110
|
return {
|
|
3175
3111
|
privateDnsName: __expectString(output.privateDnsName),
|
|
3176
3112
|
privateIpAddress: __expectString(output.privateIpAddress),
|
|
3177
3113
|
};
|
|
3178
3114
|
};
|
|
3179
|
-
const
|
|
3115
|
+
const de_PrivateIpAddresses = (output, context) => {
|
|
3180
3116
|
const retVal = (output || [])
|
|
3181
3117
|
.filter((e) => e != null)
|
|
3182
3118
|
.map((entry) => {
|
|
3183
3119
|
if (entry === null) {
|
|
3184
3120
|
return null;
|
|
3185
3121
|
}
|
|
3186
|
-
return
|
|
3122
|
+
return de_PrivateIp(entry, context);
|
|
3187
3123
|
});
|
|
3188
3124
|
return retVal;
|
|
3189
3125
|
};
|
|
3190
|
-
const
|
|
3126
|
+
const de_RemoveAttributesFromFindingsResponse = (output, context) => {
|
|
3191
3127
|
return {
|
|
3192
|
-
failedItems: output.failedItems != null ?
|
|
3128
|
+
failedItems: output.failedItems != null ? de_FailedItems(output.failedItems, context) : undefined,
|
|
3193
3129
|
};
|
|
3194
3130
|
};
|
|
3195
|
-
const
|
|
3131
|
+
const de_ResourceGroup = (output, context) => {
|
|
3196
3132
|
return {
|
|
3197
3133
|
arn: __expectString(output.arn),
|
|
3198
3134
|
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
3199
|
-
tags: output.tags != null ?
|
|
3135
|
+
tags: output.tags != null ? de_ResourceGroupTags(output.tags, context) : undefined,
|
|
3200
3136
|
};
|
|
3201
3137
|
};
|
|
3202
|
-
const
|
|
3138
|
+
const de_ResourceGroupList = (output, context) => {
|
|
3203
3139
|
const retVal = (output || [])
|
|
3204
3140
|
.filter((e) => e != null)
|
|
3205
3141
|
.map((entry) => {
|
|
3206
3142
|
if (entry === null) {
|
|
3207
3143
|
return null;
|
|
3208
3144
|
}
|
|
3209
|
-
return
|
|
3145
|
+
return de_ResourceGroup(entry, context);
|
|
3210
3146
|
});
|
|
3211
3147
|
return retVal;
|
|
3212
3148
|
};
|
|
3213
|
-
const
|
|
3149
|
+
const de_ResourceGroupTag = (output, context) => {
|
|
3214
3150
|
return {
|
|
3215
3151
|
key: __expectString(output.key),
|
|
3216
3152
|
value: __expectString(output.value),
|
|
3217
3153
|
};
|
|
3218
3154
|
};
|
|
3219
|
-
const
|
|
3155
|
+
const de_ResourceGroupTags = (output, context) => {
|
|
3220
3156
|
const retVal = (output || [])
|
|
3221
3157
|
.filter((e) => e != null)
|
|
3222
3158
|
.map((entry) => {
|
|
3223
3159
|
if (entry === null) {
|
|
3224
3160
|
return null;
|
|
3225
3161
|
}
|
|
3226
|
-
return
|
|
3162
|
+
return de_ResourceGroupTag(entry, context);
|
|
3227
3163
|
});
|
|
3228
3164
|
return retVal;
|
|
3229
3165
|
};
|
|
3230
|
-
const
|
|
3166
|
+
const de_RulesPackage = (output, context) => {
|
|
3231
3167
|
return {
|
|
3232
3168
|
arn: __expectString(output.arn),
|
|
3233
3169
|
description: __expectString(output.description),
|
|
@@ -3236,142 +3172,140 @@ const deserializeAws_json1_1RulesPackage = (output, context) => {
|
|
|
3236
3172
|
version: __expectString(output.version),
|
|
3237
3173
|
};
|
|
3238
3174
|
};
|
|
3239
|
-
const
|
|
3175
|
+
const de_RulesPackageList = (output, context) => {
|
|
3240
3176
|
const retVal = (output || [])
|
|
3241
3177
|
.filter((e) => e != null)
|
|
3242
3178
|
.map((entry) => {
|
|
3243
3179
|
if (entry === null) {
|
|
3244
3180
|
return null;
|
|
3245
3181
|
}
|
|
3246
|
-
return
|
|
3182
|
+
return de_RulesPackage(entry, context);
|
|
3247
3183
|
});
|
|
3248
3184
|
return retVal;
|
|
3249
3185
|
};
|
|
3250
|
-
const
|
|
3186
|
+
const de_Scope = (output, context) => {
|
|
3251
3187
|
return {
|
|
3252
3188
|
key: __expectString(output.key),
|
|
3253
3189
|
value: __expectString(output.value),
|
|
3254
3190
|
};
|
|
3255
3191
|
};
|
|
3256
|
-
const
|
|
3192
|
+
const de_ScopeList = (output, context) => {
|
|
3257
3193
|
const retVal = (output || [])
|
|
3258
3194
|
.filter((e) => e != null)
|
|
3259
3195
|
.map((entry) => {
|
|
3260
3196
|
if (entry === null) {
|
|
3261
3197
|
return null;
|
|
3262
3198
|
}
|
|
3263
|
-
return
|
|
3199
|
+
return de_Scope(entry, context);
|
|
3264
3200
|
});
|
|
3265
3201
|
return retVal;
|
|
3266
3202
|
};
|
|
3267
|
-
const
|
|
3203
|
+
const de_SecurityGroup = (output, context) => {
|
|
3268
3204
|
return {
|
|
3269
3205
|
groupId: __expectString(output.groupId),
|
|
3270
3206
|
groupName: __expectString(output.groupName),
|
|
3271
3207
|
};
|
|
3272
3208
|
};
|
|
3273
|
-
const
|
|
3209
|
+
const de_SecurityGroups = (output, context) => {
|
|
3274
3210
|
const retVal = (output || [])
|
|
3275
3211
|
.filter((e) => e != null)
|
|
3276
3212
|
.map((entry) => {
|
|
3277
3213
|
if (entry === null) {
|
|
3278
3214
|
return null;
|
|
3279
3215
|
}
|
|
3280
|
-
return
|
|
3216
|
+
return de_SecurityGroup(entry, context);
|
|
3281
3217
|
});
|
|
3282
3218
|
return retVal;
|
|
3283
3219
|
};
|
|
3284
|
-
const
|
|
3220
|
+
const de_ServiceTemporarilyUnavailableException = (output, context) => {
|
|
3285
3221
|
return {
|
|
3286
3222
|
canRetry: __expectBoolean(output.canRetry),
|
|
3287
3223
|
message: __expectString(output.message),
|
|
3288
3224
|
};
|
|
3289
3225
|
};
|
|
3290
|
-
const
|
|
3226
|
+
const de_StartAssessmentRunResponse = (output, context) => {
|
|
3291
3227
|
return {
|
|
3292
3228
|
assessmentRunArn: __expectString(output.assessmentRunArn),
|
|
3293
3229
|
};
|
|
3294
3230
|
};
|
|
3295
|
-
const
|
|
3231
|
+
const de_Subscription = (output, context) => {
|
|
3296
3232
|
return {
|
|
3297
|
-
eventSubscriptions: output.eventSubscriptions != null
|
|
3298
|
-
? deserializeAws_json1_1EventSubscriptionList(output.eventSubscriptions, context)
|
|
3299
|
-
: undefined,
|
|
3233
|
+
eventSubscriptions: output.eventSubscriptions != null ? de_EventSubscriptionList(output.eventSubscriptions, context) : undefined,
|
|
3300
3234
|
resourceArn: __expectString(output.resourceArn),
|
|
3301
3235
|
topicArn: __expectString(output.topicArn),
|
|
3302
3236
|
};
|
|
3303
3237
|
};
|
|
3304
|
-
const
|
|
3238
|
+
const de_SubscriptionList = (output, context) => {
|
|
3305
3239
|
const retVal = (output || [])
|
|
3306
3240
|
.filter((e) => e != null)
|
|
3307
3241
|
.map((entry) => {
|
|
3308
3242
|
if (entry === null) {
|
|
3309
3243
|
return null;
|
|
3310
3244
|
}
|
|
3311
|
-
return
|
|
3245
|
+
return de_Subscription(entry, context);
|
|
3312
3246
|
});
|
|
3313
3247
|
return retVal;
|
|
3314
3248
|
};
|
|
3315
|
-
const
|
|
3249
|
+
const de_Tag = (output, context) => {
|
|
3316
3250
|
return {
|
|
3317
3251
|
key: __expectString(output.key),
|
|
3318
3252
|
value: __expectString(output.value),
|
|
3319
3253
|
};
|
|
3320
3254
|
};
|
|
3321
|
-
const
|
|
3255
|
+
const de_TagList = (output, context) => {
|
|
3322
3256
|
const retVal = (output || [])
|
|
3323
3257
|
.filter((e) => e != null)
|
|
3324
3258
|
.map((entry) => {
|
|
3325
3259
|
if (entry === null) {
|
|
3326
3260
|
return null;
|
|
3327
3261
|
}
|
|
3328
|
-
return
|
|
3262
|
+
return de_Tag(entry, context);
|
|
3329
3263
|
});
|
|
3330
3264
|
return retVal;
|
|
3331
3265
|
};
|
|
3332
|
-
const
|
|
3266
|
+
const de_Tags = (output, context) => {
|
|
3333
3267
|
const retVal = (output || [])
|
|
3334
3268
|
.filter((e) => e != null)
|
|
3335
3269
|
.map((entry) => {
|
|
3336
3270
|
if (entry === null) {
|
|
3337
3271
|
return null;
|
|
3338
3272
|
}
|
|
3339
|
-
return
|
|
3273
|
+
return de_Tag(entry, context);
|
|
3340
3274
|
});
|
|
3341
3275
|
return retVal;
|
|
3342
3276
|
};
|
|
3343
|
-
const
|
|
3277
|
+
const de_TelemetryMetadata = (output, context) => {
|
|
3344
3278
|
return {
|
|
3345
3279
|
count: __expectLong(output.count),
|
|
3346
3280
|
dataSize: __expectLong(output.dataSize),
|
|
3347
3281
|
messageType: __expectString(output.messageType),
|
|
3348
3282
|
};
|
|
3349
3283
|
};
|
|
3350
|
-
const
|
|
3284
|
+
const de_TelemetryMetadataList = (output, context) => {
|
|
3351
3285
|
const retVal = (output || [])
|
|
3352
3286
|
.filter((e) => e != null)
|
|
3353
3287
|
.map((entry) => {
|
|
3354
3288
|
if (entry === null) {
|
|
3355
3289
|
return null;
|
|
3356
3290
|
}
|
|
3357
|
-
return
|
|
3291
|
+
return de_TelemetryMetadata(entry, context);
|
|
3358
3292
|
});
|
|
3359
3293
|
return retVal;
|
|
3360
3294
|
};
|
|
3361
|
-
const
|
|
3295
|
+
const de_UnsupportedFeatureException = (output, context) => {
|
|
3362
3296
|
return {
|
|
3363
3297
|
canRetry: __expectBoolean(output.canRetry),
|
|
3364
3298
|
message: __expectString(output.message),
|
|
3365
3299
|
};
|
|
3366
3300
|
};
|
|
3367
|
-
const
|
|
3301
|
+
const de_UserAttributeList = (output, context) => {
|
|
3368
3302
|
const retVal = (output || [])
|
|
3369
3303
|
.filter((e) => e != null)
|
|
3370
3304
|
.map((entry) => {
|
|
3371
3305
|
if (entry === null) {
|
|
3372
3306
|
return null;
|
|
3373
3307
|
}
|
|
3374
|
-
return
|
|
3308
|
+
return de_Attribute(entry, context);
|
|
3375
3309
|
});
|
|
3376
3310
|
return retVal;
|
|
3377
3311
|
};
|