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