@aws-sdk/client-dsql 3.1068.0 → 3.1070.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.defaultDSQLHttpAuthSchemeProvider = exports.defaultDSQLHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultDSQLHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultDSQLHttpAuthSchemeParametersProvider = 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.defaultDSQLHttpAuthSchemeParametersProvider = defaultDSQLHttpAuthSchemeParametersProvider;
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 defaultDSQLHttpAuthSchemeProvider = (authParameters) => {
26
+ exports.defaultDSQLHttpAuthSchemeProvider = (authParameters) => {
31
27
  const options = [];
32
28
  switch (authParameters.operation) {
33
29
  default: {
@@ -36,11 +32,9 @@ const defaultDSQLHttpAuthSchemeProvider = (authParameters) => {
36
32
  }
37
33
  return options;
38
34
  };
39
- exports.defaultDSQLHttpAuthSchemeProvider = defaultDSQLHttpAuthSchemeProvider;
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 DSQLServiceException = require('./models/DSQLServiceException');
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, createWaiter, checkExceptions, WaiterState, 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, defaultDSQLHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
+ const { getRuntimeConfig } = require("./runtimeConfig");
14
+ const { CreateCluster$, CreateStream$, DeleteCluster$, DeleteClusterPolicy$, DeleteStream$, GetCluster$, GetClusterPolicy$, GetStream$, GetVpcEndpointServiceName$, ListClusters$, ListStreams$, ListTagsForResource$, PutClusterPolicy$, TagResource$, UntagResource$, UpdateCluster$ } = require("./schemas/schemas_0");
15
+ __exportStar(require("./schemas/schemas_0"), exports);
16
+ __exportStar(require("./models/errors"), exports);
17
+ const { DSQLServiceException } = require("./models/DSQLServiceException");
18
+ exports.DSQLServiceException = DSQLServiceException;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -66,253 +69,253 @@ 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 DSQLClient extends client.Client {
77
+ class DSQLClient 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.defaultDSQLHttpAuthSchemeParametersProvider,
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: defaultDSQLHttpAuthSchemeParametersProvider,
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 CreateClusterCommand extends client.Command
112
+ class CreateClusterCommand 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("DSQL", "CreateCluster", {})
116
119
  .n("DSQLClient", "CreateClusterCommand")
117
- .sc(schemas_0.CreateCluster$)
120
+ .sc(CreateCluster$)
118
121
  .build() {
119
122
  }
120
123
 
121
- class CreateStreamCommand extends client.Command
124
+ class CreateStreamCommand 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("DSQL", "CreateStream", {})
128
131
  .n("DSQLClient", "CreateStreamCommand")
129
- .sc(schemas_0.CreateStream$)
132
+ .sc(CreateStream$)
130
133
  .build() {
131
134
  }
132
135
 
133
- class DeleteClusterCommand extends client.Command
136
+ class DeleteClusterCommand 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("DSQL", "DeleteCluster", {})
140
143
  .n("DSQLClient", "DeleteClusterCommand")
141
- .sc(schemas_0.DeleteCluster$)
144
+ .sc(DeleteCluster$)
142
145
  .build() {
143
146
  }
144
147
 
145
- class DeleteClusterPolicyCommand extends client.Command
148
+ class DeleteClusterPolicyCommand 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("DSQL", "DeleteClusterPolicy", {})
152
155
  .n("DSQLClient", "DeleteClusterPolicyCommand")
153
- .sc(schemas_0.DeleteClusterPolicy$)
156
+ .sc(DeleteClusterPolicy$)
154
157
  .build() {
155
158
  }
156
159
 
157
- class DeleteStreamCommand extends client.Command
160
+ class DeleteStreamCommand 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("DSQL", "DeleteStream", {})
164
167
  .n("DSQLClient", "DeleteStreamCommand")
165
- .sc(schemas_0.DeleteStream$)
168
+ .sc(DeleteStream$)
166
169
  .build() {
167
170
  }
168
171
 
169
- class GetClusterCommand extends client.Command
172
+ class GetClusterCommand 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("DSQL", "GetCluster", {})
176
179
  .n("DSQLClient", "GetClusterCommand")
177
- .sc(schemas_0.GetCluster$)
180
+ .sc(GetCluster$)
178
181
  .build() {
179
182
  }
180
183
 
181
- class GetClusterPolicyCommand extends client.Command
184
+ class GetClusterPolicyCommand 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("DSQL", "GetClusterPolicy", {})
188
191
  .n("DSQLClient", "GetClusterPolicyCommand")
189
- .sc(schemas_0.GetClusterPolicy$)
192
+ .sc(GetClusterPolicy$)
190
193
  .build() {
191
194
  }
192
195
 
193
- class GetStreamCommand extends client.Command
196
+ class GetStreamCommand 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("DSQL", "GetStream", {})
200
203
  .n("DSQLClient", "GetStreamCommand")
201
- .sc(schemas_0.GetStream$)
204
+ .sc(GetStream$)
202
205
  .build() {
203
206
  }
204
207
 
205
- class GetVpcEndpointServiceNameCommand extends client.Command
208
+ class GetVpcEndpointServiceNameCommand 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("DSQL", "GetVpcEndpointServiceName", {})
212
215
  .n("DSQLClient", "GetVpcEndpointServiceNameCommand")
213
- .sc(schemas_0.GetVpcEndpointServiceName$)
216
+ .sc(GetVpcEndpointServiceName$)
214
217
  .build() {
215
218
  }
216
219
 
217
- class ListClustersCommand extends client.Command
220
+ class ListClustersCommand 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("DSQL", "ListClusters", {})
224
227
  .n("DSQLClient", "ListClustersCommand")
225
- .sc(schemas_0.ListClusters$)
228
+ .sc(ListClusters$)
226
229
  .build() {
227
230
  }
228
231
 
229
- class ListStreamsCommand extends client.Command
232
+ class ListStreamsCommand 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("DSQL", "ListStreams", {})
236
239
  .n("DSQLClient", "ListStreamsCommand")
237
- .sc(schemas_0.ListStreams$)
240
+ .sc(ListStreams$)
238
241
  .build() {
239
242
  }
240
243
 
241
- class ListTagsForResourceCommand extends client.Command
244
+ class ListTagsForResourceCommand 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("DSQL", "ListTagsForResource", {})
248
251
  .n("DSQLClient", "ListTagsForResourceCommand")
249
- .sc(schemas_0.ListTagsForResource$)
252
+ .sc(ListTagsForResource$)
250
253
  .build() {
251
254
  }
252
255
 
253
- class PutClusterPolicyCommand extends client.Command
256
+ class PutClusterPolicyCommand extends Command
254
257
  .classBuilder()
255
258
  .ep(commonParams)
256
259
  .m(function (Command, cs, config, o) {
257
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
260
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
258
261
  })
259
262
  .s("DSQL", "PutClusterPolicy", {})
260
263
  .n("DSQLClient", "PutClusterPolicyCommand")
261
- .sc(schemas_0.PutClusterPolicy$)
264
+ .sc(PutClusterPolicy$)
262
265
  .build() {
263
266
  }
264
267
 
265
- class TagResourceCommand extends client.Command
268
+ class TagResourceCommand extends Command
266
269
  .classBuilder()
267
270
  .ep(commonParams)
268
271
  .m(function (Command, cs, config, o) {
269
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
272
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
270
273
  })
271
274
  .s("DSQL", "TagResource", {})
272
275
  .n("DSQLClient", "TagResourceCommand")
273
- .sc(schemas_0.TagResource$)
276
+ .sc(TagResource$)
274
277
  .build() {
275
278
  }
276
279
 
277
- class UntagResourceCommand extends client.Command
280
+ class UntagResourceCommand extends Command
278
281
  .classBuilder()
279
282
  .ep(commonParams)
280
283
  .m(function (Command, cs, config, o) {
281
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
284
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
282
285
  })
283
286
  .s("DSQL", "UntagResource", {})
284
287
  .n("DSQLClient", "UntagResourceCommand")
285
- .sc(schemas_0.UntagResource$)
288
+ .sc(UntagResource$)
286
289
  .build() {
287
290
  }
288
291
 
289
- class UpdateClusterCommand extends client.Command
292
+ class UpdateClusterCommand extends Command
290
293
  .classBuilder()
291
294
  .ep(commonParams)
292
295
  .m(function (Command, cs, config, o) {
293
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
296
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
294
297
  })
295
298
  .s("DSQL", "UpdateCluster", {})
296
299
  .n("DSQLClient", "UpdateClusterCommand")
297
- .sc(schemas_0.UpdateCluster$)
300
+ .sc(UpdateCluster$)
298
301
  .build() {
299
302
  }
300
303
 
301
- const paginateListClusters = core.createPaginator(DSQLClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
304
+ const paginateListClusters = createPaginator(DSQLClient, ListClustersCommand, "nextToken", "nextToken", "maxResults");
302
305
 
303
- const paginateListStreams = core.createPaginator(DSQLClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
306
+ const paginateListStreams = createPaginator(DSQLClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
304
307
 
305
- const checkState$3 = async (client$1, input) => {
308
+ const checkState$3 = async (client, input) => {
306
309
  let reason;
307
310
  try {
308
- let result = await client$1.send(new GetClusterCommand(input));
311
+ let result = await client.send(new GetClusterCommand(input));
309
312
  reason = result;
310
313
  try {
311
314
  const returnComparator = () => {
312
315
  return result.status;
313
316
  };
314
317
  if (returnComparator() === "ACTIVE") {
315
- return { state: client.WaiterState.SUCCESS, reason };
318
+ return { state: WaiterState.SUCCESS, reason };
316
319
  }
317
320
  }
318
321
  catch (e) { }
@@ -320,53 +323,53 @@ const checkState$3 = async (client$1, input) => {
320
323
  catch (exception) {
321
324
  reason = exception;
322
325
  }
323
- return { state: client.WaiterState.RETRY, reason };
326
+ return { state: WaiterState.RETRY, reason };
324
327
  };
325
328
  const waitForClusterActive = async (params, input) => {
326
329
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
327
- return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
330
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
328
331
  };
329
332
  const waitUntilClusterActive = async (params, input) => {
330
333
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
331
- const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
332
- return client.checkExceptions(result);
334
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$3);
335
+ return checkExceptions(result);
333
336
  };
334
337
 
335
- const checkState$2 = async (client$1, input) => {
338
+ const checkState$2 = async (client, input) => {
336
339
  let reason;
337
340
  try {
338
- let result = await client$1.send(new GetClusterCommand(input));
341
+ let result = await client.send(new GetClusterCommand(input));
339
342
  reason = result;
340
343
  }
341
344
  catch (exception) {
342
345
  reason = exception;
343
346
  if (exception.name === "ResourceNotFoundException") {
344
- return { state: client.WaiterState.SUCCESS, reason };
347
+ return { state: WaiterState.SUCCESS, reason };
345
348
  }
346
349
  }
347
- return { state: client.WaiterState.RETRY, reason };
350
+ return { state: WaiterState.RETRY, reason };
348
351
  };
349
352
  const waitForClusterNotExists = async (params, input) => {
350
353
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
351
- return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
354
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
352
355
  };
353
356
  const waitUntilClusterNotExists = async (params, input) => {
354
357
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
355
- const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
356
- return client.checkExceptions(result);
358
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$2);
359
+ return checkExceptions(result);
357
360
  };
358
361
 
359
- const checkState$1 = async (client$1, input) => {
362
+ const checkState$1 = async (client, input) => {
360
363
  let reason;
361
364
  try {
362
- let result = await client$1.send(new GetStreamCommand(input));
365
+ let result = await client.send(new GetStreamCommand(input));
363
366
  reason = result;
364
367
  try {
365
368
  const returnComparator = () => {
366
369
  return result.status;
367
370
  };
368
371
  if (returnComparator() === "ACTIVE") {
369
- return { state: client.WaiterState.SUCCESS, reason };
372
+ return { state: WaiterState.SUCCESS, reason };
370
373
  }
371
374
  }
372
375
  catch (e) { }
@@ -374,40 +377,40 @@ const checkState$1 = async (client$1, input) => {
374
377
  catch (exception) {
375
378
  reason = exception;
376
379
  }
377
- return { state: client.WaiterState.RETRY, reason };
380
+ return { state: WaiterState.RETRY, reason };
378
381
  };
379
382
  const waitForStreamActive = async (params, input) => {
380
383
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
381
- return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
384
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
382
385
  };
383
386
  const waitUntilStreamActive = async (params, input) => {
384
387
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
385
- const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
386
- return client.checkExceptions(result);
388
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);
389
+ return checkExceptions(result);
387
390
  };
388
391
 
389
- const checkState = async (client$1, input) => {
392
+ const checkState = async (client, input) => {
390
393
  let reason;
391
394
  try {
392
- let result = await client$1.send(new GetStreamCommand(input));
395
+ let result = await client.send(new GetStreamCommand(input));
393
396
  reason = result;
394
397
  }
395
398
  catch (exception) {
396
399
  reason = exception;
397
400
  if (exception.name === "ResourceNotFoundException") {
398
- return { state: client.WaiterState.SUCCESS, reason };
401
+ return { state: WaiterState.SUCCESS, reason };
399
402
  }
400
403
  }
401
- return { state: client.WaiterState.RETRY, reason };
404
+ return { state: WaiterState.RETRY, reason };
402
405
  };
403
406
  const waitForStreamNotExists = async (params, input) => {
404
407
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
405
- return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
408
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
406
409
  };
407
410
  const waitUntilStreamNotExists = async (params, input) => {
408
411
  const serviceDefaults = { minDelay: 2, maxDelay: 120 };
409
- const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);
410
- return client.checkExceptions(result);
412
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
413
+ return checkExceptions(result);
411
414
  };
412
415
 
413
416
  const commands = {
@@ -440,7 +443,7 @@ const waiters = {
440
443
  };
441
444
  class DSQL extends DSQLClient {
442
445
  }
443
- client.createAggregatedClient(commands, DSQL, { paginators, waiters });
446
+ createAggregatedClient(commands, DSQL, { paginators, waiters });
444
447
 
445
448
  const ClusterStatus = {
446
449
  ACTIVE: "ACTIVE",
@@ -496,9 +499,6 @@ const StreamFailureErrorCode = {
496
499
  ROLE_ACCESS_DENIED: "ROLE_ACCESS_DENIED",
497
500
  };
498
501
 
499
- exports.$Command = client.Command;
500
- exports.__Client = client.Client;
501
- exports.DSQLServiceException = DSQLServiceException.DSQLServiceException;
502
502
  exports.ClusterStatus = ClusterStatus;
503
503
  exports.CreateClusterCommand = CreateClusterCommand;
504
504
  exports.CreateStreamCommand = CreateStreamCommand;
@@ -535,23 +535,3 @@ exports.waitUntilClusterActive = waitUntilClusterActive;
535
535
  exports.waitUntilClusterNotExists = waitUntilClusterNotExists;
536
536
  exports.waitUntilStreamActive = waitUntilStreamActive;
537
537
  exports.waitUntilStreamNotExists = waitUntilStreamNotExists;
538
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
539
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
540
- Object.defineProperty(exports, '__proto__', {
541
- enumerable: true,
542
- value: schemas_0['__proto__']
543
- });
544
-
545
- Object.keys(schemas_0).forEach(function (k) {
546
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
547
- });
548
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
549
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
550
- Object.defineProperty(exports, '__proto__', {
551
- enumerable: true,
552
- value: errors['__proto__']
553
- });
554
-
555
- Object.keys(errors).forEach(function (k) {
556
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
557
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DSQLServiceException = 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 DSQLServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.DSQLServiceException = class DSQLServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, DSQLServiceException.prototype);
10
7
  }
11
- }
12
- exports.DSQLServiceException = DSQLServiceException;
8
+ };