@aws-sdk/client-backupsearch 3.1068.0 → 3.1069.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.
@@ -1,17 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultBackupSearchHttpAuthSchemeProvider = exports.defaultBackupSearchHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultBackupSearchHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultBackupSearchHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
4
  return {
8
- operation: (0, client_1.getSmithyContext)(context).operation,
9
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
5
+ operation: getSmithyContext(context).operation,
6
+ region: await normalizeProvider(config.region)() || (() => {
10
7
  throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
11
8
  })(),
12
9
  };
13
10
  };
14
- exports.defaultBackupSearchHttpAuthSchemeParametersProvider = defaultBackupSearchHttpAuthSchemeParametersProvider;
15
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
16
12
  return {
17
13
  schemeId: "aws.auth#sigv4",
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
27
23
  }),
28
24
  };
29
25
  }
30
- const defaultBackupSearchHttpAuthSchemeProvider = (authParameters) => {
26
+ exports.defaultBackupSearchHttpAuthSchemeProvider = (authParameters) => {
31
27
  const options = [];
32
28
  switch (authParameters.operation) {
33
29
  default: {
@@ -36,11 +32,9 @@ const defaultBackupSearchHttpAuthSchemeProvider = (authParameters) => {
36
32
  }
37
33
  return options;
38
34
  };
39
- exports.defaultBackupSearchHttpAuthSchemeProvider = defaultBackupSearchHttpAuthSchemeProvider;
40
- const resolveHttpAuthSchemeConfig = (config) => {
41
- const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
35
+ exports.resolveHttpAuthSchemeConfig = (config) => {
36
+ const config_0 = resolveAwsSdkSigV4Config(config);
42
37
  return Object.assign(config_0, {
43
- authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
44
39
  });
45
40
  };
46
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.bdd = void 0;
4
- const endpoints_1 = require("@smithy/core/endpoints");
1
+ const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
5
2
  const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
6
3
  const _data = {
7
4
  conditions: [
@@ -29,4 +26,4 @@ const nodes = new Int32Array([
29
26
  3, r + 3, r + 4,
30
27
  3, r + 1, r + 2,
31
28
  ]);
32
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
29
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
5
- const endpoints_1 = require("@smithy/core/endpoints");
6
- const bdd_1 = require("./bdd");
7
- const cache = new endpoints_1.EndpointCache({
1
+ const { awsEndpointFunctions } = require("@aws-sdk/core/client");
2
+ const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
3
+ const { bdd } = require("./bdd");
4
+ const cache = new EndpointCache({
8
5
  size: 50,
9
6
  params: ["Endpoint", "Region", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
8
+ exports.defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
13
10
  endpointParams: endpointParams,
14
11
  logger: context.logger,
15
12
  }));
16
13
  };
17
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,18 +1,21 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var errors = require('./models/errors');
15
- var BackupSearchServiceException = require('./models/BackupSearchServiceException');
1
+ var __exportStar = (m, e) => { Object.assign(e, m); };
2
+ const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
+ const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
+ const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
+ exports.$Command = Command;
6
+ 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;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -66,197 +69,197 @@ const resolveHttpAuthRuntimeConfig = (config) => {
66
69
  };
67
70
 
68
71
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
69
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
72
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
70
73
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
71
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
74
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
72
75
  };
73
76
 
74
- class BackupSearchClient extends client.Client {
77
+ class BackupSearchClient extends Client {
75
78
  config;
76
79
  constructor(...[configuration]) {
77
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
80
+ const _config_0 = getRuntimeConfig(configuration || {});
78
81
  super(_config_0);
79
82
  this.initConfig = _config_0;
80
83
  const _config_1 = resolveClientEndpointParameters(_config_0);
81
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
82
- const _config_3 = retry.resolveRetryConfig(_config_2);
83
- const _config_4 = config.resolveRegionConfig(_config_3);
84
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
85
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
86
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
84
+ const _config_2 = resolveUserAgentConfig(_config_1);
85
+ const _config_3 = resolveRetryConfig(_config_2);
86
+ const _config_4 = resolveRegionConfig(_config_3);
87
+ const _config_5 = resolveHostHeaderConfig(_config_4);
88
+ const _config_6 = resolveEndpointConfig(_config_5);
89
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
87
90
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
88
91
  this.config = _config_8;
89
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
90
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
91
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
92
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
93
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
94
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
95
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
96
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
97
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBackupSearchHttpAuthSchemeParametersProvider,
98
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
92
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
93
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
94
+ this.middlewareStack.use(getRetryPlugin(this.config));
95
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
96
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
97
+ this.middlewareStack.use(getLoggerPlugin(this.config));
98
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
99
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
100
+ httpAuthSchemeParametersProvider: defaultBackupSearchHttpAuthSchemeParametersProvider,
101
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
99
102
  "aws.auth#sigv4": config.credentials,
100
103
  }),
101
104
  }));
102
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
105
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
103
106
  }
104
107
  destroy() {
105
108
  super.destroy();
106
109
  }
107
110
  }
108
111
 
109
- class GetSearchJobCommand extends client.Command
112
+ class GetSearchJobCommand extends Command
110
113
  .classBuilder()
111
114
  .ep(commonParams)
112
115
  .m(function (Command, cs, config, o) {
113
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
116
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
114
117
  })
115
118
  .s("CryoBackupSearchService", "GetSearchJob", {})
116
119
  .n("BackupSearchClient", "GetSearchJobCommand")
117
- .sc(schemas_0.GetSearchJob$)
120
+ .sc(GetSearchJob$)
118
121
  .build() {
119
122
  }
120
123
 
121
- class GetSearchResultExportJobCommand extends client.Command
124
+ class GetSearchResultExportJobCommand extends Command
122
125
  .classBuilder()
123
126
  .ep(commonParams)
124
127
  .m(function (Command, cs, config, o) {
125
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
128
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
126
129
  })
127
130
  .s("CryoBackupSearchService", "GetSearchResultExportJob", {})
128
131
  .n("BackupSearchClient", "GetSearchResultExportJobCommand")
129
- .sc(schemas_0.GetSearchResultExportJob$)
132
+ .sc(GetSearchResultExportJob$)
130
133
  .build() {
131
134
  }
132
135
 
133
- class ListSearchJobBackupsCommand extends client.Command
136
+ class ListSearchJobBackupsCommand extends Command
134
137
  .classBuilder()
135
138
  .ep(commonParams)
136
139
  .m(function (Command, cs, config, o) {
137
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
140
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
138
141
  })
139
142
  .s("CryoBackupSearchService", "ListSearchJobBackups", {})
140
143
  .n("BackupSearchClient", "ListSearchJobBackupsCommand")
141
- .sc(schemas_0.ListSearchJobBackups$)
144
+ .sc(ListSearchJobBackups$)
142
145
  .build() {
143
146
  }
144
147
 
145
- class ListSearchJobResultsCommand extends client.Command
148
+ class ListSearchJobResultsCommand extends Command
146
149
  .classBuilder()
147
150
  .ep(commonParams)
148
151
  .m(function (Command, cs, config, o) {
149
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
152
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
150
153
  })
151
154
  .s("CryoBackupSearchService", "ListSearchJobResults", {})
152
155
  .n("BackupSearchClient", "ListSearchJobResultsCommand")
153
- .sc(schemas_0.ListSearchJobResults$)
156
+ .sc(ListSearchJobResults$)
154
157
  .build() {
155
158
  }
156
159
 
157
- class ListSearchJobsCommand extends client.Command
160
+ class ListSearchJobsCommand extends Command
158
161
  .classBuilder()
159
162
  .ep(commonParams)
160
163
  .m(function (Command, cs, config, o) {
161
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
164
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
162
165
  })
163
166
  .s("CryoBackupSearchService", "ListSearchJobs", {})
164
167
  .n("BackupSearchClient", "ListSearchJobsCommand")
165
- .sc(schemas_0.ListSearchJobs$)
168
+ .sc(ListSearchJobs$)
166
169
  .build() {
167
170
  }
168
171
 
169
- class ListSearchResultExportJobsCommand extends client.Command
172
+ class ListSearchResultExportJobsCommand extends Command
170
173
  .classBuilder()
171
174
  .ep(commonParams)
172
175
  .m(function (Command, cs, config, o) {
173
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
176
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
174
177
  })
175
178
  .s("CryoBackupSearchService", "ListSearchResultExportJobs", {})
176
179
  .n("BackupSearchClient", "ListSearchResultExportJobsCommand")
177
- .sc(schemas_0.ListSearchResultExportJobs$)
180
+ .sc(ListSearchResultExportJobs$)
178
181
  .build() {
179
182
  }
180
183
 
181
- class ListTagsForResourceCommand extends client.Command
184
+ class ListTagsForResourceCommand extends Command
182
185
  .classBuilder()
183
186
  .ep(commonParams)
184
187
  .m(function (Command, cs, config, o) {
185
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
188
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
186
189
  })
187
190
  .s("CryoBackupSearchService", "ListTagsForResource", {})
188
191
  .n("BackupSearchClient", "ListTagsForResourceCommand")
189
- .sc(schemas_0.ListTagsForResource$)
192
+ .sc(ListTagsForResource$)
190
193
  .build() {
191
194
  }
192
195
 
193
- class StartSearchJobCommand extends client.Command
196
+ class StartSearchJobCommand extends Command
194
197
  .classBuilder()
195
198
  .ep(commonParams)
196
199
  .m(function (Command, cs, config, o) {
197
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
200
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
198
201
  })
199
202
  .s("CryoBackupSearchService", "StartSearchJob", {})
200
203
  .n("BackupSearchClient", "StartSearchJobCommand")
201
- .sc(schemas_0.StartSearchJob$)
204
+ .sc(StartSearchJob$)
202
205
  .build() {
203
206
  }
204
207
 
205
- class StartSearchResultExportJobCommand extends client.Command
208
+ class StartSearchResultExportJobCommand extends Command
206
209
  .classBuilder()
207
210
  .ep(commonParams)
208
211
  .m(function (Command, cs, config, o) {
209
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
212
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
210
213
  })
211
214
  .s("CryoBackupSearchService", "StartSearchResultExportJob", {})
212
215
  .n("BackupSearchClient", "StartSearchResultExportJobCommand")
213
- .sc(schemas_0.StartSearchResultExportJob$)
216
+ .sc(StartSearchResultExportJob$)
214
217
  .build() {
215
218
  }
216
219
 
217
- class StopSearchJobCommand extends client.Command
220
+ class StopSearchJobCommand extends Command
218
221
  .classBuilder()
219
222
  .ep(commonParams)
220
223
  .m(function (Command, cs, config, o) {
221
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
224
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
222
225
  })
223
226
  .s("CryoBackupSearchService", "StopSearchJob", {})
224
227
  .n("BackupSearchClient", "StopSearchJobCommand")
225
- .sc(schemas_0.StopSearchJob$)
228
+ .sc(StopSearchJob$)
226
229
  .build() {
227
230
  }
228
231
 
229
- class TagResourceCommand extends client.Command
232
+ class TagResourceCommand extends Command
230
233
  .classBuilder()
231
234
  .ep(commonParams)
232
235
  .m(function (Command, cs, config, o) {
233
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
236
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
234
237
  })
235
238
  .s("CryoBackupSearchService", "TagResource", {})
236
239
  .n("BackupSearchClient", "TagResourceCommand")
237
- .sc(schemas_0.TagResource$)
240
+ .sc(TagResource$)
238
241
  .build() {
239
242
  }
240
243
 
241
- class UntagResourceCommand extends client.Command
244
+ class UntagResourceCommand extends Command
242
245
  .classBuilder()
243
246
  .ep(commonParams)
244
247
  .m(function (Command, cs, config, o) {
245
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
248
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
246
249
  })
247
250
  .s("CryoBackupSearchService", "UntagResource", {})
248
251
  .n("BackupSearchClient", "UntagResourceCommand")
249
- .sc(schemas_0.UntagResource$)
252
+ .sc(UntagResource$)
250
253
  .build() {
251
254
  }
252
255
 
253
- const paginateListSearchJobBackups = core.createPaginator(BackupSearchClient, ListSearchJobBackupsCommand, "NextToken", "NextToken", "MaxResults");
256
+ const paginateListSearchJobBackups = createPaginator(BackupSearchClient, ListSearchJobBackupsCommand, "NextToken", "NextToken", "MaxResults");
254
257
 
255
- const paginateListSearchJobResults = core.createPaginator(BackupSearchClient, ListSearchJobResultsCommand, "NextToken", "NextToken", "MaxResults");
258
+ const paginateListSearchJobResults = createPaginator(BackupSearchClient, ListSearchJobResultsCommand, "NextToken", "NextToken", "MaxResults");
256
259
 
257
- const paginateListSearchJobs = core.createPaginator(BackupSearchClient, ListSearchJobsCommand, "NextToken", "NextToken", "MaxResults");
260
+ const paginateListSearchJobs = createPaginator(BackupSearchClient, ListSearchJobsCommand, "NextToken", "NextToken", "MaxResults");
258
261
 
259
- const paginateListSearchResultExportJobs = core.createPaginator(BackupSearchClient, ListSearchResultExportJobsCommand, "NextToken", "NextToken", "MaxResults");
262
+ const paginateListSearchResultExportJobs = createPaginator(BackupSearchClient, ListSearchResultExportJobsCommand, "NextToken", "NextToken", "MaxResults");
260
263
 
261
264
  const commands = {
262
265
  GetSearchJobCommand,
@@ -280,7 +283,7 @@ const paginators = {
280
283
  };
281
284
  class BackupSearch extends BackupSearchClient {
282
285
  }
283
- client.createAggregatedClient(commands, BackupSearch, { paginators });
286
+ createAggregatedClient(commands, BackupSearch, { paginators });
284
287
 
285
288
  const ResourceType = {
286
289
  EBS: "EBS",
@@ -321,9 +324,6 @@ const ExportJobStatus = {
321
324
  RUNNING: "RUNNING",
322
325
  };
323
326
 
324
- exports.$Command = client.Command;
325
- exports.__Client = client.Client;
326
- exports.BackupSearchServiceException = BackupSearchServiceException.BackupSearchServiceException;
327
327
  exports.BackupSearch = BackupSearch;
328
328
  exports.BackupSearchClient = BackupSearchClient;
329
329
  exports.ExportJobStatus = ExportJobStatus;
@@ -348,23 +348,3 @@ exports.paginateListSearchJobBackups = paginateListSearchJobBackups;
348
348
  exports.paginateListSearchJobResults = paginateListSearchJobResults;
349
349
  exports.paginateListSearchJobs = paginateListSearchJobs;
350
350
  exports.paginateListSearchResultExportJobs = paginateListSearchResultExportJobs;
351
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
352
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
353
- Object.defineProperty(exports, '__proto__', {
354
- enumerable: true,
355
- value: schemas_0['__proto__']
356
- });
357
-
358
- Object.keys(schemas_0).forEach(function (k) {
359
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
360
- });
361
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
362
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
363
- Object.defineProperty(exports, '__proto__', {
364
- enumerable: true,
365
- value: errors['__proto__']
366
- });
367
-
368
- Object.keys(errors).forEach(function (k) {
369
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
370
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BackupSearchServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class BackupSearchServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.BackupSearchServiceException = class BackupSearchServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, BackupSearchServiceException.prototype);
10
7
  }
11
- }
12
- exports.BackupSearchServiceException = BackupSearchServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceQuotaExceededException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
- const BackupSearchServiceException_1 = require("./BackupSearchServiceException");
5
- class AccessDeniedException extends BackupSearchServiceException_1.BackupSearchServiceException {
1
+ const { BackupSearchServiceException: __BaseException } = require("./BackupSearchServiceException");
2
+ exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
6
3
  name = "AccessDeniedException";
7
4
  $fault = "client";
8
5
  constructor(opts) {
@@ -13,9 +10,8 @@ class AccessDeniedException extends BackupSearchServiceException_1.BackupSearchS
13
10
  });
14
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
12
  }
16
- }
17
- exports.AccessDeniedException = AccessDeniedException;
18
- class ConflictException extends BackupSearchServiceException_1.BackupSearchServiceException {
13
+ };
14
+ exports.ConflictException = class ConflictException extends __BaseException {
19
15
  name = "ConflictException";
20
16
  $fault = "client";
21
17
  resourceId;
@@ -30,9 +26,8 @@ class ConflictException extends BackupSearchServiceException_1.BackupSearchServi
30
26
  this.resourceId = opts.resourceId;
31
27
  this.resourceType = opts.resourceType;
32
28
  }
33
- }
34
- exports.ConflictException = ConflictException;
35
- class InternalServerException extends BackupSearchServiceException_1.BackupSearchServiceException {
29
+ };
30
+ exports.InternalServerException = class InternalServerException extends __BaseException {
36
31
  name = "InternalServerException";
37
32
  $fault = "server";
38
33
  $retryable = {};
@@ -46,9 +41,8 @@ class InternalServerException extends BackupSearchServiceException_1.BackupSearc
46
41
  Object.setPrototypeOf(this, InternalServerException.prototype);
47
42
  this.retryAfterSeconds = opts.retryAfterSeconds;
48
43
  }
