@aws-sdk/client-dsql 3.987.0 → 3.989.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.
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const DSQLServiceException_1 = require("./DSQLServiceException");
5
+ class AccessDeniedException extends DSQLServiceException_1.DSQLServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends DSQLServiceException_1.DSQLServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ resourceId;
22
+ resourceType;
23
+ constructor(opts) {
24
+ super({
25
+ name: "ConflictException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, ConflictException.prototype);
30
+ this.resourceId = opts.resourceId;
31
+ this.resourceType = opts.resourceType;
32
+ }
33
+ }
34
+ exports.ConflictException = ConflictException;
35
+ class InternalServerException extends DSQLServiceException_1.DSQLServiceException {
36
+ name = "InternalServerException";
37
+ $fault = "server";
38
+ $retryable = {};
39
+ retryAfterSeconds;
40
+ constructor(opts) {
41
+ super({
42
+ name: "InternalServerException",
43
+ $fault: "server",
44
+ ...opts,
45
+ });
46
+ Object.setPrototypeOf(this, InternalServerException.prototype);
47
+ this.retryAfterSeconds = opts.retryAfterSeconds;
48
+ }
49
+ }
50
+ exports.InternalServerException = InternalServerException;
51
+ class ServiceQuotaExceededException extends DSQLServiceException_1.DSQLServiceException {
52
+ name = "ServiceQuotaExceededException";
53
+ $fault = "client";
54
+ resourceId;
55
+ resourceType;
56
+ serviceCode;
57
+ quotaCode;
58
+ constructor(opts) {
59
+ super({
60
+ name: "ServiceQuotaExceededException",
61
+ $fault: "client",
62
+ ...opts,
63
+ });
64
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
65
+ this.resourceId = opts.resourceId;
66
+ this.resourceType = opts.resourceType;
67
+ this.serviceCode = opts.serviceCode;
68
+ this.quotaCode = opts.quotaCode;
69
+ }
70
+ }
71
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
72
+ class ThrottlingException extends DSQLServiceException_1.DSQLServiceException {
73
+ name = "ThrottlingException";
74
+ $fault = "client";
75
+ $retryable = {
76
+ throttling: true,
77
+ };
78
+ serviceCode;
79
+ quotaCode;
80
+ retryAfterSeconds;
81
+ constructor(opts) {
82
+ super({
83
+ name: "ThrottlingException",
84
+ $fault: "client",
85
+ ...opts,
86
+ });
87
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
88
+ this.serviceCode = opts.serviceCode;
89
+ this.quotaCode = opts.quotaCode;
90
+ this.retryAfterSeconds = opts.retryAfterSeconds;
91
+ }
92
+ }
93
+ exports.ThrottlingException = ThrottlingException;
94
+ class ValidationException extends DSQLServiceException_1.DSQLServiceException {
95
+ name = "ValidationException";
96
+ $fault = "client";
97
+ reason;
98
+ fieldList;
99
+ constructor(opts) {
100
+ super({
101
+ name: "ValidationException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, ValidationException.prototype);
106
+ this.reason = opts.reason;
107
+ this.fieldList = opts.fieldList;
108
+ }
109
+ }
110
+ exports.ValidationException = ValidationException;
111
+ class ResourceNotFoundException extends DSQLServiceException_1.DSQLServiceException {
112
+ name = "ResourceNotFoundException";
113
+ $fault = "client";
114
+ resourceId;
115
+ resourceType;
116
+ constructor(opts) {
117
+ super({
118
+ name: "ResourceNotFoundException",
119
+ $fault: "client",
120
+ ...opts,
121
+ });
122
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
123
+ this.resourceId = opts.resourceId;
124
+ this.resourceType = opts.resourceType;
125
+ }
126
+ }
127
+ exports.ResourceNotFoundException = ResourceNotFoundException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2018-05-10",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.dsql",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-05-10",
33
35
  serviceTarget: "DSQL",
34
36
  },
@@ -0,0 +1,329 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateCluster$ = exports.UntagResource$ = exports.TagResource$ = exports.PutClusterPolicy$ = exports.ListTagsForResource$ = exports.ListClusters$ = exports.GetVpcEndpointServiceName$ = exports.GetClusterPolicy$ = exports.GetCluster$ = exports.DeleteClusterPolicy$ = exports.DeleteCluster$ = exports.CreateCluster$ = exports.ValidationExceptionField$ = exports.UpdateClusterOutput$ = exports.UpdateClusterInput$ = exports.UntagResourceInput$ = exports.TagResourceInput$ = exports.PutClusterPolicyOutput$ = exports.PutClusterPolicyInput$ = exports.MultiRegionProperties$ = exports.ListTagsForResourceOutput$ = exports.ListTagsForResourceInput$ = exports.ListClustersOutput$ = exports.ListClustersInput$ = exports.GetVpcEndpointServiceNameOutput$ = exports.GetVpcEndpointServiceNameInput$ = exports.GetClusterPolicyOutput$ = exports.GetClusterPolicyInput$ = exports.GetClusterOutput$ = exports.GetClusterInput$ = exports.EncryptionDetails$ = exports.DeleteClusterPolicyOutput$ = exports.DeleteClusterPolicyInput$ = exports.DeleteClusterOutput$ = exports.DeleteClusterInput$ = exports.CreateClusterOutput$ = exports.CreateClusterInput$ = exports.ClusterSummary$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.DSQLServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _CC = "CreateCluster";
6
+ const _CCI = "CreateClusterInput";
7
+ const _CCO = "CreateClusterOutput";
8
+ const _CE = "ConflictException";
9
+ const _CL = "ClusterList";
10
+ const _CS = "ClusterSummary";
11
+ const _DC = "DeleteCluster";
12
+ const _DCI = "DeleteClusterInput";
13
+ const _DCO = "DeleteClusterOutput";
14
+ const _DCP = "DeleteClusterPolicy";
15
+ const _DCPI = "DeleteClusterPolicyInput";
16
+ const _DCPO = "DeleteClusterPolicyOutput";
17
+ const _ED = "EncryptionDetails";
18
+ const _GC = "GetCluster";
19
+ const _GCI = "GetClusterInput";
20
+ const _GCO = "GetClusterOutput";
21
+ const _GCP = "GetClusterPolicy";
22
+ const _GCPI = "GetClusterPolicyInput";
23
+ const _GCPO = "GetClusterPolicyOutput";
24
+ const _GVESN = "GetVpcEndpointServiceName";
25
+ const _GVESNI = "GetVpcEndpointServiceNameInput";
26
+ const _GVESNO = "GetVpcEndpointServiceNameOutput";
27
+ const _ISE = "InternalServerException";
28
+ const _LC = "ListClusters";
29
+ const _LCI = "ListClustersInput";
30
+ const _LCO = "ListClustersOutput";
31
+ const _LTFR = "ListTagsForResource";
32
+ const _LTFRI = "ListTagsForResourceInput";
33
+ const _LTFRO = "ListTagsForResourceOutput";
34
+ const _MRP = "MultiRegionProperties";
35
+ const _PCP = "PutClusterPolicy";
36
+ const _PCPI = "PutClusterPolicyInput";
37
+ const _PCPO = "PutClusterPolicyOutput";
38
+ const _RA = "Retry-After";
39
+ const _RNFE = "ResourceNotFoundException";
40
+ const _SQEE = "ServiceQuotaExceededException";
41
+ const _TE = "ThrottlingException";
42
+ const _TR = "TagResource";
43
+ const _TRI = "TagResourceInput";
44
+ const _UC = "UpdateCluster";
45
+ const _UCI = "UpdateClusterInput";
46
+ const _UCO = "UpdateClusterOutput";
47
+ const _UR = "UntagResource";
48
+ const _URI = "UntagResourceInput";
49
+ const _VE = "ValidationException";
50
+ const _VEF = "ValidationExceptionField";
51
+ const _VEFL = "ValidationExceptionFieldList";
52
+ const _a = "arn";
53
+ const _bPLSC = "bypassPolicyLockoutSafetyCheck";
54
+ const _c = "client";
55
+ const _cT = "clientToken";
56
+ const _cTr = "creationTime";
57
+ const _cVE = "clusterVpcEndpoint";
58
+ const _cl = "clusters";
59
+ const _ct = "client-token";
60
+ const _dPE = "deletionProtectionEnabled";
61
+ const _e = "error";
62
+ const _eD = "encryptionDetails";
63
+ const _ePV = "expectedPolicyVersion";
64
+ const _eS = "encryptionStatus";
65
+ const _eT = "encryptionType";
66
+ const _en = "endpoint";
67
+ const _epv = "expected-policy-version";
68
+ const _fL = "fieldList";
69
+ const _h = "http";
70
+ const _hE = "httpError";
71
+ const _hH = "httpHeader";
72
+ const _hQ = "httpQuery";
73
+ const _i = "identifier";
74
+ const _iT = "idempotencyToken";
75
+ const _kEK = "kmsEncryptionKey";
76
+ const _kKA = "kmsKeyArn";
77
+ const _m = "message";
78
+ const _mR = "maxResults";
79
+ const _mRP = "multiRegionProperties";
80
+ const _mr = "max-results";
81
+ const _n = "name";
82
+ const _nT = "nextToken";
83
+ const _nt = "next-token";
84
+ const _p = "policy";
85
+ const _pV = "policyVersion";
86
+ const _qC = "quotaCode";
87
+ const _r = "reason";
88
+ const _rA = "resourceArn";
89
+ const _rAS = "retryAfterSeconds";
90
+ const _rI = "resourceId";
91
+ const _rT = "resourceType";
92
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dsql";
93
+ const _sC = "serviceCode";
94
+ const _sN = "serviceName";
95
+ const _se = "server";
96
+ const _st = "status";
97
+ const _t = "tags";
98
+ const _tK = "tagKeys";
99
+ const _wR = "witnessRegion";
100
+ const n0 = "com.amazonaws.dsql";
101
+ const schema_1 = require("@smithy/core/schema");
102
+ const DSQLServiceException_1 = require("../models/DSQLServiceException");
103
+ const errors_1 = require("../models/errors");
104
+ const _s_registry = schema_1.TypeRegistry.for(_s);
105
+ exports.DSQLServiceException$ = [-3, _s, "DSQLServiceException", 0, [], []];
106
+ _s_registry.registerError(exports.DSQLServiceException$, DSQLServiceException_1.DSQLServiceException);
107
+ const n0_registry = schema_1.TypeRegistry.for(n0);
108
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
109
+ { [_e]: _c, [_hE]: 403 },
110
+ [_m],
111
+ [0], 1
112
+ ];
113
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
114
+ exports.ConflictException$ = [-3, n0, _CE,
115
+ { [_e]: _c, [_hE]: 409 },
116
+ [_m, _rI, _rT],
117
+ [0, 0, 0], 1
118
+ ];
119
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
120
+ exports.InternalServerException$ = [-3, n0, _ISE,
121
+ { [_e]: _se, [_hE]: 500 },
122
+ [_m, _rAS],
123
+ [0, [1, { [_hH]: _RA }]], 1
124
+ ];
125
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
126
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
127
+ { [_e]: _c, [_hE]: 404 },
128
+ [_m, _rI, _rT],
129
+ [0, 0, 0], 3
130
+ ];
131
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
132
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
133
+ { [_e]: _c, [_hE]: 402 },
134
+ [_m, _rI, _rT, _sC, _qC],
135
+ [0, 0, 0, 0, 0], 5
136
+ ];
137
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
138
+ exports.ThrottlingException$ = [-3, n0, _TE,
139
+ { [_e]: _c, [_hE]: 429 },
140
+ [_m, _sC, _qC, _rAS],
141
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
142
+ ];
143
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
144
+ exports.ValidationException$ = [-3, n0, _VE,
145
+ { [_e]: _c, [_hE]: 400 },
146
+ [_m, _r, _fL],
147
+ [0, 0, () => ValidationExceptionFieldList], 2
148
+ ];
149
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
150
+ exports.errorTypeRegistries = [
151
+ _s_registry,
152
+ n0_registry,
153
+ ];
154
+ exports.ClusterSummary$ = [3, n0, _CS,
155
+ 0,
156
+ [_i, _a],
157
+ [0, 0], 2
158
+ ];
159
+ exports.CreateClusterInput$ = [3, n0, _CCI,
160
+ 0,
161
+ [_dPE, _kEK, _t, _cT, _mRP, _p, _bPLSC],
162
+ [2, 0, 128 | 0, [0, 4], () => exports.MultiRegionProperties$, 0, 2]
163
+ ];
164
+ exports.CreateClusterOutput$ = [3, n0, _CCO,
165
+ 0,
166
+ [_i, _a, _st, _cTr, _dPE, _mRP, _eD, _en],
167
+ [0, 0, 0, 4, 2, () => exports.MultiRegionProperties$, () => exports.EncryptionDetails$, 0], 5
168
+ ];
169
+ exports.DeleteClusterInput$ = [3, n0, _DCI,
170
+ 0,
171
+ [_i, _cT],
172
+ [[0, 1], [0, { [_hQ]: _ct, [_iT]: 1 }]], 1
173
+ ];
174
+ exports.DeleteClusterOutput$ = [3, n0, _DCO,
175
+ 0,
176
+ [_i, _a, _st, _cTr],
177
+ [0, 0, 0, 4], 4
178
+ ];
179
+ exports.DeleteClusterPolicyInput$ = [3, n0, _DCPI,
180
+ 0,
181
+ [_i, _ePV, _cT],
182
+ [[0, 1], [0, { [_hQ]: _epv }], [0, { [_hQ]: _ct, [_iT]: 1 }]], 1
183
+ ];
184
+ exports.DeleteClusterPolicyOutput$ = [3, n0, _DCPO,
185
+ 0,
186
+ [_pV],
187
+ [0], 1
188
+ ];
189
+ exports.EncryptionDetails$ = [3, n0, _ED,
190
+ 0,
191
+ [_eT, _eS, _kKA],
192
+ [0, 0, 0], 2
193
+ ];
194
+ exports.GetClusterInput$ = [3, n0, _GCI,
195
+ 0,
196
+ [_i],
197
+ [[0, 1]], 1
198
+ ];
199
+ exports.GetClusterOutput$ = [3, n0, _GCO,
200
+ 0,
201
+ [_i, _a, _st, _cTr, _dPE, _mRP, _t, _eD, _en],
202
+ [0, 0, 0, 4, 2, () => exports.MultiRegionProperties$, 128 | 0, () => exports.EncryptionDetails$, 0], 5
203
+ ];
204
+ exports.GetClusterPolicyInput$ = [3, n0, _GCPI,
205
+ 0,
206
+ [_i],
207
+ [[0, 1]], 1
208
+ ];
209
+ exports.GetClusterPolicyOutput$ = [3, n0, _GCPO,
210
+ 0,
211
+ [_p, _pV],
212
+ [0, 0], 2
213
+ ];
214
+ exports.GetVpcEndpointServiceNameInput$ = [3, n0, _GVESNI,
215
+ 0,
216
+ [_i],
217
+ [[0, 1]], 1
218
+ ];
219
+ exports.GetVpcEndpointServiceNameOutput$ = [3, n0, _GVESNO,
220
+ 0,
221
+ [_sN, _cVE],
222
+ [0, 0], 1
223
+ ];
224
+ exports.ListClustersInput$ = [3, n0, _LCI,
225
+ 0,
226
+ [_mR, _nT],
227
+ [[1, { [_hQ]: _mr }], [0, { [_hQ]: _nt }]]
228
+ ];
229
+ exports.ListClustersOutput$ = [3, n0, _LCO,
230
+ 0,
231
+ [_cl, _nT],
232
+ [() => ClusterList, 0], 1
233
+ ];
234
+ exports.ListTagsForResourceInput$ = [3, n0, _LTFRI,
235
+ 0,
236
+ [_rA],
237
+ [[0, 1]], 1
238
+ ];
239
+ exports.ListTagsForResourceOutput$ = [3, n0, _LTFRO,
240
+ 0,
241
+ [_t],
242
+ [128 | 0]
243
+ ];
244
+ exports.MultiRegionProperties$ = [3, n0, _MRP,
245
+ 0,
246
+ [_wR, _cl],
247
+ [0, 64 | 0]
248
+ ];
249
+ exports.PutClusterPolicyInput$ = [3, n0, _PCPI,
250
+ 0,
251
+ [_i, _p, _bPLSC, _ePV, _cT],
252
+ [[0, 1], 0, 2, 0, [0, 4]], 2
253
+ ];
254
+ exports.PutClusterPolicyOutput$ = [3, n0, _PCPO,
255
+ 0,
256
+ [_pV],
257
+ [0], 1
258
+ ];
259
+ exports.TagResourceInput$ = [3, n0, _TRI,
260
+ 0,
261
+ [_rA, _t],
262
+ [[0, 1], 128 | 0], 2
263
+ ];
264
+ exports.UntagResourceInput$ = [3, n0, _URI,
265
+ 0,
266
+ [_rA, _tK],
267
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
268
+ ];
269
+ exports.UpdateClusterInput$ = [3, n0, _UCI,
270
+ 0,
271
+ [_i, _dPE, _kEK, _cT, _mRP],
272
+ [[0, 1], 2, 0, [0, 4], () => exports.MultiRegionProperties$], 1
273
+ ];
274
+ exports.UpdateClusterOutput$ = [3, n0, _UCO,
275
+ 0,
276
+ [_i, _a, _st, _cTr],
277
+ [0, 0, 0, 4], 4
278
+ ];
279
+ exports.ValidationExceptionField$ = [3, n0, _VEF,
280
+ 0,
281
+ [_n, _m],
282
+ [0, 0], 2
283
+ ];
284
+ var __Unit = "unit";
285
+ var ClusterArnList = 64 | 0;
286
+ var ClusterList = [1, n0, _CL,
287
+ 0, () => exports.ClusterSummary$
288
+ ];
289
+ var TagKeyList = 64 | 0;
290
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
291
+ 0, () => exports.ValidationExceptionField$
292
+ ];
293
+ var TagMap = 128 | 0;
294
+ exports.CreateCluster$ = [9, n0, _CC,
295
+ { [_h]: ["POST", "/cluster", 200] }, () => exports.CreateClusterInput$, () => exports.CreateClusterOutput$
296
+ ];
297
+ exports.DeleteCluster$ = [9, n0, _DC,
298
+ { [_h]: ["DELETE", "/cluster/{identifier}", 200] }, () => exports.DeleteClusterInput$, () => exports.DeleteClusterOutput$
299
+ ];
300
+ exports.DeleteClusterPolicy$ = [9, n0, _DCP,
301
+ { [_h]: ["DELETE", "/cluster/{identifier}/policy", 200] }, () => exports.DeleteClusterPolicyInput$, () => exports.DeleteClusterPolicyOutput$
302
+ ];
303
+ exports.GetCluster$ = [9, n0, _GC,
304
+ { [_h]: ["GET", "/cluster/{identifier}", 200] }, () => exports.GetClusterInput$, () => exports.GetClusterOutput$
305
+ ];
306
+ exports.GetClusterPolicy$ = [9, n0, _GCP,
307
+ { [_h]: ["GET", "/cluster/{identifier}/policy", 200] }, () => exports.GetClusterPolicyInput$, () => exports.GetClusterPolicyOutput$
308
+ ];
309
+ exports.GetVpcEndpointServiceName$ = [9, n0, _GVESN,
310
+ { [_h]: ["GET", "/clusters/{identifier}/vpc-endpoint-service-name", 200] }, () => exports.GetVpcEndpointServiceNameInput$, () => exports.GetVpcEndpointServiceNameOutput$
311
+ ];
312
+ exports.ListClusters$ = [9, n0, _LC,
313
+ { [_h]: ["GET", "/cluster", 200] }, () => exports.ListClustersInput$, () => exports.ListClustersOutput$
314
+ ];
315
+ exports.ListTagsForResource$ = [9, n0, _LTFR,
316
+ { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => exports.ListTagsForResourceInput$, () => exports.ListTagsForResourceOutput$
317
+ ];
318
+ exports.PutClusterPolicy$ = [9, n0, _PCP,
319
+ { [_h]: ["POST", "/cluster/{identifier}/policy", 200] }, () => exports.PutClusterPolicyInput$, () => exports.PutClusterPolicyOutput$
320
+ ];
321
+ exports.TagResource$ = [9, n0, _TR,
322
+ { [_h]: ["POST", "/tags/{resourceArn}", 200] }, () => exports.TagResourceInput$, () => __Unit
323
+ ];
324
+ exports.UntagResource$ = [9, n0, _UR,
325
+ { [_h]: ["DELETE", "/tags/{resourceArn}", 200] }, () => exports.UntagResourceInput$, () => __Unit
326
+ ];
327
+ exports.UpdateCluster$ = [9, n0, _UC,
328
+ { [_h]: ["POST", "/cluster/{identifier}", 200] }, () => exports.UpdateClusterInput$, () => exports.UpdateClusterOutput$
329
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultDSQLHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2018-05-10",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.dsql",
30
+ errorTypeRegistries,
29
31
  version: "2018-05-10",
30
32
  serviceTarget: "DSQL",
31
33
  },
@@ -86,11 +86,11 @@ const _rA = "resourceArn";
86
86
  const _rAS = "retryAfterSeconds";
87
87
  const _rI = "resourceId";
88
88
  const _rT = "resourceType";
89
- const _s = "status";
89
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dsql";
90
90
  const _sC = "serviceCode";
91
91
  const _sN = "serviceName";
92
92
  const _se = "server";
93
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.dsql";
93
+ const _st = "status";
94
94
  const _t = "tags";
95
95
  const _tK = "tagKeys";
96
96
  const _wR = "witnessRegion";
@@ -98,23 +98,61 @@ const n0 = "com.amazonaws.dsql";
98
98
  import { TypeRegistry } from "@smithy/core/schema";
99
99
  import { DSQLServiceException } from "../models/DSQLServiceException";
100
100
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
101
+ const _s_registry = TypeRegistry.for(_s);
102
+ export var DSQLServiceException$ = [-3, _s, "DSQLServiceException", 0, [], []];
103
+ _s_registry.registerError(DSQLServiceException$, DSQLServiceException);
104
+ const n0_registry = TypeRegistry.for(n0);
101
105
  export var AccessDeniedException$ = [-3, n0, _ADE,
102
106
  { [_e]: _c, [_hE]: 403 },
103
107
  [_m],
104
108
  [0], 1
105
109
  ];
106
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
107
- export var ClusterSummary$ = [3, n0, _CS,
108
- 0,
109
- [_i, _a],
110
- [0, 0], 2
111
- ];
110
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
112
111
  export var ConflictException$ = [-3, n0, _CE,
113
112
  { [_e]: _c, [_hE]: 409 },
114
113
  [_m, _rI, _rT],
115
114
  [0, 0, 0], 1
116
115
  ];
117
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
116
+ n0_registry.registerError(ConflictException$, ConflictException);
117
+ export var InternalServerException$ = [-3, n0, _ISE,
118
+ { [_e]: _se, [_hE]: 500 },
119
+ [_m, _rAS],
120
+ [0, [1, { [_hH]: _RA }]], 1
121
+ ];
122
+ n0_registry.registerError(InternalServerException$, InternalServerException);
123
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
124
+ { [_e]: _c, [_hE]: 404 },
125
+ [_m, _rI, _rT],
126
+ [0, 0, 0], 3
127
+ ];
128
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
129
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
130
+ { [_e]: _c, [_hE]: 402 },
131
+ [_m, _rI, _rT, _sC, _qC],
132
+ [0, 0, 0, 0, 0], 5
133
+ ];
134
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
135
+ export var ThrottlingException$ = [-3, n0, _TE,
136
+ { [_e]: _c, [_hE]: 429 },
137
+ [_m, _sC, _qC, _rAS],
138
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
139
+ ];
140
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
141
+ export var ValidationException$ = [-3, n0, _VE,
142
+ { [_e]: _c, [_hE]: 400 },
143
+ [_m, _r, _fL],
144
+ [0, 0, () => ValidationExceptionFieldList], 2
145
+ ];
146
+ n0_registry.registerError(ValidationException$, ValidationException);
147
+ export const errorTypeRegistries = [
148
+ _s_registry,
149
+ n0_registry,
150
+ ];
151
+ export var ClusterSummary$ = [3, n0, _CS,
152
+ 0,
153
+ [_i, _a],
154
+ [0, 0], 2
155
+ ];
118
156
  export var CreateClusterInput$ = [3, n0, _CCI,
119
157
  0,
120
158
  [_dPE, _kEK, _t, _cT, _mRP, _p, _bPLSC],
@@ -122,7 +160,7 @@ export var CreateClusterInput$ = [3, n0, _CCI,
122
160
  ];
123
161
  export var CreateClusterOutput$ = [3, n0, _CCO,
124
162
  0,
125
- [_i, _a, _s, _cTr, _dPE, _mRP, _eD, _en],
163
+ [_i, _a, _st, _cTr, _dPE, _mRP, _eD, _en],
126
164
  [0, 0, 0, 4, 2, () => MultiRegionProperties$, () => EncryptionDetails$, 0], 5
127
165
  ];
128
166
  export var DeleteClusterInput$ = [3, n0, _DCI,
@@ -132,7 +170,7 @@ export var DeleteClusterInput$ = [3, n0, _DCI,
132
170
  ];
133
171
  export var DeleteClusterOutput$ = [3, n0, _DCO,
134
172
  0,
135
- [_i, _a, _s, _cTr],
173
+ [_i, _a, _st, _cTr],
136
174
  [0, 0, 0, 4], 4
137
175
  ];
138
176
  export var DeleteClusterPolicyInput$ = [3, n0, _DCPI,
@@ -157,7 +195,7 @@ export var GetClusterInput$ = [3, n0, _GCI,
157
195
  ];
158
196
  export var GetClusterOutput$ = [3, n0, _GCO,
159
197
  0,
160
- [_i, _a, _s, _cTr, _dPE, _mRP, _t, _eD, _en],
198
+ [_i, _a, _st, _cTr, _dPE, _mRP, _t, _eD, _en],
161
199
  [0, 0, 0, 4, 2, () => MultiRegionProperties$, 128 | 0, () => EncryptionDetails$, 0], 5
162
200
  ];
163
201
  export var GetClusterPolicyInput$ = [3, n0, _GCPI,
@@ -180,12 +218,6 @@ export var GetVpcEndpointServiceNameOutput$ = [3, n0, _GVESNO,
180
218
  [_sN, _cVE],
181
219
  [0, 0], 1
182
220
  ];
183
- export var InternalServerException$ = [-3, n0, _ISE,
184
- { [_e]: _se, [_hE]: 500 },
185
- [_m, _rAS],
186
- [0, [1, { [_hH]: _RA }]], 1
187
- ];
188
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
189
221
  export var ListClustersInput$ = [3, n0, _LCI,
190
222
  0,
191
223
  [_mR, _nT],
@@ -221,29 +253,11 @@ export var PutClusterPolicyOutput$ = [3, n0, _PCPO,
221
253
  [_pV],
222
254
  [0], 1
223
255
  ];
224
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
225
- { [_e]: _c, [_hE]: 404 },
226
- [_m, _rI, _rT],
227
- [0, 0, 0], 3
228
- ];
229
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
230
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
231
- { [_e]: _c, [_hE]: 402 },
232
- [_m, _rI, _rT, _sC, _qC],
233
- [0, 0, 0, 0, 0], 5
234
- ];
235
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
236
256
  export var TagResourceInput$ = [3, n0, _TRI,
237
257
  0,
238
258
  [_rA, _t],
239
259
  [[0, 1], 128 | 0], 2
240
260
  ];
241
- export var ThrottlingException$ = [-3, n0, _TE,
242
- { [_e]: _c, [_hE]: 429 },
243
- [_m, _sC, _qC, _rAS],
244
- [0, 0, 0, [1, { [_hH]: _RA }]], 1
245
- ];
246
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
247
261
  export var UntagResourceInput$ = [3, n0, _URI,
248
262
  0,
249
263
  [_rA, _tK],
@@ -256,23 +270,15 @@ export var UpdateClusterInput$ = [3, n0, _UCI,
256
270
  ];
257
271
  export var UpdateClusterOutput$ = [3, n0, _UCO,
258
272
  0,
259
- [_i, _a, _s, _cTr],
273
+ [_i, _a, _st, _cTr],
260
274
  [0, 0, 0, 4], 4
261
275
  ];
262
- export var ValidationException$ = [-3, n0, _VE,
263
- { [_e]: _c, [_hE]: 400 },
264
- [_m, _r, _fL],
265
- [0, 0, () => ValidationExceptionFieldList], 2
266
- ];
267
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
268
276
  export var ValidationExceptionField$ = [3, n0, _VEF,
269
277
  0,
270
278
  [_n, _m],
271
279
  [0, 0], 2
272
280
  ];
273
281
  var __Unit = "unit";
274
- export var DSQLServiceException$ = [-3, _sm, "DSQLServiceException", 0, [], []];
275
- TypeRegistry.for(_sm).registerError(DSQLServiceException$, DSQLServiceException);
276
282
  var ClusterArnList = 64 | 0;
277
283
  var ClusterList = [1, n0, _CL,
278
284
  0, () => ClusterSummary$