aws-sdk-sns 1.40.0 → 1.41.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e590f9e08b6eafc33012fa36e3e23c634e506ff0055a24e96c16a65f0cc1cf3
4
- data.tar.gz: bc930a580a56f0ff84da8c3abd579c49d2c5963d45661931cc5a8ff3f0841e9b
3
+ metadata.gz: c1be536f4d421092a64f75a56dbafa4b4906da68ab61ca08b4e4d514825d0550
4
+ data.tar.gz: c139a3b62d2c1fdfe2900c83495182caa7d93dada1992b8562d40f2a2d30499f
5
5
  SHA512:
6
- metadata.gz: 50e2eddd12e240bab514df1ec1e4da4b04e90807ed696fc49a496e9129390fdf61d3351ae9f4b41421700ff92bdca53ae672ee7d3b38daaa1c66fb85205f3dc2
7
- data.tar.gz: 48f4ad1708159e8fd6df1cc38f93a8cf15e961b1ec6cd7d92f7705272938422db4bb7e4ed5b0bded3976ce08e8c170ab1177227beedcfa50a3c58d06d75eab22
6
+ metadata.gz: eb7523800accffe5b2310d0bc3829c408ad631def1ca90def8544cf38b270612d25ed7cb041956ec37bcfaa7a8e90e94dc26d69b649a2c3a2dbfdefa7a61b149
7
+ data.tar.gz: a204d5dfe842fec359ae80fc47b897480c377bdb647671dfbab0f0bc06c0e526b787c1c936abfb1f5d358bc5756e54b843be44d54bc9be5b5fcfe750fab7e525
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.41.0 (2021-06-01)
5
+ ------------------
6
+
7
+ * Feature - This release adds SMS sandbox in Amazon SNS and the ability to view all configured origination numbers. The SMS sandbox provides a safe environment for sending SMS messages, without risking your reputation as an SMS sender.
8
+
4
9
  1.40.0 (2021-04-23)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.40.0
1
+ 1.41.0
data/lib/aws-sdk-sns.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-sns/customizations'
52
52
  # @!group service
53
53
  module Aws::SNS
54
54
 
55
- GEM_VERSION = '1.40.0'
55
+ GEM_VERSION = '1.41.0'
56
56
 
57
57
  end
@@ -484,7 +484,7 @@ module Aws::SNS
484
484
  # (Firebase Cloud Messaging).
485
485
  #
486
486
  # @option params [required, Hash<String,String>] :attributes
487
- # For a list of attributes, see [SetPlatformApplicationAttributes][1]
487
+ # For a list of attributes, see [SetPlatformApplicationAttributes][1].
488
488
  #
489
489
  #
490
490
  #
@@ -590,6 +590,49 @@ module Aws::SNS
590
590
  req.send_request(options)
591
591
  end
592
592
 
593
+ # Adds a destination phone number to an AWS account in the SMS sandbox
594
+ # and sends a one-time password (OTP) to that phone number.
595
+ #
596
+ # When you start using Amazon SNS to send SMS messages, your AWS account
597
+ # is in the *SMS sandbox*. The SMS sandbox provides a safe environment
598
+ # for you to try Amazon SNS features without risking your reputation as
599
+ # an SMS sender. While your account is in the SMS sandbox, you can use
600
+ # all of the features of Amazon SNS. However, you can send SMS messages
601
+ # only to verified destination phone numbers. For more information,
602
+ # including how to move out of the sandbox to send messages without
603
+ # restrictions, see [SMS sandbox][1] in the *Amazon SNS Developer
604
+ # Guide*.
605
+ #
606
+ #
607
+ #
608
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html
609
+ #
610
+ # @option params [required, String] :phone_number
611
+ # The destination phone number to verify. On verification, Amazon SNS
612
+ # adds this phone number to the list of verified phone numbers that you
613
+ # can send SMS messages to.
614
+ #
615
+ # @option params [String] :language_code
616
+ # The language to use for sending the OTP. The default value is `en-US`.
617
+ #
618
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
619
+ #
620
+ # @example Request syntax with placeholder values
621
+ #
622
+ # resp = client.create_sms_sandbox_phone_number({
623
+ # phone_number: "PhoneNumberString", # required
624
+ # language_code: "en-US", # accepts en-US, en-GB, es-419, es-ES, de-DE, fr-CA, fr-FR, it-IT, ja-JP, pt-BR, kr-KR, zh-CN, zh-TW
625
+ # })
626
+ #
627
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreateSMSSandboxPhoneNumber AWS API Documentation
628
+ #
629
+ # @overload create_sms_sandbox_phone_number(params = {})
630
+ # @param [Hash] params ({})
631
+ def create_sms_sandbox_phone_number(params = {}, options = {})
632
+ req = build_request(:create_sms_sandbox_phone_number, params)
633
+ req.send_request(options)
634
+ end
635
+
593
636
  # Creates a topic to which notifications can be published. Users can
594
637
  # create at most 100,000 standard topics (at most 1,000 FIFO topics).
595
638
  # For more information, see [https://aws.amazon.com/sns][1]. This action
@@ -628,9 +671,9 @@ module Aws::SNS
628
671
  # * `Policy` – The policy that defines who can access your topic. By
629
672
  # default, only the topic owner can publish or subscribe to the topic.
630
673
  #
631
- # The following attribute applies only to [server-side-encryption][1]\:
674
+ # The following attribute applies only to [server-side encryption][1]\:
632
675
  #
633
- # * `KmsMasterKeyId` – The ID of an AWS-managed customer master key
676
+ # * `KmsMasterKeyId` – The ID of an AWS managed customer master key
634
677
  # (CMK) for Amazon SNS or a custom CMK. For more information, see [Key
