aws-sdk-pinpointsmsvoicev2 1.60.0 → 1.62.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: 726c0d2e1daedd56144bda4749688ae2d4aa98efad9a7a5f18a8f5549cc5b1ac
4
- data.tar.gz: 8940d3ad83c64de434e55b68e658a891b4cc7ac524a80179167e569bfe1510d0
3
+ metadata.gz: 83366adcfa5d28ab3bb351690a9e9ebcd3678ec5a09fa4ac2fcdeb6b009b5396
4
+ data.tar.gz: f2cdf2d5f92dfe9a0f4eeb1233c823bccdda7a47f3bc7d9b8dcc46065bd46837
5
5
  SHA512:
6
- metadata.gz: 5698647de75c9b39a843ecffba07d52cb6bc35df26538ccccf6a6a77cf485451fb3601842e2300057ca0d75d9fec895966593f8f8e8ae719e20b791bb4f7c3d4
7
- data.tar.gz: 28fbbc7b92e346cfae9c4a596ad83eb99fc054685e35e487c30126b8222081c7b8d2de466f24a7d91fb0e156f6cfed8390d19f0ecb570feb1d41db5ec56e0910
6
+ metadata.gz: db897ddf1e0a4e0f53c2f93917875a6eae7ed8967e00cf63249d2af365fbdb9cdd3bd396b8538eb80914c1b81038f76c84d98d3ab805b50a7d1bd7fff1b97f86
7
+ data.tar.gz: 42b24cf11465686a9913677fae655cab4d0332f480de82de48c0788c44c0138a4ba2666d385744d82cf36c367626e797f0817ea0e5babe01ccab205d9c62f719
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.62.0 (2026-09-08)
5
+ ------------------
6
+
7
+ * Feature - This feature will allow customers to specify an area-code when requesting a 10DLC number. Why it matters- Customers can now select a number that matches where their business is located.
8
+
9
+ 1.61.0 (2026-08-31)
10
+ ------------------
11
+
12
+ * Feature - AWS End User Messaging SMS now returns ConditionalBehavior on DescribeRegistrationFieldDefinitions, allowing you to programmatically discover which registration fields are required, optional, or disallowed based on the values of other fields in the same form.
13
+
4
14
  1.60.0 (2026-07-09)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.60.0
1
+ 1.62.0
@@ -1465,16 +1465,15 @@ module Aws::PinpointSMSVoiceV2
1465
1465
  end
1466
1466
 
1467
1467
  # Create a new registration attachment to use for uploading a file or a
1468
- # URL to a file. The maximum file size is 500KB and valid file
1469
- # extensions are PDF, JPEG and PNG. For example, many sender ID
1470
- # registrations require a signed “letter of authorization” (LOA) to be
1471
- # submitted.
1468
+ # URL to a file. The maximum file size is 5MB and valid file extensions
1469
+ # are PDF, JPEG and PNG. For example, many sender ID registrations
1470
+ # require a signed “letter of authorization” (LOA) to be submitted.
1472
1471
  #
1473
1472
  # Use either `AttachmentUrl` or `AttachmentBody` to upload your
1474
1473
  # attachment. If both are specified then an exception is returned.
1475
1474
  #
1476
1475
  # @option params [String, StringIO, File] :attachment_body
1477
- # The registration file to upload. The maximum file size is 500KB and
1476
+ # The registration file to upload. The maximum file size is 5MB and
1478
1477
  # valid file extensions are PDF, JPEG and PNG.
1479
1478
  #
1480
1479
  # @option params [String] :attachment_url
@@ -3384,6 +3383,10 @@ module Aws::PinpointSMSVoiceV2
3384
3383
  # resp.phone_numbers[0].deletion_protection_enabled #=> Boolean
3385
3384
  # resp.phone_numbers[0].pool_id #=> String
3386
3385
  # resp.phone_numbers[0].registration_id #=> String
3386
+ # resp.phone_numbers[0].messaging_limits.rate_limits #=> Hash
3387
+ # resp.phone_numbers[0].messaging_limits.rate_limits["String"] #=> Integer
3388
+ # resp.phone_numbers[0].messaging_limits.daily_message_caps #=> Hash
3389
+ # resp.phone_numbers[0].messaging_limits.daily_message_caps["String"] #=> Integer
3387
3390
  # resp.phone_numbers[0].created_timestamp #=> Time
3388
3391
  # resp.next_token #=> String
3389
3392
  #
@@ -3677,6 +3680,10 @@ module Aws::PinpointSMSVoiceV2
3677
3680
  # resp.rcs_agents[0].testing_agent.status #=> String, one of "CREATED", "PENDING", "ACTIVE"
3678
3681
  # resp.rcs_agents[0].testing_agent.testing_agent_id #=> String
3679
3682
  # resp.rcs_agents[0].testing_agent.registration_id #=> String
3683
+ # resp.rcs_agents[0].messaging_limits.rate_limits #=> Hash
3684
+ # resp.rcs_agents[0].messaging_limits.rate_limits["String"] #=> Integer
3685
+ # resp.rcs_agents[0].messaging_limits.daily_message_caps #=> Hash
3686
+ # resp.rcs_agents[0].messaging_limits.daily_message_caps["String"] #=> Integer
3680
3687
  # resp.next_token #=> String
3681
3688
  #
3682
3689
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeRcsAgents AWS API Documentation
@@ -3812,6 +3819,19 @@ module Aws::PinpointSMSVoiceV2
3812
3819
  # resp.registration_field_definitions[0].display_hints.select_option_descriptions[0].description #=> String
3813
3820
  # resp.registration_field_definitions[0].display_hints.text_validation_description #=> String
3814
3821
  # resp.registration_field_definitions[0].display_hints.example_text_value #=> String
3822
+ # resp.registration_field_definitions[0].conditional_behavior.rules #=> Array
3823
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditions #=> Array
3824
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditions[0].depends_on_field_path #=> String
3825
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditions[0].operator #=> String
3826
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditions[0].values #=> Array
3827
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditions[0].values[0] #=> String
3828
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].rule_behavior #=> String
3829
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditional_validation.min_length #=> Integer
3830
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditional_validation.max_length #=> Integer
3831
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditional_validation.pattern #=> String
3832
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditional_validation.allowed_values #=> Array
3833
+ # resp.registration_field_definitions[0].conditional_behavior.rules[0].conditional_validation.allowed_values[0] #=> String
3834
+ # resp.registration_field_definitions[0].conditional_behavior.default_behavior #=> String
3815
3835
  # resp.next_token #=> String
3816
3836
  #
3817
3837
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeRegistrationFieldDefinitions AWS API Documentation
@@ -4217,6 +4237,10 @@ module Aws::PinpointSMSVoiceV2
4217
4237
  # resp.sender_ids[0].deletion_protection_enabled #=> Boolean
4218
4238
  # resp.sender_ids[0].registered #=> Boolean
4219
4239
  # resp.sender_ids[0].registration_id #=> String
4240
+ # resp.sender_ids[0].messaging_limits.rate_limits #=> Hash
4241
+ # resp.sender_ids[0].messaging_limits.rate_limits["String"] #=> Integer
4242
+ # resp.sender_ids[0].messaging_limits.daily_message_caps #=> Hash
4243
+ # resp.sender_ids[0].messaging_limits.daily_message_caps["String"] #=> Integer
4220
4244
  # resp.next_token #=> String
4221
4245
  #
4222
4246
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/DescribeSenderIds AWS API Documentation
@@ -4570,6 +4594,117 @@ module Aws::PinpointSMSVoiceV2
4570
4594
  req.send_request(options)
4571
4595
  end
4572
4596
 
