@aws-sdk/client-workmail 3.934.0 → 3.935.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 CHANGED
@@ -117,14 +117,6 @@ let WorkMailServiceException$1 = class WorkMailServiceException extends smithyCl
117
117
  }
118
118
  };
119
119
 
120
- const AccessControlRuleEffect = {
121
- ALLOW: "ALLOW",
122
- DENY: "DENY",
123
- };
124
- const AccessEffect = {
125
- ALLOW: "ALLOW",
126
- DENY: "DENY",
127
- };
128
120
  let EntityNotFoundException$1 = class EntityNotFoundException extends WorkMailServiceException$1 {
129
121
  name = "EntityNotFoundException";
130
122
  $fault = "client";
@@ -251,10 +243,6 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends WorkMa
251
243
  this.Message = opts.Message;
252
244
  }
253
245
  };
254
- const AvailabilityProviderType = {
255
- EWS: "EWS",
256
- LAMBDA: "LAMBDA",
257
- };
258
246
  let EmailAddressInUseException$1 = class EmailAddressInUseException extends WorkMailServiceException$1 {
259
247
  name = "EmailAddressInUseException";
260
248
  $fault = "client";
@@ -339,14 +327,6 @@ let ReservedNameException$1 = class ReservedNameException extends WorkMailServic
339
327
  this.Message = opts.Message;
340
328
  }
341
329
  };
342
- const ImpersonationRoleType = {
343
- FULL_ACCESS: "FULL_ACCESS",
344
- READ_ONLY: "READ_ONLY",
345
- };
346
- const MobileDeviceAccessRuleEffect = {
347
- ALLOW: "ALLOW",
348
- DENY: "DENY",
349
- };
350
330
  let DirectoryInUseException$1 = class DirectoryInUseException extends WorkMailServiceException$1 {
351
331
  name = "DirectoryInUseException";
352
332
  $fault = "client";
@@ -361,16 +341,6 @@ let DirectoryInUseException$1 = class DirectoryInUseException extends WorkMailSe
361
341
  this.Message = opts.Message;
362
342
  }
363
343
  };
364
- const ResourceType = {
365
- EQUIPMENT: "EQUIPMENT",
366
- ROOM: "ROOM",
367
- };
368
- const UserRole = {
369
- REMOTE_USER: "REMOTE_USER",
370
- RESOURCE: "RESOURCE",
371
- SYSTEM_USER: "SYSTEM_USER",
372
- USER: "USER",
373
- };
374
344
  let InvalidPasswordException$1 = class InvalidPasswordException extends WorkMailServiceException$1 {
375
345
  name = "InvalidPasswordException";
376
346
  $fault = "client";
@@ -385,10 +355,6 @@ let InvalidPasswordException$1 = class InvalidPasswordException extends WorkMail
385
355
  this.Message = opts.Message;
386
356
  }
387
357
  };
388
- const MemberType = {
389
- GROUP: "GROUP",
390
- USER: "USER",
391
- };
392
358
  let InvalidCustomSesConfigurationException$1 = class InvalidCustomSesConfigurationException extends WorkMailServiceException$1 {
393
359
  name = "InvalidCustomSesConfigurationException";
394
360
  $fault = "client";
@@ -417,35 +383,6 @@ let MailDomainInUseException$1 = class MailDomainInUseException extends WorkMail
417
383
  this.Message = opts.Message;
418
384
  }
419
385
  };
420
- const EntityType = {
421
- GROUP: "GROUP",
422
- RESOURCE: "RESOURCE",
423
- USER: "USER",
424
- };
425
- const EntityState = {
426
- DELETED: "DELETED",
427
- DISABLED: "DISABLED",
428
- ENABLED: "ENABLED",
429
- };
430
- const IdentityProviderAuthenticationMode = {
431
- IDENTITY_PROVIDER_AND_DIRECTORY: "IDENTITY_PROVIDER_AND_DIRECTORY",
432
- IDENTITY_PROVIDER_ONLY: "IDENTITY_PROVIDER_ONLY",
433
- };
434
- const PersonalAccessTokenConfigurationStatus = {
435
- ACTIVE: "ACTIVE",
436
- INACTIVE: "INACTIVE",
437
- };
438
- const MailboxExportJobState = {
439
- CANCELLED: "CANCELLED",
440
- COMPLETED: "COMPLETED",
441
- FAILED: "FAILED",
442
- RUNNING: "RUNNING",
443
- };
444
- const DnsRecordVerificationStatus = {
445
- FAILED: "FAILED",
446
- PENDING: "PENDING",
447
- VERIFIED: "VERIFIED",
448
- };
449
386
  let EntityAlreadyRegisteredException$1 = class EntityAlreadyRegisteredException extends WorkMailServiceException$1 {
450
387
  name = "EntityAlreadyRegisteredException";
451
388
  $fault = "client";
@@ -460,18 +397,6 @@ let EntityAlreadyRegisteredException$1 = class EntityAlreadyRegisteredException
460
397
  this.Message = opts.Message;
461
398
  }