635
678
  # Terms][2]. For more examples, see [KeyId][3] in the *AWS Key
636
679
  # Management Service API Reference*.
@@ -654,8 +697,8 @@ module Aws::SNS
654
697
  # the body of the message (but not the attributes of the message).
655
698
  #
656
699
  # (Optional) To override the generated value, you can specify a
657
- # value for the the `MessageDeduplicationId` parameter for the
658
- # `Publish` action.
700
+ # value for the `MessageDeduplicationId` parameter for the `Publish`
701
+ # action.
659
702
  #
660
703
  #
661
704
  #
@@ -765,6 +808,43 @@ module Aws::SNS
765
808
  req.send_request(options)
766
809
  end
767
810
 
811
+ # Deletes an AWS account's verified or pending phone number from the
812
+ # SMS sandbox.
813
+ #
814
+ # When you start using Amazon SNS to send SMS messages, your AWS account
815
+ # is in the *SMS sandbox*. The SMS sandbox provides a safe environment
816
+ # for you to try Amazon SNS features without risking your reputation as
817
+ # an SMS sender. While your account is in the SMS sandbox, you can use
818
+ # all of the features of Amazon SNS. However, you can send SMS messages
819
+ # only to verified destination phone numbers. For more information,
820
+ # including how to move out of the sandbox to send messages without
821
+ # restrictions, see [SMS sandbox][1] in the *Amazon SNS Developer
822
+ # Guide*.
823
+ #
824
+ #
825
+ #
826
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html
827
+ #
828
+ # @option params [required, String] :phone_number
829
+ # The destination phone number to delete.
830
+ #
831
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
832
+ #
833
+ # @example Request syntax with placeholder values
834
+ #
835
+ # resp = client.delete_sms_sandbox_phone_number({
836
+ # phone_number: "PhoneNumberString", # required
837
+ # })
838
+ #
839
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/DeleteSMSSandboxPhoneNumber AWS API Documentation
840
+ #
841
+ # @overload delete_sms_sandbox_phone_number(params = {})
842
+ # @param [Hash] params ({})
843
+ def delete_sms_sandbox_phone_number(params = {}, options = {})
844
+ req = build_request(:delete_sms_sandbox_phone_number, params)
845
+ req.send_request(options)
846
+ end
847
+
768
848
  # Deletes a topic and all its subscriptions. Deleting a topic might
769
849
  # prevent some messages previously sent to the topic from being
770
850
  # delivered to subscribers. This action is idempotent, so deleting a
@@ -903,6 +983,40 @@ module Aws::SNS
903
983
  req.send_request(options)
904
984
  end
905
985
 
986
+ # Retrieves the SMS sandbox status for the calling AWS account in the
987
+ # target AWS Region.
988
+ #
989
+ # When you start using Amazon SNS to send SMS messages, your AWS account
990
+ # is in the *SMS sandbox*. The SMS sandbox provides a safe environment
991
+ # for you to try Amazon SNS features without risking your reputation as
992
+ # an SMS sender. While your account is in the SMS sandbox, you can use
993
+ # all of the features of Amazon SNS. However, you can send SMS messages
994
+ # only to verified destination phone numbers. For more information,
995
+ # including how to move out of the sandbox to send messages without
996
+ # restrictions, see [SMS sandbox][1] in the *Amazon SNS Developer
997
+ # Guide*.
998
+ #
999
+ #
1000
+ #
1001
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html
1002
+ #
1003
+ # @return [Types::GetSMSSandboxAccountStatusResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1004
+ #
1005
+ # * {Types::GetSMSSandboxAccountStatusResult#is_in_sandbox #is_in_sandbox} => Boolean
1006
+ #
1007
+ # @example Response structure
1008
+ #
1009
+ # resp.is_in_sandbox #=> Boolean
1010
+ #
1011
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSMSSandboxAccountStatus AWS API Documentation
1012
+ #
1013
+ # @overload get_sms_sandbox_account_status(params = {})
1014
+ # @param [Hash] params ({})
1015
+ def get_sms_sandbox_account_status(params = {}, options = {})
1016
+ req = build_request(:get_sms_sandbox_account_status, params)
1017
+ req.send_request(options)
1018
+ end
1019
+
906
1020
  # Returns all of the properties of a subscription.
907
1021
  #
908
1022
  # @option params [required, String] :subscription_arn
@@ -1019,6 +1133,55 @@ module Aws::SNS
1019
1133
  req.send_request(options)
1020
1134
  end
1021
1135
 