4597
+ # Search available phone numbers from aggregator inventory, optionally
4598
+ # filtered by pattern. If NumberPreference is omitted, returns
4599
+ # unfiltered available numbers. Returns empty list (not an exception)
4600
+ # when no numbers match. ResourceNotFoundException is thrown only for
4601
+ # invalid RegistrationId (campaign not found).
4602
+ #
4603
+ # @option params [required, String] :iso_country_code
4604
+ # The two-character code, in ISO 3166-1 alpha-2 format, for the country
4605
+ # or region in which to search for available phone numbers. This
4606
+ # operation currently supports only `US`.
4607
+ #
4608
+ # @option params [required, Array<String>] :number_capabilities
4609
+ # The capabilities to filter by, such as SMS. Only phone numbers that
4610
+ # support all of the specified capabilities are returned.
4611
+ #
4612
+ # @option params [required, String] :number_type
4613
+ # The type of phone number to search for.
4614
+ #
4615
+ # @option params [String] :registration_id
4616
+ # The registration associated with the request. A registration is
4617
+ # required for regulated number types. You can specify either:
4618
+ #
4619
+ # * The unique identifier of the registration.
4620
+ #
4621
+ # * The Amazon Resource Name (ARN) of the registration.
4622
+ #
4623
+ # @option params [Array<Types::NumberPreferenceItem>] :number_preference
4624
+ # Optional. If omitted, returns unfiltered available numbers. Max 1
4625
+ # element for List API.
4626
+ #
4627
+ # @option params [String] :next_token
4628
+ # The token returned from a previous request to retrieve the next page
4629
+ # of results.
4630
+ #
4631
+ # @option params [Integer] :max_results
4632
+ # The maximum number of results to return per page. If you don't
4633
+ # specify a value, the default is 10.
4634
+ #
4635
+ # @return [Types::ListAvailablePhoneNumbersResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4636
+ #
4637
+ # * {Types::ListAvailablePhoneNumbersResult#available_phone_numbers #available_phone_numbers} => Array&lt;String&gt;
4638
+ # * {Types::ListAvailablePhoneNumbersResult#next_token #next_token} => String
4639
+ #
4640
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4641
+ #
4642
+ #
4643
+ # @example Example: ListAvailablePhoneNumbers
4644
+ #
4645
+ # # Search for available TEN_DLC phone numbers in the US that start with a specific area code.
4646
+ #
4647
+ # resp = client.list_available_phone_numbers({
4648
+ # iso_country_code: "US",
4649
+ # max_results: 10,
4650
+ # number_capabilities: [
4651
+ # "SMS",
4652
+ # ],
4653
+ # number_preference: [
4654
+ # {
4655
+ # filter: [
4656
+ # "+1206",
4657
+ # ],
4658
+ # preference_type: [
4659
+ # "StartsWith",
4660
+ # ],
4661
+ # },
4662
+ # ],
4663
+ # number_type: "TEN_DLC",
4664
+ # registration_id: "reg-1234567890abcdef0",
4665
+ # })
4666
+ #
4667
+ # resp.to_h outputs the following:
4668
+ # {
4669
+ # available_phone_numbers: [
4670
+ # "+12065550100",
4671
+ # "+12065550142",
4672
+ # "+12065550187",
4673
+ # ],
4674
+ # }
4675
+ #
4676
+ # @example Request syntax with placeholder values
4677
+ #
4678
+ # resp = client.list_available_phone_numbers({
4679
+ # iso_country_code: "IsoCountryCode", # required
4680
+ # number_capabilities: ["SMS"], # required, accepts SMS, VOICE, MMS, RCS
4681
+ # number_type: "TEN_DLC", # required, accepts TEN_DLC
4682
+ # registration_id: "RegistrationIdOrArn",
4683
+ # number_preference: [
4684
+ # {
4685
+ # preference_type: ["StartsWith"], # required, accepts StartsWith, EndsWith, Contains, ExactMatch
4686
+ # filter: ["NumberFilterValue"], # required
4687
+ # },
4688
+ # ],
4689
+ # next_token: "NextToken",
4690
+ # max_results: 1,
4691
+ # })
4692
+ #
4693
+ # @example Response structure
4694
+ #
4695
+ # resp.available_phone_numbers #=> Array
4696
+ # resp.available_phone_numbers[0] #=> String
4697
+ # resp.next_token #=> String
4698
+ #
4699
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ListAvailablePhoneNumbers AWS API Documentation
4700
+ #
4701
+ # @overload list_available_phone_numbers(params = {})
4702
+ # @param [Hash] params ({})
4703
+ def list_available_phone_numbers(params = {}, options = {})
4704
+ req = build_request(:list_available_phone_numbers, params)
4705
+ req.send_request(options)
4706
+ end
4707
+
4573
4708
  # Lists countries that support notify messaging. You can optionally
4574
4709
  # filter by channel, use case, or tier.
4575
4710
  #
@@ -5387,6 +5522,12 @@ module Aws::PinpointSMSVoiceV2
5387
5522
  # Use this field to attach your phone number for an external
5388
5523
  # registration process.
5389
5524
  #
5525
+ # @option params [Array<Types::NumberPreferenceItem>] :number_preference
5526
+ # An optional selection preference used to request a specific phone
5527
+ # number, such as a number that starts with, ends with, or contains a
5528
+ # particular digit pattern. You can specify at most one preference.
5529
+ # Number preferences apply only to `TEN_DLC` requests in the `US`.
5530
+ #
5390
5531
  # @option params [Boolean] :international_sending_enabled
5391
5532
  # By default this is set to false. When set to true the international
5392
5533
  # sending of phone number is Enabled.
@@ -5441,6 +5582,12 @@ module Aws::PinpointSMSVoiceV2
5441
5582
  # opt_out_list_name: "OptOutListNameOrArn",
5442
5583
  # pool_id: "PoolIdOrArn",
5443
5584
  # registration_id: "RegistrationIdOrArn",
5585
+ # number_preference: [
5586
+ # {
5587
+ # preference_type: ["StartsWith"], # required, accepts StartsWith, EndsWith, Contains, ExactMatch
5588
+ # filter: ["NumberFilterValue"], # required
5589
+ # },
5590
+ # ],
5444
5591
  # international_sending_enabled: false,
5445
5592
  # deletion_protection_enabled: false,
5446
5593
  # tags: [
@@ -7661,7 +7808,7 @@ module Aws::PinpointSMSVoiceV2
7661
7808
  tracer: tracer
7662
7809
  )
7663
7810
  context[:gem_name] = 'aws-sdk-pinpointsmsvoicev2'
7664
- context[:gem_version] = '1.60.0'
7811
+ context[:gem_version] = '1.62.0'
7665
7812
  Seahorse::Client::Request.new(handlers, context)
7666
7813
  end
7667
7814
 
@@ -31,6 +31,7 @@ module Aws::PinpointSMSVoiceV2
31
31
  AttachmentStatus = Shapes::StringShape.new(name: 'AttachmentStatus')
32
32
  AttachmentUploadErrorReason = Shapes::StringShape.new(name: 'AttachmentUploadErrorReason')
33
33
  AttachmentUrl = Shapes::StringShape.new(name: 'AttachmentUrl')
34
+ AvailablePhoneNumberList = Shapes::ListShape.new(name: 'AvailablePhoneNumberList')
34
35
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
35
36
  CarrierLookupInputPhoneNumberType = Shapes::StringShape.new(name: 'CarrierLookupInputPhoneNumberType')
36
37
  CarrierLookupRequest = Shapes::StructureShape.new(name: 'CarrierLookupRequest')
@@ -40,6 +41,17 @@ module Aws::PinpointSMSVoiceV2
40
41
  CarrierStatusInformationList = Shapes::ListShape.new(name: 'CarrierStatusInformationList')
41
42
  ClientToken = Shapes::StringShape.new(name: 'ClientToken')
42
43
  CloudWatchLogsDestination = Shapes::StructureShape.new(name: 'CloudWatchLogsDestination')
44
+ ConditionOperator = Shapes::StringShape.new(name: 'ConditionOperator')
45
+ ConditionValue = Shapes::StringShape.new(name: 'ConditionValue')
46
+ ConditionValueList = Shapes::ListShape.new(name: 'ConditionValueList')
47
+ ConditionalBehavior = Shapes::StructureShape.new(name: 'ConditionalBehavior')
48
+ ConditionalFieldBehavior = Shapes::StringShape.new(name: 'ConditionalFieldBehavior')
49
+ ConditionalRule = Shapes::StructureShape.new(name: 'ConditionalRule')
50
+ ConditionalRuleList = Shapes::ListShape.new(name: 'ConditionalRuleList')
51
+ ConditionalValidation = Shapes::StructureShape.new(name: 'ConditionalValidation')
52
+ ConditionalValidationMaxLengthInteger = Shapes::IntegerShape.new(name: 'ConditionalValidationMaxLengthInteger')
53
+ ConditionalValidationMinLengthInteger = Shapes::IntegerShape.new(name: 'ConditionalValidationMinLengthInteger')
54
+ ConditionalValidationPatternString = Shapes::StringShape.new(name: 'ConditionalValidationPatternString')
43
55
  ConfigurationSetFilter = Shapes::StructureShape.new(name: 'ConfigurationSetFilter')
44
56
  ConfigurationSetFilterList = Shapes::ListShape.new(name: 'ConfigurationSetFilterList')
