@aws-sdk/client-sns 3.50.0 → 3.53.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/SNSServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +423 -2
  5. package/dist-cjs/protocols/Aws_query.js +468 -1820
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/SNSServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +389 -1
  9. package/dist-es/protocols/Aws_query.js +999 -1917
  10. package/dist-types/SNS.d.ts +1 -1
  11. package/dist-types/commands/PublishCommand.d.ts +1 -1
  12. package/dist-types/index.d.ts +1 -0
  13. package/dist-types/models/SNSServiceException.d.ts +10 -0
  14. package/dist-types/models/models_0.d.ts +218 -131
  15. package/dist-types/ts3.4/SNS.d.ts +205 -0
  16. package/dist-types/ts3.4/SNSClient.d.ts +113 -0
  17. package/dist-types/ts3.4/commands/AddPermissionCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/CheckIfPhoneNumberIsOptedOutCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/ConfirmSubscriptionCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/CreatePlatformApplicationCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/CreatePlatformEndpointCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/CreateSMSSandboxPhoneNumberCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/CreateTopicCommand.d.ts +17 -0
  24. package/dist-types/ts3.4/commands/DeleteEndpointCommand.d.ts +17 -0
  25. package/dist-types/ts3.4/commands/DeletePlatformApplicationCommand.d.ts +17 -0
  26. package/dist-types/ts3.4/commands/DeleteSMSSandboxPhoneNumberCommand.d.ts +17 -0
  27. package/dist-types/ts3.4/commands/DeleteTopicCommand.d.ts +17 -0
  28. package/dist-types/ts3.4/commands/GetEndpointAttributesCommand.d.ts +17 -0
  29. package/dist-types/ts3.4/commands/GetPlatformApplicationAttributesCommand.d.ts +17 -0
  30. package/dist-types/ts3.4/commands/GetSMSAttributesCommand.d.ts +17 -0
  31. package/dist-types/ts3.4/commands/GetSMSSandboxAccountStatusCommand.d.ts +17 -0
  32. package/dist-types/ts3.4/commands/GetSubscriptionAttributesCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/GetTopicAttributesCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/ListEndpointsByPlatformApplicationCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/ListOriginationNumbersCommand.d.ts +17 -0
  36. package/dist-types/ts3.4/commands/ListPhoneNumbersOptedOutCommand.d.ts +17 -0
  37. package/dist-types/ts3.4/commands/ListPlatformApplicationsCommand.d.ts +17 -0
  38. package/dist-types/ts3.4/commands/ListSMSSandboxPhoneNumbersCommand.d.ts +17 -0
  39. package/dist-types/ts3.4/commands/ListSubscriptionsByTopicCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  42. package/dist-types/ts3.4/commands/ListTopicsCommand.d.ts +17 -0
  43. package/dist-types/ts3.4/commands/OptInPhoneNumberCommand.d.ts +17 -0
  44. package/dist-types/ts3.4/commands/PublishBatchCommand.d.ts +17 -0
  45. package/dist-types/ts3.4/commands/PublishCommand.d.ts +17 -0
  46. package/dist-types/ts3.4/commands/RemovePermissionCommand.d.ts +17 -0
  47. package/dist-types/ts3.4/commands/SetEndpointAttributesCommand.d.ts +17 -0
  48. package/dist-types/ts3.4/commands/SetPlatformApplicationAttributesCommand.d.ts +17 -0
  49. package/dist-types/ts3.4/commands/SetSMSAttributesCommand.d.ts +17 -0
  50. package/dist-types/ts3.4/commands/SetSubscriptionAttributesCommand.d.ts +17 -0
  51. package/dist-types/ts3.4/commands/SetTopicAttributesCommand.d.ts +17 -0
  52. package/dist-types/ts3.4/commands/SubscribeCommand.d.ts +17 -0
  53. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  54. package/dist-types/ts3.4/commands/UnsubscribeCommand.d.ts +17 -0
  55. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  56. package/dist-types/ts3.4/commands/VerifySMSSandboxPhoneNumberCommand.d.ts +17 -0
  57. package/dist-types/ts3.4/commands/index.d.ts +40 -0
  58. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  59. package/dist-types/ts3.4/index.d.ts +6 -0
  60. package/dist-types/ts3.4/models/SNSServiceException.d.ts +6 -0
  61. package/dist-types/ts3.4/models/index.d.ts +1 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +1134 -0
  63. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  64. package/dist-types/ts3.4/pagination/ListEndpointsByPlatformApplicationPaginator.d.ts +4 -0
  65. package/dist-types/ts3.4/pagination/ListOriginationNumbersPaginator.d.ts +4 -0
  66. package/dist-types/ts3.4/pagination/ListPhoneNumbersOptedOutPaginator.d.ts +4 -0
  67. package/dist-types/ts3.4/pagination/ListPlatformApplicationsPaginator.d.ts +4 -0
  68. package/dist-types/ts3.4/pagination/ListSMSSandboxPhoneNumbersPaginator.d.ts +4 -0
  69. package/dist-types/ts3.4/pagination/ListSubscriptionsByTopicPaginator.d.ts +4 -0
  70. package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +4 -0
  71. package/dist-types/ts3.4/pagination/ListTopicsPaginator.d.ts +4 -0
  72. package/dist-types/ts3.4/pagination/index.d.ts +9 -0
  73. package/dist-types/ts3.4/protocols/Aws_query.d.ts +122 -0
  74. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  75. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  76. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  77. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  78. package/package.json +33 -33
