@aws-sdk/client-database-migration-service 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,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DatabaseMigrationServiceServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class DatabaseMigrationServiceServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, DatabaseMigrationServiceServiceException.prototype);
10
+ }
11
+ }
12
+ exports.DatabaseMigrationServiceServiceException = DatabaseMigrationServiceServiceException;
@@ -0,0 +1,344 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KMSFault = exports.SubnetAlreadyInUse = exports.UpgradeDependencyFailureFault = exports.InvalidCertificateFault = exports.CollectorNotFoundFault = exports.StorageQuotaExceededFault = exports.InsufficientResourceCapacityFault = exports.ReplicationSubnetGroupDoesNotCoverEnoughAZs = exports.InvalidSubnet = exports.S3ResourceNotFoundFault = exports.SNSNoAuthorizationFault = exports.SNSInvalidTopicFault = exports.KMSThrottlingFault = exports.KMSNotFoundFault = exports.KMSInvalidStateFault = exports.KMSDisabledFault = exports.KMSAccessDeniedFault = exports.S3AccessDeniedFault = exports.KMSKeyNotAccessibleFault = exports.ResourceQuotaExceededFault = exports.ResourceAlreadyExistsFault = exports.InvalidOperationFault = exports.FailedDependencyFault = exports.ResourceNotFoundFault = exports.InvalidResourceStateFault = exports.AccessDeniedFault = void 0;
4
+ const DatabaseMigrationServiceServiceException_1 = require("./DatabaseMigrationServiceServiceException");
5
+ class AccessDeniedFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
6
+ name = "AccessDeniedFault";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedFault",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedFault.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedFault = AccessDeniedFault;
18
+ class InvalidResourceStateFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
19
+ name = "InvalidResourceStateFault";
20
+ $fault = "client";
21
+ constructor(opts) {
22
+ super({
23
+ name: "InvalidResourceStateFault",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, InvalidResourceStateFault.prototype);
28
+ }
29
+ }
30
+ exports.InvalidResourceStateFault = InvalidResourceStateFault;
31
+ class ResourceNotFoundFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
32
+ name = "ResourceNotFoundFault";
33
+ $fault = "client";
34
+ constructor(opts) {
35
+ super({
36
+ name: "ResourceNotFoundFault",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, ResourceNotFoundFault.prototype);
41
+ }
42
+ }
43
+ exports.ResourceNotFoundFault = ResourceNotFoundFault;
44
+ class FailedDependencyFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
45
+ name = "FailedDependencyFault";
46
+ $fault = "client";
47
+ constructor(opts) {
48
+ super({
49
+ name: "FailedDependencyFault",
50
+ $fault: "client",
51
+ ...opts,
52
+ });
53
+ Object.setPrototypeOf(this, FailedDependencyFault.prototype);
54
+ }
55
+ }
56
+ exports.FailedDependencyFault = FailedDependencyFault;
57
+ class InvalidOperationFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
58
+ name = "InvalidOperationFault";
59
+ $fault = "client";
60
+ constructor(opts) {
61
+ super({
62
+ name: "InvalidOperationFault",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, InvalidOperationFault.prototype);
67
+ }
68
+ }
69
+ exports.InvalidOperationFault = InvalidOperationFault;
70
+ class ResourceAlreadyExistsFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
71
+ name = "ResourceAlreadyExistsFault";
72
+ $fault = "client";
73
+ resourceArn;
74
+ constructor(opts) {
75
+ super({
76
+ name: "ResourceAlreadyExistsFault",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ Object.setPrototypeOf(this, ResourceAlreadyExistsFault.prototype);
81
+ this.resourceArn = opts.resourceArn;
82
+ }
83
+ }
84
+ exports.ResourceAlreadyExistsFault = ResourceAlreadyExistsFault;
85
+ class ResourceQuotaExceededFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
86
+ name = "ResourceQuotaExceededFault";
87
+ $fault = "client";
88
+ constructor(opts) {
89
+ super({
90
+ name: "ResourceQuotaExceededFault",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ Object.setPrototypeOf(this, ResourceQuotaExceededFault.prototype);
95
+ }
96
+ }
97
+ exports.ResourceQuotaExceededFault = ResourceQuotaExceededFault;
98
+ class KMSKeyNotAccessibleFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
99
+ name = "KMSKeyNotAccessibleFault";
100
+ $fault = "client";
101
+ constructor(opts) {
102
+ super({
103
+ name: "KMSKeyNotAccessibleFault",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, KMSKeyNotAccessibleFault.prototype);
108
+ }
109
+ }
110
+ exports.KMSKeyNotAccessibleFault = KMSKeyNotAccessibleFault;
111
+ class S3AccessDeniedFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
112
+ name = "S3AccessDeniedFault";
113
+ $fault = "client";
114
+ constructor(opts) {
115
+ super({
116
+ name: "S3AccessDeniedFault",
117
+ $fault: "client",
118
+ ...opts,
119
+ });
120
+ Object.setPrototypeOf(this, S3AccessDeniedFault.prototype);
121
+ }
122
+ }
123
+ exports.S3AccessDeniedFault = S3AccessDeniedFault;
124
+ class KMSAccessDeniedFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
125
+ name = "KMSAccessDeniedFault";
126
+ $fault = "client";
127
+ constructor(opts) {
128
+ super({
129
+ name: "KMSAccessDeniedFault",
130
+ $fault: "client",
131
+ ...opts,
132
+ });
133
+ Object.setPrototypeOf(this, KMSAccessDeniedFault.prototype);
134
+ }
135
+ }
136
+ exports.KMSAccessDeniedFault = KMSAccessDeniedFault;
137
+ class KMSDisabledFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
138
+ name = "KMSDisabledFault";
139
+ $fault = "client";
140
+ constructor(opts) {
141
+ super({
142
+ name: "KMSDisabledFault",
143
+ $fault: "client",
144
+ ...opts,
145
+ });
146
+ Object.setPrototypeOf(this, KMSDisabledFault.prototype);
147
+ }
148
+ }
149
+ exports.KMSDisabledFault = KMSDisabledFault;
150
+ class KMSInvalidStateFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
151
+ name = "KMSInvalidStateFault";
152
+ $fault = "client";
153
+ constructor(opts) {
154
+ super({
155
+ name: "KMSInvalidStateFault",
156
+ $fault: "client",
157
+ ...opts,
158
+ });
159
+ Object.setPrototypeOf(this, KMSInvalidStateFault.prototype);
160
+ }
161
+ }
162
+ exports.KMSInvalidStateFault = KMSInvalidStateFault;
163
+ class KMSNotFoundFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
164
+ name = "KMSNotFoundFault";
165
+ $fault = "client";
166
+ constructor(opts) {
167
+ super({
168
+ name: "KMSNotFoundFault",
169
+ $fault: "client",
170
+ ...opts,
171
+ });
172
+ Object.setPrototypeOf(this, KMSNotFoundFault.prototype);
173
+ }
174
+ }
175
+ exports.KMSNotFoundFault = KMSNotFoundFault;
176
+ class KMSThrottlingFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
177
+ name = "KMSThrottlingFault";
178
+ $fault = "client";
179
+ constructor(opts) {
180
+ super({
181
+ name: "KMSThrottlingFault",
182
+ $fault: "client",
183
+ ...opts,
184
+ });
185
+ Object.setPrototypeOf(this, KMSThrottlingFault.prototype);
186
+ }
187
+ }
188
+ exports.KMSThrottlingFault = KMSThrottlingFault;
189
+ class SNSInvalidTopicFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
190
+ name = "SNSInvalidTopicFault";
191
+ $fault = "client";
192
+ constructor(opts) {
193
+ super({
194
+ name: "SNSInvalidTopicFault",
195
+ $fault: "client",
196
+ ...opts,
197
+ });
198
+ Object.setPrototypeOf(this, SNSInvalidTopicFault.prototype);
199
+ }
200
+ }
201
+ exports.SNSInvalidTopicFault = SNSInvalidTopicFault;
202
+ class SNSNoAuthorizationFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
203
+ name = "SNSNoAuthorizationFault";
204
+ $fault = "client";
205
+ constructor(opts) {
206
+ super({
207
+ name: "SNSNoAuthorizationFault",
208
+ $fault: "client",
209
+ ...opts,
210
+ });
211
+ Object.setPrototypeOf(this, SNSNoAuthorizationFault.prototype);
212
+ }
213
+ }
214
+ exports.SNSNoAuthorizationFault = SNSNoAuthorizationFault;
215
+ class S3ResourceNotFoundFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
216
+ name = "S3ResourceNotFoundFault";
217
+ $fault = "client";
218
+ constructor(opts) {
219
+ super({
220
+ name: "S3ResourceNotFoundFault",
221
+ $fault: "client",
222
+ ...opts,
223
+ });
224
+ Object.setPrototypeOf(this, S3ResourceNotFoundFault.prototype);
225
+ }
226
+ }
227
+ exports.S3ResourceNotFoundFault = S3ResourceNotFoundFault;
228
+ class InvalidSubnet extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
229
+ name = "InvalidSubnet";
230
+ $fault = "client";
231
+ constructor(opts) {
232
+ super({
233
+ name: "InvalidSubnet",
234
+ $fault: "client",
235
+ ...opts,
236
+ });
237
+ Object.setPrototypeOf(this, InvalidSubnet.prototype);
238
+ }
239
+ }
240
+ exports.InvalidSubnet = InvalidSubnet;
241
+ class ReplicationSubnetGroupDoesNotCoverEnoughAZs extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
242
+ name = "ReplicationSubnetGroupDoesNotCoverEnoughAZs";
243
+ $fault = "client";
244
+ constructor(opts) {
245
+ super({
246
+ name: "ReplicationSubnetGroupDoesNotCoverEnoughAZs",
247
+ $fault: "client",
248
+ ...opts,
249
+ });
250
+ Object.setPrototypeOf(this, ReplicationSubnetGroupDoesNotCoverEnoughAZs.prototype);
251
+ }
252
+ }
253
+ exports.ReplicationSubnetGroupDoesNotCoverEnoughAZs = ReplicationSubnetGroupDoesNotCoverEnoughAZs;
254
+ class InsufficientResourceCapacityFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
255
+ name = "InsufficientResourceCapacityFault";
256
+ $fault = "client";
257
+ constructor(opts) {
258
+ super({
259
+ name: "InsufficientResourceCapacityFault",
260
+ $fault: "client",
261
+ ...opts,
262
+ });
263
+ Object.setPrototypeOf(this, InsufficientResourceCapacityFault.prototype);
264
+ }
265
+ }
266
+ exports.InsufficientResourceCapacityFault = InsufficientResourceCapacityFault;
267
+ class StorageQuotaExceededFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
268
+ name = "StorageQuotaExceededFault";
269
+ $fault = "client";
270
+ constructor(opts) {
271
+ super({
272
+ name: "StorageQuotaExceededFault",
273
+ $fault: "client",
274
+ ...opts,
275
+ });
276
+ Object.setPrototypeOf(this, StorageQuotaExceededFault.prototype);
277
+ }
278
+ }
279
+ exports.StorageQuotaExceededFault = StorageQuotaExceededFault;
280
+ class CollectorNotFoundFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
281
+ name = "CollectorNotFoundFault";
282
+ $fault = "client";
283
+ constructor(opts) {
284
+ super({
285
+ name: "CollectorNotFoundFault",
286
+ $fault: "client",
287
+ ...opts,
288
+ });
289
+ Object.setPrototypeOf(this, CollectorNotFoundFault.prototype);
290
+ }
291
+ }
292
+ exports.CollectorNotFoundFault = CollectorNotFoundFault;
293
+ class InvalidCertificateFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
294
+ name = "InvalidCertificateFault";
295
+ $fault = "client";
296
+ constructor(opts) {
297
+ super({
298
+ name: "InvalidCertificateFault",
299
+ $fault: "client",
300
+ ...opts,
301
+ });
302
+ Object.setPrototypeOf(this, InvalidCertificateFault.prototype);
303
+ }
304
+ }
305
+ exports.InvalidCertificateFault = InvalidCertificateFault;
306
+ class UpgradeDependencyFailureFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
307
+ name = "UpgradeDependencyFailureFault";
308
+ $fault = "client";
309
+ constructor(opts) {
310
+ super({
311
+ name: "UpgradeDependencyFailureFault",
312
+ $fault: "client",
313
+ ...opts,
314
+ });
315
+ Object.setPrototypeOf(this, UpgradeDependencyFailureFault.prototype);
316
+ }
317
+ }
318
+ exports.UpgradeDependencyFailureFault = UpgradeDependencyFailureFault;
319
+ class SubnetAlreadyInUse extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
320
+ name = "SubnetAlreadyInUse";
321
+ $fault = "client";
322
+ constructor(opts) {
323
+ super({
324
+ name: "SubnetAlreadyInUse",
325
+ $fault: "client",
326
+ ...opts,
327
+ });
328
+ Object.setPrototypeOf(this, SubnetAlreadyInUse.prototype);
329
+ }
330
+ }
331
+ exports.SubnetAlreadyInUse = SubnetAlreadyInUse;
332
+ class KMSFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
333
+ name = "KMSFault";
334
+ $fault = "client";
335
+ constructor(opts) {
336
+ super({
337
+ name: "KMSFault",
338
+ $fault: "client",
339
+ ...opts,
340
+ });
341
+ Object.setPrototypeOf(this, KMSFault.prototype);
342
+ }
343
+ }
344
+ exports.KMSFault = KMSFault;
@@ -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: "2016-01-01",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.databasemigrationservice",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  xmlNamespace: "http://dms.amazonaws.com/doc/2016-01-01/",
33
35
  version: "2016-01-01",
34
36
  serviceTarget: "AmazonDMSv20160101",