45
57
  ConfigurationSetFilterName = Shapes::StringShape.new(name: 'ConfigurationSetFilterName')
@@ -193,6 +205,8 @@ module Aws::PinpointSMSVoiceV2
193
205
  EventDestinationName = Shapes::StringShape.new(name: 'EventDestinationName')
194
206
  EventType = Shapes::StringShape.new(name: 'EventType')
195
207
  EventTypeList = Shapes::ListShape.new(name: 'EventTypeList')
208
+ FieldCondition = Shapes::StructureShape.new(name: 'FieldCondition')
209
+ FieldConditionList = Shapes::ListShape.new(name: 'FieldConditionList')
196
210
  FieldPath = Shapes::StringShape.new(name: 'FieldPath')
197
211
  FieldPathList = Shapes::ListShape.new(name: 'FieldPathList')
198
212
  FieldRequirement = Shapes::StringShape.new(name: 'FieldRequirement')
@@ -220,6 +234,9 @@ module Aws::PinpointSMSVoiceV2
220
234
  KeywordMessage = Shapes::StringShape.new(name: 'KeywordMessage')
221
235
  KinesisFirehoseDestination = Shapes::StructureShape.new(name: 'KinesisFirehoseDestination')
222
236
  LanguageCode = Shapes::StringShape.new(name: 'LanguageCode')
237
+ ListAvailablePhoneNumbersMaxResults = Shapes::IntegerShape.new(name: 'ListAvailablePhoneNumbersMaxResults')
238
+ ListAvailablePhoneNumbersRequest = Shapes::StructureShape.new(name: 'ListAvailablePhoneNumbersRequest')
239
+ ListAvailablePhoneNumbersResult = Shapes::StructureShape.new(name: 'ListAvailablePhoneNumbersResult')
223
240
  ListNotifyCountriesRequest = Shapes::StructureShape.new(name: 'ListNotifyCountriesRequest')
224
241
  ListNotifyCountriesResult = Shapes::StructureShape.new(name: 'ListNotifyCountriesResult')
225
242
  ListPoolOriginationIdentitiesRequest = Shapes::StructureShape.new(name: 'ListPoolOriginationIdentitiesRequest')
@@ -232,6 +249,7 @@ module Aws::PinpointSMSVoiceV2
232
249
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
233
250
  ListTagsForResourceResult = Shapes::StructureShape.new(name: 'ListTagsForResourceResult')
234
251
  LogGroupArn = Shapes::StringShape.new(name: 'LogGroupArn')
252
+ LongMap = Shapes::MapShape.new(name: 'LongMap')
235
253
  MCCType = Shapes::StringShape.new(name: 'MCCType')
236
254
  MNCType = Shapes::StringShape.new(name: 'MNCType')
237
255
  MaxPrice = Shapes::StringShape.new(name: 'MaxPrice')
@@ -243,6 +261,7 @@ module Aws::PinpointSMSVoiceV2
243
261
  MessageId = Shapes::StringShape.new(name: 'MessageId')
244
262
  MessageType = Shapes::StringShape.new(name: 'MessageType')
245
263
  MessageTypeList = Shapes::ListShape.new(name: 'MessageTypeList')
264
+ MessagingLimits = Shapes::StructureShape.new(name: 'MessagingLimits')
246
265
  MonthlyLimit = Shapes::IntegerShape.new(name: 'MonthlyLimit')
247
266
  NextToken = Shapes::StringShape.new(name: 'NextToken')
248
267
  NonEmptyTagList = Shapes::ListShape.new(name: 'NonEmptyTagList')
@@ -279,6 +298,10 @@ module Aws::PinpointSMSVoiceV2
279
298
  NotifyUseCaseList = Shapes::ListShape.new(name: 'NotifyUseCaseList')
280
299
  NumberCapability = Shapes::StringShape.new(name: 'NumberCapability')
281
300
  NumberCapabilityList = Shapes::ListShape.new(name: 'NumberCapabilityList')
301
+ NumberFilterList = Shapes::ListShape.new(name: 'NumberFilterList')
302
+ NumberFilterValue = Shapes::StringShape.new(name: 'NumberFilterValue')
303
+ NumberPreferenceItem = Shapes::StructureShape.new(name: 'NumberPreferenceItem')
304
+ NumberPreferenceList = Shapes::ListShape.new(name: 'NumberPreferenceList')
282
305
  NumberStatus = Shapes::StringShape.new(name: 'NumberStatus')
283
306
  NumberType = Shapes::StringShape.new(name: 'NumberType')
284
307
  OptOutListInformation = Shapes::StructureShape.new(name: 'OptOutListInformation')
@@ -317,6 +340,8 @@ module Aws::PinpointSMSVoiceV2
317
340
  PoolOriginationIdentitiesFilterList = Shapes::ListShape.new(name: 'PoolOriginationIdentitiesFilterList')
318
341
  PoolOriginationIdentitiesFilterName = Shapes::StringShape.new(name: 'PoolOriginationIdentitiesFilterName')
319
342
  PoolStatus = Shapes::StringShape.new(name: 'PoolStatus')
343
+ PreferenceType = Shapes::StringShape.new(name: 'PreferenceType')
344
+ PreferenceTypeList = Shapes::ListShape.new(name: 'PreferenceTypeList')
320
345
  PrimitiveBoolean = Shapes::BooleanShape.new(name: 'PrimitiveBoolean')
321
346
  PrimitiveLong = Shapes::IntegerShape.new(name: 'PrimitiveLong')
322
347
  ProtectConfigurationArn = Shapes::StringShape.new(name: 'ProtectConfigurationArn')
@@ -466,6 +491,7 @@ module Aws::PinpointSMSVoiceV2
466
491
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
467
492
  ResourcePolicy = Shapes::StringShape.new(name: 'ResourcePolicy')
468
493
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
494
+ SearchableNumberType = Shapes::StringShape.new(name: 'SearchableNumberType')
469
495
  SectionPath = Shapes::StringShape.new(name: 'SectionPath')
470
496
  SectionPathList = Shapes::ListShape.new(name: 'SectionPathList')
471
497
  SelectChoice = Shapes::StringShape.new(name: 'SelectChoice')
@@ -638,6 +664,8 @@ module Aws::PinpointSMSVoiceV2
638
664
  AssociateProtectConfigurationResult.add_member(:protect_configuration_id, Shapes::ShapeRef.new(shape: ProtectConfigurationId, required: true, location_name: "ProtectConfigurationId"))
639
665
  AssociateProtectConfigurationResult.struct_class = Types::AssociateProtectConfigurationResult
640
666
 
667
+ AvailablePhoneNumberList.member = Shapes::ShapeRef.new(shape: PhoneNumber)
668
+
641
669
  CarrierLookupRequest.add_member(:phone_number, Shapes::ShapeRef.new(shape: CarrierLookupInputPhoneNumberType, required: true, location_name: "PhoneNumber"))
642
670
  CarrierLookupRequest.struct_class = Types::CarrierLookupRequest
643
671
 
@@ -661,6 +689,25 @@ module Aws::PinpointSMSVoiceV2
661
689
  CloudWatchLogsDestination.add_member(:log_group_arn, Shapes::ShapeRef.new(shape: LogGroupArn, required: true, location_name: "LogGroupArn"))
662
690
  CloudWatchLogsDestination.struct_class = Types::CloudWatchLogsDestination
663
691
 
692
+ ConditionValueList.member = Shapes::ShapeRef.new(shape: ConditionValue)
693
+
694
+ ConditionalBehavior.add_member(:rules, Shapes::ShapeRef.new(shape: ConditionalRuleList, required: true, location_name: "Rules"))
695
+ ConditionalBehavior.add_member(:default_behavior, Shapes::ShapeRef.new(shape: ConditionalFieldBehavior, required: true, location_name: "DefaultBehavior"))
696
+ ConditionalBehavior.struct_class = Types::ConditionalBehavior
697
+
698
+ ConditionalRule.add_member(:conditions, Shapes::ShapeRef.new(shape: FieldConditionList, required: true, location_name: "Conditions"))
699
+ ConditionalRule.add_member(:rule_behavior, Shapes::ShapeRef.new(shape: ConditionalFieldBehavior, required: true, location_name: "RuleBehavior"))
700
+ ConditionalRule.add_member(:conditional_validation, Shapes::ShapeRef.new(shape: ConditionalValidation, location_name: "ConditionalValidation"))
701
+ ConditionalRule.struct_class = Types::ConditionalRule
702
+
703
+ ConditionalRuleList.member = Shapes::ShapeRef.new(shape: ConditionalRule)
704
+
705
+ ConditionalValidation.add_member(:min_length, Shapes::ShapeRef.new(shape: ConditionalValidationMinLengthInteger, location_name: "MinLength"))
706
+ ConditionalValidation.add_member(:max_length, Shapes::ShapeRef.new(shape: ConditionalValidationMaxLengthInteger, location_name: "MaxLength"))
707
+ ConditionalValidation.add_member(:pattern, Shapes::ShapeRef.new(shape: ConditionalValidationPatternString, location_name: "Pattern"))
708
+ ConditionalValidation.add_member(:allowed_values, Shapes::ShapeRef.new(shape: SelectChoiceList, location_name: "AllowedValues"))
709
+ ConditionalValidation.struct_class = Types::ConditionalValidation
710
+
664
711
  ConfigurationSetFilter.add_member(:name, Shapes::ShapeRef.new(shape: ConfigurationSetFilterName, required: true, location_name: "Name"))
