@aws-sdk/client-dsql 3.1074.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, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, 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, 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;
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 defaultDSQLHttpAuthSchemeParametersProvider = 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: "dsql",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultDSQLHttpAuthSchemeProvider = (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,665 @@ 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://dsql-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", {}],
85
+ ["https://dsql.{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 DSQLServiceException extends ServiceException {
114
+ constructor(options) {
115
+ super(options);
116
+ Object.setPrototypeOf(this, DSQLServiceException.prototype);
117
+ }
118
+ }
119
+
120
+ class AccessDeniedException extends DSQLServiceException {
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 DSQLServiceException {
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 DSQLServiceException {
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 ServiceQuotaExceededException extends DSQLServiceException {
164
+ name = "ServiceQuotaExceededException";
165
+ $fault = "client";
166
+ resourceId;
167
+ resourceType;
168
+ serviceCode;
169
+ quotaCode;
170
+ constructor(opts) {
171
+ super({
172
+ name: "ServiceQuotaExceededException",
173
+ $fault: "client",
174
+ ...opts,
175
+ });
176
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
177
+ this.resourceId = opts.resourceId;
178
+ this.resourceType = opts.resourceType;
179
+ this.serviceCode = opts.serviceCode;
180
+ this.quotaCode = opts.quotaCode;
181
+ }
182
+ }
183
+ class ThrottlingException extends DSQLServiceException {
184
+ name = "ThrottlingException";
185
+ $fault = "client";
186
+ $retryable = {
187
+ throttling: true,
188
+ };
189
+ serviceCode;
190
+ quotaCode;
191
+ retryAfterSeconds;
192
+ constructor(opts) {
193
+ super({
194
+ name: "ThrottlingException",
195
+ $fault: "client",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
199
+ this.serviceCode = opts.serviceCode;
200
+ this.quotaCode = opts.quotaCode;
201
+ this.retryAfterSeconds = opts.retryAfterSeconds;
202
+ }
203
+ }
204
+ class ValidationException extends DSQLServiceException {
205
+ name = "ValidationException";
206
+ $fault = "client";
207
+ reason;
208
+ fieldList;
209
+ constructor(opts) {
210
+ super({
211
+ name: "ValidationException",
212
+ $fault: "client",
213
+ ...opts,
214
+ });
215
+ Object.setPrototypeOf(this, ValidationException.prototype);
216
+ this.reason = opts.reason;
217
+ this.fieldList = opts.fieldList;
218
+ }
219
+ }
220
+ class ResourceNotFoundException extends DSQLServiceException {
221
+ name = "ResourceNotFoundException";
222
+ $fault = "client";
223
+ resourceId;
224
+ resourceType;
225
+ constructor(opts) {
226
+ super({
227
+ name: "ResourceNotFoundException",
228
+ $fault: "client",
229
+ ...opts,
230
+ });
231
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
232
+ this.resourceId = opts.resourceId;
233
+ this.resourceType = opts.resourceType;
234
+ }
235
+ }
236
+
237
+ const _ADE = "AccessDeniedException";
238
+ const _CC = "CreateCluster";
239
+ const _CCI = "CreateClusterInput";
240
+ const _CCO = "CreateClusterOutput";
241
+ const _CE = "ConflictException";
242
+ const _CL = "ClusterList";
243
+ const _CS = "ClusterSummary";
244
+ const _CSI = "CreateStreamInput";
245
+ const _CSO = "CreateStreamOutput";
246
+ const _CSr = "CreateStream";
247
+ const _DC = "DeleteCluster";
248
+ const _DCI = "DeleteClusterInput";
249
+ const _DCO = "DeleteClusterOutput";
250
+ const _DCP = "DeleteClusterPolicy";
251
+ const _DCPI = "DeleteClusterPolicyInput";
252
+ const _DCPO = "DeleteClusterPolicyOutput";
253
+ const _DS = "DeleteStream";
254
+ const _DSI = "DeleteStreamInput";
255
+ const _DSO = "DeleteStreamOutput";
256
+ const _ED = "EncryptionDetails";
257
+ const _GC = "GetCluster";
258
+ const _GCI = "GetClusterInput";
259
+ const _GCO = "GetClusterOutput";
260
+ const _GCP = "GetClusterPolicy";
261
+ const _GCPI = "GetClusterPolicyInput";
262
+ const _GCPO = "GetClusterPolicyOutput";
263
+ const _GS = "GetStream";
264
+ const _GSI = "GetStreamInput";
265
+ const _GSO = "GetStreamOutput";
266
+ const _GVESN = "GetVpcEndpointServiceName";
267
+ const _GVESNI = "GetVpcEndpointServiceNameInput";
268
+ const _GVESNO = "GetVpcEndpointServiceNameOutput";
269
+ const _ISE = "InternalServerException";
270
+ const _KTD = "KinesisTargetDefinition";
271
+ const _LC = "ListClusters";
272
+ const _LCI = "ListClustersInput";
273
+ const _LCO = "ListClustersOutput";
274
+ const _LS = "ListStreams";
275
+ const _LSI = "ListStreamsInput";
276
+ const _LSO = "ListStreamsOutput";
277
+ const _LTFR = "ListTagsForResource";
278
+ const _LTFRI = "ListTagsForResourceInput";
279
+ const _LTFRO = "ListTagsForResourceOutput";
280
+ const _MRP = "MultiRegionProperties";
281
+ const _PCP = "PutClusterPolicy";
282
+ const _PCPI = "PutClusterPolicyInput";
283
+ const _PCPO = "PutClusterPolicyOutput";
284
+ const _RA = "Retry-After";
285
+ const _RNFE = "ResourceNotFoundException";
286
+ const _SL = "StreamList";
287
+ const _SQEE = "ServiceQuotaExceededException";
288
+ const _SR = "StatusReason";
289
+ const _SS = "StreamSummary";
290
+ const _TD = "TargetDefinition";
291
+ const _TE = "ThrottlingException";
292
+ const _TR = "TagResource";
293
+ const _TRI = "TagResourceInput";
294
+ const _UC = "UpdateCluster";
295
+ const _UCI = "UpdateClusterInput";
296
+ const _UCO = "UpdateClusterOutput";
297
+ const _UR = "UntagResource";
298
+ const _URI = "UntagResourceInput";
299
+ const _VE = "ValidationException";
300
+ const _VEF = "ValidationExceptionField";
301
+ const _VEFL = "ValidationExceptionFieldList";
302
+ const _a = "arn";
303
+ const _bPLSC = "bypassPolicyLockoutSafetyCheck";
304
+ const _c = "client";
305
+ const _cI = "clusterIdentifier";
306
+ const _cT = "clientToken";
307
+ const _cTr = "creationTime";
308
+ const _cVE = "clusterVpcEndpoint";
309
+ const _cl = "clusters";
310
+ const _ct = "client-token";
311
+ const _dPE = "deletionProtectionEnabled";
312
+ const _e = "error";
313
+ const _eD = "encryptionDetails";
314
+ const _ePV = "expectedPolicyVersion";
315
+ const _eS = "encryptionStatus";
316
+ const _eT = "encryptionType";
317
+ const _en = "endpoint";
318
+ const _epv = "expected-policy-version";
319
+ const _f = "format";
320
+ const _fL = "fieldList";
321
+ const _h = "http";
322
+ const _hE = "httpError";
323
+ const _hH = "httpHeader";
324
+ const _hQ = "httpQuery";
325
+ const _i = "identifier";
326
+ const _iT = "idempotencyToken";
327
+ const _k = "kinesis";
328
+ const _kEK = "kmsEncryptionKey";
329
+ const _kKA = "kmsKeyArn";
330
+ const _m = "message";
331
+ const _mR = "maxResults";
332
+ const _mRP = "multiRegionProperties";
333
+ const _mr = "max-results";
334
+ const _n = "name";
335
+ const _nT = "nextToken";
336
+ const _nt = "next-token";
337
+ const _o = "ordering";
338
+ const _p = "policy";
339
+ const _pV = "policyVersion";
340
+ const _qC = "quotaCode";
341
+ const _r = "reason";
342
+ const _rA = "roleArn";
343
+ const _rAS = "retryAfterSeconds";
344
+ const _rAe = "resourceArn";
345
+ const _rI = "resourceId";
346
+ const _rT = "resourceType";
347
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dsql";
348
+ const _sA = "streamArn";
349
+ const _sC = "serviceCode";
350
+ const _sI = "streamIdentifier";
351
+ const _sN = "serviceName";
352
+ const _sR = "statusReason";
353
+ const _se = "server";
354
+ const _st = "status";
355
+ const _str = "streams";
356
+ const _t = "tags";
357
+ const _tD = "targetDefinition";
358
+ const _tK = "tagKeys";
359
+ const _uA = "updatedAt";
360
+ const _wR = "witnessRegion";
361
+ const n0 = "com.amazonaws.dsql";
362
+ const _s_registry = TypeRegistry.for(_s);
363
+ var DSQLServiceException$ = [-3, _s, "DSQLServiceException", 0, [], []];
364
+ _s_registry.registerError(DSQLServiceException$, DSQLServiceException);
365
+ const n0_registry = TypeRegistry.for(n0);
366
+ var AccessDeniedException$ = [-3, n0, _ADE,
367
+ { [_e]: _c, [_hE]: 403 },
368
+ [_m],
369
+ [0], 1
370
+ ];
371
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
372
+ var ConflictException$ = [-3, n0, _CE,
373
+ { [_e]: _c, [_hE]: 409 },
374
+ [_m, _rI, _rT],
375
+ [0, 0, 0], 1
376
+ ];
377
+ n0_registry.registerError(ConflictException$, ConflictException);
378
+ var InternalServerException$ = [-3, n0, _ISE,
379
+ { [_e]: _se, [_hE]: 500 },
380
+ [_m, _rAS],
381
+ [0, [1, { [_hH]: _RA }]], 1
382
+ ];
383
+ n0_registry.registerError(InternalServerException$, InternalServerException);
384
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
385
+ { [_e]: _c, [_hE]: 404 },
386
+ [_m, _rI, _rT],
387
+ [0, 0, 0], 3
388
+ ];
389
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
390
+ var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
391
+ { [_e]: _c, [_hE]: 402 },
392
+ [_m, _rI, _rT, _sC, _qC],
393
+ [0, 0, 0, 0, 0], 5
394
+ ];
395
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
396
+ var ThrottlingException$ = [-3, n0, _TE,
397
+ { [_e]: _c, [_hE]: 429 },
398
+ [_m, _sC, _qC, _rAS],
399
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
400
+ ];
401
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
402
+ var ValidationException$ = [-3, n0, _VE,
403
+ { [_e]: _c, [_hE]: 400 },
404
+ [_m, _r, _fL],
405
+ [0, 0, () => ValidationExceptionFieldList], 2
406
+ ];
407
+ n0_registry.registerError(ValidationException$, ValidationException);
408
+ const errorTypeRegistries = [
409
+ _s_registry,
410
+ n0_registry,
411
+ ];
412
+ var ClusterSummary$ = [3, n0, _CS,
413
+ 0,
414
+ [_i, _a],
415
+ [0, 0], 2
416
+ ];
417
+ var CreateClusterInput$ = [3, n0, _CCI,
418
+ 0,
419
+ [_dPE, _kEK, _t, _cT, _mRP, _p, _bPLSC],
420
+ [2, 0, 128 | 0, [0, 4], () => MultiRegionProperties$, 0, 2]
421
+ ];
422
+ var CreateClusterOutput$ = [3, n0, _CCO,
423
+ 0,
424
+ [_i, _a, _st, _cTr, _dPE, _mRP, _eD, _en],
425
+ [0, 0, 0, 4, 2, () => MultiRegionProperties$, () => EncryptionDetails$, 0], 5
426
+ ];
427
+ var CreateStreamInput$ = [3, n0, _CSI,
428
+ 0,
429
+ [_cI, _tD, _o, _f, _t, _cT],
430
+ [[0, 1], () => TargetDefinition$, 0, 0, 128 | 0, [0, 4]], 4
431
+ ];
432
+ var CreateStreamOutput$ = [3, n0, _CSO,
433
+ 0,
434
+ [_cI, _sI, _a, _st, _cTr, _o, _f],
435
+ [0, 0, 0, 0, 4, 0, 0], 7
436
+ ];
437
+ var DeleteClusterInput$ = [3, n0, _DCI,
438
+ 0,
439
+ [_i, _cT],
440
+ [[0, 1], [0, { [_hQ]: _ct, [_iT]: 1 }]], 1
441
+ ];
442
+ var DeleteClusterOutput$ = [3, n0, _DCO,
443
+ 0,
444
+ [_i, _a, _st, _cTr],
445
+ [0, 0, 0, 4], 4
446
+ ];
447
+ var DeleteClusterPolicyInput$ = [3, n0, _DCPI,
448
+ 0,
449
+ [_i, _ePV, _cT],
450
+ [[0, 1], [0, { [_hQ]: _epv }], [0, { [_hQ]: _ct, [_iT]: 1 }]], 1
451
+ ];
452
+ var DeleteClusterPolicyOutput$ = [3, n0, _DCPO,
453
+ 0,
454
+ [_pV],
455
+ [0], 1
456
+ ];
457
+ var DeleteStreamInput$ = [3, n0, _DSI,
458
+ 0,
459
+ [_cI, _sI, _cT],
460
+ [[0, 1], [0, 1], [0, { [_hQ]: _ct, [_iT]: 1 }]], 2
461
+ ];
462
+ var DeleteStreamOutput$ = [3, n0, _DSO,
463
+ 0,
464
+ [_cI, _sI, _a, _st, _cTr],
465
+ [0, 0, 0, 0, 4], 5
466
+ ];
467
+ var EncryptionDetails$ = [3, n0, _ED,
468
+ 0,
469
+ [_eT, _eS, _kKA],
470
+ [0, 0, 0], 2
471
+ ];
472
+ var GetClusterInput$ = [3, n0, _GCI,
473
+ 0,
474
+ [_i],
475
+ [[0, 1]], 1
476
+ ];
477
+ var GetClusterOutput$ = [3, n0, _GCO,
478
+ 0,
479
+ [_i, _a, _st, _cTr, _dPE, _mRP, _t, _eD, _en],
480
+ [0, 0, 0, 4, 2, () => MultiRegionProperties$, 128 | 0, () => EncryptionDetails$, 0], 5
481
+ ];
482
+ var GetClusterPolicyInput$ = [3, n0, _GCPI,
483
+ 0,
484
+ [_i],
485
+ [[0, 1]], 1
486
+ ];
487
+ var GetClusterPolicyOutput$ = [3, n0, _GCPO,
488
+ 0,
489
+ [_p, _pV],
490
+ [0, 0], 2
491
+ ];
492
+ var GetStreamInput$ = [3, n0, _GSI,
493
+ 0,
494
+ [_cI, _sI],
495
+ [[0, 1], [0, 1]], 2
496
+ ];
497
+ var GetStreamOutput$ = [3, n0, _GSO,
498
+ 0,
499
+ [_cI, _sI, _a, _st, _cTr, _o, _f, _tD, _sR, _t],
500
+ [0, 0, 0, 0, 4, 0, 0, () => TargetDefinition$, () => StatusReason$, 128 | 0], 7
501
+ ];
502
+ var GetVpcEndpointServiceNameInput$ = [3, n0, _GVESNI,
503
+ 0,
504
+ [_i],
505
+ [[0, 1]], 1
506
+ ];
507
+ var GetVpcEndpointServiceNameOutput$ = [3, n0, _GVESNO,
508
+ 0,
509
+ [_sN, _cVE],
510
+ [0, 0], 1
511
+ ];
512
+ var KinesisTargetDefinition$ = [3, n0, _KTD,
513
+ 0,
514
+ [_sA, _rA],
515
+ [0, 0], 2
516
+ ];
517
+ var ListClustersInput$ = [3, n0, _LCI,
518
+ 0,
519
+ [_mR, _nT],
520
+ [[1, { [_hQ]: _mr }], [0, { [_hQ]: _nt }]]
521
+ ];
522
+ var ListClustersOutput$ = [3, n0, _LCO,
523
+ 0,
524
+ [_cl, _nT],
525
+ [() => ClusterList, 0], 1
526
+ ];
527
+ var ListStreamsInput$ = [3, n0, _LSI,
528
+ 0,
529
+ [_cI, _mR, _nT],
530
+ [[0, 1], [1, { [_hQ]: _mr }], [0, { [_hQ]: _nt }]], 1
531
+ ];
532
+ var ListStreamsOutput$ = [3, n0, _LSO,
533
+ 0,
534
+ [_str, _nT],
535
+ [() => StreamList, 0], 1
536
+ ];
537
+ var ListTagsForResourceInput$ = [3, n0, _LTFRI,
538
+ 0,
539
+ [_rAe],
540
+ [[0, 1]], 1
541
+ ];
542
+ var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
543
+ 0,
544
+ [_t],
545
+ [128 | 0]
546
+ ];
547
+ var MultiRegionProperties$ = [3, n0, _MRP,
548
+ 0,
549
+ [_wR, _cl],
550
+ [0, 64 | 0]
551
+ ];
552
+ var PutClusterPolicyInput$ = [3, n0, _PCPI,
553
+ 0,
554
+ [_i, _p, _bPLSC, _ePV, _cT],
555
+ [[0, 1], 0, 2, 0, [0, 4]], 2
556
+ ];
557
+ var PutClusterPolicyOutput$ = [3, n0, _PCPO,
558
+ 0,
559
+ [_pV],
560
+ [0], 1
561
+ ];
562
+ var StatusReason$ = [3, n0, _SR,
563
+ 0,
564
+ [_e, _uA],
565
+ [0, 4], 2
566
+ ];
567
+ var StreamSummary$ = [3, n0, _SS,
568
+ 0,
569
+ [_cI, _sI, _a, _cTr, _st],
570
+ [0, 0, 0, 4, 0], 5
571
+ ];
572
+ var TagResourceInput$ = [3, n0, _TRI,
573
+ 0,
574
+ [_rAe, _t],
575
+ [[0, 1], 128 | 0], 2
576
+ ];
577
+ var UntagResourceInput$ = [3, n0, _URI,
578
+ 0,
579
+ [_rAe, _tK],
580
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
581
+ ];
582
+ var UpdateClusterInput$ = [3, n0, _UCI,
583
+ 0,
584
+ [_i, _dPE, _kEK, _cT, _mRP],
585
+ [[0, 1], 2, 0, [0, 4], () => MultiRegionProperties$], 1
586
+ ];
587
+ var UpdateClusterOutput$ = [3, n0, _UCO,
588
+ 0,
589
+ [_i, _a, _st, _cTr],
590
+ [0, 0, 0, 4], 4
591
+ ];
592
+ var ValidationExceptionField$ = [3, n0, _VEF,
593
+ 0,
594
+ [_n, _m],
595
+ [0, 0], 2
596
+ ];
597
+ var __Unit = "unit";
598
+ var ClusterList = [1, n0, _CL,
599
+ 0, () => ClusterSummary$
600
+ ];
601
+ var StreamList = [1, n0, _SL,
602
+ 0, () => StreamSummary$
603
+ ];
604
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
605
+ 0, () => ValidationExceptionField$
606
+ ];
607
+ var TargetDefinition$ = [4, n0, _TD,
608
+ 0,
609
+ [_k],
610
+ [() => KinesisTargetDefinition$]
611
+ ];
612
+ var CreateCluster$ = [9, n0, _CC,
613
+ { [_h]: ["POST", "/cluster", 200] }, () => CreateClusterInput$, () => CreateClusterOutput$
614
+ ];
615
+ var CreateStream$ = [9, n0, _CSr,
616
+ { [_h]: ["POST", "/stream/{clusterIdentifier}", 200] }, () => CreateStreamInput$, () => CreateStreamOutput$
617
+ ];
618
+ var DeleteCluster$ = [9, n0, _DC,
619
+ { [_h]: ["DELETE", "/cluster/{identifier}", 200] }, () => DeleteClusterInput$, () => DeleteClusterOutput$
620
+ ];
621
+ var DeleteClusterPolicy$ = [9, n0, _DCP,
622
+ { [_h]: ["DELETE", "/cluster/{identifier}/policy", 200] }, () => DeleteClusterPolicyInput$, () => DeleteClusterPolicyOutput$
623
+ ];
624
+ var DeleteStream$ = [9, n0, _DS,
625
+ { [_h]: ["DELETE", "/stream/{clusterIdentifier}/{streamIdentifier}", 200] }, () => DeleteStreamInput$, () => DeleteStreamOutput$
626
+ ];
627
+ var GetCluster$ = [9, n0, _GC,
628
+ { [_h]: ["GET", "/cluster/{identifier}", 200] }, () => GetClusterInput$, () => GetClusterOutput$
629
+ ];
630
+ var GetClusterPolicy$ = [9, n0, _GCP,
631
+ { [_h]: ["GET", "/cluster/{identifier}/policy", 200] }, () => GetClusterPolicyInput$, () => GetClusterPolicyOutput$
632
+ ];
633
+ var GetStream$ = [9, n0, _GS,
634
+ { [_h]: ["GET", "/stream/{clusterIdentifier}/{streamIdentifier}", 200] }, () => GetStreamInput$, () => GetStreamOutput$
635
+ ];
636
+ var GetVpcEndpointServiceName$ = [9, n0, _GVESN,
637
+ { [_h]: ["GET", "/clusters/{identifier}/vpc-endpoint-service-name", 200] }, () => GetVpcEndpointServiceNameInput$, () => GetVpcEndpointServiceNameOutput$
638
+ ];
639
+ var ListClusters$ = [9, n0, _LC,
640
+ { [_h]: ["GET", "/cluster", 200] }, () => ListClustersInput$, () => ListClustersOutput$
641
+ ];
642
+ var ListStreams$ = [9, n0, _LS,
643
+ { [_h]: ["GET", "/stream/{clusterIdentifier}", 200] }, () => ListStreamsInput$, () => ListStreamsOutput$
644
+ ];
645
+ var ListTagsForResource$ = [9, n0, _LTFR,
646
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
647
+ ];
648
+ var PutClusterPolicy$ = [9, n0, _PCP,
649
+ { [_h]: ["POST", "/cluster/{identifier}/policy", 200] }, () => PutClusterPolicyInput$, () => PutClusterPolicyOutput$
650
+ ];
651
+ var TagResource$ = [9, n0, _TR,
652
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => TagResourceInput$, () => __Unit
653
+ ];
654
+ var UntagResource$ = [9, n0, _UR,
655
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => UntagResourceInput$, () => __Unit
656
+ ];
657
+ var UpdateCluster$ = [9, n0, _UC,
658
+ { [_h]: ["POST", "/cluster/{identifier}", 200] }, () => UpdateClusterInput$, () => UpdateClusterOutput$
659
+ ];
660
+
661
+ const getRuntimeConfig$1 = (config) => {
662
+ return {
663
+ apiVersion: "2018-05-10",
664
+ base64Decoder: config?.base64Decoder ?? fromBase64,
665
+ base64Encoder: config?.base64Encoder ?? toBase64,
666
+ disableHostPrefix: config?.disableHostPrefix ?? false,
667
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
668
+ extensions: config?.extensions ?? [],
669
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDSQLHttpAuthSchemeProvider,
670
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
671
+ {
672
+ schemeId: "aws.auth#sigv4",
673
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
674
+ signer: new AwsSdkSigV4Signer(),
675
+ },
676
+ ],
677
+ logger: config?.logger ?? new NoOpLogger(),
678
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
679
+ protocolSettings: config?.protocolSettings ?? {
680
+ defaultNamespace: "com.amazonaws.dsql",
681
+ errorTypeRegistries,
682
+ version: "2018-05-10",
683
+ serviceTarget: "DSQL",
684
+ },
685
+ serviceId: config?.serviceId ?? "DSQL",
686
+ urlParser: config?.urlParser ?? parseUrl,
687
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
688
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
689
+ };
690
+ };
691
+
692
+ const getRuntimeConfig = (config) => {
693
+ emitWarningIfUnsupportedVersion(process.version);
694
+ const defaultsMode = resolveDefaultsModeConfig(config);
695
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
696
+ const clientSharedValues = getRuntimeConfig$1(config);
697
+ emitWarningIfUnsupportedVersion$1(process.version);
698
+ const loaderConfig = {
699
+ profile: config?.profile,
700
+ logger: clientSharedValues.logger,
701
+ };
702
+ return {
703
+ ...clientSharedValues,
704
+ ...config,
705
+ runtime: "node",
706
+ defaultsMode,
707
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
708
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
709
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
710
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
711
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
712
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
713
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
714
+ retryMode: config?.retryMode ??
715
+ loadConfig({
716
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
717
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
718
+ }, config),
719
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
720
+ streamCollector: config?.streamCollector ?? streamCollector,
721
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
722
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
723
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
724
+ };
725
+ };
726
+
32
727
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
33
728
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
34
729
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -499,32 +1194,103 @@ const StreamFailureErrorCode = {
499
1194
  ROLE_ACCESS_DENIED: "ROLE_ACCESS_DENIED",
500
1195
  };
501
1196
 
1197
+ exports.AccessDeniedException = AccessDeniedException;
1198
+ exports.AccessDeniedException$ = AccessDeniedException$;
502
1199
  exports.ClusterStatus = ClusterStatus;
1200
+ exports.ClusterSummary$ = ClusterSummary$;
1201
+ exports.ConflictException = ConflictException;
1202
+ exports.ConflictException$ = ConflictException$;
1203
+ exports.CreateCluster$ = CreateCluster$;
503
1204
  exports.CreateClusterCommand = CreateClusterCommand;
1205
+ exports.CreateClusterInput$ = CreateClusterInput$;
1206
+ exports.CreateClusterOutput$ = CreateClusterOutput$;
1207
+ exports.CreateStream$ = CreateStream$;
504
1208
  exports.CreateStreamCommand = CreateStreamCommand;
1209
+ exports.CreateStreamInput$ = CreateStreamInput$;
1210
+ exports.CreateStreamOutput$ = CreateStreamOutput$;
505
1211
  exports.DSQL = DSQL;
506
1212
  exports.DSQLClient = DSQLClient;
1213
+ exports.DSQLServiceException = DSQLServiceException;
1214
+ exports.DSQLServiceException$ = DSQLServiceException$;
1215
+ exports.DeleteCluster$ = DeleteCluster$;
507
1216
  exports.DeleteClusterCommand = DeleteClusterCommand;
1217
+ exports.DeleteClusterInput$ = DeleteClusterInput$;
1218
+ exports.DeleteClusterOutput$ = DeleteClusterOutput$;
1219
+ exports.DeleteClusterPolicy$ = DeleteClusterPolicy$;
508
1220
  exports.DeleteClusterPolicyCommand = DeleteClusterPolicyCommand;
1221
+ exports.DeleteClusterPolicyInput$ = DeleteClusterPolicyInput$;
1222
+ exports.DeleteClusterPolicyOutput$ = DeleteClusterPolicyOutput$;
1223
+ exports.DeleteStream$ = DeleteStream$;
509
1224
  exports.DeleteStreamCommand = DeleteStreamCommand;
1225
+ exports.DeleteStreamInput$ = DeleteStreamInput$;
1226
+ exports.DeleteStreamOutput$ = DeleteStreamOutput$;
1227
+ exports.EncryptionDetails$ = EncryptionDetails$;
510
1228
  exports.EncryptionStatus = EncryptionStatus;
511
1229
  exports.EncryptionType = EncryptionType;
1230
+ exports.GetCluster$ = GetCluster$;
512
1231
  exports.GetClusterCommand = GetClusterCommand;
1232
+ exports.GetClusterInput$ = GetClusterInput$;
1233
+ exports.GetClusterOutput$ = GetClusterOutput$;
1234
+ exports.GetClusterPolicy$ = GetClusterPolicy$;
513
1235
  exports.GetClusterPolicyCommand = GetClusterPolicyCommand;
1236
+ exports.GetClusterPolicyInput$ = GetClusterPolicyInput$;
1237
+ exports.GetClusterPolicyOutput$ = GetClusterPolicyOutput$;
1238
+ exports.GetStream$ = GetStream$;
514
1239
  exports.GetStreamCommand = GetStreamCommand;
1240
+ exports.GetStreamInput$ = GetStreamInput$;
1241
+ exports.GetStreamOutput$ = GetStreamOutput$;
1242
+ exports.GetVpcEndpointServiceName$ = GetVpcEndpointServiceName$;
515
1243
  exports.GetVpcEndpointServiceNameCommand = GetVpcEndpointServiceNameCommand;
1244
+ exports.GetVpcEndpointServiceNameInput$ = GetVpcEndpointServiceNameInput$;
1245
+ exports.GetVpcEndpointServiceNameOutput$ = GetVpcEndpointServiceNameOutput$;
1246
+ exports.InternalServerException = InternalServerException;
1247
+ exports.InternalServerException$ = InternalServerException$;
1248
+ exports.KinesisTargetDefinition$ = KinesisTargetDefinition$;
1249
+ exports.ListClusters$ = ListClusters$;
516
1250
  exports.ListClustersCommand = ListClustersCommand;
1251
+ exports.ListClustersInput$ = ListClustersInput$;
1252
+ exports.ListClustersOutput$ = ListClustersOutput$;
1253
+ exports.ListStreams$ = ListStreams$;
517
1254
  exports.ListStreamsCommand = ListStreamsCommand;
1255
+ exports.ListStreamsInput$ = ListStreamsInput$;
1256
+ exports.ListStreamsOutput$ = ListStreamsOutput$;
1257
+ exports.ListTagsForResource$ = ListTagsForResource$;
518
1258
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1259
+ exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
1260
+ exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
1261
+ exports.MultiRegionProperties$ = MultiRegionProperties$;
1262
+ exports.PutClusterPolicy$ = PutClusterPolicy$;
519
1263
  exports.PutClusterPolicyCommand = PutClusterPolicyCommand;
1264
+ exports.PutClusterPolicyInput$ = PutClusterPolicyInput$;
1265
+ exports.PutClusterPolicyOutput$ = PutClusterPolicyOutput$;
1266
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1267
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1268
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
1269
+ exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
1270
+ exports.StatusReason$ = StatusReason$;
520
1271
  exports.StreamFailureErrorCode = StreamFailureErrorCode;
521
1272
  exports.StreamFormat = StreamFormat;
522
1273
  exports.StreamOrdering = StreamOrdering;
523
1274
  exports.StreamStatus = StreamStatus;
1275
+ exports.StreamSummary$ = StreamSummary$;
1276
+ exports.TagResource$ = TagResource$;
524
1277
  exports.TagResourceCommand = TagResourceCommand;
1278
+ exports.TagResourceInput$ = TagResourceInput$;
1279
+ exports.TargetDefinition$ = TargetDefinition$;
1280
+ exports.ThrottlingException = ThrottlingException;
1281
+ exports.ThrottlingException$ = ThrottlingException$;
1282
+ exports.UntagResource$ = UntagResource$;
525
1283
  exports.UntagResourceCommand = UntagResourceCommand;
1284
+ exports.UntagResourceInput$ = UntagResourceInput$;
1285
+ exports.UpdateCluster$ = UpdateCluster$;
526
1286
  exports.UpdateClusterCommand = UpdateClusterCommand;
1287
+ exports.UpdateClusterInput$ = UpdateClusterInput$;
1288
+ exports.UpdateClusterOutput$ = UpdateClusterOutput$;
1289
+ exports.ValidationException = ValidationException;
1290
+ exports.ValidationException$ = ValidationException$;
1291
+ exports.ValidationExceptionField$ = ValidationExceptionField$;
527
1292
  exports.ValidationExceptionReason = ValidationExceptionReason;
1293
+ exports.errorTypeRegistries = errorTypeRegistries;
528
1294
  exports.paginateListClusters = paginateListClusters;
529
1295
  exports.paginateListStreams = paginateListStreams;
530
1296
  exports.waitForClusterActive = waitForClusterActive;