1136
+ # Lists the calling AWS account's dedicated origination numbers and
1137
+ # their metadata. For more information about origination numbers, see
1138
+ # [Origination numbers][1] in the *Amazon SNS Developer Guide*.
1139
+ #
1140
+ #
1141
+ #
1142
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/channels-sms-originating-identities-origination-numbers.html
1143
+ #
1144
+ # @option params [String] :next_token
1145
+ # Token that the previous `ListOriginationNumbers` request returns.
1146
+ #
1147
+ # @option params [Integer] :max_results
1148
+ # The maximum number of origination numbers to return.
1149
+ #
1150
+ # @return [Types::ListOriginationNumbersResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1151
+ #
1152
+ # * {Types::ListOriginationNumbersResult#next_token #next_token} => String
1153
+ # * {Types::ListOriginationNumbersResult#phone_numbers #phone_numbers} => Array&lt;Types::PhoneNumberInformation&gt;
1154
+ #
1155
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1156
+ #
1157
+ # @example Request syntax with placeholder values
1158
+ #
1159
+ # resp = client.list_origination_numbers({
1160
+ # next_token: "nextToken",
1161
+ # max_results: 1,
1162
+ # })
1163
+ #
1164
+ # @example Response structure
1165
+ #
1166
+ # resp.next_token #=> String
1167
+ # resp.phone_numbers #=> Array
1168
+ # resp.phone_numbers[0].created_at #=> Time
1169
+ # resp.phone_numbers[0].phone_number #=> String
1170
+ # resp.phone_numbers[0].status #=> String
1171
+ # resp.phone_numbers[0].iso_2_country_code #=> String
1172
+ # resp.phone_numbers[0].route_type #=> String, one of "Transactional", "Promotional", "Premium"
1173
+ # resp.phone_numbers[0].number_capabilities #=> Array
1174
+ # resp.phone_numbers[0].number_capabilities[0] #=> String, one of "SMS", "MMS", "VOICE"
1175
+ #
1176
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListOriginationNumbers AWS API Documentation
1177
+ #
1178
+ # @overload list_origination_numbers(params = {})
1179
+ # @param [Hash] params ({})
1180
+ def list_origination_numbers(params = {}, options = {})
1181
+ req = build_request(:list_origination_numbers, params)
1182
+ req.send_request(options)
1183
+ end
1184
+
1022
1185
  # Returns a list of phone numbers that are opted out, meaning you cannot
1023
1186
  # send SMS messages to them.
1024
1187
  #
@@ -1113,6 +1276,60 @@ module Aws::SNS
1113
1276
  req.send_request(options)
1114
1277
  end
1115
1278
 
1279
+ # Lists the calling AWS account's current verified and pending
1280
+ # destination phone numbers in the SMS sandbox.
1281
+ #
1282
+ # When you start using Amazon SNS to send SMS messages, your AWS account
1283
+ # is in the *SMS sandbox*. The SMS sandbox provides a safe environment
1284
+ # for you to try Amazon SNS features without risking your reputation as
1285
+ # an SMS sender. While your account is in the SMS sandbox, you can use
1286
+ # all of the features of Amazon SNS. However, you can send SMS messages
1287
+ # only to verified destination phone numbers. For more information,
1288
+ # including how to move out of the sandbox to send messages without
1289
+ # restrictions, see [SMS sandbox][1] in the *Amazon SNS Developer
1290
+ # Guide*.
1291
+ #
1292
+ #
1293
+ #
1294
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html
1295
+ #
1296
+ # @option params [String] :next_token
1297
+ # Token that the previous `ListSMSSandboxPhoneNumbersInput` request
1298
+ # returns.
1299
+ #
1300
+ # @option params [Integer] :max_results
1301
+ # The maximum number of phone numbers to return.
1302
+ #
1303
+ # @return [Types::ListSMSSandboxPhoneNumbersResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1304
+ #
1305
+ # * {Types::ListSMSSandboxPhoneNumbersResult#phone_numbers #phone_numbers} => Array&lt;Types::SMSSandboxPhoneNumber&gt;
1306
+ # * {Types::ListSMSSandboxPhoneNumbersResult#next_token #next_token} => String
1307
+ #
1308
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1309
+ #
1310
+ # @example Request syntax with placeholder values
1311
+ #
1312
+ # resp = client.list_sms_sandbox_phone_numbers({
1313
+ # next_token: "nextToken",
1314
+ # max_results: 1,
1315
+ # })
1316
+ #
1317
+ # @example Response structure
1318
+ #
1319
+ # resp.phone_numbers #=> Array
1320
+ # resp.phone_numbers[0].phone_number #=> String
1321
+ # resp.phone_numbers[0].status #=> String, one of "Pending", "Verified"
1322
+ # resp.next_token #=> String
1323
+ #
1324
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSMSSandboxPhoneNumbers AWS API Documentation
1325
+ #
1326
+ # @overload list_sms_sandbox_phone_numbers(params = {})
1327
+ # @param [Hash] params ({})
1328
+ def list_sms_sandbox_phone_numbers(params = {}, options = {})
1329
+ req = build_request(:list_sms_sandbox_phone_numbers, params)
1330
+ req.send_request(options)
1331
+ end
1332
+
1116
1333
  # Returns a list of the requester's subscriptions. Each call returns a
1117
1334
  # limited list of subscriptions, up to 100. If there are more
1118
1335
  # subscriptions, a `NextToken` is also returned. Use the `NextToken`
@@ -1882,8 +2099,8 @@ module Aws::SNS
1882
2099
  # the body of the message (but not the attributes of the message).
1883
2100
  #
1884
2101
  # (Optional) To override the generated value, you can specify a
1885
- # value for the the `MessageDeduplicationId` parameter for the
1886
- # `Publish` action.
2102
+ # value for the `MessageDeduplicationId` parameter for the `Publish`
2103
+ # action.
1887
2104
  #
1888
2105
  #
1889
2106
  #
@@ -2184,6 +2401,48 @@ module Aws::SNS
2184
2401
  req.send_request(options)
2185
2402
  end
2186
2403
 
