@aws-sdk/client-sns 3.186.0 → 3.188.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/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_query.js +8 -4
- package/dist-es/SNS.js +170 -177
- package/dist-es/SNSClient.js +22 -28
- package/dist-es/commands/AddPermissionCommand.js +22 -29
- package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +21 -28
- package/dist-es/commands/ConfirmSubscriptionCommand.js +21 -28
- package/dist-es/commands/CreatePlatformApplicationCommand.js +21 -28
- package/dist-es/commands/CreatePlatformEndpointCommand.js +21 -28
- package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +21 -28
- package/dist-es/commands/CreateTopicCommand.js +21 -28
- package/dist-es/commands/DeleteEndpointCommand.js +22 -29
- package/dist-es/commands/DeletePlatformApplicationCommand.js +22 -29
- package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +21 -28
- package/dist-es/commands/DeleteTopicCommand.js +22 -29
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +21 -28
- package/dist-es/commands/GetEndpointAttributesCommand.js +21 -28
- package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +21 -28
- package/dist-es/commands/GetSMSAttributesCommand.js +21 -28
- package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +21 -28
- package/dist-es/commands/GetSubscriptionAttributesCommand.js +21 -28
- package/dist-es/commands/GetTopicAttributesCommand.js +21 -28
- package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +21 -28
- package/dist-es/commands/ListOriginationNumbersCommand.js +21 -28
- package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +21 -28
- package/dist-es/commands/ListPlatformApplicationsCommand.js +21 -28
- package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +21 -28
- package/dist-es/commands/ListSubscriptionsByTopicCommand.js +21 -28
- package/dist-es/commands/ListSubscriptionsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTopicsCommand.js +21 -28
- package/dist-es/commands/OptInPhoneNumberCommand.js +21 -28
- package/dist-es/commands/PublishBatchCommand.js +21 -28
- package/dist-es/commands/PublishCommand.js +21 -28
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +22 -29
- package/dist-es/commands/RemovePermissionCommand.js +22 -29
- package/dist-es/commands/SetEndpointAttributesCommand.js +22 -29
- package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +22 -29
- package/dist-es/commands/SetSMSAttributesCommand.js +21 -28
- package/dist-es/commands/SetSubscriptionAttributesCommand.js +22 -29
- package/dist-es/commands/SetTopicAttributesCommand.js +22 -29
- package/dist-es/commands/SubscribeCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UnsubscribeCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SNSServiceException.js +5 -10
- package/dist-es/models/models_0.js +639 -472
- package/dist-es/pagination/ListEndpointsByPlatformApplicationPaginator.js +24 -67
- package/dist-es/pagination/ListOriginationNumbersPaginator.js +25 -68
- package/dist-es/pagination/ListPhoneNumbersOptedOutPaginator.js +24 -67
- package/dist-es/pagination/ListPlatformApplicationsPaginator.js +24 -67
- package/dist-es/pagination/ListSMSSandboxPhoneNumbersPaginator.js +25 -68
- package/dist-es/pagination/ListSubscriptionsByTopicPaginator.js +24 -67
- package/dist-es/pagination/ListSubscriptionsPaginator.js +24 -67
- package/dist-es/pagination/ListTopicsPaginator.js +24 -67
- package/dist-es/protocols/Aws_query.js +3120 -4109
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +34 -35
package/dist-es/SNS.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AddPermissionCommand, } from "./commands/AddPermissionCommand";
|
|
3
2
|
import { CheckIfPhoneNumberIsOptedOutCommand, } from "./commands/CheckIfPhoneNumberIsOptedOutCommand";
|
|
4
3
|
import { ConfirmSubscriptionCommand, } from "./commands/ConfirmSubscriptionCommand";
|
|
@@ -42,599 +41,593 @@ import { UnsubscribeCommand } from "./commands/UnsubscribeCommand";
|
|
|
42
41
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
43
42
|
import { VerifySMSSandboxPhoneNumberCommand, } from "./commands/VerifySMSSandboxPhoneNumberCommand";
|
|
44
43
|
import { SNSClient } from "./SNSClient";
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
49
|
-
}
|
|
50
|
-
SNS.prototype.addPermission = function (args, optionsOrCb, cb) {
|
|
51
|
-
var command = new AddPermissionCommand(args);
|
|
44
|
+
export class SNS extends SNSClient {
|
|
45
|
+
addPermission(args, optionsOrCb, cb) {
|
|
46
|
+
const command = new AddPermissionCommand(args);
|
|
52
47
|
if (typeof optionsOrCb === "function") {
|
|
53
48
|
this.send(command, optionsOrCb);
|
|
54
49
|
}
|
|
55
50
|
else if (typeof cb === "function") {
|
|
56
51
|
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(
|
|
52
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
53
|
this.send(command, optionsOrCb || {}, cb);
|
|
59
54
|
}
|
|
60
55
|
else {
|
|
61
56
|
return this.send(command, optionsOrCb);
|
|
62
57
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
}
|
|
59
|
+
checkIfPhoneNumberIsOptedOut(args, optionsOrCb, cb) {
|
|
60
|
+
const command = new CheckIfPhoneNumberIsOptedOutCommand(args);
|
|
66
61
|
if (typeof optionsOrCb === "function") {
|
|
67
62
|
this.send(command, optionsOrCb);
|
|
68
63
|
}
|
|
69
64
|
else if (typeof cb === "function") {
|
|
70
65
|
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(
|
|
66
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
67
|
this.send(command, optionsOrCb || {}, cb);
|
|
73
68
|
}
|
|
74
69
|
else {
|
|
75
70
|
return this.send(command, optionsOrCb);
|
|
76
71
|
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
}
|
|
73
|
+
confirmSubscription(args, optionsOrCb, cb) {
|
|
74
|
+
const command = new ConfirmSubscriptionCommand(args);
|
|
80
75
|
if (typeof optionsOrCb === "function") {
|
|
81
76
|
this.send(command, optionsOrCb);
|
|
82
77
|
}
|
|
83
78
|
else if (typeof cb === "function") {
|
|
84
79
|
if (typeof optionsOrCb !== "object")
|
|
85
|
-
throw new Error(
|
|
80
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
81
|
this.send(command, optionsOrCb || {}, cb);
|
|
87
82
|
}
|
|
88
83
|
else {
|
|
89
84
|
return this.send(command, optionsOrCb);
|
|
90
85
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
}
|
|
87
|
+
createPlatformApplication(args, optionsOrCb, cb) {
|
|
88
|
+
const command = new CreatePlatformApplicationCommand(args);
|
|
94
89
|
if (typeof optionsOrCb === "function") {
|
|
95
90
|
this.send(command, optionsOrCb);
|
|
96
91
|
}
|
|
97
92
|
else if (typeof cb === "function") {
|
|
98
93
|
if (typeof optionsOrCb !== "object")
|
|
99
|
-
throw new Error(
|
|
94
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
95
|
this.send(command, optionsOrCb || {}, cb);
|
|
101
96
|
}
|
|
102
97
|
else {
|
|
103
98
|
return this.send(command, optionsOrCb);
|
|
104
99
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
100
|
+
}
|
|
101
|
+
createPlatformEndpoint(args, optionsOrCb, cb) {
|
|
102
|
+
const command = new CreatePlatformEndpointCommand(args);
|
|
108
103
|
if (typeof optionsOrCb === "function") {
|
|
109
104
|
this.send(command, optionsOrCb);
|
|
110
105
|
}
|
|
111
106
|
else if (typeof cb === "function") {
|
|
112
107
|
if (typeof optionsOrCb !== "object")
|
|
113
|
-
throw new Error(
|
|
108
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
114
109
|
this.send(command, optionsOrCb || {}, cb);
|
|
115
110
|
}
|
|
116
111
|
else {
|
|
117
112
|
return this.send(command, optionsOrCb);
|
|
118
113
|
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
114
|
+
}
|
|
115
|
+
createSMSSandboxPhoneNumber(args, optionsOrCb, cb) {
|
|
116
|
+
const command = new CreateSMSSandboxPhoneNumberCommand(args);
|
|
122
117
|
if (typeof optionsOrCb === "function") {
|
|
123
118
|
this.send(command, optionsOrCb);
|
|
124
119
|
}
|
|
125
120
|
else if (typeof cb === "function") {
|
|
126
121
|
if (typeof optionsOrCb !== "object")
|
|
127
|
-
throw new Error(
|
|
122
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
128
123
|
this.send(command, optionsOrCb || {}, cb);
|
|
129
124
|
}
|
|
130
125
|
else {
|
|
131
126
|
return this.send(command, optionsOrCb);
|
|
132
127
|
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
|
|
128
|
+
}
|
|
129
|
+
createTopic(args, optionsOrCb, cb) {
|
|
130
|
+
const command = new CreateTopicCommand(args);
|
|
136
131
|
if (typeof optionsOrCb === "function") {
|
|
137
132
|
this.send(command, optionsOrCb);
|
|
138
133
|
}
|
|
139
134
|
else if (typeof cb === "function") {
|
|
140
135
|
if (typeof optionsOrCb !== "object")
|
|
141
|
-
throw new Error(
|
|
136
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
142
137
|
this.send(command, optionsOrCb || {}, cb);
|
|
143
138
|
}
|
|
144
139
|
else {
|
|
145
140
|
return this.send(command, optionsOrCb);
|
|
146
141
|
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
|
|
142
|
+
}
|
|
143
|
+
deleteEndpoint(args, optionsOrCb, cb) {
|
|
144
|
+
const command = new DeleteEndpointCommand(args);
|
|
150
145
|
if (typeof optionsOrCb === "function") {
|
|
151
146
|
this.send(command, optionsOrCb);
|
|
152
147
|
}
|
|
153
148
|
else if (typeof cb === "function") {
|
|
154
149
|
if (typeof optionsOrCb !== "object")
|
|
155
|
-
throw new Error(
|
|
150
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
151
|
this.send(command, optionsOrCb || {}, cb);
|
|
157
152
|
}
|
|
158
153
|
else {
|
|
159
154
|
return this.send(command, optionsOrCb);
|
|
160
155
|
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
|
|
156
|
+
}
|
|
157
|
+
deletePlatformApplication(args, optionsOrCb, cb) {
|
|
158
|
+
const command = new DeletePlatformApplicationCommand(args);
|
|
164
159
|
if (typeof optionsOrCb === "function") {
|
|
165
160
|
this.send(command, optionsOrCb);
|
|
166
161
|
}
|
|
167
162
|
else if (typeof cb === "function") {
|
|
168
163
|
if (typeof optionsOrCb !== "object")
|
|
169
|
-
throw new Error(
|
|
164
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
170
165
|
this.send(command, optionsOrCb || {}, cb);
|
|
171
166
|
}
|
|
172
167
|
else {
|
|
173
168
|
return this.send(command, optionsOrCb);
|
|
174
169
|
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
}
|
|
171
|
+
deleteSMSSandboxPhoneNumber(args, optionsOrCb, cb) {
|
|
172
|
+
const command = new DeleteSMSSandboxPhoneNumberCommand(args);
|
|
178
173
|
if (typeof optionsOrCb === "function") {
|
|
179
174
|
this.send(command, optionsOrCb);
|
|
180
175
|
}
|
|
181
176
|
else if (typeof cb === "function") {
|
|
182
177
|
if (typeof optionsOrCb !== "object")
|
|
183
|
-
throw new Error(
|
|
178
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
184
179
|
this.send(command, optionsOrCb || {}, cb);
|
|
185
180
|
}
|
|
186
181
|
else {
|
|
187
182
|
return this.send(command, optionsOrCb);
|
|
188
183
|
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
184
|
+
}
|
|
185
|
+
deleteTopic(args, optionsOrCb, cb) {
|
|
186
|
+
const command = new DeleteTopicCommand(args);
|
|
192
187
|
if (typeof optionsOrCb === "function") {
|
|
193
188
|
this.send(command, optionsOrCb);
|
|
194
189
|
}
|
|
195
190
|
else if (typeof cb === "function") {
|
|
196
191
|
if (typeof optionsOrCb !== "object")
|
|
197
|
-
throw new Error(
|
|
192
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
198
193
|
this.send(command, optionsOrCb || {}, cb);
|
|
199
194
|
}
|
|
200
195
|
else {
|
|
201
196
|
return this.send(command, optionsOrCb);
|
|
202
197
|
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
198
|
+
}
|
|
199
|
+
getDataProtectionPolicy(args, optionsOrCb, cb) {
|
|
200
|
+
const command = new GetDataProtectionPolicyCommand(args);
|
|
206
201
|
if (typeof optionsOrCb === "function") {
|
|
207
202
|
this.send(command, optionsOrCb);
|
|
208
203
|
}
|
|
209
204
|
else if (typeof cb === "function") {
|
|
210
205
|
if (typeof optionsOrCb !== "object")
|
|
211
|
-
throw new Error(
|
|
206
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
212
207
|
this.send(command, optionsOrCb || {}, cb);
|
|
213
208
|
}
|
|
214
209
|
else {
|
|
215
210
|
return this.send(command, optionsOrCb);
|
|
216
211
|
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
212
|
+
}
|
|
213
|
+
getEndpointAttributes(args, optionsOrCb, cb) {
|
|
214
|
+
const command = new GetEndpointAttributesCommand(args);
|
|
220
215
|
if (typeof optionsOrCb === "function") {
|
|
221
216
|
this.send(command, optionsOrCb);
|
|
222
217
|
}
|
|
223
218
|
else if (typeof cb === "function") {
|
|
224
219
|
if (typeof optionsOrCb !== "object")
|
|
225
|
-
throw new Error(
|
|
220
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
226
221
|
this.send(command, optionsOrCb || {}, cb);
|
|
227
222
|
}
|
|
228
223
|
else {
|
|
229
224
|
return this.send(command, optionsOrCb);
|
|
230
225
|
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
|
|
226
|
+
}
|
|
227
|
+
getPlatformApplicationAttributes(args, optionsOrCb, cb) {
|
|
228
|
+
const command = new GetPlatformApplicationAttributesCommand(args);
|
|
234
229
|
if (typeof optionsOrCb === "function") {
|
|
235
230
|
this.send(command, optionsOrCb);
|
|
236
231
|
}
|
|
237
232
|
else if (typeof cb === "function") {
|
|
238
233
|
if (typeof optionsOrCb !== "object")
|
|
239
|
-
throw new Error(
|
|
234
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
240
235
|
this.send(command, optionsOrCb || {}, cb);
|
|
241
236
|
}
|
|
242
237
|
else {
|
|
243
238
|
return this.send(command, optionsOrCb);
|
|
244
239
|
}
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
|
|
240
|
+
}
|
|
241
|
+
getSMSAttributes(args, optionsOrCb, cb) {
|
|
242
|
+
const command = new GetSMSAttributesCommand(args);
|
|
248
243
|
if (typeof optionsOrCb === "function") {
|
|
249
244
|
this.send(command, optionsOrCb);
|
|
250
245
|
}
|
|
251
246
|
else if (typeof cb === "function") {
|
|
252
247
|
if (typeof optionsOrCb !== "object")
|
|
253
|
-
throw new Error(
|
|
248
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
254
249
|
this.send(command, optionsOrCb || {}, cb);
|
|
255
250
|
}
|
|
256
251
|
else {
|
|
257
252
|
return this.send(command, optionsOrCb);
|
|
258
253
|
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
|
|
254
|
+
}
|
|
255
|
+
getSMSSandboxAccountStatus(args, optionsOrCb, cb) {
|
|
256
|
+
const command = new GetSMSSandboxAccountStatusCommand(args);
|
|
262
257
|
if (typeof optionsOrCb === "function") {
|
|
263
258
|
this.send(command, optionsOrCb);
|
|
264
259
|
}
|
|
265
260
|
else if (typeof cb === "function") {
|
|
266
261
|
if (typeof optionsOrCb !== "object")
|
|
267
|
-
throw new Error(
|
|
262
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
268
263
|
this.send(command, optionsOrCb || {}, cb);
|
|
269
264
|
}
|
|
270
265
|
else {
|
|
271
266
|
return this.send(command, optionsOrCb);
|
|
272
267
|
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
|
|
268
|
+
}
|
|
269
|
+
getSubscriptionAttributes(args, optionsOrCb, cb) {
|
|
270
|
+
const command = new GetSubscriptionAttributesCommand(args);
|
|
276
271
|
if (typeof optionsOrCb === "function") {
|
|
277
272
|
this.send(command, optionsOrCb);
|
|
278
273
|
}
|
|
279
274
|
else if (typeof cb === "function") {
|
|
280
275
|
if (typeof optionsOrCb !== "object")
|
|
281
|
-
throw new Error(
|
|
276
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
282
277
|
this.send(command, optionsOrCb || {}, cb);
|
|
283
278
|
}
|
|
284
279
|
else {
|
|
285
280
|
return this.send(command, optionsOrCb);
|
|
286
281
|
}
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
282
|
+
}
|
|
283
|
+
getTopicAttributes(args, optionsOrCb, cb) {
|
|
284
|
+
const command = new GetTopicAttributesCommand(args);
|
|
290
285
|
if (typeof optionsOrCb === "function") {
|
|
291
286
|
this.send(command, optionsOrCb);
|
|
292
287
|
}
|
|
293
288
|
else if (typeof cb === "function") {
|
|
294
289
|
if (typeof optionsOrCb !== "object")
|
|
295
|
-
throw new Error(
|
|
290
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
296
291
|
this.send(command, optionsOrCb || {}, cb);
|
|
297
292
|
}
|
|
298
293
|
else {
|
|
299
294
|
return this.send(command, optionsOrCb);
|
|
300
295
|
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
296
|
+
}
|
|
297
|
+
listEndpointsByPlatformApplication(args, optionsOrCb, cb) {
|
|
298
|
+
const command = new ListEndpointsByPlatformApplicationCommand(args);
|
|
304
299
|
if (typeof optionsOrCb === "function") {
|
|
305
300
|
this.send(command, optionsOrCb);
|
|
306
301
|
}
|
|
307
302
|
else if (typeof cb === "function") {
|
|
308
303
|
if (typeof optionsOrCb !== "object")
|
|
309
|
-
throw new Error(
|
|
304
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
310
305
|
this.send(command, optionsOrCb || {}, cb);
|
|
311
306
|
}
|
|
312
307
|
else {
|
|
313
308
|
return this.send(command, optionsOrCb);
|
|
314
309
|
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
|
|
310
|
+
}
|
|
311
|
+
listOriginationNumbers(args, optionsOrCb, cb) {
|
|
312
|
+
const command = new ListOriginationNumbersCommand(args);
|
|
318
313
|
if (typeof optionsOrCb === "function") {
|
|
319
314
|
this.send(command, optionsOrCb);
|
|
320
315
|
}
|
|
321
316
|
else if (typeof cb === "function") {
|
|
322
317
|
if (typeof optionsOrCb !== "object")
|
|
323
|
-
throw new Error(
|
|
318
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
324
319
|
this.send(command, optionsOrCb || {}, cb);
|
|
325
320
|
}
|
|
326
321
|
else {
|
|
327
322
|
return this.send(command, optionsOrCb);
|
|
328
323
|
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
|
|
324
|
+
}
|
|
325
|
+
listPhoneNumbersOptedOut(args, optionsOrCb, cb) {
|
|
326
|
+
const command = new ListPhoneNumbersOptedOutCommand(args);
|
|
332
327
|
if (typeof optionsOrCb === "function") {
|
|
333
328
|
this.send(command, optionsOrCb);
|
|
334
329
|
}
|
|
335
330
|
else if (typeof cb === "function") {
|
|
336
331
|
if (typeof optionsOrCb !== "object")
|
|
337
|
-
throw new Error(
|
|
332
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
338
333
|
this.send(command, optionsOrCb || {}, cb);
|
|
339
334
|
}
|
|
340
335
|
else {
|
|
341
336
|
return this.send(command, optionsOrCb);
|
|
342
337
|
}
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
338
|
+
}
|
|
339
|
+
listPlatformApplications(args, optionsOrCb, cb) {
|
|
340
|
+
const command = new ListPlatformApplicationsCommand(args);
|
|
346
341
|
if (typeof optionsOrCb === "function") {
|
|
347
342
|
this.send(command, optionsOrCb);
|
|
348
343
|
}
|
|
349
344
|
else if (typeof cb === "function") {
|
|
350
345
|
if (typeof optionsOrCb !== "object")
|
|
351
|
-
throw new Error(
|
|
346
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
352
347
|
this.send(command, optionsOrCb || {}, cb);
|
|
353
348
|
}
|
|
354
349
|
else {
|
|
355
350
|
return this.send(command, optionsOrCb);
|
|
356
351
|
}
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
|
|
352
|
+
}
|
|
353
|
+
listSMSSandboxPhoneNumbers(args, optionsOrCb, cb) {
|
|
354
|
+
const command = new ListSMSSandboxPhoneNumbersCommand(args);
|
|
360
355
|
if (typeof optionsOrCb === "function") {
|
|
361
356
|
this.send(command, optionsOrCb);
|
|
362
357
|
}
|
|
363
358
|
else if (typeof cb === "function") {
|
|
364
359
|
if (typeof optionsOrCb !== "object")
|
|
365
|
-
throw new Error(
|
|
360
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
366
361
|
this.send(command, optionsOrCb || {}, cb);
|
|
367
362
|
}
|
|
368
363
|
else {
|
|
369
364
|
return this.send(command, optionsOrCb);
|
|
370
365
|
}
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
|
|
366
|
+
}
|
|
367
|
+
listSubscriptions(args, optionsOrCb, cb) {
|
|
368
|
+
const command = new ListSubscriptionsCommand(args);
|
|
374
369
|
if (typeof optionsOrCb === "function") {
|
|
375
370
|
this.send(command, optionsOrCb);
|
|
376
371
|
}
|
|
377
372
|
else if (typeof cb === "function") {
|
|
378
373
|
if (typeof optionsOrCb !== "object")
|
|
379
|
-
throw new Error(
|
|
374
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
380
375
|
this.send(command, optionsOrCb || {}, cb);
|
|
381
376
|
}
|
|
382
377
|
else {
|
|
383
378
|
return this.send(command, optionsOrCb);
|
|
384
379
|
}
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
|
|
380
|
+
}
|
|
381
|
+
listSubscriptionsByTopic(args, optionsOrCb, cb) {
|
|
382
|
+
const command = new ListSubscriptionsByTopicCommand(args);
|
|
388
383
|
if (typeof optionsOrCb === "function") {
|
|
389
384
|
this.send(command, optionsOrCb);
|
|
390
385
|
}
|
|
391
386
|
else if (typeof cb === "function") {
|
|
392
387
|
if (typeof optionsOrCb !== "object")
|
|
393
|
-
throw new Error(
|
|
388
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
394
389
|
this.send(command, optionsOrCb || {}, cb);
|
|
395
390
|
}
|
|
396
391
|
else {
|
|
397
392
|
return this.send(command, optionsOrCb);
|
|
398
393
|
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
394
|
+
}
|
|
395
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
396
|
+
const command = new ListTagsForResourceCommand(args);
|
|
402
397
|
if (typeof optionsOrCb === "function") {
|
|
403
398
|
this.send(command, optionsOrCb);
|
|
404
399
|
}
|
|
405
400
|
else if (typeof cb === "function") {
|
|
406
401
|
if (typeof optionsOrCb !== "object")
|
|
407
|
-
throw new Error(
|
|
402
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
408
403
|
this.send(command, optionsOrCb || {}, cb);
|
|
409
404
|
}
|
|
410
405
|
else {
|
|
411
406
|
return this.send(command, optionsOrCb);
|
|
412
407
|
}
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
|
|
408
|
+
}
|
|
409
|
+
listTopics(args, optionsOrCb, cb) {
|
|
410
|
+
const command = new ListTopicsCommand(args);
|
|
416
411
|
if (typeof optionsOrCb === "function") {
|
|
417
412
|
this.send(command, optionsOrCb);
|
|
418
413
|
}
|
|
419
414
|
else if (typeof cb === "function") {
|
|
420
415
|
if (typeof optionsOrCb !== "object")
|
|
421
|
-
throw new Error(
|
|
416
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
422
417
|
this.send(command, optionsOrCb || {}, cb);
|
|
423
418
|
}
|
|
424
419
|
else {
|
|
425
420
|
return this.send(command, optionsOrCb);
|
|
426
421
|
}
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
|
|
422
|
+
}
|
|
423
|
+
optInPhoneNumber(args, optionsOrCb, cb) {
|
|
424
|
+
const command = new OptInPhoneNumberCommand(args);
|
|
430
425
|
if (typeof optionsOrCb === "function") {
|
|
431
426
|
this.send(command, optionsOrCb);
|
|
432
427
|
}
|
|
433
428
|
else if (typeof cb === "function") {
|
|
434
429
|
if (typeof optionsOrCb !== "object")
|
|
435
|
-
throw new Error(
|
|
430
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
436
431
|
this.send(command, optionsOrCb || {}, cb);
|
|
437
432
|
}
|
|
438
433
|
else {
|
|
439
434
|
return this.send(command, optionsOrCb);
|
|
440
435
|
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
|
|
436
|
+
}
|
|
437
|
+
publish(args, optionsOrCb, cb) {
|
|
438
|
+
const command = new PublishCommand(args);
|
|
444
439
|
if (typeof optionsOrCb === "function") {
|
|
445
440
|
this.send(command, optionsOrCb);
|
|
446
441
|
}
|
|
447
442
|
else if (typeof cb === "function") {
|
|
448
443
|
if (typeof optionsOrCb !== "object")
|
|
449
|
-
throw new Error(
|
|
444
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
450
445
|
this.send(command, optionsOrCb || {}, cb);
|
|
451
446
|
}
|
|
452
447
|
else {
|
|
453
448
|
return this.send(command, optionsOrCb);
|
|
454
449
|
}
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
450
|
+
}
|
|
451
|
+
publishBatch(args, optionsOrCb, cb) {
|
|
452
|
+
const command = new PublishBatchCommand(args);
|
|
458
453
|
if (typeof optionsOrCb === "function") {
|
|
459
454
|
this.send(command, optionsOrCb);
|
|
460
455
|
}
|
|
461
456
|
else if (typeof cb === "function") {
|
|
462
457
|
if (typeof optionsOrCb !== "object")
|
|
463
|
-
throw new Error(
|
|
458
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
464
459
|
this.send(command, optionsOrCb || {}, cb);
|
|
465
460
|
}
|
|
466
461
|
else {
|
|
467
462
|
return this.send(command, optionsOrCb);
|
|
468
463
|
}
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
464
|
+
}
|
|
465
|
+
putDataProtectionPolicy(args, optionsOrCb, cb) {
|
|
466
|
+
const command = new PutDataProtectionPolicyCommand(args);
|
|
472
467
|
if (typeof optionsOrCb === "function") {
|
|
473
468
|
this.send(command, optionsOrCb);
|
|
474
469
|
}
|
|
475
470
|
else if (typeof cb === "function") {
|
|
476
471
|
if (typeof optionsOrCb !== "object")
|
|
477
|
-
throw new Error(
|
|
472
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
478
473
|
this.send(command, optionsOrCb || {}, cb);
|
|
479
474
|
}
|
|
480
475
|
else {
|
|
481
476
|
return this.send(command, optionsOrCb);
|
|
482
477
|
}
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
478
|
+
}
|
|
479
|
+
removePermission(args, optionsOrCb, cb) {
|
|
480
|
+
const command = new RemovePermissionCommand(args);
|
|
486
481
|
if (typeof optionsOrCb === "function") {
|
|
487
482
|
this.send(command, optionsOrCb);
|
|
488
483
|
}
|
|
489
484
|
else if (typeof cb === "function") {
|
|
490
485
|
if (typeof optionsOrCb !== "object")
|
|
491
|
-
throw new Error(
|
|
486
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
492
487
|
this.send(command, optionsOrCb || {}, cb);
|
|
493
488
|
}
|
|
494
489
|
else {
|
|
495
490
|
return this.send(command, optionsOrCb);
|
|
496
491
|
}
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
|
|
492
|
+
}
|
|
493
|
+
setEndpointAttributes(args, optionsOrCb, cb) {
|
|
494
|
+
const command = new SetEndpointAttributesCommand(args);
|
|
500
495
|
if (typeof optionsOrCb === "function") {
|
|
501
496
|
this.send(command, optionsOrCb);
|
|
502
497
|
}
|
|
503
498
|
else if (typeof cb === "function") {
|
|
504
499
|
if (typeof optionsOrCb !== "object")
|
|
505
|
-
throw new Error(
|
|
500
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
506
501
|
this.send(command, optionsOrCb || {}, cb);
|
|
507
502
|
}
|
|
508
503
|
else {
|
|
509
504
|
return this.send(command, optionsOrCb);
|
|
510
505
|
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
|
|
506
|
+
}
|
|
507
|
+
setPlatformApplicationAttributes(args, optionsOrCb, cb) {
|
|
508
|
+
const command = new SetPlatformApplicationAttributesCommand(args);
|
|
514
509
|
if (typeof optionsOrCb === "function") {
|
|
515
510
|
this.send(command, optionsOrCb);
|
|
516
511
|
}
|
|
517
512
|
else if (typeof cb === "function") {
|
|
518
513
|
if (typeof optionsOrCb !== "object")
|
|
519
|
-
throw new Error(
|
|
514
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
520
515
|
this.send(command, optionsOrCb || {}, cb);
|
|
521
516
|
}
|
|
522
517
|
else {
|
|
523
518
|
return this.send(command, optionsOrCb);
|
|
524
519
|
}
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
|
|
520
|
+
}
|
|
521
|
+
setSMSAttributes(args, optionsOrCb, cb) {
|
|
522
|
+
const command = new SetSMSAttributesCommand(args);
|
|
528
523
|
if (typeof optionsOrCb === "function") {
|
|
529
524
|
this.send(command, optionsOrCb);
|
|
530
525
|
}
|
|
531
526
|
else if (typeof cb === "function") {
|
|
532
527
|
if (typeof optionsOrCb !== "object")
|
|
533
|
-
throw new Error(
|
|
528
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
534
529
|
this.send(command, optionsOrCb || {}, cb);
|
|
535
530
|
}
|
|
536
531
|
else {
|
|
537
532
|
return this.send(command, optionsOrCb);
|
|
538
533
|
}
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
|
|
534
|
+
}
|
|
535
|
+
setSubscriptionAttributes(args, optionsOrCb, cb) {
|
|
536
|
+
const command = new SetSubscriptionAttributesCommand(args);
|
|
542
537
|
if (typeof optionsOrCb === "function") {
|
|
543
538
|
this.send(command, optionsOrCb);
|
|
544
539
|
}
|
|
545
540
|
else if (typeof cb === "function") {
|
|
546
541
|
if (typeof optionsOrCb !== "object")
|
|
547
|
-
throw new Error(
|
|
542
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
548
543
|
this.send(command, optionsOrCb || {}, cb);
|
|
549
544
|
}
|
|
550
545
|
else {
|
|
551
546
|
return this.send(command, optionsOrCb);
|
|
552
547
|
}
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
|
|
548
|
+
}
|
|
549
|
+
setTopicAttributes(args, optionsOrCb, cb) {
|
|
550
|
+
const command = new SetTopicAttributesCommand(args);
|
|
556
551
|
if (typeof optionsOrCb === "function") {
|
|
557
552
|
this.send(command, optionsOrCb);
|
|
558
553
|
}
|
|
559
554
|
else if (typeof cb === "function") {
|
|
560
555
|
if (typeof optionsOrCb !== "object")
|
|
561
|
-
throw new Error(
|
|
556
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
562
557
|
this.send(command, optionsOrCb || {}, cb);
|
|
563
558
|
}
|
|
564
559
|
else {
|
|
565
560
|
return this.send(command, optionsOrCb);
|
|
566
561
|
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
|
|
562
|
+
}
|
|
563
|
+
subscribe(args, optionsOrCb, cb) {
|
|
564
|
+
const command = new SubscribeCommand(args);
|
|
570
565
|
if (typeof optionsOrCb === "function") {
|
|
571
566
|
this.send(command, optionsOrCb);
|
|
572
567
|
}
|
|
573
568
|
else if (typeof cb === "function") {
|
|
574
569
|
if (typeof optionsOrCb !== "object")
|
|
575
|
-
throw new Error(
|
|
570
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
576
571
|
this.send(command, optionsOrCb || {}, cb);
|
|
577
572
|
}
|
|
578
573
|
else {
|
|
579
574
|
return this.send(command, optionsOrCb);
|
|
580
575
|
}
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
|
|
576
|
+
}
|
|
577
|
+
tagResource(args, optionsOrCb, cb) {
|
|
578
|
+
const command = new TagResourceCommand(args);
|
|
584
579
|
if (typeof optionsOrCb === "function") {
|
|
585
580
|
this.send(command, optionsOrCb);
|
|
586
581
|
}
|
|
587
582
|
else if (typeof cb === "function") {
|
|
588
583
|
if (typeof optionsOrCb !== "object")
|
|
589
|
-
throw new Error(
|
|
584
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
590
585
|
this.send(command, optionsOrCb || {}, cb);
|
|
591
586
|
}
|
|
592
587
|
else {
|
|
593
588
|
return this.send(command, optionsOrCb);
|
|
594
589
|
}
|
|
595
|
-
}
|
|
596
|
-
|
|
597
|
-
|
|
590
|
+
}
|
|
591
|
+
unsubscribe(args, optionsOrCb, cb) {
|
|
592
|
+
const command = new UnsubscribeCommand(args);
|
|
598
593
|
if (typeof optionsOrCb === "function") {
|
|
599
594
|
this.send(command, optionsOrCb);
|
|
600
595
|
}
|
|
601
596
|
else if (typeof cb === "function") {
|
|
602
597
|
if (typeof optionsOrCb !== "object")
|
|
603
|
-
throw new Error(
|
|
598
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
604
599
|
this.send(command, optionsOrCb || {}, cb);
|
|
605
600
|
}
|
|
606
601
|
else {
|
|
607
602
|
return this.send(command, optionsOrCb);
|
|
608
603
|
}
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
|
|
604
|
+
}
|
|
605
|
+
untagResource(args, optionsOrCb, cb) {
|
|
606
|
+
const command = new UntagResourceCommand(args);
|
|
612
607
|
if (typeof optionsOrCb === "function") {
|
|
613
608
|
this.send(command, optionsOrCb);
|
|
614
609
|
}
|
|
615
610
|
else if (typeof cb === "function") {
|
|
616
611
|
if (typeof optionsOrCb !== "object")
|
|
617
|
-
throw new Error(
|
|
612
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
618
613
|
this.send(command, optionsOrCb || {}, cb);
|
|
619
614
|
}
|
|
620
615
|
else {
|
|
621
616
|
return this.send(command, optionsOrCb);
|
|
622
617
|
}
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
|
|
618
|
+
}
|
|
619
|
+
verifySMSSandboxPhoneNumber(args, optionsOrCb, cb) {
|
|
620
|
+
const command = new VerifySMSSandboxPhoneNumberCommand(args);
|
|
626
621
|
if (typeof optionsOrCb === "function") {
|
|
627
622
|
this.send(command, optionsOrCb);
|
|
628
623
|
}
|
|
629
624
|
else if (typeof cb === "function") {
|
|
630
625
|
if (typeof optionsOrCb !== "object")
|
|
631
|
-
throw new Error(
|
|
626
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
632
627
|
this.send(command, optionsOrCb || {}, cb);
|
|
633
628
|
}
|
|
634
629
|
else {
|
|
635
630
|
return this.send(command, optionsOrCb);
|
|
636
631
|
}
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
}(SNSClient));
|
|
640
|
-
export { SNS };
|
|
632
|
+
}
|
|
633
|
+
}
|