@aws-sdk/client-sesv2 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.
- package/dist-cjs/index.js +129 -3756
- package/dist-cjs/models/SESv2ServiceException.js +12 -0
- package/dist-cjs/models/errors.js +173 -0
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-cjs/schemas/schemas_0.js +3058 -0
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +91 -85
- package/dist-types/schemas/schemas_0.d.ts +20 -13
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -13
- package/package.json +14 -14
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SESv2ServiceException = 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 SESv2ServiceException extends smithy_client_1.ServiceException {
|
|
7
|
+
constructor(options) {
|
|
8
|
+
super(options);
|
|
9
|
+
Object.setPrototypeOf(this, SESv2ServiceException.prototype);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SESv2ServiceException = SESv2ServiceException;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidNextTokenException = exports.SendingPausedException = exports.MessageRejected = exports.MailFromDomainNotVerifiedException = exports.LimitExceededException = exports.ConflictException = exports.ConcurrentModificationException = exports.TooManyRequestsException = exports.NotFoundException = exports.InternalServiceErrorException = exports.BadRequestException = exports.AlreadyExistsException = exports.AccountSuspendedException = void 0;
|
|
4
|
+
const SESv2ServiceException_1 = require("./SESv2ServiceException");
|
|
5
|
+
class AccountSuspendedException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
6
|
+
name = "AccountSuspendedException";
|
|
7
|
+
$fault = "client";
|
|
8
|
+
constructor(opts) {
|
|
9
|
+
super({
|
|
10
|
+
name: "AccountSuspendedException",
|
|
11
|
+
$fault: "client",
|
|
12
|
+
...opts,
|
|
13
|
+
});
|
|
14
|
+
Object.setPrototypeOf(this, AccountSuspendedException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.AccountSuspendedException = AccountSuspendedException;
|
|
18
|
+
class AlreadyExistsException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
19
|
+
name = "AlreadyExistsException";
|
|
20
|
+
$fault = "client";
|
|
21
|
+
constructor(opts) {
|
|
22
|
+
super({
|
|
23
|
+
name: "AlreadyExistsException",
|
|
24
|
+
$fault: "client",
|
|
25
|
+
...opts,
|
|
26
|
+
});
|
|
27
|
+
Object.setPrototypeOf(this, AlreadyExistsException.prototype);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AlreadyExistsException = AlreadyExistsException;
|
|
31
|
+
class BadRequestException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
32
|
+
name = "BadRequestException";
|
|
33
|
+
$fault = "client";
|
|
34
|
+
constructor(opts) {
|
|
35
|
+
super({
|
|
36
|
+
name: "BadRequestException",
|
|
37
|
+
$fault: "client",
|
|
38
|
+
...opts,
|
|
39
|
+
});
|
|
40
|
+
Object.setPrototypeOf(this, BadRequestException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.BadRequestException = BadRequestException;
|
|
44
|
+
class InternalServiceErrorException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
45
|
+
name = "InternalServiceErrorException";
|
|
46
|
+
$fault = "server";
|
|
47
|
+
constructor(opts) {
|
|
48
|
+
super({
|
|
49
|
+
name: "InternalServiceErrorException",
|
|
50
|
+
$fault: "server",
|
|
51
|
+
...opts,
|
|
52
|
+
});
|
|
53
|
+
Object.setPrototypeOf(this, InternalServiceErrorException.prototype);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
exports.InternalServiceErrorException = InternalServiceErrorException;
|
|
57
|
+
class NotFoundException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
58
|
+
name = "NotFoundException";
|
|
59
|
+
$fault = "client";
|
|
60
|
+
constructor(opts) {
|
|
61
|
+
super({
|
|
62
|
+
name: "NotFoundException",
|
|
63
|
+
$fault: "client",
|
|
64
|
+
...opts,
|
|
65
|
+
});
|
|
66
|
+
Object.setPrototypeOf(this, NotFoundException.prototype);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.NotFoundException = NotFoundException;
|
|
70
|
+
class TooManyRequestsException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
71
|
+
name = "TooManyRequestsException";
|
|
72
|
+
$fault = "client";
|
|
73
|
+
constructor(opts) {
|
|
74
|
+
super({
|
|
75
|
+
name: "TooManyRequestsException",
|
|
76
|
+
$fault: "client",
|
|
77
|
+
...opts,
|
|
78
|
+
});
|
|
79
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.TooManyRequestsException = TooManyRequestsException;
|
|
83
|
+
class ConcurrentModificationException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
84
|
+
name = "ConcurrentModificationException";
|
|
85
|
+
$fault = "server";
|
|
86
|
+
constructor(opts) {
|
|
87
|
+
super({
|
|
88
|
+
name: "ConcurrentModificationException",
|
|
89
|
+
$fault: "server",
|
|
90
|
+
...opts,
|
|
91
|
+
});
|
|
92
|
+
Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.ConcurrentModificationException = ConcurrentModificationException;
|
|
96
|
+
class ConflictException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
97
|
+
name = "ConflictException";
|
|
98
|
+
$fault = "client";
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "ConflictException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts,
|
|
104
|
+
});
|
|
105
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.ConflictException = ConflictException;
|
|
109
|
+
class LimitExceededException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
110
|
+
name = "LimitExceededException";
|
|
111
|
+
$fault = "client";
|
|
112
|
+
constructor(opts) {
|
|
113
|
+
super({
|
|
114
|
+
name: "LimitExceededException",
|
|
115
|
+
$fault: "client",
|
|
116
|
+
...opts,
|
|
117
|
+
});
|
|
118
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
exports.LimitExceededException = LimitExceededException;
|
|
122
|
+
class MailFromDomainNotVerifiedException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
123
|
+
name = "MailFromDomainNotVerifiedException";
|
|
124
|
+
$fault = "client";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "MailFromDomainNotVerifiedException",
|
|
128
|
+
$fault: "client",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, MailFromDomainNotVerifiedException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.MailFromDomainNotVerifiedException = MailFromDomainNotVerifiedException;
|
|
135
|
+
class MessageRejected extends SESv2ServiceException_1.SESv2ServiceException {
|
|
136
|
+
name = "MessageRejected";
|
|
137
|
+
$fault = "client";
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "MessageRejected",
|
|
141
|
+
$fault: "client",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, MessageRejected.prototype);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.MessageRejected = MessageRejected;
|
|
148
|
+
class SendingPausedException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
149
|
+
name = "SendingPausedException";
|
|
150
|
+
$fault = "client";
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "SendingPausedException",
|
|
154
|
+
$fault: "client",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, SendingPausedException.prototype);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.SendingPausedException = SendingPausedException;
|
|
161
|
+
class InvalidNextTokenException extends SESv2ServiceException_1.SESv2ServiceException {
|
|
162
|
+
name = "InvalidNextTokenException";
|
|
163
|
+
$fault = "client";
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "InvalidNextTokenException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
@@ -10,6 +10,7 @@ const util_base64_1 = require("@smithy/util-base64");
|
|
|
10
10
|
const util_utf8_1 = require("@smithy/util-utf8");
|
|
11
11
|
const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
|
|
12
12
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
13
|
+
const schemas_0_1 = require("./schemas/schemas_0");
|
|
13
14
|
const getRuntimeConfig = (config) => {
|
|
14
15
|
return {
|
|
15
16
|
apiVersion: "2019-09-27",
|
|
@@ -35,6 +36,7 @@ const getRuntimeConfig = (config) => {
|
|
|
35
36
|
protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
|
|
36
37
|
protocolSettings: config?.protocolSettings ?? {
|
|
37
38
|
defaultNamespace: "com.amazonaws.sesv2",
|
|
39
|
+
errorTypeRegistries: schemas_0_1.errorTypeRegistries,
|
|
38
40
|
version: "2019-09-27",
|
|
39
41
|
serviceTarget: "SimpleEmailService_v2",
|
|
40
42
|
},
|