@aws-sdk/client-sns 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.
@@ -1,444 +1 @@
1
- import { SNSServiceException as __BaseException } from "./SNSServiceException";
2
- export class AuthorizationErrorException extends __BaseException {
3
- name = "AuthorizationErrorException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AuthorizationErrorException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AuthorizationErrorException.prototype);
12
- }
13
- }
14
- export class InternalErrorException extends __BaseException {
15
- name = "InternalErrorException";
16
- $fault = "server";
17
- constructor(opts) {
18
- super({
19
- name: "InternalErrorException",
20
- $fault: "server",
21
- ...opts,
22
- });
23
- Object.setPrototypeOf(this, InternalErrorException.prototype);
24
- }
25
- }
26
- export class InvalidParameterException extends __BaseException {
27
- name = "InvalidParameterException";
28
- $fault = "client";
29
- constructor(opts) {
30
- super({
31
- name: "InvalidParameterException",
32
- $fault: "client",
33
- ...opts,
34
- });
35
- Object.setPrototypeOf(this, InvalidParameterException.prototype);
36
- }
37
- }
38
- export class NotFoundException extends __BaseException {
39
- name = "NotFoundException";
40
- $fault = "client";
41
- constructor(opts) {
42
- super({
43
- name: "NotFoundException",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, NotFoundException.prototype);
48
- }
49
- }
50
- export class ThrottledException extends __BaseException {
51
- name = "ThrottledException";
52
- $fault = "client";
53
- constructor(opts) {
54
- super({
55
- name: "ThrottledException",
56
- $fault: "client",
57
- ...opts,
58
- });
59
- Object.setPrototypeOf(this, ThrottledException.prototype);
60
- }
61
- }
62
- export class FilterPolicyLimitExceededException extends __BaseException {
63
- name = "FilterPolicyLimitExceededException";
64
- $fault = "client";
65
- constructor(opts) {
66
- super({
67
- name: "FilterPolicyLimitExceededException",
68
- $fault: "client",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, FilterPolicyLimitExceededException.prototype);
72
- }
73
- }
74
- export class ReplayLimitExceededException extends __BaseException {
75
- name = "ReplayLimitExceededException";
76
- $fault = "client";
77
- constructor(opts) {
78
- super({
79
- name: "ReplayLimitExceededException",
80
- $fault: "client",
81
- ...opts,
82
- });
83
- Object.setPrototypeOf(this, ReplayLimitExceededException.prototype);
84
- }
85
- }
86
- export class SubscriptionLimitExceededException extends __BaseException {
87
- name = "SubscriptionLimitExceededException";
88
- $fault = "client";
89
- constructor(opts) {
90
- super({
91
- name: "SubscriptionLimitExceededException",
92
- $fault: "client",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, SubscriptionLimitExceededException.prototype);
96
- }
97
- }
98
- export const LanguageCodeString = {
99
- de_DE: "de-DE",
100
- en_GB: "en-GB",
101
- en_US: "en-US",
102
- es_419: "es-419",
103
- es_ES: "es-ES",
104
- fr_CA: "fr-CA",
105
- fr_FR: "fr-FR",
106
- it_IT: "it-IT",
107
- jp_JP: "ja-JP",
108
- kr_KR: "kr-KR",
109
- pt_BR: "pt-BR",
110
- zh_CN: "zh-CN",
111
- zh_TW: "zh-TW",
112
- };
113
- export class OptedOutException extends __BaseException {
114
- name = "OptedOutException";
115
- $fault = "client";
116
- constructor(opts) {
117
- super({
118
- name: "OptedOutException",
119
- $fault: "client",
120
- ...opts,
121
- });
122
- Object.setPrototypeOf(this, OptedOutException.prototype);
123
- }
124
- }
125
- export class UserErrorException extends __BaseException {
126
- name = "UserErrorException";
127
- $fault = "client";
128
- constructor(opts) {
129
- super({
130
- name: "UserErrorException",
131
- $fault: "client",
132
- ...opts,
133
- });
134
- Object.setPrototypeOf(this, UserErrorException.prototype);
135
- }
136
- }
137
- export class ConcurrentAccessException extends __BaseException {
138
- name = "ConcurrentAccessException";
139
- $fault = "client";
140
- constructor(opts) {
141
- super({
142
- name: "ConcurrentAccessException",
143
- $fault: "client",
144
- ...opts,
145
- });
146
- Object.setPrototypeOf(this, ConcurrentAccessException.prototype);
147
- }
148
- }
149
- export class InvalidSecurityException extends __BaseException {
150
- name = "InvalidSecurityException";
151
- $fault = "client";
152
- constructor(opts) {
153
- super({
154
- name: "InvalidSecurityException",
155
- $fault: "client",
156
- ...opts,
157
- });
158
- Object.setPrototypeOf(this, InvalidSecurityException.prototype);
159
- }
160
- }
161
- export class StaleTagException extends __BaseException {
162
- name = "StaleTagException";
163
- $fault = "client";
164
- constructor(opts) {
165
- super({
166
- name: "StaleTagException",
167
- $fault: "client",
168
- ...opts,
169
- });
170
- Object.setPrototypeOf(this, StaleTagException.prototype);
171
- }
172
- }
173
- export class TagLimitExceededException extends __BaseException {
174
- name = "TagLimitExceededException";
175
- $fault = "client";
176
- constructor(opts) {
177
- super({
178
- name: "TagLimitExceededException",
179
- $fault: "client",
180
- ...opts,
181
- });
182
- Object.setPrototypeOf(this, TagLimitExceededException.prototype);
183
- }
184
- }
185
- export class TagPolicyException extends __BaseException {
186
- name = "TagPolicyException";
187
- $fault = "client";
188
- constructor(opts) {
189
- super({
190
- name: "TagPolicyException",
191
- $fault: "client",
192
- ...opts,
193
- });
194
- Object.setPrototypeOf(this, TagPolicyException.prototype);
195
- }
196
- }
197
- export class TopicLimitExceededException extends __BaseException {
198
- name = "TopicLimitExceededException";
199
- $fault = "client";
200
- constructor(opts) {
201
- super({
202
- name: "TopicLimitExceededException",
203
- $fault: "client",
204
- ...opts,
205
- });
206
- Object.setPrototypeOf(this, TopicLimitExceededException.prototype);
207
- }
208
- }
209
- export class ResourceNotFoundException extends __BaseException {
210
- name = "ResourceNotFoundException";
211
- $fault = "client";
212
- constructor(opts) {
213
- super({
214
- name: "ResourceNotFoundException",
215
- $fault: "client",
216
- ...opts,
217
- });
218
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
219
- }
220
- }
221
- export class InvalidStateException extends __BaseException {
222
- name = "InvalidStateException";
223
- $fault = "client";
224
- constructor(opts) {
225
- super({
226
- name: "InvalidStateException",
227
- $fault: "client",
228
- ...opts,
229
- });
230
- Object.setPrototypeOf(this, InvalidStateException.prototype);
231
- }
232
- }
233
- export const NumberCapability = {
234
- MMS: "MMS",
235
- SMS: "SMS",
236
- VOICE: "VOICE",
237
- };
238
- export const RouteType = {
239
- Premium: "Premium",
240
- Promotional: "Promotional",
241
- Transactional: "Transactional",
242
- };
243
- export class ValidationException extends __BaseException {
244
- name = "ValidationException";
245
- $fault = "client";
246
- Message;
247
- constructor(opts) {
248
- super({
249
- name: "ValidationException",
250
- $fault: "client",
251
- ...opts,
252
- });
253
- Object.setPrototypeOf(this, ValidationException.prototype);
254
- this.Message = opts.Message;
255
- }
256
- }
257
- export const SMSSandboxPhoneNumberVerificationStatus = {
258
- Pending: "Pending",
259
- Verified: "Verified",
260
- };
261
- export class EndpointDisabledException extends __BaseException {
262
- name = "EndpointDisabledException";
263
- $fault = "client";
264
- constructor(opts) {
265
- super({
266
- name: "EndpointDisabledException",
267
- $fault: "client",
268
- ...opts,
269
- });
270
- Object.setPrototypeOf(this, EndpointDisabledException.prototype);
271
- }
272
- }
273
- export class InvalidParameterValueException extends __BaseException {
274
- name = "InvalidParameterValueException";
275
- $fault = "client";
276
- constructor(opts) {
277
- super({
278
- name: "InvalidParameterValueException",
279
- $fault: "client",
280
- ...opts,
281
- });
282
- Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
283
- }
284
- }
285
- export class KMSAccessDeniedException extends __BaseException {
286
- name = "KMSAccessDeniedException";
287
- $fault = "client";
288
- constructor(opts) {
289
- super({
290
- name: "KMSAccessDeniedException",
291
- $fault: "client",
292
- ...opts,
293
- });
294
- Object.setPrototypeOf(this, KMSAccessDeniedException.prototype);
295
- }
296
- }
297
- export class KMSDisabledException extends __BaseException {
298
- name = "KMSDisabledException";
299
- $fault = "client";
300
- constructor(opts) {
301
- super({
302
- name: "KMSDisabledException",
303
- $fault: "client",
304
- ...opts,
305
- });
306
- Object.setPrototypeOf(this, KMSDisabledException.prototype);
307
- }
308
- }
309
- export class KMSInvalidStateException extends __BaseException {
310
- name = "KMSInvalidStateException";
311
- $fault = "client";
312
- constructor(opts) {
313
- super({
314
- name: "KMSInvalidStateException",
315
- $fault: "client",
316
- ...opts,
317
- });
318
- Object.setPrototypeOf(this, KMSInvalidStateException.prototype);
319
- }
320
- }
321
- export class KMSNotFoundException extends __BaseException {
322
- name = "KMSNotFoundException";
323
- $fault = "client";
324
- constructor(opts) {
325
- super({
326
- name: "KMSNotFoundException",
327
- $fault: "client",
328
- ...opts,
329
- });
330
- Object.setPrototypeOf(this, KMSNotFoundException.prototype);
331
- }
332
- }
333
- export class KMSOptInRequired extends __BaseException {
334
- name = "KMSOptInRequired";
335
- $fault = "client";
336
- constructor(opts) {
337
- super({
338
- name: "KMSOptInRequired",
339
- $fault: "client",
340
- ...opts,
341
- });
342
- Object.setPrototypeOf(this, KMSOptInRequired.prototype);
343
- }
344
- }
345
- export class KMSThrottlingException extends __BaseException {
346
- name = "KMSThrottlingException";
347
- $fault = "client";
348
- constructor(opts) {
349
- super({
350
- name: "KMSThrottlingException",
351
- $fault: "client",
352
- ...opts,
353
- });
354
- Object.setPrototypeOf(this, KMSThrottlingException.prototype);
355
- }
356
- }
357
- export class PlatformApplicationDisabledException extends __BaseException {
358
- name = "PlatformApplicationDisabledException";
359
- $fault = "client";
360
- constructor(opts) {
361
- super({
362
- name: "PlatformApplicationDisabledException",
363
- $fault: "client",
364
- ...opts,
365
- });
366
- Object.setPrototypeOf(this, PlatformApplicationDisabledException.prototype);
367
- }
368
- }
369
- export class BatchEntryIdsNotDistinctException extends __BaseException {
370
- name = "BatchEntryIdsNotDistinctException";
371
- $fault = "client";
372
- constructor(opts) {
373
- super({
374
- name: "BatchEntryIdsNotDistinctException",
375
- $fault: "client",
376
- ...opts,
377
- });
378
- Object.setPrototypeOf(this, BatchEntryIdsNotDistinctException.prototype);
379
- }
380
- }
381
- export class BatchRequestTooLongException extends __BaseException {
382
- name = "BatchRequestTooLongException";
383
- $fault = "client";
384
- constructor(opts) {
385
- super({
386
- name: "BatchRequestTooLongException",
387
- $fault: "client",
388
- ...opts,
389
- });
390
- Object.setPrototypeOf(this, BatchRequestTooLongException.prototype);
391
- }
392
- }
393
- export class EmptyBatchRequestException extends __BaseException {
394
- name = "EmptyBatchRequestException";
395
- $fault = "client";
396
- constructor(opts) {
397
- super({
398
- name: "EmptyBatchRequestException",
399
- $fault: "client",
400
- ...opts,
401
- });
402
- Object.setPrototypeOf(this, EmptyBatchRequestException.prototype);
403
- }
404
- }
405
- export class InvalidBatchEntryIdException extends __BaseException {
406
- name = "InvalidBatchEntryIdException";
407
- $fault = "client";
408
- constructor(opts) {
409
- super({
410
- name: "InvalidBatchEntryIdException",
411
- $fault: "client",
412
- ...opts,
413
- });
414
- Object.setPrototypeOf(this, InvalidBatchEntryIdException.prototype);
415
- }
416
- }
417
- export class TooManyEntriesInBatchRequestException extends __BaseException {
418
- name = "TooManyEntriesInBatchRequestException";
419
- $fault = "client";
420
- constructor(opts) {
421
- super({
422
- name: "TooManyEntriesInBatchRequestException",
423
- $fault: "client",
424
- ...opts,
425
- });
426
- Object.setPrototypeOf(this, TooManyEntriesInBatchRequestException.prototype);
427
- }
428
- }
429
- export class VerificationException extends __BaseException {
430
- name = "VerificationException";
431
- $fault = "client";
432
- Message;
433
- Status;
434
- constructor(opts) {
435
- super({
436
- name: "VerificationException",
437
- $fault: "client",
438
- ...opts,
439
- });
440
- Object.setPrototypeOf(this, VerificationException.prototype);
441
- this.Message = opts.Message;
442
- this.Status = opts.Status;
443
- }
444
- }
1
+ export {};
@@ -244,7 +244,7 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sns";
244
244
  const _xN = "xmlName";
245
245
  const n0 = "com.amazonaws.sns";
246
246
  import { TypeRegistry } from "@smithy/core/schema";
247
- import { AuthorizationErrorException as __AuthorizationErrorException, BatchEntryIdsNotDistinctException as __BatchEntryIdsNotDistinctException, BatchRequestTooLongException as __BatchRequestTooLongException, ConcurrentAccessException as __ConcurrentAccessException, EmptyBatchRequestException as __EmptyBatchRequestException, EndpointDisabledException as __EndpointDisabledException, FilterPolicyLimitExceededException as __FilterPolicyLimitExceededException, InternalErrorException as __InternalErrorException, InvalidBatchEntryIdException as __InvalidBatchEntryIdException, InvalidParameterException as __InvalidParameterException, InvalidParameterValueException as __InvalidParameterValueException, InvalidSecurityException as __InvalidSecurityException, InvalidStateException as __InvalidStateException, KMSAccessDeniedException as __KMSAccessDeniedException, KMSDisabledException as __KMSDisabledException, KMSInvalidStateException as __KMSInvalidStateException, KMSNotFoundException as __KMSNotFoundException, KMSOptInRequired as __KMSOptInRequired, KMSThrottlingException as __KMSThrottlingException, NotFoundException as __NotFoundException, OptedOutException as __OptedOutException, PlatformApplicationDisabledException as __PlatformApplicationDisabledException, ReplayLimitExceededException as __ReplayLimitExceededException, ResourceNotFoundException as __ResourceNotFoundException, StaleTagException as __StaleTagException, SubscriptionLimitExceededException as __SubscriptionLimitExceededException, TagLimitExceededException as __TagLimitExceededException, TagPolicyException as __TagPolicyException, ThrottledException as __ThrottledException, TooManyEntriesInBatchRequestException as __TooManyEntriesInBatchRequestException, TopicLimitExceededException as __TopicLimitExceededException, UserErrorException as __UserErrorException, ValidationException as __ValidationException, VerificationException as __VerificationException, } from "../models/index";
247
+ import { AuthorizationErrorException as __AuthorizationErrorException, BatchEntryIdsNotDistinctException as __BatchEntryIdsNotDistinctException, BatchRequestTooLongException as __BatchRequestTooLongException, ConcurrentAccessException as __ConcurrentAccessException, EmptyBatchRequestException as __EmptyBatchRequestException, EndpointDisabledException as __EndpointDisabledException, FilterPolicyLimitExceededException as __FilterPolicyLimitExceededException, InternalErrorException as __InternalErrorException, InvalidBatchEntryIdException as __InvalidBatchEntryIdException, InvalidParameterException as __InvalidParameterException, InvalidParameterValueException as __InvalidParameterValueException, InvalidSecurityException as __InvalidSecurityException, InvalidStateException as __InvalidStateException, KMSAccessDeniedException as __KMSAccessDeniedException, KMSDisabledException as __KMSDisabledException, KMSInvalidStateException as __KMSInvalidStateException, KMSNotFoundException as __KMSNotFoundException, KMSOptInRequired as __KMSOptInRequired, KMSThrottlingException as __KMSThrottlingException, NotFoundException as __NotFoundException, OptedOutException as __OptedOutException, PlatformApplicationDisabledException as __PlatformApplicationDisabledException, ReplayLimitExceededException as __ReplayLimitExceededException, ResourceNotFoundException as __ResourceNotFoundException, StaleTagException as __StaleTagException, SubscriptionLimitExceededException as __SubscriptionLimitExceededException, TagLimitExceededException as __TagLimitExceededException, TagPolicyException as __TagPolicyException, ThrottledException as __ThrottledException, TooManyEntriesInBatchRequestException as __TooManyEntriesInBatchRequestException, TopicLimitExceededException as __TopicLimitExceededException, UserErrorException as __UserErrorException, ValidationException as __ValidationException, VerificationException as __VerificationException, } from "../models/errors";
248
248
  import { SNSServiceException as __SNSServiceException } from "../models/SNSServiceException";
249
249
  export var PhoneNumber = [0, n0, _PN, 8, 0];
250
250
  export var PhoneNumberString = [0, n0, _PNS, 8, 0];
@@ -22,5 +22,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
22
22
  export type { SNSExtensionConfiguration } from "./extensionConfiguration";
23
23
  export * from "./commands";
24
24
  export * from "./pagination";
25
- export * from "./models";
25
+ export * from "./models/enums";
26
+ export * from "./models/errors";
27
+ export type * from "./models/models_0";
26
28
  export { SNSServiceException } from "./models/SNSServiceException";
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const LanguageCodeString: {
6
+ readonly de_DE: "de-DE";
7
+ readonly en_GB: "en-GB";
8
+ readonly en_US: "en-US";
9
+ readonly es_419: "es-419";
10
+ readonly es_ES: "es-ES";
11
+ readonly fr_CA: "fr-CA";
12
+ readonly fr_FR: "fr-FR";
13
+ readonly it_IT: "it-IT";
14
+ readonly jp_JP: "ja-JP";
15
+ readonly kr_KR: "kr-KR";
16
+ readonly pt_BR: "pt-BR";
17
+ readonly zh_CN: "zh-CN";
18
+ readonly zh_TW: "zh-TW";
19
+ };
20
+ /**
21
+ * @public
22
+ */
23
+ export type LanguageCodeString = (typeof LanguageCodeString)[keyof typeof LanguageCodeString];
24
+ /**
25
+ * @public
26
+ * @enum
27
+ */
28
+ export declare const NumberCapability: {
29
+ readonly MMS: "MMS";
30
+ readonly SMS: "SMS";
31
+ readonly VOICE: "VOICE";
32
+ };
33
+ /**
34
+ * @public
35
+ */
36
+ export type NumberCapability = (typeof NumberCapability)[keyof typeof NumberCapability];
37
+ /**
38
+ * @public
39
+ * @enum
40
+ */
41
+ export declare const RouteType: {
42
+ readonly Premium: "Premium";
43
+ readonly Promotional: "Promotional";
44
+ readonly Transactional: "Transactional";
45
+ };
46
+ /**
47
+ * @public
48
+ */
49
+ export type RouteType = (typeof RouteType)[keyof typeof RouteType];
50
+ /**
51
+ * @public
52
+ * @enum
53
+ */
54
+ export declare const SMSSandboxPhoneNumberVerificationStatus: {
55
+ readonly Pending: "Pending";
56
+ readonly Verified: "Verified";
57
+ };
58
+ /**
59
+ * @public
60
+ */
61
+ export type SMSSandboxPhoneNumberVerificationStatus = (typeof SMSSandboxPhoneNumberVerificationStatus)[keyof typeof SMSSandboxPhoneNumberVerificationStatus];