@aws-sdk/client-application-discovery-service 3.926.0 → 3.928.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/index.js +1145 -1133
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/ApplicationDiscoveryServiceClient.js +2 -0
- package/dist-es/commands/AssociateConfigurationItemsToApplicationCommand.js +3 -9
- package/dist-es/commands/BatchDeleteAgentsCommand.js +3 -9
- package/dist-es/commands/BatchDeleteImportDataCommand.js +3 -9
- package/dist-es/commands/CreateApplicationCommand.js +3 -9
- package/dist-es/commands/CreateTagsCommand.js +3 -9
- package/dist-es/commands/DeleteApplicationsCommand.js +3 -9
- package/dist-es/commands/DeleteTagsCommand.js +3 -9
- package/dist-es/commands/DescribeAgentsCommand.js +3 -10
- package/dist-es/commands/DescribeBatchDeleteConfigurationTaskCommand.js +3 -9
- package/dist-es/commands/DescribeConfigurationsCommand.js +3 -9
- package/dist-es/commands/DescribeContinuousExportsCommand.js +3 -9
- package/dist-es/commands/DescribeExportConfigurationsCommand.js +3 -9
- package/dist-es/commands/DescribeExportTasksCommand.js +3 -9
- package/dist-es/commands/DescribeImportTasksCommand.js +3 -9
- package/dist-es/commands/DescribeTagsCommand.js +3 -9
- package/dist-es/commands/DisassociateConfigurationItemsFromApplicationCommand.js +3 -9
- package/dist-es/commands/ExportConfigurationsCommand.js +3 -9
- package/dist-es/commands/GetDiscoverySummaryCommand.js +3 -9
- package/dist-es/commands/ListConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListServerNeighborsCommand.js +3 -9
- package/dist-es/commands/StartBatchDeleteConfigurationTaskCommand.js +3 -9
- package/dist-es/commands/StartContinuousExportCommand.js +3 -9
- package/dist-es/commands/StartDataCollectionByAgentIdsCommand.js +3 -9
- package/dist-es/commands/StartExportTaskCommand.js +3 -9
- package/dist-es/commands/StartImportTaskCommand.js +3 -9
- package/dist-es/commands/StopContinuousExportCommand.js +3 -9
- package/dist-es/commands/StopDataCollectionByAgentIdsCommand.js +3 -9
- package/dist-es/commands/UpdateApplicationCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -12
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1071 -0
- package/dist-types/ApplicationDiscoveryServiceClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -12
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +158 -0
- package/dist-types/ts3.4/ApplicationDiscoveryServiceClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -7
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +163 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_1.js +0 -897
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -254
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -341
|
@@ -1,897 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { ApplicationDiscoveryServiceServiceException as __BaseException } from "../models/ApplicationDiscoveryServiceServiceException";
|
|
6
|
-
import { AuthorizationErrorException, ConflictErrorException, ExportPreferences, HomeRegionNotSetException, InvalidParameterException, InvalidParameterValueException, LimitExceededException, OperationNotPermittedException, ResourceInUseException, ResourceNotFoundException, ServerInternalErrorException, } from "../models/models_0";
|
|
7
|
-
export const se_AssociateConfigurationItemsToApplicationCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("AssociateConfigurationItemsToApplication");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(_json(input));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_BatchDeleteAgentsCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("BatchDeleteAgents");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(_json(input));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_BatchDeleteImportDataCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("BatchDeleteImportData");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(_json(input));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_CreateApplicationCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateApplication");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_CreateTagsCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateTags");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(_json(input));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_DeleteApplicationsCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("DeleteApplications");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_DeleteTagsCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeleteTags");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(_json(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_DescribeAgentsCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("DescribeAgents");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_DescribeBatchDeleteConfigurationTaskCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("DescribeBatchDeleteConfigurationTask");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_DescribeConfigurationsCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("DescribeConfigurations");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_DescribeContinuousExportsCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("DescribeContinuousExports");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_DescribeExportConfigurationsCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("DescribeExportConfigurations");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_DescribeExportTasksCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("DescribeExportTasks");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const se_DescribeImportTasksCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("DescribeImportTasks");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(_json(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
export const se_DescribeTagsCommand = async (input, context) => {
|
|
92
|
-
const headers = sharedHeaders("DescribeTags");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify(_json(input));
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
export const se_DisassociateConfigurationItemsFromApplicationCommand = async (input, context) => {
|
|
98
|
-
const headers = sharedHeaders("DisassociateConfigurationItemsFromApplication");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(_json(input));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
export const se_ExportConfigurationsCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("ExportConfigurations");
|
|
105
|
-
const body = "{}";
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_GetDiscoverySummaryCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("GetDiscoverySummary");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_ListConfigurationsCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("ListConfigurations");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_ListServerNeighborsCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("ListServerNeighbors");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_StartBatchDeleteConfigurationTaskCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("StartBatchDeleteConfigurationTask");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_StartContinuousExportCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("StartContinuousExport");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_StartDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("StartDataCollectionByAgentIds");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_StartExportTaskCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("StartExportTask");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(se_StartExportTaskRequest(input, context));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_StartImportTaskCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("StartImportTask");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(se_StartImportTaskRequest(input, context));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_StopContinuousExportCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("StopContinuousExport");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_StopDataCollectionByAgentIdsCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("StopDataCollectionByAgentIds");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("UpdateApplication");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const de_AssociateConfigurationItemsToApplicationCommand = async (output, context) => {
|
|
175
|
-
if (output.statusCode >= 300) {
|
|
176
|
-
return de_CommandError(output, context);
|
|
177
|
-
}
|
|
178
|
-
const data = await parseBody(output.body, context);
|
|
179
|
-
let contents = {};
|
|
180
|
-
contents = _json(data);
|
|
181
|
-
const response = {
|
|
182
|
-
$metadata: deserializeMetadata(output),
|
|
183
|
-
...contents,
|
|
184
|
-
};
|
|
185
|
-
return response;
|
|
186
|
-
};
|
|
187
|
-
export const de_BatchDeleteAgentsCommand = async (output, context) => {
|
|
188
|
-
if (output.statusCode >= 300) {
|
|
189
|
-
return de_CommandError(output, context);
|
|
190
|
-
}
|
|
191
|
-
const data = await parseBody(output.body, context);
|
|
192
|
-
let contents = {};
|
|
193
|
-
contents = _json(data);
|
|
194
|
-
const response = {
|
|
195
|
-
$metadata: deserializeMetadata(output),
|
|
196
|
-
...contents,
|
|
197
|
-
};
|
|
198
|
-
return response;
|
|
199
|
-
};
|
|
200
|
-
export const de_BatchDeleteImportDataCommand = async (output, context) => {
|
|
201
|
-
if (output.statusCode >= 300) {
|
|
202
|
-
return de_CommandError(output, context);
|
|
203
|
-
}
|
|
204
|
-
const data = await parseBody(output.body, context);
|
|
205
|
-
let contents = {};
|
|
206
|
-
contents = _json(data);
|
|
207
|
-
const response = {
|
|
208
|
-
$metadata: deserializeMetadata(output),
|
|
209
|
-
...contents,
|
|
210
|
-
};
|
|
211
|
-
return response;
|
|
212
|
-
};
|
|
213
|
-
export const de_CreateApplicationCommand = async (output, context) => {
|
|
214
|
-
if (output.statusCode >= 300) {
|
|
215
|
-
return de_CommandError(output, context);
|
|
216
|
-
}
|
|
217
|
-
const data = await parseBody(output.body, context);
|
|
218
|
-
let contents = {};
|
|
219
|
-
contents = _json(data);
|
|
220
|
-
const response = {
|
|
221
|
-
$metadata: deserializeMetadata(output),
|
|
222
|
-
...contents,
|
|
223
|
-
};
|
|
224
|
-
return response;
|
|
225
|
-
};
|
|
226
|
-
export const de_CreateTagsCommand = async (output, context) => {
|
|
227
|
-
if (output.statusCode >= 300) {
|
|
228
|
-
return de_CommandError(output, context);
|
|
229
|
-
}
|
|
230
|
-
const data = await parseBody(output.body, context);
|
|
231
|
-
let contents = {};
|
|
232
|
-
contents = _json(data);
|
|
233
|
-
const response = {
|
|
234
|
-
$metadata: deserializeMetadata(output),
|
|
235
|
-
...contents,
|
|
236
|
-
};
|
|
237
|
-
return response;
|
|
238
|
-
};
|
|
239
|
-
export const de_DeleteApplicationsCommand = async (output, context) => {
|
|
240
|
-
if (output.statusCode >= 300) {
|
|
241
|
-
return de_CommandError(output, context);
|
|
242
|
-
}
|
|
243
|
-
const data = await parseBody(output.body, context);
|
|
244
|
-
let contents = {};
|
|
245
|
-
contents = _json(data);
|
|
246
|
-
const response = {
|
|
247
|
-
$metadata: deserializeMetadata(output),
|
|
248
|
-
...contents,
|
|
249
|
-
};
|
|
250
|
-
return response;
|
|
251
|
-
};
|
|
252
|
-
export const de_DeleteTagsCommand = async (output, context) => {
|
|
253
|
-
if (output.statusCode >= 300) {
|
|
254
|
-
return de_CommandError(output, context);
|
|
255
|
-
}
|
|
256
|
-
const data = await parseBody(output.body, context);
|
|
257
|
-
let contents = {};
|
|
258
|
-
contents = _json(data);
|
|
259
|
-
const response = {
|
|
260
|
-
$metadata: deserializeMetadata(output),
|
|
261
|
-
...contents,
|
|
262
|
-
};
|
|
263
|
-
return response;
|
|
264
|
-
};
|
|
265
|
-
export const de_DescribeAgentsCommand = async (output, context) => {
|
|
266
|
-
if (output.statusCode >= 300) {
|
|
267
|
-
return de_CommandError(output, context);
|
|
268
|
-
}
|
|
269
|
-
const data = await parseBody(output.body, context);
|
|
270
|
-
let contents = {};
|
|
271
|
-
contents = _json(data);
|
|
272
|
-
const response = {
|
|
273
|
-
$metadata: deserializeMetadata(output),
|
|
274
|
-
...contents,
|
|
275
|
-
};
|
|
276
|
-
return response;
|
|
277
|
-
};
|
|
278
|
-
export const de_DescribeBatchDeleteConfigurationTaskCommand = async (output, context) => {
|
|
279
|
-
if (output.statusCode >= 300) {
|
|
280
|
-
return de_CommandError(output, context);
|
|
281
|
-
}
|
|
282
|
-
const data = await parseBody(output.body, context);
|
|
283
|
-
let contents = {};
|
|
284
|
-
contents = de_DescribeBatchDeleteConfigurationTaskResponse(data, context);
|
|
285
|
-
const response = {
|
|
286
|
-
$metadata: deserializeMetadata(output),
|
|
287
|
-
...contents,
|
|
288
|
-
};
|
|
289
|
-
return response;
|
|
290
|
-
};
|
|
291
|
-
export const de_DescribeConfigurationsCommand = async (output, context) => {
|
|
292
|
-
if (output.statusCode >= 300) {
|
|
293
|
-
return de_CommandError(output, context);
|
|
294
|
-
}
|
|
295
|
-
const data = await parseBody(output.body, context);
|
|
296
|
-
let contents = {};
|
|
297
|
-
contents = _json(data);
|
|
298
|
-
const response = {
|
|
299
|
-
$metadata: deserializeMetadata(output),
|
|
300
|
-
...contents,
|
|
301
|
-
};
|
|
302
|
-
return response;
|
|
303
|
-
};
|
|
304
|
-
export const de_DescribeContinuousExportsCommand = async (output, context) => {
|
|
305
|
-
if (output.statusCode >= 300) {
|
|
306
|
-
return de_CommandError(output, context);
|
|
307
|
-
}
|
|
308
|
-
const data = await parseBody(output.body, context);
|
|
309
|
-
let contents = {};
|
|
310
|
-
contents = de_DescribeContinuousExportsResponse(data, context);
|
|
311
|
-
const response = {
|
|
312
|
-
$metadata: deserializeMetadata(output),
|
|
313
|
-
...contents,
|
|
314
|
-
};
|
|
315
|
-
return response;
|
|
316
|
-
};
|
|
317
|
-
export const de_DescribeExportConfigurationsCommand = async (output, context) => {
|
|
318
|
-
if (output.statusCode >= 300) {
|
|
319
|
-
return de_CommandError(output, context);
|
|
320
|
-
}
|
|
321
|
-
const data = await parseBody(output.body, context);
|
|
322
|
-
let contents = {};
|
|
323
|
-
contents = de_DescribeExportConfigurationsResponse(data, context);
|
|
324
|
-
const response = {
|
|
325
|
-
$metadata: deserializeMetadata(output),
|
|
326
|
-
...contents,
|
|
327
|
-
};
|
|
328
|
-
return response;
|
|
329
|
-
};
|
|
330
|
-
export const de_DescribeExportTasksCommand = async (output, context) => {
|
|
331
|
-
if (output.statusCode >= 300) {
|
|
332
|
-
return de_CommandError(output, context);
|
|
333
|
-
}
|
|
334
|
-
const data = await parseBody(output.body, context);
|
|
335
|
-
let contents = {};
|
|
336
|
-
contents = de_DescribeExportTasksResponse(data, context);
|
|
337
|
-
const response = {
|
|
338
|
-
$metadata: deserializeMetadata(output),
|
|
339
|
-
...contents,
|
|
340
|
-
};
|
|
341
|
-
return response;
|
|
342
|
-
};
|
|
343
|
-
export const de_DescribeImportTasksCommand = async (output, context) => {
|
|
344
|
-
if (output.statusCode >= 300) {
|
|
345
|
-
return de_CommandError(output, context);
|
|
346
|
-
}
|
|
347
|
-
const data = await parseBody(output.body, context);
|
|
348
|
-
let contents = {};
|
|
349
|
-
contents = de_DescribeImportTasksResponse(data, context);
|
|
350
|
-
const response = {
|
|
351
|
-
$metadata: deserializeMetadata(output),
|
|
352
|
-
...contents,
|
|
353
|
-
};
|
|
354
|
-
return response;
|
|
355
|
-
};
|
|
356
|
-
export const de_DescribeTagsCommand = async (output, context) => {
|
|
357
|
-
if (output.statusCode >= 300) {
|
|
358
|
-
return de_CommandError(output, context);
|
|
359
|
-
}
|
|
360
|
-
const data = await parseBody(output.body, context);
|
|
361
|
-
let contents = {};
|
|
362
|
-
contents = de_DescribeTagsResponse(data, context);
|
|
363
|
-
const response = {
|
|
364
|
-
$metadata: deserializeMetadata(output),
|
|
365
|
-
...contents,
|
|
366
|
-
};
|
|
367
|
-
return response;
|
|
368
|
-
};
|
|
369
|
-
export const de_DisassociateConfigurationItemsFromApplicationCommand = async (output, context) => {
|
|
370
|
-
if (output.statusCode >= 300) {
|
|
371
|
-
return de_CommandError(output, context);
|
|
372
|
-
}
|
|
373
|
-
const data = await parseBody(output.body, context);
|
|
374
|
-
let contents = {};
|
|
375
|
-
contents = _json(data);
|
|
376
|
-
const response = {
|
|
377
|
-
$metadata: deserializeMetadata(output),
|
|
378
|
-
...contents,
|
|
379
|
-
};
|
|
380
|
-
return response;
|
|
381
|
-
};
|
|
382
|
-
export const de_ExportConfigurationsCommand = async (output, context) => {
|
|
383
|
-
if (output.statusCode >= 300) {
|
|
384
|
-
return de_CommandError(output, context);
|
|
385
|
-
}
|
|
386
|
-
const data = await parseBody(output.body, context);
|
|
387
|
-
let contents = {};
|
|
388
|
-
contents = _json(data);
|
|
389
|
-
const response = {
|
|
390
|
-
$metadata: deserializeMetadata(output),
|
|
391
|
-
...contents,
|
|
392
|
-
};
|
|
393
|
-
return response;
|
|
394
|
-
};
|
|
395
|
-
export const de_GetDiscoverySummaryCommand = async (output, context) => {
|
|
396
|
-
if (output.statusCode >= 300) {
|
|
397
|
-
return de_CommandError(output, context);
|
|
398
|
-
}
|
|
399
|
-
const data = await parseBody(output.body, context);
|
|
400
|
-
let contents = {};
|
|
401
|
-
contents = _json(data);
|
|
402
|
-
const response = {
|
|
403
|
-
$metadata: deserializeMetadata(output),
|
|
404
|
-
...contents,
|
|
405
|
-
};
|
|
406
|
-
return response;
|
|
407
|
-
};
|
|
408
|
-
export const de_ListConfigurationsCommand = async (output, context) => {
|
|
409
|
-
if (output.statusCode >= 300) {
|
|
410
|
-
return de_CommandError(output, context);
|
|
411
|
-
}
|
|
412
|
-
const data = await parseBody(output.body, context);
|
|
413
|
-
let contents = {};
|
|
414
|
-
contents = _json(data);
|
|
415
|
-
const response = {
|
|
416
|
-
$metadata: deserializeMetadata(output),
|
|
417
|
-
...contents,
|
|
418
|
-
};
|
|
419
|
-
return response;
|
|
420
|
-
};
|
|
421
|
-
export const de_ListServerNeighborsCommand = async (output, context) => {
|
|
422
|
-
if (output.statusCode >= 300) {
|
|
423
|
-
return de_CommandError(output, context);
|
|
424
|
-
}
|
|
425
|
-
const data = await parseBody(output.body, context);
|
|
426
|
-
let contents = {};
|
|
427
|
-
contents = _json(data);
|
|
428
|
-
const response = {
|
|
429
|
-
$metadata: deserializeMetadata(output),
|
|
430
|
-
...contents,
|
|
431
|
-
};
|
|
432
|
-
return response;
|
|
433
|
-
};
|
|
434
|
-
export const de_StartBatchDeleteConfigurationTaskCommand = async (output, context) => {
|
|
435
|
-
if (output.statusCode >= 300) {
|
|
436
|
-
return de_CommandError(output, context);
|
|
437
|
-
}
|
|
438
|
-
const data = await parseBody(output.body, context);
|
|
439
|
-
let contents = {};
|
|
440
|
-
contents = _json(data);
|
|
441
|
-
const response = {
|
|
442
|
-
$metadata: deserializeMetadata(output),
|
|
443
|
-
...contents,
|
|
444
|
-
};
|
|
445
|
-
return response;
|
|
446
|
-
};
|
|
447
|
-
export const de_StartContinuousExportCommand = async (output, context) => {
|
|
448
|
-
if (output.statusCode >= 300) {
|
|
449
|
-
return de_CommandError(output, context);
|
|
450
|
-
}
|
|
451
|
-
const data = await parseBody(output.body, context);
|
|
452
|
-
let contents = {};
|
|
453
|
-
contents = de_StartContinuousExportResponse(data, context);
|
|
454
|
-
const response = {
|
|
455
|
-
$metadata: deserializeMetadata(output),
|
|
456
|
-
...contents,
|
|
457
|
-
};
|
|
458
|
-
return response;
|
|
459
|
-
};
|
|
460
|
-
export const de_StartDataCollectionByAgentIdsCommand = async (output, context) => {
|
|
461
|
-
if (output.statusCode >= 300) {
|
|
462
|
-
return de_CommandError(output, context);
|
|
463
|
-
}
|
|
464
|
-
const data = await parseBody(output.body, context);
|
|
465
|
-
let contents = {};
|
|
466
|
-
contents = _json(data);
|
|
467
|
-
const response = {
|
|
468
|
-
$metadata: deserializeMetadata(output),
|
|
469
|
-
...contents,
|
|
470
|
-
};
|
|
471
|
-
return response;
|
|
472
|
-
};
|
|
473
|
-
export const de_StartExportTaskCommand = async (output, context) => {
|
|
474
|
-
if (output.statusCode >= 300) {
|
|
475
|
-
return de_CommandError(output, context);
|
|
476
|
-
}
|
|
477
|
-
const data = await parseBody(output.body, context);
|
|
478
|
-
let contents = {};
|
|
479
|
-
contents = _json(data);
|
|
480
|
-
const response = {
|
|
481
|
-
$metadata: deserializeMetadata(output),
|
|
482
|
-
...contents,
|
|
483
|
-
};
|
|
484
|
-
return response;
|
|
485
|
-
};
|
|
486
|
-
export const de_StartImportTaskCommand = async (output, context) => {
|
|
487
|
-
if (output.statusCode >= 300) {
|
|
488
|
-
return de_CommandError(output, context);
|
|
489
|
-
}
|
|
490
|
-
const data = await parseBody(output.body, context);
|
|
491
|
-
let contents = {};
|
|
492
|
-
contents = de_StartImportTaskResponse(data, context);
|
|
493
|
-
const response = {
|
|
494
|
-
$metadata: deserializeMetadata(output),
|
|
495
|
-
...contents,
|
|
496
|
-
};
|
|
497
|
-
return response;
|
|
498
|
-
};
|
|
499
|
-
export const de_StopContinuousExportCommand = async (output, context) => {
|
|
500
|
-
if (output.statusCode >= 300) {
|
|
501
|
-
return de_CommandError(output, context);
|
|
502
|
-
}
|
|
503
|
-
const data = await parseBody(output.body, context);
|
|
504
|
-
let contents = {};
|
|
505
|
-
contents = de_StopContinuousExportResponse(data, context);
|
|
506
|
-
const response = {
|
|
507
|
-
$metadata: deserializeMetadata(output),
|
|
508
|
-
...contents,
|
|
509
|
-
};
|
|
510
|
-
return response;
|
|
511
|
-
};
|
|
512
|
-
export const de_StopDataCollectionByAgentIdsCommand = async (output, context) => {
|
|
513
|
-
if (output.statusCode >= 300) {
|
|
514
|
-
return de_CommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const data = await parseBody(output.body, context);
|
|
517
|
-
let contents = {};
|
|
518
|
-
contents = _json(data);
|
|
519
|
-
const response = {
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
...contents,
|
|
522
|
-
};
|
|
523
|
-
return response;
|
|
524
|
-
};
|
|
525
|
-
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
526
|
-
if (output.statusCode >= 300) {
|
|
527
|
-
return de_CommandError(output, context);
|
|
528
|
-
}
|
|
529
|
-
const data = await parseBody(output.body, context);
|
|
530
|
-
let contents = {};
|
|
531
|
-
contents = _json(data);
|
|
532
|
-
const response = {
|
|
533
|
-
$metadata: deserializeMetadata(output),
|
|
534
|
-
...contents,
|
|
535
|
-
};
|
|
536
|
-
return response;
|
|
537
|
-
};
|
|
538
|
-
const de_CommandError = async (output, context) => {
|
|
539
|
-
const parsedOutput = {
|
|
540
|
-
...output,
|
|
541
|
-
body: await parseErrorBody(output.body, context),
|
|
542
|
-
};
|
|
543
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
544
|
-
switch (errorCode) {
|
|
545
|
-
case "AuthorizationErrorException":
|
|
546
|
-
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
547
|
-
throw await de_AuthorizationErrorExceptionRes(parsedOutput, context);
|
|
548
|
-
case "HomeRegionNotSetException":
|
|
549
|
-
case "com.amazonaws.applicationdiscoveryservice#HomeRegionNotSetException":
|
|
550
|
-
throw await de_HomeRegionNotSetExceptionRes(parsedOutput, context);
|
|
551
|
-
case "InvalidParameterException":
|
|
552
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterException":
|
|
553
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
554
|
-
case "InvalidParameterValueException":
|
|
555
|
-
case "com.amazonaws.applicationdiscoveryservice#InvalidParameterValueException":
|
|
556
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
557
|
-
case "ServerInternalErrorException":
|
|
558
|
-
case "com.amazonaws.applicationdiscoveryservice#ServerInternalErrorException":
|
|
559
|
-
throw await de_ServerInternalErrorExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ResourceNotFoundException":
|
|
561
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceNotFoundException":
|
|
562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
563
|
-
case "OperationNotPermittedException":
|
|
564
|
-
case "com.amazonaws.applicationdiscoveryservice#OperationNotPermittedException":
|
|
565
|
-
throw await de_OperationNotPermittedExceptionRes(parsedOutput, context);
|
|
566
|
-
case "LimitExceededException":
|
|
567
|
-
case "com.amazonaws.applicationdiscoveryservice#LimitExceededException":
|
|
568
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ConflictErrorException":
|
|
570
|
-
case "com.amazonaws.applicationdiscoveryservice#ConflictErrorException":
|
|
571
|
-
throw await de_ConflictErrorExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ResourceInUseException":
|
|
573
|
-
case "com.amazonaws.applicationdiscoveryservice#ResourceInUseException":
|
|
574
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
575
|
-
default:
|
|
576
|
-
const parsedBody = parsedOutput.body;
|
|
577
|
-
return throwDefaultError({
|
|
578
|
-
output,
|
|
579
|
-
parsedBody,
|
|
580
|
-
errorCode,
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
};
|
|
584
|
-
const de_AuthorizationErrorExceptionRes = async (parsedOutput, context) => {
|
|
585
|
-
const body = parsedOutput.body;
|
|
586
|
-
const deserialized = _json(body);
|
|
587
|
-
const exception = new AuthorizationErrorException({
|
|
588
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
589
|
-
...deserialized,
|
|
590
|
-
});
|
|
591
|
-
return __decorateServiceException(exception, body);
|
|
592
|
-
};
|
|
593
|
-
const de_ConflictErrorExceptionRes = async (parsedOutput, context) => {
|
|
594
|
-
const body = parsedOutput.body;
|
|
595
|
-
const deserialized = _json(body);
|
|
596
|
-
const exception = new ConflictErrorException({
|
|
597
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
598
|
-
...deserialized,
|
|
599
|
-
});
|
|
600
|
-
return __decorateServiceException(exception, body);
|
|
601
|
-
};
|
|
602
|
-
const de_HomeRegionNotSetExceptionRes = async (parsedOutput, context) => {
|
|
603
|
-
const body = parsedOutput.body;
|
|
604
|
-
const deserialized = _json(body);
|
|
605
|
-
const exception = new HomeRegionNotSetException({
|
|
606
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
607
|
-
...deserialized,
|
|
608
|
-
});
|
|
609
|
-
return __decorateServiceException(exception, body);
|
|
610
|
-
};
|
|
611
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
612
|
-
const body = parsedOutput.body;
|
|
613
|
-
const deserialized = _json(body);
|
|
614
|
-
const exception = new InvalidParameterException({
|
|
615
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
616
|
-
...deserialized,
|
|
617
|
-
});
|
|
618
|
-
return __decorateServiceException(exception, body);
|
|
619
|
-
};
|
|
620
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
621
|
-
const body = parsedOutput.body;
|
|
622
|
-
const deserialized = _json(body);
|
|
623
|
-
const exception = new InvalidParameterValueException({
|
|
624
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
625
|
-
...deserialized,
|
|
626
|
-
});
|
|
627
|
-
return __decorateServiceException(exception, body);
|
|
628
|
-
};
|
|
629
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
630
|
-
const body = parsedOutput.body;
|
|
631
|
-
const deserialized = _json(body);
|
|
632
|
-
const exception = new LimitExceededException({
|
|
633
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
634
|
-
...deserialized,
|
|
635
|
-
});
|
|
636
|
-
return __decorateServiceException(exception, body);
|
|
637
|
-
};
|
|
638
|
-
const de_OperationNotPermittedExceptionRes = async (parsedOutput, context) => {
|
|
639
|
-
const body = parsedOutput.body;
|
|
640
|
-
const deserialized = _json(body);
|
|
641
|
-
const exception = new OperationNotPermittedException({
|
|
642
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
643
|
-
...deserialized,
|
|
644
|
-
});
|
|
645
|
-
return __decorateServiceException(exception, body);
|
|
646
|
-
};
|
|
647
|
-
const de_ResourceInUseExceptionRes = async (parsedOutput, context) => {
|
|
648
|
-
const body = parsedOutput.body;
|
|
649
|
-
const deserialized = _json(body);
|
|
650
|
-
const exception = new ResourceInUseException({
|
|
651
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
652
|
-
...deserialized,
|
|
653
|
-
});
|
|
654
|
-
return __decorateServiceException(exception, body);
|
|
655
|
-
};
|
|
656
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
657
|
-
const body = parsedOutput.body;
|
|
658
|
-
const deserialized = _json(body);
|
|
659
|
-
const exception = new ResourceNotFoundException({
|
|
660
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
661
|
-
...deserialized,
|
|
662
|
-
});
|
|
663
|
-
return __decorateServiceException(exception, body);
|
|
664
|
-
};
|
|
665
|
-
const de_ServerInternalErrorExceptionRes = async (parsedOutput, context) => {
|
|
666
|
-
const body = parsedOutput.body;
|
|
667
|
-
const deserialized = _json(body);
|
|
668
|
-
const exception = new ServerInternalErrorException({
|
|
669
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
670
|
-
...deserialized,
|
|
671
|
-
});
|
|
672
|
-
return __decorateServiceException(exception, body);
|
|
673
|
-
};
|
|
674
|
-
const se_Ec2RecommendationsExportPreferences = (input, context) => {
|
|
675
|
-
return take(input, {
|
|
676
|
-
cpuPerformanceMetricBasis: (_) => se_UsageMetricBasis(_, context),
|
|
677
|
-
enabled: [],
|
|
678
|
-
excludedInstanceTypes: _json,
|
|
679
|
-
preferredRegion: [],
|
|
680
|
-
ramPerformanceMetricBasis: (_) => se_UsageMetricBasis(_, context),
|
|
681
|
-
reservedInstanceOptions: _json,
|
|
682
|
-
tenancy: [],
|
|
683
|
-
});
|
|
684
|
-
};
|
|
685
|
-
const se_ExportPreferences = (input, context) => {
|
|
686
|
-
return ExportPreferences.visit(input, {
|
|
687
|
-
ec2RecommendationsPreferences: (value) => ({
|
|
688
|
-
ec2RecommendationsPreferences: se_Ec2RecommendationsExportPreferences(value, context),
|
|
689
|
-
}),
|
|
690
|
-
_: (name, value) => ({ [name]: value }),
|
|
691
|
-
});
|
|
692
|
-
};
|
|
693
|
-
const se_StartExportTaskRequest = (input, context) => {
|
|
694
|
-
return take(input, {
|
|
695
|
-
endTime: (_) => _.getTime() / 1_000,
|
|
696
|
-
exportDataFormat: _json,
|
|
697
|
-
filters: _json,
|
|
698
|
-
preferences: (_) => se_ExportPreferences(_, context),
|
|
699
|
-
startTime: (_) => _.getTime() / 1_000,
|
|
700
|
-
});
|
|
701
|
-
};
|
|
702
|
-
const se_StartImportTaskRequest = (input, context) => {
|
|
703
|
-
return take(input, {
|
|
704
|
-
clientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
705
|
-
importUrl: [],
|
|
706
|
-
name: [],
|
|
707
|
-
});
|
|
708
|
-
};
|
|
709
|
-
const se_UsageMetricBasis = (input, context) => {
|
|
710
|
-
return take(input, {
|
|
711
|
-
name: [],
|
|
712
|
-
percentageAdjust: __serializeFloat,
|
|
713
|
-
});
|
|
714
|
-
};
|
|
715
|
-
const de_BatchDeleteConfigurationTask = (output, context) => {
|
|
716
|
-
return take(output, {
|
|
717
|
-
configurationType: __expectString,
|
|
718
|
-
deletedConfigurations: _json,
|
|
719
|
-
deletionWarnings: _json,
|
|
720
|
-
endTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
721
|
-
failedConfigurations: _json,
|
|
722
|
-
requestedConfigurations: _json,
|
|
723
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
724
|
-
status: __expectString,
|
|
725
|
-
taskId: __expectString,
|
|
726
|
-
});
|
|
727
|
-
};
|
|
728
|
-
const de_ConfigurationTag = (output, context) => {
|
|
729
|
-
return take(output, {
|
|
730
|
-
configurationId: __expectString,
|
|
731
|
-
configurationType: __expectString,
|
|
732
|
-
key: __expectString,
|
|
733
|
-
timeOfCreation: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
734
|
-
value: __expectString,
|
|
735
|
-
});
|
|
736
|
-
};
|
|
737
|
-
const de_ConfigurationTagSet = (output, context) => {
|
|
738
|
-
const retVal = (output || [])
|
|
739
|
-
.filter((e) => e != null)
|
|
740
|
-
.map((entry) => {
|
|
741
|
-
return de_ConfigurationTag(entry, context);
|
|
742
|
-
});
|
|
743
|
-
return retVal;
|
|
744
|
-
};
|
|
745
|
-
const de_ContinuousExportDescription = (output, context) => {
|
|
746
|
-
return take(output, {
|
|
747
|
-
dataSource: __expectString,
|
|
748
|
-
exportId: __expectString,
|
|
749
|
-
s3Bucket: __expectString,
|
|
750
|
-
schemaStorageConfig: _json,
|
|
751
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
752
|
-
status: __expectString,
|
|
753
|
-
statusDetail: __expectString,
|
|
754
|
-
stopTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
755
|
-
});
|
|
756
|
-
};
|
|
757
|
-
const de_ContinuousExportDescriptions = (output, context) => {
|
|
758
|
-
const retVal = (output || [])
|
|
759
|
-
.filter((e) => e != null)
|
|
760
|
-
.map((entry) => {
|
|
761
|
-
return de_ContinuousExportDescription(entry, context);
|
|
762
|
-
});
|
|
763
|
-
return retVal;
|
|
764
|
-
};
|
|
765
|
-
const de_DescribeBatchDeleteConfigurationTaskResponse = (output, context) => {
|
|
766
|
-
return take(output, {
|
|
767
|
-
task: (_) => de_BatchDeleteConfigurationTask(_, context),
|
|
768
|
-
});
|
|
769
|
-
};
|
|
770
|
-
const de_DescribeContinuousExportsResponse = (output, context) => {
|
|
771
|
-
return take(output, {
|
|
772
|
-
descriptions: (_) => de_ContinuousExportDescriptions(_, context),
|
|
773
|
-
nextToken: __expectString,
|
|
774
|
-
});
|
|
775
|
-
};
|
|
776
|
-
const de_DescribeExportConfigurationsResponse = (output, context) => {
|
|
777
|
-
return take(output, {
|
|
778
|
-
exportsInfo: (_) => de_ExportsInfo(_, context),
|
|
779
|
-
nextToken: __expectString,
|
|
780
|
-
});
|
|
781
|
-
};
|
|
782
|
-
const de_DescribeExportTasksResponse = (output, context) => {
|
|
783
|
-
return take(output, {
|
|
784
|
-
exportsInfo: (_) => de_ExportsInfo(_, context),
|
|
785
|
-
nextToken: __expectString,
|
|
786
|
-
});
|
|
787
|
-
};
|
|
788
|
-
const de_DescribeImportTasksResponse = (output, context) => {
|
|
789
|
-
return take(output, {
|
|
790
|
-
nextToken: __expectString,
|
|
791
|
-
tasks: (_) => de_ImportTaskList(_, context),
|
|
792
|
-
});
|
|
793
|
-
};
|
|
794
|
-
const de_DescribeTagsResponse = (output, context) => {
|
|
795
|
-
return take(output, {
|
|
796
|
-
nextToken: __expectString,
|
|
797
|
-
tags: (_) => de_ConfigurationTagSet(_, context),
|
|
798
|
-
});
|
|
799
|
-
};
|
|
800
|
-
const de_ExportInfo = (output, context) => {
|
|
801
|
-
return take(output, {
|
|
802
|
-
configurationsDownloadUrl: __expectString,
|
|
803
|
-
exportId: __expectString,
|
|
804
|
-
exportRequestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
805
|
-
exportStatus: __expectString,
|
|
806
|
-
isTruncated: __expectBoolean,
|
|
807
|
-
requestedEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
808
|
-
requestedStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
809
|
-
statusMessage: __expectString,
|
|
810
|
-
});
|
|
811
|
-
};
|
|
812
|
-
const de_ExportsInfo = (output, context) => {
|
|
813
|
-
const retVal = (output || [])
|
|
814
|
-
.filter((e) => e != null)
|
|
815
|
-
.map((entry) => {
|
|
816
|
-
return de_ExportInfo(entry, context);
|
|
817
|
-
});
|
|
818
|
-
return retVal;
|
|
819
|
-
};
|
|
820
|
-
const de_ImportTask = (output, context) => {
|
|
821
|
-
return take(output, {
|
|
822
|
-
applicationImportFailure: __expectInt32,
|
|
823
|
-
applicationImportSuccess: __expectInt32,
|
|
824
|
-
clientRequestToken: __expectString,
|
|
825
|
-
errorsAndFailedEntriesZip: __expectString,
|
|
826
|
-
fileClassification: __expectString,
|
|
827
|
-
importCompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
828
|
-
importDeletedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
829
|
-
importRequestTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
830
|
-
importTaskId: __expectString,
|
|
831
|
-
importUrl: __expectString,
|
|
832
|
-
name: __expectString,
|
|
833
|
-
serverImportFailure: __expectInt32,
|
|
834
|
-
serverImportSuccess: __expectInt32,
|
|
835
|
-
status: __expectString,
|
|
836
|
-
});
|
|
837
|
-
};
|
|
838
|
-
const de_ImportTaskList = (output, context) => {
|
|
839
|
-
const retVal = (output || [])
|
|
840
|
-
.filter((e) => e != null)
|
|
841
|
-
.map((entry) => {
|
|
842
|
-
return de_ImportTask(entry, context);
|
|
843
|
-
});
|
|
844
|
-
return retVal;
|
|
845
|
-
};
|
|
846
|
-
const de_StartContinuousExportResponse = (output, context) => {
|
|
847
|
-
return take(output, {
|
|
848
|
-
dataSource: __expectString,
|
|
849
|
-
exportId: __expectString,
|
|
850
|
-
s3Bucket: __expectString,
|
|
851
|
-
schemaStorageConfig: _json,
|
|
852
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
853
|
-
});
|
|
854
|
-
};
|
|
855
|
-
const de_StartImportTaskResponse = (output, context) => {
|
|
856
|
-
return take(output, {
|
|
857
|
-
task: (_) => de_ImportTask(_, context),
|
|
858
|
-
});
|
|
859
|
-
};
|
|
860
|
-
const de_StopContinuousExportResponse = (output, context) => {
|
|
861
|
-
return take(output, {
|
|
862
|
-
startTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
863
|
-
stopTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
864
|
-
});
|
|
865
|
-
};
|
|
866
|
-
const deserializeMetadata = (output) => ({
|
|
867
|
-
httpStatusCode: output.statusCode,
|
|
868
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
869
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
870
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
871
|
-
});
|
|
872
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
873
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
874
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
875
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
876
|
-
const contents = {
|
|
877
|
-
protocol,
|
|
878
|
-
hostname,
|
|
879
|
-
port,
|
|
880
|
-
method: "POST",
|
|
881
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
882
|
-
headers,
|
|
883
|
-
};
|
|
884
|
-
if (resolvedHostname !== undefined) {
|
|
885
|
-
contents.hostname = resolvedHostname;
|
|
886
|
-
}
|
|
887
|
-
if (body !== undefined) {
|
|
888
|
-
contents.body = body;
|
|
889
|
-
}
|
|
890
|
-
return new __HttpRequest(contents);
|
|
891
|
-
};
|
|
892
|
-
function sharedHeaders(operation) {
|
|
893
|
-
return {
|
|
894
|
-
"content-type": "application/x-amz-json-1.1",
|
|
895
|
-
"x-amz-target": `AWSPoseidonService_V2015_11_01.${operation}`,
|
|
896
|
-
};
|
|
897
|
-
}
|