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