@@ -388,7 +388,7 @@ export declare class SNS extends SNSClient {
388
388
  * subscribed to the topic. The format of the message depends on the notification protocol
389
389
  * for each subscribed endpoint.</p>
390
390
  * <p>When a <code>messageId</code> is returned, the message is saved and Amazon SNS
391
- * immediately deliverers it to subscribers.</p>
391
+ * immediately delivers it to subscribers.</p>
392
392
  * <p>To use the <code>Publish</code> action for publishing a message to a mobile endpoint,
393
393
  * such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for
394
394
  * the TargetArn parameter. The EndpointArn is returned when making a call with the
@@ -14,7 +14,7 @@ export interface PublishCommandOutput extends PublishResponse, __MetadataBearer
14
14
  * subscribed to the topic. The format of the message depends on the notification protocol
15
15
  * for each subscribed endpoint.</p>
16
16
  * <p>When a <code>messageId</code> is returned, the message is saved and Amazon SNS
17
- * immediately deliverers it to subscribers.</p>
17
+ * immediately delivers it to subscribers.</p>
18
18
  * <p>To use the <code>Publish</code> action for publishing a message to a mobile endpoint,
19
19
  * such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for
20
20
  * the TargetArn parameter. The EndpointArn is returned when making a call with the
@@ -3,3 +3,4 @@ export * from "./SNSClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { SNSServiceException } from "./models/SNSServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from SNS service.
4
+ */
5
+ export declare class SNSServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,4 +1,5 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { SNSServiceException as __BaseException } from "./SNSServiceException";
2
3
  export interface AddPermissionInput {
3
4
  /**
4
5
  * <p>The ARN of the topic whose access control policy you wish to modify.</p>
@@ -29,35 +30,47 @@ export declare namespace AddPermissionInput {
29
30
  /**
30
31
  * <p>Indicates that the user has been denied access to the requested resource.</p>
31
32
  */
32
- export interface AuthorizationErrorException extends __SmithyException, $MetadataBearer {
33
- name: "AuthorizationErrorException";
34
- $fault: "client";
35
- message?: string;
33
+ export declare class AuthorizationErrorException extends __BaseException {
34
+ readonly name: "AuthorizationErrorException";
35
+ readonly $fault: "client";
36
+ /**
37
+ * @internal
38
+ */
39
+ constructor(opts: __ExceptionOptionType<AuthorizationErrorException, __BaseException>);
36
40
  }
37
41
  /**
38
42
  * <p>Indicates an internal service error.</p>
39
43
  */
40
- export interface InternalErrorException extends __SmithyException, $MetadataBearer {
41
- name: "InternalErrorException";
42
- $fault: "server";
43
- message?: string;
44
+ export declare class InternalErrorException extends __BaseException {
45
+ readonly name: "InternalErrorException";
46
+ readonly $fault: "server";
47
+ /**
48
+ * @internal
49
+ */
50
+ constructor(opts: __ExceptionOptionType<InternalErrorException, __BaseException>);
44
51
  }
45
52
  /**
46
53
  * <p>Indicates that a request parameter does not comply with the associated
47
54
  * constraints.</p>
48
55
  */
49
- export interface InvalidParameterException extends __SmithyException, $MetadataBearer {
50
- name: "InvalidParameterException";
51
- $fault: "client";
52
- message?: string;
56
+ export declare class InvalidParameterException extends __BaseException {
57
+ readonly name: "InvalidParameterException";
58
+ readonly $fault: "client";
59
+ /**
60
+ * @internal
61
+ */
62
+ constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
53
63
  }
54
64
  /**
55
65
  * <p>Indicates that the requested resource does not exist.</p>
56
66
  */
57
- export interface NotFoundException extends __SmithyException, $MetadataBearer {
58
- name: "NotFoundException";
59
- $fault: "client";
60
- message?: string;
67
+ export declare class NotFoundException extends __BaseException {
68
+ readonly name: "NotFoundException";
69
+ readonly $fault: "client";
70
+ /**
71
+ * @internal
72
+ */
73
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
61
74
  }
62
75
  /**
63
76
  * <p>The input for the <code>CheckIfPhoneNumberIsOptedOut</code> action.</p>
@@ -104,13 +117,13 @@ export declare namespace CheckIfPhoneNumberIsOptedOutResponse {
104
117
  /**
105
118
  * <p>Indicates that the rate at which requests have been submitted for this action exceeds the limit for your Amazon Web Services account.</p>
106
119
  */
107
- export interface ThrottledException extends __SmithyException, $MetadataBearer {
108
- name: "ThrottledException";
109
- $fault: "client";
120
+ export declare class ThrottledException extends __BaseException {
121
+ readonly name: "ThrottledException";
122
+ readonly $fault: "client";
110
123
  /**
111
- * <p>Throttled request.</p>
124
+ * @internal
112
125
  */
113
- message?: string;
126
+ constructor(opts: __ExceptionOptionType<ThrottledException, __BaseException>);
114
127
  }
115
128
  /**
116
129
  * <p>Input for ConfirmSubscription action.</p>
@@ -158,19 +171,25 @@ export declare namespace ConfirmSubscriptionResponse {
158
171
  * add more filter polices, submit an Amazon SNS Limit Increase case in the Amazon Web Services Support
159
172
  * Center.</p>
160
173
  */
161
- export interface FilterPolicyLimitExceededException extends __SmithyException, $MetadataBearer {
162
- name: "FilterPolicyLimitExceededException";
163
- $fault: "client";
164
- message?: string;
174
+ export declare class FilterPolicyLimitExceededException extends __BaseException {
175
+ readonly name: "FilterPolicyLimitExceededException";
176
+ readonly $fault: "client";
177
+ /**
178
+ * @internal
179
+ */
180
+ constructor(opts: __ExceptionOptionType<FilterPolicyLimitExceededException, __BaseException>);
165
181
  }
166
182
  /**
167
183
  * <p>Indicates that the customer already owns the maximum allowed number of
168
184
  * subscriptions.</p>
169
185
  */
170
- export interface SubscriptionLimitExceededException extends __SmithyException, $MetadataBearer {
171
- name: "SubscriptionLimitExceededException";
172
- $fault: "client";
173
- message?: string;
186
+ export declare class SubscriptionLimitExceededException extends __BaseException {
187
+ readonly name: "SubscriptionLimitExceededException";
188
+ readonly $fault: "client";
189
+ /**
190
+ * @internal
191
+ */
192
+ constructor(opts: __ExceptionOptionType<SubscriptionLimitExceededException, __BaseException>);
174
193
  }
175
194
  /**
176
195
  * <p>Input for CreatePlatformApplication action.</p>
@@ -310,28 +329,37 @@ export declare namespace CreateSMSSandboxPhoneNumberResult {
310
329
  * <p>Indicates that the specified phone number opted out of receiving SMS messages from
311
330
  * your Amazon Web Services account. You can't send SMS messages to phone numbers that opt out.</p>
312
331
  */
313
- export interface OptedOutException extends __SmithyException, $MetadataBearer {
314
- name: "OptedOutException";
315
- $fault: "client";
316
- message?: string;
332
+ export declare class OptedOutException extends __BaseException {
333
+ readonly name: "OptedOutException";
334
+ readonly $fault: "client";
335
+ /**
336
+ * @internal
337
+ */
338
+ constructor(opts: __ExceptionOptionType<OptedOutException, __BaseException>);
317
339
  }
318
340
  /**
319
341
  * <p>Indicates that a request parameter does not comply with the associated
320
342
  * constraints.</p>
321
343
  */
322
- export interface UserErrorException extends __SmithyException, $MetadataBearer {
323
- name: "UserErrorException";
324
- $fault: "client";
325
- message?: string;
344
+ export declare class UserErrorException extends __BaseException {
345
+ readonly name: "UserErrorException";
346
+ readonly $fault: "client";
347
+ /**
348
+ * @internal
349
+ */
350
+ constructor(opts: __ExceptionOptionType<UserErrorException, __BaseException>);
326
351
  }
327
352
  /**
328
353
  * <p>Can't perform multiple operations on a tag simultaneously. Perform the operations
329
354
  * sequentially.</p>
330
355
  */
331
- export interface ConcurrentAccessException extends __SmithyException, $MetadataBearer {
332
- name: "ConcurrentAccessException";
333
- $fault: "client";
334
- message?: string;
356
+ export declare class ConcurrentAccessException extends __BaseException {
357
+ readonly name: "ConcurrentAccessException";
358
+ readonly $fault: "client";
359
+ /**
360
+ * @internal
361
+ */
362
+ constructor(opts: __ExceptionOptionType<ConcurrentAccessException, __BaseException>);
335
363
  }
336
364
  /**
337
365
  * <p>The list of tags to be added to the specified topic.</p>
@@ -474,44 +502,59 @@ export declare namespace CreateTopicResponse {
474
502
  * <p>The credential signature isn't valid. You must use an HTTPS endpoint and sign your
475
503
  * request using Signature Version 4.</p>
476
504
  */
477
- export interface InvalidSecurityException extends __SmithyException, $MetadataBearer {
478
- name: "InvalidSecurityException";
479
- $fault: "client";
480
- message?: string;
505
+ export declare class InvalidSecurityException extends __BaseException {
506
+ readonly name: "InvalidSecurityException";
507
+ readonly $fault: "client";
508
+ /**
509
+ * @internal
510
+ */
511
+ constructor(opts: __ExceptionOptionType<InvalidSecurityException, __BaseException>);
481
512
  }
482
513
  /**
483
514
  * <p>A tag has been added to a resource with the same ARN as a deleted resource. Wait a
484
515
  * short while and then retry the operation.</p>
485
516
  */
486
- export interface StaleTagException extends __SmithyException, $MetadataBearer {
487
- name: "StaleTagException";
488
- $fault: "client";
489
- message?: string;
517
+ export declare class StaleTagException extends __BaseException {
518
+ readonly name: "StaleTagException";
519
+ readonly $fault: "client";
520
+ /**
521
+ * @internal
522
+ */
523
+ constructor(opts: __ExceptionOptionType<StaleTagException, __BaseException>);
490
524
  }
491
525
  /**
492
526
  * <p>Can't add more than 50 tags to a topic.</p>
493
527
  */
494
- export interface TagLimitExceededException extends __SmithyException, $MetadataBearer {
495
- name: "TagLimitExceededException";
496
- $fault: "client";
497
- message?: string;
528
+ export declare class TagLimitExceededException extends __BaseException {
529
+ readonly name: "TagLimitExceededException";
530
+ readonly $fault: "client";
531
+ /**
532
+ * @internal
533
+ */
534
+ constructor(opts: __ExceptionOptionType<TagLimitExceededException, __BaseException>);
498
535
  }
499
536
  /**
500
537
  * <p>The request doesn't comply with the IAM tag policy. Correct your request and then
501
538
  * retry it.</p>
502
539
  */
503
- export interface TagPolicyException extends __SmithyException, $MetadataBearer {
504
- name: "TagPolicyException";
505
- $fault: "client";
506
- message?: string;
540
+ export declare class TagPolicyException extends __BaseException {
541
+ readonly name: "TagPolicyException";
542
+ readonly $fault: "client";
543
+ /**
544
+ * @internal
545
+ */
546
+ constructor(opts: __ExceptionOptionType<TagPolicyException, __BaseException>);
507
547
  }
508
548
  /**
509
549
  * <p>Indicates that the customer already owns the maximum allowed number of topics.</p>
510
550
  */
511
- export interface TopicLimitExceededException extends __SmithyException, $MetadataBearer {
512
- name: "TopicLimitExceededException";
513
- $fault: "client";
514
- message?: string;
551
+ export declare class TopicLimitExceededException extends __BaseException {
552
+ readonly name: "TopicLimitExceededException";
553
+ readonly $fault: "client";
554
+ /**
555
+ * @internal
556
+ */
557
+ constructor(opts: __ExceptionOptionType<TopicLimitExceededException, __BaseException>);
515
558
  }
516
559
  /**
517
560
  * <p>Input for DeleteEndpoint action.</p>
@@ -567,10 +610,13 @@ export declare namespace DeleteSMSSandboxPhoneNumberResult {
567
610
  * <p>Can’t perform the action on the specified resource. Make sure that the resource
568
611
  * exists.</p>
569
612
  */
570
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
571
- name: "ResourceNotFoundException";
572
- $fault: "client";
573
- message?: string;
613
+ export declare class ResourceNotFoundException extends __BaseException {
614
+ readonly name: "ResourceNotFoundException";
615
+ readonly $fault: "client";
616
+ /**
617
+ * @internal
618
+ */
619
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
574
620
  }
575
621
  export interface DeleteTopicInput {
576
622
  /**
@@ -1136,10 +1182,14 @@ export declare namespace ListOriginationNumbersResult {
1136
1182
  /**
1137
1183
  * <p>Indicates that a parameter in the request is invalid.</p>
1138
1184
  */
1139
- export interface ValidationException extends __SmithyException, $MetadataBearer {
1140
- name: "ValidationException";
1141
- $fault: "client";
1185
+ export declare class ValidationException extends __BaseException {
1186
+ readonly name: "ValidationException";
1187
+ readonly $fault: "client";
1142
1188
  Message: string | undefined;
1189
+ /**
1190
+ * @internal
1191
+ */
1192
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
1143
1193
  }
1144
1194
  /**
1145
1195
  * <p>The input for the <code>ListPhoneNumbersOptedOut</code> action.</p>
@@ -1509,42 +1559,48 @@ export declare namespace OptInPhoneNumberResponse {
1509
1559
  /**
1510
1560
  * <p>Exception error indicating endpoint disabled.</p>
1511
1561
  */
1512
- export interface EndpointDisabledException extends __SmithyException, $MetadataBearer {
1513
- name: "EndpointDisabledException";
1514
- $fault: "client";
1562
+ export declare class EndpointDisabledException extends __BaseException {
1563
+ readonly name: "EndpointDisabledException";
1564
+ readonly $fault: "client";
1515
1565
  /**
1516
- * <p>Message for endpoint disabled.</p>
1566
+ * @internal
1517
1567
  */
1518
- message?: string;
1568
+ constructor(opts: __ExceptionOptionType<EndpointDisabledException, __BaseException>);
1519
1569
  }
1520
1570
  /**
1521
1571
  * <p>Indicates that a request parameter does not comply with the associated constraints.</p>
1522
1572
  */
1523
- export interface InvalidParameterValueException extends __SmithyException, $MetadataBearer {
1524
- name: "InvalidParameterValueException";
1525
- $fault: "client";
1573
+ export declare class InvalidParameterValueException extends __BaseException {
1574
+ readonly name: "InvalidParameterValueException";
1575
+ readonly $fault: "client";
1526
1576
  /**
1527
- * <p>The parameter of an entry in a request doesn't abide by the specification. </p>
1577
+ * @internal
1528
1578
  */
1529
- message?: string;
1579
+ constructor(opts: __ExceptionOptionType<InvalidParameterValueException, __BaseException>);
1530
1580
  }
1531
1581
  /**
1532
1582
  * <p>The ciphertext references a key that doesn't exist or that you don't have access
1533
1583
  * to.</p>
1534
1584
  */
1535
- export interface KMSAccessDeniedException extends __SmithyException, $MetadataBearer {
1536
- name: "KMSAccessDeniedException";
1537
- $fault: "client";
1538
- message?: string;
1585
+ export declare class KMSAccessDeniedException extends __BaseException {
1586
+ readonly name: "KMSAccessDeniedException";
1587
+ readonly $fault: "client";
1588
+ /**
1589
+ * @internal
1590
+ */
1591
+ constructor(opts: __ExceptionOptionType<KMSAccessDeniedException, __BaseException>);
1539
1592
  }
1540
1593
  /**
1541
1594
  * <p>The request was rejected because the specified customer master key (CMK) isn't
1542
1595
  * enabled.</p>
1543
1596
  */
1544
- export interface KMSDisabledException extends __SmithyException, $MetadataBearer {
1545
- name: "KMSDisabledException";
1546
- $fault: "client";
1547
- message?: string;
1597
+ export declare class KMSDisabledException extends __BaseException {
1598
+ readonly name: "KMSDisabledException";
1599
+ readonly $fault: "client";
1600
+ /**
1601
+ * @internal
1602
+ */
1603
+ constructor(opts: __ExceptionOptionType<KMSDisabledException, __BaseException>);
1548
1604
  }
1549
1605
  /**
1550
1606
  * <p>The request was rejected because the state of the specified resource isn't valid for
@@ -1552,27 +1608,36 @@ export interface KMSDisabledException extends __SmithyException, $MetadataBearer
1552
1608
  * Customer Master Key</a> in the <i>Key Management Service Developer
1553
1609
  * Guide</i>.</p>
1554
1610
  */
1555
- export interface KMSInvalidStateException extends __SmithyException, $MetadataBearer {
1556
- name: "KMSInvalidStateException";
1557
- $fault: "client";
1558
- message?: string;
1611
+ export declare class KMSInvalidStateException extends __BaseException {
1612
+ readonly name: "KMSInvalidStateException";
1613
+ readonly $fault: "client";
1614
+ /**
1615
+ * @internal
1616
+ */
1617
+ constructor(opts: __ExceptionOptionType<KMSInvalidStateException, __BaseException>);
1559
1618
  }
1560
1619
  /**
1561
1620
  * <p>The request was rejected because the specified entity or resource can't be
1562
1621
  * found.</p>
1563
1622
  */
1564
- export interface KMSNotFoundException extends __SmithyException, $MetadataBearer {
1565
- name: "KMSNotFoundException";
1566
- $fault: "client";
1567
- message?: string;
1623
+ export declare class KMSNotFoundException extends __BaseException {
1624
+ readonly name: "KMSNotFoundException";
1625
+ readonly $fault: "client";
1626
+ /**
1627
+ * @internal
1628
+ */
1629
+ constructor(opts: __ExceptionOptionType<KMSNotFoundException, __BaseException>);
1568
1630
  }
1569
1631
  /**
1570
1632
  * <p>The Amazon Web Services access key ID needs a subscription for the service.</p>
1571
1633
  */
1572
- export interface KMSOptInRequired extends __SmithyException, $MetadataBearer {
1573
- name: "KMSOptInRequired";
1574
- $fault: "client";
1575
- message?: string;
1634
+ export declare class KMSOptInRequired extends __BaseException {
1635
+ readonly name: "KMSOptInRequired";
1636
+ readonly $fault: "client";
1637
+ /**
1638
+ * @internal
1639
+ */
1640
+ constructor(opts: __ExceptionOptionType<KMSOptInRequired, __BaseException>);
1576
1641
  }
1577
1642
  /**
1578
1643
  * <p>The request was denied due to request throttling. For more information about
@@ -1580,21 +1645,24 @@ export interface KMSOptInRequired extends __SmithyException, $MetadataBearer {
1580
1645
  * the <i>Key Management Service Developer Guide.</i>
1581
1646
  * </p>
1582
1647
  */
1583
- export interface KMSThrottlingException extends __SmithyException, $MetadataBearer {
1584
- name: "KMSThrottlingException";
1585
- $fault: "client";
1586
- message?: string;
1648
+ export declare class KMSThrottlingException extends __BaseException {
1649
+ readonly name: "KMSThrottlingException";
1650
+ readonly $fault: "client";
1651
+ /**
1652
+ * @internal
1653
+ */
1654
+ constructor(opts: __ExceptionOptionType<KMSThrottlingException, __BaseException>);
1587
1655
  }
1588
1656
  /**
1589
1657
  * <p>Exception error indicating platform application disabled.</p>
1590
1658
  */
1591
- export interface PlatformApplicationDisabledException extends __SmithyException, $MetadataBearer {
1592
- name: "PlatformApplicationDisabledException";
1593
- $fault: "client";
1659
+ export declare class PlatformApplicationDisabledException extends __BaseException {
1660
+ readonly name: "PlatformApplicationDisabledException";
1661
+ readonly $fault: "client";
1594
1662
  /**
1595
- * <p>Message for platform application disabled.</p>
1663
+ * @internal
1596
1664
  */
1597
- message?: string;
1665
+ constructor(opts: __ExceptionOptionType<PlatformApplicationDisabledException, __BaseException>);
1598
1666
  }
1599
1667
  /**
1600
1668
  * <p>The user-specified message attribute value. For string data types, the value attribute
@@ -1815,34 +1883,46 @@ export declare namespace PublishResponse {
1815
1883
  /**
1816
1884
  * <p>Two or more batch entries in the request have the same <code>Id</code>.</p>
1817
1885
  */
1818
- export interface BatchEntryIdsNotDistinctException extends __SmithyException, $MetadataBearer {
1819
- name: "BatchEntryIdsNotDistinctException";
1820
- $fault: "client";
1821
- message?: string;
1886
+ export declare class BatchEntryIdsNotDistinctException extends __BaseException {
1887
+ readonly name: "BatchEntryIdsNotDistinctException";
1888
+ readonly $fault: "client";
1889
+ /**
1890
+ * @internal
1891
+ */
1892
+ constructor(opts: __ExceptionOptionType<BatchEntryIdsNotDistinctException, __BaseException>);
1822
1893
  }
1823
1894
  /**
1824
1895
  * <p>The length of all the batch messages put together is more than the limit.</p>
1825
1896
  */
1826
- export interface BatchRequestTooLongException extends __SmithyException, $MetadataBearer {
1827
- name: "BatchRequestTooLongException";
1828
- $fault: "client";
1829
- message?: string;
1897
+ export declare class BatchRequestTooLongException extends __BaseException {
1898
+ readonly name: "BatchRequestTooLongException";
1899
+ readonly $fault: "client";
1900
+ /**
1901
+ * @internal
1902
+ */
1903
+ constructor(opts: __ExceptionOptionType<BatchRequestTooLongException, __BaseException>);
1830
1904
  }
1831
1905
  /**
1832
1906
  * <p>The batch request doesn't contain any entries.</p>
1833
1907
  */
1834
- export interface EmptyBatchRequestException extends __SmithyException, $MetadataBearer {
1835
- name: "EmptyBatchRequestException";
1836
- $fault: "client";
1837
- message?: string;
1908
+ export declare class EmptyBatchRequestException extends __BaseException {
1909
+ readonly name: "EmptyBatchRequestException";
1910
+ readonly $fault: "client";
1911
+ /**
1912
+ * @internal
1913
+ */
1914
+ constructor(opts: __ExceptionOptionType<EmptyBatchRequestException, __BaseException>);
1838
1915
  }
1839
1916
  /**
1840
1917
  * <p>The <code>Id</code> of a batch entry in a batch request doesn't abide by the specification. </p>
1841
1918
  */
1842
- export interface InvalidBatchEntryIdException extends __SmithyException, $MetadataBearer {
1843
- name: "InvalidBatchEntryIdException";
1844
- $fault: "client";
1845
- message?: string;
1919
+ export declare class InvalidBatchEntryIdException extends __BaseException {
1920
+ readonly name: "InvalidBatchEntryIdException";
1921
+ readonly $fault: "client";
1922
+ /**
1923
+ * @internal
1924
+ */
1925
+ constructor(opts: __ExceptionOptionType<InvalidBatchEntryIdException, __BaseException>);
1846
1926
  }
1847
1927
  /**
1848
1928
  * <p>Contains the details of a single Amazon SNS message along with an <code>Id</code> that identifies a message within the batch. </p>
@@ -2035,10 +2115,13 @@ export declare namespace PublishBatchResponse {
2035
2115
  /**
2036
2116
  * <p>The batch request contains more entries than permissible.</p>
2037
2117
  */
2038
- export interface TooManyEntriesInBatchRequestException extends __SmithyException, $MetadataBearer {
2039
- name: "TooManyEntriesInBatchRequestException";
2040
- $fault: "client";
2041
- message?: string;
2118
+ export declare class TooManyEntriesInBatchRequestException extends __BaseException {
2119
+ readonly name: "TooManyEntriesInBatchRequestException";
2120
+ readonly $fault: "client";
2121
+ /**
2122
+ * @internal
2123
+ */
2124
+ constructor(opts: __ExceptionOptionType<TooManyEntriesInBatchRequestException, __BaseException>);
2042
2125
  }
2043
2126
  /**
2044
2127
  * <p>Input for RemovePermission action.</p>
@@ -2738,14 +2821,18 @@ export declare namespace UntagResourceResponse {
2738
2821
  /**
2739
2822
  * <p>Indicates that the one-time password (OTP) used for verification is invalid.</p>
2740
2823
  */
2741
- export interface VerificationException extends __SmithyException, $MetadataBearer {
2742
- name: "VerificationException";
2743
- $fault: "client";
2824
+ export declare class VerificationException extends __BaseException {
2825
+ readonly name: "VerificationException";
2826
+ readonly $fault: "client";
2744
2827
  Message: string | undefined;
2745
2828
  /**
2746
2829
  * <p>The status of the verification error.</p>
2747
2830
  */
2748
2831
  Status: string | undefined;
2832
+ /**
2833
+ * @internal
2834
+ */
2835
+ constructor(opts: __ExceptionOptionType<VerificationException, __BaseException>);
2749
2836
  }
2750
2837
  export interface VerifySMSSandboxPhoneNumberInput {
2751
2838
  /**