aws-sdk-pinpointsmsvoicev2 1.63.0 → 1.65.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 +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-pinpointsmsvoicev2/client.rb +26 -9
- data/lib/aws-sdk-pinpointsmsvoicev2/client_api.rb +2 -0
- data/lib/aws-sdk-pinpointsmsvoicev2/types.rb +31 -9
- data/lib/aws-sdk-pinpointsmsvoicev2.rb +1 -1
- data/sig/client.rbs +4 -2
- data/sig/types.rbs +3 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13f6d9b33cdb464488019d363f5776b37f043673c0d427424c1e0c3954b6a7e7
|
|
4
|
+
data.tar.gz: 3c3acecfdd106495d3e9c9c079aef708aeee78c6d2a726a7dc34d0a6b4412381
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e411b72485d809d2e9385d48a387cd3fae711a067fd66af3f63b93b437594122aad252987ffbbe458b5792c299f185223f4a2b026bd477b66028c65e54f7b658
|
|
7
|
+
data.tar.gz: 060f94e34acf6ccb34e7fd7c3de144f0524d7908939eed9c68252fc9203628d9c7c2f9c53cbd8b35a5503f470059204ad2581e3b7486b91835897191673a889f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.65.0 (2026-10-02)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - AWS End User Messaging SMS CarrierLookup API now supports phone number cleansing on customer opt-in. when selected, the response includes the additional field "OriginalPhoneNumber". It can also return additional PhoneNumberType enums, VOIP and PREPAID.
|
|
8
|
+
|
|
9
|
+
1.64.0 (2026-09-11)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.63.0 (2026-09-09)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.65.0
|
|
@@ -614,6 +614,14 @@ module Aws::PinpointSMSVoiceV2
|
|
|
614
614
|
# and commas. The service automatically converts the input to E164
|
|
615
615
|
# format for processing.
|
|
616
616
|
#
|
|
617
|
+
# @option params [Boolean] :enable_cleansing
|
|
618
|
+
# Specifies whether the service cleanses the phone number that you
|
|
619
|
+
# provide. When set to `true`, the service normalizes the phone number
|
|
620
|
+
# according to the destination country's national numbering plan and
|
|
621
|
+
# dialing rules. The service returns the cleansed number in E.164 format
|
|
622
|
+
# in the `E164PhoneNumber` field and returns the number that you
|
|
623
|
+
# provided in the `OriginalPhoneNumber` field.
|
|
624
|
+
#
|
|
617
625
|
# @return [Types::CarrierLookupResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
618
626
|
#
|
|
619
627
|
# * {Types::CarrierLookupResult#e164_phone_number #e164_phone_number} => String
|
|
@@ -624,6 +632,7 @@ module Aws::PinpointSMSVoiceV2
|
|
|
624
632
|
# * {Types::CarrierLookupResult#mnc #mnc} => String
|
|
625
633
|
# * {Types::CarrierLookupResult#carrier #carrier} => String
|
|
626
634
|
# * {Types::CarrierLookupResult#phone_number_type #phone_number_type} => String
|
|
635
|
+
# * {Types::CarrierLookupResult#original_phone_number #original_phone_number} => String
|
|
627
636
|
#
|
|
628
637
|
#
|
|
629
638
|
# @example Example: Use CarrierLookup
|
|
@@ -651,6 +660,7 @@ module Aws::PinpointSMSVoiceV2
|
|
|
651
660
|
#
|
|
652
661
|
# resp = client.carrier_lookup({
|
|
653
662
|
# phone_number: "CarrierLookupInputPhoneNumberType", # required
|
|
663
|
+
# enable_cleansing: false,
|
|
654
664
|
# })
|
|
655
665
|
#
|
|
656
666
|
# @example Response structure
|
|
@@ -662,7 +672,8 @@ module Aws::PinpointSMSVoiceV2
|
|
|
662
672
|
# resp.mcc #=> String
|
|
663
673
|
# resp.mnc #=> String
|
|
664
674
|
# resp.carrier #=> String
|
|
665
|
-
# resp.phone_number_type #=> String, one of "MOBILE", "LANDLINE", "OTHER", "INVALID"
|
|
675
|
+
# resp.phone_number_type #=> String, one of "MOBILE", "LANDLINE", "VOIP", "PREPAID", "OTHER", "INVALID"
|
|
676
|
+
# resp.original_phone_number #=> String
|
|
666
677
|
#
|
|
667
678
|
# @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CarrierLookup AWS API Documentation
|
|
668
679
|
#
|
|
@@ -4594,11 +4605,14 @@ module Aws::PinpointSMSVoiceV2
|
|
|
4594
4605
|
req.send_request(options)
|
|
4595
4606
|
end
|
|
4596
4607
|
|
|
4597
|
-
#
|
|
4598
|
-
#
|
|
4599
|
-
#
|
|
4600
|
-
#
|
|
4601
|
-
#
|
|
4608
|
+
# Retrieves a list of phone numbers that are available to request, based
|
|
4609
|
+
# on the country, capabilities, and number type that you specify. You
|
|
4610
|
+
# can optionally provide a number preference to return only numbers that
|
|
4611
|
+
# match a specific digit pattern.
|
|
4612
|
+
#
|
|
4613
|
+
# If no numbers match your search, this operation returns an empty list
|
|
4614
|
+
# rather than an error. This operation currently supports only `TEN_DLC`
|
|
4615
|
+
# number types in the `US`.
|
|
4602
4616
|
#
|
|
4603
4617
|
# @option params [required, String] :iso_country_code
|
|
4604
4618
|
# The two-character code, in ISO 3166-1 alpha-2 format, for the country
|
|
@@ -4621,8 +4635,11 @@ module Aws::PinpointSMSVoiceV2
|
|
|
4621
4635
|
# * The Amazon Resource Name (ARN) of the registration.
|
|
4622
4636
|
#
|
|
4623
4637
|
# @option params [Array<Types::NumberPreferenceItem>] :number_preference
|
|
4624
|
-
#
|
|
4625
|
-
#
|
|
4638
|
+
# An optional selection preference used to return only phone numbers
|
|
4639
|
+
# that match a specific digit pattern, such as numbers that start with,
|
|
4640
|
+
# end with, or contain a particular sequence. You can specify at most
|
|
4641
|
+
# one preference. Number preferences apply only to `TEN_DLC` numbers in
|
|
4642
|
+
# the `US`.
|
|
4626
4643
|
#
|
|
4627
4644
|
# @option params [String] :next_token
|
|
4628
4645
|
# The token returned from a previous request to retrieve the next page
|
|
@@ -7808,7 +7825,7 @@ module Aws::PinpointSMSVoiceV2
|
|
|
7808
7825
|
tracer: tracer
|
|
7809
7826
|
)
|
|
7810
7827
|
context[:gem_name] = 'aws-sdk-pinpointsmsvoicev2'
|
|
7811
|
-
context[:gem_version] = '1.
|
|
7828
|
+
context[:gem_version] = '1.65.0'
|
|
7812
7829
|
Seahorse::Client::Request.new(handlers, context)
|
|
7813
7830
|
end
|
|
7814
7831
|
|
|
@@ -667,6 +667,7 @@ module Aws::PinpointSMSVoiceV2
|
|
|
667
667
|
AvailablePhoneNumberList.member = Shapes::ShapeRef.new(shape: PhoneNumber)
|
|
668
668
|
|
|
669
669
|
CarrierLookupRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: CarrierLookupInputPhoneNumberType, required: true, location_name: "PhoneNumber"))
|
|
670
|
+
CarrierLookupRequest.add_member(:enable_cleansing, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnableCleansing"))
|
|
670
671
|
CarrierLookupRequest.struct_class = Types::CarrierLookupRequest
|
|
671
672
|
|
|
672
673
|
CarrierLookupResult.add_member(:e164_phone_number, Shapes::ShapeRef.new(shape: E164PhoneNumberType, required: true, location_name: "E164PhoneNumber"))
|
|
@@ -677,6 +678,7 @@ module Aws::PinpointSMSVoiceV2
|
|
|
677
678
|
CarrierLookupResult.add_member(:mnc, Shapes::ShapeRef.new(shape: MNCType, location_name: "MNC"))
|
|
678
679
|
CarrierLookupResult.add_member(:carrier, Shapes::ShapeRef.new(shape: String, location_name: "Carrier"))
|
|
679
680
|
CarrierLookupResult.add_member(:phone_number_type, Shapes::ShapeRef.new(shape: PhoneNumberType, required: true, location_name: "PhoneNumberType"))
|
|
681
|
+
CarrierLookupResult.add_member(:original_phone_number, Shapes::ShapeRef.new(shape: CarrierLookupInputPhoneNumberType, location_name: "OriginalPhoneNumber"))
|
|
680
682
|
CarrierLookupResult.struct_class = Types::CarrierLookupResult
|
|
681
683
|
|
|
682
684
|
CarrierStatusInformation.add_member(:carrier_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "CarrierName"))
|
|
@@ -214,10 +214,20 @@ module Aws::PinpointSMSVoiceV2
|
|
|
214
214
|
# format for processing.
|
|
215
215
|
# @return [String]
|
|
216
216
|
#
|
|
217
|
+
# @!attribute [rw] enable_cleansing
|
|
218
|
+
# Specifies whether the service cleanses the phone number that you
|
|
219
|
+
# provide. When set to `true`, the service normalizes the phone number
|
|
220
|
+
# according to the destination country's national numbering plan and
|
|
221
|
+
# dialing rules. The service returns the cleansed number in E.164
|
|
222
|
+
# format in the `E164PhoneNumber` field and returns the number that
|
|
223
|
+
# you provided in the `OriginalPhoneNumber` field.
|
|
224
|
+
# @return [Boolean]
|
|
225
|
+
#
|
|
217
226
|
# @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CarrierLookupRequest AWS API Documentation
|
|
218
227
|
#
|
|
219
228
|
class CarrierLookupRequest < Struct.new(
|
|
220
|
-
:phone_number
|
|
229
|
+
:phone_number,
|
|
230
|
+
:enable_cleansing)
|
|
221
231
|
SENSITIVE = []
|
|
222
232
|
include Aws::Structure
|
|
223
233
|
end
|
|
@@ -259,9 +269,16 @@ module Aws::PinpointSMSVoiceV2
|
|
|
259
269
|
#
|
|
260
270
|
# @!attribute [rw] phone_number_type
|
|
261
271
|
# Describes the type of phone number. Valid values are: MOBILE,
|
|
262
|
-
# LANDLINE, OTHER, and INVALID. Avoid sending SMS or
|
|
263
|
-
# INVALID phone numbers, as these numbers are
|
|
264
|
-
# actual recipients.
|
|
272
|
+
# LANDLINE, VOIP, PREPAID, OTHER, and INVALID. Avoid sending SMS or
|
|
273
|
+
# voice messages to INVALID phone numbers, as these numbers are
|
|
274
|
+
# unlikely to belong to actual recipients.
|
|
275
|
+
# @return [String]
|
|
276
|
+
#
|
|
277
|
+
# @!attribute [rw] original_phone_number
|
|
278
|
+
# The phone number exactly as you supplied it in the request. This
|
|
279
|
+
# field is returned only when you set `EnableCleansing` to `true`, the
|
|
280
|
+
# phone number was cleansed, and a normalized E.164 phone number was
|
|
281
|
+
# returned in the `E164PhoneNumber` field.
|
|
265
282
|
# @return [String]
|
|
266
283
|
#
|
|
267
284
|
# @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/CarrierLookupResult AWS API Documentation
|
|
@@ -274,7 +291,8 @@ module Aws::PinpointSMSVoiceV2
|
|
|
274
291
|
:mcc,
|
|
275
292
|
:mnc,
|
|
276
293
|
:carrier,
|
|
277
|
-
:phone_number_type
|
|
294
|
+
:phone_number_type,
|
|
295
|
+
:original_phone_number)
|
|
278
296
|
SENSITIVE = []
|
|
279
297
|
include Aws::Structure
|
|
280
298
|
end
|
|
@@ -4618,8 +4636,11 @@ module Aws::PinpointSMSVoiceV2
|
|
|
4618
4636
|
# @return [String]
|
|
4619
4637
|
#
|
|
4620
4638
|
# @!attribute [rw] number_preference
|
|
4621
|
-
#
|
|
4622
|
-
#
|
|
4639
|
+
# An optional selection preference used to return only phone numbers
|
|
4640
|
+
# that match a specific digit pattern, such as numbers that start
|
|
4641
|
+
# with, end with, or contain a particular sequence. You can specify at
|
|
4642
|
+
# most one preference. Number preferences apply only to `TEN_DLC`
|
|
4643
|
+
# numbers in the `US`.
|
|
4623
4644
|
# @return [Array<Types::NumberPreferenceItem>]
|
|
4624
4645
|
#
|
|
4625
4646
|
# @!attribute [rw] next_token
|
|
@@ -5200,8 +5221,9 @@ module Aws::PinpointSMSVoiceV2
|
|
|
5200
5221
|
include Aws::Structure
|
|
5201
5222
|
end
|
|
5202
5223
|
|
|
5203
|
-
# A single number preference
|
|
5204
|
-
#
|
|
5224
|
+
# A single number preference that specifies how to match available phone
|
|
5225
|
+
# numbers. Each preference pairs a match type with one or more filter
|
|
5226
|
+
# values.
|
|
5205
5227
|
#
|
|
5206
5228
|
# @!attribute [rw] preference_type
|
|
5207
5229
|
# The type of match to apply to the filter values.
|
data/sig/client.rbs
CHANGED
|
@@ -119,11 +119,13 @@ module Aws
|
|
|
119
119
|
def mcc: () -> ::String
|
|
120
120
|
def mnc: () -> ::String
|
|
121
121
|
def carrier: () -> ::String
|
|
122
|
-
def phone_number_type: () -> ("MOBILE" | "LANDLINE" | "OTHER" | "INVALID")
|
|
122
|
+
def phone_number_type: () -> ("MOBILE" | "LANDLINE" | "VOIP" | "PREPAID" | "OTHER" | "INVALID")
|
|
123
|
+
def original_phone_number: () -> ::String
|
|
123
124
|
end
|
|
124
125
|
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PinpointSMSVoiceV2/Client.html#carrier_lookup-instance_method
|
|
125
126
|
def carrier_lookup: (
|
|
126
|
-
phone_number: ::String
|
|
127
|
+
phone_number: ::String,
|
|
128
|
+
?enable_cleansing: bool
|
|
127
129
|
) -> _CarrierLookupResponseSuccess
|
|
128
130
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CarrierLookupResponseSuccess
|
|
129
131
|
|
data/sig/types.rbs
CHANGED
|
@@ -60,6 +60,7 @@ module Aws::PinpointSMSVoiceV2
|
|
|
60
60
|
|
|
61
61
|
class CarrierLookupRequest
|
|
62
62
|
attr_accessor phone_number: ::String
|
|
63
|
+
attr_accessor enable_cleansing: bool
|
|
63
64
|
SENSITIVE: []
|
|
64
65
|
end
|
|
65
66
|
|
|
@@ -71,7 +72,8 @@ module Aws::PinpointSMSVoiceV2
|
|
|
71
72
|
attr_accessor mcc: ::String
|
|
72
73
|
attr_accessor mnc: ::String
|
|
73
74
|
attr_accessor carrier: ::String
|
|
74
|
-
attr_accessor phone_number_type: ("MOBILE" | "LANDLINE" | "OTHER" | "INVALID")
|
|
75
|
+
attr_accessor phone_number_type: ("MOBILE" | "LANDLINE" | "VOIP" | "PREPAID" | "OTHER" | "INVALID")
|
|
76
|
+
attr_accessor original_phone_number: ::String
|
|
75
77
|
SENSITIVE: []
|
|
76
78
|
end
|
|
77
79
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-pinpointsmsvoicev2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.65.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
@@ -18,7 +18,7 @@ dependencies:
|
|
|
18
18
|
version: '3'
|
|
19
19
|
- - ">="
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.
|
|
21
|
+
version: 3.256.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -28,7 +28,7 @@ dependencies:
|
|
|
28
28
|
version: '3'
|
|
29
29
|
- - ">="
|
|
30
30
|
- !ruby/object:Gem::Version
|
|
31
|
-
version: 3.
|
|
31
|
+
version: 3.256.0
|
|
32
32
|
- !ruby/object:Gem::Dependency
|
|
33
33
|
name: aws-sigv4
|
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|