2404
+ # Verifies a destination phone number with a one-time password (OTP) for
2405
+ # the calling AWS account.
2406
+ #
2407
+ # When you start using Amazon SNS to send SMS messages, your AWS account
2408
+ # is in the *SMS sandbox*. The SMS sandbox provides a safe environment
2409
+ # for you to try Amazon SNS features without risking your reputation as
2410
+ # an SMS sender. While your account is in the SMS sandbox, you can use
2411
+ # all of the features of Amazon SNS. However, you can send SMS messages
2412
+ # only to verified destination phone numbers. For more information,
2413
+ # including how to move out of the sandbox to send messages without
2414
+ # restrictions, see [SMS sandbox][1] in the *Amazon SNS Developer
2415
+ # Guide*.
2416
+ #
2417
+ #
2418
+ #
2419
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html
2420
+ #
2421
+ # @option params [required, String] :phone_number
2422
+ # The destination phone number to verify.
2423
+ #
2424
+ # @option params [required, String] :one_time_password
2425
+ # The OTP sent to the destination number from the
2426
+ # `CreateSMSSandBoxPhoneNumber` call.
2427
+ #
2428
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2429
+ #
2430
+ # @example Request syntax with placeholder values
2431
+ #
2432
+ # resp = client.verify_sms_sandbox_phone_number({
2433
+ # phone_number: "PhoneNumberString", # required
2434
+ # one_time_password: "OTPCode", # required
2435
+ # })
2436
+ #
2437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/VerifySMSSandboxPhoneNumber AWS API Documentation
2438
+ #
2439
+ # @overload verify_sms_sandbox_phone_number(params = {})
2440
+ # @param [Hash] params ({})
2441
+ def verify_sms_sandbox_phone_number(params = {}, options = {})
2442
+ req = build_request(:verify_sms_sandbox_phone_number, params)
2443
+ req.send_request(options)
2444
+ end
2445
+
2187
2446
  # @!endgroup
2188
2447
 
2189
2448
  # @param params ({})
@@ -2197,7 +2456,7 @@ module Aws::SNS
2197
2456
  params: params,
2198
2457
  config: config)
2199
2458
  context[:gem_name] = 'aws-sdk-sns'
2200
- context[:gem_version] = '1.40.0'
2459
+ context[:gem_version] = '1.41.0'
2201
2460
  Seahorse::Client::Request.new(handlers, context)
2202
2461
  end
2203
2462
 
@@ -27,11 +27,15 @@ module Aws::SNS
27
27
  CreatePlatformApplicationInput = Shapes::StructureShape.new(name: 'CreatePlatformApplicationInput')
28
28
  CreatePlatformApplicationResponse = Shapes::StructureShape.new(name: 'CreatePlatformApplicationResponse')
29
29
  CreatePlatformEndpointInput = Shapes::StructureShape.new(name: 'CreatePlatformEndpointInput')
30
+ CreateSMSSandboxPhoneNumberInput = Shapes::StructureShape.new(name: 'CreateSMSSandboxPhoneNumberInput')
31
+ CreateSMSSandboxPhoneNumberResult = Shapes::StructureShape.new(name: 'CreateSMSSandboxPhoneNumberResult')
30
32
  CreateTopicInput = Shapes::StructureShape.new(name: 'CreateTopicInput')
31
33
  CreateTopicResponse = Shapes::StructureShape.new(name: 'CreateTopicResponse')
32
34
  DelegatesList = Shapes::ListShape.new(name: 'DelegatesList')
33
35
  DeleteEndpointInput = Shapes::StructureShape.new(name: 'DeleteEndpointInput')
34
36
  DeletePlatformApplicationInput = Shapes::StructureShape.new(name: 'DeletePlatformApplicationInput')
37
+ DeleteSMSSandboxPhoneNumberInput = Shapes::StructureShape.new(name: 'DeleteSMSSandboxPhoneNumberInput')
38
+ DeleteSMSSandboxPhoneNumberResult = Shapes::StructureShape.new(name: 'DeleteSMSSandboxPhoneNumberResult')
35
39
  DeleteTopicInput = Shapes::StructureShape.new(name: 'DeleteTopicInput')
36
40
  Endpoint = Shapes::StructureShape.new(name: 'Endpoint')
37
41
  EndpointDisabledException = Shapes::StructureShape.new(name: 'EndpointDisabledException')
@@ -42,6 +46,8 @@ module Aws::SNS
42
46
  GetPlatformApplicationAttributesResponse = Shapes::StructureShape.new(name: 'GetPlatformApplicationAttributesResponse')
43
47
  GetSMSAttributesInput = Shapes::StructureShape.new(name: 'GetSMSAttributesInput')
44
48
  GetSMSAttributesResponse = Shapes::StructureShape.new(name: 'GetSMSAttributesResponse')
49
+ GetSMSSandboxAccountStatusInput = Shapes::StructureShape.new(name: 'GetSMSSandboxAccountStatusInput')
50
+ GetSMSSandboxAccountStatusResult = Shapes::StructureShape.new(name: 'GetSMSSandboxAccountStatusResult')
45
51
  GetSubscriptionAttributesInput = Shapes::StructureShape.new(name: 'GetSubscriptionAttributesInput')
46
52
  GetSubscriptionAttributesResponse = Shapes::StructureShape.new(name: 'GetSubscriptionAttributesResponse')
47
53
  GetTopicAttributesInput = Shapes::StructureShape.new(name: 'GetTopicAttributesInput')
@@ -50,20 +56,26 @@ module Aws::SNS
50
56
  InvalidParameterException = Shapes::StructureShape.new(name: 'InvalidParameterException')
51
57
  InvalidParameterValueException = Shapes::StructureShape.new(name: 'InvalidParameterValueException')
52
58
  InvalidSecurityException = Shapes::StructureShape.new(name: 'InvalidSecurityException')
59
+ Iso2CountryCode = Shapes::StringShape.new(name: 'Iso2CountryCode')
53
60
  KMSAccessDeniedException = Shapes::StructureShape.new(name: 'KMSAccessDeniedException')
54
61
  KMSDisabledException = Shapes::StructureShape.new(name: 'KMSDisabledException')
55
62
  KMSInvalidStateException = Shapes::StructureShape.new(name: 'KMSInvalidStateException')
56
63
  KMSNotFoundException = Shapes::StructureShape.new(name: 'KMSNotFoundException')
