@aws-sdk/client-ses 3.1068.0 → 3.1070.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 +262 -282
- package/dist-cjs/models/SESServiceException.js +4 -8
- package/dist-cjs/models/errors.js +69 -106
- 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 +571 -372
- package/package.json +12 -12
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.SESServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class SESServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.SESServiceException = class SESServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, SESServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.SESServiceException = SESServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ProductionAccessNotGrantedException = exports.MissingRenderingAttributeException = exports.MessageRejected = exports.MailFromDomainNotVerifiedException = exports.InvalidRenderingParameterException = exports.InvalidPolicyException = exports.InvalidDeliveryOptionsException = exports.TemplateDoesNotExistException = exports.TrackingOptionsDoesNotExistException = exports.EventDestinationDoesNotExistException = exports.CustomVerificationEmailTemplateDoesNotExistException = exports.InvalidTemplateException = exports.RuleDoesNotExistException = exports.InvalidSnsTopicException = exports.InvalidS3ConfigurationException = exports.InvalidLambdaFunctionException = exports.FromEmailAddressNotVerifiedException = exports.CustomVerificationEmailTemplateAlreadyExistsException = exports.CustomVerificationEmailInvalidContentException = exports.TrackingOptionsAlreadyExistsException = exports.InvalidTrackingOptionsException = exports.InvalidSNSDestinationException = exports.InvalidFirehoseDestinationException = exports.InvalidCloudWatchDestinationException = exports.EventDestinationAlreadyExistsException = exports.InvalidConfigurationSetException = exports.ConfigurationSetSendingPausedException = exports.ConfigurationSetDoesNotExistException = exports.ConfigurationSetAlreadyExistsException = exports.RuleSetDoesNotExistException = exports.LimitExceededException = exports.CannotDeleteException = exports.AlreadyExistsException = exports.AccountSendingPausedException = void 0;
|
|
4
|
-
const SESServiceException_1 = require("./SESServiceException");
|
|
5
|
-
class AccountSendingPausedException extends SESServiceException_1.SESServiceException {
|
|
1
|
+
const { SESServiceException: __BaseException } = require("./SESServiceException");
|
|
2
|
+
exports.AccountSendingPausedException = class AccountSendingPausedException extends __BaseException {
|
|
6
3
|
name = "AccountSendingPausedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
constructor(opts) {
|
|
@@ -13,9 +10,8 @@ class AccountSendingPausedException extends SESServiceException_1.SESServiceExce
|
|
|
13
10
|
});
|
|
14
11
|
Object.setPrototypeOf(this, AccountSendingPausedException.prototype);
|
|
15
12
|
}
|
|
16
|
-
}
|
|
17
|
-
exports.
|
|
18
|
-
class AlreadyExistsException extends SESServiceException_1.SESServiceException {
|
|
13
|
+
};
|
|
14
|
+
exports.AlreadyExistsException = class AlreadyExistsException extends __BaseException {
|
|
19
15
|
name = "AlreadyExistsException";
|
|
20
16
|
$fault = "client";
|
|
21
17
|
Name;
|
|
@@ -28,9 +24,8 @@ class AlreadyExistsException extends SESServiceException_1.SESServiceException {
|
|
|
28
24
|
Object.setPrototypeOf(this, AlreadyExistsException.prototype);
|
|
29
25
|
this.Name = opts.Name;
|
|
30
26
|
}
|
|
31
|
-
}
|
|
32
|
-
exports.
|
|
33
|
-
class CannotDeleteException extends SESServiceException_1.SESServiceException {
|
|
27
|
+
};
|
|
28
|
+
exports.CannotDeleteException = class CannotDeleteException extends __BaseException {
|
|
34
29
|
name = "CannotDeleteException";
|
|
35
30
|
$fault = "client";
|
|
36
31
|
Name;
|
|
@@ -43,9 +38,8 @@ class CannotDeleteException extends SESServiceException_1.SESServiceException {
|
|
|
43
38
|
Object.setPrototypeOf(this, CannotDeleteException.prototype);
|
|
44
39
|
this.Name = opts.Name;
|
|
45
40
|
}
|
|
46
|
-
}
|
|
47
|
-
exports.
|
|
48
|
-
class LimitExceededException extends SESServiceException_1.SESServiceException {
|
|
41
|
+
};
|
|
42
|
+
exports.LimitExceededException = class LimitExceededException extends __BaseException {
|
|
49
43
|
name = "LimitExceededException";
|
|
50
44
|
$fault = "client";
|
|
51
45
|
constructor(opts) {
|
|
@@ -56,9 +50,8 @@ class LimitExceededException extends SESServiceException_1.SESServiceException {
|
|
|
56
50
|
});
|
|
57
51
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
58
52
|
}
|
|
59
|
-
}
|
|
60
|
-
exports.
|
|
61
|
-
class RuleSetDoesNotExistException extends SESServiceException_1.SESServiceException {
|
|
53
|
+
};
|
|
54
|
+
exports.RuleSetDoesNotExistException = class RuleSetDoesNotExistException extends __BaseException {
|
|
62
55
|
name = "RuleSetDoesNotExistException";
|
|
63
56
|
$fault = "client";
|
|
64
57
|
Name;
|
|
@@ -71,9 +64,8 @@ class RuleSetDoesNotExistException extends SESServiceException_1.SESServiceExcep
|
|
|
71
64
|
Object.setPrototypeOf(this, RuleSetDoesNotExistException.prototype);
|
|
72
65
|
this.Name = opts.Name;
|
|
73
66
|
}
|
|
74
|
-
}
|
|
75
|
-
exports.
|
|
76
|
-
class ConfigurationSetAlreadyExistsException extends SESServiceException_1.SESServiceException {
|
|
67
|
+
};
|
|
68
|
+
exports.ConfigurationSetAlreadyExistsException = class ConfigurationSetAlreadyExistsException extends __BaseException {
|
|
77
69
|
name = "ConfigurationSetAlreadyExistsException";
|
|
78
70
|
$fault = "client";
|
|
79
71
|
ConfigurationSetName;
|
|
@@ -86,9 +78,8 @@ class ConfigurationSetAlreadyExistsException extends SESServiceException_1.SESSe
|
|
|
86
78
|
Object.setPrototypeOf(this, ConfigurationSetAlreadyExistsException.prototype);
|
|
87
79
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
88
80
|
}
|
|
89
|
-
}
|
|
90
|
-
exports.
|
|
91
|
-
class ConfigurationSetDoesNotExistException extends SESServiceException_1.SESServiceException {
|
|
81
|
+
};
|
|
82
|
+
exports.ConfigurationSetDoesNotExistException = class ConfigurationSetDoesNotExistException extends __BaseException {
|
|
92
83
|
name = "ConfigurationSetDoesNotExistException";
|
|
93
84
|
$fault = "client";
|
|
94
85
|
ConfigurationSetName;
|
|
@@ -101,9 +92,8 @@ class ConfigurationSetDoesNotExistException extends SESServiceException_1.SESSer
|
|
|
101
92
|
Object.setPrototypeOf(this, ConfigurationSetDoesNotExistException.prototype);
|
|
102
93
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
103
94
|
}
|
|
104
|
-
}
|
|
105
|
-
exports.
|
|
106
|
-
class ConfigurationSetSendingPausedException extends SESServiceException_1.SESServiceException {
|
|
95
|
+
};
|
|
96
|
+
exports.ConfigurationSetSendingPausedException = class ConfigurationSetSendingPausedException extends __BaseException {
|
|
107
97
|
name = "ConfigurationSetSendingPausedException";
|
|
108
98
|
$fault = "client";
|
|
109
99
|
ConfigurationSetName;
|
|
@@ -116,9 +106,8 @@ class ConfigurationSetSendingPausedException extends SESServiceException_1.SESSe
|
|
|
116
106
|
Object.setPrototypeOf(this, ConfigurationSetSendingPausedException.prototype);
|
|
117
107
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
118
108
|
}
|
|
119
|
-
}
|
|
120
|
-
exports.
|
|
121
|
-
class InvalidConfigurationSetException extends SESServiceException_1.SESServiceException {
|
|
109
|
+
};
|
|
110
|
+
exports.InvalidConfigurationSetException = class InvalidConfigurationSetException extends __BaseException {
|
|
122
111
|
name = "InvalidConfigurationSetException";
|
|
123
112
|
$fault = "client";
|
|
124
113
|
constructor(opts) {
|
|
@@ -129,9 +118,8 @@ class InvalidConfigurationSetException extends SESServiceException_1.SESServiceE
|
|
|
129
118
|
});
|
|
130
119
|
Object.setPrototypeOf(this, InvalidConfigurationSetException.prototype);
|
|
131
120
|
}
|
|
132
|
-
}
|
|
133
|
-
exports.
|
|
134
|
-
class EventDestinationAlreadyExistsException extends SESServiceException_1.SESServiceException {
|
|
121
|
+
};
|
|
122
|
+
exports.EventDestinationAlreadyExistsException = class EventDestinationAlreadyExistsException extends __BaseException {
|
|
135
123
|
name = "EventDestinationAlreadyExistsException";
|
|
136
124
|
$fault = "client";
|
|
137
125
|
ConfigurationSetName;
|
|
@@ -146,9 +134,8 @@ class EventDestinationAlreadyExistsException extends SESServiceException_1.SESSe
|
|
|
146
134
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
147
135
|
this.EventDestinationName = opts.EventDestinationName;
|
|
148
136
|
}
|
|
149
|
-
}
|
|
150
|
-
exports.
|
|
151
|
-
class InvalidCloudWatchDestinationException extends SESServiceException_1.SESServiceException {
|
|
137
|
+
};
|
|
138
|
+
exports.InvalidCloudWatchDestinationException = class InvalidCloudWatchDestinationException extends __BaseException {
|
|
152
139
|
name = "InvalidCloudWatchDestinationException";
|
|
153
140
|
$fault = "client";
|
|
154
141
|
ConfigurationSetName;
|
|
@@ -163,9 +150,8 @@ class InvalidCloudWatchDestinationException extends SESServiceException_1.SESSer
|
|
|
163
150
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
164
151
|
this.EventDestinationName = opts.EventDestinationName;
|
|
165
152
|
}
|
|
166
|
-
}
|
|
167
|
-
exports.
|
|
168
|
-
class InvalidFirehoseDestinationException extends SESServiceException_1.SESServiceException {
|
|
153
|
+
};
|
|
154
|
+
exports.InvalidFirehoseDestinationException = class InvalidFirehoseDestinationException extends __BaseException {
|
|
169
155
|
name = "InvalidFirehoseDestinationException";
|
|
170
156
|
$fault = "client";
|
|
171
157
|
ConfigurationSetName;
|
|
@@ -180,9 +166,8 @@ class InvalidFirehoseDestinationException extends SESServiceException_1.SESServi
|
|
|
180
166
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
181
167
|
this.EventDestinationName = opts.EventDestinationName;
|
|
182
168
|
}
|
|
183
|
-
}
|
|
184
|
-
exports.
|
|
185
|
-
class InvalidSNSDestinationException extends SESServiceException_1.SESServiceException {
|
|
169
|
+
};
|
|
170
|
+
exports.InvalidSNSDestinationException = class InvalidSNSDestinationException extends __BaseException {
|
|
186
171
|
name = "InvalidSNSDestinationException";
|
|
187
172
|
$fault = "client";
|
|
188
173
|
ConfigurationSetName;
|
|
@@ -197,9 +182,8 @@ class InvalidSNSDestinationException extends SESServiceException_1.SESServiceExc
|
|
|
197
182
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
198
183
|
this.EventDestinationName = opts.EventDestinationName;
|
|
199
184
|
}
|
|
200
|
-
}
|
|
201
|
-
exports.
|
|
202
|
-
class InvalidTrackingOptionsException extends SESServiceException_1.SESServiceException {
|
|
185
|
+
};
|
|
186
|
+
exports.InvalidTrackingOptionsException = class InvalidTrackingOptionsException extends __BaseException {
|
|
203
187
|
name = "InvalidTrackingOptionsException";
|
|
204
188
|
$fault = "client";
|
|
205
189
|
constructor(opts) {
|
|
@@ -210,9 +194,8 @@ class InvalidTrackingOptionsException extends SESServiceException_1.SESServiceEx
|
|
|
210
194
|
});
|
|
211
195
|
Object.setPrototypeOf(this, InvalidTrackingOptionsException.prototype);
|
|
212
196
|
}
|
|
213
|
-
}
|
|
214
|
-
exports.
|
|
215
|
-
class TrackingOptionsAlreadyExistsException extends SESServiceException_1.SESServiceException {
|
|
197
|
+
};
|
|
198
|
+
exports.TrackingOptionsAlreadyExistsException = class TrackingOptionsAlreadyExistsException extends __BaseException {
|
|
216
199
|
name = "TrackingOptionsAlreadyExistsException";
|
|
217
200
|
$fault = "client";
|
|
218
201
|
ConfigurationSetName;
|
|
@@ -225,9 +208,8 @@ class TrackingOptionsAlreadyExistsException extends SESServiceException_1.SESSer
|
|
|
225
208
|
Object.setPrototypeOf(this, TrackingOptionsAlreadyExistsException.prototype);
|
|
226
209
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
227
210
|
}
|
|
228
|
-
}
|
|
229
|
-
exports.
|
|
230
|
-
class CustomVerificationEmailInvalidContentException extends SESServiceException_1.SESServiceException {
|
|
211
|
+
};
|
|
212
|
+
exports.CustomVerificationEmailInvalidContentException = class CustomVerificationEmailInvalidContentException extends __BaseException {
|
|
231
213
|
name = "CustomVerificationEmailInvalidContentException";
|
|
232
214
|
$fault = "client";
|
|
233
215
|
constructor(opts) {
|
|
@@ -238,9 +220,8 @@ class CustomVerificationEmailInvalidContentException extends SESServiceException
|
|
|
238
220
|
});
|
|
239
221
|
Object.setPrototypeOf(this, CustomVerificationEmailInvalidContentException.prototype);
|
|
240
222
|
}
|
|
241
|
-
}
|
|
242
|
-
exports.
|
|
243
|
-
class CustomVerificationEmailTemplateAlreadyExistsException extends SESServiceException_1.SESServiceException {
|
|
223
|
+
};
|
|
224
|
+
exports.CustomVerificationEmailTemplateAlreadyExistsException = class CustomVerificationEmailTemplateAlreadyExistsException extends __BaseException {
|
|
244
225
|
name = "CustomVerificationEmailTemplateAlreadyExistsException";
|
|
245
226
|
$fault = "client";
|
|
246
227
|
CustomVerificationEmailTemplateName;
|
|
@@ -253,9 +234,8 @@ class CustomVerificationEmailTemplateAlreadyExistsException extends SESServiceEx
|
|
|
253
234
|
Object.setPrototypeOf(this, CustomVerificationEmailTemplateAlreadyExistsException.prototype);
|
|
254
235
|
this.CustomVerificationEmailTemplateName = opts.CustomVerificationEmailTemplateName;
|
|
255
236
|
}
|
|
256
|
-
}
|
|
257
|
-
exports.
|
|
258
|
-
class FromEmailAddressNotVerifiedException extends SESServiceException_1.SESServiceException {
|
|
237
|
+
};
|
|
238
|
+
exports.FromEmailAddressNotVerifiedException = class FromEmailAddressNotVerifiedException extends __BaseException {
|
|
259
239
|
name = "FromEmailAddressNotVerifiedException";
|
|
260
240
|
$fault = "client";
|
|
261
241
|
FromEmailAddress;
|
|
@@ -268,9 +248,8 @@ class FromEmailAddressNotVerifiedException extends SESServiceException_1.SESServ
|
|
|
268
248
|
Object.setPrototypeOf(this, FromEmailAddressNotVerifiedException.prototype);
|
|
269
249
|
this.FromEmailAddress = opts.FromEmailAddress;
|
|
270
250
|
}
|
|
271
|
-
}
|
|
272
|
-
exports.
|
|
273
|
-
class InvalidLambdaFunctionException extends SESServiceException_1.SESServiceException {
|
|
251
|
+
};
|
|
252
|
+
exports.InvalidLambdaFunctionException = class InvalidLambdaFunctionException extends __BaseException {
|
|
274
253
|
name = "InvalidLambdaFunctionException";
|
|
275
254
|
$fault = "client";
|
|
276
255
|
FunctionArn;
|
|
@@ -283,9 +262,8 @@ class InvalidLambdaFunctionException extends SESServiceException_1.SESServiceExc
|
|
|
283
262
|
Object.setPrototypeOf(this, InvalidLambdaFunctionException.prototype);
|
|
284
263
|
this.FunctionArn = opts.FunctionArn;
|
|
285
264
|
}
|
|
286
|
-
}
|
|
287
|
-
exports.
|
|
288
|
-
class InvalidS3ConfigurationException extends SESServiceException_1.SESServiceException {
|
|
265
|
+
};
|
|
266
|
+
exports.InvalidS3ConfigurationException = class InvalidS3ConfigurationException extends __BaseException {
|
|
289
267
|
name = "InvalidS3ConfigurationException";
|
|
290
268
|
$fault = "client";
|
|
291
269
|
Bucket;
|
|
@@ -298,9 +276,8 @@ class InvalidS3ConfigurationException extends SESServiceException_1.SESServiceEx
|
|
|
298
276
|
Object.setPrototypeOf(this, InvalidS3ConfigurationException.prototype);
|
|
299
277
|
this.Bucket = opts.Bucket;
|
|
300
278
|
}
|
|
301
|
-
}
|
|
302
|
-
exports.
|
|
303
|
-
class InvalidSnsTopicException extends SESServiceException_1.SESServiceException {
|
|
279
|
+
};
|
|
280
|
+
exports.InvalidSnsTopicException = class InvalidSnsTopicException extends __BaseException {
|
|
304
281
|
name = "InvalidSnsTopicException";
|
|
305
282
|
$fault = "client";
|
|
306
283
|
Topic;
|
|
@@ -313,9 +290,8 @@ class InvalidSnsTopicException extends SESServiceException_1.SESServiceException
|
|
|
313
290
|
Object.setPrototypeOf(this, InvalidSnsTopicException.prototype);
|
|
314
291
|
this.Topic = opts.Topic;
|
|
315
292
|
}
|
|
316
|
-
}
|
|
317
|
-
exports.
|
|
318
|
-
class RuleDoesNotExistException extends SESServiceException_1.SESServiceException {
|
|
293
|
+
};
|
|
294
|
+
exports.RuleDoesNotExistException = class RuleDoesNotExistException extends __BaseException {
|
|
319
295
|
name = "RuleDoesNotExistException";
|
|
320
296
|
$fault = "client";
|
|
321
297
|
Name;
|
|
@@ -328,9 +304,8 @@ class RuleDoesNotExistException extends SESServiceException_1.SESServiceExceptio
|
|
|
328
304
|
Object.setPrototypeOf(this, RuleDoesNotExistException.prototype);
|
|
329
305
|
this.Name = opts.Name;
|
|
330
306
|
}
|
|
331
|
-
}
|
|
332
|
-
exports.
|
|
333
|
-
class InvalidTemplateException extends SESServiceException_1.SESServiceException {
|
|
307
|
+
};
|
|
308
|
+
exports.InvalidTemplateException = class InvalidTemplateException extends __BaseException {
|
|
334
309
|
name = "InvalidTemplateException";
|
|
335
310
|
$fault = "client";
|
|
336
311
|
TemplateName;
|
|
@@ -343,9 +318,8 @@ class InvalidTemplateException extends SESServiceException_1.SESServiceException
|
|
|
343
318
|
Object.setPrototypeOf(this, InvalidTemplateException.prototype);
|
|
344
319
|
this.TemplateName = opts.TemplateName;
|
|
345
320
|
}
|
|
346
|
-
}
|
|
347
|
-
exports.
|
|
348
|
-
class CustomVerificationEmailTemplateDoesNotExistException extends SESServiceException_1.SESServiceException {
|
|
321
|
+
};
|
|
322
|
+
exports.CustomVerificationEmailTemplateDoesNotExistException = class CustomVerificationEmailTemplateDoesNotExistException extends __BaseException {
|
|
349
323
|
name = "CustomVerificationEmailTemplateDoesNotExistException";
|
|
350
324
|
$fault = "client";
|
|
351
325
|
CustomVerificationEmailTemplateName;
|
|
@@ -358,9 +332,8 @@ class CustomVerificationEmailTemplateDoesNotExistException extends SESServiceExc
|
|
|
358
332
|
Object.setPrototypeOf(this, CustomVerificationEmailTemplateDoesNotExistException.prototype);
|
|
359
333
|
this.CustomVerificationEmailTemplateName = opts.CustomVerificationEmailTemplateName;
|
|
360
334
|
}
|
|
361
|
-
}
|
|
362
|
-
exports.
|
|
363
|
-
class EventDestinationDoesNotExistException extends SESServiceException_1.SESServiceException {
|
|
335
|
+
};
|
|
336
|
+
exports.EventDestinationDoesNotExistException = class EventDestinationDoesNotExistException extends __BaseException {
|
|
364
337
|
name = "EventDestinationDoesNotExistException";
|
|
365
338
|
$fault = "client";
|
|
366
339
|
ConfigurationSetName;
|
|
@@ -375,9 +348,8 @@ class EventDestinationDoesNotExistException extends SESServiceException_1.SESSer
|
|
|
375
348
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
376
349
|
this.EventDestinationName = opts.EventDestinationName;
|
|
377
350
|
}
|
|
378
|
-
}
|
|
379
|
-
exports.
|
|
380
|
-
class TrackingOptionsDoesNotExistException extends SESServiceException_1.SESServiceException {
|
|
351
|
+
};
|
|
352
|
+
exports.TrackingOptionsDoesNotExistException = class TrackingOptionsDoesNotExistException extends __BaseException {
|
|
381
353
|
name = "TrackingOptionsDoesNotExistException";
|
|
382
354
|
$fault = "client";
|
|
383
355
|
ConfigurationSetName;
|
|
@@ -390,9 +362,8 @@ class TrackingOptionsDoesNotExistException extends SESServiceException_1.SESServ
|
|
|
390
362
|
Object.setPrototypeOf(this, TrackingOptionsDoesNotExistException.prototype);
|
|
391
363
|
this.ConfigurationSetName = opts.ConfigurationSetName;
|
|
392
364
|
}
|
|
393
|
-
}
|
|
394
|
-
exports.
|
|
395
|
-
class TemplateDoesNotExistException extends SESServiceException_1.SESServiceException {
|
|
365
|
+
};
|
|
366
|
+
exports.TemplateDoesNotExistException = class TemplateDoesNotExistException extends __BaseException {
|
|
396
367
|
name = "TemplateDoesNotExistException";
|
|
397
368
|
$fault = "client";
|
|
398
369
|
TemplateName;
|
|
@@ -405,9 +376,8 @@ class TemplateDoesNotExistException extends SESServiceException_1.SESServiceExce
|
|
|
405
376
|
Object.setPrototypeOf(this, TemplateDoesNotExistException.prototype);
|
|
406
377
|
this.TemplateName = opts.TemplateName;
|
|
407
378
|
}
|
|
408
|
-
}
|
|
409
|
-
exports.
|
|
410
|
-
class InvalidDeliveryOptionsException extends SESServiceException_1.SESServiceException {
|
|
379
|
+
};
|
|
380
|
+
exports.InvalidDeliveryOptionsException = class InvalidDeliveryOptionsException extends __BaseException {
|
|
411
381
|
name = "InvalidDeliveryOptionsException";
|
|
412
382
|
$fault = "client";
|
|
413
383
|
constructor(opts) {
|
|
@@ -418,9 +388,8 @@ class InvalidDeliveryOptionsException extends SESServiceException_1.SESServiceEx
|
|
|
418
388
|
});
|
|
419
389
|
Object.setPrototypeOf(this, InvalidDeliveryOptionsException.prototype);
|
|
420
390
|
}
|
|
421
|
-
}
|
|
422
|
-
exports.
|
|
423
|
-
class InvalidPolicyException extends SESServiceException_1.SESServiceException {
|
|
391
|
+
};
|
|
392
|
+
exports.InvalidPolicyException = class InvalidPolicyException extends __BaseException {
|
|
424
393
|
name = "InvalidPolicyException";
|
|
425
394
|
$fault = "client";
|
|
426
395
|
constructor(opts) {
|
|
@@ -431,9 +400,8 @@ class InvalidPolicyException extends SESServiceException_1.SESServiceException {
|
|
|
431
400
|
});
|
|
432
401
|
Object.setPrototypeOf(this, InvalidPolicyException.prototype);
|
|
433
402
|
}
|
|
434
|
-
}
|
|
435
|
-
exports.
|
|
436
|
-
class InvalidRenderingParameterException extends SESServiceException_1.SESServiceException {
|
|
403
|
+
};
|
|
404
|
+
exports.InvalidRenderingParameterException = class InvalidRenderingParameterException extends __BaseException {
|
|
437
405
|
name = "InvalidRenderingParameterException";
|
|
438
406
|
$fault = "client";
|
|
439
407
|
TemplateName;
|
|
@@ -446,9 +414,8 @@ class InvalidRenderingParameterException extends SESServiceException_1.SESServic
|
|
|
446
414
|
Object.setPrototypeOf(this, InvalidRenderingParameterException.prototype);
|
|
447
415
|
this.TemplateName = opts.TemplateName;
|
|
448
416
|
}
|
|
449
|
-
}
|
|
450
|
-
exports.
|
|
451
|
-
class MailFromDomainNotVerifiedException extends SESServiceException_1.SESServiceException {
|
|
417
|
+
};
|
|
418
|
+
exports.MailFromDomainNotVerifiedException = class MailFromDomainNotVerifiedException extends __BaseException {
|
|
452
419
|
name = "MailFromDomainNotVerifiedException";
|
|
453
420
|
$fault = "client";
|
|
454
421
|
constructor(opts) {
|
|
@@ -459,9 +426,8 @@ class MailFromDomainNotVerifiedException extends SESServiceException_1.SESServic
|
|
|
459
426
|
});
|
|
460
427
|
Object.setPrototypeOf(this, MailFromDomainNotVerifiedException.prototype);
|
|
461
428
|
}
|
|
462
|
-
}
|
|
463
|
-
exports.
|
|
464
|
-
class MessageRejected extends SESServiceException_1.SESServiceException {
|
|
429
|
+
};
|
|
430
|
+
exports.MessageRejected = class MessageRejected extends __BaseException {
|
|
465
431
|
name = "MessageRejected";
|
|
466
432
|
$fault = "client";
|
|
467
433
|
constructor(opts) {
|
|
@@ -472,9 +438,8 @@ class MessageRejected extends SESServiceException_1.SESServiceException {
|
|
|
472
438
|
});
|
|
473
439
|
Object.setPrototypeOf(this, MessageRejected.prototype);
|
|
474
440
|
}
|
|
475
|
-
}
|
|
476
|
-
exports.
|
|
477
|
-
class MissingRenderingAttributeException extends SESServiceException_1.SESServiceException {
|
|
441
|
+
};
|
|
442
|
+
exports.MissingRenderingAttributeException = class MissingRenderingAttributeException extends __BaseException {
|
|
478
443
|
name = "MissingRenderingAttributeException";
|
|
479
444
|
$fault = "client";
|
|
480
445
|
TemplateName;
|
|
@@ -487,9 +452,8 @@ class MissingRenderingAttributeException extends SESServiceException_1.SESServic
|
|
|
487
452
|
Object.setPrototypeOf(this, MissingRenderingAttributeException.prototype);
|
|
488
453
|
this.TemplateName = opts.TemplateName;
|
|
489
454
|
}
|
|
490
|
-
}
|
|
491
|
-
exports.
|
|
492
|
-
class ProductionAccessNotGrantedException extends SESServiceException_1.SESServiceException {
|
|
455
|
+
};
|
|
456
|
+
exports.ProductionAccessNotGrantedException = class ProductionAccessNotGrantedException extends __BaseException {
|
|
493
457
|
name = "ProductionAccessNotGrantedException";
|
|
494
458
|
$fault = "client";
|
|
495
459
|
constructor(opts) {
|
|
@@ -500,5 +464,4 @@ class ProductionAccessNotGrantedException extends SESServiceException_1.SESServi
|
|
|
500
464
|
});
|
|
501
465
|
Object.setPrototypeOf(this, ProductionAccessNotGrantedException.prototype);
|
|
502
466
|
}
|
|
503
|
-
}
|
|
504
|
-
exports.ProductionAccessNotGrantedException = ProductionAccessNotGrantedException;
|
|
467
|
+
};
|
|
@@ -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;
|