49
- }
50
- exports.InternalServerException = InternalServerException;
51
- class ResourceNotFoundException extends BackupSearchServiceException_1.BackupSearchServiceException {
44
+ };
45
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
52
46
  name = "ResourceNotFoundException";
53
47
  $fault = "client";
54
48
  resourceId;
@@ -63,9 +57,8 @@ class ResourceNotFoundException extends BackupSearchServiceException_1.BackupSea
63
57
  this.resourceId = opts.resourceId;
64
58
  this.resourceType = opts.resourceType;
65
59
  }
66
- }
67
- exports.ResourceNotFoundException = ResourceNotFoundException;
68
- class ThrottlingException extends BackupSearchServiceException_1.BackupSearchServiceException {
60
+ };
61
+ exports.ThrottlingException = class ThrottlingException extends __BaseException {
69
62
  name = "ThrottlingException";
70
63
  $fault = "client";
71
64
  $retryable = {
@@ -85,9 +78,8 @@ class ThrottlingException extends BackupSearchServiceException_1.BackupSearchSer
85
78
  this.quotaCode = opts.quotaCode;
86
79
  this.retryAfterSeconds = opts.retryAfterSeconds;
87
80
  }
88
- }
89
- exports.ThrottlingException = ThrottlingException;
90
- class ValidationException extends BackupSearchServiceException_1.BackupSearchServiceException {
81
+ };
82
+ exports.ValidationException = class ValidationException extends __BaseException {
91
83
  name = "ValidationException";
92
84
  $fault = "client";
93
85
  constructor(opts) {
@@ -98,9 +90,8 @@ class ValidationException extends BackupSearchServiceException_1.BackupSearchSer
98
90
  });