57
64
  KMSOptInRequired = Shapes::StructureShape.new(name: 'KMSOptInRequired')
58
65
  KMSThrottlingException = Shapes::StructureShape.new(name: 'KMSThrottlingException')
66
+ LanguageCodeString = Shapes::StringShape.new(name: 'LanguageCodeString')
59
67
  ListEndpointsByPlatformApplicationInput = Shapes::StructureShape.new(name: 'ListEndpointsByPlatformApplicationInput')
60
68
  ListEndpointsByPlatformApplicationResponse = Shapes::StructureShape.new(name: 'ListEndpointsByPlatformApplicationResponse')
61
69
  ListOfEndpoints = Shapes::ListShape.new(name: 'ListOfEndpoints')
62
70
  ListOfPlatformApplications = Shapes::ListShape.new(name: 'ListOfPlatformApplications')
71
+ ListOriginationNumbersRequest = Shapes::StructureShape.new(name: 'ListOriginationNumbersRequest')
72
+ ListOriginationNumbersResult = Shapes::StructureShape.new(name: 'ListOriginationNumbersResult')
63
73
  ListPhoneNumbersOptedOutInput = Shapes::StructureShape.new(name: 'ListPhoneNumbersOptedOutInput')
64
74
  ListPhoneNumbersOptedOutResponse = Shapes::StructureShape.new(name: 'ListPhoneNumbersOptedOutResponse')
65
75
  ListPlatformApplicationsInput = Shapes::StructureShape.new(name: 'ListPlatformApplicationsInput')
66
76
  ListPlatformApplicationsResponse = Shapes::StructureShape.new(name: 'ListPlatformApplicationsResponse')
77
+ ListSMSSandboxPhoneNumbersInput = Shapes::StructureShape.new(name: 'ListSMSSandboxPhoneNumbersInput')
78
+ ListSMSSandboxPhoneNumbersResult = Shapes::StructureShape.new(name: 'ListSMSSandboxPhoneNumbersResult')
67
79
  ListString = Shapes::ListShape.new(name: 'ListString')
68
80
  ListSubscriptionsByTopicInput = Shapes::StructureShape.new(name: 'ListSubscriptionsByTopicInput')
69
81
  ListSubscriptionsByTopicResponse = Shapes::StructureShape.new(name: 'ListSubscriptionsByTopicResponse')
@@ -74,19 +86,32 @@ module Aws::SNS
74
86
  ListTopicsInput = Shapes::StructureShape.new(name: 'ListTopicsInput')
75
87
  ListTopicsResponse = Shapes::StructureShape.new(name: 'ListTopicsResponse')
76
88
  MapStringToString = Shapes::MapShape.new(name: 'MapStringToString')
89
+ MaxItems = Shapes::IntegerShape.new(name: 'MaxItems')
90
+ MaxItemsListOriginationNumbers = Shapes::IntegerShape.new(name: 'MaxItemsListOriginationNumbers')
77
91
  MessageAttributeMap = Shapes::MapShape.new(name: 'MessageAttributeMap')
78
92
  MessageAttributeValue = Shapes::StructureShape.new(name: 'MessageAttributeValue')
79
93
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
94
+ NumberCapability = Shapes::StringShape.new(name: 'NumberCapability')
95
+ NumberCapabilityList = Shapes::ListShape.new(name: 'NumberCapabilityList')
96
+ OTPCode = Shapes::StringShape.new(name: 'OTPCode')
80
97
  OptInPhoneNumberInput = Shapes::StructureShape.new(name: 'OptInPhoneNumberInput')
81
98
  OptInPhoneNumberResponse = Shapes::StructureShape.new(name: 'OptInPhoneNumberResponse')
99
+ OptedOutException = Shapes::StructureShape.new(name: 'OptedOutException')
82
100
  PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
101
+ PhoneNumberInformation = Shapes::StructureShape.new(name: 'PhoneNumberInformation')
102
+ PhoneNumberInformationList = Shapes::ListShape.new(name: 'PhoneNumberInformationList')
83
103
  PhoneNumberList = Shapes::ListShape.new(name: 'PhoneNumberList')
104
+ PhoneNumberString = Shapes::StringShape.new(name: 'PhoneNumberString')
84
105
  PlatformApplication = Shapes::StructureShape.new(name: 'PlatformApplication')
85
106
  PlatformApplicationDisabledException = Shapes::StructureShape.new(name: 'PlatformApplicationDisabledException')
86
107
  PublishInput = Shapes::StructureShape.new(name: 'PublishInput')
87
108
  PublishResponse = Shapes::StructureShape.new(name: 'PublishResponse')
88
109
  RemovePermissionInput = Shapes::StructureShape.new(name: 'RemovePermissionInput')
89
110
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
111
+ RouteType = Shapes::StringShape.new(name: 'RouteType')
112
+ SMSSandboxPhoneNumber = Shapes::StructureShape.new(name: 'SMSSandboxPhoneNumber')
113
+ SMSSandboxPhoneNumberList = Shapes::ListShape.new(name: 'SMSSandboxPhoneNumberList')
114
+ SMSSandboxPhoneNumberVerificationStatus = Shapes::StringShape.new(name: 'SMSSandboxPhoneNumberVerificationStatus')
90
115
  SetEndpointAttributesInput = Shapes::StructureShape.new(name: 'SetEndpointAttributesInput')
91
116
  SetPlatformApplicationAttributesInput = Shapes::StructureShape.new(name: 'SetPlatformApplicationAttributesInput')
92
117
  SetSMSAttributesInput = Shapes::StructureShape.new(name: 'SetSMSAttributesInput')
@@ -111,6 +136,7 @@ module Aws::SNS
111
136
  TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
