@aws-sdk/client-backupsearch 3.1075.0 → 3.1076.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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultBackupSearchHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { GetSearchJob$, GetSearchResultExportJob$, ListSearchJobBackups$, ListSearchJobResults$, ListSearchJobs$, ListSearchResultExportJobs$, ListTagsForResource$, StartSearchJob$, StartSearchResultExportJob$, StopSearchJob$, TagResource$, UntagResource$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { BackupSearchServiceException } = require("./models/BackupSearchServiceException");
18
- exports.BackupSearchServiceException = BackupSearchServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultBackupSearchHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "backup-search",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultBackupSearchHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -29,6 +65,715 @@ const commonParams = {
29
65
  Region: { type: "builtInParams", name: "region" },
30
66
  };
31
67
 
68
+ var version = "3.1075.0";
69
+ var packageInfo = {
70
+ version: version};
71
+
72
+ const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
73
+ const _data = {
74
+ conditions: [
75
+ [a, [b]],
76
+ [a, c],
77
+ ["aws.partition", c, "PartitionResult"],
78
+ ["booleanEquals", [{ ref: "UseFIPS" }, true]]
79
+ ],
80
+ results: [
81
+ [-1],
82
+ [-1, "Invalid Configuration: FIPS and custom endpoint are not supported"],
83
+ [b, {}],
84
+ ["https://backup-search-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
85
+ ["https://backup-search.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
86
+ [-1, "Invalid Configuration: Missing Region"]
87
+ ]
88
+ };
89
+ const root = 2;
90
+ const r = 100_000_000;
91
+ const nodes = new Int32Array([
92
+ -1, 1, -1,
93
+ 0, 6, 3,
94
+ 1, 4, r + 5,
95
+ 2, 5, r + 5,
96
+ 3, r + 3, r + 4,
97
+ 3, r + 1, r + 2,
98
+ ]);
99
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
100
+
101
+ const cache = new EndpointCache({
102
+ size: 50,
103
+ params: ["Endpoint", "Region", "UseFIPS"],
104
+ });
105
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
106
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
107
+ endpointParams: endpointParams,
108
+ logger: context.logger,
109
+ }));
110
+ };
111
+ customEndpointFunctions.aws = awsEndpointFunctions;
112
+
113
+ class BackupSearchServiceException extends ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, BackupSearchServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class AccessDeniedException extends BackupSearchServiceException {
121
+ name = "AccessDeniedException";
122
+ $fault = "client";
123
+ constructor(opts) {
124
+ super({
125
+ name: "AccessDeniedException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
130
+ }
131
+ }
132
+ class ConflictException extends BackupSearchServiceException {
133
+ name = "ConflictException";
134
+ $fault = "client";
135
+ resourceId;
136
+ resourceType;
137
+ constructor(opts) {
138
+ super({
139
+ name: "ConflictException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, ConflictException.prototype);
144
+ this.resourceId = opts.resourceId;
145
+ this.resourceType = opts.resourceType;
146
+ }
147
+ }
148
+ class InternalServerException extends BackupSearchServiceException {
149
+ name = "InternalServerException";
150
+ $fault = "server";
151
+ $retryable = {};
152
+ retryAfterSeconds;
153
+ constructor(opts) {
154
+ super({
155
+ name: "InternalServerException",
156
+ $fault: "server",
157
+ ...opts,
158
+ });
159
+ Object.setPrototypeOf(this, InternalServerException.prototype);
160
+ this.retryAfterSeconds = opts.retryAfterSeconds;
161
+ }
162
+ }
163
+ class ResourceNotFoundException extends BackupSearchServiceException {
164
+ name = "ResourceNotFoundException";
165
+ $fault = "client";
166
+ resourceId;
167
+ resourceType;
168
+ constructor(opts) {
169
+ super({
170
+ name: "ResourceNotFoundException",
171
+ $fault: "client",
172
+ ...opts,
173
+ });
174
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
175
+ this.resourceId = opts.resourceId;
176
+ this.resourceType = opts.resourceType;
177
+ }
178
+ }
179
+ class ThrottlingException extends BackupSearchServiceException {
180
+ name = "ThrottlingException";
181
+ $fault = "client";
182
+ $retryable = {
183
+ throttling: true,
184
+ };
185
+ serviceCode;
186
+ quotaCode;
187
+ retryAfterSeconds;
188
+ constructor(opts) {
189
+ super({
190
+ name: "ThrottlingException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
195
+ this.serviceCode = opts.serviceCode;
196
+ this.quotaCode = opts.quotaCode;
197
+ this.retryAfterSeconds = opts.retryAfterSeconds;
198
+ }
199
+ }
200
+ class ValidationException extends BackupSearchServiceException {
201
+ name = "ValidationException";
202
+ $fault = "client";
203
+ constructor(opts) {
204
+ super({
205
+ name: "ValidationException",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, ValidationException.prototype);
210
+ }
211
+ }
212
+ class ServiceQuotaExceededException extends BackupSearchServiceException {
213
+ name = "ServiceQuotaExceededException";
214
+ $fault = "client";
215
+ resourceId;
216
+ resourceType;
217
+ serviceCode;
218
+ quotaCode;
219
+ constructor(opts) {
220
+ super({
221
+ name: "ServiceQuotaExceededException",
222
+ $fault: "client",
223
+ ...opts,
224
+ });
225
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
226
+ this.resourceId = opts.resourceId;
227
+ this.resourceType = opts.resourceType;
228
+ this.serviceCode = opts.serviceCode;
229
+ this.quotaCode = opts.quotaCode;
230
+ }
231
+ }
232
+
233
+ const _ADE = "AccessDeniedException";
234
+ const _BCT = "BackupCreationTime";
235
+ const _BCTF = "BackupCreationTimeFilter";
236
+ const _BRA = "BackupResourceArn";
237
+ const _BRAa = "BackupResourceArns";
238
+ const _BRCT = "BackupResourceCreationTime";
239
+ const _BRT = "BackupResourceTypes";
240
+ const _BRTa = "BackupResourceTags";
241
+ const _BS = "ByStatus";
242
+ const _BVN = "BackupVaultName";
243
+ const _CA = "CreatedAfter";
244
+ const _CB = "CreatedBefore";
245
+ const _CE = "ConflictException";
246
+ const _CSP = "CurrentSearchProgress";
247
+ const _CT = "CreationTimes";
248
+ const _CTl = "ClientToken";
249
+ const _CTo = "CompletionTime";
250
+ const _CTr = "CreationTime";
251
+ const _DB = "DestinationBucket";
252
+ const _DP = "DestinationPrefix";
253
+ const _EBSIF = "EBSItemFilter";
254
+ const _EBSIFt = "EBSItemFilters";
255
+ const _EBSRI = "EBSResultItem";
256
+ const _EJ = "ExportJobs";
257
+ const _EJA = "ExportJobArn";
258
+ const _EJI = "ExportJobIdentifier";
259
+ const _EJS = "ExportJobSummary";
260
+ const _EJSx = "ExportJobSummaries";
261
+ const _EKA = "EncryptionKeyArn";
262
+ const _ES = "ExportSpecification";
263
+ const _ET = "ETags";
264
+ const _ETa = "ETag";
265
+ const _FP = "FilePath";
266
+ const _FPi = "FilePaths";
267
+ const _FS = "FileSize";
268
+ const _FSI = "FileSystemIdentifier";
269
+ const _GSJ = "GetSearchJob";
270
+ const _GSJI = "GetSearchJobInput";
271
+ const _GSJO = "GetSearchJobOutput";
272
+ const _GSREJ = "GetSearchResultExportJob";
273
+ const _GSREJI = "GetSearchResultExportJobInput";
274
+ const _GSREJO = "GetSearchResultExportJobOutput";
275
+ const _ICT = "IndexCreationTime";
276
+ const _IF = "ItemFilters";
277
+ const _IMC = "ItemsMatchedCount";
278
+ const _ISC = "ItemsScannedCount";
279
+ const _ISE = "InternalServerException";
280
+ const _LC = "LongCondition";
281
+ const _LCL = "LongConditionList";
282
+ const _LMT = "LastModificationTimes";
283
+ const _LMTa = "LastModifiedTime";
284
+ const _LSJ = "ListSearchJobs";
285
+ const _LSJB = "ListSearchJobBackups";
286
+ const _LSJBI = "ListSearchJobBackupsInput";
287
+ const _LSJBO = "ListSearchJobBackupsOutput";
288
+ const _LSJI = "ListSearchJobsInput";
289
+ const _LSJO = "ListSearchJobsOutput";
290
+ const _LSJR = "ListSearchJobResults";
291
+ const _LSJRI = "ListSearchJobResultsInput";
292
+ const _LSJRO = "ListSearchJobResultsOutput";
293
+ const _LSREJ = "ListSearchResultExportJobs";
294
+ const _LSREJI = "ListSearchResultExportJobsInput";
295
+ const _LSREJO = "ListSearchResultExportJobsOutput";
296
+ const _LTFR = "ListTagsForResource";
297
+ const _LTFRR = "ListTagsForResourceRequest";
298
+ const _LTFRRi = "ListTagsForResourceResponse";
299
+ const _MR = "MaxResults";
300
+ const _N = "Name";
301
+ const _NT = "NextToken";
302
+ const _O = "Operator";
303
+ const _OK = "ObjectKey";
304
+ const _OKb = "ObjectKeys";
305
+ const _OS = "ObjectSize";
306
+ const _R = "Results";
307
+ const _RA = "Retry-After";
308
+ const _RAe = "ResourceArn";
309
+ const _RAo = "RoleArn";
310
+ const _RI = "ResultItem";
311
+ const _RNFE = "ResourceNotFoundException";
312
+ const _RPSC = "RecoveryPointsScannedCount";
313
+ const _RT = "ResourceType";
314
+ const _S = "Sizes";
315
+ const _SC = "StringCondition";
316
+ const _SCL = "StringConditionList";
317
+ const _SES = "S3ExportSpecification";
318
+ const _SIF = "S3ItemFilters";
319
+ const _SIFt = "S3ItemFilter";
320
+ const _SJ = "SearchJobs";
321
+ const _SJA = "SearchJobArn";
322
+ const _SJBR = "SearchJobBackupsResult";
323
+ const _SJBRe = "SearchJobBackupsResults";
324
+ const _SJI = "SearchJobIdentifier";
325
+ const _SJS = "SearchJobSummary";
326
+ const _SM = "StatusMessage";
327
+ const _SQEE = "ServiceQuotaExceededException";
328
+ const _SRA = "SourceResourceArn";
329
+ const _SRAo = "SourceResourceArns";
330
+ const _SRI = "S3ResultItem";
331
+ const _SS = "SearchScope";
332
+ const _SSJ = "StartSearchJob";
333
+ const _SSJI = "StartSearchJobInput";
334
+ const _SSJIt = "StopSearchJobInput";
335
+ const _SSJO = "StartSearchJobOutput";
336
+ const _SSJOt = "StopSearchJobOutput";
337
+ const _SSJt = "StopSearchJob";
338
+ const _SSREJ = "StartSearchResultExportJob";
339
+ const _SSREJI = "StartSearchResultExportJobInput";
340
+ const _SSREJO = "StartSearchResultExportJobOutput";
341
+ const _SSS = "SearchScopeSummary";
342
+ const _St = "Status";
343
+ const _T = "Tags";
344
+ const _TC = "TimeCondition";
345
+ const _TCL = "TimeConditionList";
346
+ const _TE = "ThrottlingException";
347
+ const _TITSC = "TotalItemsToScanCount";
348
+ const _TK = "TagKeys";
349
+ const _TM = "TagMap";
350
+ const _TR = "TagResource";
351
+ const _TRPTSC = "TotalRecoveryPointsToScanCount";
352
+ const _TRR = "TagResourceRequest";
353
+ const _TRRa = "TagResourceResponse";
354
+ const _UR = "UntagResource";
355
+ const _URR = "UntagResourceRequest";
356
+ const _URRn = "UntagResourceResponse";
357
+ const _V = "Value";
358
+ const _VE = "ValidationException";
359
+ const _VI = "VersionIds";
360
+ const _VIe = "VersionId";
361
+ const _c = "client";
362
+ const _e = "error";
363
+ const _h = "http";
364
+ const _hE = "httpError";
365
+ const _hH = "httpHeader";
366
+ const _hQ = "httpQuery";
367
+ const _m = "message";
368
+ const _mR = "maxResults";
369
+ const _nT = "nextToken";
370
+ const _qC = "quotaCode";
371
+ const _rAS = "retryAfterSeconds";
372
+ const _rI = "resourceId";
373
+ const _rT = "resourceType";
374
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.backupsearch";
375
+ const _sC = "serviceCode";
376
+ const _sES = "s3ExportSpecification";
377
+ const _se = "server";
378
+ const _sp = "sparse";
379
+ const _tK = "tagKeys";
380
+ const n0 = "com.amazonaws.backupsearch";
381
+ const _s_registry = TypeRegistry.for(_s);
382
+ var BackupSearchServiceException$ = [-3, _s, "BackupSearchServiceException", 0, [], []];
383
+ _s_registry.registerError(BackupSearchServiceException$, BackupSearchServiceException);
384
+ const n0_registry = TypeRegistry.for(n0);
385
+ var AccessDeniedException$ = [-3, n0, _ADE,
386
+ { [_e]: _c, [_hE]: 403 },
387
+ [_m],
388
+ [0], 1
389
+ ];
390
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
391
+ var ConflictException$ = [-3, n0, _CE,
392
+ { [_e]: _c, [_hE]: 409 },
393
+ [_m, _rI, _rT],
394
+ [0, 0, 0], 3
395
+ ];
396
+ n0_registry.registerError(ConflictException$, ConflictException);
397
+ var InternalServerException$ = [-3, n0, _ISE,
398
+ { [_e]: _se, [_hE]: 500 },
399
+ [_m, _rAS],
400
+ [0, [1, { [_hH]: _RA }]], 1
401
+ ];
402
+ n0_registry.registerError(InternalServerException$, InternalServerException);
403
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
404
+ { [_e]: _c, [_hE]: 404 },
405
+ [_m, _rI, _rT],
406
+ [0, 0, 0], 3
407
+ ];
408
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
409
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
410
+ { [_e]: _c, [_hE]: 402 },
411
+ [_m, _rI, _rT, _sC, _qC],
412
+ [0, 0, 0, 0, 0], 5
413
+ ];
414
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
415
+ var ThrottlingException$ = [-3, n0, _TE,
416
+ { [_e]: _c, [_hE]: 429 },
417
+ [_m, _sC, _qC, _rAS],
418
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
419
+ ];
420
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
421
+ var ValidationException$ = [-3, n0, _VE,
422
+ { [_e]: _c, [_hE]: 400 },
423
+ [_m],
424
+ [0], 1
425
+ ];
426
+ n0_registry.registerError(ValidationException$, ValidationException);
427
+ const errorTypeRegistries = [
428
+ _s_registry,
429
+ n0_registry,
430
+ ];
431
+ var FilePath = [0, n0, _FP, 8, 0];
432
+ var ObjectKey = [0, n0, _OK, 8, 0];
433
+ var BackupCreationTimeFilter$ = [3, n0, _BCTF,
434
+ 0,
435
+ [_CA, _CB],
436
+ [4, 4]
437
+ ];
438
+ var CurrentSearchProgress$ = [3, n0, _CSP,
439
+ 0,
440
+ [_RPSC, _ISC, _IMC],
441
+ [1, 1, 1]
442
+ ];
443
+ var EBSItemFilter$ = [3, n0, _EBSIF,
444
+ 0,
445
+ [_FPi, _S, _CT, _LMT],
446
+ [() => StringConditionList, () => LongConditionList, () => TimeConditionList, () => TimeConditionList]
447
+ ];
448
+ var EBSResultItem$ = [3, n0, _EBSRI,
449
+ 0,
450
+ [_BRA, _SRA, _BVN, _FSI, _FP, _FS, _CTr, _LMTa],
451
+ [0, 0, 0, 0, [() => FilePath, 0], 1, 4, 4]
452
+ ];
453
+ var ExportJobSummary$ = [3, n0, _EJS,
454
+ 0,
455
+ [_EJI, _EJA, _St, _CTr, _CTo, _SM, _SJA],
456
+ [0, 0, 0, 4, 4, 0, 0], 1
457
+ ];
458
+ var GetSearchJobInput$ = [3, n0, _GSJI,
459
+ 0,
460
+ [_SJI],
461
+ [[0, 1]], 1
462
+ ];
463
+ var GetSearchJobOutput$ = [3, n0, _GSJO,
464
+ 0,
465
+ [_St, _SS, _IF, _CTr, _SJI, _SJA, _N, _SSS, _CSP, _SM, _EKA, _CTo],
466
+ [0, [() => SearchScope$, 0], () => ItemFilters$, 4, 0, 0, 0, () => SearchScopeSummary$, () => CurrentSearchProgress$, 0, 0, 4], 6
467
+ ];
468
+ var GetSearchResultExportJobInput$ = [3, n0, _GSREJI,
469
+ 0,
470
+ [_EJI],
471
+ [[0, 1]], 1
472
+ ];
473
+ var GetSearchResultExportJobOutput$ = [3, n0, _GSREJO,
474
+ 0,
475
+ [_EJI, _EJA, _St, _CTr, _CTo, _SM, _ES, _SJA],
476
+ [0, 0, 0, 4, 4, 0, () => ExportSpecification$, 0], 1
477
+ ];
478
+ var ItemFilters$ = [3, n0, _IF,
479
+ 0,
480
+ [_SIF, _EBSIFt],
481
+ [() => S3ItemFilters, () => EBSItemFilters]
482
+ ];
483
+ var ListSearchJobBackupsInput$ = [3, n0, _LSJBI,
484
+ 0,
485
+ [_SJI, _NT, _MR],
486
+ [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
487
+ ];
488
+ var ListSearchJobBackupsOutput$ = [3, n0, _LSJBO,
489
+ 0,
490
+ [_R, _NT],
491
+ [() => SearchJobBackupsResults, 0], 1
492
+ ];
493
+ var ListSearchJobResultsInput$ = [3, n0, _LSJRI,
494
+ 0,
495
+ [_SJI, _NT, _MR],
496
+ [[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
497
+ ];
498
+ var ListSearchJobResultsOutput$ = [3, n0, _LSJRO,
499
+ 0,
500
+ [_R, _NT],
501
+ [[() => Results, 0], 0], 1
502
+ ];
503
+ var ListSearchJobsInput$ = [3, n0, _LSJI,
504
+ 0,
505
+ [_BS, _NT, _MR],
506
+ [[0, { [_hQ]: _St }], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]
507
+ ];
508
+ var ListSearchJobsOutput$ = [3, n0, _LSJO,
509
+ 0,
510
+ [_SJ, _NT],
511
+ [() => SearchJobs, 0], 1
512
+ ];
513
+ var ListSearchResultExportJobsInput$ = [3, n0, _LSREJI,
514
+ 0,
515
+ [_St, _SJI, _NT, _MR],
516
+ [[0, { [_hQ]: _St }], [0, { [_hQ]: _SJI }], [0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]
517
+ ];
518
+ var ListSearchResultExportJobsOutput$ = [3, n0, _LSREJO,
519
+ 0,
520
+ [_EJ, _NT],
521
+ [() => ExportJobSummaries, 0], 1
522
+ ];
523
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
524
+ 0,
525
+ [_RAe],
526
+ [[0, 1]], 1
527
+ ];
528
+ var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
529
+ 0,
530
+ [_T],
531
+ [[() => TagMap, 0]]
532
+ ];
533
+ var LongCondition$ = [3, n0, _LC,
534
+ 0,
535
+ [_V, _O],
536
+ [1, 0], 1
537
+ ];
538
+ var S3ExportSpecification$ = [3, n0, _SES,
539
+ 0,
540
+ [_DB, _DP],
541
+ [0, 0], 1
542
+ ];
543
+ var S3ItemFilter$ = [3, n0, _SIFt,
544
+ 0,
545
+ [_OKb, _S, _CT, _VI, _ET],
546
+ [() => StringConditionList, () => LongConditionList, () => TimeConditionList, () => StringConditionList, () => StringConditionList]
547
+ ];
548
+ var S3ResultItem$ = [3, n0, _SRI,
549
+ 0,
550
+ [_BRA, _SRA, _BVN, _OK, _OS, _CTr, _ETa, _VIe],
551
+ [0, 0, 0, [() => ObjectKey, 0], 1, 4, 0, 0]
552
+ ];
553
+ var SearchJobBackupsResult$ = [3, n0, _SJBR,
554
+ 0,
555
+ [_St, _SM, _RT, _BRA, _SRA, _ICT, _BCT],
556
+ [0, 0, 0, 0, 0, 4, 4]
557
+ ];
558
+ var SearchJobSummary$ = [3, n0, _SJS,
559
+ 0,
560
+ [_SJI, _SJA, _N, _St, _CTr, _CTo, _SSS, _SM],
561
+ [0, 0, 0, 0, 4, 4, () => SearchScopeSummary$, 0]
562
+ ];
563
+ var SearchScope$ = [3, n0, _SS,
564
+ 0,
565
+ [_BRT, _BRCT, _SRAo, _BRAa, _BRTa],
566
+ [64 | 0, () => BackupCreationTimeFilter$, 64 | 0, 64 | 0, [() => TagMap, 0]], 1
567
+ ];
568
+ var SearchScopeSummary$ = [3, n0, _SSS,
569
+ 0,
570
+ [_TRPTSC, _TITSC],
571
+ [1, 1]
572
+ ];
573
+ var StartSearchJobInput$ = [3, n0, _SSJI,
574
+ 0,
575
+ [_SS, _T, _N, _EKA, _CTl, _IF],
576
+ [[() => SearchScope$, 0], [() => TagMap, 0], 0, 0, 0, () => ItemFilters$], 1
577
+ ];
578
+ var StartSearchJobOutput$ = [3, n0, _SSJO,
579
+ 0,
580
+ [_SJA, _CTr, _SJI],
581
+ [0, 4, 0]
582
+ ];
583
+ var StartSearchResultExportJobInput$ = [3, n0, _SSREJI,
584
+ 0,
585
+ [_SJI, _ES, _CTl, _T, _RAo],
586
+ [0, () => ExportSpecification$, 0, [() => TagMap, 0], 0], 2
587
+ ];
588
+ var StartSearchResultExportJobOutput$ = [3, n0, _SSREJO,
589
+ 0,
590
+ [_EJI, _EJA],
591
+ [0, 0], 1
592
+ ];
593
+ var StopSearchJobInput$ = [3, n0, _SSJIt,
594
+ 0,
595
+ [_SJI],
596
+ [[0, 1]], 1
597
+ ];
598
+ var StopSearchJobOutput$ = [3, n0, _SSJOt,
599
+ 0,
600
+ [],
601
+ []
602
+ ];
603
+ var StringCondition$ = [3, n0, _SC,
604
+ 0,
605
+ [_V, _O],
606
+ [0, 0], 1
607
+ ];
608
+ var TagResourceRequest$ = [3, n0, _TRR,
609
+ 0,
610
+ [_RAe, _T],
611
+ [[0, 1], [() => TagMap, 0]], 2
612
+ ];
613
+ var TagResourceResponse$ = [3, n0, _TRRa,
614
+ 0,
615
+ [],
616
+ []
617
+ ];
618
+ var TimeCondition$ = [3, n0, _TC,
619
+ 0,
620
+ [_V, _O],
621
+ [4, 0], 1
622
+ ];
623
+ var UntagResourceRequest$ = [3, n0, _URR,
624
+ 0,
625
+ [_RAe, _TK],
626
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
627
+ ];
628
+ var UntagResourceResponse$ = [3, n0, _URRn,
629
+ 0,
630
+ [],
631
+ []
632
+ ];
633
+ var EBSItemFilters = [1, n0, _EBSIFt,
634
+ 0, () => EBSItemFilter$
635
+ ];
636
+ var ExportJobSummaries = [1, n0, _EJSx,
637
+ 0, () => ExportJobSummary$
638
+ ];
639
+ var LongConditionList = [1, n0, _LCL,
640
+ 0, () => LongCondition$
641
+ ];
642
+ var Results = [1, n0, _R,
643
+ 0, [() => ResultItem$,
644
+ 0]
645
+ ];
646
+ var S3ItemFilters = [1, n0, _SIF,
647
+ 0, () => S3ItemFilter$
648
+ ];
649
+ var SearchJobBackupsResults = [1, n0, _SJBRe,
650
+ 0, () => SearchJobBackupsResult$
651
+ ];
652
+ var SearchJobs = [1, n0, _SJ,
653
+ 0, () => SearchJobSummary$
654
+ ];
655
+ var StringConditionList = [1, n0, _SCL,
656
+ 0, () => StringCondition$
657
+ ];
658
+ var TimeConditionList = [1, n0, _TCL,
659
+ 0, () => TimeCondition$
660
+ ];
661
+ var TagMap = [2, n0, _TM,
662
+ { [_sp]: 1 }, 0, 0
663
+ ];
664
+ var ExportSpecification$ = [4, n0, _ES,
665
+ 0,
666
+ [_sES],
667
+ [() => S3ExportSpecification$]
668
+ ];
669
+ var ResultItem$ = [4, n0, _RI,
670
+ 0,
671
+ [_SRI, _EBSRI],
672
+ [[() => S3ResultItem$, 0], [() => EBSResultItem$, 0]]
673
+ ];
674
+ var GetSearchJob$ = [9, n0, _GSJ,
675
+ { [_h]: ["GET", "/search-jobs/{SearchJobIdentifier}", 200] }, () => GetSearchJobInput$, () => GetSearchJobOutput$
676
+ ];
677
+ var GetSearchResultExportJob$ = [9, n0, _GSREJ,
678
+ { [_h]: ["GET", "/export-search-jobs/{ExportJobIdentifier}", 200] }, () => GetSearchResultExportJobInput$, () => GetSearchResultExportJobOutput$
679
+ ];
680
+ var ListSearchJobBackups$ = [9, n0, _LSJB,
681
+ { [_h]: ["GET", "/search-jobs/{SearchJobIdentifier}/backups", 200] }, () => ListSearchJobBackupsInput$, () => ListSearchJobBackupsOutput$
682
+ ];
683
+ var ListSearchJobResults$ = [9, n0, _LSJR,
684
+ { [_h]: ["GET", "/search-jobs/{SearchJobIdentifier}/search-results", 200] }, () => ListSearchJobResultsInput$, () => ListSearchJobResultsOutput$
685
+ ];
686
+ var ListSearchJobs$ = [9, n0, _LSJ,
687
+ { [_h]: ["GET", "/search-jobs", 200] }, () => ListSearchJobsInput$, () => ListSearchJobsOutput$
688
+ ];
689
+ var ListSearchResultExportJobs$ = [9, n0, _LSREJ,
690
+ { [_h]: ["GET", "/export-search-jobs", 200] }, () => ListSearchResultExportJobsInput$, () => ListSearchResultExportJobsOutput$
691
+ ];
692
+ var ListTagsForResource$ = [9, n0, _LTFR,
693
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
694
+ ];
695
+ var StartSearchJob$ = [9, n0, _SSJ,
696
+ { [_h]: ["PUT", "/search-jobs", 200] }, () => StartSearchJobInput$, () => StartSearchJobOutput$
697
+ ];
698
+ var StartSearchResultExportJob$ = [9, n0, _SSREJ,
699
+ { [_h]: ["PUT", "/export-search-jobs", 200] }, () => StartSearchResultExportJobInput$, () => StartSearchResultExportJobOutput$
700
+ ];
701
+ var StopSearchJob$ = [9, n0, _SSJt,
702
+ { [_h]: ["PUT", "/search-jobs/{SearchJobIdentifier}/actions/cancel", 200] }, () => StopSearchJobInput$, () => StopSearchJobOutput$
703
+ ];
704
+ var TagResource$ = [9, n0, _TR,
705
+ { [_h]: ["POST", "/tags/{ResourceArn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
706
+ ];
707
+ var UntagResource$ = [9, n0, _UR,
708
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
709
+ ];
710
+
711
+ const getRuntimeConfig$1 = (config) => {
712
+ return {
713
+ apiVersion: "2018-05-10",
714
+ base64Decoder: config?.base64Decoder ?? fromBase64,
715
+ base64Encoder: config?.base64Encoder ?? toBase64,
716
+ disableHostPrefix: config?.disableHostPrefix ?? false,
717
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
718
+ extensions: config?.extensions ?? [],
719
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultBackupSearchHttpAuthSchemeProvider,
720
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
721
+ {
722
+ schemeId: "aws.auth#sigv4",
723
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
724
+ signer: new AwsSdkSigV4Signer(),
725
+ },
726
+ ],
727
+ logger: config?.logger ?? new NoOpLogger(),
728
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
729
+ protocolSettings: config?.protocolSettings ?? {
730
+ defaultNamespace: "com.amazonaws.backupsearch",
731
+ errorTypeRegistries,
732
+ version: "2018-05-10",
733
+ serviceTarget: "CryoBackupSearchService",
734
+ },
735
+ serviceId: config?.serviceId ?? "BackupSearch",
736
+ urlParser: config?.urlParser ?? parseUrl,
737
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
738
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
739
+ };
740
+ };
741
+
742
+ const getRuntimeConfig = (config) => {
743
+ emitWarningIfUnsupportedVersion(process.version);
744
+ const defaultsMode = resolveDefaultsModeConfig(config);
745
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
746
+ const clientSharedValues = getRuntimeConfig$1(config);
747
+ emitWarningIfUnsupportedVersion$1(process.version);
748
+ const loaderConfig = {
749
+ profile: config?.profile,
750
+ logger: clientSharedValues.logger,
751
+ };
752
+ return {
753
+ ...clientSharedValues,
754
+ ...config,
755
+ runtime: "node",
756
+ defaultsMode,
757
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
758
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
759
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
760
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
761
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
762
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
763
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
764
+ retryMode: config?.retryMode ??
765
+ loadConfig({
766
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
767
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
768
+ }, config),
769
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
770
+ streamCollector: config?.streamCollector ?? streamCollector,
771
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
772
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
773
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
774
+ };
775
+ };
776
+
32
777
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
778
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
779
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -324,26 +1069,97 @@ const ExportJobStatus = {
324
1069
  RUNNING: "RUNNING",
325
1070
  };
326
1071
 
1072
+ exports.AccessDeniedException = AccessDeniedException;
1073
+ exports.AccessDeniedException$ = AccessDeniedException$;
1074
+ exports.BackupCreationTimeFilter$ = BackupCreationTimeFilter$;
327
1075
  exports.BackupSearch = BackupSearch;
328
1076
  exports.BackupSearchClient = BackupSearchClient;
1077
+ exports.BackupSearchServiceException = BackupSearchServiceException;
1078
+ exports.BackupSearchServiceException$ = BackupSearchServiceException$;
1079
+ exports.ConflictException = ConflictException;
1080
+ exports.ConflictException$ = ConflictException$;
1081
+ exports.CurrentSearchProgress$ = CurrentSearchProgress$;
1082
+ exports.EBSItemFilter$ = EBSItemFilter$;
1083
+ exports.EBSResultItem$ = EBSResultItem$;
329
1084
  exports.ExportJobStatus = ExportJobStatus;
1085
+ exports.ExportJobSummary$ = ExportJobSummary$;
1086
+ exports.ExportSpecification$ = ExportSpecification$;
1087
+ exports.GetSearchJob$ = GetSearchJob$;
330
1088
  exports.GetSearchJobCommand = GetSearchJobCommand;
1089
+ exports.GetSearchJobInput$ = GetSearchJobInput$;
1090
+ exports.GetSearchJobOutput$ = GetSearchJobOutput$;
1091
+ exports.GetSearchResultExportJob$ = GetSearchResultExportJob$;
331
1092
  exports.GetSearchResultExportJobCommand = GetSearchResultExportJobCommand;
1093
+ exports.GetSearchResultExportJobInput$ = GetSearchResultExportJobInput$;
1094
+ exports.GetSearchResultExportJobOutput$ = GetSearchResultExportJobOutput$;
1095
+ exports.InternalServerException = InternalServerException;
1096
+ exports.InternalServerException$ = InternalServerException$;
1097
+ exports.ItemFilters$ = ItemFilters$;
1098
+ exports.ListSearchJobBackups$ = ListSearchJobBackups$;
332
1099
  exports.ListSearchJobBackupsCommand = ListSearchJobBackupsCommand;
1100
+ exports.ListSearchJobBackupsInput$ = ListSearchJobBackupsInput$;
1101
+ exports.ListSearchJobBackupsOutput$ = ListSearchJobBackupsOutput$;
1102
+ exports.ListSearchJobResults$ = ListSearchJobResults$;
333
1103
  exports.ListSearchJobResultsCommand = ListSearchJobResultsCommand;
1104
+ exports.ListSearchJobResultsInput$ = ListSearchJobResultsInput$;
1105
+ exports.ListSearchJobResultsOutput$ = ListSearchJobResultsOutput$;
1106
+ exports.ListSearchJobs$ = ListSearchJobs$;
334
1107
  exports.ListSearchJobsCommand = ListSearchJobsCommand;
1108
+ exports.ListSearchJobsInput$ = ListSearchJobsInput$;
1109
+ exports.ListSearchJobsOutput$ = ListSearchJobsOutput$;
1110
+ exports.ListSearchResultExportJobs$ = ListSearchResultExportJobs$;
335
1111
  exports.ListSearchResultExportJobsCommand = ListSearchResultExportJobsCommand;
1112
+ exports.ListSearchResultExportJobsInput$ = ListSearchResultExportJobsInput$;
1113
+ exports.ListSearchResultExportJobsOutput$ = ListSearchResultExportJobsOutput$;
1114
+ exports.ListTagsForResource$ = ListTagsForResource$;
336
1115
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1116
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1117
+ exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1118
+ exports.LongCondition$ = LongCondition$;
337
1119
  exports.LongConditionOperator = LongConditionOperator;
1120
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1121
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
338
1122
  exports.ResourceType = ResourceType;
1123
+ exports.ResultItem$ = ResultItem$;
1124
+ exports.S3ExportSpecification$ = S3ExportSpecification$;
1125
+ exports.S3ItemFilter$ = S3ItemFilter$;
1126
+ exports.S3ResultItem$ = S3ResultItem$;
1127
+ exports.SearchJobBackupsResult$ = SearchJobBackupsResult$;
339
1128
  exports.SearchJobState = SearchJobState;
1129
+ exports.SearchJobSummary$ = SearchJobSummary$;
1130
+ exports.SearchScope$ = SearchScope$;
1131
+ exports.SearchScopeSummary$ = SearchScopeSummary$;
1132
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1133
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1134
+ exports.StartSearchJob$ = StartSearchJob$;
340
1135
  exports.StartSearchJobCommand = StartSearchJobCommand;
1136
+ exports.StartSearchJobInput$ = StartSearchJobInput$;
1137
+ exports.StartSearchJobOutput$ = StartSearchJobOutput$;
1138
+ exports.StartSearchResultExportJob$ = StartSearchResultExportJob$;
341
1139
  exports.StartSearchResultExportJobCommand = StartSearchResultExportJobCommand;
1140
+ exports.StartSearchResultExportJobInput$ = StartSearchResultExportJobInput$;
1141
+ exports.StartSearchResultExportJobOutput$ = StartSearchResultExportJobOutput$;
1142
+ exports.StopSearchJob$ = StopSearchJob$;
342
1143
  exports.StopSearchJobCommand = StopSearchJobCommand;
1144
+ exports.StopSearchJobInput$ = StopSearchJobInput$;
1145
+ exports.StopSearchJobOutput$ = StopSearchJobOutput$;
1146
+ exports.StringCondition$ = StringCondition$;
343
1147
  exports.StringConditionOperator = StringConditionOperator;
1148
+ exports.TagResource$ = TagResource$;
344
1149
  exports.TagResourceCommand = TagResourceCommand;
1150
+ exports.TagResourceRequest$ = TagResourceRequest$;
1151
+ exports.TagResourceResponse$ = TagResourceResponse$;
1152
+ exports.ThrottlingException = ThrottlingException;
1153
+ exports.ThrottlingException$ = ThrottlingException$;
1154
+ exports.TimeCondition$ = TimeCondition$;
345
1155
  exports.TimeConditionOperator = TimeConditionOperator;
1156
+ exports.UntagResource$ = UntagResource$;
346
1157
  exports.UntagResourceCommand = UntagResourceCommand;
1158
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1159
+ exports.UntagResourceResponse$ = UntagResourceResponse$;
1160
+ exports.ValidationException = ValidationException;
1161
+ exports.ValidationException$ = ValidationException$;
1162
+ exports.errorTypeRegistries = errorTypeRegistries;
347
1163
  exports.paginateListSearchJobBackups = paginateListSearchJobBackups;
348
1164
  exports.paginateListSearchJobResults = paginateListSearchJobResults;
349
1165
  exports.paginateListSearchJobs = paginateListSearchJobs;