665
712
  ConfigurationSetFilter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValueList, required: true, location_name: "Values"))
666
713
  ConfigurationSetFilter.struct_class = Types::ConfigurationSetFilter
@@ -1420,6 +1467,13 @@ module Aws::PinpointSMSVoiceV2
1420
1467
 
1421
1468
  EventTypeList.member = Shapes::ShapeRef.new(shape: EventType)
1422
1469
 
1470
+ FieldCondition.add_member(:depends_on_field_path, Shapes::ShapeRef.new(shape: FieldPath, required: true, location_name: "DependsOnFieldPath"))
1471
+ FieldCondition.add_member(:operator, Shapes::ShapeRef.new(shape: ConditionOperator, required: true, location_name: "Operator"))
1472
+ FieldCondition.add_member(:values, Shapes::ShapeRef.new(shape: ConditionValueList, location_name: "Values"))
1473
+ FieldCondition.struct_class = Types::FieldCondition
1474
+
1475
+ FieldConditionList.member = Shapes::ShapeRef.new(shape: FieldCondition)
1476
+
1423
1477
  FieldPathList.member = Shapes::ShapeRef.new(shape: FieldPath)
1424
1478
 
1425
1479
  FilterValueList.member = Shapes::ShapeRef.new(shape: FilterValue)
@@ -1467,6 +1521,19 @@ module Aws::PinpointSMSVoiceV2
1467
1521
  KinesisFirehoseDestination.add_member(:delivery_stream_arn, Shapes::ShapeRef.new(shape: DeliveryStreamArn, required: true, location_name: "DeliveryStreamArn"))
1468
1522
  KinesisFirehoseDestination.struct_class = Types::KinesisFirehoseDestination
1469
1523
 
1524
+ ListAvailablePhoneNumbersRequest.add_member(:iso_country_code, Shapes::ShapeRef.new(shape: IsoCountryCode, required: true, location_name: "IsoCountryCode"))
1525
+ ListAvailablePhoneNumbersRequest.add_member(:number_capabilities, Shapes::ShapeRef.new(shape: NumberCapabilityList, required: true, location_name: "NumberCapabilities"))
1526
+ ListAvailablePhoneNumbersRequest.add_member(:number_type, Shapes::ShapeRef.new(shape: SearchableNumberType, required: true, location_name: "NumberType"))
1527
+ ListAvailablePhoneNumbersRequest.add_member(:registration_id, Shapes::ShapeRef.new(shape: RegistrationIdOrArn, location_name: "RegistrationId"))
1528
+ ListAvailablePhoneNumbersRequest.add_member(:number_preference, Shapes::ShapeRef.new(shape: NumberPreferenceList, location_name: "NumberPreference"))
1529
+ ListAvailablePhoneNumbersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
1530
+ ListAvailablePhoneNumbersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: ListAvailablePhoneNumbersMaxResults, location_name: "MaxResults"))
1531
+ ListAvailablePhoneNumbersRequest.struct_class = Types::ListAvailablePhoneNumbersRequest
1532
+
1533
+ ListAvailablePhoneNumbersResult.add_member(:available_phone_numbers, Shapes::ShapeRef.new(shape: AvailablePhoneNumberList, required: true, location_name: "AvailablePhoneNumbers"))
1534
+ ListAvailablePhoneNumbersResult.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
1535
+ ListAvailablePhoneNumbersResult.struct_class = Types::ListAvailablePhoneNumbersResult
1536
+
1470
1537
  ListNotifyCountriesRequest.add_member(:channels, Shapes::ShapeRef.new(shape: NotifyEnabledChannelsList, location_name: "Channels"))
1471
1538
  ListNotifyCountriesRequest.add_member(:use_cases, Shapes::ShapeRef.new(shape: NotifyUseCaseList, location_name: "UseCases"))
1472
1539
  ListNotifyCountriesRequest.add_member(:tier, Shapes::ShapeRef.new(shape: NotifyConfigurationTier, location_name: "Tier"))
@@ -1524,10 +1591,17 @@ module Aws::PinpointSMSVoiceV2
1524
1591
  ListTagsForResourceResult.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
1525
1592
  ListTagsForResourceResult.struct_class = Types::ListTagsForResourceResult
1526
1593
 
1594
+ LongMap.key = Shapes::ShapeRef.new(shape: String)
1595
+ LongMap.value = Shapes::ShapeRef.new(shape: PrimitiveLong)
1596
+
1527
1597
  MediaUrlList.member = Shapes::ShapeRef.new(shape: MediaUrlValue)
1528
1598
 
1529
1599
  MessageTypeList.member = Shapes::ShapeRef.new(shape: MessageType)
1530
1600
 
1601
+ MessagingLimits.add_member(:rate_limits, Shapes::ShapeRef.new(shape: LongMap, location_name: "RateLimits"))
1602
+ MessagingLimits.add_member(:daily_message_caps, Shapes::ShapeRef.new(shape: LongMap, location_name: "DailyMessageCaps"))
1603
+ MessagingLimits.struct_class = Types::MessagingLimits
1604
+
1531
1605
  NonEmptyTagList.member = Shapes::ShapeRef.new(shape: Tag)
1532
1606
 
1533
1607
  NotifyConfigurationFilter.add_member(:name, Shapes::ShapeRef.new(shape: NotifyConfigurationFilterName, required: true, location_name: "Name"))
@@ -1600,6 +1674,14 @@ module Aws::PinpointSMSVoiceV2
1600
1674
 
1601
1675
  NumberCapabilityList.member = Shapes::ShapeRef.new(shape: NumberCapability)
1602
1676
 
1677
+ NumberFilterList.member = Shapes::ShapeRef.new(shape: NumberFilterValue)
1678
+
1679
+ NumberPreferenceItem.add_member(:preference_type, Shapes::ShapeRef.new(shape: PreferenceTypeList, required: true, location_name: "PreferenceType"))
1680
+ NumberPreferenceItem.add_member(:filter, Shapes::ShapeRef.new(shape: NumberFilterList, required: true, location_name: "Filter"))
1681
+ NumberPreferenceItem.struct_class = Types::NumberPreferenceItem
1682
+
1683
+ NumberPreferenceList.member = Shapes::ShapeRef.new(shape: NumberPreferenceItem)
1684
+
1603
1685
  OptOutListInformation.add_member(:opt_out_list_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "OptOutListArn"))
1604
1686
  OptOutListInformation.add_member(:opt_out_list_name, Shapes::ShapeRef.new(shape: OptOutListName, required: true, location_name: "OptOutListName"))
1605
1687
  OptOutListInformation.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreatedTimestamp"))
@@ -1659,6 +1741,7 @@ module Aws::PinpointSMSVoiceV2
1659
1741
  PhoneNumberInformation.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: PrimitiveBoolean, required: true, location_name: "DeletionProtectionEnabled"))
1660
1742
  PhoneNumberInformation.add_member(:pool_id, Shapes::ShapeRef.new(shape: String, location_name: "PoolId"))
1661
1743
  PhoneNumberInformation.add_member(:registration_id, Shapes::ShapeRef.new(shape: String, location_name: "RegistrationId"))