112
137
  TagValue = Shapes::StringShape.new(name: 'TagValue')
113
138
  ThrottledException = Shapes::StructureShape.new(name: 'ThrottledException')
139
+ Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
114
140
  Topic = Shapes::StructureShape.new(name: 'Topic')
115
141
  TopicAttributesMap = Shapes::MapShape.new(name: 'TopicAttributesMap')
116
142
  TopicLimitExceededException = Shapes::StructureShape.new(name: 'TopicLimitExceededException')
@@ -118,6 +144,11 @@ module Aws::SNS
118
144
  UnsubscribeInput = Shapes::StructureShape.new(name: 'UnsubscribeInput')
119
145
  UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
120
146
  UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
147
+ UserErrorException = Shapes::StructureShape.new(name: 'UserErrorException')
148
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
149
+ VerificationException = Shapes::StructureShape.new(name: 'VerificationException')
150
+ VerifySMSSandboxPhoneNumberInput = Shapes::StructureShape.new(name: 'VerifySMSSandboxPhoneNumberInput')
151
+ VerifySMSSandboxPhoneNumberResult = Shapes::StructureShape.new(name: 'VerifySMSSandboxPhoneNumberResult')
121
152
  account = Shapes::StringShape.new(name: 'account')
122
153
  action = Shapes::StringShape.new(name: 'action')
123
154
  attributeName = Shapes::StringShape.new(name: 'attributeName')
@@ -184,6 +215,12 @@ module Aws::SNS
184
215
  CreatePlatformEndpointInput.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "Attributes"))
185
216
  CreatePlatformEndpointInput.struct_class = Types::CreatePlatformEndpointInput
186
217
 
218
+ CreateSMSSandboxPhoneNumberInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumberString, required: true, location_name: "PhoneNumber"))
219
+ CreateSMSSandboxPhoneNumberInput.add_member(:language_code, Shapes::ShapeRef.new(shape: LanguageCodeString, location_name: "LanguageCode"))
220
+ CreateSMSSandboxPhoneNumberInput.struct_class = Types::CreateSMSSandboxPhoneNumberInput
221
+
222
+ CreateSMSSandboxPhoneNumberResult.struct_class = Types::CreateSMSSandboxPhoneNumberResult
223
+
187
224
  CreateTopicInput.add_member(:name, Shapes::ShapeRef.new(shape: topicName, required: true, location_name: "Name"))
188
225
  CreateTopicInput.add_member(:attributes, Shapes::ShapeRef.new(shape: TopicAttributesMap, location_name: "Attributes"))
189
226
  CreateTopicInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -200,6 +237,11 @@ module Aws::SNS
200
237
  DeletePlatformApplicationInput.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "PlatformApplicationArn"))
201
238
  DeletePlatformApplicationInput.struct_class = Types::DeletePlatformApplicationInput
202
239
 
240
+ DeleteSMSSandboxPhoneNumberInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumberString, required: true, location_name: "PhoneNumber"))
241
+ DeleteSMSSandboxPhoneNumberInput.struct_class = Types::DeleteSMSSandboxPhoneNumberInput
242
+
243
+ DeleteSMSSandboxPhoneNumberResult.struct_class = Types::DeleteSMSSandboxPhoneNumberResult
244
+
203
245
  DeleteTopicInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
204
246
  DeleteTopicInput.struct_class = Types::DeleteTopicInput
205
247
 
@@ -231,6 +273,11 @@ module Aws::SNS
231
273
  GetSMSAttributesResponse.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, location_name: "attributes"))
232
274
  GetSMSAttributesResponse.struct_class = Types::GetSMSAttributesResponse
233
275
 
276
+ GetSMSSandboxAccountStatusInput.struct_class = Types::GetSMSSandboxAccountStatusInput
277
+
278
+ GetSMSSandboxAccountStatusResult.add_member(:is_in_sandbox, Shapes::ShapeRef.new(shape: boolean, required: true, location_name: "IsInSandbox"))
279
+ GetSMSSandboxAccountStatusResult.struct_class = Types::GetSMSSandboxAccountStatusResult
280
+
234
281
  GetSubscriptionAttributesInput.add_member(:subscription_arn, Shapes::ShapeRef.new(shape: subscriptionARN, required: true, location_name: "SubscriptionArn"))
235
282
  GetSubscriptionAttributesInput.struct_class = Types::GetSubscriptionAttributesInput
236
283
 
@@ -285,6 +332,14 @@ module Aws::SNS
285
332
 
286
333
  ListOfPlatformApplications.member = Shapes::ShapeRef.new(shape: PlatformApplication)
287
334
 
335
+ ListOriginationNumbersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
336
+ ListOriginationNumbersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxItemsListOriginationNumbers, location_name: "MaxResults"))
337
+ ListOriginationNumbersRequest.struct_class = Types::ListOriginationNumbersRequest
338
+
339
+ ListOriginationNumbersResult.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
340
+ ListOriginationNumbersResult.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: PhoneNumberInformationList, location_name: "PhoneNumbers"))
341
+ ListOriginationNumbersResult.struct_class = Types::ListOriginationNumbersResult
342
+
288
343
  ListPhoneNumbersOptedOutInput.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location_name: "nextToken"))
289
344
  ListPhoneNumbersOptedOutInput.struct_class = Types::ListPhoneNumbersOptedOutInput
290
345
 
@@ -299,6 +354,14 @@ module Aws::SNS
299
354
  ListPlatformApplicationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
300
355
  ListPlatformApplicationsResponse.struct_class = Types::ListPlatformApplicationsResponse
301
356
 
