@aws-sdk/client-database-migration-service 3.1067.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +603 -623
- package/dist-cjs/models/DatabaseMigrationServiceServiceException.js +4 -8
- package/dist-cjs/models/errors.js +53 -82
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +1037 -674
- package/package.json +9 -9
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.DatabaseMigrationServiceServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class DatabaseMigrationServiceServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.DatabaseMigrationServiceServiceException = class DatabaseMigrationServiceServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, DatabaseMigrationServiceServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.DatabaseMigrationServiceServiceException = DatabaseMigrationServiceServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 {
|
|
1
|
+
const { DatabaseMigrationServiceServiceException: __BaseException } = require("./DatabaseMigrationServiceServiceException");
|
|
2
|
+
exports.AccessDeniedFault = class AccessDeniedFault extends __BaseException {
|
|
6
3
|
name = "AccessDeniedFault";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
constructor(opts) {
|
|
@@ -13,9 +10,8 @@ class AccessDeniedFault extends DatabaseMigrationServiceServiceException_1.Datab
|
|
|
13
10
|
});
|
|
14
11
|
Object.setPrototypeOf(this, AccessDeniedFault.prototype);
|
|
15
12
|
}
|
|
16
|
-
}
|
|
17
|
-
exports.
|
|
18
|
-
class InvalidResourceStateFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
13
|
+
};
|
|
14
|
+
exports.InvalidResourceStateFault = class InvalidResourceStateFault extends __BaseException {
|
|
19
15
|
name = "InvalidResourceStateFault";
|
|
20
16
|
$fault = "client";
|
|
21
17
|
constructor(opts) {
|
|
@@ -26,9 +22,8 @@ class InvalidResourceStateFault extends DatabaseMigrationServiceServiceException
|
|
|
26
22
|
});
|
|
27
23
|
Object.setPrototypeOf(this, InvalidResourceStateFault.prototype);
|
|
28
24
|
}
|
|
29
|
-
}
|
|
30
|
-
exports.
|
|
31
|
-
class ResourceNotFoundFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
25
|
+
};
|
|
26
|
+
exports.ResourceNotFoundFault = class ResourceNotFoundFault extends __BaseException {
|
|
32
27
|
name = "ResourceNotFoundFault";
|
|
33
28
|
$fault = "client";
|
|
34
29
|
constructor(opts) {
|
|
@@ -39,9 +34,8 @@ class ResourceNotFoundFault extends DatabaseMigrationServiceServiceException_1.D
|
|
|
39
34
|
});
|
|
40
35
|
Object.setPrototypeOf(this, ResourceNotFoundFault.prototype);
|
|
41
36
|
}
|
|
42
|
-
}
|
|
43
|
-
exports.
|
|
44
|
-
class FailedDependencyFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
37
|
+
};
|
|
38
|
+
exports.FailedDependencyFault = class FailedDependencyFault extends __BaseException {
|
|
45
39
|
name = "FailedDependencyFault";
|
|
46
40
|
$fault = "client";
|
|
47
41
|
constructor(opts) {
|
|
@@ -52,9 +46,8 @@ class FailedDependencyFault extends DatabaseMigrationServiceServiceException_1.D
|
|
|
52
46
|
});
|
|
53
47
|
Object.setPrototypeOf(this, FailedDependencyFault.prototype);
|
|
54
48
|
}
|
|
55
|
-
}
|
|
56
|
-
exports.
|
|
57
|
-
class InvalidOperationFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
49
|
+
};
|
|
50
|
+
exports.InvalidOperationFault = class InvalidOperationFault extends __BaseException {
|
|
58
51
|
name = "InvalidOperationFault";
|
|
59
52
|
$fault = "client";
|
|
60
53
|
constructor(opts) {
|
|
@@ -65,9 +58,8 @@ class InvalidOperationFault extends DatabaseMigrationServiceServiceException_1.D
|
|
|
65
58
|
});
|
|
66
59
|
Object.setPrototypeOf(this, InvalidOperationFault.prototype);
|
|
67
60
|
}
|
|
68
|
-
}
|
|
69
|
-
exports.
|
|
70
|
-
class ResourceAlreadyExistsFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
61
|
+
};
|
|
62
|
+
exports.ResourceAlreadyExistsFault = class ResourceAlreadyExistsFault extends __BaseException {
|
|
71
63
|
name = "ResourceAlreadyExistsFault";
|
|
72
64
|
$fault = "client";
|
|
73
65
|
resourceArn;
|
|
@@ -80,9 +72,8 @@ class ResourceAlreadyExistsFault extends DatabaseMigrationServiceServiceExceptio
|
|
|
80
72
|
Object.setPrototypeOf(this, ResourceAlreadyExistsFault.prototype);
|
|
81
73
|
this.resourceArn = opts.resourceArn;
|
|
82
74
|
}
|
|
83
|
-
}
|
|
84
|
-
exports.
|
|
85
|
-
class ResourceQuotaExceededFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
75
|
+
};
|
|
76
|
+
exports.ResourceQuotaExceededFault = class ResourceQuotaExceededFault extends __BaseException {
|
|
86
77
|
name = "ResourceQuotaExceededFault";
|
|
87
78
|
$fault = "client";
|
|
88
79
|
constructor(opts) {
|
|
@@ -93,9 +84,8 @@ class ResourceQuotaExceededFault extends DatabaseMigrationServiceServiceExceptio
|
|
|
93
84
|
});
|
|
94
85
|
Object.setPrototypeOf(this, ResourceQuotaExceededFault.prototype);
|
|
95
86
|
}
|
|
96
|
-
}
|
|
97
|
-
exports.
|
|
98
|
-
class KMSKeyNotAccessibleFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
87
|
+
};
|
|
88
|
+
exports.KMSKeyNotAccessibleFault = class KMSKeyNotAccessibleFault extends __BaseException {
|
|
99
89
|
name = "KMSKeyNotAccessibleFault";
|
|
100
90
|
$fault = "client";
|
|
101
91
|
constructor(opts) {
|
|
@@ -106,9 +96,8 @@ class KMSKeyNotAccessibleFault extends DatabaseMigrationServiceServiceException_
|
|
|
106
96
|
});
|
|
107
97
|
Object.setPrototypeOf(this, KMSKeyNotAccessibleFault.prototype);
|
|
108
98
|
}
|
|
109
|
-
}
|
|
110
|
-
exports.
|
|
111
|
-
class S3AccessDeniedFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
99
|
+
};
|
|
100
|
+
exports.S3AccessDeniedFault = class S3AccessDeniedFault extends __BaseException {
|
|
112
101
|
name = "S3AccessDeniedFault";
|
|
113
102
|
$fault = "client";
|
|
114
103
|
constructor(opts) {
|
|
@@ -119,9 +108,8 @@ class S3AccessDeniedFault extends DatabaseMigrationServiceServiceException_1.Dat
|
|
|
119
108
|
});
|
|
120
109
|
Object.setPrototypeOf(this, S3AccessDeniedFault.prototype);
|
|
121
110
|
}
|
|
122
|
-
}
|
|
123
|
-
exports.
|
|
124
|
-
class KMSAccessDeniedFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
111
|
+
};
|
|
112
|
+
exports.KMSAccessDeniedFault = class KMSAccessDeniedFault extends __BaseException {
|
|
125
113
|
name = "KMSAccessDeniedFault";
|
|
126
114
|
$fault = "client";
|
|
127
115
|
constructor(opts) {
|
|
@@ -132,9 +120,8 @@ class KMSAccessDeniedFault extends DatabaseMigrationServiceServiceException_1.Da
|
|
|
132
120
|
});
|
|
133
121
|
Object.setPrototypeOf(this, KMSAccessDeniedFault.prototype);
|
|
134
122
|
}
|
|
135
|
-
}
|
|
136
|
-
exports.
|
|
137
|
-
class KMSDisabledFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
123
|
+
};
|
|
124
|
+
exports.KMSDisabledFault = class KMSDisabledFault extends __BaseException {
|
|
138
125
|
name = "KMSDisabledFault";
|
|
139
126
|
$fault = "client";
|
|
140
127
|
constructor(opts) {
|
|
@@ -145,9 +132,8 @@ class KMSDisabledFault extends DatabaseMigrationServiceServiceException_1.Databa
|
|
|
145
132
|
});
|
|
146
133
|
Object.setPrototypeOf(this, KMSDisabledFault.prototype);
|
|
147
134
|
}
|
|
148
|
-
}
|
|
149
|
-
exports.
|
|
150
|
-
class KMSInvalidStateFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
135
|
+
};
|
|
136
|
+
exports.KMSInvalidStateFault = class KMSInvalidStateFault extends __BaseException {
|
|
151
137
|
name = "KMSInvalidStateFault";
|
|
152
138
|
$fault = "client";
|
|
153
139
|
constructor(opts) {
|
|
@@ -158,9 +144,8 @@ class KMSInvalidStateFault extends DatabaseMigrationServiceServiceException_1.Da
|
|
|
158
144
|
});
|
|
159
145
|
Object.setPrototypeOf(this, KMSInvalidStateFault.prototype);
|
|
160
146
|
}
|
|
161
|
-
}
|
|
162
|
-
exports.
|
|
163
|
-
class KMSNotFoundFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
147
|
+
};
|
|
148
|
+
exports.KMSNotFoundFault = class KMSNotFoundFault extends __BaseException {
|
|
164
149
|
name = "KMSNotFoundFault";
|
|
165
150
|
$fault = "client";
|
|
166
151
|
constructor(opts) {
|
|
@@ -171,9 +156,8 @@ class KMSNotFoundFault extends DatabaseMigrationServiceServiceException_1.Databa
|
|
|
171
156
|
});
|
|
172
157
|
Object.setPrototypeOf(this, KMSNotFoundFault.prototype);
|
|
173
158
|
}
|
|
174
|
-
}
|
|
175
|
-
exports.
|
|
176
|
-
class KMSThrottlingFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
159
|
+
};
|
|
160
|
+
exports.KMSThrottlingFault = class KMSThrottlingFault extends __BaseException {
|
|
177
161
|
name = "KMSThrottlingFault";
|
|
178
162
|
$fault = "client";
|
|
179
163
|
constructor(opts) {
|
|
@@ -184,9 +168,8 @@ class KMSThrottlingFault extends DatabaseMigrationServiceServiceException_1.Data
|
|
|
184
168
|
});
|
|
185
169
|
Object.setPrototypeOf(this, KMSThrottlingFault.prototype);
|
|
186
170
|
}
|
|
187
|
-
}
|
|
188
|
-
exports.
|
|
189
|
-
class SNSInvalidTopicFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
171
|
+
};
|
|
172
|
+
exports.SNSInvalidTopicFault = class SNSInvalidTopicFault extends __BaseException {
|
|
190
173
|
name = "SNSInvalidTopicFault";
|
|
191
174
|
$fault = "client";
|
|
192
175
|
constructor(opts) {
|
|
@@ -197,9 +180,8 @@ class SNSInvalidTopicFault extends DatabaseMigrationServiceServiceException_1.Da
|
|
|
197
180
|
});
|
|
198
181
|
Object.setPrototypeOf(this, SNSInvalidTopicFault.prototype);
|
|
199
182
|
}
|
|
200
|
-
}
|
|
201
|
-
exports.
|
|
202
|
-
class SNSNoAuthorizationFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
183
|
+
};
|
|
184
|
+
exports.SNSNoAuthorizationFault = class SNSNoAuthorizationFault extends __BaseException {
|
|
203
185
|
name = "SNSNoAuthorizationFault";
|
|
204
186
|
$fault = "client";
|
|
205
187
|
constructor(opts) {
|
|
@@ -210,9 +192,8 @@ class SNSNoAuthorizationFault extends DatabaseMigrationServiceServiceException_1
|
|
|
210
192
|
});
|
|
211
193
|
Object.setPrototypeOf(this, SNSNoAuthorizationFault.prototype);
|
|
212
194
|
}
|
|
213
|
-
}
|
|
214
|
-
exports.
|
|
215
|
-
class S3ResourceNotFoundFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
195
|
+
};
|
|
196
|
+
exports.S3ResourceNotFoundFault = class S3ResourceNotFoundFault extends __BaseException {
|
|
216
197
|
name = "S3ResourceNotFoundFault";
|
|
217
198
|
$fault = "client";
|
|
218
199
|
constructor(opts) {
|
|
@@ -223,9 +204,8 @@ class S3ResourceNotFoundFault extends DatabaseMigrationServiceServiceException_1
|
|
|
223
204
|
});
|
|
224
205
|
Object.setPrototypeOf(this, S3ResourceNotFoundFault.prototype);
|
|
225
206
|
}
|
|
226
|
-
}
|
|
227
|
-
exports.
|
|
228
|
-
class InvalidSubnet extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
207
|
+
};
|
|
208
|
+
exports.InvalidSubnet = class InvalidSubnet extends __BaseException {
|
|
229
209
|
name = "InvalidSubnet";
|
|
230
210
|
$fault = "client";
|
|
231
211
|
constructor(opts) {
|
|
@@ -236,9 +216,8 @@ class InvalidSubnet extends DatabaseMigrationServiceServiceException_1.DatabaseM
|
|
|
236
216
|
});
|
|
237
217
|
Object.setPrototypeOf(this, InvalidSubnet.prototype);
|
|
238
218
|
}
|
|
239
|
-
}
|
|
240
|
-
exports.
|
|
241
|
-
class ReplicationSubnetGroupDoesNotCoverEnoughAZs extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
219
|
+
};
|
|
220
|
+
exports.ReplicationSubnetGroupDoesNotCoverEnoughAZs = class ReplicationSubnetGroupDoesNotCoverEnoughAZs extends __BaseException {
|
|
242
221
|
name = "ReplicationSubnetGroupDoesNotCoverEnoughAZs";
|
|
243
222
|
$fault = "client";
|
|
244
223
|
constructor(opts) {
|
|
@@ -249,9 +228,8 @@ class ReplicationSubnetGroupDoesNotCoverEnoughAZs extends DatabaseMigrationServi
|
|
|
249
228
|
});
|
|
250
229
|
Object.setPrototypeOf(this, ReplicationSubnetGroupDoesNotCoverEnoughAZs.prototype);
|
|
251
230
|
}
|
|
252
|
-
}
|
|
253
|
-
exports.
|
|
254
|
-
class InsufficientResourceCapacityFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
231
|
+
};
|
|
232
|
+
exports.InsufficientResourceCapacityFault = class InsufficientResourceCapacityFault extends __BaseException {
|
|
255
233
|
name = "InsufficientResourceCapacityFault";
|
|
256
234
|
$fault = "client";
|
|
257
235
|
constructor(opts) {
|
|
@@ -262,9 +240,8 @@ class InsufficientResourceCapacityFault extends DatabaseMigrationServiceServiceE
|
|
|
262
240
|
});
|
|
263
241
|
Object.setPrototypeOf(this, InsufficientResourceCapacityFault.prototype);
|
|
264
242
|
}
|
|
265
|
-
}
|
|
266
|
-
exports.
|
|
267
|
-
class StorageQuotaExceededFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
243
|
+
};
|
|
244
|
+
exports.StorageQuotaExceededFault = class StorageQuotaExceededFault extends __BaseException {
|
|
268
245
|
name = "StorageQuotaExceededFault";
|
|
269
246
|
$fault = "client";
|
|
270
247
|
constructor(opts) {
|
|
@@ -275,9 +252,8 @@ class StorageQuotaExceededFault extends DatabaseMigrationServiceServiceException
|
|
|
275
252
|
});
|
|
276
253
|
Object.setPrototypeOf(this, StorageQuotaExceededFault.prototype);
|
|
277
254
|
}
|
|
278
|
-
}
|
|
279
|
-
exports.
|
|
280
|
-
class CollectorNotFoundFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
255
|
+
};
|
|
256
|
+
exports.CollectorNotFoundFault = class CollectorNotFoundFault extends __BaseException {
|
|
281
257
|
name = "CollectorNotFoundFault";
|
|
282
258
|
$fault = "client";
|
|
283
259
|
constructor(opts) {
|
|
@@ -288,9 +264,8 @@ class CollectorNotFoundFault extends DatabaseMigrationServiceServiceException_1.
|
|
|
288
264
|
});
|
|
289
265
|
Object.setPrototypeOf(this, CollectorNotFoundFault.prototype);
|
|
290
266
|
}
|
|
291
|
-
}
|
|
292
|
-
exports.
|
|
293
|
-
class InvalidCertificateFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
267
|
+
};
|
|
268
|
+
exports.InvalidCertificateFault = class InvalidCertificateFault extends __BaseException {
|
|
294
269
|
name = "InvalidCertificateFault";
|
|
295
270
|
$fault = "client";
|
|
296
271
|
constructor(opts) {
|
|
@@ -301,9 +276,8 @@ class InvalidCertificateFault extends DatabaseMigrationServiceServiceException_1
|
|
|
301
276
|
});
|
|
302
277
|
Object.setPrototypeOf(this, InvalidCertificateFault.prototype);
|
|
303
278
|
}
|
|
304
|
-
}
|
|
305
|
-
exports.
|
|
306
|
-
class UpgradeDependencyFailureFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
279
|
+
};
|
|
280
|
+
exports.UpgradeDependencyFailureFault = class UpgradeDependencyFailureFault extends __BaseException {
|
|
307
281
|
name = "UpgradeDependencyFailureFault";
|
|
308
282
|
$fault = "client";
|
|
309
283
|
constructor(opts) {
|
|
@@ -314,9 +288,8 @@ class UpgradeDependencyFailureFault extends DatabaseMigrationServiceServiceExcep
|
|
|
314
288
|
});
|
|
315
289
|
Object.setPrototypeOf(this, UpgradeDependencyFailureFault.prototype);
|
|
316
290
|
}
|
|
317
|
-
}
|
|
318
|
-
exports.
|
|
319
|
-
class SubnetAlreadyInUse extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
291
|
+
};
|
|
292
|
+
exports.SubnetAlreadyInUse = class SubnetAlreadyInUse extends __BaseException {
|
|
320
293
|
name = "SubnetAlreadyInUse";
|
|
321
294
|
$fault = "client";
|
|
322
295
|
constructor(opts) {
|
|
@@ -327,9 +300,8 @@ class SubnetAlreadyInUse extends DatabaseMigrationServiceServiceException_1.Data
|
|
|
327
300
|
});
|
|
328
301
|
Object.setPrototypeOf(this, SubnetAlreadyInUse.prototype);
|
|
329
302
|
}
|
|
330
|
-
}
|
|
331
|
-
exports.
|
|
332
|
-
class KMSFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrationServiceServiceException {
|
|
303
|
+
};
|
|
304
|
+
exports.KMSFault = class KMSFault extends __BaseException {
|
|
333
305
|
name = "KMSFault";
|
|
334
306
|
$fault = "client";
|
|
335
307
|
constructor(opts) {
|
|
@@ -340,5 +312,4 @@ class KMSFault extends DatabaseMigrationServiceServiceException_1.DatabaseMigrat
|
|
|
340
312
|
});
|
|
341
313
|
Object.setPrototypeOf(this, KMSFault.prototype);
|
|
342
314
|
}
|
|
343
|
-
}
|
|
344
|
-
exports.KMSFault = KMSFault;
|
|
315
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retry_1 = require("@smithy/core/retry");
|
|
12
|
-
const serde_1 = require("@smithy/core/serde");
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
15
11
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
20
|
-
(
|
|
12
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
awsCheckVersion(process.version);
|
|
21
17
|
const loaderConfig = {
|
|
22
18
|
profile: config?.profile,
|
|
23
19
|
logger: clientSharedValues.logger,
|
|
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
|
|
|
27
23
|
...config,
|
|
28
24
|
runtime: "node",
|
|
29
25
|
defaultsMode,
|
|
30
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
32
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
35
|
-
region: config?.region ?? (
|
|
36
|
-
requestHandler:
|
|
26
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
33
|
retryMode: config?.retryMode ??
|
|
38
|
-
(
|
|
39
|
-
...
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
37
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ??
|
|
43
|
-
streamCollector: config?.streamCollector ??
|
|
44
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
45
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
46
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
6
3
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,43 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
+
const { defaultDatabaseMigrationServiceHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
+
exports.getRuntimeConfig = (config) => {
|
|
13
10
|
return {
|
|
14
11
|
apiVersion: "2016-01-01",
|
|
15
|
-
base64Decoder: config?.base64Decoder ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultDatabaseMigrationServiceHttpAuthSchemeProvider,
|
|
21
18
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
19
|
{
|
|
23
20
|
schemeId: "aws.auth#sigv4",
|
|
24
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.databasemigrationservice",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
xmlNamespace: "http://dms.amazonaws.com/doc/2016-01-01/",
|
|
34
31
|
version: "2016-01-01",
|
|
35
32
|
serviceTarget: "AmazonDMSv20160101",
|
|
36
33
|
},
|
|
37
34
|
serviceId: config?.serviceId ?? "Database Migration Service",
|
|
38
|
-
urlParser: config?.urlParser ??
|
|
39
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
40
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
35
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
36
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
37
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
41
38
|
};
|
|
42
39
|
};
|
|
43
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|