/
AWSSNSResources.m
1970 lines (1958 loc) · 106 KB
/
AWSSNSResources.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//
// Copyright 2010-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License").
// You may not use this file except in compliance with the License.
// A copy of the License is located at
//
// http://aws.amazon.com/apache2.0
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations under the License.
//
#import "AWSSNSResources.h"
#import <AWSCore/AWSCocoaLumberjack.h>
@interface AWSSNSResources ()
@property (nonatomic, strong) NSDictionary *definitionDictionary;
@end
@implementation AWSSNSResources
+ (instancetype)sharedInstance {
static AWSSNSResources *_sharedResources = nil;
static dispatch_once_t once_token;
dispatch_once(&once_token, ^{
_sharedResources = [AWSSNSResources new];
});
return _sharedResources;
}
- (NSDictionary *)JSONObject {
return self.definitionDictionary;
}
- (instancetype)init {
if (self = [super init]) {
//init method
NSError *error = nil;
_definitionDictionary = [NSJSONSerialization JSONObjectWithData:[[self definitionString] dataUsingEncoding:NSUTF8StringEncoding]
options:kNilOptions
error:&error];
if (_definitionDictionary == nil) {
if (error) {
AWSDDLogError(@"Failed to parse JSON service definition: %@",error);
}
}
}
return self;
}
- (NSString *)definitionString {
return @"{\
\"version\":\"2.0\",\
\"metadata\":{\
\"apiVersion\":\"2010-03-31\",\
\"endpointPrefix\":\"sns\",\
\"protocol\":\"query\",\
\"serviceAbbreviation\":\"Amazon SNS\",\
\"serviceFullName\":\"Amazon Simple Notification Service\",\
\"serviceId\":\"SNS\",\
\"signatureVersion\":\"v4\",\
\"uid\":\"sns-2010-03-31\",\
\"xmlNamespace\":\"http://sns.amazonaws.com/doc/2010-03-31/\"\
},\
\"operations\":{\
\"AddPermission\":{\
\"name\":\"AddPermission\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"AddPermissionInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"}\
],\
\"documentation\":\"<p>Adds a statement to a topic's access control policy, granting access for the specified AWS accounts to the specified actions.</p>\"\
},\
\"CheckIfPhoneNumberIsOptedOut\":{\
\"name\":\"CheckIfPhoneNumberIsOptedOut\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CheckIfPhoneNumberIsOptedOutInput\"},\
\"output\":{\
\"shape\":\"CheckIfPhoneNumberIsOptedOutResponse\",\
\"resultWrapper\":\"CheckIfPhoneNumberIsOptedOutResult\"\
},\
\"errors\":[\
{\"shape\":\"ThrottledException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"InvalidParameterException\"}\
],\
\"documentation\":\"<p>Accepts a phone number and indicates whether the phone holder has opted out of receiving SMS messages from your account. You cannot send SMS messages to a number that is opted out.</p> <p>To resume sending messages, you can opt in the number by using the <code>OptInPhoneNumber</code> action.</p>\"\
},\
\"ConfirmSubscription\":{\
\"name\":\"ConfirmSubscription\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ConfirmSubscriptionInput\"},\
\"output\":{\
\"shape\":\"ConfirmSubscriptionResponse\",\
\"resultWrapper\":\"ConfirmSubscriptionResult\"\
},\
\"errors\":[\
{\"shape\":\"SubscriptionLimitExceededException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"FilterPolicyLimitExceededException\"}\
],\
\"documentation\":\"<p>Verifies an endpoint owner's intent to receive messages by validating the token sent to the endpoint by an earlier <code>Subscribe</code> action. If the token is valid, the action creates a new subscription and returns its Amazon Resource Name (ARN). This call requires an AWS signature only when the <code>AuthenticateOnUnsubscribe</code> flag is set to \\\"true\\\".</p>\"\
},\
\"CreatePlatformApplication\":{\
\"name\":\"CreatePlatformApplication\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreatePlatformApplicationInput\"},\
\"output\":{\
\"shape\":\"CreatePlatformApplicationResponse\",\
\"resultWrapper\":\"CreatePlatformApplicationResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Creates a platform application object for one of the supported push notification services, such as APNS and FCM, to which devices and mobile apps may register. You must specify PlatformPrincipal and PlatformCredential attributes when using the <code>CreatePlatformApplication</code> action. The PlatformPrincipal is received from the notification service. For APNS/APNS_SANDBOX, PlatformPrincipal is \\\"SSL certificate\\\". For FCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is \\\"client id\\\". The PlatformCredential is also received from the notification service. For WNS, PlatformPrincipal is \\\"Package Security Identifier\\\". For MPNS, PlatformPrincipal is \\\"TLS certificate\\\". For Baidu, PlatformPrincipal is \\\"API key\\\".</p> <p>For APNS/APNS_SANDBOX, PlatformCredential is \\\"private key\\\". For FCM, PlatformCredential is \\\"API key\\\". For ADM, PlatformCredential is \\\"client secret\\\". For WNS, PlatformCredential is \\\"secret key\\\". For MPNS, PlatformCredential is \\\"private key\\\". For Baidu, PlatformCredential is \\\"secret key\\\". The PlatformApplicationArn that is returned when using <code>CreatePlatformApplication</code> is then used as an attribute for the <code>CreatePlatformEndpoint</code> action.</p>\"\
},\
\"CreatePlatformEndpoint\":{\
\"name\":\"CreatePlatformEndpoint\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreatePlatformEndpointInput\"},\
\"output\":{\
\"shape\":\"CreateEndpointResponse\",\
\"resultWrapper\":\"CreatePlatformEndpointResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"}\
],\
\"documentation\":\"<p>Creates an endpoint for a device and mobile app on one of the supported push notification services, such as FCM and APNS. <code>CreatePlatformEndpoint</code> requires the PlatformApplicationArn that is returned from <code>CreatePlatformApplication</code>. The EndpointArn that is returned when using <code>CreatePlatformEndpoint</code> can then be used by the <code>Publish</code> action to send a message to a mobile app or by the <code>Subscribe</code> action for subscription to a topic. The <code>CreatePlatformEndpoint</code> action is idempotent, so if the requester already owns an endpoint with the same device token and attributes, that endpoint's ARN is returned without creating a new endpoint. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. </p> <p>When using <code>CreatePlatformEndpoint</code> with Baidu, two attributes must be provided: ChannelId and UserId. The token field must also contain the ChannelId. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePushBaiduEndpoint.html\\\">Creating an Amazon SNS Endpoint for Baidu</a>. </p>\"\
},\
\"CreateTopic\":{\
\"name\":\"CreateTopic\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"CreateTopicInput\"},\
\"output\":{\
\"shape\":\"CreateTopicResponse\",\
\"resultWrapper\":\"CreateTopicResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"TopicLimitExceededException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"InvalidSecurityException\"},\
{\"shape\":\"TagLimitExceededException\"},\
{\"shape\":\"StaleTagException\"},\
{\"shape\":\"TagPolicyException\"},\
{\"shape\":\"ConcurrentAccessException\"}\
],\
\"documentation\":\"<p>Creates a topic to which notifications can be published. Users can create at most 100,000 topics. For more information, see <a href=\\\"http://aws.amazon.com/sns/\\\">https://aws.amazon.com/sns</a>. This action is idempotent, so if the requester already owns a topic with the specified name, that topic's ARN is returned without creating a new topic.</p>\"\
},\
\"DeleteEndpoint\":{\
\"name\":\"DeleteEndpoint\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteEndpointInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Deletes the endpoint for a device and mobile app from Amazon SNS. This action is idempotent. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. </p> <p>When you delete an endpoint that is also subscribed to a topic, then you must also unsubscribe the endpoint from the topic.</p>\"\
},\
\"DeletePlatformApplication\":{\
\"name\":\"DeletePlatformApplication\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeletePlatformApplicationInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Deletes a platform application object for one of the supported push notification services, such as APNS and FCM. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. </p>\"\
},\
\"DeleteTopic\":{\
\"name\":\"DeleteTopic\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"DeleteTopicInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"StaleTagException\"},\
{\"shape\":\"TagPolicyException\"},\
{\"shape\":\"ConcurrentAccessException\"}\
],\
\"documentation\":\"<p>Deletes a topic and all its subscriptions. Deleting a topic might prevent some messages previously sent to the topic from being delivered to subscribers. This action is idempotent, so deleting a topic that does not exist does not result in an error.</p>\"\
},\
\"GetEndpointAttributes\":{\
\"name\":\"GetEndpointAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"GetEndpointAttributesInput\"},\
\"output\":{\
\"shape\":\"GetEndpointAttributesResponse\",\
\"resultWrapper\":\"GetEndpointAttributesResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"}\
],\
\"documentation\":\"<p>Retrieves the endpoint attributes for a device on one of the supported push notification services, such as FCM and APNS. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. </p>\"\
},\
\"GetPlatformApplicationAttributes\":{\
\"name\":\"GetPlatformApplicationAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"GetPlatformApplicationAttributesInput\"},\
\"output\":{\
\"shape\":\"GetPlatformApplicationAttributesResponse\",\
\"resultWrapper\":\"GetPlatformApplicationAttributesResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"}\
],\
\"documentation\":\"<p>Retrieves the attributes of the platform application object for the supported push notification services, such as APNS and FCM. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. </p>\"\
},\
\"GetSMSAttributes\":{\
\"name\":\"GetSMSAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"GetSMSAttributesInput\"},\
\"output\":{\
\"shape\":\"GetSMSAttributesResponse\",\
\"resultWrapper\":\"GetSMSAttributesResult\"\
},\
\"errors\":[\
{\"shape\":\"ThrottledException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"InvalidParameterException\"}\
],\
\"documentation\":\"<p>Returns the settings for sending SMS messages from your account.</p> <p>These settings are set with the <code>SetSMSAttributes</code> action.</p>\"\
},\
\"GetSubscriptionAttributes\":{\
\"name\":\"GetSubscriptionAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"GetSubscriptionAttributesInput\"},\
\"output\":{\
\"shape\":\"GetSubscriptionAttributesResponse\",\
\"resultWrapper\":\"GetSubscriptionAttributesResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Returns all of the properties of a subscription.</p>\"\
},\
\"GetTopicAttributes\":{\
\"name\":\"GetTopicAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"GetTopicAttributesInput\"},\
\"output\":{\
\"shape\":\"GetTopicAttributesResponse\",\
\"resultWrapper\":\"GetTopicAttributesResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"InvalidSecurityException\"}\
],\
\"documentation\":\"<p>Returns all of the properties of a topic. Topic properties returned might differ based on the authorization of the user.</p>\"\
},\
\"ListEndpointsByPlatformApplication\":{\
\"name\":\"ListEndpointsByPlatformApplication\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ListEndpointsByPlatformApplicationInput\"},\
\"output\":{\
\"shape\":\"ListEndpointsByPlatformApplicationResponse\",\
\"resultWrapper\":\"ListEndpointsByPlatformApplicationResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"}\
],\
\"documentation\":\"<p>Lists the endpoints and endpoint attributes for devices in a supported push notification service, such as FCM and APNS. The results for <code>ListEndpointsByPlatformApplication</code> are paginated and return a limited list of endpoints, up to 100. If additional records are available after the first page results, then a NextToken string will be returned. To receive the next page, you call <code>ListEndpointsByPlatformApplication</code> again using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. </p> <p>This action is throttled at 30 transactions per second (TPS).</p>\"\
},\
\"ListPhoneNumbersOptedOut\":{\
\"name\":\"ListPhoneNumbersOptedOut\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ListPhoneNumbersOptedOutInput\"},\
\"output\":{\
\"shape\":\"ListPhoneNumbersOptedOutResponse\",\
\"resultWrapper\":\"ListPhoneNumbersOptedOutResult\"\
},\
\"errors\":[\
{\"shape\":\"ThrottledException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"InvalidParameterException\"}\
],\
\"documentation\":\"<p>Returns a list of phone numbers that are opted out, meaning you cannot send SMS messages to them.</p> <p>The results for <code>ListPhoneNumbersOptedOut</code> are paginated, and each page returns up to 100 phone numbers. If additional phone numbers are available after the first page of results, then a <code>NextToken</code> string will be returned. To receive the next page, you call <code>ListPhoneNumbersOptedOut</code> again using the <code>NextToken</code> string received from the previous call. When there are no more records to return, <code>NextToken</code> will be null.</p>\"\
},\
\"ListPlatformApplications\":{\
\"name\":\"ListPlatformApplications\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ListPlatformApplicationsInput\"},\
\"output\":{\
\"shape\":\"ListPlatformApplicationsResponse\",\
\"resultWrapper\":\"ListPlatformApplicationsResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Lists the platform application objects for the supported push notification services, such as APNS and FCM. The results for <code>ListPlatformApplications</code> are paginated and return a limited list of applications, up to 100. If additional records are available after the first page results, then a NextToken string will be returned. To receive the next page, you call <code>ListPlatformApplications</code> using the NextToken string received from the previous call. When there are no more records to return, NextToken will be null. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. </p> <p>This action is throttled at 15 transactions per second (TPS).</p>\"\
},\
\"ListSubscriptions\":{\
\"name\":\"ListSubscriptions\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ListSubscriptionsInput\"},\
\"output\":{\
\"shape\":\"ListSubscriptionsResponse\",\
\"resultWrapper\":\"ListSubscriptionsResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Returns a list of the requester's subscriptions. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a <code>NextToken</code> is also returned. Use the <code>NextToken</code> parameter in a new <code>ListSubscriptions</code> call to get further results.</p> <p>This action is throttled at 30 transactions per second (TPS).</p>\"\
},\
\"ListSubscriptionsByTopic\":{\
\"name\":\"ListSubscriptionsByTopic\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ListSubscriptionsByTopicInput\"},\
\"output\":{\
\"shape\":\"ListSubscriptionsByTopicResponse\",\
\"resultWrapper\":\"ListSubscriptionsByTopicResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Returns a list of the subscriptions to a specific topic. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a <code>NextToken</code> is also returned. Use the <code>NextToken</code> parameter in a new <code>ListSubscriptionsByTopic</code> call to get further results.</p> <p>This action is throttled at 30 transactions per second (TPS).</p>\"\
},\
\"ListTagsForResource\":{\
\"name\":\"ListTagsForResource\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ListTagsForResourceRequest\"},\
\"output\":{\
\"shape\":\"ListTagsForResourceResponse\",\
\"resultWrapper\":\"ListTagsForResourceResult\"\
},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TagPolicyException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"ConcurrentAccessException\"}\
],\
\"documentation\":\"<p>List all tags added to the specified Amazon SNS topic. For an overview, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-tags.html\\\">Amazon SNS Tags</a> in the <i>Amazon Simple Notification Service Developer Guide</i>.</p>\"\
},\
\"ListTopics\":{\
\"name\":\"ListTopics\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"ListTopicsInput\"},\
\"output\":{\
\"shape\":\"ListTopicsResponse\",\
\"resultWrapper\":\"ListTopicsResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Returns a list of the requester's topics. Each call returns a limited list of topics, up to 100. If there are more topics, a <code>NextToken</code> is also returned. Use the <code>NextToken</code> parameter in a new <code>ListTopics</code> call to get further results.</p> <p>This action is throttled at 30 transactions per second (TPS).</p>\"\
},\
\"OptInPhoneNumber\":{\
\"name\":\"OptInPhoneNumber\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"OptInPhoneNumberInput\"},\
\"output\":{\
\"shape\":\"OptInPhoneNumberResponse\",\
\"resultWrapper\":\"OptInPhoneNumberResult\"\
},\
\"errors\":[\
{\"shape\":\"ThrottledException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"InvalidParameterException\"}\
],\
\"documentation\":\"<p>Use this request to opt in a phone number that is opted out, which enables you to resume sending SMS messages to the number.</p> <p>You can opt in a phone number only once every 30 days.</p>\"\
},\
\"Publish\":{\
\"name\":\"Publish\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"PublishInput\"},\
\"output\":{\
\"shape\":\"PublishResponse\",\
\"resultWrapper\":\"PublishResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InvalidParameterValueException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"EndpointDisabledException\"},\
{\"shape\":\"PlatformApplicationDisabledException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"KMSDisabledException\"},\
{\"shape\":\"KMSInvalidStateException\"},\
{\"shape\":\"KMSNotFoundException\"},\
{\"shape\":\"KMSOptInRequired\"},\
{\"shape\":\"KMSThrottlingException\"},\
{\"shape\":\"KMSAccessDeniedException\"},\
{\"shape\":\"InvalidSecurityException\"}\
],\
\"documentation\":\"<p>Sends a message to an Amazon SNS topic or sends a text message (SMS message) directly to a phone number. </p> <p>If you send a message to a topic, Amazon SNS delivers the message to each endpoint that is subscribed to the topic. The format of the message depends on the notification protocol for each subscribed endpoint.</p> <p>When a <code>messageId</code> is returned, the message has been saved and Amazon SNS will attempt to deliver it shortly.</p> <p>To use the <code>Publish</code> action for sending a message to a mobile endpoint, such as an app on a Kindle device or mobile phone, you must specify the EndpointArn for the TargetArn parameter. The EndpointArn is returned when making a call with the <code>CreatePlatformEndpoint</code> action. </p> <p>For more information about formatting messages, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-custommessage.html\\\">Send Custom Platform-Specific Payloads in Messages to Mobile Devices</a>. </p>\"\
},\
\"RemovePermission\":{\
\"name\":\"RemovePermission\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"RemovePermissionInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"}\
],\
\"documentation\":\"<p>Removes a statement from a topic's access control policy.</p>\"\
},\
\"SetEndpointAttributes\":{\
\"name\":\"SetEndpointAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"SetEndpointAttributesInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"}\
],\
\"documentation\":\"<p>Sets the attributes for an endpoint for a device on one of the supported push notification services, such as FCM and APNS. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. </p>\"\
},\
\"SetPlatformApplicationAttributes\":{\
\"name\":\"SetPlatformApplicationAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"SetPlatformApplicationAttributesInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"}\
],\
\"documentation\":\"<p>Sets the attributes of the platform application object for the supported push notification services, such as APNS and FCM. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html\\\">Using Amazon SNS Mobile Push Notifications</a>. For information on configuring attributes for message delivery status, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html\\\">Using Amazon SNS Application Attributes for Message Delivery Status</a>. </p>\"\
},\
\"SetSMSAttributes\":{\
\"name\":\"SetSMSAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"SetSMSAttributesInput\"},\
\"output\":{\
\"shape\":\"SetSMSAttributesResponse\",\
\"resultWrapper\":\"SetSMSAttributesResult\"\
},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"ThrottledException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Use this request to set the default settings for sending SMS messages and receiving daily SMS usage reports.</p> <p>You can override some of these settings for a single message when you use the <code>Publish</code> action with the <code>MessageAttributes.entry.N</code> parameter. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html\\\">Sending an SMS Message</a> in the <i>Amazon SNS Developer Guide</i>.</p>\"\
},\
\"SetSubscriptionAttributes\":{\
\"name\":\"SetSubscriptionAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"SetSubscriptionAttributesInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"FilterPolicyLimitExceededException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"AuthorizationErrorException\"}\
],\
\"documentation\":\"<p>Allows a subscription owner to set an attribute of the subscription to a new value.</p>\"\
},\
\"SetTopicAttributes\":{\
\"name\":\"SetTopicAttributes\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"SetTopicAttributesInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"InvalidSecurityException\"}\
],\
\"documentation\":\"<p>Allows a topic owner to set an attribute of the topic to a new value.</p>\"\
},\
\"Subscribe\":{\
\"name\":\"Subscribe\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"SubscribeInput\"},\
\"output\":{\
\"shape\":\"SubscribeResponse\",\
\"resultWrapper\":\"SubscribeResult\"\
},\
\"errors\":[\
{\"shape\":\"SubscriptionLimitExceededException\"},\
{\"shape\":\"FilterPolicyLimitExceededException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"InvalidSecurityException\"}\
],\
\"documentation\":\"<p>Prepares to subscribe an endpoint by sending the endpoint a confirmation message. To actually create a subscription, the endpoint owner must call the <code>ConfirmSubscription</code> action with the token from the confirmation message. Confirmation tokens are valid for three days.</p> <p>This action is throttled at 100 transactions per second (TPS).</p>\"\
},\
\"TagResource\":{\
\"name\":\"TagResource\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"TagResourceRequest\"},\
\"output\":{\
\"shape\":\"TagResourceResponse\",\
\"resultWrapper\":\"TagResourceResult\"\
},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TagLimitExceededException\"},\
{\"shape\":\"StaleTagException\"},\
{\"shape\":\"TagPolicyException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"ConcurrentAccessException\"}\
],\
\"documentation\":\"<p>Add tags to the specified Amazon SNS topic. For an overview, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-tags.html\\\">Amazon SNS Tags</a> in the <i>Amazon SNS Developer Guide</i>.</p> <p>When you use topic tags, keep the following guidelines in mind:</p> <ul> <li> <p>Adding more than 50 tags to a topic isn't recommended.</p> </li> <li> <p>Tags don't have any semantic meaning. Amazon SNS interprets tags as character strings.</p> </li> <li> <p>Tags are case-sensitive.</p> </li> <li> <p>A new tag with a key identical to that of an existing tag overwrites the existing tag.</p> </li> <li> <p>Tagging actions are limited to 10 TPS per AWS account, per AWS region. If your application requires a higher throughput, file a <a href=\\\"https://console.aws.amazon.com/support/home#/case/create?issueType=technical\\\">technical support request</a>.</p> </li> </ul>\"\
},\
\"Unsubscribe\":{\
\"name\":\"Unsubscribe\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"UnsubscribeInput\"},\
\"errors\":[\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"InternalErrorException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"NotFoundException\"},\
{\"shape\":\"InvalidSecurityException\"}\
],\
\"documentation\":\"<p>Deletes a subscription. If the subscription requires authentication for deletion, only the owner of the subscription or the topic's owner can unsubscribe, and an AWS signature is required. If the <code>Unsubscribe</code> call does not require authentication and the requester is not the subscription owner, a final cancellation message is delivered to the endpoint, so that the endpoint owner can easily resubscribe to the topic if the <code>Unsubscribe</code> request was unintended.</p> <p>This action is throttled at 100 transactions per second (TPS).</p>\"\
},\
\"UntagResource\":{\
\"name\":\"UntagResource\",\
\"http\":{\
\"method\":\"POST\",\
\"requestUri\":\"/\"\
},\
\"input\":{\"shape\":\"UntagResourceRequest\"},\
\"output\":{\
\"shape\":\"UntagResourceResponse\",\
\"resultWrapper\":\"UntagResourceResult\"\
},\
\"errors\":[\
{\"shape\":\"ResourceNotFoundException\"},\
{\"shape\":\"TagLimitExceededException\"},\
{\"shape\":\"StaleTagException\"},\
{\"shape\":\"TagPolicyException\"},\
{\"shape\":\"InvalidParameterException\"},\
{\"shape\":\"AuthorizationErrorException\"},\
{\"shape\":\"ConcurrentAccessException\"}\
],\
\"documentation\":\"<p>Remove tags from the specified Amazon SNS topic. For an overview, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-tags.html\\\">Amazon SNS Tags</a> in the <i>Amazon SNS Developer Guide</i>.</p>\"\
}\
},\
\"shapes\":{\
\"ActionsList\":{\
\"type\":\"list\",\
\"member\":{\"shape\":\"action\"}\
},\
\"AddPermissionInput\":{\
\"type\":\"structure\",\
\"required\":[\
\"TopicArn\",\
\"Label\",\
\"AWSAccountId\",\
\"ActionName\"\
],\
\"members\":{\
\"TopicArn\":{\
\"shape\":\"topicARN\",\
\"documentation\":\"<p>The ARN of the topic whose access control policy you wish to modify.</p>\"\
},\
\"Label\":{\
\"shape\":\"label\",\
\"documentation\":\"<p>A unique identifier for the new policy statement.</p>\"\
},\
\"AWSAccountId\":{\
\"shape\":\"DelegatesList\",\
\"documentation\":\"<p>The AWS account IDs of the users (principals) who will be given access to the specified actions. The users must have AWS accounts, but do not need to be signed up for this service.</p>\"\
},\
\"ActionName\":{\
\"shape\":\"ActionsList\",\
\"documentation\":\"<p>The action you want to allow for the specified principal(s).</p> <p>Valid values: Any Amazon SNS action name, for example <code>Publish</code>.</p>\"\
}\
}\
},\
\"AmazonResourceName\":{\
\"type\":\"string\",\
\"max\":1011,\
\"min\":1\
},\
\"AuthorizationErrorException\":{\
\"type\":\"structure\",\
\"members\":{\
\"message\":{\"shape\":\"string\"}\
},\
\"documentation\":\"<p>Indicates that the user has been denied access to the requested resource.</p>\",\
\"error\":{\
\"code\":\"AuthorizationError\",\
\"httpStatusCode\":403,\
\"senderFault\":true\
},\
\"exception\":true\
},\
\"Binary\":{\"type\":\"blob\"},\
\"CheckIfPhoneNumberIsOptedOutInput\":{\
\"type\":\"structure\",\
\"required\":[\"phoneNumber\"],\
\"members\":{\
\"phoneNumber\":{\
\"shape\":\"PhoneNumber\",\
\"documentation\":\"<p>The phone number for which you want to check the opt out status.</p>\"\
}\
},\
\"documentation\":\"<p>The input for the <code>CheckIfPhoneNumberIsOptedOut</code> action.</p>\"\
},\
\"CheckIfPhoneNumberIsOptedOutResponse\":{\
\"type\":\"structure\",\
\"members\":{\
\"isOptedOut\":{\
\"shape\":\"boolean\",\
\"documentation\":\"<p>Indicates whether the phone number is opted out:</p> <ul> <li> <p> <code>true</code> â The phone number is opted out, meaning you cannot publish SMS messages to it.</p> </li> <li> <p> <code>false</code> â The phone number is opted in, meaning you can publish SMS messages to it.</p> </li> </ul>\"\
}\
},\
\"documentation\":\"<p>The response from the <code>CheckIfPhoneNumberIsOptedOut</code> action.</p>\"\
},\
\"ConcurrentAccessException\":{\
\"type\":\"structure\",\
\"members\":{\
\"message\":{\"shape\":\"string\"}\
},\
\"documentation\":\"<p>Can't perform multiple operations on a tag simultaneously. Perform the operations sequentially.</p>\",\
\"error\":{\
\"code\":\"ConcurrentAccess\",\
\"httpStatusCode\":400,\
\"senderFault\":true\
},\
\"exception\":true\
},\
\"ConfirmSubscriptionInput\":{\
\"type\":\"structure\",\
\"required\":[\
\"TopicArn\",\
\"Token\"\
],\
\"members\":{\
\"TopicArn\":{\
\"shape\":\"topicARN\",\
\"documentation\":\"<p>The ARN of the topic for which you wish to confirm a subscription.</p>\"\
},\
\"Token\":{\
\"shape\":\"token\",\
\"documentation\":\"<p>Short-lived token sent to an endpoint during the <code>Subscribe</code> action.</p>\"\
},\
\"AuthenticateOnUnsubscribe\":{\
\"shape\":\"authenticateOnUnsubscribe\",\
\"documentation\":\"<p>Disallows unauthenticated unsubscribes of the subscription. If the value of this parameter is <code>true</code> and the request has an AWS signature, then only the topic owner and the subscription owner can unsubscribe the endpoint. The unsubscribe action requires AWS authentication. </p>\"\
}\
},\
\"documentation\":\"<p>Input for ConfirmSubscription action.</p>\"\
},\
\"ConfirmSubscriptionResponse\":{\
\"type\":\"structure\",\
\"members\":{\
\"SubscriptionArn\":{\
\"shape\":\"subscriptionARN\",\
\"documentation\":\"<p>The ARN of the created subscription.</p>\"\
}\
},\
\"documentation\":\"<p>Response for ConfirmSubscriptions action.</p>\"\
},\
\"CreateEndpointResponse\":{\
\"type\":\"structure\",\
\"members\":{\
\"EndpointArn\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>EndpointArn returned from CreateEndpoint action.</p>\"\
}\
},\
\"documentation\":\"<p>Response from CreateEndpoint action.</p>\"\
},\
\"CreatePlatformApplicationInput\":{\
\"type\":\"structure\",\
\"required\":[\
\"Name\",\
\"Platform\",\
\"Attributes\"\
],\
\"members\":{\
\"Name\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.</p>\"\
},\
\"Platform\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and FCM (Firebase Cloud Messaging).</p>\"\
},\
\"Attributes\":{\
\"shape\":\"MapStringToString\",\
\"documentation\":\"<p>For a list of attributes, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html\\\">SetPlatformApplicationAttributes</a> </p>\"\
}\
},\
\"documentation\":\"<p>Input for CreatePlatformApplication action.</p>\"\
},\
\"CreatePlatformApplicationResponse\":{\
\"type\":\"structure\",\
\"members\":{\
\"PlatformApplicationArn\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>PlatformApplicationArn is returned.</p>\"\
}\
},\
\"documentation\":\"<p>Response from CreatePlatformApplication action.</p>\"\
},\
\"CreatePlatformEndpointInput\":{\
\"type\":\"structure\",\
\"required\":[\
\"PlatformApplicationArn\",\
\"Token\"\
],\
\"members\":{\
\"PlatformApplicationArn\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint.</p>\"\
},\
\"Token\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using FCM or ADM, the device token equivalent is called the registration ID.</p>\"\
},\
\"CustomUserData\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.</p>\"\
},\
\"Attributes\":{\
\"shape\":\"MapStringToString\",\
\"documentation\":\"<p>For a list of attributes, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/api/API_SetEndpointAttributes.html\\\">SetEndpointAttributes</a>.</p>\"\
}\
},\
\"documentation\":\"<p>Input for CreatePlatformEndpoint action.</p>\"\
},\
\"CreateTopicInput\":{\
\"type\":\"structure\",\
\"required\":[\"Name\"],\
\"members\":{\
\"Name\":{\
\"shape\":\"topicName\",\
\"documentation\":\"<p>The name of the topic you want to create.</p> <p>Constraints: Topic names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, and hyphens, and must be between 1 and 256 characters long.</p>\"\
},\
\"Attributes\":{\
\"shape\":\"TopicAttributesMap\",\
\"documentation\":\"<p>A map of attributes with their corresponding values.</p> <p>The following lists the names, descriptions, and values of the special request parameters that the <code>CreateTopic</code> action uses:</p> <ul> <li> <p> <code>DeliveryPolicy</code> â The policy that defines how Amazon SNS retries failed deliveries to HTTP/S endpoints.</p> </li> <li> <p> <code>DisplayName</code> â The display name to use for a topic with SMS subscriptions.</p> </li> <li> <p> <code>Policy</code> â The policy that defines who can access your topic. By default, only the topic owner can publish or subscribe to the topic.</p> </li> </ul> <p>The following attribute applies only to <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html\\\">server-side-encryption</a>:</p> <ul> <li> <p> <code>KmsMasterKeyId</code> - The ID of an AWS-managed customer master key (CMK) for Amazon SNS or a custom CMK. For more information, see <a href=\\\"https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms\\\">Key Terms</a>. For more examples, see <a href=\\\"https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters\\\">KeyId</a> in the <i>AWS Key Management Service API Reference</i>. </p> </li> </ul>\"\
},\
\"Tags\":{\
\"shape\":\"TagList\",\
\"documentation\":\"<p>The list of tags to add to a new topic.</p> <note> <p>To be able to tag a topic on creation, you must have the <code>sns:CreateTopic</code> and <code>sns:TagResource</code> permissions.</p> </note>\"\
}\
},\
\"documentation\":\"<p>Input for CreateTopic action.</p>\"\
},\
\"CreateTopicResponse\":{\
\"type\":\"structure\",\
\"members\":{\
\"TopicArn\":{\
\"shape\":\"topicARN\",\
\"documentation\":\"<p>The Amazon Resource Name (ARN) assigned to the created topic.</p>\"\
}\
},\
\"documentation\":\"<p>Response from CreateTopic action.</p>\"\
},\
\"DelegatesList\":{\
\"type\":\"list\",\
\"member\":{\"shape\":\"delegate\"}\
},\
\"DeleteEndpointInput\":{\
\"type\":\"structure\",\
\"required\":[\"EndpointArn\"],\
\"members\":{\
\"EndpointArn\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>EndpointArn of endpoint to delete.</p>\"\
}\
},\
\"documentation\":\"<p>Input for DeleteEndpoint action.</p>\"\
},\
\"DeletePlatformApplicationInput\":{\
\"type\":\"structure\",\
\"required\":[\"PlatformApplicationArn\"],\
\"members\":{\
\"PlatformApplicationArn\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>PlatformApplicationArn of platform application object to delete.</p>\"\
}\
},\
\"documentation\":\"<p>Input for DeletePlatformApplication action.</p>\"\
},\
\"DeleteTopicInput\":{\
\"type\":\"structure\",\
\"required\":[\"TopicArn\"],\
\"members\":{\
\"TopicArn\":{\
\"shape\":\"topicARN\",\
\"documentation\":\"<p>The ARN of the topic you want to delete.</p>\"\
}\
}\
},\
\"Endpoint\":{\
\"type\":\"structure\",\
\"members\":{\
\"EndpointArn\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>EndpointArn for mobile app and device.</p>\"\
},\
\"Attributes\":{\
\"shape\":\"MapStringToString\",\
\"documentation\":\"<p>Attributes for endpoint.</p>\"\
}\
},\
\"documentation\":\"<p>Endpoint for mobile app and device.</p>\"\
},\
\"EndpointDisabledException\":{\
\"type\":\"structure\",\
\"members\":{\
\"message\":{\
\"shape\":\"string\",\
\"documentation\":\"<p>Message for endpoint disabled.</p>\"\
}\
},\
\"documentation\":\"<p>Exception error indicating endpoint disabled.</p>\",\
\"error\":{\
\"code\":\"EndpointDisabled\",\
\"httpStatusCode\":400,\
\"senderFault\":true\
},\
\"exception\":true\
},\
\"FilterPolicyLimitExceededException\":{\
\"type\":\"structure\",\
\"members\":{\
\"message\":{\"shape\":\"string\"}\
},\
\"documentation\":\"<p>Indicates that the number of filter polices in your AWS account exceeds the limit. To add more filter polices, submit an SNS Limit Increase case in the AWS Support Center.</p>\",\
\"error\":{\
\"code\":\"FilterPolicyLimitExceeded\",\
\"httpStatusCode\":403,\
\"senderFault\":true\
},\
\"exception\":true\
},\
\"GetEndpointAttributesInput\":{\
\"type\":\"structure\",\
\"required\":[\"EndpointArn\"],\
\"members\":{\
\"EndpointArn\":{\
\"shape\":\"String\",\
\"documentation\":\"<p>EndpointArn for GetEndpointAttributes input.</p>\"\
}\
},\
\"documentation\":\"<p>Input for GetEndpointAttributes action.</p>\"\
},\
\"GetEndpointAttributesResponse\":{\
\"type\":\"structure\",\
\"members\":{\
\"Attributes\":{\
\"shape\":\"MapStringToString\",\
\"documentation\":\"<p>Attributes include the following:</p> <ul> <li> <p> <code>CustomUserData</code> â arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB.</p> </li> <li> <p> <code>Enabled</code> â flag that enables/disables delivery to the endpoint. Amazon SNS will set this to false when a notification service indicates to Amazon SNS that the endpoint is invalid. Users can set it back to true, typically after updating Token.</p> </li> <li> <p> <code>Token</code> â device token, also referred to as a registration id, for an app and mobile device. This is returned from the notification service when an app and mobile device are registered with the notification service.</p> <note> <p>The device token for the iOS platform is returned in lowercase.</p> </note> </li> </ul>\"\
}\