99
91
  Object.setPrototypeOf(this, ValidationException.prototype);
100
92
  }
101
- }
102
- exports.ValidationException = ValidationException;
103
- class ServiceQuotaExceededException extends BackupSearchServiceException_1.BackupSearchServiceException {
93
+ };
94
+ exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
104
95
  name = "ServiceQuotaExceededException";
105
96
  $fault = "client";
106
97
  resourceId;
@@ -119,5 +110,4 @@ class ServiceQuotaExceededException extends BackupSearchServiceException_1.Backu
119
110
  this.serviceCode = opts.serviceCode;
120
111
  this.quotaCode = opts.quotaCode;
121
112
  }
122
- }
123
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
113
+ };
@@ -1,36 +1,32 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getRuntimeConfig = void 0;
4
- const tslib_1 = require("tslib");
5
- const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
- const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
- const client_1 = require("@aws-sdk/core/client");
8
- const client_2 = require("@smithy/core/client");
9
- const config_1 = require("@smithy/core/config");
10
- const retry_1 = require("@smithy/core/retry");
11
- const serde_1 = require("@smithy/core/serde");
12
- const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
13
- const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
1
+ const packageInfo = require("../package.json");
2
+ const { Sha256 } = require("@aws-crypto/sha256-browser");
3
+ const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
+ const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
+ const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
+ const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
7
+ const { calculateBodyLength } = require("@smithy/core/serde");
8
+ const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
9
+ const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
14
10
  const getRuntimeConfig = (config) => {
15
- const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
16
- const defaultConfigProvider = () => defaultsMode().then(client_2.loadConfigsForDefaultMode);
17
- const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
11
+ const defaultsMode = resolveDefaultsModeConfig(config);
12
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
13
+ const clientSharedValues = getSharedRuntimeConfig(config);
18
14
  return {
19
15
  ...clientSharedValues,
20
16
  ...config,
21
17
  runtime: "browser",
22
18
  defaultsMode,
23
- bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
19
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
24
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
25
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, client_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
26
- maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
27
- region: config?.region ?? (0, client_2.invalidProvider)("Region is missing"),
28
- requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
29
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
30
- sha256: config?.sha256 ?? sha256_browser_1.Sha256,
31
- streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
32
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
21
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
23
+ region: config?.region ?? invalidProvider("Region is missing"),
24
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
+ sha256: config?.sha256 ?? Sha256,
27
+ streamCollector: config?.streamCollector ?? streamCollector,
28
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
30
  };
35
31
  };
36
32
  exports.getRuntimeConfig = getRuntimeConfig;