357
+ ListSMSSandboxPhoneNumbersInput.add_member(:next_token, Shapes::ShapeRef.new(shape: nextToken, location_name: "NextToken"))
358
+ ListSMSSandboxPhoneNumbersInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxItems, location_name: "MaxResults"))
359
+ ListSMSSandboxPhoneNumbersInput.struct_class = Types::ListSMSSandboxPhoneNumbersInput
360
+
361
+ ListSMSSandboxPhoneNumbersResult.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: SMSSandboxPhoneNumberList, required: true, location_name: "PhoneNumbers"))
362
+ ListSMSSandboxPhoneNumbersResult.add_member(:next_token, Shapes::ShapeRef.new(shape: string, location_name: "NextToken"))
363
+ ListSMSSandboxPhoneNumbersResult.struct_class = Types::ListSMSSandboxPhoneNumbersResult
364
+
302
365
  ListString.member = Shapes::ShapeRef.new(shape: String)
303
366
 
304
367
  ListSubscriptionsByTopicInput.add_member(:topic_arn, Shapes::ShapeRef.new(shape: topicARN, required: true, location_name: "TopicArn"))
@@ -343,11 +406,26 @@ module Aws::SNS
343
406
  NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
344
407
  NotFoundException.struct_class = Types::NotFoundException
345
408
 
409
+ NumberCapabilityList.member = Shapes::ShapeRef.new(shape: NumberCapability)
410
+
346
411
  OptInPhoneNumberInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "phoneNumber"))
347
412
  OptInPhoneNumberInput.struct_class = Types::OptInPhoneNumberInput
348
413
 
349
414
  OptInPhoneNumberResponse.struct_class = Types::OptInPhoneNumberResponse
350
415
 
416
+ OptedOutException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
417
+ OptedOutException.struct_class = Types::OptedOutException
418
+
419
+ PhoneNumberInformation.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
420
+ PhoneNumberInformation.add_member(:phone_number, Shapes::ShapeRef.new(shape: String, location_name: "PhoneNumber"))
421
+ PhoneNumberInformation.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
422
+ PhoneNumberInformation.add_member(:iso_2_country_code, Shapes::ShapeRef.new(shape: Iso2CountryCode, location_name: "Iso2CountryCode"))
423
+ PhoneNumberInformation.add_member(:route_type, Shapes::ShapeRef.new(shape: RouteType, location_name: "RouteType"))
424
+ PhoneNumberInformation.add_member(:number_capabilities, Shapes::ShapeRef.new(shape: NumberCapabilityList, location_name: "NumberCapabilities"))
425
+ PhoneNumberInformation.struct_class = Types::PhoneNumberInformation
426
+
427
+ PhoneNumberInformationList.member = Shapes::ShapeRef.new(shape: PhoneNumberInformation)
428
+
351
429
  PhoneNumberList.member = Shapes::ShapeRef.new(shape: PhoneNumber)
352
430
 
353
431
  PlatformApplication.add_member(:platform_application_arn, Shapes::ShapeRef.new(shape: String, location_name: "PlatformApplicationArn"))
@@ -379,6 +457,12 @@ module Aws::SNS
379
457
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
380
458
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
381
459
 
460
+ SMSSandboxPhoneNumber.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumberString, location_name: "PhoneNumber"))
461
+ SMSSandboxPhoneNumber.add_member(:status, Shapes::ShapeRef.new(shape: SMSSandboxPhoneNumberVerificationStatus, location_name: "Status"))
462
+ SMSSandboxPhoneNumber.struct_class = Types::SMSSandboxPhoneNumber
463
+
464
+ SMSSandboxPhoneNumberList.member = Shapes::ShapeRef.new(shape: SMSSandboxPhoneNumber)
465
+
382
466
  SetEndpointAttributesInput.add_member(:endpoint_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "EndpointArn"))
383
467
  SetEndpointAttributesInput.add_member(:attributes, Shapes::ShapeRef.new(shape: MapStringToString, required: true, location_name: "Attributes"))
384
468
  SetEndpointAttributesInput.struct_class = Types::SetEndpointAttributesInput
@@ -473,6 +557,22 @@ module Aws::SNS
473
557
 
474
558
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
475
559
 
560
+ UserErrorException.add_member(:message, Shapes::ShapeRef.new(shape: string, location_name: "message"))
561
+ UserErrorException.struct_class = Types::UserErrorException
562
+
563
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Message"))
564
+ ValidationException.struct_class = Types::ValidationException
565
+
566
+ VerificationException.add_member(:message, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Message"))
567
+ VerificationException.add_member(:status, Shapes::ShapeRef.new(shape: string, required: true, location_name: "Status"))
568
+ VerificationException.struct_class = Types::VerificationException
569
+
570
+ VerifySMSSandboxPhoneNumberInput.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumberString, required: true, location_name: "PhoneNumber"))
571
+ VerifySMSSandboxPhoneNumberInput.add_member(:one_time_password, Shapes::ShapeRef.new(shape: OTPCode, required: true, location_name: "OneTimePassword"))
572
+ VerifySMSSandboxPhoneNumberInput.struct_class = Types::VerifySMSSandboxPhoneNumberInput
573
+
574
+ VerifySMSSandboxPhoneNumberResult.struct_class = Types::VerifySMSSandboxPhoneNumberResult
575
+
476
576
 
477
577
  # @api private
478
578
  API = Seahorse::Model::Api.new.tap do |api|
@@ -552,6 +652,20 @@ module Aws::SNS
552
652
  o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
553
653
  end)
554
654
 
