@aws-sdk/client-backupsearch 3.927.0 → 3.929.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 +735 -872
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/BackupSearchClient.js +2 -0
- package/dist-es/commands/GetSearchJobCommand.js +3 -9
- package/dist-es/commands/GetSearchResultExportJobCommand.js +3 -9
- package/dist-es/commands/ListSearchJobBackupsCommand.js +3 -9
- package/dist-es/commands/ListSearchJobResultsCommand.js +3 -10
- package/dist-es/commands/ListSearchJobsCommand.js +3 -9
- package/dist-es/commands/ListSearchResultExportJobsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/StartSearchJobCommand.js +3 -9
- package/dist-es/commands/StartSearchResultExportJobCommand.js +3 -9
- package/dist-es/commands/StopSearchJobCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -21
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +702 -0
- package/dist-types/BackupSearchClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -16
- 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 +80 -0
- package/dist-types/ts3.4/BackupSearchClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -8
- 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 +87 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_restJson1.js +0 -753
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -110
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -149
|
@@ -1,753 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { BackupSearchServiceException as __BaseException } from "../models/BackupSearchServiceException";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_GetSearchJobCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {};
|
|
9
|
-
b.bp("/search-jobs/{SearchJobIdentifier}");
|
|
10
|
-
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
11
|
-
let body;
|
|
12
|
-
b.m("GET").h(headers).b(body);
|
|
13
|
-
return b.build();
|
|
14
|
-
};
|
|
15
|
-
export const se_GetSearchResultExportJobCommand = async (input, context) => {
|
|
16
|
-
const b = rb(input, context);
|
|
17
|
-
const headers = {};
|
|
18
|
-
b.bp("/export-search-jobs/{ExportJobIdentifier}");
|
|
19
|
-
b.p("ExportJobIdentifier", () => input.ExportJobIdentifier, "{ExportJobIdentifier}", false);
|
|
20
|
-
let body;
|
|
21
|
-
b.m("GET").h(headers).b(body);
|
|
22
|
-
return b.build();
|
|
23
|
-
};
|
|
24
|
-
export const se_ListSearchJobBackupsCommand = async (input, context) => {
|
|
25
|
-
const b = rb(input, context);
|
|
26
|
-
const headers = {};
|
|
27
|
-
b.bp("/search-jobs/{SearchJobIdentifier}/backups");
|
|
28
|
-
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
29
|
-
const query = map({
|
|
30
|
-
[_nT]: [, input[_NT]],
|
|
31
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
32
|
-
});
|
|
33
|
-
let body;
|
|
34
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
export const se_ListSearchJobResultsCommand = async (input, context) => {
|
|
38
|
-
const b = rb(input, context);
|
|
39
|
-
const headers = {};
|
|
40
|
-
b.bp("/search-jobs/{SearchJobIdentifier}/search-results");
|
|
41
|
-
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
42
|
-
const query = map({
|
|
43
|
-
[_nT]: [, input[_NT]],
|
|
44
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
45
|
-
});
|
|
46
|
-
let body;
|
|
47
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
48
|
-
return b.build();
|
|
49
|
-
};
|
|
50
|
-
export const se_ListSearchJobsCommand = async (input, context) => {
|
|
51
|
-
const b = rb(input, context);
|
|
52
|
-
const headers = {};
|
|
53
|
-
b.bp("/search-jobs");
|
|
54
|
-
const query = map({
|
|
55
|
-
[_S]: [, input[_BS]],
|
|
56
|
-
[_NT]: [, input[_NT]],
|
|
57
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
58
|
-
});
|
|
59
|
-
let body;
|
|
60
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
|
-
export const se_ListSearchResultExportJobsCommand = async (input, context) => {
|
|
64
|
-
const b = rb(input, context);
|
|
65
|
-
const headers = {};
|
|
66
|
-
b.bp("/export-search-jobs");
|
|
67
|
-
const query = map({
|
|
68
|
-
[_S]: [, input[_S]],
|
|
69
|
-
[_SJI]: [, input[_SJI]],
|
|
70
|
-
[_NT]: [, input[_NT]],
|
|
71
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
72
|
-
});
|
|
73
|
-
let body;
|
|
74
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
75
|
-
return b.build();
|
|
76
|
-
};
|
|
77
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
78
|
-
const b = rb(input, context);
|
|
79
|
-
const headers = {};
|
|
80
|
-
b.bp("/tags/{ResourceArn}");
|
|
81
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
82
|
-
let body;
|
|
83
|
-
b.m("GET").h(headers).b(body);
|
|
84
|
-
return b.build();
|
|
85
|
-
};
|
|
86
|
-
export const se_StartSearchJobCommand = async (input, context) => {
|
|
87
|
-
const b = rb(input, context);
|
|
88
|
-
const headers = {
|
|
89
|
-
"content-type": "application/json",
|
|
90
|
-
};
|
|
91
|
-
b.bp("/search-jobs");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(take(input, {
|
|
94
|
-
ClientToken: [],
|
|
95
|
-
EncryptionKeyArn: [],
|
|
96
|
-
ItemFilters: (_) => se_ItemFilters(_, context),
|
|
97
|
-
Name: [],
|
|
98
|
-
SearchScope: (_) => se_SearchScope(_, context),
|
|
99
|
-
Tags: (_) => se_TagMap(_, context),
|
|
100
|
-
}));
|
|
101
|
-
b.m("PUT").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
export const se_StartSearchResultExportJobCommand = async (input, context) => {
|
|
105
|
-
const b = rb(input, context);
|
|
106
|
-
const headers = {
|
|
107
|
-
"content-type": "application/json",
|
|
108
|
-
};
|
|
109
|
-
b.bp("/export-search-jobs");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(take(input, {
|
|
112
|
-
ClientToken: [],
|
|
113
|
-
ExportSpecification: (_) => _json(_),
|
|
114
|
-
RoleArn: [],
|
|
115
|
-
SearchJobIdentifier: [],
|
|
116
|
-
Tags: (_) => se_TagMap(_, context),
|
|
117
|
-
}));
|
|
118
|
-
b.m("PUT").h(headers).b(body);
|
|
119
|
-
return b.build();
|
|
120
|
-
};
|
|
121
|
-
export const se_StopSearchJobCommand = async (input, context) => {
|
|
122
|
-
const b = rb(input, context);
|
|
123
|
-
const headers = {};
|
|
124
|
-
b.bp("/search-jobs/{SearchJobIdentifier}/actions/cancel");
|
|
125
|
-
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
126
|
-
let body;
|
|
127
|
-
b.m("PUT").h(headers).b(body);
|
|
128
|
-
return b.build();
|
|
129
|
-
};
|
|
130
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
131
|
-
const b = rb(input, context);
|
|
132
|
-
const headers = {
|
|
133
|
-
"content-type": "application/json",
|
|
134
|
-
};
|
|
135
|
-
b.bp("/tags/{ResourceArn}");
|
|
136
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify(take(input, {
|
|
139
|
-
Tags: (_) => se_TagMap(_, context),
|
|
140
|
-
}));
|
|
141
|
-
b.m("POST").h(headers).b(body);
|
|
142
|
-
return b.build();
|
|
143
|
-
};
|
|
144
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
145
|
-
const b = rb(input, context);
|
|
146
|
-
const headers = {};
|
|
147
|
-
b.bp("/tags/{ResourceArn}");
|
|
148
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
149
|
-
const query = map({
|
|
150
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
151
|
-
});
|
|
152
|
-
let body;
|
|
153
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
export const de_GetSearchJobCommand = async (output, context) => {
|
|
157
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
158
|
-
return de_CommandError(output, context);
|
|
159
|
-
}
|
|
160
|
-
const contents = map({
|
|
161
|
-
$metadata: deserializeMetadata(output),
|
|
162
|
-
});
|
|
163
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
164
|
-
const doc = take(data, {
|
|
165
|
-
CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
166
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
167
|
-
CurrentSearchProgress: _json,
|
|
168
|
-
EncryptionKeyArn: __expectString,
|
|
169
|
-
ItemFilters: (_) => de_ItemFilters(_, context),
|
|
170
|
-
Name: __expectString,
|
|
171
|
-
SearchJobArn: __expectString,
|
|
172
|
-
SearchJobIdentifier: __expectString,
|
|
173
|
-
SearchScope: (_) => de_SearchScope(_, context),
|
|
174
|
-
SearchScopeSummary: _json,
|
|
175
|
-
Status: __expectString,
|
|
176
|
-
StatusMessage: __expectString,
|
|
177
|
-
});
|
|
178
|
-
Object.assign(contents, doc);
|
|
179
|
-
return contents;
|
|
180
|
-
};
|
|
181
|
-
export const de_GetSearchResultExportJobCommand = async (output, context) => {
|
|
182
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
183
|
-
return de_CommandError(output, context);
|
|
184
|
-
}
|
|
185
|
-
const contents = map({
|
|
186
|
-
$metadata: deserializeMetadata(output),
|
|
187
|
-
});
|
|
188
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
189
|
-
const doc = take(data, {
|
|
190
|
-
CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
191
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
192
|
-
ExportJobArn: __expectString,
|
|
193
|
-
ExportJobIdentifier: __expectString,
|
|
194
|
-
ExportSpecification: (_) => _json(__expectUnion(_)),
|
|
195
|
-
SearchJobArn: __expectString,
|
|
196
|
-
Status: __expectString,
|
|
197
|
-
StatusMessage: __expectString,
|
|
198
|
-
});
|
|
199
|
-
Object.assign(contents, doc);
|
|
200
|
-
return contents;
|
|
201
|
-
};
|
|
202
|
-
export const de_ListSearchJobBackupsCommand = async (output, context) => {
|
|
203
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
204
|
-
return de_CommandError(output, context);
|
|
205
|
-
}
|
|
206
|
-
const contents = map({
|
|
207
|
-
$metadata: deserializeMetadata(output),
|
|
208
|
-
});
|
|
209
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
210
|
-
const doc = take(data, {
|
|
211
|
-
NextToken: __expectString,
|
|
212
|
-
Results: (_) => de_SearchJobBackupsResults(_, context),
|
|
213
|
-
});
|
|
214
|
-
Object.assign(contents, doc);
|
|
215
|
-
return contents;
|
|
216
|
-
};
|
|
217
|
-
export const de_ListSearchJobResultsCommand = async (output, context) => {
|
|
218
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
219
|
-
return de_CommandError(output, context);
|
|
220
|
-
}
|
|
221
|
-
const contents = map({
|
|
222
|
-
$metadata: deserializeMetadata(output),
|
|
223
|
-
});
|
|
224
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
225
|
-
const doc = take(data, {
|
|
226
|
-
NextToken: __expectString,
|
|
227
|
-
Results: (_) => de_Results(_, context),
|
|
228
|
-
});
|
|
229
|
-
Object.assign(contents, doc);
|
|
230
|
-
return contents;
|
|
231
|
-
};
|
|
232
|
-
export const de_ListSearchJobsCommand = async (output, context) => {
|
|
233
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
234
|
-
return de_CommandError(output, context);
|
|
235
|
-
}
|
|
236
|
-
const contents = map({
|
|
237
|
-
$metadata: deserializeMetadata(output),
|
|
238
|
-
});
|
|
239
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
240
|
-
const doc = take(data, {
|
|
241
|
-
NextToken: __expectString,
|
|
242
|
-
SearchJobs: (_) => de_SearchJobs(_, context),
|
|
243
|
-
});
|
|
244
|
-
Object.assign(contents, doc);
|
|
245
|
-
return contents;
|
|
246
|
-
};
|
|
247
|
-
export const de_ListSearchResultExportJobsCommand = async (output, context) => {
|
|
248
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
249
|
-
return de_CommandError(output, context);
|
|
250
|
-
}
|
|
251
|
-
const contents = map({
|
|
252
|
-
$metadata: deserializeMetadata(output),
|
|
253
|
-
});
|
|
254
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
255
|
-
const doc = take(data, {
|
|
256
|
-
ExportJobs: (_) => de_ExportJobSummaries(_, context),
|
|
257
|
-
NextToken: __expectString,
|
|
258
|
-
});
|
|
259
|
-
Object.assign(contents, doc);
|
|
260
|
-
return contents;
|
|
261
|
-
};
|
|
262
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
263
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
264
|
-
return de_CommandError(output, context);
|
|
265
|
-
}
|
|
266
|
-
const contents = map({
|
|
267
|
-
$metadata: deserializeMetadata(output),
|
|
268
|
-
});
|
|
269
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
270
|
-
const doc = take(data, {
|
|
271
|
-
Tags: (_) => de_TagMap(_, context),
|
|
272
|
-
});
|
|
273
|
-
Object.assign(contents, doc);
|
|
274
|
-
return contents;
|
|
275
|
-
};
|
|
276
|
-
export const de_StartSearchJobCommand = async (output, context) => {
|
|
277
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
278
|
-
return de_CommandError(output, context);
|
|
279
|
-
}
|
|
280
|
-
const contents = map({
|
|
281
|
-
$metadata: deserializeMetadata(output),
|
|
282
|
-
});
|
|
283
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
284
|
-
const doc = take(data, {
|
|
285
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
286
|
-
SearchJobArn: __expectString,
|
|
287
|
-
SearchJobIdentifier: __expectString,
|
|
288
|
-
});
|
|
289
|
-
Object.assign(contents, doc);
|
|
290
|
-
return contents;
|
|
291
|
-
};
|
|
292
|
-
export const de_StartSearchResultExportJobCommand = async (output, context) => {
|
|
293
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
294
|
-
return de_CommandError(output, context);
|
|
295
|
-
}
|
|
296
|
-
const contents = map({
|
|
297
|
-
$metadata: deserializeMetadata(output),
|
|
298
|
-
});
|
|
299
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
300
|
-
const doc = take(data, {
|
|
301
|
-
ExportJobArn: __expectString,
|
|
302
|
-
ExportJobIdentifier: __expectString,
|
|
303
|
-
});
|
|
304
|
-
Object.assign(contents, doc);
|
|
305
|
-
return contents;
|
|
306
|
-
};
|
|
307
|
-
export const de_StopSearchJobCommand = async (output, context) => {
|
|
308
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
309
|
-
return de_CommandError(output, context);
|
|
310
|
-
}
|
|
311
|
-
const contents = map({
|
|
312
|
-
$metadata: deserializeMetadata(output),
|
|
313
|
-
});
|
|
314
|
-
await collectBody(output.body, context);
|
|
315
|
-
return contents;
|
|
316
|
-
};
|
|
317
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
318
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
319
|
-
return de_CommandError(output, context);
|
|
320
|
-
}
|
|
321
|
-
const contents = map({
|
|
322
|
-
$metadata: deserializeMetadata(output),
|
|
323
|
-
});
|
|
324
|
-
await collectBody(output.body, context);
|
|
325
|
-
return contents;
|
|
326
|
-
};
|
|
327
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
328
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
329
|
-
return de_CommandError(output, context);
|
|
330
|
-
}
|
|
331
|
-
const contents = map({
|
|
332
|
-
$metadata: deserializeMetadata(output),
|
|
333
|
-
});
|
|
334
|
-
await collectBody(output.body, context);
|
|
335
|
-
return contents;
|
|
336
|
-
};
|
|
337
|
-
const de_CommandError = async (output, context) => {
|
|
338
|
-
const parsedOutput = {
|
|
339
|
-
...output,
|
|
340
|
-
body: await parseErrorBody(output.body, context),
|
|
341
|
-
};
|
|
342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
|
-
switch (errorCode) {
|
|
344
|
-
case "AccessDeniedException":
|
|
345
|
-
case "com.amazonaws.backupsearch#AccessDeniedException":
|
|
346
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
347
|
-
case "InternalServerException":
|
|
348
|
-
case "com.amazonaws.backupsearch#InternalServerException":
|
|
349
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
350
|
-
case "ResourceNotFoundException":
|
|
351
|
-
case "com.amazonaws.backupsearch#ResourceNotFoundException":
|
|
352
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
353
|
-
case "ThrottlingException":
|
|
354
|
-
case "com.amazonaws.backupsearch#ThrottlingException":
|
|
355
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
356
|
-
case "ValidationException":
|
|
357
|
-
case "com.amazonaws.backupsearch#ValidationException":
|
|
358
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
359
|
-
case "ServiceQuotaExceededException":
|
|
360
|
-
case "com.amazonaws.backupsearch#ServiceQuotaExceededException":
|
|
361
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
362
|
-
case "ConflictException":
|
|
363
|
-
case "com.amazonaws.backupsearch#ConflictException":
|
|
364
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
365
|
-
default:
|
|
366
|
-
const parsedBody = parsedOutput.body;
|
|
367
|
-
return throwDefaultError({
|
|
368
|
-
output,
|
|
369
|
-
parsedBody,
|
|
370
|
-
errorCode,
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
375
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
376
|
-
const contents = map({});
|
|
377
|
-
const data = parsedOutput.body;
|
|
378
|
-
const doc = take(data, {
|
|
379
|
-
message: __expectString,
|
|
380
|
-
});
|
|
381
|
-
Object.assign(contents, doc);
|
|
382
|
-
const exception = new AccessDeniedException({
|
|
383
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
384
|
-
...contents,
|
|
385
|
-
});
|
|
386
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
387
|
-
};
|
|
388
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
389
|
-
const contents = map({});
|
|
390
|
-
const data = parsedOutput.body;
|
|
391
|
-
const doc = take(data, {
|
|
392
|
-
message: __expectString,
|
|
393
|
-
resourceId: __expectString,
|
|
394
|
-
resourceType: __expectString,
|
|
395
|
-
});
|
|
396
|
-
Object.assign(contents, doc);
|
|
397
|
-
const exception = new ConflictException({
|
|
398
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
399
|
-
...contents,
|
|
400
|
-
});
|
|
401
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
402
|
-
};
|
|
403
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
404
|
-
const contents = map({
|
|
405
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
406
|
-
});
|
|
407
|
-
const data = parsedOutput.body;
|
|
408
|
-
const doc = take(data, {
|
|
409
|
-
message: __expectString,
|
|
410
|
-
});
|
|
411
|
-
Object.assign(contents, doc);
|
|
412
|
-
const exception = new InternalServerException({
|
|
413
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
414
|
-
...contents,
|
|
415
|
-
});
|
|
416
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
417
|
-
};
|
|
418
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
419
|
-
const contents = map({});
|
|
420
|
-
const data = parsedOutput.body;
|
|
421
|
-
const doc = take(data, {
|
|
422
|
-
message: __expectString,
|
|
423
|
-
resourceId: __expectString,
|
|
424
|
-
resourceType: __expectString,
|
|
425
|
-
});
|
|
426
|
-
Object.assign(contents, doc);
|
|
427
|
-
const exception = new ResourceNotFoundException({
|
|
428
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
429
|
-
...contents,
|
|
430
|
-
});
|
|
431
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
432
|
-
};
|
|
433
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
434
|
-
const contents = map({});
|
|
435
|
-
const data = parsedOutput.body;
|
|
436
|
-
const doc = take(data, {
|
|
437
|
-
message: __expectString,
|
|
438
|
-
quotaCode: __expectString,
|
|
439
|
-
resourceId: __expectString,
|
|
440
|
-
resourceType: __expectString,
|
|
441
|
-
serviceCode: __expectString,
|
|
442
|
-
});
|
|
443
|
-
Object.assign(contents, doc);
|
|
444
|
-
const exception = new ServiceQuotaExceededException({
|
|
445
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
446
|
-
...contents,
|
|
447
|
-
});
|
|
448
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
449
|
-
};
|
|
450
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
451
|
-
const contents = map({
|
|
452
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
453
|
-
});
|
|
454
|
-
const data = parsedOutput.body;
|
|
455
|
-
const doc = take(data, {
|
|
456
|
-
message: __expectString,
|
|
457
|
-
quotaCode: __expectString,
|
|
458
|
-
serviceCode: __expectString,
|
|
459
|
-
});
|
|
460
|
-
Object.assign(contents, doc);
|
|
461
|
-
const exception = new ThrottlingException({
|
|
462
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
463
|
-
...contents,
|
|
464
|
-
});
|
|
465
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
466
|
-
};
|
|
467
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
468
|
-
const contents = map({});
|
|
469
|
-
const data = parsedOutput.body;
|
|
470
|
-
const doc = take(data, {
|
|
471
|
-
message: __expectString,
|
|
472
|
-
});
|
|
473
|
-
Object.assign(contents, doc);
|
|
474
|
-
const exception = new ValidationException({
|
|
475
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
476
|
-
...contents,
|
|
477
|
-
});
|
|
478
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
479
|
-
};
|
|
480
|
-
const se_BackupCreationTimeFilter = (input, context) => {
|
|
481
|
-
return take(input, {
|
|
482
|
-
CreatedAfter: (_) => _.getTime() / 1_000,
|
|
483
|
-
CreatedBefore: (_) => _.getTime() / 1_000,
|
|
484
|
-
});
|
|
485
|
-
};
|
|
486
|
-
const se_EBSItemFilter = (input, context) => {
|
|
487
|
-
return take(input, {
|
|
488
|
-
CreationTimes: (_) => se_TimeConditionList(_, context),
|
|
489
|
-
FilePaths: _json,
|
|
490
|
-
LastModificationTimes: (_) => se_TimeConditionList(_, context),
|
|
491
|
-
Sizes: _json,
|
|
492
|
-
});
|
|
493
|
-
};
|
|
494
|
-
const se_EBSItemFilters = (input, context) => {
|
|
495
|
-
return input
|
|
496
|
-
.filter((e) => e != null)
|
|
497
|
-
.map((entry) => {
|
|
498
|
-
return se_EBSItemFilter(entry, context);
|
|
499
|
-
});
|
|
500
|
-
};
|
|
501
|
-
const se_ItemFilters = (input, context) => {
|
|
502
|
-
return take(input, {
|
|
503
|
-
EBSItemFilters: (_) => se_EBSItemFilters(_, context),
|
|
504
|
-
S3ItemFilters: (_) => se_S3ItemFilters(_, context),
|
|
505
|
-
});
|
|
506
|
-
};
|
|
507
|
-
const se_S3ItemFilter = (input, context) => {
|
|
508
|
-
return take(input, {
|
|
509
|
-
CreationTimes: (_) => se_TimeConditionList(_, context),
|
|
510
|
-
ETags: _json,
|
|
511
|
-
ObjectKeys: _json,
|
|
512
|
-
Sizes: _json,
|
|
513
|
-
VersionIds: _json,
|
|
514
|
-
});
|
|
515
|
-
};
|
|
516
|
-
const se_S3ItemFilters = (input, context) => {
|
|
517
|
-
return input
|
|
518
|
-
.filter((e) => e != null)
|
|
519
|
-
.map((entry) => {
|
|
520
|
-
return se_S3ItemFilter(entry, context);
|
|
521
|
-
});
|
|
522
|
-
};
|
|
523
|
-
const se_SearchScope = (input, context) => {
|
|
524
|
-
return take(input, {
|
|
525
|
-
BackupResourceArns: _json,
|
|
526
|
-
BackupResourceCreationTime: (_) => se_BackupCreationTimeFilter(_, context),
|
|
527
|
-
BackupResourceTags: (_) => se_TagMap(_, context),
|
|
528
|
-
BackupResourceTypes: _json,
|
|
529
|
-
SourceResourceArns: _json,
|
|
530
|
-
});
|
|
531
|
-
};
|
|
532
|
-
const se_TagMap = (input, context) => {
|
|
533
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
534
|
-
if (value === null) {
|
|
535
|
-
acc[key] = null;
|
|
536
|
-
return acc;
|
|
537
|
-
}
|
|
538
|
-
acc[key] = value;
|
|
539
|
-
return acc;
|
|
540
|
-
}, {});
|
|
541
|
-
};
|
|
542
|
-
const se_TimeCondition = (input, context) => {
|
|
543
|
-
return take(input, {
|
|
544
|
-
Operator: [],
|
|
545
|
-
Value: (_) => _.getTime() / 1_000,
|
|
546
|
-
});
|
|
547
|
-
};
|
|
548
|
-
const se_TimeConditionList = (input, context) => {
|
|
549
|
-
return input
|
|
550
|
-
.filter((e) => e != null)
|
|
551
|
-
.map((entry) => {
|
|
552
|
-
return se_TimeCondition(entry, context);
|
|
553
|
-
});
|
|
554
|
-
};
|
|
555
|
-
const de_BackupCreationTimeFilter = (output, context) => {
|
|
556
|
-
return take(output, {
|
|
557
|
-
CreatedAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
558
|
-
CreatedBefore: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
559
|
-
});
|
|
560
|
-
};
|
|
561
|
-
const de_EBSItemFilter = (output, context) => {
|
|
562
|
-
return take(output, {
|
|
563
|
-
CreationTimes: (_) => de_TimeConditionList(_, context),
|
|
564
|
-
FilePaths: _json,
|
|
565
|
-
LastModificationTimes: (_) => de_TimeConditionList(_, context),
|
|
566
|
-
Sizes: _json,
|
|
567
|
-
});
|
|
568
|
-
};
|
|
569
|
-
const de_EBSItemFilters = (output, context) => {
|
|
570
|
-
const retVal = (output || [])
|
|
571
|
-
.filter((e) => e != null)
|
|
572
|
-
.map((entry) => {
|
|
573
|
-
return de_EBSItemFilter(entry, context);
|
|
574
|
-
});
|
|
575
|
-
return retVal;
|
|
576
|
-
};
|
|
577
|
-
const de_EBSResultItem = (output, context) => {
|
|
578
|
-
return take(output, {
|
|
579
|
-
BackupResourceArn: __expectString,
|
|
580
|
-
BackupVaultName: __expectString,
|
|
581
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
582
|
-
FilePath: __expectString,
|
|
583
|
-
FileSize: __expectLong,
|
|
584
|
-
FileSystemIdentifier: __expectString,
|
|
585
|
-
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
586
|
-
SourceResourceArn: __expectString,
|
|
587
|
-
});
|
|
588
|
-
};
|
|
589
|
-
const de_ExportJobSummaries = (output, context) => {
|
|
590
|
-
const retVal = (output || [])
|
|
591
|
-
.filter((e) => e != null)
|
|
592
|
-
.map((entry) => {
|
|
593
|
-
return de_ExportJobSummary(entry, context);
|
|
594
|
-
});
|
|
595
|
-
return retVal;
|
|
596
|
-
};
|
|
597
|
-
const de_ExportJobSummary = (output, context) => {
|
|
598
|
-
return take(output, {
|
|
599
|
-
CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
600
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
601
|
-
ExportJobArn: __expectString,
|
|
602
|
-
ExportJobIdentifier: __expectString,
|
|
603
|
-
SearchJobArn: __expectString,
|
|
604
|
-
Status: __expectString,
|
|
605
|
-
StatusMessage: __expectString,
|
|
606
|
-
});
|
|
607
|
-
};
|
|
608
|
-
const de_ItemFilters = (output, context) => {
|
|
609
|
-
return take(output, {
|
|
610
|
-
EBSItemFilters: (_) => de_EBSItemFilters(_, context),
|
|
611
|
-
S3ItemFilters: (_) => de_S3ItemFilters(_, context),
|
|
612
|
-
});
|
|
613
|
-
};
|
|
614
|
-
const de_ResultItem = (output, context) => {
|
|
615
|
-
if (output.EBSResultItem != null) {
|
|
616
|
-
return {
|
|
617
|
-
EBSResultItem: de_EBSResultItem(output.EBSResultItem, context),
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
if (output.S3ResultItem != null) {
|
|
621
|
-
return {
|
|
622
|
-
S3ResultItem: de_S3ResultItem(output.S3ResultItem, context),
|
|
623
|
-
};
|
|
624
|
-
}
|
|
625
|
-
return { $unknown: Object.entries(output)[0] };
|
|
626
|
-
};
|
|
627
|
-
const de_Results = (output, context) => {
|
|
628
|
-
const retVal = (output || [])
|
|
629
|
-
.filter((e) => e != null)
|
|
630
|
-
.map((entry) => {
|
|
631
|
-
return de_ResultItem(__expectUnion(entry), context);
|
|
632
|
-
});
|
|
633
|
-
return retVal;
|
|
634
|
-
};
|
|
635
|
-
const de_S3ItemFilter = (output, context) => {
|
|
636
|
-
return take(output, {
|
|
637
|
-
CreationTimes: (_) => de_TimeConditionList(_, context),
|
|
638
|
-
ETags: _json,
|
|
639
|
-
ObjectKeys: _json,
|
|
640
|
-
Sizes: _json,
|
|
641
|
-
VersionIds: _json,
|
|
642
|
-
});
|
|
643
|
-
};
|
|
644
|
-
const de_S3ItemFilters = (output, context) => {
|
|
645
|
-
const retVal = (output || [])
|
|
646
|
-
.filter((e) => e != null)
|
|
647
|
-
.map((entry) => {
|
|
648
|
-
return de_S3ItemFilter(entry, context);
|
|
649
|
-
});
|
|
650
|
-
return retVal;
|
|
651
|
-
};
|
|
652
|
-
const de_S3ResultItem = (output, context) => {
|
|
653
|
-
return take(output, {
|
|
654
|
-
BackupResourceArn: __expectString,
|
|
655
|
-
BackupVaultName: __expectString,
|
|
656
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
657
|
-
ETag: __expectString,
|
|
658
|
-
ObjectKey: __expectString,
|
|
659
|
-
ObjectSize: __expectLong,
|
|
660
|
-
SourceResourceArn: __expectString,
|
|
661
|
-
VersionId: __expectString,
|
|
662
|
-
});
|
|
663
|
-
};
|
|
664
|
-
const de_SearchJobBackupsResult = (output, context) => {
|
|
665
|
-
return take(output, {
|
|
666
|
-
BackupCreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
667
|
-
BackupResourceArn: __expectString,
|
|
668
|
-
IndexCreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
669
|
-
ResourceType: __expectString,
|
|
670
|
-
SourceResourceArn: __expectString,
|
|
671
|
-
Status: __expectString,
|
|
672
|
-
StatusMessage: __expectString,
|
|
673
|
-
});
|
|
674
|
-
};
|
|
675
|
-
const de_SearchJobBackupsResults = (output, context) => {
|
|
676
|
-
const retVal = (output || [])
|
|
677
|
-
.filter((e) => e != null)
|
|
678
|
-
.map((entry) => {
|
|
679
|
-
return de_SearchJobBackupsResult(entry, context);
|
|
680
|
-
});
|
|
681
|
-
return retVal;
|
|
682
|
-
};
|
|
683
|
-
const de_SearchJobs = (output, context) => {
|
|
684
|
-
const retVal = (output || [])
|
|
685
|
-
.filter((e) => e != null)
|
|
686
|
-
.map((entry) => {
|
|
687
|
-
return de_SearchJobSummary(entry, context);
|
|
688
|
-
});
|
|
689
|
-
return retVal;
|
|
690
|
-
};
|
|
691
|
-
const de_SearchJobSummary = (output, context) => {
|
|
692
|
-
return take(output, {
|
|
693
|
-
CompletionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
694
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
695
|
-
Name: __expectString,
|
|
696
|
-
SearchJobArn: __expectString,
|
|
697
|
-
SearchJobIdentifier: __expectString,
|
|
698
|
-
SearchScopeSummary: _json,
|
|
699
|
-
Status: __expectString,
|
|
700
|
-
StatusMessage: __expectString,
|
|
701
|
-
});
|
|
702
|
-
};
|
|
703
|
-
const de_SearchScope = (output, context) => {
|
|
704
|
-
return take(output, {
|
|
705
|
-
BackupResourceArns: _json,
|
|
706
|
-
BackupResourceCreationTime: (_) => de_BackupCreationTimeFilter(_, context),
|
|
707
|
-
BackupResourceTags: (_) => de_TagMap(_, context),
|
|
708
|
-
BackupResourceTypes: _json,
|
|
709
|
-
SourceResourceArns: _json,
|
|
710
|
-
});
|
|
711
|
-
};
|
|
712
|
-
const de_TagMap = (output, context) => {
|
|
713
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
714
|
-
if (value === null) {
|
|
715
|
-
acc[key] = null;
|
|
716
|
-
return acc;
|
|
717
|
-
}
|
|
718
|
-
acc[key] = __expectString(value);
|
|
719
|
-
return acc;
|
|
720
|
-
}, {});
|
|
721
|
-
};
|
|
722
|
-
const de_TimeCondition = (output, context) => {
|
|
723
|
-
return take(output, {
|
|
724
|
-
Operator: __expectString,
|
|
725
|
-
Value: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
726
|
-
});
|
|
727
|
-
};
|
|
728
|
-
const de_TimeConditionList = (output, context) => {
|
|
729
|
-
const retVal = (output || [])
|
|
730
|
-
.filter((e) => e != null)
|
|
731
|
-
.map((entry) => {
|
|
732
|
-
return de_TimeCondition(entry, context);
|
|
733
|
-
});
|
|
734
|
-
return retVal;
|
|
735
|
-
};
|
|
736
|
-
const deserializeMetadata = (output) => ({
|
|
737
|
-
httpStatusCode: output.statusCode,
|
|
738
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
739
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
740
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
741
|
-
});
|
|
742
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
743
|
-
const _BS = "ByStatus";
|
|
744
|
-
const _MR = "MaxResults";
|
|
745
|
-
const _NT = "NextToken";
|
|
746
|
-
const _S = "Status";
|
|
747
|
-
const _SJI = "SearchJobIdentifier";
|
|
748
|
-
const _TK = "TagKeys";
|
|
749
|
-
const _mR = "maxResults";
|
|
750
|
-
const _nT = "nextToken";
|
|
751
|
-
const _rAS = "retryAfterSeconds";
|
|
752
|
-
const _ra = "retry-after";
|
|
753
|
-
const _tK = "tagKeys";
|