1744
+ PhoneNumberInformation.add_member(:messaging_limits, Shapes::ShapeRef.new(shape: MessagingLimits, location_name: "MessagingLimits"))
1662
1745
  PhoneNumberInformation.add_member(:created_timestamp, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreatedTimestamp"))
1663
1746
  PhoneNumberInformation.struct_class = Types::PhoneNumberInformation
1664
1747
 
@@ -1694,6 +1777,8 @@ module Aws::PinpointSMSVoiceV2
1694
1777
 
1695
1778
  PoolOriginationIdentitiesFilterList.member = Shapes::ShapeRef.new(shape: PoolOriginationIdentitiesFilter)
1696
1779
 
1780
+ PreferenceTypeList.member = Shapes::ShapeRef.new(shape: PreferenceType)
1781
+
1697
1782
  ProtectConfigurationCountryRuleSet.key = Shapes::ShapeRef.new(shape: IsoCountryCode)
1698
1783
  ProtectConfigurationCountryRuleSet.value = Shapes::ShapeRef.new(shape: ProtectConfigurationCountryRuleSetInformation)
1699
1784
 
@@ -1827,6 +1912,7 @@ module Aws::PinpointSMSVoiceV2
1827
1912
  RcsAgentInformation.add_member(:two_way_media_s3_role, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "TwoWayMediaS3Role"))
1828
1913
  RcsAgentInformation.add_member(:two_way_rcs_events_enabled, Shapes::ShapeRef.new(shape: RcsEventTypeList, location_name: "TwoWayRcsEventsEnabled"))
1829
1914
  RcsAgentInformation.add_member(:testing_agent, Shapes::ShapeRef.new(shape: TestingAgentInformation, location_name: "TestingAgent"))
1915
+ RcsAgentInformation.add_member(:messaging_limits, Shapes::ShapeRef.new(shape: MessagingLimits, location_name: "MessagingLimits"))
1830
1916
  RcsAgentInformation.struct_class = Types::RcsAgentInformation
1831
1917
 
1832
1918
  RcsAgentInformationList.member = Shapes::ShapeRef.new(shape: RcsAgentInformation)
@@ -1999,6 +2085,7 @@ module Aws::PinpointSMSVoiceV2
1999
2085
  RegistrationFieldDefinition.add_member(:select_validation, Shapes::ShapeRef.new(shape: SelectValidation, location_name: "SelectValidation"))
2000
2086
  RegistrationFieldDefinition.add_member(:text_validation, Shapes::ShapeRef.new(shape: TextValidation, location_name: "TextValidation"))
2001
2087
  RegistrationFieldDefinition.add_member(:display_hints, Shapes::ShapeRef.new(shape: RegistrationFieldDisplayHints, required: true, location_name: "DisplayHints"))
2088
+ RegistrationFieldDefinition.add_member(:conditional_behavior, Shapes::ShapeRef.new(shape: ConditionalBehavior, location_name: "ConditionalBehavior"))
2002
2089
  RegistrationFieldDefinition.struct_class = Types::RegistrationFieldDefinition
2003
2090
 
2004
2091
  RegistrationFieldDefinitionList.member = Shapes::ShapeRef.new(shape: RegistrationFieldDefinition)
@@ -2149,6 +2236,7 @@ module Aws::PinpointSMSVoiceV2
2149
2236
  RequestPhoneNumberRequest.add_member(:opt_out_list_name, Shapes::ShapeRef.new(shape: OptOutListNameOrArn, location_name: "OptOutListName"))
2150
2237
  RequestPhoneNumberRequest.add_member(:pool_id, Shapes::ShapeRef.new(shape: PoolIdOrArn, location_name: "PoolId"))
2151
2238
  RequestPhoneNumberRequest.add_member(:registration_id, Shapes::ShapeRef.new(shape: RegistrationIdOrArn, location_name: "RegistrationId"))
2239
+ RequestPhoneNumberRequest.add_member(:number_preference, Shapes::ShapeRef.new(shape: NumberPreferenceList, location_name: "NumberPreference"))
2152
2240
  RequestPhoneNumberRequest.add_member(:international_sending_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "InternationalSendingEnabled"))
2153
2241
  RequestPhoneNumberRequest.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "DeletionProtectionEnabled"))
2154
2242
  RequestPhoneNumberRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
@@ -2347,6 +2435,7 @@ module Aws::PinpointSMSVoiceV2
2347
2435
  SenderIdInformation.add_member(:deletion_protection_enabled, Shapes::ShapeRef.new(shape: PrimitiveBoolean, required: true, location_name: "DeletionProtectionEnabled"))
2348
2436
  SenderIdInformation.add_member(:registered, Shapes::ShapeRef.new(shape: PrimitiveBoolean, required: true, location_name: "Registered"))
2349
2437
  SenderIdInformation.add_member(:registration_id, Shapes::ShapeRef.new(shape: String, location_name: "RegistrationId"))
2438
+ SenderIdInformation.add_member(:messaging_limits, Shapes::ShapeRef.new(shape: MessagingLimits, location_name: "MessagingLimits"))
2350
2439
  SenderIdInformation.struct_class = Types::SenderIdInformation
2351
2440
 
2352
2441
  SenderIdInformationList.member = Shapes::ShapeRef.new(shape: SenderIdInformation)
@@ -3750,6 +3839,26 @@ module Aws::PinpointSMSVoiceV2
3750
3839
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3751
3840
  end)
3752
3841
 
