@aws-sdk/client-backupsearch 3.891.0 → 3.894.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.
Files changed (31) hide show
  1. package/dist-cjs/index.js +1500 -10
  2. package/package.json +19 -19
  3. package/dist-cjs/BackupSearch.js +0 -35
  4. package/dist-cjs/BackupSearchClient.js +0 -52
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -43
  6. package/dist-cjs/commands/GetSearchJobCommand.js +0 -26
  7. package/dist-cjs/commands/GetSearchResultExportJobCommand.js +0 -26
  8. package/dist-cjs/commands/ListSearchJobBackupsCommand.js +0 -26
  9. package/dist-cjs/commands/ListSearchJobResultsCommand.js +0 -27
  10. package/dist-cjs/commands/ListSearchJobsCommand.js +0 -26
  11. package/dist-cjs/commands/ListSearchResultExportJobsCommand.js +0 -26
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -26
  13. package/dist-cjs/commands/StartSearchJobCommand.js +0 -26
  14. package/dist-cjs/commands/StartSearchResultExportJobCommand.js +0 -26
  15. package/dist-cjs/commands/StopSearchJobCommand.js +0 -26
  16. package/dist-cjs/commands/TagResourceCommand.js +0 -26
  17. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  18. package/dist-cjs/commands/index.js +0 -15
  19. package/dist-cjs/endpoint/EndpointParameters.js +0 -15
  20. package/dist-cjs/extensionConfiguration.js +0 -2
  21. package/dist-cjs/models/BackupSearchServiceException.js +0 -12
  22. package/dist-cjs/models/index.js +0 -4
  23. package/dist-cjs/models/models_0.js +0 -204
  24. package/dist-cjs/pagination/Interfaces.js +0 -2
  25. package/dist-cjs/pagination/ListSearchJobBackupsPaginator.js +0 -7
  26. package/dist-cjs/pagination/ListSearchJobResultsPaginator.js +0 -7
  27. package/dist-cjs/pagination/ListSearchJobsPaginator.js +0 -7
  28. package/dist-cjs/pagination/ListSearchResultExportJobsPaginator.js +0 -7
  29. package/dist-cjs/pagination/index.js +0 -8
  30. package/dist-cjs/protocols/Aws_restJson1.js +0 -780
  31. package/dist-cjs/runtimeExtensions.js +0 -13
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,1501 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BackupSearchServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./BackupSearchClient"), exports);
6
- tslib_1.__exportStar(require("./BackupSearch"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./pagination"), exports);
9
- tslib_1.__exportStar(require("./models"), exports);
10
- var BackupSearchServiceException_1 = require("./models/BackupSearchServiceException");
11
- Object.defineProperty(exports, "BackupSearchServiceException", { enumerable: true, get: function () { return BackupSearchServiceException_1.BackupSearchServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var index_exports = {};
23
+ __export(index_exports, {
24
+ AccessDeniedException: () => AccessDeniedException,
25
+ BackupSearch: () => BackupSearch,
26
+ BackupSearchClient: () => BackupSearchClient,
27
+ BackupSearchServiceException: () => BackupSearchServiceException,
28
+ ConflictException: () => ConflictException,
29
+ EBSResultItemFilterSensitiveLog: () => EBSResultItemFilterSensitiveLog,
30
+ ExportJobStatus: () => ExportJobStatus,
31
+ ExportSpecification: () => ExportSpecification,
32
+ GetSearchJobCommand: () => GetSearchJobCommand,
33
+ GetSearchResultExportJobCommand: () => GetSearchResultExportJobCommand,
34
+ InternalServerException: () => InternalServerException,
35
+ ListSearchJobBackupsCommand: () => ListSearchJobBackupsCommand,
36
+ ListSearchJobResultsCommand: () => ListSearchJobResultsCommand,
37
+ ListSearchJobResultsOutputFilterSensitiveLog: () => ListSearchJobResultsOutputFilterSensitiveLog,
38
+ ListSearchJobsCommand: () => ListSearchJobsCommand,
39
+ ListSearchResultExportJobsCommand: () => ListSearchResultExportJobsCommand,
40
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
41
+ LongConditionOperator: () => LongConditionOperator,
42
+ ResourceNotFoundException: () => ResourceNotFoundException,
43
+ ResourceType: () => ResourceType,
44
+ ResultItem: () => ResultItem,
45
+ ResultItemFilterSensitiveLog: () => ResultItemFilterSensitiveLog,
46
+ S3ResultItemFilterSensitiveLog: () => S3ResultItemFilterSensitiveLog,
47
+ SearchJobState: () => SearchJobState,
48
+ ServiceQuotaExceededException: () => ServiceQuotaExceededException,
49
+ StartSearchJobCommand: () => StartSearchJobCommand,
50
+ StartSearchResultExportJobCommand: () => StartSearchResultExportJobCommand,
51
+ StopSearchJobCommand: () => StopSearchJobCommand,
52
+ StringConditionOperator: () => StringConditionOperator,
53
+ TagResourceCommand: () => TagResourceCommand,
54
+ ThrottlingException: () => ThrottlingException,
55
+ TimeConditionOperator: () => TimeConditionOperator,
56
+ UntagResourceCommand: () => UntagResourceCommand,
57
+ ValidationException: () => ValidationException,
58
+ __Client: () => import_smithy_client.Client,
59
+ paginateListSearchJobBackups: () => paginateListSearchJobBackups,
60
+ paginateListSearchJobResults: () => paginateListSearchJobResults,
61
+ paginateListSearchJobs: () => paginateListSearchJobs,
62
+ paginateListSearchResultExportJobs: () => paginateListSearchResultExportJobs
63
+ });
64
+ module.exports = __toCommonJS(index_exports);
65
+
66
+ // src/BackupSearchClient.ts
67
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
68
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
69
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
70
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
71
+ var import_config_resolver = require("@smithy/config-resolver");
72
+ var import_core = require("@smithy/core");
73
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
74
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
75
+ var import_middleware_retry = require("@smithy/middleware-retry");
76
+
77
+ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
78
+
79
+ // src/endpoint/EndpointParameters.ts
80
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
81
+ return Object.assign(options, {
82
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
83
+ defaultSigningName: "backup-search"
84
+ });
85
+ }, "resolveClientEndpointParameters");
86
+ var commonParams = {
87
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
88
+ Endpoint: { type: "builtInParams", name: "endpoint" },
89
+ Region: { type: "builtInParams", name: "region" }
90
+ };
91
+
92
+ // src/BackupSearchClient.ts
93
+ var import_runtimeConfig = require("././runtimeConfig");
94
+
95
+ // src/runtimeExtensions.ts
96
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
97
+ var import_protocol_http = require("@smithy/protocol-http");
98
+ var import_smithy_client = require("@smithy/smithy-client");
99
+
100
+ // src/auth/httpAuthExtensionConfiguration.ts
101
+ var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
102
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
103
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
104
+ let _credentials = runtimeConfig.credentials;
105
+ return {
106
+ setHttpAuthScheme(httpAuthScheme) {
107
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
108
+ if (index === -1) {
109
+ _httpAuthSchemes.push(httpAuthScheme);
110
+ } else {
111
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
112
+ }
113
+ },
114
+ httpAuthSchemes() {
115
+ return _httpAuthSchemes;
116
+ },
117
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
118
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
119
+ },
120
+ httpAuthSchemeProvider() {
121
+ return _httpAuthSchemeProvider;
122
+ },
123
+ setCredentials(credentials) {
124
+ _credentials = credentials;
125
+ },
126
+ credentials() {
127
+ return _credentials;
128
+ }
129
+ };
130
+ }, "getHttpAuthExtensionConfiguration");
131
+ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
132
+ return {
133
+ httpAuthSchemes: config.httpAuthSchemes(),
134
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
135
+ credentials: config.credentials()
136
+ };
137
+ }, "resolveHttpAuthRuntimeConfig");
138
+
139
+ // src/runtimeExtensions.ts
140
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
141
+ const extensionConfiguration = Object.assign(
142
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
143
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
144
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
145
+ getHttpAuthExtensionConfiguration(runtimeConfig)
146
+ );
147
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
148
+ return Object.assign(
149
+ runtimeConfig,
150
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
151
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
152
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
153
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
154
+ );
155
+ }, "resolveRuntimeExtensions");
156
+
157
+ // src/BackupSearchClient.ts
158
+ var BackupSearchClient = class extends import_smithy_client.Client {
159
+ static {
160
+ __name(this, "BackupSearchClient");
161
+ }
162
+ /**
163
+ * The resolved configuration of BackupSearchClient class. This is resolved and normalized from the {@link BackupSearchClientConfig | constructor configuration interface}.
164
+ */
165
+ config;
166
+ constructor(...[configuration]) {
167
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
168
+ super(_config_0);
169
+ this.initConfig = _config_0;
170
+ const _config_1 = resolveClientEndpointParameters(_config_0);
171
+ const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
172
+ const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
173
+ const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
174
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
175
+ const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
176
+ const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
177
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
178
+ this.config = _config_8;
179
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
180
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
181
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
182
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
183
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
184
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
185
+ this.middlewareStack.use(
186
+ (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
187
+ httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBackupSearchHttpAuthSchemeParametersProvider,
188
+ identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
189
+ "aws.auth#sigv4": config.credentials
190
+ }), "identityProviderConfigProvider")
191
+ })
192
+ );
193
+ this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
194
+ }
195
+ /**
196
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
197
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
198
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
199
+ */
200
+ destroy() {
201
+ super.destroy();
202
+ }
203
+ };
204
+
205
+ // src/BackupSearch.ts
206
+
207
+
208
+ // src/commands/GetSearchJobCommand.ts
209
+
210
+ var import_middleware_serde = require("@smithy/middleware-serde");
211
+
212
+
213
+ // src/protocols/Aws_restJson1.ts
214
+ var import_core2 = require("@aws-sdk/core");
215
+
216
+
217
+
218
+ // src/models/BackupSearchServiceException.ts
219
+
220
+ var BackupSearchServiceException = class _BackupSearchServiceException extends import_smithy_client.ServiceException {
221
+ static {
222
+ __name(this, "BackupSearchServiceException");
223
+ }
224
+ /**
225
+ * @internal
226
+ */
227
+ constructor(options) {
228
+ super(options);
229
+ Object.setPrototypeOf(this, _BackupSearchServiceException.prototype);
230
+ }
231
+ };
232
+
233
+ // src/models/models_0.ts
234
+
235
+ var AccessDeniedException = class _AccessDeniedException extends BackupSearchServiceException {
236
+ static {
237
+ __name(this, "AccessDeniedException");
238
+ }
239
+ name = "AccessDeniedException";
240
+ $fault = "client";
241
+ /**
242
+ * @internal
243
+ */
244
+ constructor(opts) {
245
+ super({
246
+ name: "AccessDeniedException",
247
+ $fault: "client",
248
+ ...opts
249
+ });
250
+ Object.setPrototypeOf(this, _AccessDeniedException.prototype);
251
+ }
252
+ };
253
+ var ConflictException = class _ConflictException extends BackupSearchServiceException {
254
+ static {
255
+ __name(this, "ConflictException");
256
+ }
257
+ name = "ConflictException";
258
+ $fault = "client";
259
+ /**
260
+ * <p>Identifier of the resource affected.</p>
261
+ * @public
262
+ */
263
+ resourceId;
264
+ /**
265
+ * <p>Type of the resource affected.</p>
266
+ * @public
267
+ */
268
+ resourceType;
269
+ /**
270
+ * @internal
271
+ */
272
+ constructor(opts) {
273
+ super({
274
+ name: "ConflictException",
275
+ $fault: "client",
276
+ ...opts
277
+ });
278
+ Object.setPrototypeOf(this, _ConflictException.prototype);
279
+ this.resourceId = opts.resourceId;
280
+ this.resourceType = opts.resourceType;
281
+ }
282
+ };
283
+ var InternalServerException = class _InternalServerException extends BackupSearchServiceException {
284
+ static {
285
+ __name(this, "InternalServerException");
286
+ }
287
+ name = "InternalServerException";
288
+ $fault = "server";
289
+ $retryable = {};
290
+ /**
291
+ * <p>Retry the call after number of seconds.</p>
292
+ * @public
293
+ */
294
+ retryAfterSeconds;
295
+ /**
296
+ * @internal
297
+ */
298
+ constructor(opts) {
299
+ super({
300
+ name: "InternalServerException",
301
+ $fault: "server",
302
+ ...opts
303
+ });
304
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
305
+ this.retryAfterSeconds = opts.retryAfterSeconds;
306
+ }
307
+ };
308
+ var ResourceType = {
309
+ EBS: "EBS",
310
+ S3: "S3"
311
+ };
312
+ var SearchJobState = {
313
+ COMPLETED: "COMPLETED",
314
+ FAILED: "FAILED",
315
+ RUNNING: "RUNNING",
316
+ STOPPED: "STOPPED",
317
+ STOPPING: "STOPPING"
318
+ };
319
+ var ResourceNotFoundException = class _ResourceNotFoundException extends BackupSearchServiceException {
320
+ static {
321
+ __name(this, "ResourceNotFoundException");
322
+ }
323
+ name = "ResourceNotFoundException";
324
+ $fault = "client";
325
+ /**
326
+ * <p>Hypothetical identifier of the resource affected.</p>
327
+ * @public
328
+ */
329
+ resourceId;
330
+ /**
331
+ * <p>Hypothetical type of the resource affected.</p>
332
+ * @public
333
+ */
334
+ resourceType;
335
+ /**
336
+ * @internal
337
+ */
338
+ constructor(opts) {
339
+ super({
340
+ name: "ResourceNotFoundException",
341
+ $fault: "client",
342
+ ...opts
343
+ });
344
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
345
+ this.resourceId = opts.resourceId;
346
+ this.resourceType = opts.resourceType;
347
+ }
348
+ };
349
+ var ThrottlingException = class _ThrottlingException extends BackupSearchServiceException {
350
+ static {
351
+ __name(this, "ThrottlingException");
352
+ }
353
+ name = "ThrottlingException";
354
+ $fault = "client";
355
+ $retryable = {
356
+ throttling: true
357
+ };
358
+ /**
359
+ * <p>This is the code unique to the originating service.</p>
360
+ * @public
361
+ */
362
+ serviceCode;
363
+ /**
364
+ * <p>This is the code unique to the originating service with the quota.</p>
365
+ * @public
366
+ */
367
+ quotaCode;
368
+ /**
369
+ * <p>Retry the call after number of seconds.</p>
370
+ * @public
371
+ */
372
+ retryAfterSeconds;
373
+ /**
374
+ * @internal
375
+ */
376
+ constructor(opts) {
377
+ super({
378
+ name: "ThrottlingException",
379
+ $fault: "client",
380
+ ...opts
381
+ });
382
+ Object.setPrototypeOf(this, _ThrottlingException.prototype);
383
+ this.serviceCode = opts.serviceCode;
384
+ this.quotaCode = opts.quotaCode;
385
+ this.retryAfterSeconds = opts.retryAfterSeconds;
386
+ }
387
+ };
388
+ var ValidationException = class _ValidationException extends BackupSearchServiceException {
389
+ static {
390
+ __name(this, "ValidationException");
391
+ }
392
+ name = "ValidationException";
393
+ $fault = "client";
394
+ /**
395
+ * @internal
396
+ */
397
+ constructor(opts) {
398
+ super({
399
+ name: "ValidationException",
400
+ $fault: "client",
401
+ ...opts
402
+ });
403
+ Object.setPrototypeOf(this, _ValidationException.prototype);
404
+ }
405
+ };
406
+ var ResultItem;
407
+ ((ResultItem3) => {
408
+ ResultItem3.visit = /* @__PURE__ */ __name((value, visitor) => {
409
+ if (value.S3ResultItem !== void 0) return visitor.S3ResultItem(value.S3ResultItem);
410
+ if (value.EBSResultItem !== void 0) return visitor.EBSResultItem(value.EBSResultItem);
411
+ return visitor._(value.$unknown[0], value.$unknown[1]);
412
+ }, "visit");
413
+ })(ResultItem || (ResultItem = {}));
414
+ var TimeConditionOperator = {
415
+ EQUALS_TO: "EQUALS_TO",
416
+ GREATER_THAN_EQUAL_TO: "GREATER_THAN_EQUAL_TO",
417
+ LESS_THAN_EQUAL_TO: "LESS_THAN_EQUAL_TO",
418
+ NOT_EQUALS_TO: "NOT_EQUALS_TO"
419
+ };
420
+ var StringConditionOperator = {
421
+ BEGINS_WITH: "BEGINS_WITH",
422
+ CONTAINS: "CONTAINS",
423
+ DOES_NOT_BEGIN_WITH: "DOES_NOT_BEGIN_WITH",
424
+ DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN",
425
+ DOES_NOT_END_WITH: "DOES_NOT_END_WITH",
426
+ ENDS_WITH: "ENDS_WITH",
427
+ EQUALS_TO: "EQUALS_TO",
428
+ NOT_EQUALS_TO: "NOT_EQUALS_TO"
429
+ };
430
+ var LongConditionOperator = {
431
+ EQUALS_TO: "EQUALS_TO",
432
+ GREATER_THAN_EQUAL_TO: "GREATER_THAN_EQUAL_TO",
433
+ LESS_THAN_EQUAL_TO: "LESS_THAN_EQUAL_TO",
434
+ NOT_EQUALS_TO: "NOT_EQUALS_TO"
435
+ };
436
+ var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BackupSearchServiceException {
437
+ static {
438
+ __name(this, "ServiceQuotaExceededException");
439
+ }
440
+ name = "ServiceQuotaExceededException";
441
+ $fault = "client";
442
+ /**
443
+ * <p>Identifier of the resource.</p>
444
+ * @public
445
+ */
446
+ resourceId;
447
+ /**
448
+ * <p>Type of resource.</p>
449
+ * @public
450
+ */
451
+ resourceType;
452
+ /**
453
+ * <p>This is the code unique to the originating service with the quota.</p>
454
+ * @public
455
+ */
456
+ serviceCode;
457
+ /**
458
+ * <p>This is the code specific to the quota type.</p>
459
+ * @public
460
+ */
461
+ quotaCode;
462
+ /**
463
+ * @internal
464
+ */
465
+ constructor(opts) {
466
+ super({
467
+ name: "ServiceQuotaExceededException",
468
+ $fault: "client",
469
+ ...opts
470
+ });
471
+ Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
472
+ this.resourceId = opts.resourceId;
473
+ this.resourceType = opts.resourceType;
474
+ this.serviceCode = opts.serviceCode;
475
+ this.quotaCode = opts.quotaCode;
476
+ }
477
+ };
478
+ var ExportJobStatus = {
479
+ COMPLETED: "COMPLETED",
480
+ FAILED: "FAILED",
481
+ RUNNING: "RUNNING"
482
+ };
483
+ var ExportSpecification;
484
+ ((ExportSpecification3) => {
485
+ ExportSpecification3.visit = /* @__PURE__ */ __name((value, visitor) => {
486
+ if (value.s3ExportSpecification !== void 0) return visitor.s3ExportSpecification(value.s3ExportSpecification);
487
+ return visitor._(value.$unknown[0], value.$unknown[1]);
488
+ }, "visit");
489
+ })(ExportSpecification || (ExportSpecification = {}));
490
+ var EBSResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
491
+ ...obj,
492
+ ...obj.FilePath && { FilePath: import_smithy_client.SENSITIVE_STRING }
493
+ }), "EBSResultItemFilterSensitiveLog");
494
+ var S3ResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
495
+ ...obj,
496
+ ...obj.ObjectKey && { ObjectKey: import_smithy_client.SENSITIVE_STRING }
497
+ }), "S3ResultItemFilterSensitiveLog");
498
+ var ResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
499
+ if (obj.S3ResultItem !== void 0) return { S3ResultItem: S3ResultItemFilterSensitiveLog(obj.S3ResultItem) };
500
+ if (obj.EBSResultItem !== void 0) return { EBSResultItem: EBSResultItemFilterSensitiveLog(obj.EBSResultItem) };
501
+ if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
502
+ }, "ResultItemFilterSensitiveLog");
503
+ var ListSearchJobResultsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
504
+ ...obj,
505
+ ...obj.Results && { Results: obj.Results.map((item) => ResultItemFilterSensitiveLog(item)) }
506
+ }), "ListSearchJobResultsOutputFilterSensitiveLog");
507
+
508
+ // src/protocols/Aws_restJson1.ts
509
+ var se_GetSearchJobCommand = /* @__PURE__ */ __name(async (input, context) => {
510
+ const b = (0, import_core.requestBuilder)(input, context);
511
+ const headers = {};
512
+ b.bp("/search-jobs/{SearchJobIdentifier}");
513
+ b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
514
+ let body;
515
+ b.m("GET").h(headers).b(body);
516
+ return b.build();
517
+ }, "se_GetSearchJobCommand");
518
+ var se_GetSearchResultExportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
519
+ const b = (0, import_core.requestBuilder)(input, context);
520
+ const headers = {};
521
+ b.bp("/export-search-jobs/{ExportJobIdentifier}");
522
+ b.p("ExportJobIdentifier", () => input.ExportJobIdentifier, "{ExportJobIdentifier}", false);
523
+ let body;
524
+ b.m("GET").h(headers).b(body);
525
+ return b.build();
526
+ }, "se_GetSearchResultExportJobCommand");
527
+ var se_ListSearchJobBackupsCommand = /* @__PURE__ */ __name(async (input, context) => {
528
+ const b = (0, import_core.requestBuilder)(input, context);
529
+ const headers = {};
530
+ b.bp("/search-jobs/{SearchJobIdentifier}/backups");
531
+ b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
532
+ const query = (0, import_smithy_client.map)({
533
+ [_nT]: [, input[_NT]],
534
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
535
+ });
536
+ let body;
537
+ b.m("GET").h(headers).q(query).b(body);
538
+ return b.build();
539
+ }, "se_ListSearchJobBackupsCommand");
540
+ var se_ListSearchJobResultsCommand = /* @__PURE__ */ __name(async (input, context) => {
541
+ const b = (0, import_core.requestBuilder)(input, context);
542
+ const headers = {};
543
+ b.bp("/search-jobs/{SearchJobIdentifier}/search-results");
544
+ b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
545
+ const query = (0, import_smithy_client.map)({
546
+ [_nT]: [, input[_NT]],
547
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
548
+ });
549
+ let body;
550
+ b.m("GET").h(headers).q(query).b(body);
551
+ return b.build();
552
+ }, "se_ListSearchJobResultsCommand");
553
+ var se_ListSearchJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
554
+ const b = (0, import_core.requestBuilder)(input, context);
555
+ const headers = {};
556
+ b.bp("/search-jobs");
557
+ const query = (0, import_smithy_client.map)({
558
+ [_S]: [, input[_BS]],
559
+ [_NT]: [, input[_NT]],
560
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
561
+ });
562
+ let body;
563
+ b.m("GET").h(headers).q(query).b(body);
564
+ return b.build();
565
+ }, "se_ListSearchJobsCommand");
566
+ var se_ListSearchResultExportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
567
+ const b = (0, import_core.requestBuilder)(input, context);
568
+ const headers = {};
569
+ b.bp("/export-search-jobs");
570
+ const query = (0, import_smithy_client.map)({
571
+ [_S]: [, input[_S]],
572
+ [_SJI]: [, input[_SJI]],
573
+ [_NT]: [, input[_NT]],
574
+ [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
575
+ });
576
+ let body;
577
+ b.m("GET").h(headers).q(query).b(body);
578
+ return b.build();
579
+ }, "se_ListSearchResultExportJobsCommand");
580
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
581
+ const b = (0, import_core.requestBuilder)(input, context);
582
+ const headers = {};
583
+ b.bp("/tags/{ResourceArn}");
584
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
585
+ let body;
586
+ b.m("GET").h(headers).b(body);
587
+ return b.build();
588
+ }, "se_ListTagsForResourceCommand");
589
+ var se_StartSearchJobCommand = /* @__PURE__ */ __name(async (input, context) => {
590
+ const b = (0, import_core.requestBuilder)(input, context);
591
+ const headers = {
592
+ "content-type": "application/json"
593
+ };
594
+ b.bp("/search-jobs");
595
+ let body;
596
+ body = JSON.stringify(
597
+ (0, import_smithy_client.take)(input, {
598
+ ClientToken: [],
599
+ EncryptionKeyArn: [],
600
+ ItemFilters: /* @__PURE__ */ __name((_) => se_ItemFilters(_, context), "ItemFilters"),
601
+ Name: [],
602
+ SearchScope: /* @__PURE__ */ __name((_) => se_SearchScope(_, context), "SearchScope"),
603
+ Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags")
604
+ })
605
+ );
606
+ b.m("PUT").h(headers).b(body);
607
+ return b.build();
608
+ }, "se_StartSearchJobCommand");
609
+ var se_StartSearchResultExportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
610
+ const b = (0, import_core.requestBuilder)(input, context);
611
+ const headers = {
612
+ "content-type": "application/json"
613
+ };
614
+ b.bp("/export-search-jobs");
615
+ let body;
616
+ body = JSON.stringify(
617
+ (0, import_smithy_client.take)(input, {
618
+ ClientToken: [],
619
+ ExportSpecification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ExportSpecification"),
620
+ RoleArn: [],
621
+ SearchJobIdentifier: [],
622
+ Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags")
623
+ })
624
+ );
625
+ b.m("PUT").h(headers).b(body);
626
+ return b.build();
627
+ }, "se_StartSearchResultExportJobCommand");
628
+ var se_StopSearchJobCommand = /* @__PURE__ */ __name(async (input, context) => {
629
+ const b = (0, import_core.requestBuilder)(input, context);
630
+ const headers = {};
631
+ b.bp("/search-jobs/{SearchJobIdentifier}/actions/cancel");
632
+ b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
633
+ let body;
634
+ b.m("PUT").h(headers).b(body);
635
+ return b.build();
636
+ }, "se_StopSearchJobCommand");
637
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
638
+ const b = (0, import_core.requestBuilder)(input, context);
639
+ const headers = {
640
+ "content-type": "application/json"
641
+ };
642
+ b.bp("/tags/{ResourceArn}");
643
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
644
+ let body;
645
+ body = JSON.stringify(
646
+ (0, import_smithy_client.take)(input, {
647
+ Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags")
648
+ })
649
+ );
650
+ b.m("POST").h(headers).b(body);
651
+ return b.build();
652
+ }, "se_TagResourceCommand");
653
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
654
+ const b = (0, import_core.requestBuilder)(input, context);
655
+ const headers = {};
656
+ b.bp("/tags/{ResourceArn}");
657
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
658
+ const query = (0, import_smithy_client.map)({
659
+ [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
660
+ });
661
+ let body;
662
+ b.m("DELETE").h(headers).q(query).b(body);
663
+ return b.build();
664
+ }, "se_UntagResourceCommand");
665
+ var de_GetSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => {
666
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
667
+ return de_CommandError(output, context);
668
+ }
669
+ const contents = (0, import_smithy_client.map)({
670
+ $metadata: deserializeMetadata(output)
671
+ });
672
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
673
+ const doc = (0, import_smithy_client.take)(data, {
674
+ CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"),
675
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
676
+ CurrentSearchProgress: import_smithy_client._json,
677
+ EncryptionKeyArn: import_smithy_client.expectString,
678
+ ItemFilters: /* @__PURE__ */ __name((_) => de_ItemFilters(_, context), "ItemFilters"),
679
+ Name: import_smithy_client.expectString,
680
+ SearchJobArn: import_smithy_client.expectString,
681
+ SearchJobIdentifier: import_smithy_client.expectString,
682
+ SearchScope: /* @__PURE__ */ __name((_) => de_SearchScope(_, context), "SearchScope"),
683
+ SearchScopeSummary: import_smithy_client._json,
684
+ Status: import_smithy_client.expectString,
685
+ StatusMessage: import_smithy_client.expectString
686
+ });
687
+ Object.assign(contents, doc);
688
+ return contents;
689
+ }, "de_GetSearchJobCommand");
690
+ var de_GetSearchResultExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
691
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
692
+ return de_CommandError(output, context);
693
+ }
694
+ const contents = (0, import_smithy_client.map)({
695
+ $metadata: deserializeMetadata(output)
696
+ });
697
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
698
+ const doc = (0, import_smithy_client.take)(data, {
699
+ CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"),
700
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
701
+ ExportJobArn: import_smithy_client.expectString,
702
+ ExportJobIdentifier: import_smithy_client.expectString,
703
+ ExportSpecification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "ExportSpecification"),
704
+ SearchJobArn: import_smithy_client.expectString,
705
+ Status: import_smithy_client.expectString,
706
+ StatusMessage: import_smithy_client.expectString
707
+ });
708
+ Object.assign(contents, doc);
709
+ return contents;
710
+ }, "de_GetSearchResultExportJobCommand");
711
+ var de_ListSearchJobBackupsCommand = /* @__PURE__ */ __name(async (output, context) => {
712
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
713
+ return de_CommandError(output, context);
714
+ }
715
+ const contents = (0, import_smithy_client.map)({
716
+ $metadata: deserializeMetadata(output)
717
+ });
718
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
719
+ const doc = (0, import_smithy_client.take)(data, {
720
+ NextToken: import_smithy_client.expectString,
721
+ Results: /* @__PURE__ */ __name((_) => de_SearchJobBackupsResults(_, context), "Results")
722
+ });
723
+ Object.assign(contents, doc);
724
+ return contents;
725
+ }, "de_ListSearchJobBackupsCommand");
726
+ var de_ListSearchJobResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
727
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
728
+ return de_CommandError(output, context);
729
+ }
730
+ const contents = (0, import_smithy_client.map)({
731
+ $metadata: deserializeMetadata(output)
732
+ });
733
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
734
+ const doc = (0, import_smithy_client.take)(data, {
735
+ NextToken: import_smithy_client.expectString,
736
+ Results: /* @__PURE__ */ __name((_) => de_Results(_, context), "Results")
737
+ });
738
+ Object.assign(contents, doc);
739
+ return contents;
740
+ }, "de_ListSearchJobResultsCommand");
741
+ var de_ListSearchJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
742
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
743
+ return de_CommandError(output, context);
744
+ }
745
+ const contents = (0, import_smithy_client.map)({
746
+ $metadata: deserializeMetadata(output)
747
+ });
748
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
749
+ const doc = (0, import_smithy_client.take)(data, {
750
+ NextToken: import_smithy_client.expectString,
751
+ SearchJobs: /* @__PURE__ */ __name((_) => de_SearchJobs(_, context), "SearchJobs")
752
+ });
753
+ Object.assign(contents, doc);
754
+ return contents;
755
+ }, "de_ListSearchJobsCommand");
756
+ var de_ListSearchResultExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
757
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
758
+ return de_CommandError(output, context);
759
+ }
760
+ const contents = (0, import_smithy_client.map)({
761
+ $metadata: deserializeMetadata(output)
762
+ });
763
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
764
+ const doc = (0, import_smithy_client.take)(data, {
765
+ ExportJobs: /* @__PURE__ */ __name((_) => de_ExportJobSummaries(_, context), "ExportJobs"),
766
+ NextToken: import_smithy_client.expectString
767
+ });
768
+ Object.assign(contents, doc);
769
+ return contents;
770
+ }, "de_ListSearchResultExportJobsCommand");
771
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
772
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
773
+ return de_CommandError(output, context);
774
+ }
775
+ const contents = (0, import_smithy_client.map)({
776
+ $metadata: deserializeMetadata(output)
777
+ });
778
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
779
+ const doc = (0, import_smithy_client.take)(data, {
780
+ Tags: /* @__PURE__ */ __name((_) => de_TagMap(_, context), "Tags")
781
+ });
782
+ Object.assign(contents, doc);
783
+ return contents;
784
+ }, "de_ListTagsForResourceCommand");
785
+ var de_StartSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => {
786
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
787
+ return de_CommandError(output, context);
788
+ }
789
+ const contents = (0, import_smithy_client.map)({
790
+ $metadata: deserializeMetadata(output)
791
+ });
792
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
793
+ const doc = (0, import_smithy_client.take)(data, {
794
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
795
+ SearchJobArn: import_smithy_client.expectString,
796
+ SearchJobIdentifier: import_smithy_client.expectString
797
+ });
798
+ Object.assign(contents, doc);
799
+ return contents;
800
+ }, "de_StartSearchJobCommand");
801
+ var de_StartSearchResultExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
802
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
803
+ return de_CommandError(output, context);
804
+ }
805
+ const contents = (0, import_smithy_client.map)({
806
+ $metadata: deserializeMetadata(output)
807
+ });
808
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
809
+ const doc = (0, import_smithy_client.take)(data, {
810
+ ExportJobArn: import_smithy_client.expectString,
811
+ ExportJobIdentifier: import_smithy_client.expectString
812
+ });
813
+ Object.assign(contents, doc);
814
+ return contents;
815
+ }, "de_StartSearchResultExportJobCommand");
816
+ var de_StopSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => {
817
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
818
+ return de_CommandError(output, context);
819
+ }
820
+ const contents = (0, import_smithy_client.map)({
821
+ $metadata: deserializeMetadata(output)
822
+ });
823
+ await (0, import_smithy_client.collectBody)(output.body, context);
824
+ return contents;
825
+ }, "de_StopSearchJobCommand");
826
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
827
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
828
+ return de_CommandError(output, context);
829
+ }
830
+ const contents = (0, import_smithy_client.map)({
831
+ $metadata: deserializeMetadata(output)
832
+ });
833
+ await (0, import_smithy_client.collectBody)(output.body, context);
834
+ return contents;
835
+ }, "de_TagResourceCommand");
836
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
837
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
838
+ return de_CommandError(output, context);
839
+ }
840
+ const contents = (0, import_smithy_client.map)({
841
+ $metadata: deserializeMetadata(output)
842
+ });
843
+ await (0, import_smithy_client.collectBody)(output.body, context);
844
+ return contents;
845
+ }, "de_UntagResourceCommand");
846
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
847
+ const parsedOutput = {
848
+ ...output,
849
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
850
+ };
851
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
852
+ switch (errorCode) {
853
+ case "AccessDeniedException":
854
+ case "com.amazonaws.backupsearch#AccessDeniedException":
855
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
856
+ case "InternalServerException":
857
+ case "com.amazonaws.backupsearch#InternalServerException":
858
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
859
+ case "ResourceNotFoundException":
860
+ case "com.amazonaws.backupsearch#ResourceNotFoundException":
861
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
862
+ case "ThrottlingException":
863
+ case "com.amazonaws.backupsearch#ThrottlingException":
864
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
865
+ case "ValidationException":
866
+ case "com.amazonaws.backupsearch#ValidationException":
867
+ throw await de_ValidationExceptionRes(parsedOutput, context);
868
+ case "ServiceQuotaExceededException":
869
+ case "com.amazonaws.backupsearch#ServiceQuotaExceededException":
870
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
871
+ case "ConflictException":
872
+ case "com.amazonaws.backupsearch#ConflictException":
873
+ throw await de_ConflictExceptionRes(parsedOutput, context);
874
+ default:
875
+ const parsedBody = parsedOutput.body;
876
+ return throwDefaultError({
877
+ output,
878
+ parsedBody,
879
+ errorCode
880
+ });
881
+ }
882
+ }, "de_CommandError");
883
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(BackupSearchServiceException);
884
+ var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
885
+ const contents = (0, import_smithy_client.map)({});
886
+ const data = parsedOutput.body;
887
+ const doc = (0, import_smithy_client.take)(data, {
888
+ message: import_smithy_client.expectString
889
+ });
890
+ Object.assign(contents, doc);
891
+ const exception = new AccessDeniedException({
892
+ $metadata: deserializeMetadata(parsedOutput),
893
+ ...contents
894
+ });
895
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
896
+ }, "de_AccessDeniedExceptionRes");
897
+ var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
898
+ const contents = (0, import_smithy_client.map)({});
899
+ const data = parsedOutput.body;
900
+ const doc = (0, import_smithy_client.take)(data, {
901
+ message: import_smithy_client.expectString,
902
+ resourceId: import_smithy_client.expectString,
903
+ resourceType: import_smithy_client.expectString
904
+ });
905
+ Object.assign(contents, doc);
906
+ const exception = new ConflictException({
907
+ $metadata: deserializeMetadata(parsedOutput),
908
+ ...contents
909
+ });
910
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
911
+ }, "de_ConflictExceptionRes");
912
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
913
+ const contents = (0, import_smithy_client.map)({
914
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
915
+ });
916
+ const data = parsedOutput.body;
917
+ const doc = (0, import_smithy_client.take)(data, {
918
+ message: import_smithy_client.expectString
919
+ });
920
+ Object.assign(contents, doc);
921
+ const exception = new InternalServerException({
922
+ $metadata: deserializeMetadata(parsedOutput),
923
+ ...contents
924
+ });
925
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
926
+ }, "de_InternalServerExceptionRes");
927
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
928
+ const contents = (0, import_smithy_client.map)({});
929
+ const data = parsedOutput.body;
930
+ const doc = (0, import_smithy_client.take)(data, {
931
+ message: import_smithy_client.expectString,
932
+ resourceId: import_smithy_client.expectString,
933
+ resourceType: import_smithy_client.expectString
934
+ });
935
+ Object.assign(contents, doc);
936
+ const exception = new ResourceNotFoundException({
937
+ $metadata: deserializeMetadata(parsedOutput),
938
+ ...contents
939
+ });
940
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
941
+ }, "de_ResourceNotFoundExceptionRes");
942
+ var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
943
+ const contents = (0, import_smithy_client.map)({});
944
+ const data = parsedOutput.body;
945
+ const doc = (0, import_smithy_client.take)(data, {
946
+ message: import_smithy_client.expectString,
947
+ quotaCode: import_smithy_client.expectString,
948
+ resourceId: import_smithy_client.expectString,
949
+ resourceType: import_smithy_client.expectString,
950
+ serviceCode: import_smithy_client.expectString
951
+ });
952
+ Object.assign(contents, doc);
953
+ const exception = new ServiceQuotaExceededException({
954
+ $metadata: deserializeMetadata(parsedOutput),
955
+ ...contents
956
+ });
957
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
958
+ }, "de_ServiceQuotaExceededExceptionRes");
959
+ var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
960
+ const contents = (0, import_smithy_client.map)({
961
+ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
962
+ });
963
+ const data = parsedOutput.body;
964
+ const doc = (0, import_smithy_client.take)(data, {
965
+ message: import_smithy_client.expectString,
966
+ quotaCode: import_smithy_client.expectString,
967
+ serviceCode: import_smithy_client.expectString
968
+ });
969
+ Object.assign(contents, doc);
970
+ const exception = new ThrottlingException({
971
+ $metadata: deserializeMetadata(parsedOutput),
972
+ ...contents
973
+ });
974
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
975
+ }, "de_ThrottlingExceptionRes");
976
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
977
+ const contents = (0, import_smithy_client.map)({});
978
+ const data = parsedOutput.body;
979
+ const doc = (0, import_smithy_client.take)(data, {
980
+ message: import_smithy_client.expectString
981
+ });
982
+ Object.assign(contents, doc);
983
+ const exception = new ValidationException({
984
+ $metadata: deserializeMetadata(parsedOutput),
985
+ ...contents
986
+ });
987
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
988
+ }, "de_ValidationExceptionRes");
989
+ var se_BackupCreationTimeFilter = /* @__PURE__ */ __name((input, context) => {
990
+ return (0, import_smithy_client.take)(input, {
991
+ CreatedAfter: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "CreatedAfter"),
992
+ CreatedBefore: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "CreatedBefore")
993
+ });
994
+ }, "se_BackupCreationTimeFilter");
995
+ var se_EBSItemFilter = /* @__PURE__ */ __name((input, context) => {
996
+ return (0, import_smithy_client.take)(input, {
997
+ CreationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "CreationTimes"),
998
+ FilePaths: import_smithy_client._json,
999
+ LastModificationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "LastModificationTimes"),
1000
+ Sizes: import_smithy_client._json
1001
+ });
1002
+ }, "se_EBSItemFilter");
1003
+ var se_EBSItemFilters = /* @__PURE__ */ __name((input, context) => {
1004
+ return input.filter((e) => e != null).map((entry) => {
1005
+ return se_EBSItemFilter(entry, context);
1006
+ });
1007
+ }, "se_EBSItemFilters");
1008
+ var se_ItemFilters = /* @__PURE__ */ __name((input, context) => {
1009
+ return (0, import_smithy_client.take)(input, {
1010
+ EBSItemFilters: /* @__PURE__ */ __name((_) => se_EBSItemFilters(_, context), "EBSItemFilters"),
1011
+ S3ItemFilters: /* @__PURE__ */ __name((_) => se_S3ItemFilters(_, context), "S3ItemFilters")
1012
+ });
1013
+ }, "se_ItemFilters");
1014
+ var se_S3ItemFilter = /* @__PURE__ */ __name((input, context) => {
1015
+ return (0, import_smithy_client.take)(input, {
1016
+ CreationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "CreationTimes"),
1017
+ ETags: import_smithy_client._json,
1018
+ ObjectKeys: import_smithy_client._json,
1019
+ Sizes: import_smithy_client._json,
1020
+ VersionIds: import_smithy_client._json
1021
+ });
1022
+ }, "se_S3ItemFilter");
1023
+ var se_S3ItemFilters = /* @__PURE__ */ __name((input, context) => {
1024
+ return input.filter((e) => e != null).map((entry) => {
1025
+ return se_S3ItemFilter(entry, context);
1026
+ });
1027
+ }, "se_S3ItemFilters");
1028
+ var se_SearchScope = /* @__PURE__ */ __name((input, context) => {
1029
+ return (0, import_smithy_client.take)(input, {
1030
+ BackupResourceArns: import_smithy_client._json,
1031
+ BackupResourceCreationTime: /* @__PURE__ */ __name((_) => se_BackupCreationTimeFilter(_, context), "BackupResourceCreationTime"),
1032
+ BackupResourceTags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "BackupResourceTags"),
1033
+ BackupResourceTypes: import_smithy_client._json,
1034
+ SourceResourceArns: import_smithy_client._json
1035
+ });
1036
+ }, "se_SearchScope");
1037
+ var se_TagMap = /* @__PURE__ */ __name((input, context) => {
1038
+ return Object.entries(input).reduce((acc, [key, value]) => {
1039
+ if (value === null) {
1040
+ acc[key] = null;
1041
+ return acc;
1042
+ }
1043
+ acc[key] = value;
1044
+ return acc;
1045
+ }, {});
1046
+ }, "se_TagMap");
1047
+ var se_TimeCondition = /* @__PURE__ */ __name((input, context) => {
1048
+ return (0, import_smithy_client.take)(input, {
1049
+ Operator: [],
1050
+ Value: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Value")
1051
+ });
1052
+ }, "se_TimeCondition");
1053
+ var se_TimeConditionList = /* @__PURE__ */ __name((input, context) => {
1054
+ return input.filter((e) => e != null).map((entry) => {
1055
+ return se_TimeCondition(entry, context);
1056
+ });
1057
+ }, "se_TimeConditionList");
1058
+ var de_BackupCreationTimeFilter = /* @__PURE__ */ __name((output, context) => {
1059
+ return (0, import_smithy_client.take)(output, {
1060
+ CreatedAfter: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAfter"),
1061
+ CreatedBefore: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedBefore")
1062
+ });
1063
+ }, "de_BackupCreationTimeFilter");
1064
+ var de_EBSItemFilter = /* @__PURE__ */ __name((output, context) => {
1065
+ return (0, import_smithy_client.take)(output, {
1066
+ CreationTimes: /* @__PURE__ */ __name((_) => de_TimeConditionList(_, context), "CreationTimes"),
1067
+ FilePaths: import_smithy_client._json,
1068
+ LastModificationTimes: /* @__PURE__ */ __name((_) => de_TimeConditionList(_, context), "LastModificationTimes"),
1069
+ Sizes: import_smithy_client._json
1070
+ });
1071
+ }, "de_EBSItemFilter");
1072
+ var de_EBSItemFilters = /* @__PURE__ */ __name((output, context) => {
1073
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1074
+ return de_EBSItemFilter(entry, context);
1075
+ });
1076
+ return retVal;
1077
+ }, "de_EBSItemFilters");
1078
+ var de_EBSResultItem = /* @__PURE__ */ __name((output, context) => {
1079
+ return (0, import_smithy_client.take)(output, {
1080
+ BackupResourceArn: import_smithy_client.expectString,
1081
+ BackupVaultName: import_smithy_client.expectString,
1082
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1083
+ FilePath: import_smithy_client.expectString,
1084
+ FileSize: import_smithy_client.expectLong,
1085
+ FileSystemIdentifier: import_smithy_client.expectString,
1086
+ LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
1087
+ SourceResourceArn: import_smithy_client.expectString
1088
+ });
1089
+ }, "de_EBSResultItem");
1090
+ var de_ExportJobSummaries = /* @__PURE__ */ __name((output, context) => {
1091
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1092
+ return de_ExportJobSummary(entry, context);
1093
+ });
1094
+ return retVal;
1095
+ }, "de_ExportJobSummaries");
1096
+ var de_ExportJobSummary = /* @__PURE__ */ __name((output, context) => {
1097
+ return (0, import_smithy_client.take)(output, {
1098
+ CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"),
1099
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1100
+ ExportJobArn: import_smithy_client.expectString,
1101
+ ExportJobIdentifier: import_smithy_client.expectString,
1102
+ SearchJobArn: import_smithy_client.expectString,
1103
+ Status: import_smithy_client.expectString,
1104
+ StatusMessage: import_smithy_client.expectString
1105
+ });
1106
+ }, "de_ExportJobSummary");
1107
+ var de_ItemFilters = /* @__PURE__ */ __name((output, context) => {
1108
+ return (0, import_smithy_client.take)(output, {
1109
+ EBSItemFilters: /* @__PURE__ */ __name((_) => de_EBSItemFilters(_, context), "EBSItemFilters"),
1110
+ S3ItemFilters: /* @__PURE__ */ __name((_) => de_S3ItemFilters(_, context), "S3ItemFilters")
1111
+ });
1112
+ }, "de_ItemFilters");
1113
+ var de_ResultItem = /* @__PURE__ */ __name((output, context) => {
1114
+ if (output.EBSResultItem != null) {
1115
+ return {
1116
+ EBSResultItem: de_EBSResultItem(output.EBSResultItem, context)
1117
+ };
1118
+ }
1119
+ if (output.S3ResultItem != null) {
1120
+ return {
1121
+ S3ResultItem: de_S3ResultItem(output.S3ResultItem, context)
1122
+ };
1123
+ }
1124
+ return { $unknown: Object.entries(output)[0] };
1125
+ }, "de_ResultItem");
1126
+ var de_Results = /* @__PURE__ */ __name((output, context) => {
1127
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1128
+ return de_ResultItem((0, import_core2.awsExpectUnion)(entry), context);
1129
+ });
1130
+ return retVal;
1131
+ }, "de_Results");
1132
+ var de_S3ItemFilter = /* @__PURE__ */ __name((output, context) => {
1133
+ return (0, import_smithy_client.take)(output, {
1134
+ CreationTimes: /* @__PURE__ */ __name((_) => de_TimeConditionList(_, context), "CreationTimes"),
1135
+ ETags: import_smithy_client._json,
1136
+ ObjectKeys: import_smithy_client._json,
1137
+ Sizes: import_smithy_client._json,
1138
+ VersionIds: import_smithy_client._json
1139
+ });
1140
+ }, "de_S3ItemFilter");
1141
+ var de_S3ItemFilters = /* @__PURE__ */ __name((output, context) => {
1142
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1143
+ return de_S3ItemFilter(entry, context);
1144
+ });
1145
+ return retVal;
1146
+ }, "de_S3ItemFilters");
1147
+ var de_S3ResultItem = /* @__PURE__ */ __name((output, context) => {
1148
+ return (0, import_smithy_client.take)(output, {
1149
+ BackupResourceArn: import_smithy_client.expectString,
1150
+ BackupVaultName: import_smithy_client.expectString,
1151
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1152
+ ETag: import_smithy_client.expectString,
1153
+ ObjectKey: import_smithy_client.expectString,
1154
+ ObjectSize: import_smithy_client.expectLong,
1155
+ SourceResourceArn: import_smithy_client.expectString,
1156
+ VersionId: import_smithy_client.expectString
1157
+ });
1158
+ }, "de_S3ResultItem");
1159
+ var de_SearchJobBackupsResult = /* @__PURE__ */ __name((output, context) => {
1160
+ return (0, import_smithy_client.take)(output, {
1161
+ BackupCreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "BackupCreationTime"),
1162
+ BackupResourceArn: import_smithy_client.expectString,
1163
+ IndexCreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "IndexCreationTime"),
1164
+ ResourceType: import_smithy_client.expectString,
1165
+ SourceResourceArn: import_smithy_client.expectString,
1166
+ Status: import_smithy_client.expectString,
1167
+ StatusMessage: import_smithy_client.expectString
1168
+ });
1169
+ }, "de_SearchJobBackupsResult");
1170
+ var de_SearchJobBackupsResults = /* @__PURE__ */ __name((output, context) => {
1171
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1172
+ return de_SearchJobBackupsResult(entry, context);
1173
+ });
1174
+ return retVal;
1175
+ }, "de_SearchJobBackupsResults");
1176
+ var de_SearchJobs = /* @__PURE__ */ __name((output, context) => {
1177
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1178
+ return de_SearchJobSummary(entry, context);
1179
+ });
1180
+ return retVal;
1181
+ }, "de_SearchJobs");
1182
+ var de_SearchJobSummary = /* @__PURE__ */ __name((output, context) => {
1183
+ return (0, import_smithy_client.take)(output, {
1184
+ CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"),
1185
+ CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
1186
+ Name: import_smithy_client.expectString,
1187
+ SearchJobArn: import_smithy_client.expectString,
1188
+ SearchJobIdentifier: import_smithy_client.expectString,
1189
+ SearchScopeSummary: import_smithy_client._json,
1190
+ Status: import_smithy_client.expectString,
1191
+ StatusMessage: import_smithy_client.expectString
1192
+ });
1193
+ }, "de_SearchJobSummary");
1194
+ var de_SearchScope = /* @__PURE__ */ __name((output, context) => {
1195
+ return (0, import_smithy_client.take)(output, {
1196
+ BackupResourceArns: import_smithy_client._json,
1197
+ BackupResourceCreationTime: /* @__PURE__ */ __name((_) => de_BackupCreationTimeFilter(_, context), "BackupResourceCreationTime"),
1198
+ BackupResourceTags: /* @__PURE__ */ __name((_) => de_TagMap(_, context), "BackupResourceTags"),
1199
+ BackupResourceTypes: import_smithy_client._json,
1200
+ SourceResourceArns: import_smithy_client._json
1201
+ });
1202
+ }, "de_SearchScope");
1203
+ var de_TagMap = /* @__PURE__ */ __name((output, context) => {
1204
+ return Object.entries(output).reduce((acc, [key, value]) => {
1205
+ if (value === null) {
1206
+ acc[key] = null;
1207
+ return acc;
1208
+ }
1209
+ acc[key] = (0, import_smithy_client.expectString)(value);
1210
+ return acc;
1211
+ }, {});
1212
+ }, "de_TagMap");
1213
+ var de_TimeCondition = /* @__PURE__ */ __name((output, context) => {
1214
+ return (0, import_smithy_client.take)(output, {
1215
+ Operator: import_smithy_client.expectString,
1216
+ Value: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Value")
1217
+ });
1218
+ }, "de_TimeCondition");
1219
+ var de_TimeConditionList = /* @__PURE__ */ __name((output, context) => {
1220
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1221
+ return de_TimeCondition(entry, context);
1222
+ });
1223
+ return retVal;
1224
+ }, "de_TimeConditionList");
1225
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1226
+ httpStatusCode: output.statusCode,
1227
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1228
+ extendedRequestId: output.headers["x-amz-id-2"],
1229
+ cfId: output.headers["x-amz-cf-id"]
1230
+ }), "deserializeMetadata");
1231
+ var _BS = "ByStatus";
1232
+ var _MR = "MaxResults";
1233
+ var _NT = "NextToken";
1234
+ var _S = "Status";
1235
+ var _SJI = "SearchJobIdentifier";
1236
+ var _TK = "TagKeys";
1237
+ var _mR = "maxResults";
1238
+ var _nT = "nextToken";
1239
+ var _rAS = "retryAfterSeconds";
1240
+ var _ra = "retry-after";
1241
+ var _tK = "tagKeys";
1242
+
1243
+ // src/commands/GetSearchJobCommand.ts
1244
+ var GetSearchJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1245
+ return [
1246
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1247
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1248
+ ];
1249
+ }).s("CryoBackupSearchService", "GetSearchJob", {}).n("BackupSearchClient", "GetSearchJobCommand").f(void 0, void 0).ser(se_GetSearchJobCommand).de(de_GetSearchJobCommand).build() {
1250
+ static {
1251
+ __name(this, "GetSearchJobCommand");
1252
+ }
1253
+ };
1254
+
1255
+ // src/commands/GetSearchResultExportJobCommand.ts
1256
+
1257
+
1258
+
1259
+ var GetSearchResultExportJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1260
+ return [
1261
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1262
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1263
+ ];
1264
+ }).s("CryoBackupSearchService", "GetSearchResultExportJob", {}).n("BackupSearchClient", "GetSearchResultExportJobCommand").f(void 0, void 0).ser(se_GetSearchResultExportJobCommand).de(de_GetSearchResultExportJobCommand).build() {
1265
+ static {
1266
+ __name(this, "GetSearchResultExportJobCommand");
1267
+ }
1268
+ };
1269
+
1270
+ // src/commands/ListSearchJobBackupsCommand.ts
1271
+
1272
+
1273
+
1274
+ var ListSearchJobBackupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1275
+ return [
1276
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1277
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1278
+ ];
1279
+ }).s("CryoBackupSearchService", "ListSearchJobBackups", {}).n("BackupSearchClient", "ListSearchJobBackupsCommand").f(void 0, void 0).ser(se_ListSearchJobBackupsCommand).de(de_ListSearchJobBackupsCommand).build() {
1280
+ static {
1281
+ __name(this, "ListSearchJobBackupsCommand");
1282
+ }
1283
+ };
1284
+
1285
+ // src/commands/ListSearchJobResultsCommand.ts
1286
+
1287
+
1288
+
1289
+ var ListSearchJobResultsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1290
+ return [
1291
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1292
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1293
+ ];
1294
+ }).s("CryoBackupSearchService", "ListSearchJobResults", {}).n("BackupSearchClient", "ListSearchJobResultsCommand").f(void 0, ListSearchJobResultsOutputFilterSensitiveLog).ser(se_ListSearchJobResultsCommand).de(de_ListSearchJobResultsCommand).build() {
1295
+ static {
1296
+ __name(this, "ListSearchJobResultsCommand");
1297
+ }
1298
+ };
1299
+
1300
+ // src/commands/ListSearchJobsCommand.ts
1301
+
1302
+
1303
+
1304
+ var ListSearchJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1305
+ return [
1306
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1307
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1308
+ ];
1309
+ }).s("CryoBackupSearchService", "ListSearchJobs", {}).n("BackupSearchClient", "ListSearchJobsCommand").f(void 0, void 0).ser(se_ListSearchJobsCommand).de(de_ListSearchJobsCommand).build() {
1310
+ static {
1311
+ __name(this, "ListSearchJobsCommand");
1312
+ }
1313
+ };
1314
+
1315
+ // src/commands/ListSearchResultExportJobsCommand.ts
1316
+
1317
+
1318
+
1319
+ var ListSearchResultExportJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1320
+ return [
1321
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1322
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1323
+ ];
1324
+ }).s("CryoBackupSearchService", "ListSearchResultExportJobs", {}).n("BackupSearchClient", "ListSearchResultExportJobsCommand").f(void 0, void 0).ser(se_ListSearchResultExportJobsCommand).de(de_ListSearchResultExportJobsCommand).build() {
1325
+ static {
1326
+ __name(this, "ListSearchResultExportJobsCommand");
1327
+ }
1328
+ };
1329
+
1330
+ // src/commands/ListTagsForResourceCommand.ts
1331
+
1332
+
1333
+
1334
+ var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1335
+ return [
1336
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1337
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1338
+ ];
1339
+ }).s("CryoBackupSearchService", "ListTagsForResource", {}).n("BackupSearchClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
1340
+ static {
1341
+ __name(this, "ListTagsForResourceCommand");
1342
+ }
1343
+ };
1344
+
1345
+ // src/commands/StartSearchJobCommand.ts
1346
+
1347
+
1348
+
1349
+ var StartSearchJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1350
+ return [
1351
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1352
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1353
+ ];
1354
+ }).s("CryoBackupSearchService", "StartSearchJob", {}).n("BackupSearchClient", "StartSearchJobCommand").f(void 0, void 0).ser(se_StartSearchJobCommand).de(de_StartSearchJobCommand).build() {
1355
+ static {
1356
+ __name(this, "StartSearchJobCommand");
1357
+ }
1358
+ };
1359
+
1360
+ // src/commands/StartSearchResultExportJobCommand.ts
1361
+
1362
+
1363
+
1364
+ var StartSearchResultExportJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1365
+ return [
1366
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1367
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1368
+ ];
1369
+ }).s("CryoBackupSearchService", "StartSearchResultExportJob", {}).n("BackupSearchClient", "StartSearchResultExportJobCommand").f(void 0, void 0).ser(se_StartSearchResultExportJobCommand).de(de_StartSearchResultExportJobCommand).build() {
1370
+ static {
1371
+ __name(this, "StartSearchResultExportJobCommand");
1372
+ }
1373
+ };
1374
+
1375
+ // src/commands/StopSearchJobCommand.ts
1376
+
1377
+
1378
+
1379
+ var StopSearchJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1380
+ return [
1381
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1382
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1383
+ ];
1384
+ }).s("CryoBackupSearchService", "StopSearchJob", {}).n("BackupSearchClient", "StopSearchJobCommand").f(void 0, void 0).ser(se_StopSearchJobCommand).de(de_StopSearchJobCommand).build() {
1385
+ static {
1386
+ __name(this, "StopSearchJobCommand");
1387
+ }
1388
+ };
1389
+
1390
+ // src/commands/TagResourceCommand.ts
1391
+
1392
+
1393
+
1394
+ var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1395
+ return [
1396
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1397
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1398
+ ];
1399
+ }).s("CryoBackupSearchService", "TagResource", {}).n("BackupSearchClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1400
+ static {
1401
+ __name(this, "TagResourceCommand");
1402
+ }
1403
+ };
1404
+
1405
+ // src/commands/UntagResourceCommand.ts
1406
+
1407
+
1408
+
1409
+ var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1410
+ return [
1411
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1412
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1413
+ ];
1414
+ }).s("CryoBackupSearchService", "UntagResource", {}).n("BackupSearchClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1415
+ static {
1416
+ __name(this, "UntagResourceCommand");
1417
+ }
1418
+ };
1419
+
1420
+ // src/BackupSearch.ts
1421
+ var commands = {
1422
+ GetSearchJobCommand,
1423
+ GetSearchResultExportJobCommand,
1424
+ ListSearchJobBackupsCommand,
1425
+ ListSearchJobResultsCommand,
1426
+ ListSearchJobsCommand,
1427
+ ListSearchResultExportJobsCommand,
1428
+ ListTagsForResourceCommand,
1429
+ StartSearchJobCommand,
1430
+ StartSearchResultExportJobCommand,
1431
+ StopSearchJobCommand,
1432
+ TagResourceCommand,
1433
+ UntagResourceCommand
1434
+ };
1435
+ var BackupSearch = class extends BackupSearchClient {
1436
+ static {
1437
+ __name(this, "BackupSearch");
1438
+ }
1439
+ };
1440
+ (0, import_smithy_client.createAggregatedClient)(commands, BackupSearch);
1441
+
1442
+ // src/pagination/ListSearchJobBackupsPaginator.ts
1443
+
1444
+ var paginateListSearchJobBackups = (0, import_core.createPaginator)(BackupSearchClient, ListSearchJobBackupsCommand, "NextToken", "NextToken", "MaxResults");
1445
+
1446
+ // src/pagination/ListSearchJobResultsPaginator.ts
1447
+
1448
+ var paginateListSearchJobResults = (0, import_core.createPaginator)(BackupSearchClient, ListSearchJobResultsCommand, "NextToken", "NextToken", "MaxResults");
1449
+
1450
+ // src/pagination/ListSearchJobsPaginator.ts
1451
+
1452
+ var paginateListSearchJobs = (0, import_core.createPaginator)(BackupSearchClient, ListSearchJobsCommand, "NextToken", "NextToken", "MaxResults");
1453
+
1454
+ // src/pagination/ListSearchResultExportJobsPaginator.ts
1455
+
1456
+ var paginateListSearchResultExportJobs = (0, import_core.createPaginator)(BackupSearchClient, ListSearchResultExportJobsCommand, "NextToken", "NextToken", "MaxResults");
1457
+ // Annotate the CommonJS export names for ESM import in node:
1458
+
1459
+ 0 && (module.exports = {
1460
+ BackupSearchServiceException,
1461
+ __Client,
1462
+ BackupSearchClient,
1463
+ BackupSearch,
1464
+ $Command,
1465
+ GetSearchJobCommand,
1466
+ GetSearchResultExportJobCommand,
1467
+ ListSearchJobBackupsCommand,
1468
+ ListSearchJobResultsCommand,
1469
+ ListSearchJobsCommand,
1470
+ ListSearchResultExportJobsCommand,
1471
+ ListTagsForResourceCommand,
1472
+ StartSearchJobCommand,
1473
+ StartSearchResultExportJobCommand,
1474
+ StopSearchJobCommand,
1475
+ TagResourceCommand,
1476
+ UntagResourceCommand,
1477
+ paginateListSearchJobBackups,
1478
+ paginateListSearchJobResults,
1479
+ paginateListSearchJobs,
1480
+ paginateListSearchResultExportJobs,
1481
+ AccessDeniedException,
1482
+ ConflictException,
1483
+ InternalServerException,
1484
+ ResourceType,
1485
+ SearchJobState,
1486
+ ResourceNotFoundException,
1487
+ ThrottlingException,
1488
+ ValidationException,
1489
+ ResultItem,
1490
+ TimeConditionOperator,
1491
+ StringConditionOperator,
1492
+ LongConditionOperator,
1493
+ ServiceQuotaExceededException,
1494
+ ExportJobStatus,
1495
+ ExportSpecification,
1496
+ EBSResultItemFilterSensitiveLog,
1497
+ S3ResultItemFilterSensitiveLog,
1498
+ ResultItemFilterSensitiveLog,
1499
+ ListSearchJobResultsOutputFilterSensitiveLog
1500
+ });
1501
+