462
399
  };
463
- const RetentionAction = {
464
- DELETE: "DELETE",
465
- NONE: "NONE",
466
- PERMANENTLY_DELETE: "PERMANENTLY_DELETE",
467
- };
468
- const FolderName = {
469
- DELETED_ITEMS: "DELETED_ITEMS",
470
- DRAFTS: "DRAFTS",
471
- INBOX: "INBOX",
472
- JUNK_EMAIL: "JUNK_EMAIL",
473
- SENT_ITEMS: "SENT_ITEMS",
474
- };
475
400
  let InvalidConfigurationException$1 = class InvalidConfigurationException extends WorkMailServiceException$1 {
476
401
  name = "InvalidConfigurationException";
477
402
  $fault = "client";
@@ -486,11 +411,6 @@ let InvalidConfigurationException$1 = class InvalidConfigurationException extend
486
411
  this.Message = opts.Message;
487
412
  }
488
413
  };
489
- const PermissionType = {
490
- FULL_ACCESS: "FULL_ACCESS",
491
- SEND_AS: "SEND_AS",
492
- SEND_ON_BEHALF: "SEND_ON_BEHALF",
493
- };
494
414
  let TooManyTagsException$1 = class TooManyTagsException extends WorkMailServiceException$1 {
495
415
  name = "TooManyTagsException";
496
416
  $fault = "client";
@@ -3959,6 +3879,87 @@ const paginateListResources = core.createPaginator(WorkMailClient, ListResources
3959
3879
 
3960
3880
  const paginateListUsers = core.createPaginator(WorkMailClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults");
3961
3881
 
3882
+ const AccessControlRuleEffect = {
3883
+ ALLOW: "ALLOW",
3884
+ DENY: "DENY",
3885
+ };
3886
+ const AccessEffect = {
3887
+ ALLOW: "ALLOW",
3888
+ DENY: "DENY",
3889
+ };
3890
+ const AvailabilityProviderType = {
3891
+ EWS: "EWS",
3892
+ LAMBDA: "LAMBDA",
3893
+ };
3894
+ const ImpersonationRoleType = {
3895
+ FULL_ACCESS: "FULL_ACCESS",
3896
+ READ_ONLY: "READ_ONLY",
3897
+ };
3898
+ const MobileDeviceAccessRuleEffect = {
3899
+ ALLOW: "ALLOW",
3900
+ DENY: "DENY",
3901
+ };
3902
+ const ResourceType = {
3903
+ EQUIPMENT: "EQUIPMENT",
3904
+ ROOM: "ROOM",
3905
+ };
3906
+ const UserRole = {
3907
+ REMOTE_USER: "REMOTE_USER",
3908
+ RESOURCE: "RESOURCE",
3909
+ SYSTEM_USER: "SYSTEM_USER",
3910
+ USER: "USER",
3911
+ };
3912
+ const MemberType = {
3913
+ GROUP: "GROUP",
3914
+ USER: "USER",
3915
+ };
3916
+ const EntityType = {
3917
+ GROUP: "GROUP",
3918
+ RESOURCE: "RESOURCE",
3919
+ USER: "USER",
3920
+ };
3921
+ const EntityState = {
3922
+ DELETED: "DELETED",
3923
+ DISABLED: "DISABLED",
3924
+ ENABLED: "ENABLED",
3925
+ };
3926
+ const IdentityProviderAuthenticationMode = {
3927
+ IDENTITY_PROVIDER_AND_DIRECTORY: "IDENTITY_PROVIDER_AND_DIRECTORY",
3928
+ IDENTITY_PROVIDER_ONLY: "IDENTITY_PROVIDER_ONLY",
3929
+ };
3930
+ const PersonalAccessTokenConfigurationStatus = {
3931
+ ACTIVE: "ACTIVE",
3932
+ INACTIVE: "INACTIVE",
3933
+ };
3934
+ const MailboxExportJobState = {
3935
+ CANCELLED: "CANCELLED",
3936
+ COMPLETED: "COMPLETED",
3937
+ FAILED: "FAILED",
3938
+ RUNNING: "RUNNING",
3939
+ };
3940
+ const DnsRecordVerificationStatus = {
3941
+ FAILED: "FAILED",
3942
+ PENDING: "PENDING",
3943
+ VERIFIED: "VERIFIED",
3944
+ };
3945
+ const RetentionAction = {
3946
+ DELETE: "DELETE",
3947
+ NONE: "NONE",
3948
+ PERMANENTLY_DELETE: "PERMANENTLY_DELETE",
3949
+ };
3950
+ const FolderName = {
3951
+ DELETED_ITEMS: "DELETED_ITEMS",
3952
+ DRAFTS: "DRAFTS",
3953
+ INBOX: "INBOX",
3954
+ JUNK_EMAIL: "JUNK_EMAIL",
3955
+ SENT_ITEMS: "SENT_ITEMS",
3956
+ };
3957
+ const PermissionType = {
3958
+ FULL_ACCESS: "FULL_ACCESS",
3959
+ SEND_AS: "SEND_AS",
3960
+ SEND_ON_BEHALF: "SEND_ON_BEHALF",
3961
+ };
3962
+
3962
3963
  Object.defineProperty(exports, "$Command", {
3963
3964
  enumerable: true,
3964
3965
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./WorkMailClient";
2
2
  export * from "./WorkMail";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { WorkMailServiceException } from "./models/WorkMailServiceException";
@@ -0,0 +1,80 @@
1
+ export const AccessControlRuleEffect = {
2
+ ALLOW: "ALLOW",
3
+ DENY: "DENY",
4
+ };
5
+ export const AccessEffect = {
6
+ ALLOW: "ALLOW",
7
+ DENY: "DENY",
8
+ };
9
+ export const AvailabilityProviderType = {
10
+ EWS: "EWS",
11
+ LAMBDA: "LAMBDA",
12
+ };
13
+ export const ImpersonationRoleType = {
14
+ FULL_ACCESS: "FULL_ACCESS",
15
+ READ_ONLY: "READ_ONLY",
16
+ };
17
+ export const MobileDeviceAccessRuleEffect = {
18
+ ALLOW: "ALLOW",
19
+ DENY: "DENY",
20
+ };
21
+ export const ResourceType = {
22
+ EQUIPMENT: "EQUIPMENT",
23
+ ROOM: "ROOM",
24
+ };
25
+ export const UserRole = {
26
+ REMOTE_USER: "REMOTE_USER",
27
+ RESOURCE: "RESOURCE",
28
+ SYSTEM_USER: "SYSTEM_USER",
29
+ USER: "USER",
30
+ };
31
+ export const MemberType = {
32
+ GROUP: "GROUP",
33
+ USER: "USER",
34
+ };
35
+ export const EntityType = {
36
+ GROUP: "GROUP",
37
+ RESOURCE: "RESOURCE",
38
+ USER: "USER",
39
+ };
40
+ export const EntityState = {
41
+ DELETED: "DELETED",
42
+ DISABLED: "DISABLED",
43
+ ENABLED: "ENABLED",
44
+ };
45
+ export const IdentityProviderAuthenticationMode = {
46
+ IDENTITY_PROVIDER_AND_DIRECTORY: "IDENTITY_PROVIDER_AND_DIRECTORY",
47
+ IDENTITY_PROVIDER_ONLY: "IDENTITY_PROVIDER_ONLY",
48
+ };
49
+ export const PersonalAccessTokenConfigurationStatus = {
50
+ ACTIVE: "ACTIVE",
51
+ INACTIVE: "INACTIVE",
52
+ };
53
+ export const MailboxExportJobState = {
54
+ CANCELLED: "CANCELLED",
55
+ COMPLETED: "COMPLETED",
56
+ FAILED: "FAILED",
57
+ RUNNING: "RUNNING",
58
+ };
59
+ export const DnsRecordVerificationStatus = {
60
+ FAILED: "FAILED",
61
+ PENDING: "PENDING",
62
+ VERIFIED: "VERIFIED",
63
+ };
64
+ export const RetentionAction = {
65
+ DELETE: "DELETE",
66
+ NONE: "NONE",
67
+ PERMANENTLY_DELETE: "PERMANENTLY_DELETE",
68
+ };
69
+ export const FolderName = {
70
+ DELETED_ITEMS: "DELETED_ITEMS",
71
+ DRAFTS: "DRAFTS",
72
+ INBOX: "INBOX",
73
+ JUNK_EMAIL: "JUNK_EMAIL",
74
+ SENT_ITEMS: "SENT_ITEMS",
75
+ };
76
+ export const PermissionType = {
77
+ FULL_ACCESS: "FULL_ACCESS",
78
+ SEND_AS: "SEND_AS",
79
+ SEND_ON_BEHALF: "SEND_ON_BEHALF",
80
+ };
@@ -0,0 +1,309 @@
1
+ import { WorkMailServiceException as __BaseException } from "./WorkMailServiceException";
2
+ export class EntityNotFoundException extends __BaseException {
3
+ name = "EntityNotFoundException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "EntityNotFoundException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, EntityNotFoundException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class EntityStateException extends __BaseException {
17
+ name = "EntityStateException";
18
+ $fault = "client";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "EntityStateException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, EntityStateException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class InvalidParameterException extends __BaseException {
31
+ name = "InvalidParameterException";
32
+ $fault = "client";
33
+ Message;
34
+ constructor(opts) {
35
+ super({
36
+ name: "InvalidParameterException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
41
+ this.Message = opts.Message;
42
+ }
43
+ }
44
+ export class OrganizationNotFoundException extends __BaseException {
45
+ name = "OrganizationNotFoundException";
46
+ $fault = "client";
47
+ Message;
48
+ constructor(opts) {
49
+ super({
50
+ name: "OrganizationNotFoundException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, OrganizationNotFoundException.prototype);
55
+ this.Message = opts.Message;
56
+ }
57
+ }
58
+ export class OrganizationStateException extends __BaseException {
59
+ name = "OrganizationStateException";
60
+ $fault = "client";
61
+ Message;
62
+ constructor(opts) {
63
+ super({
64
+ name: "OrganizationStateException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, OrganizationStateException.prototype);
69
+ this.Message = opts.Message;
70
+ }
71
+ }
72
+ export class UnsupportedOperationException extends __BaseException {
73
+ name = "UnsupportedOperationException";
74
+ $fault = "client";
75
+ Message;
76
+ constructor(opts) {
77
+ super({
78
+ name: "UnsupportedOperationException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
83
+ this.Message = opts.Message;
84
+ }
85
+ }
86
+ export class DirectoryServiceAuthenticationFailedException extends __BaseException {
87
+ name = "DirectoryServiceAuthenticationFailedException";
88
+ $fault = "client";
89
+ Message;
90
+ constructor(opts) {
91
+ super({
92
+ name: "DirectoryServiceAuthenticationFailedException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, DirectoryServiceAuthenticationFailedException.prototype);
97
+ this.Message = opts.Message;
98
+ }
99
+ }
100
+ export class DirectoryUnavailableException extends __BaseException {
101
+ name = "DirectoryUnavailableException";
102
+ $fault = "client";
103
+ Message;
104
+ constructor(opts) {
105
+ super({
106
+ name: "DirectoryUnavailableException",
107
+ $fault: "client",
108
+ ...opts,
109
+ });
110
+ Object.setPrototypeOf(this, DirectoryUnavailableException.prototype);
111
+ this.Message = opts.Message;
112
+ }
113
+ }
114
+ export class ResourceNotFoundException extends __BaseException {
115
+ name = "ResourceNotFoundException";
116
+ $fault = "client";
117
+ Message;
118
+ constructor(opts) {
119
+ super({
120
+ name: "ResourceNotFoundException",
121
+ $fault: "client",
122
+ ...opts,
123
+ });
124
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
125
+ this.Message = opts.Message;
126
+ }
127
+ }
128
+ export class EmailAddressInUseException extends __BaseException {
129
+ name = "EmailAddressInUseException";
130
+ $fault = "client";
131
+ Message;
132
+ constructor(opts) {
133
+ super({
134
+ name: "EmailAddressInUseException",
135
+ $fault: "client",
136
+ ...opts,
137
+ });
138
+ Object.setPrototypeOf(this, EmailAddressInUseException.prototype);
139
+ this.Message = opts.Message;
140
+ }
141
+ }
142
+ export class LimitExceededException extends __BaseException {
143
+ name = "LimitExceededException";
144
+ $fault = "client";
145
+ Message;
146
+ constructor(opts) {
147
+ super({
148
+ name: "LimitExceededException",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
153
+ this.Message = opts.Message;
154
+ }
155
+ }
156
+ export class MailDomainNotFoundException extends __BaseException {
157
+ name = "MailDomainNotFoundException";
158
+ $fault = "client";
159
+ Message;
160
+ constructor(opts) {
161
+ super({
162
+ name: "MailDomainNotFoundException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, MailDomainNotFoundException.prototype);
167
+ this.Message = opts.Message;
168
+ }
169
+ }
170
+ export class MailDomainStateException extends __BaseException {
171
+ name = "MailDomainStateException";
172
+ $fault = "client";
173
+ Message;
174
+ constructor(opts) {
175
+ super({
176
+ name: "MailDomainStateException",
177
+ $fault: "client",
178
+ ...opts,
179
+ });
180
+ Object.setPrototypeOf(this, MailDomainStateException.prototype);
181
+ this.Message = opts.Message;
182
+ }
183
+ }
184
+ export class NameAvailabilityException extends __BaseException {
185
+ name = "NameAvailabilityException";
186
+ $fault = "client";
187
+ Message;
188
+ constructor(opts) {
189
+ super({
190
+ name: "NameAvailabilityException",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, NameAvailabilityException.prototype);
195
+ this.Message = opts.Message;
196
+ }
197
+ }
198
+ export class ReservedNameException extends __BaseException {
199
+ name = "ReservedNameException";
200
+ $fault = "client";
201
+ Message;
202
+ constructor(opts) {
203
+ super({
204
+ name: "ReservedNameException",
205
+ $fault: "client",
206
+ ...opts,
207
+ });
208
+ Object.setPrototypeOf(this, ReservedNameException.prototype);
209
+ this.Message = opts.Message;
210
+ }
211
+ }
212
+ export class DirectoryInUseException extends __BaseException {
213
+ name = "DirectoryInUseException";
214
+ $fault = "client";
215
+ Message;
216
+ constructor(opts) {
217
+ super({
218
+ name: "DirectoryInUseException",
219
+ $fault: "client",
220
+ ...opts,
221
+ });
222
+ Object.setPrototypeOf(this, DirectoryInUseException.prototype);
223
+ this.Message = opts.Message;
224
+ }
225
+ }
226
+ export class InvalidPasswordException extends __BaseException {
227
+ name = "InvalidPasswordException";
228
+ $fault = "client";
229
+ Message;
230
+ constructor(opts) {
231
+ super({
232
+ name: "InvalidPasswordException",
233
+ $fault: "client",
234
+ ...opts,
235
+ });
236
+ Object.setPrototypeOf(this, InvalidPasswordException.prototype);
237
+ this.Message = opts.Message;
238
+ }
239
+ }
240
+ export class InvalidCustomSesConfigurationException extends __BaseException {
241
+ name = "InvalidCustomSesConfigurationException";
242
+ $fault = "client";
243
+ Message;
244
+ constructor(opts) {
245
+ super({
246
+ name: "InvalidCustomSesConfigurationException",
247
+ $fault: "client",
248
+ ...opts,
249
+ });
250
+ Object.setPrototypeOf(this, InvalidCustomSesConfigurationException.prototype);
251
+ this.Message = opts.Message;
252
+ }
253
+ }
254
+ export class MailDomainInUseException extends __BaseException {
255
+ name = "MailDomainInUseException";
256
+ $fault = "client";
257
+ Message;
258
+ constructor(opts) {
259
+ super({
260
+ name: "MailDomainInUseException",
261
+ $fault: "client",
262
+ ...opts,
263
+ });
264
+ Object.setPrototypeOf(this, MailDomainInUseException.prototype);
265
+ this.Message = opts.Message;
266
+ }
267
+ }
268
+ export class EntityAlreadyRegisteredException extends __BaseException {
269
+ name = "EntityAlreadyRegisteredException";
270
+ $fault = "client";
271
+ Message;
272
+ constructor(opts) {
273
+ super({
274
+ name: "EntityAlreadyRegisteredException",
275
+ $fault: "client",
276
+ ...opts,
277
+ });
278
+ Object.setPrototypeOf(this, EntityAlreadyRegisteredException.prototype);
279
+ this.Message = opts.Message;
280
+ }
281
+ }
282
+ export class InvalidConfigurationException extends __BaseException {
283
+ name = "InvalidConfigurationException";
284
+ $fault = "client";
285
+ Message;
286
+ constructor(opts) {
287
+ super({
288
+ name: "InvalidConfigurationException",
289
+ $fault: "client",
290
+ ...opts,
291
+ });
292
+ Object.setPrototypeOf(this, InvalidConfigurationException.prototype);
293
+ this.Message = opts.Message;
294
+ }
295
+ }
296
+ export class TooManyTagsException extends __BaseException {
297
+ name = "TooManyTagsException";
298
+ $fault = "client";
299
+ Message;
300
+ constructor(opts) {
301
+ super({
302
+ name: "TooManyTagsException",
303
+ $fault: "client",
304
+ ...opts,
305
+ });
306
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
307
+ this.Message = opts.Message;
308
+ }
309
+ }