3842
+ api.add_operation(:list_available_phone_numbers, Seahorse::Model::Operation.new.tap do |o|
3843
+ o.name = "ListAvailablePhoneNumbers"
3844
+ o.http_method = "POST"
3845
+ o.http_request_uri = "/"
3846
+ o.input = Shapes::ShapeRef.new(shape: ListAvailablePhoneNumbersRequest)
3847
+ o.output = Shapes::ShapeRef.new(shape: ListAvailablePhoneNumbersResult)
3848
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
3849
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
3850
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
3851
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
3852
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
3853
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
3854
+ o[:pager] = Aws::Pager.new(
3855
+ limit_key: "max_results",
3856
+ tokens: {
3857
+ "next_token" => "next_token"
3858
+ }
3859
+ )
3860
+ end)
3861
+
3753
3862
  api.add_operation(:list_notify_countries, Seahorse::Model::Operation.new.tap do |o|
3754
3863
  o.name = "ListNotifyCountries"
3755
3864
  o.http_method = "POST"
@@ -322,6 +322,104 @@ module Aws::PinpointSMSVoiceV2
322
322
  include Aws::Structure
323
323
  end
324
324
 
325
+ # The set of conditional rules that determine a field's resolved
326
+ # requirement based on the values of other fields in the same
327
+ # registration form. Attached to fields whose **FieldRequirement** is
328
+ # **CONDITIONAL**.
329
+ #
330
+ # Evaluation proceeds top-to-bottom through **Rules**. The first rule
331
+ # whose conditions all evaluate to true wins and its behavior is
332
+ # returned. If no rule matches, the **DefaultBehavior** is returned.
333
+ #
334
+ # @!attribute [rw] rules
335
+ # An ordered list of conditional rules. Rules are evaluated
336
+ # top-to-bottom and the first rule whose conditions all evaluate to
337
+ # true determines the field's behavior. Rules whose conditions do not
338
+ # all match are skipped and evaluation continues to the next rule.
339
+ # @return [Array<Types::ConditionalRule>]
340
+ #
341
+ # @!attribute [rw] default_behavior
342
+ # The field behavior that applies when no conditional rule in
343
+ # **Rules** matches. Valid values are **REQUIRED**, **OPTIONAL**, and
344
+ # **DISALLOWED**.
345
+ # @return [String]
346
+ #
347
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ConditionalBehavior AWS API Documentation
348
+ #
349
+ class ConditionalBehavior < Struct.new(
350
+ :rules,
351
+ :default_behavior)
352
+ SENSITIVE = []
353
+ include Aws::Structure
354
+ end
355
+
356
+ # A single conditional rule that resolves to a field behavior when all
357
+ # of its conditions evaluate to true. Conditions within a rule are
358
+ # combined with logical AND: all conditions must match for the rule to
359
+ # fire.
360
+ #
361
+ # @!attribute [rw] conditions
362
+ # The conditions that must all evaluate to true for this rule to
363
+ # match. Conditions are combined with logical AND. Use multiple rules
364
+ # with the same **RuleBehavior** to express logical OR.
365
+ # @return [Array<Types::FieldCondition>]
366
+ #
367
+ # @!attribute [rw] rule_behavior
368
+ # The field behavior that applies when all conditions in this rule
369
+ # match. Valid values are **REQUIRED**, **OPTIONAL**, and
370
+ # **DISALLOWED**.
371
+ # @return [String]
372
+ #
373
+ # @!attribute [rw] conditional_validation
374
+ # Optional per-rule validation constraints (minimum length, maximum
375
+ # length, regex pattern, allowed select values) that override the
376
+ # field's default validation when this rule matches.
377
+ # @return [Types::ConditionalValidation]
378
+ #
379
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ConditionalRule AWS API Documentation
380
+ #
381
+ class ConditionalRule < Struct.new(
382
+ :conditions,
383
+ :rule_behavior,
384
+ :conditional_validation)
385
+ SENSITIVE = []
386
+ include Aws::Structure
387
+ end
388
+
389
+ # Per-rule validation constraints that override the field's default
390
+ # validation when the containing rule matches. All fields are optional;
391
+ # only the constraints that need to differ from the field's default
392
+ # validation are provided.
393
+ #
394
+ # @!attribute [rw] min_length
395
+ # The minimum length for the field value when this rule applies.
396
+ # @return [Integer]
397
+ #
398
+ # @!attribute [rw] max_length
399
+ # The maximum length for the field value when this rule applies.
400
+ # @return [Integer]
401
+ #
402
+ # @!attribute [rw] pattern
403
+ # A regular expression that the field value must match when this rule
404
+ # applies.
405
+ # @return [String]
406
+ #
407
+ # @!attribute [rw] allowed_values
408
+ # The allowed values for a select field when this rule applies. A
409
+ # subset of the field's full option list.
410
+ # @return [Array<String>]
411
+ #
412
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ConditionalValidation AWS API Documentation
413
+ #
414
+ class ConditionalValidation < Struct.new(
415
+ :min_length,
416
+ :max_length,
417
+ :pattern,
418
+ :allowed_values)
419
+ SENSITIVE = []
420
+ include Aws::Structure
421
+ end
422
+
325
423
  # The information for configuration sets that meet a specified criteria.
326
424
  #
327
425
  # @!attribute [rw] name
@@ -1293,7 +1391,7 @@ module Aws::PinpointSMSVoiceV2
1293
1391
  end
1294
1392
 
1295
1393
  # @!attribute [rw] attachment_body
1296
- # The registration file to upload. The maximum file size is 500KB and
1394
+ # The registration file to upload. The maximum file size is 5MB and
1297
1395
  # valid file extensions are PDF, JPEG and PNG.
1298
1396
  # @return [String]
1299
1397
  #
@@ -4275,6 +4373,41 @@ module Aws::PinpointSMSVoiceV2
4275
4373
  include Aws::Structure
4276
4374
  end
4277
4375
 
4376
+ # A single condition on a dependency field's value. Conditions are
4377
+ # combined into a **ConditionalRule** and evaluated together with
4378
+ # logical AND.
4379
+ #
4380
+ # @!attribute [rw] depends_on_field_path
4381
+ # The path of the field whose value determines this condition, for
4382
+ # example **companyInfo.businessType**.
4383
+ # @return [String]
4384
+ #
4385
+ # @!attribute [rw] operator
4386
+ # The comparison operator to apply between the dependency field's
4387
+ # value and **Values**. Valid values are **EQUALS**, **NOT\_EQUALS**,
4388
+ # **IN**, **NOT\_IN**, **HAS\_VALUE**, and **NO\_VALUE**. Operators
4389
+ # not in this list are treated as evaluating to false, which causes
4390
+ # the containing rule to be skipped. This allows forward-compatible
4391
+ # additions of new operators without breaking older SDK clients.
4392
+ # @return [String]
4393
+ #
4394
+ # @!attribute [rw] values
4395
+ # The values to compare the dependency field's value against.
4396
+ # Required for the **EQUALS**, **NOT\_EQUALS**, **IN**, and
4397
+ # **NOT\_IN** operators. Omitted for **HAS\_VALUE** and **NO\_VALUE**,
4398
+ # which test only presence.
4399
+ # @return [Array<String>]
4400
+ #
4401
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/FieldCondition AWS API Documentation
4402
+ #
4403
+ class FieldCondition < Struct.new(
4404
+ :depends_on_field_path,
4405
+ :operator,
4406
+ :values)
4407
+ SENSITIVE = []
4408
+ include Aws::Structure
4409
+ end
4410
+
4278
4411
  # @!attribute [rw] protect_configuration_id
4279
4412
  # The unique identifier for the protect configuration.
4280
4413
  # @return [String]
@@ -4460,6 +4593,78 @@ module Aws::PinpointSMSVoiceV2
4460
4593
  include Aws::Structure
4461
4594
  end
4462
4595
 
4596
+ # @!attribute [rw] iso_country_code
4597
+ # The two-character code, in ISO 3166-1 alpha-2 format, for the
4598
+ # country or region in which to search for available phone numbers.
4599
+ # This operation currently supports only `US`.
4600
+ # @return [String]
4601
+ #
4602
+ # @!attribute [rw] number_capabilities
4603
+ # The capabilities to filter by, such as SMS. Only phone numbers that
4604
+ # support all of the specified capabilities are returned.
4605
+ # @return [Array<String>]
4606
+ #
4607
+ # @!attribute [rw] number_type
4608
+ # The type of phone number to search for.
4609
+ # @return [String]
4610
+ #
4611
+ # @!attribute [rw] registration_id
4612
+ # The registration associated with the request. A registration is
4613
+ # required for regulated number types. You can specify either:
4614
+ #
4615
+ # * The unique identifier of the registration.
4616
+ #
4617
+ # * The Amazon Resource Name (ARN) of the registration.
4618
+ # @return [String]
4619
+ #
4620
+ # @!attribute [rw] number_preference
4621
+ # Optional. If omitted, returns unfiltered available numbers. Max 1
4622
+ # element for List API.
4623
+ # @return [Array<Types::NumberPreferenceItem>]
4624
+ #
4625
+ # @!attribute [rw] next_token
4626
+ # The token returned from a previous request to retrieve the next page
4627
+ # of results.
4628
+ # @return [String]
4629
+ #
4630
+ # @!attribute [rw] max_results
4631
+ # The maximum number of results to return per page. If you don't
4632
+ # specify a value, the default is 10.
4633
+ # @return [Integer]
4634
+ #
4635
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ListAvailablePhoneNumbersRequest AWS API Documentation
4636
+ #
4637
+ class ListAvailablePhoneNumbersRequest < Struct.new(
4638
+ :iso_country_code,
4639
+ :number_capabilities,
4640
+ :number_type,
4641
+ :registration_id,
4642
+ :number_preference,
4643
+ :next_token,
4644
+ :max_results)
4645
+ SENSITIVE = []
4646
+ include Aws::Structure
4647
+ end
4648
+
4649
+ # @!attribute [rw] available_phone_numbers
4650
+ # An array of phone numbers, in E.164 format, that are available to
4651
+ # request based on the specified filters.
4652
+ # @return [Array<String>]
4653
+ #
4654
+ # @!attribute [rw] next_token
4655
+ # The token to include in the next request to retrieve the next page
4656
+ # of results. This value is null when there are no more results.
4657
+ # @return [String]
4658
+ #
4659
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/ListAvailablePhoneNumbersResult AWS API Documentation
4660
+ #
4661
+ class ListAvailablePhoneNumbersResult < Struct.new(
4662
+ :available_phone_numbers,
4663
+ :next_token)
4664
+ SENSITIVE = []
4665
+ include Aws::Structure
4666
+ end
4667
+
4463
4668
  # @!attribute [rw] channels
4464
4669
  # An array of channels to filter the results by.
4465
4670
  # @return [Array<String>]
@@ -4723,6 +4928,32 @@ module Aws::PinpointSMSVoiceV2
4723
4928
  include Aws::Structure
4724
4929
  end
4725
4930
 
4931
+ # The messaging limits that apply to an origination identity, such as a
4932
+ # phone number, sender ID, or RCS agent. Includes the per-capability
4933
+ # send rates and, for supported origination identities, advisory
4934
+ # per-provider daily message caps.
4935
+ #
4936
+ # @!attribute [rw] rate_limits
4937
+ # The maximum send rate for each supported capability, in messages per
4938
+ # second. The map is keyed by capability, such as `SMS`, `MMS`,
4939
+ # `VOICE`, or `RCS`.
4940
+ # @return [Hash<String,Integer>]
4941
+ #
4942
+ # @!attribute [rw] daily_message_caps
4943
+ # The advisory maximum number of messages that can be sent per day,
4944
+ # keyed by provider (for example, `T-MOBILE`). Applies to 10DLC phone
4945
+ # numbers and is omitted when no daily cap applies.
4946
+ # @return [Hash<String,Integer>]
4947
+ #
4948
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/MessagingLimits AWS API Documentation
4949
+ #
4950
+ class MessagingLimits < Struct.new(
4951
+ :rate_limits,
4952
+ :daily_message_caps)
4953
+ SENSITIVE = []
4954
+ include Aws::Structure
4955
+ end
4956
+
4726
4957
  # The information for notify configurations that meet a specified
4727
4958
  # criteria.
4728
4959
  #
@@ -4969,6 +5200,36 @@ module Aws::PinpointSMSVoiceV2
4969
5200
  include Aws::Structure
4970
5201
  end
4971
5202
 
5203
+ # A single number preference — specifies a pattern type and filter
5204
+ # value.
5205
+ #
5206
+ # @!attribute [rw] preference_type
5207
+ # The type of match to apply to the filter values.
5208
+ #
5209
+ # * `StartsWith`: Returns numbers that begin with the filter value.
5210
+ #
5211
+ # * `EndsWith`: Returns numbers that end with the filter value.
5212
+ #
5213
+ # * `Contains`: Returns numbers that contain the filter value.
5214
+ #
5215
+ # * `ExactMatch`: Returns the number that exactly matches the filter
5216
+ # value.
5217
+ # @return [Array<String>]
5218
+ #
5219
+ # @!attribute [rw] filter
5220
+ # The digit pattern values to match against available phone numbers,
5221
+ # using the specified preference type.
5222
+ # @return [Array<String>]
5223
+ #
5224
+ # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/NumberPreferenceItem AWS API Documentation
5225
+ #
5226
+ class NumberPreferenceItem < Struct.new(
5227
+ :preference_type,
5228
+ :filter)
5229
+ SENSITIVE = []
5230
+ include Aws::Structure
5231
+ end
5232
+
4972
5233
  # The information for all OptOutList in an Amazon Web Services account.
4973
5234
  #
4974
5235
  # @!attribute [rw] opt_out_list_arn
@@ -5197,6 +5458,12 @@ module Aws::PinpointSMSVoiceV2
5197
5458
  # The unique identifier for the registration.
5198
5459
  # @return [String]
5199
5460
  #
5461
+ # @!attribute [rw] messaging_limits
5462
+ # The messaging limits that apply to the phone number, including the
5463
+ # per-capability send rates and any advisory per-provider daily
5464
+ # message caps.
5465
+ # @return [Types::MessagingLimits]
5466
+ #
5200
5467
  # @!attribute [rw] created_timestamp
5201
5468
  # The time when the phone number was created, in [UNIX epoch time][1]
5202
5469
  # format.
@@ -5227,6 +5494,7 @@ module Aws::PinpointSMSVoiceV2
5227
5494
  :deletion_protection_enabled,
5228
5495
  :pool_id,
5229
5496
  :registration_id,
5497
+ :messaging_limits,
5230
5498
  :created_timestamp)
