@aws-sdk/client-application-discovery-service 3.310.0 → 3.315.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/protocols/Aws_json1_1.js +216 -951
- package/dist-es/protocols/Aws_json1_1.js +217 -952
- package/package.json +6 -6
|
@@ -7,251 +7,176 @@ const uuid_1 = require("uuid");
|
|
|
7
7
|
const ApplicationDiscoveryServiceServiceException_1 = require("../models/ApplicationDiscoveryServiceServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
9
|
const se_AssociateConfigurationItemsToApplicationCommand = async (input, context) => {
|
|
10
|
-
const headers =
|
|
11
|
-
"content-type": "application/x-amz-json-1.1",
|
|
12
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.AssociateConfigurationItemsToApplication",
|
|
13
|
-
};
|
|
10
|
+
const headers = sharedHeaders("AssociateConfigurationItemsToApplication");
|
|
14
11
|
let body;
|
|
15
|
-
body = JSON.stringify(
|
|
12
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
16
13
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
14
|
};
|
|
18
15
|
exports.se_AssociateConfigurationItemsToApplicationCommand = se_AssociateConfigurationItemsToApplicationCommand;
|
|
19
16
|
const se_BatchDeleteImportDataCommand = async (input, context) => {
|
|
20
|
-
const headers =
|
|
21
|
-
"content-type": "application/x-amz-json-1.1",
|
|
22
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.BatchDeleteImportData",
|
|
23
|
-
};
|
|
17
|
+
const headers = sharedHeaders("BatchDeleteImportData");
|
|
24
18
|
let body;
|
|
25
|
-
body = JSON.stringify(
|
|
19
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
26
20
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
21
|
};
|
|
28
22
|
exports.se_BatchDeleteImportDataCommand = se_BatchDeleteImportDataCommand;
|
|
29
23
|
const se_CreateApplicationCommand = async (input, context) => {
|
|
30
|
-
const headers =
|
|
31
|
-
"content-type": "application/x-amz-json-1.1",
|
|
32
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateApplication",
|
|
33
|
-
};
|
|
24
|
+
const headers = sharedHeaders("CreateApplication");
|
|
34
25
|
let body;
|
|
35
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
28
|
};
|
|
38
29
|
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
39
30
|
const se_CreateTagsCommand = async (input, context) => {
|
|
40
|
-
const headers =
|
|
41
|
-
"content-type": "application/x-amz-json-1.1",
|
|
42
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.CreateTags",
|
|
43
|
-
};
|
|
31
|
+
const headers = sharedHeaders("CreateTags");
|
|
44
32
|
let body;
|
|
45
|
-
body = JSON.stringify(
|
|
33
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
46
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
35
|
};
|
|
48
36
|
exports.se_CreateTagsCommand = se_CreateTagsCommand;
|
|
49
37
|
const se_DeleteApplicationsCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-amz-json-1.1",
|
|
52
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteApplications",
|
|
53
|
-
};
|
|
38
|
+
const headers = sharedHeaders("DeleteApplications");
|
|
54
39
|
let body;
|
|
55
|
-
body = JSON.stringify(
|
|
40
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
56
41
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
42
|
};
|
|
58
43
|
exports.se_DeleteApplicationsCommand = se_DeleteApplicationsCommand;
|
|
59
44
|
const se_DeleteTagsCommand = async (input, context) => {
|
|
60
|
-
const headers =
|
|
61
|
-
"content-type": "application/x-amz-json-1.1",
|
|
62
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DeleteTags",
|
|
63
|
-
};
|
|
45
|
+
const headers = sharedHeaders("DeleteTags");
|
|
64
46
|
let body;
|
|
65
|
-
body = JSON.stringify(
|
|
47
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
66
48
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
49
|
};
|
|
68
50
|
exports.se_DeleteTagsCommand = se_DeleteTagsCommand;
|
|
69
51
|
const se_DescribeAgentsCommand = async (input, context) => {
|
|
70
|
-
const headers =
|
|
71
|
-
"content-type": "application/x-amz-json-1.1",
|
|
72
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeAgents",
|
|
73
|
-
};
|
|
52
|
+
const headers = sharedHeaders("DescribeAgents");
|
|
74
53
|
let body;
|
|
75
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
56
|
};
|
|
78
57
|
exports.se_DescribeAgentsCommand = se_DescribeAgentsCommand;
|
|
79
58
|
const se_DescribeConfigurationsCommand = async (input, context) => {
|
|
80
|
-
const headers =
|
|
81
|
-
"content-type": "application/x-amz-json-1.1",
|
|
82
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeConfigurations",
|
|
83
|
-
};
|
|
59
|
+
const headers = sharedHeaders("DescribeConfigurations");
|
|
84
60
|
let body;
|
|
85
|
-
body = JSON.stringify(
|
|
61
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
86
62
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
87
63
|
};
|
|
88
64
|
exports.se_DescribeConfigurationsCommand = se_DescribeConfigurationsCommand;
|
|
89
65
|
const se_DescribeContinuousExportsCommand = async (input, context) => {
|
|
90
|
-
const headers =
|
|
91
|
-
"content-type": "application/x-amz-json-1.1",
|
|
92
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeContinuousExports",
|
|
93
|
-
};
|
|
66
|
+
const headers = sharedHeaders("DescribeContinuousExports");
|
|
94
67
|
let body;
|
|
95
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
96
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
70
|
};
|
|
98
71
|
exports.se_DescribeContinuousExportsCommand = se_DescribeContinuousExportsCommand;
|
|
99
72
|
const se_DescribeExportConfigurationsCommand = async (input, context) => {
|
|
100
|
-
const headers =
|
|
101
|
-
"content-type": "application/x-amz-json-1.1",
|
|
102
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportConfigurations",
|
|
103
|
-
};
|
|
73
|
+
const headers = sharedHeaders("DescribeExportConfigurations");
|
|
104
74
|
let body;
|
|
105
|
-
body = JSON.stringify(
|
|
75
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
77
|
};
|
|
108
78
|
exports.se_DescribeExportConfigurationsCommand = se_DescribeExportConfigurationsCommand;
|
|
109
79
|
const se_DescribeExportTasksCommand = async (input, context) => {
|
|
110
|
-
const headers =
|
|
111
|
-
"content-type": "application/x-amz-json-1.1",
|
|
112
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeExportTasks",
|
|
113
|
-
};
|
|
80
|
+
const headers = sharedHeaders("DescribeExportTasks");
|
|
114
81
|
let body;
|
|
115
|
-
body = JSON.stringify(
|
|
82
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
116
83
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
117
84
|
};
|
|
118
85
|
exports.se_DescribeExportTasksCommand = se_DescribeExportTasksCommand;
|
|
119
86
|
const se_DescribeImportTasksCommand = async (input, context) => {
|
|
120
|
-
const headers =
|
|
121
|
-
"content-type": "application/x-amz-json-1.1",
|
|
122
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeImportTasks",
|
|
123
|
-
};
|
|
87
|
+
const headers = sharedHeaders("DescribeImportTasks");
|
|
124
88
|
let body;
|
|
125
|
-
body = JSON.stringify(
|
|
89
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
126
90
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
127
91
|
};
|
|
128
92
|
exports.se_DescribeImportTasksCommand = se_DescribeImportTasksCommand;
|
|
129
93
|
const se_DescribeTagsCommand = async (input, context) => {
|
|
130
|
-
const headers =
|
|
131
|
-
"content-type": "application/x-amz-json-1.1",
|
|
132
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DescribeTags",
|
|
133
|
-
};
|
|
94
|
+
const headers = sharedHeaders("DescribeTags");
|
|
134
95
|
let body;
|
|
135
|
-
body = JSON.stringify(
|
|
96
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
136
97
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
98
|
};
|
|
138
99
|
exports.se_DescribeTagsCommand = se_DescribeTagsCommand;
|
|
139
100
|
const se_DisassociateConfigurationItemsFromApplicationCommand = async (input, context) => {
|
|
140
|
-
const headers =
|
|
141
|
-
"content-type": "application/x-amz-json-1.1",
|
|
142
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.DisassociateConfigurationItemsFromApplication",
|
|
143
|
-
};
|
|
101
|
+
const headers = sharedHeaders("DisassociateConfigurationItemsFromApplication");
|
|
144
102
|
let body;
|
|
145
|
-
body = JSON.stringify(
|
|
103
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
105
|
};
|
|
148
106
|
exports.se_DisassociateConfigurationItemsFromApplicationCommand = se_DisassociateConfigurationItemsFromApplicationCommand;
|
|
149
107
|
const se_ExportConfigurationsCommand = async (input, context) => {
|
|
150
|
-
const headers =
|
|
151
|
-
"content-type": "application/x-amz-json-1.1",
|
|
152
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ExportConfigurations",
|
|
153
|
-
};
|
|
108
|
+
const headers = sharedHeaders("ExportConfigurations");
|
|
154
109
|
const body = "{}";
|
|
155
110
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
111
|
};
|
|
157
112
|
exports.se_ExportConfigurationsCommand = se_ExportConfigurationsCommand;
|
|
158
113
|
const se_GetDiscoverySummaryCommand = async (input, context) => {
|
|
159
|
-
const headers =
|
|
160
|
-
"content-type": "application/x-amz-json-1.1",
|
|
161
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.GetDiscoverySummary",
|
|
162
|
-
};
|
|
114
|
+
const headers = sharedHeaders("GetDiscoverySummary");
|
|
163
115
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
165
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
118
|
};
|
|
167
119
|
exports.se_GetDiscoverySummaryCommand = se_GetDiscoverySummaryCommand;
|
|
168
120
|
const se_ListConfigurationsCommand = async (input, context) => {
|
|
169
|
-
const headers =
|
|
170
|
-
"content-type": "application/x-amz-json-1.1",
|
|
171
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListConfigurations",
|
|
172
|
-
};
|
|
121
|
+
const headers = sharedHeaders("ListConfigurations");
|
|
173
122
|
let body;
|
|
174
|
-
body = JSON.stringify(
|
|
123
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
175
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
125
|
};
|
|
177
126
|
exports.se_ListConfigurationsCommand = se_ListConfigurationsCommand;
|
|
178
127
|
const se_ListServerNeighborsCommand = async (input, context) => {
|
|
179
|
-
const headers =
|
|
180
|
-
"content-type": "application/x-amz-json-1.1",
|
|
181
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.ListServerNeighbors",
|
|
182
|
-
};
|
|
128
|
+
const headers = sharedHeaders("ListServerNeighbors");
|
|
183
129
|
let body;
|
|
184
|
-
body = JSON.stringify(
|
|
130
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
185
131
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
132
|
};
|
|
187
133
|
exports.se_ListServerNeighborsCommand = se_ListServerNeighborsCommand;
|
|
188
134
|
const se_StartContinuousExportCommand = async (input, context) => {
|
|
189
|
-
const headers =
|
|
190
|
-
"content-type": "application/x-amz-json-1.1",
|
|
191
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartContinuousExport",
|
|
192
|
-
};
|
|
135
|
+
const headers = sharedHeaders("StartContinuousExport");
|
|
193
136
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
137
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
138
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
139
|
};
|
|
197
140
|
exports.se_StartContinuousExportCommand = se_StartContinuousExportCommand;
|
|
198
141
|
const se_StartDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-amz-json-1.1",
|
|
201
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartDataCollectionByAgentIds",
|
|
202
|
-
};
|
|
142
|
+
const headers = sharedHeaders("StartDataCollectionByAgentIds");
|
|
203
143
|
let body;
|
|
204
|
-
body = JSON.stringify(
|
|
144
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
205
145
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
206
146
|
};
|
|
207
147
|
exports.se_StartDataCollectionByAgentIdsCommand = se_StartDataCollectionByAgentIdsCommand;
|
|
208
148
|
const se_StartExportTaskCommand = async (input, context) => {
|
|
209
|
-
const headers =
|
|
210
|
-
"content-type": "application/x-amz-json-1.1",
|
|
211
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartExportTask",
|
|
212
|
-
};
|
|
149
|
+
const headers = sharedHeaders("StartExportTask");
|
|
213
150
|
let body;
|
|
214
151
|
body = JSON.stringify(se_StartExportTaskRequest(input, context));
|
|
215
152
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
216
153
|
};
|
|
217
154
|
exports.se_StartExportTaskCommand = se_StartExportTaskCommand;
|
|
218
155
|
const se_StartImportTaskCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-amz-json-1.1",
|
|
221
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StartImportTask",
|
|
222
|
-
};
|
|
156
|
+
const headers = sharedHeaders("StartImportTask");
|
|
223
157
|
let body;
|
|
224
158
|
body = JSON.stringify(se_StartImportTaskRequest(input, context));
|
|
225
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
160
|
};
|
|
227
161
|
exports.se_StartImportTaskCommand = se_StartImportTaskCommand;
|
|
228
162
|
const se_StopContinuousExportCommand = async (input, context) => {
|
|
229
|
-
const headers =
|
|
230
|
-
"content-type": "application/x-amz-json-1.1",
|
|
231
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopContinuousExport",
|
|
232
|
-
};
|
|
163
|
+
const headers = sharedHeaders("StopContinuousExport");
|
|
233
164
|
let body;
|
|
234
|
-
body = JSON.stringify(
|
|
165
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
235
166
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
236
167
|
};
|
|
237
168
|
exports.se_StopContinuousExportCommand = se_StopContinuousExportCommand;
|
|
238
169
|
const se_StopDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
239
|
-
const headers =
|
|
240
|
-
"content-type": "application/x-amz-json-1.1",
|
|
241
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.StopDataCollectionByAgentIds",
|
|
242
|
-
};
|
|
170
|
+
const headers = sharedHeaders("StopDataCollectionByAgentIds");
|
|
243
171
|
let body;
|
|
244
|
-
body = JSON.stringify(
|
|
172
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
245
173
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
174
|
};
|
|
247
175
|
exports.se_StopDataCollectionByAgentIdsCommand = se_StopDataCollectionByAgentIdsCommand;
|
|
248
176
|
const se_UpdateApplicationCommand = async (input, context) => {
|
|
249
|
-
const headers =
|
|
250
|
-
"content-type": "application/x-amz-json-1.1",
|
|
251
|
-
"x-amz-target": "AWSPoseidonService_V2015_11_01.UpdateApplication",
|
|
252
|
-
};
|
|
177
|
+
const headers = sharedHeaders("UpdateApplication");
|
|
253
178
|
let body;
|
|
254
|
-
body = JSON.stringify(
|
|
179
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
255
180
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
181
|
};
|
|
257
182
|
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
@@ -261,12 +186,12 @@ const de_AssociateConfigurationItemsToApplicationCommand = async (output, contex
|
|
|
261
186
|
}
|
|
262
187
|
const data = await parseBody(output.body, context);
|
|
263
188
|
let contents = {};
|
|
264
|
-
contents =
|
|
189
|
+
contents = (0, smithy_client_1._json)(data);
|
|
265
190
|
const response = {
|
|
266
191
|
$metadata: deserializeMetadata(output),
|
|
267
192
|
...contents,
|
|
268
193
|
};
|
|
269
|
-
return
|
|
194
|
+
return response;
|
|
270
195
|
};
|
|
271
196
|
exports.de_AssociateConfigurationItemsToApplicationCommand = de_AssociateConfigurationItemsToApplicationCommand;
|
|
272
197
|
const de_AssociateConfigurationItemsToApplicationCommandError = async (output, context) => {
|
|
@@ -293,10 +218,9 @@ const de_AssociateConfigurationItemsToApplicationCommandError = async (output, c
|
|
|
293
218
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
294
219
|
default:
|
|
295
220
|
const parsedBody = parsedOutput.body;
|
|
296
|
-
|
|
221
|
+
return throwDefaultError({
|
|
297
222
|
output,
|
|
298
223
|
parsedBody,
|
|
299
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
300
224
|
errorCode,
|
|
301
225
|
});
|
|
302
226
|
}
|
|
@@ -307,12 +231,12 @@ const de_BatchDeleteImportDataCommand = async (output, context) => {
|
|
|
307
231
|
}
|
|
308
232
|
const data = await parseBody(output.body, context);
|
|
309
233
|
let contents = {};
|
|
310
|
-
contents =
|
|
234
|
+
contents = (0, smithy_client_1._json)(data);
|
|
311
235
|
const response = {
|
|
312
236
|
$metadata: deserializeMetadata(output),
|
|
313
237
|
...contents,
|
|
314
238
|
};
|
|
315
|
-
return
|
|
239
|
+
return response;
|
|
316
240
|
};
|
|
317
241
|
exports.de_BatchDeleteImportDataCommand = de_BatchDeleteImportDataCommand;
|
|
318
242
|
const de_BatchDeleteImportDataCommandError = async (output, context) => {
|
|
@@ -339,10 +263,9 @@ const de_BatchDeleteImportDataCommandError = async (output, context) => {
|
|
|
339
263
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
340
264
|
default:
|
|
341
265
|
const parsedBody = parsedOutput.body;
|
|
342
|
-
|
|
266
|
+
return throwDefaultError({
|
|
343
267
|
output,
|
|
344
268
|
parsedBody,
|
|
345
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
346
269
|
errorCode,
|
|
347
270
|
});
|
|
348
271
|
}
|
|
@@ -353,12 +276,12 @@ const de_CreateApplicationCommand = async (output, context) => {
|
|
|
353
276
|
}
|
|
354
277
|
const data = await parseBody(output.body, context);
|
|
355
278
|
let contents = {};
|
|
356
|
-
contents =
|
|
279
|
+
contents = (0, smithy_client_1._json)(data);
|
|
357
280
|
const response = {
|
|
358
281
|
$metadata: deserializeMetadata(output),
|
|
359
282
|
...contents,
|
|
360
283
|
};
|
|
361
|
-
return
|
|
284
|
+
return response;
|
|
362
285
|
};
|
|
363
286
|
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
364
287
|
const de_CreateApplicationCommandError = async (output, context) => {
|
|
@@ -385,10 +308,9 @@ const de_CreateApplicationCommandError = async (output, context) => {
|
|
|
385
308
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
386
309
|
default:
|
|
387
310
|
const parsedBody = parsedOutput.body;
|
|
388
|
-
|
|
311
|
+
return throwDefaultError({
|
|
389
312
|
output,
|
|
390
313
|
parsedBody,
|
|
391
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
392
314
|
errorCode,
|
|
393
315
|
});
|
|
394
316
|
}
|
|
@@ -399,12 +321,12 @@ const de_CreateTagsCommand = async (output, context) => {
|
|
|
399
321
|
}
|
|
400
322
|
const data = await parseBody(output.body, context);
|
|
401
323
|
let contents = {};
|
|
402
|
-
contents =
|
|
324
|
+
contents = (0, smithy_client_1._json)(data);
|
|
403
325
|
const response = {
|
|
404
326
|
$metadata: deserializeMetadata(output),
|
|
405
327
|
...contents,
|
|
406
328
|
};
|
|
407
|
-
return
|
|
329
|
+
return response;
|
|
408
330
|
};
|
|
409
331
|
exports.de_CreateTagsCommand = de_CreateTagsCommand;
|
|
410
332
|
const de_CreateTagsCommandError = async (output, context) => {
|
|
@@ -434,10 +356,9 @@ const de_CreateTagsCommandError = async (output, context) => {
|
|
|
434
356
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
435
357
|
default:
|
|
436
358
|
const parsedBody = parsedOutput.body;
|
|
437
|
-
|
|
359
|
+
return throwDefaultError({
|
|
438
360
|
output,
|
|
439
361
|
parsedBody,
|
|
440
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
441
362
|
errorCode,
|
|
442
363
|
});
|
|
443
364
|
}
|
|
@@ -448,12 +369,12 @@ const de_DeleteApplicationsCommand = async (output, context) => {
|
|
|
448
369
|
}
|
|
449
370
|
const data = await parseBody(output.body, context);
|
|
450
371
|
let contents = {};
|
|
451
|
-
contents =
|
|
372
|
+
contents = (0, smithy_client_1._json)(data);
|
|
452
373
|
const response = {
|
|
453
374
|
$metadata: deserializeMetadata(output),
|
|
454
375
|
...contents,
|
|
455
376
|
};
|
|
456
|
-
return
|
|
377
|
+
return response;
|
|
457
378
|
};
|
|
458
379
|
exports.de_DeleteApplicationsCommand = de_DeleteApplicationsCommand;
|
|
459
380
|
const de_DeleteApplicationsCommandError = async (output, context) => {
|
|
@@ -480,10 +401,9 @@ const de_DeleteApplicationsCommandError = async (output, context) => {
|
|
|
480
401
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
481
402
|
default:
|
|
482
403
|
const parsedBody = parsedOutput.body;
|
|
483
|
-
|
|
404
|
+
return throwDefaultError({
|
|
484
405
|
output,
|
|
485
406
|
parsedBody,
|
|
486
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
487
407
|
errorCode,
|
|
488
408
|
});
|
|
489
409
|
}
|
|
@@ -494,12 +414,12 @@ const de_DeleteTagsCommand = async (output, context) => {
|
|
|
494
414
|
}
|
|
495
415
|
const data = await parseBody(output.body, context);
|
|
496
416
|
let contents = {};
|
|
497
|
-
contents =
|
|
417
|
+
contents = (0, smithy_client_1._json)(data);
|
|
498
418
|
const response = {
|
|
499
419
|
$metadata: deserializeMetadata(output),
|
|
500
420
|
...contents,
|
|
501
421
|
};
|
|
502
|
-
return
|
|
422
|
+
return response;
|
|
503
423
|
};
|
|
504
424
|
exports.de_DeleteTagsCommand = de_DeleteTagsCommand;
|
|
505
425
|
const de_DeleteTagsCommandError = async (output, context) => {
|
|
@@ -529,10 +449,9 @@ const de_DeleteTagsCommandError = async (output, context) => {
|
|
|
529
449
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
530
450
|
default:
|
|
531
451
|
const parsedBody = parsedOutput.body;
|
|
532
|
-
|
|
452
|
+
return throwDefaultError({
|
|
533
453
|
output,
|
|
534
454
|
parsedBody,
|
|
535
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
536
455
|
errorCode,
|
|
537
456
|
});
|
|
538
457
|
}
|
|
@@ -543,12 +462,12 @@ const de_DescribeAgentsCommand = async (output, context) => {
|
|
|
543
462
|
}
|
|
544
463
|
const data = await parseBody(output.body, context);
|
|
545
464
|
let contents = {};
|
|
546
|
-
contents =
|
|
465
|
+
contents = (0, smithy_client_1._json)(data);
|
|
547
466
|
const response = {
|
|
548
467
|
$metadata: deserializeMetadata(output),
|
|
549
468
|
...contents,
|
|
550
469
|
};
|
|
551
|
-
return
|
|
470
|
+
return response;
|
|
552
471
|
};
|
|
553
472
|
exports.de_DescribeAgentsCommand = de_DescribeAgentsCommand;
|
|
554
473
|
const de_DescribeAgentsCommandError = async (output, context) => {
|
|
@@ -575,10 +494,9 @@ const de_DescribeAgentsCommandError = async (output, context) => {
|
|
|
575
494
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
576
495
|
default:
|
|
577
496
|
const parsedBody = parsedOutput.body;
|
|
578
|
-
|
|
497
|
+
return throwDefaultError({
|
|
579
498
|
output,
|
|
580
499
|
parsedBody,
|
|
581
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
582
500
|
errorCode,
|
|
583
501
|
});
|
|
584
502
|
}
|
|
@@ -589,12 +507,12 @@ const de_DescribeConfigurationsCommand = async (output, context) => {
|
|
|
589
507
|
}
|
|
590
508
|
const data = await parseBody(output.body, context);
|
|
591
509
|
let contents = {};
|
|
592
|
-
contents =
|
|
510
|
+
contents = (0, smithy_client_1._json)(data);
|
|
593
511
|
const response = {
|
|
594
512
|
$metadata: deserializeMetadata(output),
|
|
595
513
|
...contents,
|
|
596
514
|
};
|
|
597
|
-
return
|
|
515
|
+
return response;
|
|
598
516
|
};
|
|
599
517
|
exports.de_DescribeConfigurationsCommand = de_DescribeConfigurationsCommand;
|
|
600
518
|
const de_DescribeConfigurationsCommandError = async (output, context) => {
|
|
@@ -621,10 +539,9 @@ const de_DescribeConfigurationsCommandError = async (output, context) => {
|
|
|
621
539
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
622
540
|
default:
|
|
623
541
|
const parsedBody = parsedOutput.body;
|
|
624
|
-
|
|
542
|
+
return throwDefaultError({
|
|
625
543
|
output,
|
|
626
544
|
parsedBody,
|
|
627
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
628
545
|
errorCode,
|
|
629
546
|
});
|
|
630
547
|
}
|
|
@@ -640,7 +557,7 @@ const de_DescribeContinuousExportsCommand = async (output, context) => {
|
|
|
640
557
|
$metadata: deserializeMetadata(output),
|
|
641
558
|
...contents,
|
|
642
559
|
};
|
|
643
|
-
return
|
|
560
|
+
return response;
|
|
644
561
|
};
|
|
645
562
|
exports.de_DescribeContinuousExportsCommand = de_DescribeContinuousExportsCommand;
|
|
646
563
|
const de_DescribeContinuousExportsCommandError = async (output, context) => {
|
|
@@ -673,10 +590,9 @@ const de_DescribeContinuousExportsCommandError = async (output, context) => {
|
|
|
673
590
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
674
591
|
default:
|
|
675
592
|
const parsedBody = parsedOutput.body;
|
|
676
|
-
|
|
593
|
+
return throwDefaultError({
|
|
677
594
|
output,
|
|
678
595
|
parsedBody,
|
|
679
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
680
596
|
errorCode,
|
|
681
597
|
});
|
|
682
598
|
}
|
|
@@ -692,7 +608,7 @@ const de_DescribeExportConfigurationsCommand = async (output, context) => {
|
|
|
692
608
|
$metadata: deserializeMetadata(output),
|
|
693
609
|
...contents,
|
|
694
610
|
};
|
|
695
|
-
return
|
|
611
|
+
return response;
|
|
696
612
|
};
|
|
697
613
|
exports.de_DescribeExportConfigurationsCommand = de_DescribeExportConfigurationsCommand;
|
|
698
614
|
const de_DescribeExportConfigurationsCommandError = async (output, context) => {
|
|
@@ -722,10 +638,9 @@ const de_DescribeExportConfigurationsCommandError = async (output, context) => {
|
|
|
722
638
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
723
639
|
default:
|
|
724
640
|
const parsedBody = parsedOutput.body;
|
|
725
|
-
|
|
641
|
+
return throwDefaultError({
|
|
726
642
|
output,
|
|
727
643
|
parsedBody,
|
|
728
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
729
644
|
errorCode,
|
|
730
645
|
});
|
|
731
646
|
}
|
|
@@ -741,7 +656,7 @@ const de_DescribeExportTasksCommand = async (output, context) => {
|
|
|
741
656
|
$metadata: deserializeMetadata(output),
|
|
742
657
|
...contents,
|
|
743
658
|
};
|
|
744
|
-
return
|
|
659
|
+
return response;
|
|
745
660
|
};
|
|
746
661
|
exports.de_DescribeExportTasksCommand = de_DescribeExportTasksCommand;
|
|
747
662
|
const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
@@ -768,10 +683,9 @@ const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
|
768
683
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
769
684
|
default:
|
|
770
685
|
const parsedBody = parsedOutput.body;
|
|
771
|
-
|
|
686
|
+
return throwDefaultError({
|
|
772
687
|
output,
|
|
773
688
|
parsedBody,
|
|
774
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
775
689
|
errorCode,
|
|
776
690
|
});
|
|
777
691
|
}
|
|
@@ -787,7 +701,7 @@ const de_DescribeImportTasksCommand = async (output, context) => {
|
|
|
787
701
|
$metadata: deserializeMetadata(output),
|
|
788
702
|
...contents,
|
|
789
703
|
};
|
|
790
|
-
return
|
|
704
|
+
return response;
|
|
791
705
|
};
|
|
792
706
|
exports.de_DescribeImportTasksCommand = de_DescribeImportTasksCommand;
|
|
793
707
|
const de_DescribeImportTasksCommandError = async (output, context) => {
|
|
@@ -814,10 +728,9 @@ const de_DescribeImportTasksCommandError = async (output, context) => {
|
|
|
814
728
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
815
729
|
default:
|
|
816
730
|
const parsedBody = parsedOutput.body;
|
|
817
|
-
|
|
731
|
+
return throwDefaultError({
|
|
818
732
|
output,
|
|
819
733
|
parsedBody,
|
|
820
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
821
734
|
errorCode,
|
|
822
735
|
});
|
|
823
736
|
}
|
|
@@ -833,7 +746,7 @@ const de_DescribeTagsCommand = async (output, context) => {
|
|
|
833
746
|
$metadata: deserializeMetadata(output),
|
|
834
747
|
...contents,
|
|
835
748
|
};
|
|
836
|
-
return
|
|
749
|
+
return response;
|
|
837
750
|
};
|
|
838
751
|
exports.de_DescribeTagsCommand = de_DescribeTagsCommand;
|
|
839
752
|
const de_DescribeTagsCommandError = async (output, context) => {
|
|
@@ -863,10 +776,9 @@ const de_DescribeTagsCommandError = async (output, context) => {
|
|
|
863
776
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
864
777
|
default:
|
|
865
778
|
const parsedBody = parsedOutput.body;
|
|
866
|
-
|
|
779
|
+
return throwDefaultError({
|
|
867
780
|
output,
|
|
868
781
|
parsedBody,
|
|
869
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
870
782
|
errorCode,
|
|
871
783
|
});
|
|
872
784
|
}
|
|
@@ -877,12 +789,12 @@ const de_DisassociateConfigurationItemsFromApplicationCommand = async (output, c
|
|
|
877
789
|
}
|
|
878
790
|
const data = await parseBody(output.body, context);
|
|
879
791
|
let contents = {};
|
|
880
|
-
contents =
|
|
792
|
+
contents = (0, smithy_client_1._json)(data);
|
|
881
793
|
const response = {
|
|
882
794
|
$metadata: deserializeMetadata(output),
|
|
883
795
|
...contents,
|
|
884
796
|
};
|
|
885
|
-
return
|
|
797
|
+
return response;
|
|
886
798
|
};
|
|
887
799
|
exports.de_DisassociateConfigurationItemsFromApplicationCommand = de_DisassociateConfigurationItemsFromApplicationCommand;
|
|
888
800
|
const de_DisassociateConfigurationItemsFromApplicationCommandError = async (output, context) => {
|
|
@@ -909,10 +821,9 @@ const de_DisassociateConfigurationItemsFromApplicationCommandError = async (outp
|
|
|
909
821
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
910
822
|
default:
|
|
911
823
|
const parsedBody = parsedOutput.body;
|
|
912
|
-
|
|
824
|
+
return throwDefaultError({
|
|
913
825
|
output,
|
|
914
826
|
parsedBody,
|
|
915
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
916
827
|
errorCode,
|
|
917
828
|
});
|
|
918
829
|
}
|
|
@@ -923,12 +834,12 @@ const de_ExportConfigurationsCommand = async (output, context) => {
|
|
|
923
834
|
}
|
|
924
835
|
const data = await parseBody(output.body, context);
|
|
925
836
|
let contents = {};
|
|
926
|
-
contents =
|
|
837
|
+
contents = (0, smithy_client_1._json)(data);
|
|
927
838
|
const response = {
|
|
928
839
|
$metadata: deserializeMetadata(output),
|
|
929
840
|
...contents,
|
|
930
841
|
};
|
|
931
|
-
return
|
|
842
|
+
return response;
|
|
932
843
|
};
|
|
933
844
|
exports.de_ExportConfigurationsCommand = de_ExportConfigurationsCommand;
|
|
934
845
|
const de_ExportConfigurationsCommandError = async (output, context) => {
|
|
@@ -958,10 +869,9 @@ const de_ExportConfigurationsCommandError = async (output, context) => {
|
|
|
958
869
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
959
870
|
default:
|
|
960
871
|
const parsedBody = parsedOutput.body;
|
|
961
|
-
|
|
872
|
+
return throwDefaultError({
|
|
962
873
|
output,
|
|
963
874
|
parsedBody,
|
|
964
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
965
875
|
errorCode,
|
|
966
876
|
});
|
|
967
877
|
}
|
|
@@ -972,12 +882,12 @@ const de_GetDiscoverySummaryCommand = async (output, context) => {
|
|
|
972
882
|
}
|
|
973
883
|
const data = await parseBody(output.body, context);
|
|
974
884
|
let contents = {};
|
|
975
|
-
contents =
|
|
885
|
+
contents = (0, smithy_client_1._json)(data);
|
|
976
886
|
const response = {
|
|
977
887
|
$metadata: deserializeMetadata(output),
|
|
978
888
|
...contents,
|
|
979
889
|
};
|
|
980
|
-
return
|
|
890
|
+
return response;
|
|
981
891
|
};
|
|
982
892
|
exports.de_GetDiscoverySummaryCommand = de_GetDiscoverySummaryCommand;
|
|
983
893
|
const de_GetDiscoverySummaryCommandError = async (output, context) => {
|
|
@@ -1004,10 +914,9 @@ const de_GetDiscoverySummaryCommandError = async (output, context) => {
|
|
|
1004
914
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1005
915
|
default:
|
|
1006
916
|
const parsedBody = parsedOutput.body;
|
|
1007
|
-
|
|
917
|
+
return throwDefaultError({
|
|
1008
918
|
output,
|
|
1009
919
|
parsedBody,
|
|
1010
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1011
920
|
errorCode,
|
|
1012
921
|
});
|
|
1013
922
|
}
|
|
@@ -1018,12 +927,12 @@ const de_ListConfigurationsCommand = async (output, context) => {
|
|
|
1018
927
|
}
|
|
1019
928
|
const data = await parseBody(output.body, context);
|
|
1020
929
|
let contents = {};
|
|
1021
|
-
contents =
|
|
930
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1022
931
|
const response = {
|
|
1023
932
|
$metadata: deserializeMetadata(output),
|
|
1024
933
|
...contents,
|
|
1025
934
|
};
|
|
1026
|
-
return
|
|
935
|
+
return response;
|
|
1027
936
|
};
|
|
1028
937
|
exports.de_ListConfigurationsCommand = de_ListConfigurationsCommand;
|
|
1029
938
|
const de_ListConfigurationsCommandError = async (output, context) => {
|
|
@@ -1053,10 +962,9 @@ const de_ListConfigurationsCommandError = async (output, context) => {
|
|
|
1053
962
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1054
963
|
default:
|
|
1055
964
|
const parsedBody = parsedOutput.body;
|
|
1056
|
-
|
|
965
|
+
return throwDefaultError({
|
|
1057
966
|
output,
|
|
1058
967
|
parsedBody,
|
|
1059
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1060
968
|
errorCode,
|
|
1061
969
|
});
|
|
1062
970
|
}
|
|
@@ -1067,12 +975,12 @@ const de_ListServerNeighborsCommand = async (output, context) => {
|
|
|
1067
975
|
}
|
|
1068
976
|
const data = await parseBody(output.body, context);
|
|
1069
977
|
let contents = {};
|
|
1070
|
-
contents =
|
|
978
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1071
979
|
const response = {
|
|
1072
980
|
$metadata: deserializeMetadata(output),
|
|
1073
981
|
...contents,
|
|
1074
982
|
};
|
|
1075
|
-
return
|
|
983
|
+
return response;
|
|
1076
984
|
};
|
|
1077
985
|
exports.de_ListServerNeighborsCommand = de_ListServerNeighborsCommand;
|
|
1078
986
|
const de_ListServerNeighborsCommandError = async (output, context) => {
|
|
@@ -1099,10 +1007,9 @@ const de_ListServerNeighborsCommandError = async (output, context) => {
|
|
|
1099
1007
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1100
1008
|
default:
|
|
1101
1009
|
const parsedBody = parsedOutput.body;
|
|
1102
|
-
|
|
1010
|
+
return throwDefaultError({
|
|
1103
1011
|
output,
|
|
1104
1012
|
parsedBody,
|
|
1105
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1106
1013
|
errorCode,
|
|
1107
1014
|
});
|
|
1108
1015
|
}
|
|
@@ -1118,7 +1025,7 @@ const de_StartContinuousExportCommand = async (output, context) => {
|
|
|
1118
1025
|
$metadata: deserializeMetadata(output),
|
|
1119
1026
|
...contents,
|
|
1120
1027
|
};
|
|
1121
|
-
return
|
|
1028
|
+
return response;
|
|
1122
1029
|
};
|
|
1123
1030
|
exports.de_StartContinuousExportCommand = de_StartContinuousExportCommand;
|
|
1124
1031
|
const de_StartContinuousExportCommandError = async (output, context) => {
|
|
@@ -1154,10 +1061,9 @@ const de_StartContinuousExportCommandError = async (output, context) => {
|
|
|
1154
1061
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1155
1062
|
default:
|
|
1156
1063
|
const parsedBody = parsedOutput.body;
|
|
1157
|
-
|
|
1064
|
+
return throwDefaultError({
|
|
1158
1065
|
output,
|
|
1159
1066
|
parsedBody,
|
|
1160
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1161
1067
|
errorCode,
|
|
1162
1068
|
});
|
|
1163
1069
|
}
|
|
@@ -1168,12 +1074,12 @@ const de_StartDataCollectionByAgentIdsCommand = async (output, context) => {
|
|
|
1168
1074
|
}
|
|
1169
1075
|
const data = await parseBody(output.body, context);
|
|
1170
1076
|
let contents = {};
|
|
1171
|
-
contents =
|
|
1077
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1172
1078
|
const response = {
|
|
1173
1079
|
$metadata: deserializeMetadata(output),
|
|
1174
1080
|
...contents,
|
|
1175
1081
|
};
|
|
1176
|
-
return
|
|
1082
|
+
return response;
|
|
1177
1083
|
};
|
|
1178
1084
|
exports.de_StartDataCollectionByAgentIdsCommand = de_StartDataCollectionByAgentIdsCommand;
|
|
1179
1085
|
const de_StartDataCollectionByAgentIdsCommandError = async (output, context) => {
|
|
@@ -1200,10 +1106,9 @@ const de_StartDataCollectionByAgentIdsCommandError = async (output, context) =>
|
|
|
1200
1106
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1201
1107
|
default:
|
|
1202
1108
|
const parsedBody = parsedOutput.body;
|
|
1203
|
-
|
|
1109
|
+
return throwDefaultError({
|
|
1204
1110
|
output,
|
|
1205
1111
|
parsedBody,
|
|
1206
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1207
1112
|
errorCode,
|
|
1208
1113
|
});
|
|
1209
1114
|
}
|
|
@@ -1214,12 +1119,12 @@ const de_StartExportTaskCommand = async (output, context) => {
|
|
|
1214
1119
|
}
|
|
1215
1120
|
const data = await parseBody(output.body, context);
|
|
1216
1121
|
let contents = {};
|
|
1217
|
-
contents =
|
|
1122
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1218
1123
|
const response = {
|
|
1219
1124
|
$metadata: deserializeMetadata(output),
|
|
1220
1125
|
...contents,
|
|
1221
1126
|
};
|
|
1222
|
-
return
|
|
1127
|
+
return response;
|
|
1223
1128
|
};
|
|
1224
1129
|
exports.de_StartExportTaskCommand = de_StartExportTaskCommand;
|
|
1225
1130
|
const de_StartExportTaskCommandError = async (output, context) => {
|
|
@@ -1249,10 +1154,9 @@ const de_StartExportTaskCommandError = async (output, context) => {
|
|
|
1249
1154
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1250
1155
|
default:
|
|
1251
1156
|
const parsedBody = parsedOutput.body;
|
|
1252
|
-
|
|
1157
|
+
return throwDefaultError({
|
|
1253
1158
|
output,
|
|
1254
1159
|
parsedBody,
|
|
1255
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1256
1160
|
errorCode,
|
|
1257
1161
|
});
|
|
1258
1162
|
}
|
|
@@ -1268,7 +1172,7 @@ const de_StartImportTaskCommand = async (output, context) => {
|
|
|
1268
1172
|
$metadata: deserializeMetadata(output),
|
|
1269
1173
|
...contents,
|
|
1270
1174
|
};
|
|
1271
|
-
return
|
|
1175
|
+
return response;
|
|
1272
1176
|
};
|
|
1273
1177
|
exports.de_StartImportTaskCommand = de_StartImportTaskCommand;
|
|
1274
1178
|
const de_StartImportTaskCommandError = async (output, context) => {
|
|
@@ -1298,10 +1202,9 @@ const de_StartImportTaskCommandError = async (output, context) => {
|
|
|
1298
1202
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1299
1203
|
default:
|
|
1300
1204
|
const parsedBody = parsedOutput.body;
|
|
1301
|
-
|
|
1205
|
+
return throwDefaultError({
|
|
1302
1206
|
output,
|
|
1303
1207
|
parsedBody,
|
|
1304
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1305
1208
|
errorCode,
|
|
1306
1209
|
});
|
|
1307
1210
|
}
|
|
@@ -1317,7 +1220,7 @@ const de_StopContinuousExportCommand = async (output, context) => {
|
|
|
1317
1220
|
$metadata: deserializeMetadata(output),
|
|
1318
1221
|
...contents,
|
|
1319
1222
|
};
|
|
1320
|
-
return
|
|
1223
|
+
return response;
|
|
1321
1224
|
};
|
|
1322
1225
|
exports.de_StopContinuousExportCommand = de_StopContinuousExportCommand;
|
|
1323
1226
|
const de_StopContinuousExportCommandError = async (output, context) => {
|
|
@@ -1353,10 +1256,9 @@ const de_StopContinuousExportCommandError = async (output, context) => {
|
|
|
1353
1256
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1354
1257
|
default:
|
|
1355
1258
|
const parsedBody = parsedOutput.body;
|
|
1356
|
-
|
|
1259
|
+
return throwDefaultError({
|
|
1357
1260
|
output,
|
|
1358
1261
|
parsedBody,
|
|
1359
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1360
1262
|
errorCode,
|
|
1361
1263
|
});
|
|
1362
1264
|
}
|
|
@@ -1367,12 +1269,12 @@ const de_StopDataCollectionByAgentIdsCommand = async (output, context) => {
|
|
|
1367
1269
|
}
|
|
1368
1270
|
const data = await parseBody(output.body, context);
|
|
1369
1271
|
let contents = {};
|
|
1370
|
-
contents =
|
|
1272
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1371
1273
|
const response = {
|
|
1372
1274
|
$metadata: deserializeMetadata(output),
|
|
1373
1275
|
...contents,
|
|
1374
1276
|
};
|
|
1375
|
-
return
|
|
1277
|
+
return response;
|
|
1376
1278
|
};
|
|
1377
1279
|
exports.de_StopDataCollectionByAgentIdsCommand = de_StopDataCollectionByAgentIdsCommand;
|
|
1378
1280
|
const de_StopDataCollectionByAgentIdsCommandError = async (output, context) => {
|
|
@@ -1399,10 +1301,9 @@ const de_StopDataCollectionByAgentIdsCommandError = async (output, context) => {
|
|
|
1399
1301
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1400
1302
|
default:
|
|
1401
1303
|
const parsedBody = parsedOutput.body;
|
|
1402
|
-
|
|
1304
|
+
return throwDefaultError({
|
|
1403
1305
|
output,
|
|
1404
1306
|
parsedBody,
|
|
1405
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1406
1307
|
errorCode,
|
|
1407
1308
|
});
|
|
1408
1309
|
}
|
|
@@ -1413,12 +1314,12 @@ const de_UpdateApplicationCommand = async (output, context) => {
|
|
|
1413
1314
|
}
|
|
1414
1315
|
const data = await parseBody(output.body, context);
|
|
1415
1316
|
let contents = {};
|
|
1416
|
-
contents =
|
|
1317
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1417
1318
|
const response = {
|
|
1418
1319
|
$metadata: deserializeMetadata(output),
|
|
1419
1320
|
...contents,
|
|
1420
1321
|
};
|
|
1421
|
-
return
|
|
1322
|
+
return response;
|
|
1422
1323
|
};
|
|
1423
1324
|
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
1424
1325
|
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
@@ -1445,17 +1346,16 @@ const de_UpdateApplicationCommandError = async (output, context) => {
|
|
|
1445
1346
|
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
1446
1347
|
default:
|
|
1447
1348
|
const parsedBody = parsedOutput.body;
|
|
1448
|
-
|
|
1349
|
+
return throwDefaultError({
|
|
1449
1350
|
output,
|
|
1450
1351
|
parsedBody,
|
|
1451
|
-
exceptionCtor: ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException,
|
|
1452
1352
|
errorCode,
|
|
1453
1353
|
});
|
|
1454
1354
|
}
|
|
1455
1355
|
};
|
|
1456
1356
|
const de_AuthorizationErrorExceptionRes = async (parsedOutput, context) => {
|
|
1457
1357
|
const body = parsedOutput.body;
|
|
1458
|
-
const deserialized =
|
|
1358
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1459
1359
|
const exception = new models_0_1.AuthorizationErrorException({
|
|
1460
1360
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1461
1361
|
...deserialized,
|
|
@@ -1464,7 +1364,7 @@ const de_AuthorizationErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1464
1364
|
};
|
|
1465
1365
|
const de_ConflictErrorExceptionRes = async (parsedOutput, context) => {
|
|
1466
1366
|
const body = parsedOutput.body;
|
|
1467
|
-
const deserialized =
|
|
1367
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1468
1368
|
const exception = new models_0_1.ConflictErrorException({
|
|
1469
1369
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1470
1370
|
...deserialized,
|
|
@@ -1473,7 +1373,7 @@ const de_ConflictErrorExceptionRes = async (parsedOutput, context) => {
|
|
|
1473
1373
|
};
|
|
1474
1374
|
const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
1475
1375
|
const body = parsedOutput.body;
|
|
1476
|
-
const deserialized =
|
|
1376
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1477
1377
|
const exception = new models_0_1.HomeRegionNotSetException({
|
|
1478
1378
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1479
1379
|
...deserialized,
|
|
@@ -1482,7 +1382,7 @@ const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
|
1482
1382
|
};
|
|
1483
1383
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1484
1384
|
const body = parsedOutput.body;
|
|
1485
|
-
const deserialized =
|
|
1385
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1486
1386
|
const exception = new models_0_1.InvalidParameterException({
|
|
1487
1387
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1488
1388
|
...deserialized,
|
|
@@ -1491,7 +1391,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
1491
1391
|
};
|
|
1492
1392
|
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
1493
1393
|
const body = parsedOutput.body;
|
|
1494
|
-
const deserialized =
|
|
1394
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1495
1395
|
const exception = new models_0_1.InvalidParameterValueException({
|
|
1496
1396
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1497
1397
|
...deserialized,
|
|
@@ -1500,7 +1400,7 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
|
1500
1400
|
};
|
|
1501
1401
|
const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
|
|
1502
1402
|
const body = parsedOutput.body;
|
|
1503
|
-
const deserialized =
|
|
1403
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1504
1404
|
const exception = new models_0_1.OperationNotPermittedException({
|
|
1505
1405
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1506
1406
|
...deserialized,
|
|
@@ -1509,7 +1409,7 @@ const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
|
|
|
1509
1409
|
};
|
|
1510
1410
|
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
1511
1411
|
const body = parsedOutput.body;
|
|
1512
|
-
const deserialized =
|
|
1412
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1513
1413
|
const exception = new models_0_1.ResourceInUseException({
|
|
1514
1414
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1515
1415
|
...deserialized,
|
|
@@ -1518,7 +1418,7 @@ const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
|
1518
1418
|
};
|
|
1519
1419
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1520
1420
|
const body = parsedOutput.body;
|
|
1521
|
-
const deserialized =
|
|
1421
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1522
1422
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1523
1423
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1524
1424
|
...deserialized,
|
|
@@ -1527,801 +1427,159 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1527
1427
|
};
|
|
1528
1428
|
const de_ServerInternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
1529
1429
|
const body = parsedOutput.body;
|
|
1530
|
-
const deserialized =
|
|
1430
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1531
1431
|
const exception = new models_0_1.ServerInternalErrorException({
|
|
1532
1432
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1533
1433
|
...deserialized,
|
|
1534
1434
|
});
|
|
1535
1435
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1536
1436
|
};
|
|
1537
|
-
const se_AgentIds = (input, context) => {
|
|
1538
|
-
return input
|
|
1539
|
-
.filter((e) => e != null)
|
|
1540
|
-
.map((entry) => {
|
|
1541
|
-
return entry;
|
|
1542
|
-
});
|
|
1543
|
-
};
|
|
1544
|
-
const se_ApplicationIdsList = (input, context) => {
|
|
1545
|
-
return input
|
|
1546
|
-
.filter((e) => e != null)
|
|
1547
|
-
.map((entry) => {
|
|
1548
|
-
return entry;
|
|
1549
|
-
});
|
|
1550
|
-
};
|
|
1551
|
-
const se_AssociateConfigurationItemsToApplicationRequest = (input, context) => {
|
|
1552
|
-
return {
|
|
1553
|
-
...(input.applicationConfigurationId != null && { applicationConfigurationId: input.applicationConfigurationId }),
|
|
1554
|
-
...(input.configurationIds != null && {
|
|
1555
|
-
configurationIds: se_ConfigurationIdList(input.configurationIds, context),
|
|
1556
|
-
}),
|
|
1557
|
-
};
|
|
1558
|
-
};
|
|
1559
|
-
const se_BatchDeleteImportDataRequest = (input, context) => {
|
|
1560
|
-
return {
|
|
1561
|
-
...(input.importTaskIds != null && { importTaskIds: se_ToDeleteIdentifierList(input.importTaskIds, context) }),
|
|
1562
|
-
};
|
|
1563
|
-
};
|
|
1564
|
-
const se_ConfigurationIdList = (input, context) => {
|
|
1565
|
-
return input
|
|
1566
|
-
.filter((e) => e != null)
|
|
1567
|
-
.map((entry) => {
|
|
1568
|
-
return entry;
|
|
1569
|
-
});
|
|
1570
|
-
};
|
|
1571
|
-
const se_ContinuousExportIds = (input, context) => {
|
|
1572
|
-
return input
|
|
1573
|
-
.filter((e) => e != null)
|
|
1574
|
-
.map((entry) => {
|
|
1575
|
-
return entry;
|
|
1576
|
-
});
|
|
1577
|
-
};
|
|
1578
|
-
const se_CreateApplicationRequest = (input, context) => {
|
|
1579
|
-
return {
|
|
1580
|
-
...(input.description != null && { description: input.description }),
|
|
1581
|
-
...(input.name != null && { name: input.name }),
|
|
1582
|
-
};
|
|
1583
|
-
};
|
|
1584
|
-
const se_CreateTagsRequest = (input, context) => {
|
|
1585
|
-
return {
|
|
1586
|
-
...(input.configurationIds != null && {
|
|
1587
|
-
configurationIds: se_ConfigurationIdList(input.configurationIds, context),
|
|
1588
|
-
}),
|
|
1589
|
-
...(input.tags != null && { tags: se_TagSet(input.tags, context) }),
|
|
1590
|
-
};
|
|
1591
|
-
};
|
|
1592
|
-
const se_DeleteApplicationsRequest = (input, context) => {
|
|
1593
|
-
return {
|
|
1594
|
-
...(input.configurationIds != null && { configurationIds: se_ApplicationIdsList(input.configurationIds, context) }),
|
|
1595
|
-
};
|
|
1596
|
-
};
|
|
1597
|
-
const se_DeleteTagsRequest = (input, context) => {
|
|
1598
|
-
return {
|
|
1599
|
-
...(input.configurationIds != null && {
|
|
1600
|
-
configurationIds: se_ConfigurationIdList(input.configurationIds, context),
|
|
1601
|
-
}),
|
|
1602
|
-
...(input.tags != null && { tags: se_TagSet(input.tags, context) }),
|
|
1603
|
-
};
|
|
1604
|
-
};
|
|
1605
|
-
const se_DescribeAgentsRequest = (input, context) => {
|
|
1606
|
-
return {
|
|
1607
|
-
...(input.agentIds != null && { agentIds: se_AgentIds(input.agentIds, context) }),
|
|
1608
|
-
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1609
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1610
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1611
|
-
};
|
|
1612
|
-
};
|
|
1613
|
-
const se_DescribeConfigurationsRequest = (input, context) => {
|
|
1614
|
-
return {
|
|
1615
|
-
...(input.configurationIds != null && {
|
|
1616
|
-
configurationIds: se_ConfigurationIdList(input.configurationIds, context),
|
|
1617
|
-
}),
|
|
1618
|
-
};
|
|
1619
|
-
};
|
|
1620
|
-
const se_DescribeContinuousExportsRequest = (input, context) => {
|
|
1621
|
-
return {
|
|
1622
|
-
...(input.exportIds != null && { exportIds: se_ContinuousExportIds(input.exportIds, context) }),
|
|
1623
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1624
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1625
|
-
};
|
|
1626
|
-
};
|
|
1627
|
-
const se_DescribeExportConfigurationsRequest = (input, context) => {
|
|
1628
|
-
return {
|
|
1629
|
-
...(input.exportIds != null && { exportIds: se_ExportIds(input.exportIds, context) }),
|
|
1630
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1631
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1632
|
-
};
|
|
1633
|
-
};
|
|
1634
|
-
const se_DescribeExportTasksRequest = (input, context) => {
|
|
1635
|
-
return {
|
|
1636
|
-
...(input.exportIds != null && { exportIds: se_ExportIds(input.exportIds, context) }),
|
|
1637
|
-
...(input.filters != null && { filters: se_ExportFilters(input.filters, context) }),
|
|
1638
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1639
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1640
|
-
};
|
|
1641
|
-
};
|
|
1642
|
-
const se_DescribeImportTasksFilterList = (input, context) => {
|
|
1643
|
-
return input
|
|
1644
|
-
.filter((e) => e != null)
|
|
1645
|
-
.map((entry) => {
|
|
1646
|
-
return se_ImportTaskFilter(entry, context);
|
|
1647
|
-
});
|
|
1648
|
-
};
|
|
1649
|
-
const se_DescribeImportTasksRequest = (input, context) => {
|
|
1650
|
-
return {
|
|
1651
|
-
...(input.filters != null && { filters: se_DescribeImportTasksFilterList(input.filters, context) }),
|
|
1652
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1653
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1654
|
-
};
|
|
1655
|
-
};
|
|
1656
|
-
const se_DescribeTagsRequest = (input, context) => {
|
|
1657
|
-
return {
|
|
1658
|
-
...(input.filters != null && { filters: se_TagFilters(input.filters, context) }),
|
|
1659
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1660
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1661
|
-
};
|
|
1662
|
-
};
|
|
1663
|
-
const se_DisassociateConfigurationItemsFromApplicationRequest = (input, context) => {
|
|
1664
|
-
return {
|
|
1665
|
-
...(input.applicationConfigurationId != null && { applicationConfigurationId: input.applicationConfigurationId }),
|
|
1666
|
-
...(input.configurationIds != null && {
|
|
1667
|
-
configurationIds: se_ConfigurationIdList(input.configurationIds, context),
|
|
1668
|
-
}),
|
|
1669
|
-
};
|
|
1670
|
-
};
|
|
1671
|
-
const se_ExportDataFormats = (input, context) => {
|
|
1672
|
-
return input
|
|
1673
|
-
.filter((e) => e != null)
|
|
1674
|
-
.map((entry) => {
|
|
1675
|
-
return entry;
|
|
1676
|
-
});
|
|
1677
|
-
};
|
|
1678
|
-
const se_ExportFilter = (input, context) => {
|
|
1679
|
-
return {
|
|
1680
|
-
...(input.condition != null && { condition: input.condition }),
|
|
1681
|
-
...(input.name != null && { name: input.name }),
|
|
1682
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1683
|
-
};
|
|
1684
|
-
};
|
|
1685
|
-
const se_ExportFilters = (input, context) => {
|
|
1686
|
-
return input
|
|
1687
|
-
.filter((e) => e != null)
|
|
1688
|
-
.map((entry) => {
|
|
1689
|
-
return se_ExportFilter(entry, context);
|
|
1690
|
-
});
|
|
1691
|
-
};
|
|
1692
|
-
const se_ExportIds = (input, context) => {
|
|
1693
|
-
return input
|
|
1694
|
-
.filter((e) => e != null)
|
|
1695
|
-
.map((entry) => {
|
|
1696
|
-
return entry;
|
|
1697
|
-
});
|
|
1698
|
-
};
|
|
1699
|
-
const se_Filter = (input, context) => {
|
|
1700
|
-
return {
|
|
1701
|
-
...(input.condition != null && { condition: input.condition }),
|
|
1702
|
-
...(input.name != null && { name: input.name }),
|
|
1703
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1704
|
-
};
|
|
1705
|
-
};
|
|
1706
|
-
const se_Filters = (input, context) => {
|
|
1707
|
-
return input
|
|
1708
|
-
.filter((e) => e != null)
|
|
1709
|
-
.map((entry) => {
|
|
1710
|
-
return se_Filter(entry, context);
|
|
1711
|
-
});
|
|
1712
|
-
};
|
|
1713
|
-
const se_FilterValues = (input, context) => {
|
|
1714
|
-
return input
|
|
1715
|
-
.filter((e) => e != null)
|
|
1716
|
-
.map((entry) => {
|
|
1717
|
-
return entry;
|
|
1718
|
-
});
|
|
1719
|
-
};
|
|
1720
|
-
const se_GetDiscoverySummaryRequest = (input, context) => {
|
|
1721
|
-
return {};
|
|
1722
|
-
};
|
|
1723
|
-
const se_ImportTaskFilter = (input, context) => {
|
|
1724
|
-
return {
|
|
1725
|
-
...(input.name != null && { name: input.name }),
|
|
1726
|
-
...(input.values != null && { values: se_ImportTaskFilterValueList(input.values, context) }),
|
|
1727
|
-
};
|
|
1728
|
-
};
|
|
1729
|
-
const se_ImportTaskFilterValueList = (input, context) => {
|
|
1730
|
-
return input
|
|
1731
|
-
.filter((e) => e != null)
|
|
1732
|
-
.map((entry) => {
|
|
1733
|
-
return entry;
|
|
1734
|
-
});
|
|
1735
|
-
};
|
|
1736
|
-
const se_ListConfigurationsRequest = (input, context) => {
|
|
1737
|
-
return {
|
|
1738
|
-
...(input.configurationType != null && { configurationType: input.configurationType }),
|
|
1739
|
-
...(input.filters != null && { filters: se_Filters(input.filters, context) }),
|
|
1740
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1741
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1742
|
-
...(input.orderBy != null && { orderBy: se_OrderByList(input.orderBy, context) }),
|
|
1743
|
-
};
|
|
1744
|
-
};
|
|
1745
|
-
const se_ListServerNeighborsRequest = (input, context) => {
|
|
1746
|
-
return {
|
|
1747
|
-
...(input.configurationId != null && { configurationId: input.configurationId }),
|
|
1748
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1749
|
-
...(input.neighborConfigurationIds != null && {
|
|
1750
|
-
neighborConfigurationIds: se_ConfigurationIdList(input.neighborConfigurationIds, context),
|
|
1751
|
-
}),
|
|
1752
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1753
|
-
...(input.portInformationNeeded != null && { portInformationNeeded: input.portInformationNeeded }),
|
|
1754
|
-
};
|
|
1755
|
-
};
|
|
1756
|
-
const se_OrderByElement = (input, context) => {
|
|
1757
|
-
return {
|
|
1758
|
-
...(input.fieldName != null && { fieldName: input.fieldName }),
|
|
1759
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
1760
|
-
};
|
|
1761
|
-
};
|
|
1762
|
-
const se_OrderByList = (input, context) => {
|
|
1763
|
-
return input
|
|
1764
|
-
.filter((e) => e != null)
|
|
1765
|
-
.map((entry) => {
|
|
1766
|
-
return se_OrderByElement(entry, context);
|
|
1767
|
-
});
|
|
1768
|
-
};
|
|
1769
|
-
const se_StartContinuousExportRequest = (input, context) => {
|
|
1770
|
-
return {};
|
|
1771
|
-
};
|
|
1772
|
-
const se_StartDataCollectionByAgentIdsRequest = (input, context) => {
|
|
1773
|
-
return {
|
|
1774
|
-
...(input.agentIds != null && { agentIds: se_AgentIds(input.agentIds, context) }),
|
|
1775
|
-
};
|
|
1776
|
-
};
|
|
1777
1437
|
const se_StartExportTaskRequest = (input, context) => {
|
|
1778
|
-
return {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
};
|
|
1784
|
-
};
|
|
1785
|
-
const se_StartImportTaskRequest = (input, context) => {
|
|
1786
|
-
return {
|
|
1787
|
-
clientRequestToken: input.clientRequestToken ?? (0, uuid_1.v4)(),
|
|
1788
|
-
...(input.importUrl != null && { importUrl: input.importUrl }),
|
|
1789
|
-
...(input.name != null && { name: input.name }),
|
|
1790
|
-
};
|
|
1791
|
-
};
|
|
1792
|
-
const se_StopContinuousExportRequest = (input, context) => {
|
|
1793
|
-
return {
|
|
1794
|
-
...(input.exportId != null && { exportId: input.exportId }),
|
|
1795
|
-
};
|
|
1796
|
-
};
|
|
1797
|
-
const se_StopDataCollectionByAgentIdsRequest = (input, context) => {
|
|
1798
|
-
return {
|
|
1799
|
-
...(input.agentIds != null && { agentIds: se_AgentIds(input.agentIds, context) }),
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
const se_Tag = (input, context) => {
|
|
1803
|
-
return {
|
|
1804
|
-
...(input.key != null && { key: input.key }),
|
|
1805
|
-
...(input.value != null && { value: input.value }),
|
|
1806
|
-
};
|
|
1807
|
-
};
|
|
1808
|
-
const se_TagFilter = (input, context) => {
|
|
1809
|
-
return {
|
|
1810
|
-
...(input.name != null && { name: input.name }),
|
|
1811
|
-
...(input.values != null && { values: se_FilterValues(input.values, context) }),
|
|
1812
|
-
};
|
|
1813
|
-
};
|
|
1814
|
-
const se_TagFilters = (input, context) => {
|
|
1815
|
-
return input
|
|
1816
|
-
.filter((e) => e != null)
|
|
1817
|
-
.map((entry) => {
|
|
1818
|
-
return se_TagFilter(entry, context);
|
|
1819
|
-
});
|
|
1820
|
-
};
|
|
1821
|
-
const se_TagSet = (input, context) => {
|
|
1822
|
-
return input
|
|
1823
|
-
.filter((e) => e != null)
|
|
1824
|
-
.map((entry) => {
|
|
1825
|
-
return se_Tag(entry, context);
|
|
1826
|
-
});
|
|
1827
|
-
};
|
|
1828
|
-
const se_ToDeleteIdentifierList = (input, context) => {
|
|
1829
|
-
return input
|
|
1830
|
-
.filter((e) => e != null)
|
|
1831
|
-
.map((entry) => {
|
|
1832
|
-
return entry;
|
|
1438
|
+
return (0, smithy_client_1.take)(input, {
|
|
1439
|
+
endTime: (_) => Math.round(_.getTime() / 1000),
|
|
1440
|
+
exportDataFormat: smithy_client_1._json,
|
|
1441
|
+
filters: smithy_client_1._json,
|
|
1442
|
+
startTime: (_) => Math.round(_.getTime() / 1000),
|
|
1833
1443
|
});
|
|
1834
1444
|
};
|
|
1835
|
-
const
|
|
1836
|
-
return {
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
};
|
|
1841
|
-
};
|
|
1842
|
-
const de_AgentConfigurationStatus = (output, context) => {
|
|
1843
|
-
return {
|
|
1844
|
-
agentId: (0, smithy_client_1.expectString)(output.agentId),
|
|
1845
|
-
description: (0, smithy_client_1.expectString)(output.description),
|
|
1846
|
-
operationSucceeded: (0, smithy_client_1.expectBoolean)(output.operationSucceeded),
|
|
1847
|
-
};
|
|
1848
|
-
};
|
|
1849
|
-
const de_AgentConfigurationStatusList = (output, context) => {
|
|
1850
|
-
const retVal = (output || [])
|
|
1851
|
-
.filter((e) => e != null)
|
|
1852
|
-
.map((entry) => {
|
|
1853
|
-
if (entry === null) {
|
|
1854
|
-
return null;
|
|
1855
|
-
}
|
|
1856
|
-
return de_AgentConfigurationStatus(entry, context);
|
|
1857
|
-
});
|
|
1858
|
-
return retVal;
|
|
1859
|
-
};
|
|
1860
|
-
const de_AgentInfo = (output, context) => {
|
|
1861
|
-
return {
|
|
1862
|
-
agentId: (0, smithy_client_1.expectString)(output.agentId),
|
|
1863
|
-
agentNetworkInfoList: output.agentNetworkInfoList != null ? de_AgentNetworkInfoList(output.agentNetworkInfoList, context) : undefined,
|
|
1864
|
-
agentType: (0, smithy_client_1.expectString)(output.agentType),
|
|
1865
|
-
collectionStatus: (0, smithy_client_1.expectString)(output.collectionStatus),
|
|
1866
|
-
connectorId: (0, smithy_client_1.expectString)(output.connectorId),
|
|
1867
|
-
health: (0, smithy_client_1.expectString)(output.health),
|
|
1868
|
-
hostName: (0, smithy_client_1.expectString)(output.hostName),
|
|
1869
|
-
lastHealthPingTime: (0, smithy_client_1.expectString)(output.lastHealthPingTime),
|
|
1870
|
-
registeredTime: (0, smithy_client_1.expectString)(output.registeredTime),
|
|
1871
|
-
version: (0, smithy_client_1.expectString)(output.version),
|
|
1872
|
-
};
|
|
1873
|
-
};
|
|
1874
|
-
const de_AgentNetworkInfo = (output, context) => {
|
|
1875
|
-
return {
|
|
1876
|
-
ipAddress: (0, smithy_client_1.expectString)(output.ipAddress),
|
|
1877
|
-
macAddress: (0, smithy_client_1.expectString)(output.macAddress),
|
|
1878
|
-
};
|
|
1879
|
-
};
|
|
1880
|
-
const de_AgentNetworkInfoList = (output, context) => {
|
|
1881
|
-
const retVal = (output || [])
|
|
1882
|
-
.filter((e) => e != null)
|
|
1883
|
-
.map((entry) => {
|
|
1884
|
-
if (entry === null) {
|
|
1885
|
-
return null;
|
|
1886
|
-
}
|
|
1887
|
-
return de_AgentNetworkInfo(entry, context);
|
|
1888
|
-
});
|
|
1889
|
-
return retVal;
|
|
1890
|
-
};
|
|
1891
|
-
const de_AgentsInfo = (output, context) => {
|
|
1892
|
-
const retVal = (output || [])
|
|
1893
|
-
.filter((e) => e != null)
|
|
1894
|
-
.map((entry) => {
|
|
1895
|
-
if (entry === null) {
|
|
1896
|
-
return null;
|
|
1897
|
-
}
|
|
1898
|
-
return de_AgentInfo(entry, context);
|
|
1899
|
-
});
|
|
1900
|
-
return retVal;
|
|
1901
|
-
};
|
|
1902
|
-
const de_AssociateConfigurationItemsToApplicationResponse = (output, context) => {
|
|
1903
|
-
return {};
|
|
1904
|
-
};
|
|
1905
|
-
const de_AuthorizationErrorException = (output, context) => {
|
|
1906
|
-
return {
|
|
1907
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1908
|
-
};
|
|
1909
|
-
};
|
|
1910
|
-
const de_BatchDeleteImportDataError = (output, context) => {
|
|
1911
|
-
return {
|
|
1912
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
1913
|
-
errorDescription: (0, smithy_client_1.expectString)(output.errorDescription),
|
|
1914
|
-
importTaskId: (0, smithy_client_1.expectString)(output.importTaskId),
|
|
1915
|
-
};
|
|
1916
|
-
};
|
|
1917
|
-
const de_BatchDeleteImportDataErrorList = (output, context) => {
|
|
1918
|
-
const retVal = (output || [])
|
|
1919
|
-
.filter((e) => e != null)
|
|
1920
|
-
.map((entry) => {
|
|
1921
|
-
if (entry === null) {
|
|
1922
|
-
return null;
|
|
1923
|
-
}
|
|
1924
|
-
return de_BatchDeleteImportDataError(entry, context);
|
|
1925
|
-
});
|
|
1926
|
-
return retVal;
|
|
1927
|
-
};
|
|
1928
|
-
const de_BatchDeleteImportDataResponse = (output, context) => {
|
|
1929
|
-
return {
|
|
1930
|
-
errors: output.errors != null ? de_BatchDeleteImportDataErrorList(output.errors, context) : undefined,
|
|
1931
|
-
};
|
|
1932
|
-
};
|
|
1933
|
-
const de_Configuration = (output, context) => {
|
|
1934
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1935
|
-
if (value === null) {
|
|
1936
|
-
return acc;
|
|
1937
|
-
}
|
|
1938
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
1939
|
-
return acc;
|
|
1940
|
-
}, {});
|
|
1941
|
-
};
|
|
1942
|
-
const de_Configurations = (output, context) => {
|
|
1943
|
-
const retVal = (output || [])
|
|
1944
|
-
.filter((e) => e != null)
|
|
1945
|
-
.map((entry) => {
|
|
1946
|
-
if (entry === null) {
|
|
1947
|
-
return null;
|
|
1948
|
-
}
|
|
1949
|
-
return de_Configuration(entry, context);
|
|
1445
|
+
const se_StartImportTaskRequest = (input, context) => {
|
|
1446
|
+
return (0, smithy_client_1.take)(input, {
|
|
1447
|
+
clientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1448
|
+
importUrl: [],
|
|
1449
|
+
name: [],
|
|
1950
1450
|
});
|
|
1951
|
-
return retVal;
|
|
1952
1451
|
};
|
|
1953
1452
|
const de_ConfigurationTag = (output, context) => {
|
|
1954
|
-
return {
|
|
1955
|
-
configurationId:
|
|
1956
|
-
configurationType:
|
|
1957
|
-
key:
|
|
1958
|
-
timeOfCreation:
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
1962
|
-
};
|
|
1453
|
+
return (0, smithy_client_1.take)(output, {
|
|
1454
|
+
configurationId: smithy_client_1.expectString,
|
|
1455
|
+
configurationType: smithy_client_1.expectString,
|
|
1456
|
+
key: smithy_client_1.expectString,
|
|
1457
|
+
timeOfCreation: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1458
|
+
value: smithy_client_1.expectString,
|
|
1459
|
+
});
|
|
1963
1460
|
};
|
|
1964
1461
|
const de_ConfigurationTagSet = (output, context) => {
|
|
1965
1462
|
const retVal = (output || [])
|
|
1966
1463
|
.filter((e) => e != null)
|
|
1967
1464
|
.map((entry) => {
|
|
1968
|
-
if (entry === null) {
|
|
1969
|
-
return null;
|
|
1970
|
-
}
|
|
1971
1465
|
return de_ConfigurationTag(entry, context);
|
|
1972
1466
|
});
|
|
1973
1467
|
return retVal;
|
|
1974
1468
|
};
|
|
1975
|
-
const de_ConflictErrorException = (output, context) => {
|
|
1976
|
-
return {
|
|
1977
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
1978
|
-
};
|
|
1979
|
-
};
|
|
1980
1469
|
const de_ContinuousExportDescription = (output, context) => {
|
|
1981
|
-
return {
|
|
1982
|
-
dataSource:
|
|
1983
|
-
exportId:
|
|
1984
|
-
s3Bucket:
|
|
1985
|
-
schemaStorageConfig:
|
|
1986
|
-
startTime:
|
|
1987
|
-
status:
|
|
1988
|
-
statusDetail:
|
|
1989
|
-
stopTime:
|
|
1990
|
-
};
|
|
1470
|
+
return (0, smithy_client_1.take)(output, {
|
|
1471
|
+
dataSource: smithy_client_1.expectString,
|
|
1472
|
+
exportId: smithy_client_1.expectString,
|
|
1473
|
+
s3Bucket: smithy_client_1.expectString,
|
|
1474
|
+
schemaStorageConfig: smithy_client_1._json,
|
|
1475
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1476
|
+
status: smithy_client_1.expectString,
|
|
1477
|
+
statusDetail: smithy_client_1.expectString,
|
|
1478
|
+
stopTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1479
|
+
});
|
|
1991
1480
|
};
|
|
1992
1481
|
const de_ContinuousExportDescriptions = (output, context) => {
|
|
1993
1482
|
const retVal = (output || [])
|
|
1994
1483
|
.filter((e) => e != null)
|
|
1995
1484
|
.map((entry) => {
|
|
1996
|
-
if (entry === null) {
|
|
1997
|
-
return null;
|
|
1998
|
-
}
|
|
1999
1485
|
return de_ContinuousExportDescription(entry, context);
|
|
2000
1486
|
});
|
|
2001
1487
|
return retVal;
|
|
2002
1488
|
};
|
|
2003
|
-
const de_CreateApplicationResponse = (output, context) => {
|
|
2004
|
-
return {
|
|
2005
|
-
configurationId: (0, smithy_client_1.expectString)(output.configurationId),
|
|
2006
|
-
};
|
|
2007
|
-
};
|
|
2008
|
-
const de_CreateTagsResponse = (output, context) => {
|
|
2009
|
-
return {};
|
|
2010
|
-
};
|
|
2011
|
-
const de_CustomerAgentInfo = (output, context) => {
|
|
2012
|
-
return {
|
|
2013
|
-
activeAgents: (0, smithy_client_1.expectInt32)(output.activeAgents),
|
|
2014
|
-
blackListedAgents: (0, smithy_client_1.expectInt32)(output.blackListedAgents),
|
|
2015
|
-
healthyAgents: (0, smithy_client_1.expectInt32)(output.healthyAgents),
|
|
2016
|
-
shutdownAgents: (0, smithy_client_1.expectInt32)(output.shutdownAgents),
|
|
2017
|
-
totalAgents: (0, smithy_client_1.expectInt32)(output.totalAgents),
|
|
2018
|
-
unhealthyAgents: (0, smithy_client_1.expectInt32)(output.unhealthyAgents),
|
|
2019
|
-
unknownAgents: (0, smithy_client_1.expectInt32)(output.unknownAgents),
|
|
2020
|
-
};
|
|
2021
|
-
};
|
|
2022
|
-
const de_CustomerAgentlessCollectorInfo = (output, context) => {
|
|
2023
|
-
return {
|
|
2024
|
-
activeAgentlessCollectors: (0, smithy_client_1.expectInt32)(output.activeAgentlessCollectors),
|
|
2025
|
-
denyListedAgentlessCollectors: (0, smithy_client_1.expectInt32)(output.denyListedAgentlessCollectors),
|
|
2026
|
-
healthyAgentlessCollectors: (0, smithy_client_1.expectInt32)(output.healthyAgentlessCollectors),
|
|
2027
|
-
shutdownAgentlessCollectors: (0, smithy_client_1.expectInt32)(output.shutdownAgentlessCollectors),
|
|
2028
|
-
totalAgentlessCollectors: (0, smithy_client_1.expectInt32)(output.totalAgentlessCollectors),
|
|
2029
|
-
unhealthyAgentlessCollectors: (0, smithy_client_1.expectInt32)(output.unhealthyAgentlessCollectors),
|
|
2030
|
-
unknownAgentlessCollectors: (0, smithy_client_1.expectInt32)(output.unknownAgentlessCollectors),
|
|
2031
|
-
};
|
|
2032
|
-
};
|
|
2033
|
-
const de_CustomerConnectorInfo = (output, context) => {
|
|
2034
|
-
return {
|
|
2035
|
-
activeConnectors: (0, smithy_client_1.expectInt32)(output.activeConnectors),
|
|
2036
|
-
blackListedConnectors: (0, smithy_client_1.expectInt32)(output.blackListedConnectors),
|
|
2037
|
-
healthyConnectors: (0, smithy_client_1.expectInt32)(output.healthyConnectors),
|
|
2038
|
-
shutdownConnectors: (0, smithy_client_1.expectInt32)(output.shutdownConnectors),
|
|
2039
|
-
totalConnectors: (0, smithy_client_1.expectInt32)(output.totalConnectors),
|
|
2040
|
-
unhealthyConnectors: (0, smithy_client_1.expectInt32)(output.unhealthyConnectors),
|
|
2041
|
-
unknownConnectors: (0, smithy_client_1.expectInt32)(output.unknownConnectors),
|
|
2042
|
-
};
|
|
2043
|
-
};
|
|
2044
|
-
const de_CustomerMeCollectorInfo = (output, context) => {
|
|
2045
|
-
return {
|
|
2046
|
-
activeMeCollectors: (0, smithy_client_1.expectInt32)(output.activeMeCollectors),
|
|
2047
|
-
denyListedMeCollectors: (0, smithy_client_1.expectInt32)(output.denyListedMeCollectors),
|
|
2048
|
-
healthyMeCollectors: (0, smithy_client_1.expectInt32)(output.healthyMeCollectors),
|
|
2049
|
-
shutdownMeCollectors: (0, smithy_client_1.expectInt32)(output.shutdownMeCollectors),
|
|
2050
|
-
totalMeCollectors: (0, smithy_client_1.expectInt32)(output.totalMeCollectors),
|
|
2051
|
-
unhealthyMeCollectors: (0, smithy_client_1.expectInt32)(output.unhealthyMeCollectors),
|
|
2052
|
-
unknownMeCollectors: (0, smithy_client_1.expectInt32)(output.unknownMeCollectors),
|
|
2053
|
-
};
|
|
2054
|
-
};
|
|
2055
|
-
const de_DeleteApplicationsResponse = (output, context) => {
|
|
2056
|
-
return {};
|
|
2057
|
-
};
|
|
2058
|
-
const de_DeleteTagsResponse = (output, context) => {
|
|
2059
|
-
return {};
|
|
2060
|
-
};
|
|
2061
|
-
const de_DescribeAgentsResponse = (output, context) => {
|
|
2062
|
-
return {
|
|
2063
|
-
agentsInfo: output.agentsInfo != null ? de_AgentsInfo(output.agentsInfo, context) : undefined,
|
|
2064
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2065
|
-
};
|
|
2066
|
-
};
|
|
2067
|
-
const de_DescribeConfigurationsAttribute = (output, context) => {
|
|
2068
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2069
|
-
if (value === null) {
|
|
2070
|
-
return acc;
|
|
2071
|
-
}
|
|
2072
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2073
|
-
return acc;
|
|
2074
|
-
}, {});
|
|
2075
|
-
};
|
|
2076
|
-
const de_DescribeConfigurationsAttributes = (output, context) => {
|
|
2077
|
-
const retVal = (output || [])
|
|
2078
|
-
.filter((e) => e != null)
|
|
2079
|
-
.map((entry) => {
|
|
2080
|
-
if (entry === null) {
|
|
2081
|
-
return null;
|
|
2082
|
-
}
|
|
2083
|
-
return de_DescribeConfigurationsAttribute(entry, context);
|
|
2084
|
-
});
|
|
2085
|
-
return retVal;
|
|
2086
|
-
};
|
|
2087
|
-
const de_DescribeConfigurationsResponse = (output, context) => {
|
|
2088
|
-
return {
|
|
2089
|
-
configurations: output.configurations != null ? de_DescribeConfigurationsAttributes(output.configurations, context) : undefined,
|
|
2090
|
-
};
|
|
2091
|
-
};
|
|
2092
1489
|
const de_DescribeContinuousExportsResponse = (output, context) => {
|
|
2093
|
-
return {
|
|
2094
|
-
descriptions:
|
|
2095
|
-
nextToken:
|
|
2096
|
-
};
|
|
1490
|
+
return (0, smithy_client_1.take)(output, {
|
|
1491
|
+
descriptions: (_) => de_ContinuousExportDescriptions(_, context),
|
|
1492
|
+
nextToken: smithy_client_1.expectString,
|
|
1493
|
+
});
|
|
2097
1494
|
};
|
|
2098
1495
|
const de_DescribeExportConfigurationsResponse = (output, context) => {
|
|
2099
|
-
return {
|
|
2100
|
-
exportsInfo:
|
|
2101
|
-
nextToken:
|
|
2102
|
-
};
|
|
1496
|
+
return (0, smithy_client_1.take)(output, {
|
|
1497
|
+
exportsInfo: (_) => de_ExportsInfo(_, context),
|
|
1498
|
+
nextToken: smithy_client_1.expectString,
|
|
1499
|
+
});
|
|
2103
1500
|
};
|
|
2104
1501
|
const de_DescribeExportTasksResponse = (output, context) => {
|
|
2105
|
-
return {
|
|
2106
|
-
exportsInfo:
|
|
2107
|
-
nextToken:
|
|
2108
|
-
};
|
|
1502
|
+
return (0, smithy_client_1.take)(output, {
|
|
1503
|
+
exportsInfo: (_) => de_ExportsInfo(_, context),
|
|
1504
|
+
nextToken: smithy_client_1.expectString,
|
|
1505
|
+
});
|
|
2109
1506
|
};
|
|
2110
1507
|
const de_DescribeImportTasksResponse = (output, context) => {
|
|
2111
|
-
return {
|
|
2112
|
-
nextToken:
|
|
2113
|
-
tasks:
|
|
2114
|
-
};
|
|
1508
|
+
return (0, smithy_client_1.take)(output, {
|
|
1509
|
+
nextToken: smithy_client_1.expectString,
|
|
1510
|
+
tasks: (_) => de_ImportTaskList(_, context),
|
|
1511
|
+
});
|
|
2115
1512
|
};
|
|
2116
1513
|
const de_DescribeTagsResponse = (output, context) => {
|
|
2117
|
-
return {
|
|
2118
|
-
nextToken:
|
|
2119
|
-
tags:
|
|
2120
|
-
};
|
|
2121
|
-
};
|
|
2122
|
-
const de_DisassociateConfigurationItemsFromApplicationResponse = (output, context) => {
|
|
2123
|
-
return {};
|
|
2124
|
-
};
|
|
2125
|
-
const de_ExportConfigurationsResponse = (output, context) => {
|
|
2126
|
-
return {
|
|
2127
|
-
exportId: (0, smithy_client_1.expectString)(output.exportId),
|
|
2128
|
-
};
|
|
1514
|
+
return (0, smithy_client_1.take)(output, {
|
|
1515
|
+
nextToken: smithy_client_1.expectString,
|
|
1516
|
+
tags: (_) => de_ConfigurationTagSet(_, context),
|
|
1517
|
+
});
|
|
2129
1518
|
};
|
|
2130
1519
|
const de_ExportInfo = (output, context) => {
|
|
2131
|
-
return {
|
|
2132
|
-
configurationsDownloadUrl:
|
|
2133
|
-
exportId:
|
|
2134
|
-
exportRequestTime:
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
: undefined,
|
|
2142
|
-
requestedStartTime: output.requestedStartTime != null
|
|
2143
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.requestedStartTime)))
|
|
2144
|
-
: undefined,
|
|
2145
|
-
statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
|
|
2146
|
-
};
|
|
1520
|
+
return (0, smithy_client_1.take)(output, {
|
|
1521
|
+
configurationsDownloadUrl: smithy_client_1.expectString,
|
|
1522
|
+
exportId: smithy_client_1.expectString,
|
|
1523
|
+
exportRequestTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1524
|
+
exportStatus: smithy_client_1.expectString,
|
|
1525
|
+
isTruncated: smithy_client_1.expectBoolean,
|
|
1526
|
+
requestedEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1527
|
+
requestedStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1528
|
+
statusMessage: smithy_client_1.expectString,
|
|
1529
|
+
});
|
|
2147
1530
|
};
|
|
2148
1531
|
const de_ExportsInfo = (output, context) => {
|
|
2149
1532
|
const retVal = (output || [])
|
|
2150
1533
|
.filter((e) => e != null)
|
|
2151
1534
|
.map((entry) => {
|
|
2152
|
-
if (entry === null) {
|
|
2153
|
-
return null;
|
|
2154
|
-
}
|
|
2155
1535
|
return de_ExportInfo(entry, context);
|
|
2156
1536
|
});
|
|
2157
1537
|
return retVal;
|
|
2158
1538
|
};
|
|
2159
|
-
const de_GetDiscoverySummaryResponse = (output, context) => {
|
|
2160
|
-
return {
|
|
2161
|
-
agentSummary: output.agentSummary != null ? de_CustomerAgentInfo(output.agentSummary, context) : undefined,
|
|
2162
|
-
agentlessCollectorSummary: output.agentlessCollectorSummary != null
|
|
2163
|
-
? de_CustomerAgentlessCollectorInfo(output.agentlessCollectorSummary, context)
|
|
2164
|
-
: undefined,
|
|
2165
|
-
applications: (0, smithy_client_1.expectLong)(output.applications),
|
|
2166
|
-
connectorSummary: output.connectorSummary != null ? de_CustomerConnectorInfo(output.connectorSummary, context) : undefined,
|
|
2167
|
-
meCollectorSummary: output.meCollectorSummary != null ? de_CustomerMeCollectorInfo(output.meCollectorSummary, context) : undefined,
|
|
2168
|
-
servers: (0, smithy_client_1.expectLong)(output.servers),
|
|
2169
|
-
serversMappedToApplications: (0, smithy_client_1.expectLong)(output.serversMappedToApplications),
|
|
2170
|
-
serversMappedtoTags: (0, smithy_client_1.expectLong)(output.serversMappedtoTags),
|
|
2171
|
-
};
|
|
2172
|
-
};
|
|
2173
|
-
const de_HomeRegionNotSetException = (output, context) => {
|
|
2174
|
-
return {
|
|
2175
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2176
|
-
};
|
|
2177
|
-
};
|
|
2178
1539
|
const de_ImportTask = (output, context) => {
|
|
2179
|
-
return {
|
|
2180
|
-
applicationImportFailure:
|
|
2181
|
-
applicationImportSuccess:
|
|
2182
|
-
clientRequestToken:
|
|
2183
|
-
errorsAndFailedEntriesZip:
|
|
2184
|
-
importCompletionTime:
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
importUrl: (0, smithy_client_1.expectString)(output.importUrl),
|
|
2195
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2196
|
-
serverImportFailure: (0, smithy_client_1.expectInt32)(output.serverImportFailure),
|
|
2197
|
-
serverImportSuccess: (0, smithy_client_1.expectInt32)(output.serverImportSuccess),
|
|
2198
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2199
|
-
};
|
|
1540
|
+
return (0, smithy_client_1.take)(output, {
|
|
1541
|
+
applicationImportFailure: smithy_client_1.expectInt32,
|
|
1542
|
+
applicationImportSuccess: smithy_client_1.expectInt32,
|
|
1543
|
+
clientRequestToken: smithy_client_1.expectString,
|
|
1544
|
+
errorsAndFailedEntriesZip: smithy_client_1.expectString,
|
|
1545
|
+
importCompletionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1546
|
+
importDeletedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1547
|
+
importRequestTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1548
|
+
importTaskId: smithy_client_1.expectString,
|
|
1549
|
+
importUrl: smithy_client_1.expectString,
|
|
1550
|
+
name: smithy_client_1.expectString,
|
|
1551
|
+
serverImportFailure: smithy_client_1.expectInt32,
|
|
1552
|
+
serverImportSuccess: smithy_client_1.expectInt32,
|
|
1553
|
+
status: smithy_client_1.expectString,
|
|
1554
|
+
});
|
|
2200
1555
|
};
|
|
2201
1556
|
const de_ImportTaskList = (output, context) => {
|
|
2202
1557
|
const retVal = (output || [])
|
|
2203
1558
|
.filter((e) => e != null)
|
|
2204
1559
|
.map((entry) => {
|
|
2205
|
-
if (entry === null) {
|
|
2206
|
-
return null;
|
|
2207
|
-
}
|
|
2208
1560
|
return de_ImportTask(entry, context);
|
|
2209
1561
|
});
|
|
2210
1562
|
return retVal;
|
|
2211
1563
|
};
|
|
2212
|
-
const de_InvalidParameterException = (output, context) => {
|
|
2213
|
-
return {
|
|
2214
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2215
|
-
};
|
|
2216
|
-
};
|
|
2217
|
-
const de_InvalidParameterValueException = (output, context) => {
|
|
2218
|
-
return {
|
|
2219
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2220
|
-
};
|
|
2221
|
-
};
|
|
2222
|
-
const de_ListConfigurationsResponse = (output, context) => {
|
|
2223
|
-
return {
|
|
2224
|
-
configurations: output.configurations != null ? de_Configurations(output.configurations, context) : undefined,
|
|
2225
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2226
|
-
};
|
|
2227
|
-
};
|
|
2228
|
-
const de_ListServerNeighborsResponse = (output, context) => {
|
|
2229
|
-
return {
|
|
2230
|
-
knownDependencyCount: (0, smithy_client_1.expectLong)(output.knownDependencyCount),
|
|
2231
|
-
neighbors: output.neighbors != null ? de_NeighborDetailsList(output.neighbors, context) : undefined,
|
|
2232
|
-
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2233
|
-
};
|
|
2234
|
-
};
|
|
2235
|
-
const de_NeighborConnectionDetail = (output, context) => {
|
|
2236
|
-
return {
|
|
2237
|
-
connectionsCount: (0, smithy_client_1.expectLong)(output.connectionsCount),
|
|
2238
|
-
destinationPort: (0, smithy_client_1.expectInt32)(output.destinationPort),
|
|
2239
|
-
destinationServerId: (0, smithy_client_1.expectString)(output.destinationServerId),
|
|
2240
|
-
sourceServerId: (0, smithy_client_1.expectString)(output.sourceServerId),
|
|
2241
|
-
transportProtocol: (0, smithy_client_1.expectString)(output.transportProtocol),
|
|
2242
|
-
};
|
|
2243
|
-
};
|
|
2244
|
-
const de_NeighborDetailsList = (output, context) => {
|
|
2245
|
-
const retVal = (output || [])
|
|
2246
|
-
.filter((e) => e != null)
|
|
2247
|
-
.map((entry) => {
|
|
2248
|
-
if (entry === null) {
|
|
2249
|
-
return null;
|
|
2250
|
-
}
|
|
2251
|
-
return de_NeighborConnectionDetail(entry, context);
|
|
2252
|
-
});
|
|
2253
|
-
return retVal;
|
|
2254
|
-
};
|
|
2255
|
-
const de_OperationNotPermittedException = (output, context) => {
|
|
2256
|
-
return {
|
|
2257
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2258
|
-
};
|
|
2259
|
-
};
|
|
2260
|
-
const de_ResourceInUseException = (output, context) => {
|
|
2261
|
-
return {
|
|
2262
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2263
|
-
};
|
|
2264
|
-
};
|
|
2265
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
2266
|
-
return {
|
|
2267
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2268
|
-
};
|
|
2269
|
-
};
|
|
2270
|
-
const de_SchemaStorageConfig = (output, context) => {
|
|
2271
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2272
|
-
if (value === null) {
|
|
2273
|
-
return acc;
|
|
2274
|
-
}
|
|
2275
|
-
acc[key] = (0, smithy_client_1.expectString)(value);
|
|
2276
|
-
return acc;
|
|
2277
|
-
}, {});
|
|
2278
|
-
};
|
|
2279
|
-
const de_ServerInternalErrorException = (output, context) => {
|
|
2280
|
-
return {
|
|
2281
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2282
|
-
};
|
|
2283
|
-
};
|
|
2284
1564
|
const de_StartContinuousExportResponse = (output, context) => {
|
|
2285
|
-
return {
|
|
2286
|
-
dataSource:
|
|
2287
|
-
exportId:
|
|
2288
|
-
s3Bucket:
|
|
2289
|
-
schemaStorageConfig:
|
|
2290
|
-
startTime:
|
|
2291
|
-
};
|
|
2292
|
-
};
|
|
2293
|
-
const de_StartDataCollectionByAgentIdsResponse = (output, context) => {
|
|
2294
|
-
return {
|
|
2295
|
-
agentsConfigurationStatus: output.agentsConfigurationStatus != null
|
|
2296
|
-
? de_AgentConfigurationStatusList(output.agentsConfigurationStatus, context)
|
|
2297
|
-
: undefined,
|
|
2298
|
-
};
|
|
2299
|
-
};
|
|
2300
|
-
const de_StartExportTaskResponse = (output, context) => {
|
|
2301
|
-
return {
|
|
2302
|
-
exportId: (0, smithy_client_1.expectString)(output.exportId),
|
|
2303
|
-
};
|
|
1565
|
+
return (0, smithy_client_1.take)(output, {
|
|
1566
|
+
dataSource: smithy_client_1.expectString,
|
|
1567
|
+
exportId: smithy_client_1.expectString,
|
|
1568
|
+
s3Bucket: smithy_client_1.expectString,
|
|
1569
|
+
schemaStorageConfig: smithy_client_1._json,
|
|
1570
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1571
|
+
});
|
|
2304
1572
|
};
|
|
2305
1573
|
const de_StartImportTaskResponse = (output, context) => {
|
|
2306
|
-
return {
|
|
2307
|
-
task:
|
|
2308
|
-
};
|
|
1574
|
+
return (0, smithy_client_1.take)(output, {
|
|
1575
|
+
task: (_) => de_ImportTask(_, context),
|
|
1576
|
+
});
|
|
2309
1577
|
};
|
|
2310
1578
|
const de_StopContinuousExportResponse = (output, context) => {
|
|
2311
|
-
return {
|
|
2312
|
-
startTime:
|
|
2313
|
-
stopTime:
|
|
2314
|
-
};
|
|
2315
|
-
};
|
|
2316
|
-
const de_StopDataCollectionByAgentIdsResponse = (output, context) => {
|
|
2317
|
-
return {
|
|
2318
|
-
agentsConfigurationStatus: output.agentsConfigurationStatus != null
|
|
2319
|
-
? de_AgentConfigurationStatusList(output.agentsConfigurationStatus, context)
|
|
2320
|
-
: undefined,
|
|
2321
|
-
};
|
|
2322
|
-
};
|
|
2323
|
-
const de_UpdateApplicationResponse = (output, context) => {
|
|
2324
|
-
return {};
|
|
1579
|
+
return (0, smithy_client_1.take)(output, {
|
|
1580
|
+
startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1581
|
+
stopTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1582
|
+
});
|
|
2325
1583
|
};
|
|
2326
1584
|
const deserializeMetadata = (output) => ({
|
|
2327
1585
|
httpStatusCode: output.statusCode,
|
|
@@ -2336,6 +1594,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2336
1594
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2337
1595
|
};
|
|
2338
1596
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1597
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ApplicationDiscoveryServiceServiceException_1.ApplicationDiscoveryServiceServiceException);
|
|
2339
1598
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2340
1599
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2341
1600
|
const contents = {
|
|
@@ -2354,6 +1613,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2354
1613
|
}
|
|
2355
1614
|
return new protocol_http_1.HttpRequest(contents);
|
|
2356
1615
|
};
|
|
1616
|
+
function sharedHeaders(operation) {
|
|
1617
|
+
return {
|
|
1618
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1619
|
+
"x-amz-target": `AWSPoseidonService_V2015_11_01.${operation}`,
|
|
1620
|
+
};
|
|
1621
|
+
}
|
|
2357
1622
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2358
1623
|
if (encoded.length) {
|
|
2359
1624
|
return JSON.parse(encoded);
|