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