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