5231
5499
  SENSITIVE = []
5232
5500
  include Aws::Structure
@@ -5971,6 +6239,11 @@ module Aws::PinpointSMSVoiceV2
5971
6239
  # The testing agent information associated with the RCS agent.
5972
6240
  # @return [Types::TestingAgentInformation]
5973
6241
  #
6242
+ # @!attribute [rw] messaging_limits
6243
+ # The messaging limits that apply to the RCS agent, including the
6244
+ # per-capability send rates.
6245
+ # @return [Types::MessagingLimits]
6246
+ #
5974
6247
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/RcsAgentInformation AWS API Documentation
5975
6248
  #
5976
6249
  class RcsAgentInformation < Struct.new(
@@ -5989,7 +6262,8 @@ module Aws::PinpointSMSVoiceV2
5989
6262
  :two_way_media_s3_key_prefix,
5990
6263
  :two_way_media_s3_role,
5991
6264
  :two_way_rcs_events_enabled,
5992
- :testing_agent)
6265
+ :testing_agent,
6266
+ :messaging_limits)
5993
6267
  SENSITIVE = []
5994
6268
  include Aws::Structure
5995
6269
  end
@@ -6742,6 +7016,13 @@ module Aws::PinpointSMSVoiceV2
6742
7016
  # An array of RegistrationFieldDisplayHints objects for the field.
6743
7017
  # @return [Types::RegistrationFieldDisplayHints]
6744
7018
  #
7019
+ # @!attribute [rw] conditional_behavior
7020
+ # The conditional behavior rules for this field. Only present when
7021
+ # **FieldRequirement** is **CONDITIONAL**. Rules are evaluated in
7022
+ # order and the first matching rule determines the field's resolved
7023
+ # requirement. If no rule matches, the **DefaultBehavior** applies.
7024
+ # @return [Types::ConditionalBehavior]
7025
+ #
6745
7026
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/RegistrationFieldDefinition AWS API Documentation
6746
7027
  #
6747
7028
  class RegistrationFieldDefinition < Struct.new(
@@ -6751,7 +7032,8 @@ module Aws::PinpointSMSVoiceV2
6751
7032
  :field_requirement,
6752
7033
  :select_validation,
6753
7034
  :text_validation,
6754
- :display_hints)
7035
+ :display_hints,
7036
+ :conditional_behavior)
6755
7037
  SENSITIVE = []
6756
7038
  include Aws::Structure
6757
7039
  end
@@ -7503,6 +7785,13 @@ module Aws::PinpointSMSVoiceV2
7503
7785
  # registration process.
7504
7786
  # @return [String]
7505
7787
  #
7788
+ # @!attribute [rw] number_preference
7789
+ # An optional selection preference used to request a specific phone
7790
+ # number, such as a number that starts with, ends with, or contains a
7791
+ # particular digit pattern. You can specify at most one preference.
7792
+ # Number preferences apply only to `TEN_DLC` requests in the `US`.
7793
+ # @return [Array<Types::NumberPreferenceItem>]
7794
+ #
7506
7795
  # @!attribute [rw] international_sending_enabled
7507
7796
  # By default this is set to false. When set to true the international
7508
7797
  # sending of phone number is Enabled.
@@ -7538,6 +7827,7 @@ module Aws::PinpointSMSVoiceV2
7538
7827
  :opt_out_list_name,
7539
7828
  :pool_id,
7540
7829
  :registration_id,
7830
+ :number_preference,
7541
7831
  :international_sending_enabled,
7542
7832
  :deletion_protection_enabled,
7543
7833
  :tags,
@@ -8612,6 +8902,11 @@ module Aws::PinpointSMSVoiceV2
8612
8902
  # The unique identifier for the registration.
8613
8903
  # @return [String]
8614
8904
  #
8905
+ # @!attribute [rw] messaging_limits
8906
+ # The messaging limits that apply to the sender ID, including the
8907
+ # per-capability send rates.
8908
+ # @return [Types::MessagingLimits]
8909
+ #
8615
8910
  # @see http://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-v2-2022-03-31/SenderIdInformation AWS API Documentation
8616
8911
  #
8617
8912
  class SenderIdInformation < Struct.new(
@@ -8622,7 +8917,8 @@ module Aws::PinpointSMSVoiceV2
8622
8917
  :monthly_leasing_price,
8623
8918
  :deletion_protection_enabled,
8624
8919
  :registered,
8625
- :registration_id)
8920
+ :registration_id,
8921
+ :messaging_limits)
8626
8922
  SENSITIVE = []
8627
8923
  include Aws::Structure
8628
8924
  end
@@ -55,7 +55,7 @@ module Aws::PinpointSMSVoiceV2
55
55
  autoload :EndpointProvider, 'aws-sdk-pinpointsmsvoicev2/endpoint_provider'
56
56
  autoload :Endpoints, 'aws-sdk-pinpointsmsvoicev2/endpoints'
57
57
 
58
- GEM_VERSION = '1.60.0'
58
+ GEM_VERSION = '1.62.0'
59
59
 
60
60
  end
61
61
 
data/sig/client.rbs CHANGED
@@ -1233,6 +1233,28 @@ module Aws
1233
1233
  ) -> _GetResourcePolicyResponseSuccess
1234
1234
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourcePolicyResponseSuccess
1235
1235
 
1236
+ interface _ListAvailablePhoneNumbersResponseSuccess
1237
+ include ::Seahorse::Client::_ResponseSuccess[Types::ListAvailablePhoneNumbersResult]
1238
+ def available_phone_numbers: () -> ::Array[::String]
1239
+ def next_token: () -> ::String
1240
+ end
1241
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/PinpointSMSVoiceV2/Client.html#list_available_phone_numbers-instance_method
1242
+ def list_available_phone_numbers: (
1243
+ iso_country_code: ::String,
1244
+ number_capabilities: Array[("SMS" | "VOICE" | "MMS" | "RCS")],
1245
+ number_type: ("TEN_DLC"),
1246
+ ?registration_id: ::String,
1247
+ ?number_preference: Array[
1248
+ {
1249
+ preference_type: Array[("StartsWith" | "EndsWith" | "Contains" | "ExactMatch")],
1250
+ filter: Array[::String]
1251
+ }
1252
+ ],
1253
+ ?next_token: ::String,
1254
+ ?max_results: ::Integer
1255
+ ) -> _ListAvailablePhoneNumbersResponseSuccess
1256
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListAvailablePhoneNumbersResponseSuccess
1257
+
1236
1258
  interface _ListNotifyCountriesResponseSuccess
