@aws-sdk/client-sns 3.378.0 → 3.382.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export interface ClientInputEndpointParameters {
|
|
3
6
|
region?: string | Provider<string>;
|
|
4
7
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
package/dist-types/index.d.ts
CHANGED
|
@@ -5,20 +5,24 @@ import { SNSServiceException as __BaseException } from "./SNSServiceException";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface AddPermissionInput {
|
|
7
7
|
/**
|
|
8
|
+
* @public
|
|
8
9
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|
9
10
|
*/
|
|
10
11
|
TopicArn: string | undefined;
|
|
11
12
|
/**
|
|
13
|
+
* @public
|
|
12
14
|
* <p>A unique identifier for the new policy statement.</p>
|
|
13
15
|
*/
|
|
14
16
|
Label: string | undefined;
|
|
15
17
|
/**
|
|
18
|
+
* @public
|
|
16
19
|
* <p>The Amazon Web Services account IDs of the users (principals) who will be given access to the
|
|
17
20
|
* specified actions. The users must have Amazon Web Services account, but do not need to be signed up
|
|
18
21
|
* for this service.</p>
|
|
19
22
|
*/
|
|
20
23
|
AWSAccountId: string[] | undefined;
|
|
21
24
|
/**
|
|
25
|
+
* @public
|
|
22
26
|
* <p>The action you want to allow for the specified principal(s).</p>
|
|
23
27
|
* <p>Valid values: Any Amazon SNS action name, for example <code>Publish</code>.</p>
|
|
24
28
|
*/
|
|
@@ -79,6 +83,7 @@ export declare class NotFoundException extends __BaseException {
|
|
|
79
83
|
*/
|
|
80
84
|
export interface CheckIfPhoneNumberIsOptedOutInput {
|
|
81
85
|
/**
|
|
86
|
+
* @public
|
|
82
87
|
* <p>The phone number for which you want to check the opt out status.</p>
|
|
83
88
|
*/
|
|
84
89
|
phoneNumber: string | undefined;
|
|
@@ -89,6 +94,7 @@ export interface CheckIfPhoneNumberIsOptedOutInput {
|
|
|
89
94
|
*/
|
|
90
95
|
export interface CheckIfPhoneNumberIsOptedOutResponse {
|
|
91
96
|
/**
|
|
97
|
+
* @public
|
|
92
98
|
* <p>Indicates whether the phone number is opted out:</p>
|
|
93
99
|
* <ul>
|
|
94
100
|
* <li>
|
|
@@ -123,14 +129,17 @@ export declare class ThrottledException extends __BaseException {
|
|
|
123
129
|
*/
|
|
124
130
|
export interface ConfirmSubscriptionInput {
|
|
125
131
|
/**
|
|
132
|
+
* @public
|
|
126
133
|
* <p>The ARN of the topic for which you wish to confirm a subscription.</p>
|
|
127
134
|
*/
|
|
128
135
|
TopicArn: string | undefined;
|
|
129
136
|
/**
|
|
137
|
+
* @public
|
|
130
138
|
* <p>Short-lived token sent to an endpoint during the <code>Subscribe</code> action.</p>
|
|
131
139
|
*/
|
|
132
140
|
Token: string | undefined;
|
|
133
141
|
/**
|
|
142
|
+
* @public
|
|
134
143
|
* <p>Disallows unauthenticated unsubscribes of the subscription. If the value of this
|
|
135
144
|
* parameter is <code>true</code> and the request has an Amazon Web Services signature, then only the
|
|
136
145
|
* topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe
|
|
@@ -144,6 +153,7 @@ export interface ConfirmSubscriptionInput {
|
|
|
144
153
|
*/
|
|
145
154
|
export interface ConfirmSubscriptionResponse {
|
|
146
155
|
/**
|
|
156
|
+
* @public
|
|
147
157
|
* <p>The ARN of the created subscription.</p>
|
|
148
158
|
*/
|
|
149
159
|
SubscriptionArn?: string;
|
|
@@ -181,17 +191,20 @@ export declare class SubscriptionLimitExceededException extends __BaseException
|
|
|
181
191
|
*/
|
|
182
192
|
export interface CreatePlatformApplicationInput {
|
|
183
193
|
/**
|
|
194
|
+
* @public
|
|
184
195
|
* <p>Application names must be made up of only uppercase and lowercase ASCII letters,
|
|
185
196
|
* numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters
|
|
186
197
|
* long.</p>
|
|
187
198
|
*/
|
|
188
199
|
Name: string | undefined;
|
|
189
200
|
/**
|
|
201
|
+
* @public
|
|
190
202
|
* <p>The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push
|
|
191
203
|
* Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).</p>
|
|
192
204
|
*/
|
|
193
205
|
Platform: string | undefined;
|
|
194
206
|
/**
|
|
207
|
+
* @public
|
|
195
208
|
* <p>For a list of attributes, see <a href="https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html">SetPlatformApplicationAttributes</a>.</p>
|
|
196
209
|
*/
|
|
197
210
|
Attributes: Record<string, string> | undefined;
|
|
@@ -202,6 +215,7 @@ export interface CreatePlatformApplicationInput {
|
|
|
202
215
|
*/
|
|
203
216
|
export interface CreatePlatformApplicationResponse {
|
|
204
217
|
/**
|
|
218
|
+
* @public
|
|
205
219
|
* <p>PlatformApplicationArn is returned.</p>
|
|
206
220
|
*/
|
|
207
221
|
PlatformApplicationArn?: string;
|
|
@@ -212,6 +226,7 @@ export interface CreatePlatformApplicationResponse {
|
|
|
212
226
|
*/
|
|
213
227
|
export interface CreateEndpointResponse {
|
|
214
228
|
/**
|
|
229
|
+
* @public
|
|
215
230
|
* <p>EndpointArn returned from CreateEndpoint action.</p>
|
|
216
231
|
*/
|
|
217
232
|
EndpointArn?: string;
|
|
@@ -222,11 +237,13 @@ export interface CreateEndpointResponse {
|
|
|
222
237
|
*/
|
|
223
238
|
export interface CreatePlatformEndpointInput {
|
|
224
239
|
/**
|
|
240
|
+
* @public
|
|
225
241
|
* <p>PlatformApplicationArn returned from CreatePlatformApplication is used to create a an
|
|
226
242
|
* endpoint.</p>
|
|
227
243
|
*/
|
|
228
244
|
PlatformApplicationArn: string | undefined;
|
|
229
245
|
/**
|
|
246
|
+
* @public
|
|
230
247
|
* <p>Unique identifier created by the notification service for an app on a device. The
|
|
231
248
|
* specific name for Token will vary, depending on which notification service is being
|
|
232
249
|
* used. For example, when using APNS as the notification service, you need the device
|
|
@@ -235,11 +252,13 @@ export interface CreatePlatformEndpointInput {
|
|
|
235
252
|
*/
|
|
236
253
|
Token: string | undefined;
|
|
237
254
|
/**
|
|
255
|
+
* @public
|
|
238
256
|
* <p>Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The
|
|
239
257
|
* data must be in UTF-8 format and less than 2KB.</p>
|
|
240
258
|
*/
|
|
241
259
|
CustomUserData?: string;
|
|
242
260
|
/**
|
|
261
|
+
* @public
|
|
243
262
|
* <p>For a list of attributes, see <a href="https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html">SetEndpointAttributes</a>.</p>
|
|
244
263
|
*/
|
|
245
264
|
Attributes?: Record<string, string>;
|
|
@@ -272,11 +291,13 @@ export type LanguageCodeString = (typeof LanguageCodeString)[keyof typeof Langua
|
|
|
272
291
|
*/
|
|
273
292
|
export interface CreateSMSSandboxPhoneNumberInput {
|
|
274
293
|
/**
|
|
294
|
+
* @public
|
|
275
295
|
* <p>The destination phone number to verify. On verification, Amazon SNS adds this phone number
|
|
276
296
|
* to the list of verified phone numbers that you can send SMS messages to.</p>
|
|
277
297
|
*/
|
|
278
298
|
PhoneNumber: string | undefined;
|
|
279
299
|
/**
|
|
300
|
+
* @public
|
|
280
301
|
* <p>The language to use for sending the OTP. The default value is
|
|
281
302
|
* <code>en-US</code>.</p>
|
|
282
303
|
*/
|
|
@@ -332,10 +353,12 @@ export declare class ConcurrentAccessException extends __BaseException {
|
|
|
332
353
|
*/
|
|
333
354
|
export interface Tag {
|
|
334
355
|
/**
|
|
356
|
+
* @public
|
|
335
357
|
* <p>The required key portion of the tag.</p>
|
|
336
358
|
*/
|
|
337
359
|
Key: string | undefined;
|
|
338
360
|
/**
|
|
361
|
+
* @public
|
|
339
362
|
* <p>The optional value portion of the tag.</p>
|
|
340
363
|
*/
|
|
341
364
|
Value: string | undefined;
|
|
@@ -346,6 +369,7 @@ export interface Tag {
|
|
|
346
369
|
*/
|
|
347
370
|
export interface CreateTopicInput {
|
|
348
371
|
/**
|
|
372
|
+
* @public
|
|
349
373
|
* <p>The name of the topic you want to create.</p>
|
|
350
374
|
* <p>Constraints: Topic names must be made up of only uppercase and lowercase ASCII
|
|
351
375
|
* letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters
|
|
@@ -355,6 +379,7 @@ export interface CreateTopicInput {
|
|
|
355
379
|
*/
|
|
356
380
|
Name: string | undefined;
|
|
357
381
|
/**
|
|
382
|
+
* @public
|
|
358
383
|
* <p>A map of attributes with their corresponding values.</p>
|
|
359
384
|
* <p>The following lists the names, descriptions, and values of the special request
|
|
360
385
|
* parameters that the <code>CreateTopic</code> action uses:</p>
|
|
@@ -438,6 +463,7 @@ export interface CreateTopicInput {
|
|
|
438
463
|
*/
|
|
439
464
|
Attributes?: Record<string, string>;
|
|
440
465
|
/**
|
|
466
|
+
* @public
|
|
441
467
|
* <p>The list of tags to add to a new topic.</p>
|
|
442
468
|
* <note>
|
|
443
469
|
* <p>To be able to tag a topic on creation, you must have the
|
|
@@ -447,6 +473,7 @@ export interface CreateTopicInput {
|
|
|
447
473
|
*/
|
|
448
474
|
Tags?: Tag[];
|
|
449
475
|
/**
|
|
476
|
+
* @public
|
|
450
477
|
* <p>The body of the policy document you want to use for this topic.</p>
|
|
451
478
|
* <p>You can only add one policy per topic.</p>
|
|
452
479
|
* <p>The policy must be in JSON string format.</p>
|
|
@@ -460,6 +487,7 @@ export interface CreateTopicInput {
|
|
|
460
487
|
*/
|
|
461
488
|
export interface CreateTopicResponse {
|
|
462
489
|
/**
|
|
490
|
+
* @public
|
|
463
491
|
* <p>The Amazon Resource Name (ARN) assigned to the created topic.</p>
|
|
464
492
|
*/
|
|
465
493
|
TopicArn?: string;
|
|
@@ -533,6 +561,7 @@ export declare class TopicLimitExceededException extends __BaseException {
|
|
|
533
561
|
*/
|
|
534
562
|
export interface DeleteEndpointInput {
|
|
535
563
|
/**
|
|
564
|
+
* @public
|
|
536
565
|
* <p>EndpointArn of endpoint to delete.</p>
|
|
537
566
|
*/
|
|
538
567
|
EndpointArn: string | undefined;
|
|
@@ -543,6 +572,7 @@ export interface DeleteEndpointInput {
|
|
|
543
572
|
*/
|
|
544
573
|
export interface DeletePlatformApplicationInput {
|
|
545
574
|
/**
|
|
575
|
+
* @public
|
|
546
576
|
* <p>PlatformApplicationArn of platform application object to delete.</p>
|
|
547
577
|
*/
|
|
548
578
|
PlatformApplicationArn: string | undefined;
|
|
@@ -552,6 +582,7 @@ export interface DeletePlatformApplicationInput {
|
|
|
552
582
|
*/
|
|
553
583
|
export interface DeleteSMSSandboxPhoneNumberInput {
|
|
554
584
|
/**
|
|
585
|
+
* @public
|
|
555
586
|
* <p>The destination phone number to delete.</p>
|
|
556
587
|
*/
|
|
557
588
|
PhoneNumber: string | undefined;
|
|
@@ -579,6 +610,7 @@ export declare class ResourceNotFoundException extends __BaseException {
|
|
|
579
610
|
*/
|
|
580
611
|
export interface DeleteTopicInput {
|
|
581
612
|
/**
|
|
613
|
+
* @public
|
|
582
614
|
* <p>The ARN of the topic you want to delete.</p>
|
|
583
615
|
*/
|
|
584
616
|
TopicArn: string | undefined;
|
|
@@ -588,6 +620,7 @@ export interface DeleteTopicInput {
|
|
|
588
620
|
*/
|
|
589
621
|
export interface GetDataProtectionPolicyInput {
|
|
590
622
|
/**
|
|
623
|
+
* @public
|
|
591
624
|
* <p>The ARN of the topic whose <code>DataProtectionPolicy</code> you want to get.</p>
|
|
592
625
|
* <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names
|
|
593
626
|
* (ARNs)</a> in the Amazon Web Services General Reference.</p>
|
|
@@ -599,6 +632,7 @@ export interface GetDataProtectionPolicyInput {
|
|
|
599
632
|
*/
|
|
600
633
|
export interface GetDataProtectionPolicyResponse {
|
|
601
634
|
/**
|
|
635
|
+
* @public
|
|
602
636
|
* <p>Retrieves the <code>DataProtectionPolicy</code> in JSON string format.</p>
|
|
603
637
|
*/
|
|
604
638
|
DataProtectionPolicy?: string;
|
|
@@ -609,6 +643,7 @@ export interface GetDataProtectionPolicyResponse {
|
|
|
609
643
|
*/
|
|
610
644
|
export interface GetEndpointAttributesInput {
|
|
611
645
|
/**
|
|
646
|
+
* @public
|
|
612
647
|
* <p>EndpointArn for GetEndpointAttributes input.</p>
|
|
613
648
|
*/
|
|
614
649
|
EndpointArn: string | undefined;
|
|
@@ -619,6 +654,7 @@ export interface GetEndpointAttributesInput {
|
|
|
619
654
|
*/
|
|
620
655
|
export interface GetEndpointAttributesResponse {
|
|
621
656
|
/**
|
|
657
|
+
* @public
|
|
622
658
|
* <p>Attributes include the following:</p>
|
|
623
659
|
* <ul>
|
|
624
660
|
* <li>
|
|
@@ -654,6 +690,7 @@ export interface GetEndpointAttributesResponse {
|
|
|
654
690
|
*/
|
|
655
691
|
export interface GetPlatformApplicationAttributesInput {
|
|
656
692
|
/**
|
|
693
|
+
* @public
|
|
657
694
|
* <p>PlatformApplicationArn for GetPlatformApplicationAttributesInput.</p>
|
|
658
695
|
*/
|
|
659
696
|
PlatformApplicationArn: string | undefined;
|
|
@@ -664,6 +701,7 @@ export interface GetPlatformApplicationAttributesInput {
|
|
|
664
701
|
*/
|
|
665
702
|
export interface GetPlatformApplicationAttributesResponse {
|
|
666
703
|
/**
|
|
704
|
+
* @public
|
|
667
705
|
* <p>Attributes include the following:</p>
|
|
668
706
|
* <ul>
|
|
669
707
|
* <li>
|
|
@@ -712,6 +750,7 @@ export interface GetPlatformApplicationAttributesResponse {
|
|
|
712
750
|
*/
|
|
713
751
|
export interface GetSMSAttributesInput {
|
|
714
752
|
/**
|
|
753
|
+
* @public
|
|
715
754
|
* <p>A list of the individual attribute names, such as <code>MonthlySpendLimit</code>, for
|
|
716
755
|
* which you want values.</p>
|
|
717
756
|
* <p>For all attribute names, see <a href="https://docs.aws.amazon.com/sns/latest/api/API_SetSMSAttributes.html">SetSMSAttributes</a>.</p>
|
|
@@ -725,6 +764,7 @@ export interface GetSMSAttributesInput {
|
|
|
725
764
|
*/
|
|
726
765
|
export interface GetSMSAttributesResponse {
|
|
727
766
|
/**
|
|
767
|
+
* @public
|
|
728
768
|
* <p>The SMS attribute names and their values.</p>
|
|
729
769
|
*/
|
|
730
770
|
attributes?: Record<string, string>;
|
|
@@ -739,6 +779,7 @@ export interface GetSMSSandboxAccountStatusInput {
|
|
|
739
779
|
*/
|
|
740
780
|
export interface GetSMSSandboxAccountStatusResult {
|
|
741
781
|
/**
|
|
782
|
+
* @public
|
|
742
783
|
* <p>Indicates whether the calling Amazon Web Services account is in the SMS sandbox.</p>
|
|
743
784
|
*/
|
|
744
785
|
IsInSandbox: boolean | undefined;
|
|
@@ -749,6 +790,7 @@ export interface GetSMSSandboxAccountStatusResult {
|
|
|
749
790
|
*/
|
|
750
791
|
export interface GetSubscriptionAttributesInput {
|
|
751
792
|
/**
|
|
793
|
+
* @public
|
|
752
794
|
* <p>The ARN of the subscription whose properties you want to get.</p>
|
|
753
795
|
*/
|
|
754
796
|
SubscriptionArn: string | undefined;
|
|
@@ -759,6 +801,7 @@ export interface GetSubscriptionAttributesInput {
|
|
|
759
801
|
*/
|
|
760
802
|
export interface GetSubscriptionAttributesResponse {
|
|
761
803
|
/**
|
|
804
|
+
* @public
|
|
762
805
|
* <p>A map of the subscription's attributes. Attributes in this map include the
|
|
763
806
|
* following:</p>
|
|
764
807
|
* <ul>
|
|
@@ -862,6 +905,7 @@ export interface GetSubscriptionAttributesResponse {
|
|
|
862
905
|
*/
|
|
863
906
|
export interface GetTopicAttributesInput {
|
|
864
907
|
/**
|
|
908
|
+
* @public
|
|
865
909
|
* <p>The ARN of the topic whose properties you want to get.</p>
|
|
866
910
|
*/
|
|
867
911
|
TopicArn: string | undefined;
|
|
@@ -872,6 +916,7 @@ export interface GetTopicAttributesInput {
|
|
|
872
916
|
*/
|
|
873
917
|
export interface GetTopicAttributesResponse {
|
|
874
918
|
/**
|
|
919
|
+
* @public
|
|
875
920
|
* <p>A map of the topic's attributes. Attributes in this map include the following:</p>
|
|
876
921
|
* <ul>
|
|
877
922
|
* <li>
|
|
@@ -996,10 +1041,12 @@ export interface GetTopicAttributesResponse {
|
|
|
996
1041
|
*/
|
|
997
1042
|
export interface ListEndpointsByPlatformApplicationInput {
|
|
998
1043
|
/**
|
|
1044
|
+
* @public
|
|
999
1045
|
* <p>PlatformApplicationArn for ListEndpointsByPlatformApplicationInput action.</p>
|
|
1000
1046
|
*/
|
|
1001
1047
|
PlatformApplicationArn: string | undefined;
|
|
1002
1048
|
/**
|
|
1049
|
+
* @public
|
|
1003
1050
|
* <p>NextToken string is used when calling ListEndpointsByPlatformApplication action to
|
|
1004
1051
|
* retrieve additional records that are available after the first page results.</p>
|
|
1005
1052
|
*/
|
|
@@ -1011,10 +1058,12 @@ export interface ListEndpointsByPlatformApplicationInput {
|
|
|
1011
1058
|
*/
|
|
1012
1059
|
export interface Endpoint {
|
|
1013
1060
|
/**
|
|
1061
|
+
* @public
|
|
1014
1062
|
* <p>The <code>EndpointArn</code> for mobile app and device.</p>
|
|
1015
1063
|
*/
|
|
1016
1064
|
EndpointArn?: string;
|
|
1017
1065
|
/**
|
|
1066
|
+
* @public
|
|
1018
1067
|
* <p>Attributes for endpoint.</p>
|
|
1019
1068
|
*/
|
|
1020
1069
|
Attributes?: Record<string, string>;
|
|
@@ -1025,10 +1074,12 @@ export interface Endpoint {
|
|
|
1025
1074
|
*/
|
|
1026
1075
|
export interface ListEndpointsByPlatformApplicationResponse {
|
|
1027
1076
|
/**
|
|
1077
|
+
* @public
|
|
1028
1078
|
* <p>Endpoints returned for ListEndpointsByPlatformApplication action.</p>
|
|
1029
1079
|
*/
|
|
1030
1080
|
Endpoints?: Endpoint[];
|
|
1031
1081
|
/**
|
|
1082
|
+
* @public
|
|
1032
1083
|
* <p>NextToken string is returned when calling ListEndpointsByPlatformApplication action if
|
|
1033
1084
|
* additional records are available after the first page results.</p>
|
|
1034
1085
|
*/
|
|
@@ -1039,10 +1090,12 @@ export interface ListEndpointsByPlatformApplicationResponse {
|
|
|
1039
1090
|
*/
|
|
1040
1091
|
export interface ListOriginationNumbersRequest {
|
|
1041
1092
|
/**
|
|
1093
|
+
* @public
|
|
1042
1094
|
* <p>Token that the previous <code>ListOriginationNumbers</code> request returns.</p>
|
|
1043
1095
|
*/
|
|
1044
1096
|
NextToken?: string;
|
|
1045
1097
|
/**
|
|
1098
|
+
* @public
|
|
1046
1099
|
* <p>The maximum number of origination numbers to return.</p>
|
|
1047
1100
|
*/
|
|
1048
1101
|
MaxResults?: number;
|
|
@@ -1079,26 +1132,32 @@ export type RouteType = (typeof RouteType)[keyof typeof RouteType];
|
|
|
1079
1132
|
*/
|
|
1080
1133
|
export interface PhoneNumberInformation {
|
|
1081
1134
|
/**
|
|
1135
|
+
* @public
|
|
1082
1136
|
* <p>The date and time when the phone number was created.</p>
|
|
1083
1137
|
*/
|
|
1084
1138
|
CreatedAt?: Date;
|
|
1085
1139
|
/**
|
|
1140
|
+
* @public
|
|
1086
1141
|
* <p>The phone number.</p>
|
|
1087
1142
|
*/
|
|
1088
1143
|
PhoneNumber?: string;
|
|
1089
1144
|
/**
|
|
1145
|
+
* @public
|
|
1090
1146
|
* <p>The status of the phone number.</p>
|
|
1091
1147
|
*/
|
|
1092
1148
|
Status?: string;
|
|
1093
1149
|
/**
|
|
1150
|
+
* @public
|
|
1094
1151
|
* <p>The two-character code for the country or region, in ISO 3166-1 alpha-2 format.</p>
|
|
1095
1152
|
*/
|
|
1096
1153
|
Iso2CountryCode?: string;
|
|
1097
1154
|
/**
|
|
1155
|
+
* @public
|
|
1098
1156
|
* <p>The list of supported routes.</p>
|
|
1099
1157
|
*/
|
|
1100
1158
|
RouteType?: RouteType | string;
|
|
1101
1159
|
/**
|
|
1160
|
+
* @public
|
|
1102
1161
|
* <p>The capabilities of each phone number.</p>
|
|
1103
1162
|
*/
|
|
1104
1163
|
NumberCapabilities?: (NumberCapability | string)[];
|
|
@@ -1108,12 +1167,14 @@ export interface PhoneNumberInformation {
|
|
|
1108
1167
|
*/
|
|
1109
1168
|
export interface ListOriginationNumbersResult {
|
|
1110
1169
|
/**
|
|
1170
|
+
* @public
|
|
1111
1171
|
* <p>A <code>NextToken</code> string is returned when you call the
|
|
1112
1172
|
* <code>ListOriginationNumbers</code> operation if additional pages of records are
|
|
1113
1173
|
* available.</p>
|
|
1114
1174
|
*/
|
|
1115
1175
|
NextToken?: string;
|
|
1116
1176
|
/**
|
|
1177
|
+
* @public
|
|
1117
1178
|
* <p>A list of the calling account's verified and pending origination numbers.</p>
|
|
1118
1179
|
*/
|
|
1119
1180
|
PhoneNumbers?: PhoneNumberInformation[];
|
|
@@ -1137,6 +1198,7 @@ export declare class ValidationException extends __BaseException {
|
|
|
1137
1198
|
*/
|
|
1138
1199
|
export interface ListPhoneNumbersOptedOutInput {
|
|
1139
1200
|
/**
|
|
1201
|
+
* @public
|
|
1140
1202
|
* <p>A <code>NextToken</code> string is used when you call the
|
|
1141
1203
|
* <code>ListPhoneNumbersOptedOut</code> action to retrieve additional records that are
|
|
1142
1204
|
* available after the first page of results.</p>
|
|
@@ -1149,11 +1211,13 @@ export interface ListPhoneNumbersOptedOutInput {
|
|
|
1149
1211
|
*/
|
|
1150
1212
|
export interface ListPhoneNumbersOptedOutResponse {
|
|
1151
1213
|
/**
|
|
1214
|
+
* @public
|
|
1152
1215
|
* <p>A list of phone numbers that are opted out of receiving SMS messages. The list is
|
|
1153
1216
|
* paginated, and each page can contain up to 100 phone numbers.</p>
|
|
1154
1217
|
*/
|
|
1155
1218
|
phoneNumbers?: string[];
|
|
1156
1219
|
/**
|
|
1220
|
+
* @public
|
|
1157
1221
|
* <p>A <code>NextToken</code> string is returned when you call the
|
|
1158
1222
|
* <code>ListPhoneNumbersOptedOut</code> action if additional records are available
|
|
1159
1223
|
* after the first page of results.</p>
|
|
@@ -1166,6 +1230,7 @@ export interface ListPhoneNumbersOptedOutResponse {
|
|
|
1166
1230
|
*/
|
|
1167
1231
|
export interface ListPlatformApplicationsInput {
|
|
1168
1232
|
/**
|
|
1233
|
+
* @public
|
|
1169
1234
|
* <p>NextToken string is used when calling ListPlatformApplications action to retrieve
|
|
1170
1235
|
* additional records that are available after the first page results.</p>
|
|
1171
1236
|
*/
|
|
@@ -1177,10 +1242,12 @@ export interface ListPlatformApplicationsInput {
|
|
|
1177
1242
|
*/
|
|
1178
1243
|
export interface PlatformApplication {
|
|
1179
1244
|
/**
|
|
1245
|
+
* @public
|
|
1180
1246
|
* <p>PlatformApplicationArn for platform application object.</p>
|
|
1181
1247
|
*/
|
|
1182
1248
|
PlatformApplicationArn?: string;
|
|
1183
1249
|
/**
|
|
1250
|
+
* @public
|
|
1184
1251
|
* <p>Attributes for platform application object.</p>
|
|
1185
1252
|
*/
|
|
1186
1253
|
Attributes?: Record<string, string>;
|
|
@@ -1191,10 +1258,12 @@ export interface PlatformApplication {
|
|
|
1191
1258
|
*/
|
|
1192
1259
|
export interface ListPlatformApplicationsResponse {
|
|
1193
1260
|
/**
|
|
1261
|
+
* @public
|
|
1194
1262
|
* <p>Platform applications returned when calling ListPlatformApplications action.</p>
|
|
1195
1263
|
*/
|
|
1196
1264
|
PlatformApplications?: PlatformApplication[];
|
|
1197
1265
|
/**
|
|
1266
|
+
* @public
|
|
1198
1267
|
* <p>NextToken string is returned when calling ListPlatformApplications action if
|
|
1199
1268
|
* additional records are available after the first page results.</p>
|
|
1200
1269
|
*/
|
|
@@ -1205,11 +1274,13 @@ export interface ListPlatformApplicationsResponse {
|
|
|
1205
1274
|
*/
|
|
1206
1275
|
export interface ListSMSSandboxPhoneNumbersInput {
|
|
1207
1276
|
/**
|
|
1277
|
+
* @public
|
|
1208
1278
|
* <p>Token that the previous <code>ListSMSSandboxPhoneNumbersInput</code> request
|
|
1209
1279
|
* returns.</p>
|
|
1210
1280
|
*/
|
|
1211
1281
|
NextToken?: string;
|
|
1212
1282
|
/**
|
|
1283
|
+
* @public
|
|
1213
1284
|
* <p>The maximum number of phone numbers to return.</p>
|
|
1214
1285
|
*/
|
|
1215
1286
|
MaxResults?: number;
|
|
@@ -1240,10 +1311,12 @@ export type SMSSandboxPhoneNumberVerificationStatus = (typeof SMSSandboxPhoneNum
|
|
|
1240
1311
|
*/
|
|
1241
1312
|
export interface SMSSandboxPhoneNumber {
|
|
1242
1313
|
/**
|
|
1314
|
+
* @public
|
|
1243
1315
|
* <p>The destination phone number.</p>
|
|
1244
1316
|
*/
|
|
1245
1317
|
PhoneNumber?: string;
|
|
1246
1318
|
/**
|
|
1319
|
+
* @public
|
|
1247
1320
|
* <p>The destination phone number's verification status.</p>
|
|
1248
1321
|
*/
|
|
1249
1322
|
Status?: SMSSandboxPhoneNumberVerificationStatus | string;
|
|
@@ -1253,10 +1326,12 @@ export interface SMSSandboxPhoneNumber {
|
|
|
1253
1326
|
*/
|
|
1254
1327
|
export interface ListSMSSandboxPhoneNumbersResult {
|
|
1255
1328
|
/**
|
|
1329
|
+
* @public
|
|
1256
1330
|
* <p>A list of the calling account's pending and verified phone numbers.</p>
|
|
1257
1331
|
*/
|
|
1258
1332
|
PhoneNumbers: SMSSandboxPhoneNumber[] | undefined;
|
|
1259
1333
|
/**
|
|
1334
|
+
* @public
|
|
1260
1335
|
* <p>A <code>NextToken</code> string is returned when you call the
|
|
1261
1336
|
* <code>ListSMSSandboxPhoneNumbersInput</code> operation if additional pages of
|
|
1262
1337
|
* records are available.</p>
|
|
@@ -1269,6 +1344,7 @@ export interface ListSMSSandboxPhoneNumbersResult {
|
|
|
1269
1344
|
*/
|
|
1270
1345
|
export interface ListSubscriptionsInput {
|
|
1271
1346
|
/**
|
|
1347
|
+
* @public
|
|
1272
1348
|
* <p>Token returned by the previous <code>ListSubscriptions</code> request.</p>
|
|
1273
1349
|
*/
|
|
1274
1350
|
NextToken?: string;
|
|
@@ -1279,22 +1355,27 @@ export interface ListSubscriptionsInput {
|
|
|
1279
1355
|
*/
|
|
1280
1356
|
export interface Subscription {
|
|
1281
1357
|
/**
|
|
1358
|
+
* @public
|
|
1282
1359
|
* <p>The subscription's ARN.</p>
|
|
1283
1360
|
*/
|
|
1284
1361
|
SubscriptionArn?: string;
|
|
1285
1362
|
/**
|
|
1363
|
+
* @public
|
|
1286
1364
|
* <p>The subscription's owner.</p>
|
|
1287
1365
|
*/
|
|
1288
1366
|
Owner?: string;
|
|
1289
1367
|
/**
|
|
1368
|
+
* @public
|
|
1290
1369
|
* <p>The subscription's protocol.</p>
|
|
1291
1370
|
*/
|
|
1292
1371
|
Protocol?: string;
|
|
1293
1372
|
/**
|
|
1373
|
+
* @public
|
|
1294
1374
|
* <p>The subscription's endpoint (format depends on the protocol).</p>
|
|
1295
1375
|
*/
|
|
1296
1376
|
Endpoint?: string;
|
|
1297
1377
|
/**
|
|
1378
|
+
* @public
|
|
1298
1379
|
* <p>The ARN of the subscription's topic.</p>
|
|
1299
1380
|
*/
|
|
1300
1381
|
TopicArn?: string;
|
|
@@ -1305,10 +1386,12 @@ export interface Subscription {
|
|
|
1305
1386
|
*/
|
|
1306
1387
|
export interface ListSubscriptionsResponse {
|
|
1307
1388
|
/**
|
|
1389
|
+
* @public
|
|
1308
1390
|
* <p>A list of subscriptions.</p>
|
|
1309
1391
|
*/
|
|
1310
1392
|
Subscriptions?: Subscription[];
|
|
1311
1393
|
/**
|
|
1394
|
+
* @public
|
|
1312
1395
|
* <p>Token to pass along to the next <code>ListSubscriptions</code> request. This element
|
|
1313
1396
|
* is returned if there are more subscriptions to retrieve.</p>
|
|
1314
1397
|
*/
|
|
@@ -1320,10 +1403,12 @@ export interface ListSubscriptionsResponse {
|
|
|
1320
1403
|
*/
|
|
1321
1404
|
export interface ListSubscriptionsByTopicInput {
|
|
1322
1405
|
/**
|
|
1406
|
+
* @public
|
|
1323
1407
|
* <p>The ARN of the topic for which you wish to find subscriptions.</p>
|
|
1324
1408
|
*/
|
|
1325
1409
|
TopicArn: string | undefined;
|
|
1326
1410
|
/**
|
|
1411
|
+
* @public
|
|
1327
1412
|
* <p>Token returned by the previous <code>ListSubscriptionsByTopic</code> request.</p>
|
|
1328
1413
|
*/
|
|
1329
1414
|
NextToken?: string;
|
|
@@ -1334,10 +1419,12 @@ export interface ListSubscriptionsByTopicInput {
|
|
|
1334
1419
|
*/
|
|
1335
1420
|
export interface ListSubscriptionsByTopicResponse {
|
|
1336
1421
|
/**
|
|
1422
|
+
* @public
|
|
1337
1423
|
* <p>A list of subscriptions.</p>
|
|
1338
1424
|
*/
|
|
1339
1425
|
Subscriptions?: Subscription[];
|
|
1340
1426
|
/**
|
|
1427
|
+
* @public
|
|
1341
1428
|
* <p>Token to pass along to the next <code>ListSubscriptionsByTopic</code> request. This
|
|
1342
1429
|
* element is returned if there are more subscriptions to retrieve.</p>
|
|
1343
1430
|
*/
|
|
@@ -1348,6 +1435,7 @@ export interface ListSubscriptionsByTopicResponse {
|
|
|
1348
1435
|
*/
|
|
1349
1436
|
export interface ListTagsForResourceRequest {
|
|
1350
1437
|
/**
|
|
1438
|
+
* @public
|
|
1351
1439
|
* <p>The ARN of the topic for which to list tags.</p>
|
|
1352
1440
|
*/
|
|
1353
1441
|
ResourceArn: string | undefined;
|
|
@@ -1357,6 +1445,7 @@ export interface ListTagsForResourceRequest {
|
|
|
1357
1445
|
*/
|
|
1358
1446
|
export interface ListTagsForResourceResponse {
|
|
1359
1447
|
/**
|
|
1448
|
+
* @public
|
|
1360
1449
|
* <p>The tags associated with the specified topic.</p>
|
|
1361
1450
|
*/
|
|
1362
1451
|
Tags?: Tag[];
|
|
@@ -1366,6 +1455,7 @@ export interface ListTagsForResourceResponse {
|
|
|
1366
1455
|
*/
|
|
1367
1456
|
export interface ListTopicsInput {
|
|
1368
1457
|
/**
|
|
1458
|
+
* @public
|
|
1369
1459
|
* <p>Token returned by the previous <code>ListTopics</code> request.</p>
|
|
1370
1460
|
*/
|
|
1371
1461
|
NextToken?: string;
|
|
@@ -1377,6 +1467,7 @@ export interface ListTopicsInput {
|
|
|
1377
1467
|
*/
|
|
1378
1468
|
export interface Topic {
|
|
1379
1469
|
/**
|
|
1470
|
+
* @public
|
|
1380
1471
|
* <p>The topic's ARN.</p>
|
|
1381
1472
|
*/
|
|
1382
1473
|
TopicArn?: string;
|
|
@@ -1387,10 +1478,12 @@ export interface Topic {
|
|
|
1387
1478
|
*/
|
|
1388
1479
|
export interface ListTopicsResponse {
|
|
1389
1480
|
/**
|
|
1481
|
+
* @public
|
|
1390
1482
|
* <p>A list of topic ARNs.</p>
|
|
1391
1483
|
*/
|
|
1392
1484
|
Topics?: Topic[];
|
|
1393
1485
|
/**
|
|
1486
|
+
* @public
|
|
1394
1487
|
* <p>Token to pass along to the next <code>ListTopics</code> request. This element is
|
|
1395
1488
|
* returned if there are additional topics to retrieve.</p>
|
|
1396
1489
|
*/
|
|
@@ -1402,6 +1495,7 @@ export interface ListTopicsResponse {
|
|
|
1402
1495
|
*/
|
|
1403
1496
|
export interface OptInPhoneNumberInput {
|
|
1404
1497
|
/**
|
|
1498
|
+
* @public
|
|
1405
1499
|
* <p>The phone number to opt in. Use E.164 format.</p>
|
|
1406
1500
|
*/
|
|
1407
1501
|
phoneNumber: string | undefined;
|
|
@@ -1544,17 +1638,20 @@ export declare class PlatformApplicationDisabledException extends __BaseExceptio
|
|
|
1544
1638
|
*/
|
|
1545
1639
|
export interface MessageAttributeValue {
|
|
1546
1640
|
/**
|
|
1641
|
+
* @public
|
|
1547
1642
|
* <p>Amazon SNS supports the following logical data types: String, String.Array, Number, and
|
|
1548
1643
|
* Binary. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html#SNSMessageAttributes.DataTypes">Message
|
|
1549
1644
|
* Attribute Data Types</a>.</p>
|
|
1550
1645
|
*/
|
|
1551
1646
|
DataType: string | undefined;
|
|
1552
1647
|
/**
|
|
1648
|
+
* @public
|
|
1553
1649
|
* <p>Strings are Unicode with UTF8 binary encoding. For a list of code values, see <a href="https://en.wikipedia.org/wiki/ASCII#ASCII_printable_characters">ASCII Printable
|
|
1554
1650
|
* Characters</a>.</p>
|
|
1555
1651
|
*/
|
|
1556
1652
|
StringValue?: string;
|
|
1557
1653
|
/**
|
|
1654
|
+
* @public
|
|
1558
1655
|
* <p>Binary type attributes can store any binary data, for example, compressed data,
|
|
1559
1656
|
* encrypted data, or images.</p>
|
|
1560
1657
|
*/
|
|
@@ -1566,18 +1663,21 @@ export interface MessageAttributeValue {
|
|
|
1566
1663
|
*/
|
|
1567
1664
|
export interface PublishInput {
|
|
1568
1665
|
/**
|
|
1666
|
+
* @public
|
|
1569
1667
|
* <p>The topic you want to publish to.</p>
|
|
1570
1668
|
* <p>If you don't specify a value for the <code>TopicArn</code> parameter, you must specify
|
|
1571
1669
|
* a value for the <code>PhoneNumber</code> or <code>TargetArn</code> parameters.</p>
|
|
1572
1670
|
*/
|
|
1573
1671
|
TopicArn?: string;
|
|
1574
1672
|
/**
|
|
1673
|
+
* @public
|
|
1575
1674
|
* <p>If you don't specify a value for the <code>TargetArn</code> parameter, you must
|
|
1576
1675
|
* specify a value for the <code>PhoneNumber</code> or <code>TopicArn</code>
|
|
1577
1676
|
* parameters.</p>
|
|
1578
1677
|
*/
|
|
1579
1678
|
TargetArn?: string;
|
|
1580
1679
|
/**
|
|
1680
|
+
* @public
|
|
1581
1681
|
* <p>The phone number to which you want to deliver an SMS message. Use E.164 format.</p>
|
|
1582
1682
|
* <p>If you don't specify a value for the <code>PhoneNumber</code> parameter, you must
|
|
1583
1683
|
* specify a value for the <code>TargetArn</code> or <code>TopicArn</code>
|
|
@@ -1585,6 +1685,7 @@ export interface PublishInput {
|
|
|
1585
1685
|
*/
|
|
1586
1686
|
PhoneNumber?: string;
|
|
1587
1687
|
/**
|
|
1688
|
+
* @public
|
|
1588
1689
|
* <p>The message you want to send.</p>
|
|
1589
1690
|
* <p>If you are publishing to a topic and you want to send the same message to all
|
|
1590
1691
|
* transport protocols, include the text of the message as a String value. If you want to
|
|
@@ -1649,6 +1750,7 @@ export interface PublishInput {
|
|
|
1649
1750
|
*/
|
|
1650
1751
|
Message: string | undefined;
|
|
1651
1752
|
/**
|
|
1753
|
+
* @public
|
|
1652
1754
|
* <p>Optional parameter to be used as the "Subject" line when the message is delivered to
|
|
1653
1755
|
* email endpoints. This field will also be included, if present, in the standard JSON
|
|
1654
1756
|
* messages delivered to other endpoints.</p>
|
|
@@ -1658,6 +1760,7 @@ export interface PublishInput {
|
|
|
1658
1760
|
*/
|
|
1659
1761
|
Subject?: string;
|
|
1660
1762
|
/**
|
|
1763
|
+
* @public
|
|
1661
1764
|
* <p>Set <code>MessageStructure</code> to <code>json</code> if you want to send a different
|
|
1662
1765
|
* message for each protocol. For example, using one publish action, you can send a short
|
|
1663
1766
|
* message to your SMS subscribers and a longer message to your email subscribers. If you
|
|
@@ -1679,10 +1782,12 @@ export interface PublishInput {
|
|
|
1679
1782
|
*/
|
|
1680
1783
|
MessageStructure?: string;
|
|
1681
1784
|
/**
|
|
1785
|
+
* @public
|
|
1682
1786
|
* <p>Message attributes for Publish action.</p>
|
|
1683
1787
|
*/
|
|
1684
1788
|
MessageAttributes?: Record<string, MessageAttributeValue>;
|
|
1685
1789
|
/**
|
|
1790
|
+
* @public
|
|
1686
1791
|
* <p>This parameter applies only to FIFO (first-in-first-out) topics. The
|
|
1687
1792
|
* <code>MessageDeduplicationId</code> can contain up to 128 alphanumeric characters
|
|
1688
1793
|
* <code>(a-z, A-Z, 0-9)</code> and punctuation
|
|
@@ -1698,6 +1803,7 @@ export interface PublishInput {
|
|
|
1698
1803
|
*/
|
|
1699
1804
|
MessageDeduplicationId?: string;
|
|
1700
1805
|
/**
|
|
1806
|
+
* @public
|
|
1701
1807
|
* <p>This parameter applies only to FIFO (first-in-first-out) topics. The
|
|
1702
1808
|
* <code>MessageGroupId</code> can contain up to 128 alphanumeric characters
|
|
1703
1809
|
* <code>(a-z, A-Z, 0-9)</code> and punctuation
|
|
@@ -1715,11 +1821,13 @@ export interface PublishInput {
|
|
|
1715
1821
|
*/
|
|
1716
1822
|
export interface PublishResponse {
|
|
1717
1823
|
/**
|
|
1824
|
+
* @public
|
|
1718
1825
|
* <p>Unique identifier assigned to the published message.</p>
|
|
1719
1826
|
* <p>Length Constraint: Maximum 100 characters</p>
|
|
1720
1827
|
*/
|
|
1721
1828
|
MessageId?: string;
|
|
1722
1829
|
/**
|
|
1830
|
+
* @public
|
|
1723
1831
|
* <p>This response element applies only to FIFO (first-in-first-out) topics. </p>
|
|
1724
1832
|
* <p>The sequence number is a large, non-consecutive number that Amazon SNS assigns to each
|
|
1725
1833
|
* message. The length of <code>SequenceNumber</code> is 128 bits.
|
|
@@ -1783,6 +1891,7 @@ export declare class InvalidBatchEntryIdException extends __BaseException {
|
|
|
1783
1891
|
*/
|
|
1784
1892
|
export interface PublishBatchRequestEntry {
|
|
1785
1893
|
/**
|
|
1894
|
+
* @public
|
|
1786
1895
|
* <p>An identifier for the message in this batch.</p>
|
|
1787
1896
|
* <note>
|
|
1788
1897
|
* <p>The <code>Ids</code> of a batch request must be unique within a request. </p>
|
|
@@ -1792,14 +1901,17 @@ export interface PublishBatchRequestEntry {
|
|
|
1792
1901
|
*/
|
|
1793
1902
|
Id: string | undefined;
|
|
1794
1903
|
/**
|
|
1904
|
+
* @public
|
|
1795
1905
|
* <p>The body of the message.</p>
|
|
1796
1906
|
*/
|
|
1797
1907
|
Message: string | undefined;
|
|
1798
1908
|
/**
|
|
1909
|
+
* @public
|
|
1799
1910
|
* <p>The subject of the batch message.</p>
|
|
1800
1911
|
*/
|
|
1801
1912
|
Subject?: string;
|
|
1802
1913
|
/**
|
|
1914
|
+
* @public
|
|
1803
1915
|
* <p>Set <code>MessageStructure</code> to <code>json</code> if you want to send a different
|
|
1804
1916
|
* message for each protocol. For example, using one publish action, you can send a short
|
|
1805
1917
|
* message to your SMS subscribers and a longer message to your email subscribers. If you
|
|
@@ -1819,12 +1931,14 @@ export interface PublishBatchRequestEntry {
|
|
|
1819
1931
|
*/
|
|
1820
1932
|
MessageStructure?: string;
|
|
1821
1933
|
/**
|
|
1934
|
+
* @public
|
|
1822
1935
|
* <p>Each message attribute consists of a <code>Name</code>, <code>Type</code>, and
|
|
1823
1936
|
* <code>Value</code>. For more information, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-message-attributes.html">Amazon SNS message attributes</a> in
|
|
1824
1937
|
* the Amazon SNS Developer Guide.</p>
|
|
1825
1938
|
*/
|
|
1826
1939
|
MessageAttributes?: Record<string, MessageAttributeValue>;
|
|
1827
1940
|
/**
|
|
1941
|
+
* @public
|
|
1828
1942
|
* <p>This parameter applies only to FIFO (first-in-first-out) topics.</p>
|
|
1829
1943
|
* <p>The token used for deduplication of messages within a 5-minute minimum deduplication
|
|
1830
1944
|
* interval. If a message with a particular <code>MessageDeduplicationId</code> is sent
|
|
@@ -1887,6 +2001,7 @@ export interface PublishBatchRequestEntry {
|
|
|
1887
2001
|
*/
|
|
1888
2002
|
MessageDeduplicationId?: string;
|
|
1889
2003
|
/**
|
|
2004
|
+
* @public
|
|
1890
2005
|
* <p>This parameter applies only to FIFO (first-in-first-out) topics.</p>
|
|
1891
2006
|
* <p>The tag that specifies that a message belongs to a specific message group. Messages
|
|
1892
2007
|
* that belong to the same message group are processed in a FIFO manner (however, messages
|
|
@@ -1914,10 +2029,12 @@ export interface PublishBatchRequestEntry {
|
|
|
1914
2029
|
*/
|
|
1915
2030
|
export interface PublishBatchInput {
|
|
1916
2031
|
/**
|
|
2032
|
+
* @public
|
|
1917
2033
|
* <p>The Amazon resource name (ARN) of the topic you want to batch publish to.</p>
|
|
1918
2034
|
*/
|
|
1919
2035
|
TopicArn: string | undefined;
|
|
1920
2036
|
/**
|
|
2037
|
+
* @public
|
|
1921
2038
|
* <p>A list of <code>PublishBatch</code> request entries to be sent to the SNS
|
|
1922
2039
|
* topic.</p>
|
|
1923
2040
|
*/
|
|
@@ -1929,18 +2046,22 @@ export interface PublishBatchInput {
|
|
|
1929
2046
|
*/
|
|
1930
2047
|
export interface BatchResultErrorEntry {
|
|
1931
2048
|
/**
|
|
2049
|
+
* @public
|
|
1932
2050
|
* <p>The <code>Id</code> of an entry in a batch request</p>
|
|
1933
2051
|
*/
|
|
1934
2052
|
Id: string | undefined;
|
|
1935
2053
|
/**
|
|
2054
|
+
* @public
|
|
1936
2055
|
* <p>An error code representing why the action failed on this entry.</p>
|
|
1937
2056
|
*/
|
|
1938
2057
|
Code: string | undefined;
|
|
1939
2058
|
/**
|
|
2059
|
+
* @public
|
|
1940
2060
|
* <p>A message explaining why the action failed on this entry.</p>
|
|
1941
2061
|
*/
|
|
1942
2062
|
Message?: string;
|
|
1943
2063
|
/**
|
|
2064
|
+
* @public
|
|
1944
2065
|
* <p>Specifies whether the error happened due to the caller of the batch API action.</p>
|
|
1945
2066
|
*/
|
|
1946
2067
|
SenderFault: boolean | undefined;
|
|
@@ -1951,14 +2072,17 @@ export interface BatchResultErrorEntry {
|
|
|
1951
2072
|
*/
|
|
1952
2073
|
export interface PublishBatchResultEntry {
|
|
1953
2074
|
/**
|
|
2075
|
+
* @public
|
|
1954
2076
|
* <p>The <code>Id</code> of an entry in a batch request.</p>
|
|
1955
2077
|
*/
|
|
1956
2078
|
Id?: string;
|
|
1957
2079
|
/**
|
|
2080
|
+
* @public
|
|
1958
2081
|
* <p>An identifier for the message.</p>
|
|
1959
2082
|
*/
|
|
1960
2083
|
MessageId?: string;
|
|
1961
2084
|
/**
|
|
2085
|
+
* @public
|
|
1962
2086
|
* <p>This parameter applies only to FIFO (first-in-first-out) topics.</p>
|
|
1963
2087
|
* <p>The large, non-consecutive number that Amazon SNS assigns to each message.</p>
|
|
1964
2088
|
* <p>The length of <code>SequenceNumber</code> is 128 bits. <code>SequenceNumber</code>
|
|
@@ -1971,10 +2095,12 @@ export interface PublishBatchResultEntry {
|
|
|
1971
2095
|
*/
|
|
1972
2096
|
export interface PublishBatchResponse {
|
|
1973
2097
|
/**
|
|
2098
|
+
* @public
|
|
1974
2099
|
* <p>A list of successful <code>PublishBatch</code> responses.</p>
|
|
1975
2100
|
*/
|
|
1976
2101
|
Successful?: PublishBatchResultEntry[];
|
|
1977
2102
|
/**
|
|
2103
|
+
* @public
|
|
1978
2104
|
* <p>A list of failed <code>PublishBatch</code> responses. </p>
|
|
1979
2105
|
*/
|
|
1980
2106
|
Failed?: BatchResultErrorEntry[];
|
|
@@ -1996,6 +2122,7 @@ export declare class TooManyEntriesInBatchRequestException extends __BaseExcepti
|
|
|
1996
2122
|
*/
|
|
1997
2123
|
export interface PutDataProtectionPolicyInput {
|
|
1998
2124
|
/**
|
|
2125
|
+
* @public
|
|
1999
2126
|
* <p>The ARN of the topic whose <code>DataProtectionPolicy</code> you want to add or
|
|
2000
2127
|
* update.</p>
|
|
2001
2128
|
* <p>For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names
|
|
@@ -2003,6 +2130,7 @@ export interface PutDataProtectionPolicyInput {
|
|
|
2003
2130
|
*/
|
|
2004
2131
|
ResourceArn: string | undefined;
|
|
2005
2132
|
/**
|
|
2133
|
+
* @public
|
|
2006
2134
|
* <p>The JSON serialization of the topic's <code>DataProtectionPolicy</code>.</p>
|
|
2007
2135
|
* <p>The <code>DataProtectionPolicy</code> must be in JSON string format.</p>
|
|
2008
2136
|
* <p>Length Constraints: Maximum length of 30,720.</p>
|
|
@@ -2015,10 +2143,12 @@ export interface PutDataProtectionPolicyInput {
|
|
|
2015
2143
|
*/
|
|
2016
2144
|
export interface RemovePermissionInput {
|
|
2017
2145
|
/**
|
|
2146
|
+
* @public
|
|
2018
2147
|
* <p>The ARN of the topic whose access control policy you wish to modify.</p>
|
|
2019
2148
|
*/
|
|
2020
2149
|
TopicArn: string | undefined;
|
|
2021
2150
|
/**
|
|
2151
|
+
* @public
|
|
2022
2152
|
* <p>The unique label of the statement you want to remove.</p>
|
|
2023
2153
|
*/
|
|
2024
2154
|
Label: string | undefined;
|
|
@@ -2029,10 +2159,12 @@ export interface RemovePermissionInput {
|
|
|
2029
2159
|
*/
|
|
2030
2160
|
export interface SetEndpointAttributesInput {
|
|
2031
2161
|
/**
|
|
2162
|
+
* @public
|
|
2032
2163
|
* <p>EndpointArn used for SetEndpointAttributes action.</p>
|
|
2033
2164
|
*/
|
|
2034
2165
|
EndpointArn: string | undefined;
|
|
2035
2166
|
/**
|
|
2167
|
+
* @public
|
|
2036
2168
|
* <p>A map of the endpoint attributes. Attributes in this map include the following:</p>
|
|
2037
2169
|
* <ul>
|
|
2038
2170
|
* <li>
|
|
@@ -2065,10 +2197,12 @@ export interface SetEndpointAttributesInput {
|
|
|
2065
2197
|
*/
|
|
2066
2198
|
export interface SetPlatformApplicationAttributesInput {
|
|
2067
2199
|
/**
|
|
2200
|
+
* @public
|
|
2068
2201
|
* <p>PlatformApplicationArn for SetPlatformApplicationAttributes action.</p>
|
|
2069
2202
|
*/
|
|
2070
2203
|
PlatformApplicationArn: string | undefined;
|
|
2071
2204
|
/**
|
|
2205
|
+
* @public
|
|
2072
2206
|
* <p>A map of the platform application attributes. Attributes in this map include the
|
|
2073
2207
|
* following:</p>
|
|
2074
2208
|
* <ul>
|
|
@@ -2181,6 +2315,7 @@ export interface SetPlatformApplicationAttributesInput {
|
|
|
2181
2315
|
*/
|
|
2182
2316
|
export interface SetSMSAttributesInput {
|
|
2183
2317
|
/**
|
|
2318
|
+
* @public
|
|
2184
2319
|
* <p>The default settings for sending SMS messages from your Amazon Web Services account. You can set
|
|
2185
2320
|
* values for the following attribute names:</p>
|
|
2186
2321
|
* <p>
|
|
@@ -2282,10 +2417,12 @@ export interface SetSMSAttributesResponse {
|
|
|
2282
2417
|
*/
|
|
2283
2418
|
export interface SetSubscriptionAttributesInput {
|
|
2284
2419
|
/**
|
|
2420
|
+
* @public
|
|
2285
2421
|
* <p>The ARN of the subscription to modify.</p>
|
|
2286
2422
|
*/
|
|
2287
2423
|
SubscriptionArn: string | undefined;
|
|
2288
2424
|
/**
|
|
2425
|
+
* @public
|
|
2289
2426
|
* <p>A map of attributes with their corresponding values.</p>
|
|
2290
2427
|
* <p>The following lists the names, descriptions, and values of the special request
|
|
2291
2428
|
* parameters that this action uses:</p>
|
|
@@ -2354,6 +2491,7 @@ export interface SetSubscriptionAttributesInput {
|
|
|
2354
2491
|
*/
|
|
2355
2492
|
AttributeName: string | undefined;
|
|
2356
2493
|
/**
|
|
2494
|
+
* @public
|
|
2357
2495
|
* <p>The new value for the attribute in JSON format.</p>
|
|
2358
2496
|
*/
|
|
2359
2497
|
AttributeValue?: string;
|
|
@@ -2364,10 +2502,12 @@ export interface SetSubscriptionAttributesInput {
|
|
|
2364
2502
|
*/
|
|
2365
2503
|
export interface SetTopicAttributesInput {
|
|
2366
2504
|
/**
|
|
2505
|
+
* @public
|
|
2367
2506
|
* <p>The ARN of the topic to modify.</p>
|
|
2368
2507
|
*/
|
|
2369
2508
|
TopicArn: string | undefined;
|
|
2370
2509
|
/**
|
|
2510
|
+
* @public
|
|
2371
2511
|
* <p>A map of attributes with their corresponding values.</p>
|
|
2372
2512
|
* <p>The following lists the names, descriptions, and values of the special request
|
|
2373
2513
|
* parameters that the <code>SetTopicAttributes</code> action uses:</p>
|
|
@@ -2579,6 +2719,7 @@ export interface SetTopicAttributesInput {
|
|
|
2579
2719
|
*/
|
|
2580
2720
|
AttributeName: string | undefined;
|
|
2581
2721
|
/**
|
|
2722
|
+
* @public
|
|
2582
2723
|
* <p>The new value for the attribute.</p>
|
|
2583
2724
|
*/
|
|
2584
2725
|
AttributeValue?: string;
|
|
@@ -2589,10 +2730,12 @@ export interface SetTopicAttributesInput {
|
|
|
2589
2730
|
*/
|
|
2590
2731
|
export interface SubscribeInput {
|
|
2591
2732
|
/**
|
|
2733
|
+
* @public
|
|
2592
2734
|
* <p>The ARN of the topic you want to subscribe to.</p>
|
|
2593
2735
|
*/
|
|
2594
2736
|
TopicArn: string | undefined;
|
|
2595
2737
|
/**
|
|
2738
|
+
* @public
|
|
2596
2739
|
* <p>The protocol that you want to use. Supported protocols include:</p>
|
|
2597
2740
|
* <ul>
|
|
2598
2741
|
* <li>
|
|
@@ -2642,6 +2785,7 @@ export interface SubscribeInput {
|
|
|
2642
2785
|
*/
|
|
2643
2786
|
Protocol: string | undefined;
|
|
2644
2787
|
/**
|
|
2788
|
+
* @public
|
|
2645
2789
|
* <p>The endpoint that you want to receive notifications. Endpoints vary by
|
|
2646
2790
|
* protocol:</p>
|
|
2647
2791
|
* <ul>
|
|
@@ -2684,6 +2828,7 @@ export interface SubscribeInput {
|
|
|
2684
2828
|
*/
|
|
2685
2829
|
Endpoint?: string;
|
|
2686
2830
|
/**
|
|
2831
|
+
* @public
|
|
2687
2832
|
* <p>A map of attributes with their corresponding values.</p>
|
|
2688
2833
|
* <p>The following lists the names, descriptions, and values of the special request
|
|
2689
2834
|
* parameters that the <code>Subscribe</code> action uses:</p>
|
|
@@ -2752,6 +2897,7 @@ export interface SubscribeInput {
|
|
|
2752
2897
|
*/
|
|
2753
2898
|
Attributes?: Record<string, string>;
|
|
2754
2899
|
/**
|
|
2900
|
+
* @public
|
|
2755
2901
|
* <p>Sets whether the response from the <code>Subscribe</code> request includes the
|
|
2756
2902
|
* subscription ARN, even if the subscription is not yet confirmed.</p>
|
|
2757
2903
|
* <p>If you set this parameter to <code>true</code>, the response includes the ARN in all
|
|
@@ -2771,6 +2917,7 @@ export interface SubscribeInput {
|
|
|
2771
2917
|
*/
|
|
2772
2918
|
export interface SubscribeResponse {
|
|
2773
2919
|
/**
|
|
2920
|
+
* @public
|
|
2774
2921
|
* <p>The ARN of the subscription if it is confirmed, or the string "pending confirmation"
|
|
2775
2922
|
* if the subscription requires confirmation. However, if the API request parameter
|
|
2776
2923
|
* <code>ReturnSubscriptionArn</code> is true, then the value is always the
|
|
@@ -2783,10 +2930,12 @@ export interface SubscribeResponse {
|
|
|
2783
2930
|
*/
|
|
2784
2931
|
export interface TagResourceRequest {
|
|
2785
2932
|
/**
|
|
2933
|
+
* @public
|
|
2786
2934
|
* <p>The ARN of the topic to which to add tags.</p>
|
|
2787
2935
|
*/
|
|
2788
2936
|
ResourceArn: string | undefined;
|
|
2789
2937
|
/**
|
|
2938
|
+
* @public
|
|
2790
2939
|
* <p>The tags to be added to the specified topic. A tag consists of a required key and an
|
|
2791
2940
|
* optional value.</p>
|
|
2792
2941
|
*/
|
|
@@ -2803,6 +2952,7 @@ export interface TagResourceResponse {
|
|
|
2803
2952
|
*/
|
|
2804
2953
|
export interface UnsubscribeInput {
|
|
2805
2954
|
/**
|
|
2955
|
+
* @public
|
|
2806
2956
|
* <p>The ARN of the subscription to be deleted.</p>
|
|
2807
2957
|
*/
|
|
2808
2958
|
SubscriptionArn: string | undefined;
|
|
@@ -2812,10 +2962,12 @@ export interface UnsubscribeInput {
|
|
|
2812
2962
|
*/
|
|
2813
2963
|
export interface UntagResourceRequest {
|
|
2814
2964
|
/**
|
|
2965
|
+
* @public
|
|
2815
2966
|
* <p>The ARN of the topic from which to remove tags.</p>
|
|
2816
2967
|
*/
|
|
2817
2968
|
ResourceArn: string | undefined;
|
|
2818
2969
|
/**
|
|
2970
|
+
* @public
|
|
2819
2971
|
* <p>The list of tag keys to remove from the specified topic.</p>
|
|
2820
2972
|
*/
|
|
2821
2973
|
TagKeys: string[] | undefined;
|
|
@@ -2834,6 +2986,7 @@ export declare class VerificationException extends __BaseException {
|
|
|
2834
2986
|
readonly $fault: "client";
|
|
2835
2987
|
Message: string | undefined;
|
|
2836
2988
|
/**
|
|
2989
|
+
* @public
|
|
2837
2990
|
* <p>The status of the verification error.</p>
|
|
2838
2991
|
*/
|
|
2839
2992
|
Status: string | undefined;
|
|
@@ -2847,10 +3000,12 @@ export declare class VerificationException extends __BaseException {
|
|
|
2847
3000
|
*/
|
|
2848
3001
|
export interface VerifySMSSandboxPhoneNumberInput {
|
|
2849
3002
|
/**
|
|
3003
|
+
* @public
|
|
2850
3004
|
* <p>The destination phone number to verify.</p>
|
|
2851
3005
|
*/
|
|
2852
3006
|
PhoneNumber: string | undefined;
|
|
2853
3007
|
/**
|
|
3008
|
+
* @public
|
|
2854
3009
|
* <p>The OTP sent to the destination number from the
|
|
2855
3010
|
* <code>CreateSMSSandBoxPhoneNumber</code> call.</p>
|
|
2856
3011
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sns",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sns Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.382.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.382.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.382.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.379.1",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.378.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.378.0",
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.379.1",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.382.0",
|
|
31
31
|
"@aws-sdk/types": "3.378.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.382.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.378.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-node": "3.378.0",
|
|
35
35
|
"@smithy/config-resolver": "^2.0.1",
|