@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
package/CHANGELOG.md CHANGED
@@ -3,6 +3,36 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
18
+
19
+
20
+ ### Features
21
+
22
+ * **clients:** update clients as of 2022/02/18 ([#3335](https://github.com/aws/aws-sdk-js-v3/issues/3335)) ([717b06f](https://github.com/aws/aws-sdk-js-v3/commit/717b06fc43e9876a6f8040147b75ad5da38b1e0f))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-sns
31
+
32
+
33
+
34
+
35
+
6
36
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
37
 
8
38
  **Note:** Version bump only for package @aws-sdk/client-sns
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SNSServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./SNS"), exports);
5
6
  tslib_1.__exportStar(require("./SNSClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var SNSServiceException_1 = require("./models/SNSServiceException");
11
+ Object.defineProperty(exports, "SNSServiceException", { enumerable: true, get: function () { return SNSServiceException_1.SNSServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SNSServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class SNSServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, SNSServiceException.prototype);
9
+ }
10
+ }
11
+ exports.SNSServiceException = SNSServiceException;
@@ -1,13 +1,67 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ListSubscriptionsInput = exports.ListSMSSandboxPhoneNumbersResult = exports.SMSSandboxPhoneNumber = exports.SMSSandboxPhoneNumberVerificationStatus = exports.ListSMSSandboxPhoneNumbersInput = exports.ListPlatformApplicationsResponse = exports.PlatformApplication = exports.ListPlatformApplicationsInput = exports.ListPhoneNumbersOptedOutResponse = exports.ListPhoneNumbersOptedOutInput = exports.ListOriginationNumbersResult = exports.PhoneNumberInformation = exports.RouteType = exports.NumberCapability = exports.ListOriginationNumbersRequest = exports.ListEndpointsByPlatformApplicationResponse = exports.Endpoint = exports.ListEndpointsByPlatformApplicationInput = exports.GetTopicAttributesResponse = exports.GetTopicAttributesInput = exports.GetSubscriptionAttributesResponse = exports.GetSubscriptionAttributesInput = exports.GetSMSSandboxAccountStatusResult = exports.GetSMSSandboxAccountStatusInput = exports.GetSMSAttributesResponse = exports.GetSMSAttributesInput = exports.GetPlatformApplicationAttributesResponse = exports.GetPlatformApplicationAttributesInput = exports.GetEndpointAttributesResponse = exports.GetEndpointAttributesInput = exports.DeleteTopicInput = exports.DeleteSMSSandboxPhoneNumberResult = exports.DeleteSMSSandboxPhoneNumberInput = exports.DeletePlatformApplicationInput = exports.DeleteEndpointInput = exports.CreateTopicResponse = exports.CreateTopicInput = exports.Tag = exports.CreateSMSSandboxPhoneNumberResult = exports.CreateSMSSandboxPhoneNumberInput = exports.LanguageCodeString = exports.CreatePlatformEndpointInput = exports.CreateEndpointResponse = exports.CreatePlatformApplicationResponse = exports.CreatePlatformApplicationInput = exports.ConfirmSubscriptionResponse = exports.ConfirmSubscriptionInput = exports.CheckIfPhoneNumberIsOptedOutResponse = exports.CheckIfPhoneNumberIsOptedOutInput = exports.AddPermissionInput = void 0;
4
- exports.VerifySMSSandboxPhoneNumberResult = exports.VerifySMSSandboxPhoneNumberInput = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.UnsubscribeInput = exports.TagResourceResponse = exports.TagResourceRequest = exports.SubscribeResponse = exports.SubscribeInput = exports.SetTopicAttributesInput = exports.SetSubscriptionAttributesInput = exports.SetSMSAttributesResponse = exports.SetSMSAttributesInput = exports.SetPlatformApplicationAttributesInput = exports.SetEndpointAttributesInput = exports.RemovePermissionInput = exports.PublishBatchResponse = exports.PublishBatchResultEntry = exports.BatchResultErrorEntry = exports.PublishBatchInput = exports.PublishBatchRequestEntry = exports.PublishResponse = exports.PublishInput = exports.MessageAttributeValue = exports.OptInPhoneNumberResponse = exports.OptInPhoneNumberInput = exports.ListTopicsResponse = exports.Topic = exports.ListTopicsInput = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSubscriptionsByTopicResponse = exports.ListSubscriptionsByTopicInput = exports.ListSubscriptionsResponse = exports.Subscription = void 0;
3
+ exports.Endpoint = exports.ListEndpointsByPlatformApplicationInput = exports.GetTopicAttributesResponse = exports.GetTopicAttributesInput = exports.GetSubscriptionAttributesResponse = exports.GetSubscriptionAttributesInput = exports.GetSMSSandboxAccountStatusResult = exports.GetSMSSandboxAccountStatusInput = exports.GetSMSAttributesResponse = exports.GetSMSAttributesInput = exports.GetPlatformApplicationAttributesResponse = exports.GetPlatformApplicationAttributesInput = exports.GetEndpointAttributesResponse = exports.GetEndpointAttributesInput = exports.DeleteTopicInput = exports.ResourceNotFoundException = exports.DeleteSMSSandboxPhoneNumberResult = exports.DeleteSMSSandboxPhoneNumberInput = exports.DeletePlatformApplicationInput = exports.DeleteEndpointInput = exports.TopicLimitExceededException = exports.TagPolicyException = exports.TagLimitExceededException = exports.StaleTagException = exports.InvalidSecurityException = exports.CreateTopicResponse = exports.CreateTopicInput = exports.Tag = exports.ConcurrentAccessException = exports.UserErrorException = exports.OptedOutException = exports.CreateSMSSandboxPhoneNumberResult = exports.CreateSMSSandboxPhoneNumberInput = exports.LanguageCodeString = exports.CreatePlatformEndpointInput = exports.CreateEndpointResponse = exports.CreatePlatformApplicationResponse = exports.CreatePlatformApplicationInput = exports.SubscriptionLimitExceededException = exports.FilterPolicyLimitExceededException = exports.ConfirmSubscriptionResponse = exports.ConfirmSubscriptionInput = exports.ThrottledException = exports.CheckIfPhoneNumberIsOptedOutResponse = exports.CheckIfPhoneNumberIsOptedOutInput = exports.NotFoundException = exports.InvalidParameterException = exports.InternalErrorException = exports.AuthorizationErrorException = exports.AddPermissionInput = void 0;
4
+ exports.TooManyEntriesInBatchRequestException = exports.PublishBatchResponse = exports.PublishBatchResultEntry = exports.BatchResultErrorEntry = exports.PublishBatchInput = exports.PublishBatchRequestEntry = exports.InvalidBatchEntryIdException = exports.EmptyBatchRequestException = exports.BatchRequestTooLongException = exports.BatchEntryIdsNotDistinctException = exports.PublishResponse = exports.PublishInput = exports.MessageAttributeValue = exports.PlatformApplicationDisabledException = exports.KMSThrottlingException = exports.KMSOptInRequired = exports.KMSNotFoundException = exports.KMSInvalidStateException = exports.KMSDisabledException = exports.KMSAccessDeniedException = exports.InvalidParameterValueException = exports.EndpointDisabledException = exports.OptInPhoneNumberResponse = exports.OptInPhoneNumberInput = exports.ListTopicsResponse = exports.Topic = exports.ListTopicsInput = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSubscriptionsByTopicResponse = exports.ListSubscriptionsByTopicInput = exports.ListSubscriptionsResponse = exports.Subscription = exports.ListSubscriptionsInput = exports.ListSMSSandboxPhoneNumbersResult = exports.SMSSandboxPhoneNumber = exports.SMSSandboxPhoneNumberVerificationStatus = exports.ListSMSSandboxPhoneNumbersInput = exports.ListPlatformApplicationsResponse = exports.PlatformApplication = exports.ListPlatformApplicationsInput = exports.ListPhoneNumbersOptedOutResponse = exports.ListPhoneNumbersOptedOutInput = exports.ValidationException = exports.ListOriginationNumbersResult = exports.PhoneNumberInformation = exports.RouteType = exports.NumberCapability = exports.ListOriginationNumbersRequest = exports.ListEndpointsByPlatformApplicationResponse = void 0;
5
+ exports.VerifySMSSandboxPhoneNumberResult = exports.VerifySMSSandboxPhoneNumberInput = exports.VerificationException = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.UnsubscribeInput = exports.TagResourceResponse = exports.TagResourceRequest = exports.SubscribeResponse = exports.SubscribeInput = exports.SetTopicAttributesInput = exports.SetSubscriptionAttributesInput = exports.SetSMSAttributesResponse = exports.SetSMSAttributesInput = exports.SetPlatformApplicationAttributesInput = exports.SetEndpointAttributesInput = exports.RemovePermissionInput = void 0;
6
+ const SNSServiceException_1 = require("./SNSServiceException");
5
7
  var AddPermissionInput;
6
8
  (function (AddPermissionInput) {
7
9
  AddPermissionInput.filterSensitiveLog = (obj) => ({
8
10
  ...obj,
9
11
  });
10
12
  })(AddPermissionInput = exports.AddPermissionInput || (exports.AddPermissionInput = {}));
13
+ class AuthorizationErrorException extends SNSServiceException_1.SNSServiceException {
14
+ constructor(opts) {
15
+ super({
16
+ name: "AuthorizationErrorException",
17
+ $fault: "client",
18
+ ...opts,
19
+ });
20
+ this.name = "AuthorizationErrorException";
21
+ this.$fault = "client";
22
+ Object.setPrototypeOf(this, AuthorizationErrorException.prototype);
23
+ }
24
+ }
25
+ exports.AuthorizationErrorException = AuthorizationErrorException;
26
+ class InternalErrorException extends SNSServiceException_1.SNSServiceException {
27
+ constructor(opts) {
28
+ super({
29
+ name: "InternalErrorException",
30
+ $fault: "server",
31
+ ...opts,
32
+ });
33
+ this.name = "InternalErrorException";
34
+ this.$fault = "server";
35
+ Object.setPrototypeOf(this, InternalErrorException.prototype);
36
+ }
37
+ }
38
+ exports.InternalErrorException = InternalErrorException;
39
+ class InvalidParameterException extends SNSServiceException_1.SNSServiceException {
40
+ constructor(opts) {
41
+ super({
42
+ name: "InvalidParameterException",
43
+ $fault: "client",
44
+ ...opts,
45
+ });
46
+ this.name = "InvalidParameterException";
47
+ this.$fault = "client";
48
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
49
+ }
50
+ }
51
+ exports.InvalidParameterException = InvalidParameterException;
52
+ class NotFoundException extends SNSServiceException_1.SNSServiceException {
53
+ constructor(opts) {
54
+ super({
55
+ name: "NotFoundException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ this.name = "NotFoundException";
60
+ this.$fault = "client";
61
+ Object.setPrototypeOf(this, NotFoundException.prototype);
62
+ }
63
+ }
64
+ exports.NotFoundException = NotFoundException;
11
65
  var CheckIfPhoneNumberIsOptedOutInput;
12
66
  (function (CheckIfPhoneNumberIsOptedOutInput) {
13
67
  CheckIfPhoneNumberIsOptedOutInput.filterSensitiveLog = (obj) => ({
@@ -20,6 +74,19 @@ var CheckIfPhoneNumberIsOptedOutResponse;
20
74
  ...obj,
21
75
  });
22
76
  })(CheckIfPhoneNumberIsOptedOutResponse = exports.CheckIfPhoneNumberIsOptedOutResponse || (exports.CheckIfPhoneNumberIsOptedOutResponse = {}));
77
+ class ThrottledException extends SNSServiceException_1.SNSServiceException {
78
+ constructor(opts) {
79
+ super({
80
+ name: "ThrottledException",
81
+ $fault: "client",
82
+ ...opts,
83
+ });
84
+ this.name = "ThrottledException";
85
+ this.$fault = "client";
86
+ Object.setPrototypeOf(this, ThrottledException.prototype);
87
+ }
88
+ }
89
+ exports.ThrottledException = ThrottledException;
23
90
  var ConfirmSubscriptionInput;
24
91
  (function (ConfirmSubscriptionInput) {
25
92
  ConfirmSubscriptionInput.filterSensitiveLog = (obj) => ({
@@ -32,6 +99,32 @@ var ConfirmSubscriptionResponse;
32
99
  ...obj,
33
100
  });
34
101
  })(ConfirmSubscriptionResponse = exports.ConfirmSubscriptionResponse || (exports.ConfirmSubscriptionResponse = {}));
102
+ class FilterPolicyLimitExceededException extends SNSServiceException_1.SNSServiceException {
103
+ constructor(opts) {
104
+ super({
105
+ name: "FilterPolicyLimitExceededException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ this.name = "FilterPolicyLimitExceededException";
110
+ this.$fault = "client";
111
+ Object.setPrototypeOf(this, FilterPolicyLimitExceededException.prototype);
112
+ }
113
+ }
114
+ exports.FilterPolicyLimitExceededException = FilterPolicyLimitExceededException;
115
+ class SubscriptionLimitExceededException extends SNSServiceException_1.SNSServiceException {
116
+ constructor(opts) {
117
+ super({
118
+ name: "SubscriptionLimitExceededException",
119
+ $fault: "client",
120
+ ...opts,
121
+ });
122
+ this.name = "SubscriptionLimitExceededException";
123
+ this.$fault = "client";
124
+ Object.setPrototypeOf(this, SubscriptionLimitExceededException.prototype);
125
+ }
126
+ }
127
+ exports.SubscriptionLimitExceededException = SubscriptionLimitExceededException;
35
128
  var CreatePlatformApplicationInput;
36
129
  (function (CreatePlatformApplicationInput) {
37
130
  CreatePlatformApplicationInput.filterSensitiveLog = (obj) => ({
@@ -84,6 +177,45 @@ var CreateSMSSandboxPhoneNumberResult;
84
177
  ...obj,
85
178
  });
86
179
  })(CreateSMSSandboxPhoneNumberResult = exports.CreateSMSSandboxPhoneNumberResult || (exports.CreateSMSSandboxPhoneNumberResult = {}));
180
+ class OptedOutException extends SNSServiceException_1.SNSServiceException {
181
+ constructor(opts) {
182
+ super({
183
+ name: "OptedOutException",
184
+ $fault: "client",
185
+ ...opts,
186
+ });
187
+ this.name = "OptedOutException";
188
+ this.$fault = "client";
189
+ Object.setPrototypeOf(this, OptedOutException.prototype);
190
+ }
191
+ }
192
+ exports.OptedOutException = OptedOutException;
193
+ class UserErrorException extends SNSServiceException_1.SNSServiceException {
194
+ constructor(opts) {
195
+ super({
196
+ name: "UserErrorException",
197
+ $fault: "client",
198
+ ...opts,
199
+ });
200
+ this.name = "UserErrorException";
201
+ this.$fault = "client";
202
+ Object.setPrototypeOf(this, UserErrorException.prototype);
203
+ }
204
+ }
205
+ exports.UserErrorException = UserErrorException;
206
+ class ConcurrentAccessException extends SNSServiceException_1.SNSServiceException {
207
+ constructor(opts) {
208
+ super({
209
+ name: "ConcurrentAccessException",
210
+ $fault: "client",
211
+ ...opts,
212
+ });
213
+ this.name = "ConcurrentAccessException";
214
+ this.$fault = "client";
215
+ Object.setPrototypeOf(this, ConcurrentAccessException.prototype);
216
+ }
217
+ }
218
+ exports.ConcurrentAccessException = ConcurrentAccessException;
87
219
  var Tag;
88
220
  (function (Tag) {
89
221
  Tag.filterSensitiveLog = (obj) => ({
@@ -102,6 +234,71 @@ var CreateTopicResponse;
102
234
  ...obj,
103
235
  });
104
236
  })(CreateTopicResponse = exports.CreateTopicResponse || (exports.CreateTopicResponse = {}));
237
+ class InvalidSecurityException extends SNSServiceException_1.SNSServiceException {
238
+ constructor(opts) {
239
+ super({
240
+ name: "InvalidSecurityException",
241
+ $fault: "client",
242
+ ...opts,
243
+ });
244
+ this.name = "InvalidSecurityException";
245
+ this.$fault = "client";
246
+ Object.setPrototypeOf(this, InvalidSecurityException.prototype);
247
+ }
248
+ }
249
+ exports.InvalidSecurityException = InvalidSecurityException;
250
+ class StaleTagException extends SNSServiceException_1.SNSServiceException {
251
+ constructor(opts) {
252
+ super({
253
+ name: "StaleTagException",
254
+ $fault: "client",
255
+ ...opts,
256
+ });
257
+ this.name = "StaleTagException";
258
+ this.$fault = "client";
259
+ Object.setPrototypeOf(this, StaleTagException.prototype);
260
+ }
261
+ }
262
+ exports.StaleTagException = StaleTagException;
263
+ class TagLimitExceededException extends SNSServiceException_1.SNSServiceException {
264
+ constructor(opts) {
265
+ super({
266
+ name: "TagLimitExceededException",
267
+ $fault: "client",
268
+ ...opts,
269
+ });
270
+ this.name = "TagLimitExceededException";
271
+ this.$fault = "client";
272
+ Object.setPrototypeOf(this, TagLimitExceededException.prototype);
273
+ }
274
+ }
275
+ exports.TagLimitExceededException = TagLimitExceededException;
276
+ class TagPolicyException extends SNSServiceException_1.SNSServiceException {
277
+ constructor(opts) {
278
+ super({
279
+ name: "TagPolicyException",
280
+ $fault: "client",
281
+ ...opts,
282
+ });
283
+ this.name = "TagPolicyException";
284
+ this.$fault = "client";
285
+ Object.setPrototypeOf(this, TagPolicyException.prototype);
286
+ }
287
+ }
288
+ exports.TagPolicyException = TagPolicyException;
289
+ class TopicLimitExceededException extends SNSServiceException_1.SNSServiceException {
290
+ constructor(opts) {
291
+ super({
292
+ name: "TopicLimitExceededException",
293
+ $fault: "client",
294
+ ...opts,
295
+ });
296
+ this.name = "TopicLimitExceededException";
297
+ this.$fault = "client";
298
+ Object.setPrototypeOf(this, TopicLimitExceededException.prototype);
299
+ }
300
+ }
301
+ exports.TopicLimitExceededException = TopicLimitExceededException;
105
302
  var DeleteEndpointInput;
106
303
  (function (DeleteEndpointInput) {
107
304
  DeleteEndpointInput.filterSensitiveLog = (obj) => ({
@@ -126,6 +323,19 @@ var DeleteSMSSandboxPhoneNumberResult;
126
323
  ...obj,
127
324
  });
128
325
  })(DeleteSMSSandboxPhoneNumberResult = exports.DeleteSMSSandboxPhoneNumberResult || (exports.DeleteSMSSandboxPhoneNumberResult = {}));
326
+ class ResourceNotFoundException extends SNSServiceException_1.SNSServiceException {
327
+ constructor(opts) {
328
+ super({
329
+ name: "ResourceNotFoundException",
330
+ $fault: "client",
331
+ ...opts,
332
+ });
333
+ this.name = "ResourceNotFoundException";
334
+ this.$fault = "client";
335
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
336
+ }
337
+ }
338
+ exports.ResourceNotFoundException = ResourceNotFoundException;
129
339
  var DeleteTopicInput;
130
340
  (function (DeleteTopicInput) {
131
341
  DeleteTopicInput.filterSensitiveLog = (obj) => ({
@@ -252,6 +462,20 @@ var ListOriginationNumbersResult;
252
462
  ...obj,
253
463
  });
254
464
  })(ListOriginationNumbersResult = exports.ListOriginationNumbersResult || (exports.ListOriginationNumbersResult = {}));
465
+ class ValidationException extends SNSServiceException_1.SNSServiceException {
466
+ constructor(opts) {
467
+ super({
468
+ name: "ValidationException",
469
+ $fault: "client",
470
+ ...opts,
471
+ });
472
+ this.name = "ValidationException";
473
+ this.$fault = "client";
474
+ Object.setPrototypeOf(this, ValidationException.prototype);
475
+ this.Message = opts.Message;
476
+ }
477
+ }
478
+ exports.ValidationException = ValidationException;
255
479
  var ListPhoneNumbersOptedOutInput;
256
480
  (function (ListPhoneNumbersOptedOutInput) {
257
481
  ListPhoneNumbersOptedOutInput.filterSensitiveLog = (obj) => ({
@@ -377,6 +601,123 @@ var OptInPhoneNumberResponse;
377
601
  ...obj,
378
602
  });
379
603
  })(OptInPhoneNumberResponse = exports.OptInPhoneNumberResponse || (exports.OptInPhoneNumberResponse = {}));
604
+ class EndpointDisabledException extends SNSServiceException_1.SNSServiceException {
605
+ constructor(opts) {
606
+ super({
607
+ name: "EndpointDisabledException",
608
+ $fault: "client",
609
+ ...opts,
610
+ });
611
+ this.name = "EndpointDisabledException";
612
+ this.$fault = "client";
613
+ Object.setPrototypeOf(this, EndpointDisabledException.prototype);
614
+ }
615
+ }
616
+ exports.EndpointDisabledException = EndpointDisabledException;
617
+ class InvalidParameterValueException extends SNSServiceException_1.SNSServiceException {
618
+ constructor(opts) {
619
+ super({
620
+ name: "InvalidParameterValueException",
621
+ $fault: "client",
622
+ ...opts,
623
+ });
624
+ this.name = "InvalidParameterValueException";
625
+ this.$fault = "client";
626
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
627
+ }
628
+ }
629
+ exports.InvalidParameterValueException = InvalidParameterValueException;
630
+ class KMSAccessDeniedException extends SNSServiceException_1.SNSServiceException {
631
+ constructor(opts) {
632
+ super({
633
+ name: "KMSAccessDeniedException",
634
+ $fault: "client",
635
+ ...opts,
636
+ });
637
+ this.name = "KMSAccessDeniedException";
638
+ this.$fault = "client";
639
+ Object.setPrototypeOf(this, KMSAccessDeniedException.prototype);
640
+ }
641
+ }
642
+ exports.KMSAccessDeniedException = KMSAccessDeniedException;
643
+ class KMSDisabledException extends SNSServiceException_1.SNSServiceException {
644
+ constructor(opts) {
645
+ super({
646
+ name: "KMSDisabledException",
647
+ $fault: "client",
648
+ ...opts,
649
+ });
650
+ this.name = "KMSDisabledException";
651
+ this.$fault = "client";
652
+ Object.setPrototypeOf(this, KMSDisabledException.prototype);
653
+ }
654
+ }
655
+ exports.KMSDisabledException = KMSDisabledException;
656
+ class KMSInvalidStateException extends SNSServiceException_1.SNSServiceException {
657
+ constructor(opts) {
658
+ super({
659
+ name: "KMSInvalidStateException",
660
+ $fault: "client",
661
+ ...opts,
662
+ });
663
+ this.name = "KMSInvalidStateException";
664
+ this.$fault = "client";
665
+ Object.setPrototypeOf(this, KMSInvalidStateException.prototype);
666
+ }
667
+ }
668
+ exports.KMSInvalidStateException = KMSInvalidStateException;
669
+ class KMSNotFoundException extends SNSServiceException_1.SNSServiceException {
670
+ constructor(opts) {
671
+ super({
672
+ name: "KMSNotFoundException",
673
+ $fault: "client",
674
+ ...opts,
675
+ });
676
+ this.name = "KMSNotFoundException";
677
+ this.$fault = "client";
678
+ Object.setPrototypeOf(this, KMSNotFoundException.prototype);
679
+ }
680
+ }
681
+ exports.KMSNotFoundException = KMSNotFoundException;
682
+ class KMSOptInRequired extends SNSServiceException_1.SNSServiceException {
683
+ constructor(opts) {
684
+ super({
685
+ name: "KMSOptInRequired",
686
+ $fault: "client",
687
+ ...opts,
688
+ });
689
+ this.name = "KMSOptInRequired";
690
+ this.$fault = "client";
691
+ Object.setPrototypeOf(this, KMSOptInRequired.prototype);
692
+ }
693
+ }
694
+ exports.KMSOptInRequired = KMSOptInRequired;
695
+ class KMSThrottlingException extends SNSServiceException_1.SNSServiceException {
696
+ constructor(opts) {
697
+ super({
698
+ name: "KMSThrottlingException",
699
+ $fault: "client",
700
+ ...opts,
701
+ });
702
+ this.name = "KMSThrottlingException";
703
+ this.$fault = "client";
704
+ Object.setPrototypeOf(this, KMSThrottlingException.prototype);
705
+ }
706
+ }
707
+ exports.KMSThrottlingException = KMSThrottlingException;
708
+ class PlatformApplicationDisabledException extends SNSServiceException_1.SNSServiceException {
709
+ constructor(opts) {
710
+ super({
711
+ name: "PlatformApplicationDisabledException",
712
+ $fault: "client",
713
+ ...opts,
714
+ });
715
+ this.name = "PlatformApplicationDisabledException";
716
+ this.$fault = "client";
717
+ Object.setPrototypeOf(this, PlatformApplicationDisabledException.prototype);
718
+ }
719
+ }
720
+ exports.PlatformApplicationDisabledException = PlatformApplicationDisabledException;
380
721
  var MessageAttributeValue;
381
722
  (function (MessageAttributeValue) {
382
723
  MessageAttributeValue.filterSensitiveLog = (obj) => ({
@@ -395,6 +736,58 @@ var PublishResponse;
395
736
  ...obj,
396
737
  });
397
738
  })(PublishResponse = exports.PublishResponse || (exports.PublishResponse = {}));
739
+ class BatchEntryIdsNotDistinctException extends SNSServiceException_1.SNSServiceException {
740
+ constructor(opts) {
741
+ super({
742
+ name: "BatchEntryIdsNotDistinctException",
743
+ $fault: "client",
744
+ ...opts,
745
+ });
746
+ this.name = "BatchEntryIdsNotDistinctException";
747
+ this.$fault = "client";
748
+ Object.setPrototypeOf(this, BatchEntryIdsNotDistinctException.prototype);
749
+ }
750
+ }
751
+ exports.BatchEntryIdsNotDistinctException = BatchEntryIdsNotDistinctException;
752
+ class BatchRequestTooLongException extends SNSServiceException_1.SNSServiceException {
753
+ constructor(opts) {
754
+ super({
755
+ name: "BatchRequestTooLongException",
756
+ $fault: "client",
757
+ ...opts,
758
+ });
759
+ this.name = "BatchRequestTooLongException";
760
+ this.$fault = "client";
761
+ Object.setPrototypeOf(this, BatchRequestTooLongException.prototype);
762
+ }
763
+ }
764
+ exports.BatchRequestTooLongException = BatchRequestTooLongException;
765
+ class EmptyBatchRequestException extends SNSServiceException_1.SNSServiceException {
766
+ constructor(opts) {
767
+ super({
768
+ name: "EmptyBatchRequestException",
769
+ $fault: "client",
770
+ ...opts,
771
+ });
772
+ this.name = "EmptyBatchRequestException";
773
+ this.$fault = "client";
774
+ Object.setPrototypeOf(this, EmptyBatchRequestException.prototype);
775
+ }
776
+ }
777
+ exports.EmptyBatchRequestException = EmptyBatchRequestException;
778
+ class InvalidBatchEntryIdException extends SNSServiceException_1.SNSServiceException {
779
+ constructor(opts) {
780
+ super({
781
+ name: "InvalidBatchEntryIdException",
782
+ $fault: "client",
783
+ ...opts,
784
+ });
785
+ this.name = "InvalidBatchEntryIdException";
786
+ this.$fault = "client";
787
+ Object.setPrototypeOf(this, InvalidBatchEntryIdException.prototype);
788
+ }
789
+ }
790
+ exports.InvalidBatchEntryIdException = InvalidBatchEntryIdException;
398
791
  var PublishBatchRequestEntry;
399
792
  (function (PublishBatchRequestEntry) {
400
793
  PublishBatchRequestEntry.filterSensitiveLog = (obj) => ({
@@ -425,6 +818,19 @@ var PublishBatchResponse;
425
818
  ...obj,
426
819
  });
427
820
  })(PublishBatchResponse = exports.PublishBatchResponse || (exports.PublishBatchResponse = {}));
821
+ class TooManyEntriesInBatchRequestException extends SNSServiceException_1.SNSServiceException {
822
+ constructor(opts) {
823
+ super({
824
+ name: "TooManyEntriesInBatchRequestException",
825
+ $fault: "client",
826
+ ...opts,
827
+ });
828
+ this.name = "TooManyEntriesInBatchRequestException";
829
+ this.$fault = "client";
830
+ Object.setPrototypeOf(this, TooManyEntriesInBatchRequestException.prototype);
831
+ }
832
+ }
833
+ exports.TooManyEntriesInBatchRequestException = TooManyEntriesInBatchRequestException;
428
834
  var RemovePermissionInput;
429
835
  (function (RemovePermissionInput) {
430
836
  RemovePermissionInput.filterSensitiveLog = (obj) => ({
@@ -509,6 +915,21 @@ var UntagResourceResponse;
509
915
  ...obj,
510
916
  });
511
917
  })(UntagResourceResponse = exports.UntagResourceResponse || (exports.UntagResourceResponse = {}));
918
+ class VerificationException extends SNSServiceException_1.SNSServiceException {
919
+ constructor(opts) {
920
+ super({
921
+ name: "VerificationException",
922
+ $fault: "client",
923
+ ...opts,
924
+ });
925
+ this.name = "VerificationException";
926
+ this.$fault = "client";
927
+ Object.setPrototypeOf(this, VerificationException.prototype);
928
+ this.Message = opts.Message;
929
+ this.Status = opts.Status;
930
+ }
931
+ }
932
+ exports.VerificationException = VerificationException;
512
933
  var VerifySMSSandboxPhoneNumberInput;
513
934
  (function (VerifySMSSandboxPhoneNumberInput) {
514
935
  VerifySMSSandboxPhoneNumberInput.filterSensitiveLog = (obj) => ({