1237
1259
  include ::Seahorse::Client::_ResponseSuccess[Types::ListNotifyCountriesResult]
1238
1260
  def notify_countries: () -> ::Array[Types::NotifyCountryInformation]
@@ -1494,6 +1516,12 @@ module Aws
1494
1516
  ?opt_out_list_name: ::String,
1495
1517
  ?pool_id: ::String,
1496
1518
  ?registration_id: ::String,
1519
+ ?number_preference: Array[
1520
+ {
1521
+ preference_type: Array[("StartsWith" | "EndsWith" | "Contains" | "ExactMatch")],
1522
+ filter: Array[::String]
1523
+ }
1524
+ ],
1497
1525
  ?international_sending_enabled: bool,
1498
1526
  ?deletion_protection_enabled: bool,
1499
1527
  ?tags: Array[
data/sig/types.rbs CHANGED
@@ -87,6 +87,27 @@ module Aws::PinpointSMSVoiceV2
87
87
  SENSITIVE: []
88
88
  end
89
89
 
90
+ class ConditionalBehavior
91
+ attr_accessor rules: ::Array[Types::ConditionalRule]
92
+ attr_accessor default_behavior: ::String
93
+ SENSITIVE: []
94
+ end
95
+
96
+ class ConditionalRule
97
+ attr_accessor conditions: ::Array[Types::FieldCondition]
98
+ attr_accessor rule_behavior: ::String
99
+ attr_accessor conditional_validation: Types::ConditionalValidation
100
+ SENSITIVE: []
101
+ end
102
+
103
+ class ConditionalValidation
104
+ attr_accessor min_length: ::Integer
105
+ attr_accessor max_length: ::Integer
106
+ attr_accessor pattern: ::String
107
+ attr_accessor allowed_values: ::Array[::String]
108
+ SENSITIVE: []
109
+ end
110
+
90
111
  class ConfigurationSetFilter
91
112
  attr_accessor name: ("event-destination-name" | "matching-event-types" | "default-message-type" | "default-sender-id" | "default-message-feedback-enabled" | "protect-configuration-id")
92
113
  attr_accessor values: ::Array[::String]
@@ -1074,6 +1095,13 @@ module Aws::PinpointSMSVoiceV2
1074
1095
  SENSITIVE: []
1075
1096
  end
1076
1097
 
1098
+ class FieldCondition
1099
+ attr_accessor depends_on_field_path: ::String
1100
+ attr_accessor operator: ::String
1101
+ attr_accessor values: ::Array[::String]
1102
+ SENSITIVE: []
1103
+ end
1104
+
1077
1105
  class GetProtectConfigurationCountryRuleSetRequest
1078
1106
  attr_accessor protect_configuration_id: ::String
1079
1107
  attr_accessor number_capability: ("SMS" | "VOICE" | "MMS" | "RCS")
@@ -1125,6 +1153,23 @@ module Aws::PinpointSMSVoiceV2
1125
1153
  SENSITIVE: []
1126
1154
  end
1127
1155
 
1156
+ class ListAvailablePhoneNumbersRequest
1157
+ attr_accessor iso_country_code: ::String
1158
+ attr_accessor number_capabilities: ::Array[("SMS" | "VOICE" | "MMS" | "RCS")]
1159
+ attr_accessor number_type: ("TEN_DLC")
1160
+ attr_accessor registration_id: ::String
1161
+ attr_accessor number_preference: ::Array[Types::NumberPreferenceItem]
1162
+ attr_accessor next_token: ::String
1163
+ attr_accessor max_results: ::Integer
1164
+ SENSITIVE: []
1165
+ end
1166
+
1167
+ class ListAvailablePhoneNumbersResult
1168
+ attr_accessor available_phone_numbers: ::Array[::String]
1169
+ attr_accessor next_token: ::String
1170
+ SENSITIVE: []
1171
+ end
1172
+
1128
1173
  class ListNotifyCountriesRequest
1129
1174
  attr_accessor channels: ::Array[("SMS" | "VOICE" | "MMS" | "RCS")]
1130
1175
  attr_accessor use_cases: ::Array[("CODE_VERIFICATION")]
@@ -1200,6 +1245,12 @@ module Aws::PinpointSMSVoiceV2
1200
1245
  SENSITIVE: []
1201
1246
  end
1202
1247
 
1248
+ class MessagingLimits
1249
+ attr_accessor rate_limits: ::Hash[::String, ::Integer]
1250
+ attr_accessor daily_message_caps: ::Hash[::String, ::Integer]
1251
+ SENSITIVE: []
1252
+ end
1253
+
1203
1254
  class NotifyConfigurationFilter
1204
1255
  attr_accessor name: ("display-name" | "enabled-countries" | "enabled-channels" | "default-template" | "default-pool" | "use-case" | "status" | "deletion-protection-enabled" | "tier-upgrade-status")
1205
1256
  attr_accessor values: ::Array[::String]
@@ -1256,6 +1307,12 @@ module Aws::PinpointSMSVoiceV2
1256
1307
  SENSITIVE: []
1257
1308
  end
1258
1309
 
1310
+ class NumberPreferenceItem
1311
+ attr_accessor preference_type: ::Array[("StartsWith" | "EndsWith" | "Contains" | "ExactMatch")]
1312
+ attr_accessor filter: ::Array[::String]
1313
+ SENSITIVE: []
1314
+ end
1315
+
1259
1316
  class OptOutListInformation
1260
1317
  attr_accessor opt_out_list_arn: ::String
1261
1318
  attr_accessor opt_out_list_name: ::String
@@ -1310,6 +1367,7 @@ module Aws::PinpointSMSVoiceV2
1310
1367
  attr_accessor deletion_protection_enabled: bool
1311
1368
  attr_accessor pool_id: ::String
1312
1369
  attr_accessor registration_id: ::String
1370
+ attr_accessor messaging_limits: Types::MessagingLimits
1313
1371
  attr_accessor created_timestamp: ::Time
1314
1372
  SENSITIVE: []
1315
1373
  end
@@ -1497,6 +1555,7 @@ module Aws::PinpointSMSVoiceV2
1497
1555
  attr_accessor two_way_media_s3_role: ::String
1498
1556
  attr_accessor two_way_rcs_events_enabled: ::Array[::String]
1499
1557
  attr_accessor testing_agent: Types::TestingAgentInformation
1558
+ attr_accessor messaging_limits: Types::MessagingLimits
1500
1559
  SENSITIVE: []
1501
1560
  end
1502
1561
 
@@ -1709,6 +1768,7 @@ module Aws::PinpointSMSVoiceV2
1709
1768
  attr_accessor select_validation: Types::SelectValidation
1710
1769
  attr_accessor text_validation: Types::TextValidation
1711
1770
  attr_accessor display_hints: Types::RegistrationFieldDisplayHints
1771
+ attr_accessor conditional_behavior: Types::ConditionalBehavior
1712
1772
  SENSITIVE: []
1713
1773
  end
1714
1774
 
@@ -1869,6 +1929,7 @@ module Aws::PinpointSMSVoiceV2
1869
1929
  attr_accessor opt_out_list_name: ::String
1870
1930
  attr_accessor pool_id: ::String
1871
1931
  attr_accessor registration_id: ::String
1932
+ attr_accessor number_preference: ::Array[Types::NumberPreferenceItem]
1872
1933
  attr_accessor international_sending_enabled: bool
1873
1934
  attr_accessor deletion_protection_enabled: bool
1874
1935
  attr_accessor tags: ::Array[Types::Tag]
@@ -2105,6 +2166,7 @@ module Aws::PinpointSMSVoiceV2
2105
2166
  attr_accessor deletion_protection_enabled: bool
2106
2167
  attr_accessor registered: bool
2107
2168
  attr_accessor registration_id: ::String
2169
+ attr_accessor messaging_limits: Types::MessagingLimits
2108
2170
  SENSITIVE: []
2109
2171
  end
2110
2172
 
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.60.0
4
+ version: 1.62.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services