655
+ api.add_operation(:create_sms_sandbox_phone_number, Seahorse::Model::Operation.new.tap do |o|
656
+ o.name = "CreateSMSSandboxPhoneNumber"
657
+ o.http_method = "POST"
658
+ o.http_request_uri = "/"
659
+ o.input = Shapes::ShapeRef.new(shape: CreateSMSSandboxPhoneNumberInput)
660
+ o.output = Shapes::ShapeRef.new(shape: CreateSMSSandboxPhoneNumberResult)
661
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
662
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
663
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
664
+ o.errors << Shapes::ShapeRef.new(shape: OptedOutException)
665
+ o.errors << Shapes::ShapeRef.new(shape: UserErrorException)
666
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
667
+ end)
668
+
555
669
  api.add_operation(:create_topic, Seahorse::Model::Operation.new.tap do |o|
556
670
  o.name = "CreateTopic"
557
671
  o.http_method = "POST"
@@ -591,6 +705,20 @@ module Aws::SNS
591
705
  o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
592
706
  end)
593
707
 
708
+ api.add_operation(:delete_sms_sandbox_phone_number, Seahorse::Model::Operation.new.tap do |o|
709
+ o.name = "DeleteSMSSandboxPhoneNumber"
710
+ o.http_method = "POST"
711
+ o.http_request_uri = "/"
712
+ o.input = Shapes::ShapeRef.new(shape: DeleteSMSSandboxPhoneNumberInput)
713
+ o.output = Shapes::ShapeRef.new(shape: DeleteSMSSandboxPhoneNumberResult)
714
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
715
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
716
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
717
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
718
+ o.errors << Shapes::ShapeRef.new(shape: UserErrorException)
719
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
720
+ end)
721
+
594
722
  api.add_operation(:delete_topic, Seahorse::Model::Operation.new.tap do |o|
595
723
  o.name = "DeleteTopic"
596
724
  o.http_method = "POST"
@@ -642,6 +770,17 @@ module Aws::SNS
642
770
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
643
771
  end)
644
772
 
773
+ api.add_operation(:get_sms_sandbox_account_status, Seahorse::Model::Operation.new.tap do |o|
774
+ o.name = "GetSMSSandboxAccountStatus"
775
+ o.http_method = "POST"
776
+ o.http_request_uri = "/"
777
+ o.input = Shapes::ShapeRef.new(shape: GetSMSSandboxAccountStatusInput)
778
+ o.output = Shapes::ShapeRef.new(shape: GetSMSSandboxAccountStatusResult)
779
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
780
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
781
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
782
+ end)
783
+
645
784
  api.add_operation(:get_subscription_attributes, Seahorse::Model::Operation.new.tap do |o|
646
785
  o.name = "GetSubscriptionAttributes"
647
786
  o.http_method = "POST"
@@ -684,6 +823,25 @@ module Aws::SNS
684
823
  )
685
824
  end)
686
825
 
826
+ api.add_operation(:list_origination_numbers, Seahorse::Model::Operation.new.tap do |o|
827
+ o.name = "ListOriginationNumbers"
828
+ o.http_method = "POST"
829
+ o.http_request_uri = "/"
830
+ o.input = Shapes::ShapeRef.new(shape: ListOriginationNumbersRequest)
831
+ o.output = Shapes::ShapeRef.new(shape: ListOriginationNumbersResult)
832
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
833
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
834
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
835
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
836
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
837
+ o[:pager] = Aws::Pager.new(
838
+ limit_key: "max_results",
839
+ tokens: {
840
+ "next_token" => "next_token"
841
+ }
842
+ )
843
+ end)
844
+
687
845
  api.add_operation(:list_phone_numbers_opted_out, Seahorse::Model::Operation.new.tap do |o|
688
846
  o.name = "ListPhoneNumbersOptedOut"
689
847
  o.http_method = "POST"
@@ -712,6 +870,25 @@ module Aws::SNS
712
870
  )
713
871
  end)
714
872
 
873
+ api.add_operation(:list_sms_sandbox_phone_numbers, Seahorse::Model::Operation.new.tap do |o|
874
+ o.name = "ListSMSSandboxPhoneNumbers"
875
+ o.http_method = "POST"
876
+ o.http_request_uri = "/"
877
+ o.input = Shapes::ShapeRef.new(shape: ListSMSSandboxPhoneNumbersInput)
878
+ o.output = Shapes::ShapeRef.new(shape: ListSMSSandboxPhoneNumbersResult)
879
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
880
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
881
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
882
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
883
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
884
+ o[:pager] = Aws::Pager.new(
885
+ limit_key: "max_results",
886
+ tokens: {
887
+ "next_token" => "next_token"
888
+ }
889
+ )
890
+ end)
891
+
715
892
  api.add_operation(:list_subscriptions, Seahorse::Model::Operation.new.tap do |o|
716
893
  o.name = "ListSubscriptions"
717
894
  o.http_method = "POST"
@@ -939,6 +1116,20 @@ module Aws::SNS
939
1116
  o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
940
1117
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentAccessException)
941
1118
  end)
1119
+
1120
+ api.add_operation(:verify_sms_sandbox_phone_number, Seahorse::Model::Operation.new.tap do |o|
1121
+ o.name = "VerifySMSSandboxPhoneNumber"
1122
+ o.http_method = "POST"
1123
+ o.http_request_uri = "/"
1124
+ o.input = Shapes::ShapeRef.new(shape: VerifySMSSandboxPhoneNumberInput)
1125
+ o.output = Shapes::ShapeRef.new(shape: VerifySMSSandboxPhoneNumberResult)
1126
+ o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
1127
+ o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
1128
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
1129
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1130
+ o.errors << Shapes::ShapeRef.new(shape: VerificationException)
1131
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledException)
1132
+ end)
942
1133
  end
943
1134
 
944
1135
  end