aws-sdk-chime 1.45.0 → 1.46.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe6b45f7a78ca02b277f6a3c71747cd44e8982f8d467ffc3ac9f0a3083de50c5
4
- data.tar.gz: 0e82af24f4b2899a8f0203970b11d0c4bbaefd0d6d22a11a047b4383d1513283
3
+ metadata.gz: e57b897a542a7c841f0a0d47543f45edc8eda6d25e1b23b5a9b33f578a78f1a8
4
+ data.tar.gz: 84600065e1a01da356275129c6e6a4af9ae576d2aa69230abf3595cb1087f572
5
5
  SHA512:
6
- metadata.gz: 3d54e5c2003e5c1b7638ca9c0cca0cd467b7dc4cfc983a7f3e494165e33f64fdbadecd57c3dc8a9f5d9323e92ce7ff7c17434298187d5ea508db1d2e5e725c13
7
- data.tar.gz: 91a3d88039c6f6bffa9b386640545bb3d814fda36df8f5abda6d17acb44423b5d4ef4e512ee7c9583aef1cc02b89d3a96214c52c55c95f3822726c5fbacecb60
6
+ metadata.gz: dfb53e4a05d4b3b047fb6776199c324082799b4d819f73b7a17116d5ffdd72bc01399eeca877e73aab0aad0b1d97bed53e9e95f17dc4ea2b3688210fa55cb174
7
+ data.tar.gz: 0c8c775c6a168c9a873a41f1983368d3836ae346e5a8159b03a4343b6f77d68054ac9e7195786b769aa873a135568321816f54de14e2fb52a99fd6c31e0f8ac6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.46.0 (2021-05-04)
5
+ ------------------
6
+
7
+ * Feature - This release adds the ability to search for and order international phone numbers for Amazon Chime SIP media applications.
8
+
4
9
  1.45.0 (2021-05-03)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.46.0
data/lib/aws-sdk-chime.rb CHANGED
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-chime/customizations'
48
48
  # @!group service
49
49
  module Aws::Chime
50
50
 
51
- GEM_VERSION = '1.45.0'
51
+ GEM_VERSION = '1.46.0'
52
52
 
53
53
  end
@@ -771,14 +771,14 @@ module Aws::Chime
771
771
  end
772
772
 
773
773
  # Updates phone number product types or calling names. You can update
774
- # one attribute at a time for each `UpdatePhoneNumberRequestItem` . For
775
- # example, you can update either the product type or the calling name.
774
+ # one attribute at a time for each `UpdatePhoneNumberRequestItem`. For
775
+ # example, you can update the product type or the calling name.
776
776
  #
777
- # For product types, choose from Amazon Chime Business Calling and
778
- # Amazon Chime Voice Connector. For toll-free numbers, you must use the
779
- # Amazon Chime Voice Connector product type.
777
+ # For toll-free numbers, you cannot use the Amazon Chime Business
778
+ # Calling product type. For numbers outside the US, you must use the
779
+ # Amazon Chime SIP Media Application Dial-In product type.
780
780
  #
781
- # Updates to outbound calling names can take up to 72 hours to complete.
781
+ # Updates to outbound calling names can take 72 hours to complete.
782
782
  # Pending updates to outbound calling names must be complete before you
783
783
  # can request another update.
784
784
  #
@@ -796,7 +796,7 @@ module Aws::Chime
796
796
  # update_phone_number_request_items: [ # required
797
797
  # {
798
798
  # phone_number_id: "NonEmptyString", # required
799
- # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector
799
+ # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
800
800
  # calling_name: "CallingName",
801
801
  # },
802
802
  # ],
@@ -1659,10 +1659,10 @@ module Aws::Chime
1659
1659
  req.send_request(options)
1660
1660
  end
1661
1661
 
1662
- # Creates an order for phone numbers to be provisioned. Choose from
1663
- # Amazon Chime Business Calling and Amazon Chime Voice Connector product
1664
- # types. For toll-free numbers, you must use the Amazon Chime Voice
1665
- # Connector product type.
1662
+ # Creates an order for phone numbers to be provisioned. For toll-free
1663
+ # numbers, you cannot use the Amazon Chime Business Calling product
1664
+ # type. For numbers outside the US, you must use the Amazon Chime SIP
1665
+ # Media Application Dial-In product type.
1666
1666
  #
1667
1667
  # @option params [required, String] :product_type
1668
1668
  # The phone number product type.
@@ -1677,14 +1677,14 @@ module Aws::Chime
1677
1677
  # @example Request syntax with placeholder values
1678
1678
  #
1679
1679
  # resp = client.create_phone_number_order({
1680
- # product_type: "BusinessCalling", # required, accepts BusinessCalling, VoiceConnector
1680
+ # product_type: "BusinessCalling", # required, accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
1681
1681
  # e164_phone_numbers: ["E164PhoneNumber"], # required
1682
1682
  # })
1683
1683
  #
1684
1684
  # @example Response structure
1685
1685
  #
1686
1686
  # resp.phone_number_order.phone_number_order_id #=> String
1687
- # resp.phone_number_order.product_type #=> String, one of "BusinessCalling", "VoiceConnector"
1687
+ # resp.phone_number_order.product_type #=> String, one of "BusinessCalling", "VoiceConnector", "SipMediaApplicationDialIn"
1688
1688
  # resp.phone_number_order.status #=> String, one of "Processing", "Successful", "Failed", "Partial"
1689
1689
  # resp.phone_number_order.ordered_phone_numbers #=> Array
1690
1690
  # resp.phone_number_order.ordered_phone_numbers[0].e164_phone_number #=> String
@@ -2582,7 +2582,7 @@ module Aws::Chime
2582
2582
  req.send_request(options)
2583
2583
  end
2584
2584
 
2585
- # Moves the specified phone number into the **Deletionqueue**. A phone
2585
+ # Moves the specified phone number into the **Deletion queue**. A phone
2586
2586
  # number must be disassociated from any users or Amazon Chime Voice
2587
2587
  # Connectors before it can be deleted.
2588
2588
  #
@@ -3864,8 +3864,9 @@ module Aws::Chime
3864
3864
  #
3865
3865
  # resp.phone_number.phone_number_id #=> String
3866
3866
  # resp.phone_number.e164_phone_number #=> String
3867
+ # resp.phone_number.country #=> String
3867
3868
  # resp.phone_number.type #=> String, one of "Local", "TollFree"
3868
- # resp.phone_number.product_type #=> String, one of "BusinessCalling", "VoiceConnector"
3869
+ # resp.phone_number.product_type #=> String, one of "BusinessCalling", "VoiceConnector", "SipMediaApplicationDialIn"
3869
3870
  # resp.phone_number.status #=> String, one of "AcquireInProgress", "AcquireFailed", "Unassigned", "Assigned", "ReleaseInProgress", "DeleteInProgress", "ReleaseFailed", "DeleteFailed"
3870
3871
  # resp.phone_number.capabilities.inbound_call #=> Boolean
3871
3872
  # resp.phone_number.capabilities.outbound_call #=> Boolean
@@ -3912,7 +3913,7 @@ module Aws::Chime
3912
3913
  # @example Response structure
3913
3914
  #
3914
3915
  # resp.phone_number_order.phone_number_order_id #=> String
3915
- # resp.phone_number_order.product_type #=> String, one of "BusinessCalling", "VoiceConnector"
3916
+ # resp.phone_number_order.product_type #=> String, one of "BusinessCalling", "VoiceConnector", "SipMediaApplicationDialIn"
3916
3917
  # resp.phone_number_order.status #=> String, one of "Processing", "Successful", "Failed", "Partial"
3917
3918
  # resp.phone_number_order.ordered_phone_numbers #=> Array
3918
3919
  # resp.phone_number_order.ordered_phone_numbers[0].e164_phone_number #=> String
@@ -5110,7 +5111,7 @@ module Aws::Chime
5110
5111
 
5111
5112
  # List all the messages in a channel. Returns a paginated list of
5112
5113
  # `ChannelMessages`. By default, sorted by creation timestamp in
5113
- # descending order .
5114
+ # descending order.
5114
5115
  #
5115
5116
  # <note markdown="1"> Redacted messages appear in the results as empty, since they are only
5116
5117
  # redacted, not deleted. Deleted messages do not appear in the results.
@@ -5483,7 +5484,7 @@ module Aws::Chime
5483
5484
  #
5484
5485
  # resp.phone_number_orders #=> Array
5485
5486
  # resp.phone_number_orders[0].phone_number_order_id #=> String
5486
- # resp.phone_number_orders[0].product_type #=> String, one of "BusinessCalling", "VoiceConnector"
5487
+ # resp.phone_number_orders[0].product_type #=> String, one of "BusinessCalling", "VoiceConnector", "SipMediaApplicationDialIn"
5487
5488
  # resp.phone_number_orders[0].status #=> String, one of "Processing", "Successful", "Failed", "Partial"
5488
5489
  # resp.phone_number_orders[0].ordered_phone_numbers #=> Array
5489
5490
  # resp.phone_number_orders[0].ordered_phone_numbers[0].e164_phone_number #=> String
@@ -5534,7 +5535,7 @@ module Aws::Chime
5534
5535
  #
5535
5536
  # resp = client.list_phone_numbers({
5536
5537
  # status: "AcquireInProgress", # accepts AcquireInProgress, AcquireFailed, Unassigned, Assigned, ReleaseInProgress, DeleteInProgress, ReleaseFailed, DeleteFailed
5537
- # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector
5538
+ # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
5538
5539
  # filter_name: "AccountId", # accepts AccountId, UserId, VoiceConnectorId, VoiceConnectorGroupId, SipRuleId
5539
5540
  # filter_value: "String",
5540
5541
  # max_results: 1,
@@ -5546,8 +5547,9 @@ module Aws::Chime
5546
5547
  # resp.phone_numbers #=> Array
5547
5548
  # resp.phone_numbers[0].phone_number_id #=> String
5548
5549
  # resp.phone_numbers[0].e164_phone_number #=> String
5550
+ # resp.phone_numbers[0].country #=> String
5549
5551
  # resp.phone_numbers[0].type #=> String, one of "Local", "TollFree"
5550
- # resp.phone_numbers[0].product_type #=> String, one of "BusinessCalling", "VoiceConnector"
5552
+ # resp.phone_numbers[0].product_type #=> String, one of "BusinessCalling", "VoiceConnector", "SipMediaApplicationDialIn"
5551
5553
  # resp.phone_numbers[0].status #=> String, one of "AcquireInProgress", "AcquireFailed", "Unassigned", "Assigned", "ReleaseInProgress", "DeleteInProgress", "ReleaseFailed", "DeleteFailed"
5552
5554
  # resp.phone_numbers[0].capabilities.inbound_call #=> Boolean
5553
5555
  # resp.phone_numbers[0].capabilities.outbound_call #=> Boolean
@@ -5841,6 +5843,37 @@ module Aws::Chime
5841
5843
  req.send_request(options)
5842
5844
  end
5843
5845
 
5846
+ # Lists supported phone number countries.
5847
+ #
5848
+ # @option params [required, String] :product_type
5849
+ # The phone number product type.
5850
+ #
5851
+ # @return [Types::ListSupportedPhoneNumberCountriesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5852
+ #
5853
+ # * {Types::ListSupportedPhoneNumberCountriesResponse#phone_number_countries #phone_number_countries} => Array&lt;Types::PhoneNumberCountry&gt;
5854
+ #
5855
+ # @example Request syntax with placeholder values
5856
+ #
5857
+ # resp = client.list_supported_phone_number_countries({
5858
+ # product_type: "BusinessCalling", # required, accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
5859
+ # })
5860
+ #
5861
+ # @example Response structure
5862
+ #
5863
+ # resp.phone_number_countries #=> Array
5864
+ # resp.phone_number_countries[0].country_code #=> String
5865
+ # resp.phone_number_countries[0].supported_phone_number_types #=> Array
5866
+ # resp.phone_number_countries[0].supported_phone_number_types[0] #=> String, one of "Local", "TollFree"
5867
+ #
5868
+ # @see http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSupportedPhoneNumberCountries AWS API Documentation
5869
+ #
5870
+ # @overload list_supported_phone_number_countries(params = {})
5871
+ # @param [Hash] params ({})
5872
+ def list_supported_phone_number_countries(params = {}, options = {})
5873
+ req = build_request(:list_supported_phone_number_countries, params)
5874
+ req.send_request(options)
5875
+ end
5876
+
5844
5877
  # Lists the tags applied to an Amazon Chime SDK meeting resource.
5845
5878
  #
5846
5879
  # @option params [required, String] :resource_arn
@@ -6828,8 +6861,9 @@ module Aws::Chime
6828
6861
  #
6829
6862
  # resp.phone_number.phone_number_id #=> String
6830
6863
  # resp.phone_number.e164_phone_number #=> String
6864
+ # resp.phone_number.country #=> String
6831
6865
  # resp.phone_number.type #=> String, one of "Local", "TollFree"
6832
- # resp.phone_number.product_type #=> String, one of "BusinessCalling", "VoiceConnector"
6866
+ # resp.phone_number.product_type #=> String, one of "BusinessCalling", "VoiceConnector", "SipMediaApplicationDialIn"
6833
6867
  # resp.phone_number.status #=> String, one of "AcquireInProgress", "AcquireFailed", "Unassigned", "Assigned", "ReleaseInProgress", "DeleteInProgress", "ReleaseFailed", "DeleteFailed"
6834
6868
  # resp.phone_number.capabilities.inbound_call #=> Boolean
6835
6869
  # resp.phone_number.capabilities.outbound_call #=> Boolean
@@ -6856,41 +6890,56 @@ module Aws::Chime
6856
6890
  req.send_request(options)
6857
6891
  end
6858
6892
 
6859
- # Searches phone numbers that can be ordered.
6893
+ # Searches for phone numbers that can be ordered. For US numbers,
6894
+ # provide at least one of the following search filters: `AreaCode`,
6895
+ # `City`, `State`, or `TollFreePrefix`. If you provide `City`, you must
6896
+ # also provide `State`. Numbers outside the US only support the
6897
+ # `PhoneNumberType` filter, which you must use.
6860
6898
  #
6861
6899
  # @option params [String] :area_code
6862
- # The area code used to filter results.
6900
+ # The area code used to filter results. Only applies to the US.
6863
6901
  #
6864
6902
  # @option params [String] :city
6865
- # The city used to filter results.
6903
+ # The city used to filter results. Only applies to the US.
6866
6904
  #
6867
6905
  # @option params [String] :country
6868
- # The country used to filter results.
6906
+ # The country used to filter results. Defaults to the US Format: ISO
6907
+ # 3166-1 alpha-2.
6869
6908
  #
6870
6909
  # @option params [String] :state
6871
- # The state used to filter results.
6910
+ # The state used to filter results. Required only if you provide `City`.
6911
+ # Only applies to the US.
6872
6912
  #
6873
6913
  # @option params [String] :toll_free_prefix
6874
- # The toll-free prefix that you use to filter results.
6914
+ # The toll-free prefix that you use to filter results. Only applies to
6915
+ # the US.
6916
+ #
6917
+ # @option params [String] :phone_number_type
6918
+ # The phone number type used to filter results. Required for non-US
6919
+ # numbers.
6875
6920
  #
6876
6921
  # @option params [Integer] :max_results
6877
6922
  # The maximum number of results to return in a single call.
6878
6923
  #
6879
6924
  # @option params [String] :next_token
6880
- # The token to use to retrieve the next page of results.
6925
+ # The token used to retrieve the next page of results.
6881
6926
  #
6882
6927
  # @return [Types::SearchAvailablePhoneNumbersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6883
6928
  #
6884
6929
  # * {Types::SearchAvailablePhoneNumbersResponse#e164_phone_numbers #e164_phone_numbers} => Array&lt;String&gt;
6930
+ # * {Types::SearchAvailablePhoneNumbersResponse#next_token #next_token} => String
6931
+ #
6932
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
6885
6933
  #
6886
6934
  # @example Request syntax with placeholder values
6887
6935
  #
6888
6936
  # resp = client.search_available_phone_numbers({
6889
6937
  # area_code: "String",
6890
6938
  # city: "String",
6891
- # country: "String",
6939
+ # country: "Alpha2CountryCode",
6892
6940
  # state: "String",
6893
6941
  # toll_free_prefix: "TollFreePrefix",
6942
+ # phone_number_type: "Local", # accepts Local, TollFree
6894
6943
  # max_results: 1,
6895
6944
  # next_token: "String",
6896
6945
  # })
@@ -6899,6 +6948,7 @@ module Aws::Chime
6899
6948
  #
6900
6949
  # resp.e164_phone_numbers #=> Array
6901
6950
  # resp.e164_phone_numbers[0] #=> String
6951
+ # resp.next_token #=> String
6902
6952
  #
6903
6953
  # @see http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SearchAvailablePhoneNumbers AWS API Documentation
6904
6954
  #
@@ -7534,10 +7584,11 @@ module Aws::Chime
7534
7584
  # detail at a time. For example, you can update either the product type
7535
7585
  # or the calling name in one action.
7536
7586
  #
7537
- # For toll-free numbers, you must use the Amazon Chime Voice Connector
7538
- # product type.
7587
+ # For toll-free numbers, you cannot use the Amazon Chime Business
7588
+ # Calling product type. For numbers outside the U.S., you must use the
7589
+ # Amazon Chime SIP Media Application Dial-In product type.
7539
7590
  #
7540
- # Updates to outbound calling names can take up to 72 hours to complete.
7591
+ # Updates to outbound calling names can take 72 hours to complete.
7541
7592
  # Pending updates to outbound calling names must be complete before you
7542
7593
  # can request another update.
7543
7594
  #
@@ -7558,7 +7609,7 @@ module Aws::Chime
7558
7609
  #
7559
7610
  # resp = client.update_phone_number({
7560
7611
  # phone_number_id: "String", # required
7561
- # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector
7612
+ # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
7562
7613
  # calling_name: "CallingName",
7563
7614
  # })
7564
7615
  #
@@ -7566,8 +7617,9 @@ module Aws::Chime
7566
7617
  #
7567
7618
  # resp.phone_number.phone_number_id #=> String
7568
7619
  # resp.phone_number.e164_phone_number #=> String
7620
+ # resp.phone_number.country #=> String
7569
7621
  # resp.phone_number.type #=> String, one of "Local", "TollFree"
7570
- # resp.phone_number.product_type #=> String, one of "BusinessCalling", "VoiceConnector"
7622
+ # resp.phone_number.product_type #=> String, one of "BusinessCalling", "VoiceConnector", "SipMediaApplicationDialIn"
7571
7623
  # resp.phone_number.status #=> String, one of "AcquireInProgress", "AcquireFailed", "Unassigned", "Assigned", "ReleaseInProgress", "DeleteInProgress", "ReleaseFailed", "DeleteFailed"
7572
7624
  # resp.phone_number.capabilities.inbound_call #=> Boolean
7573
7625
  # resp.phone_number.capabilities.outbound_call #=> Boolean
@@ -8074,7 +8126,7 @@ module Aws::Chime
8074
8126
  params: params,
8075
8127
  config: config)
8076
8128
  context[:gem_name] = 'aws-sdk-chime'
8077
- context[:gem_version] = '1.45.0'
8129
+ context[:gem_version] = '1.46.0'
8078
8130
  Seahorse::Client::Request.new(handlers, context)
8079
8131
  end
8080
8132
 
@@ -354,6 +354,8 @@ module Aws::Chime
354
354
  ListSipMediaApplicationsResponse = Shapes::StructureShape.new(name: 'ListSipMediaApplicationsResponse')
355
355
  ListSipRulesRequest = Shapes::StructureShape.new(name: 'ListSipRulesRequest')
356
356
  ListSipRulesResponse = Shapes::StructureShape.new(name: 'ListSipRulesResponse')
357
+ ListSupportedPhoneNumberCountriesRequest = Shapes::StructureShape.new(name: 'ListSupportedPhoneNumberCountriesRequest')
358
+ ListSupportedPhoneNumberCountriesResponse = Shapes::StructureShape.new(name: 'ListSupportedPhoneNumberCountriesResponse')
357
359
  ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
358
360
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
359
361
  ListUsersRequest = Shapes::StructureShape.new(name: 'ListUsersRequest')
@@ -414,6 +416,8 @@ module Aws::Chime
414
416
  PhoneNumberAssociationList = Shapes::ListShape.new(name: 'PhoneNumberAssociationList')
415
417
  PhoneNumberAssociationName = Shapes::StringShape.new(name: 'PhoneNumberAssociationName')
416
418
  PhoneNumberCapabilities = Shapes::StructureShape.new(name: 'PhoneNumberCapabilities')
419
+ PhoneNumberCountriesList = Shapes::ListShape.new(name: 'PhoneNumberCountriesList')
420
+ PhoneNumberCountry = Shapes::StructureShape.new(name: 'PhoneNumberCountry')
417
421
  PhoneNumberError = Shapes::StructureShape.new(name: 'PhoneNumberError')
418
422
  PhoneNumberErrorList = Shapes::ListShape.new(name: 'PhoneNumberErrorList')
419
423
  PhoneNumberList = Shapes::ListShape.new(name: 'PhoneNumberList')
@@ -424,6 +428,7 @@ module Aws::Chime
424
428
  PhoneNumberProductType = Shapes::StringShape.new(name: 'PhoneNumberProductType')
425
429
  PhoneNumberStatus = Shapes::StringShape.new(name: 'PhoneNumberStatus')
426
430
  PhoneNumberType = Shapes::StringShape.new(name: 'PhoneNumberType')
431
+ PhoneNumberTypeList = Shapes::ListShape.new(name: 'PhoneNumberTypeList')
427
432
  Port = Shapes::IntegerShape.new(name: 'Port')
428
433
  PositiveInteger = Shapes::IntegerShape.new(name: 'PositiveInteger')
429
434
  ProfileServiceMaxResults = Shapes::IntegerShape.new(name: 'ProfileServiceMaxResults')
@@ -1797,6 +1802,12 @@ module Aws::Chime
1797
1802
  ListSipRulesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextTokenString, location_name: "NextToken"))
1798
1803
  ListSipRulesResponse.struct_class = Types::ListSipRulesResponse
1799
1804
 
1805
+ ListSupportedPhoneNumberCountriesRequest.add_member(:product_type, Shapes::ShapeRef.new(shape: PhoneNumberProductType, required: true, location: "querystring", location_name: "product-type"))
1806
+ ListSupportedPhoneNumberCountriesRequest.struct_class = Types::ListSupportedPhoneNumberCountriesRequest
1807
+
1808
+ ListSupportedPhoneNumberCountriesResponse.add_member(:phone_number_countries, Shapes::ShapeRef.new(shape: PhoneNumberCountriesList, location_name: "PhoneNumberCountries"))
1809
+ ListSupportedPhoneNumberCountriesResponse.struct_class = Types::ListSupportedPhoneNumberCountriesResponse
1810
+
1800
1811
  ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "querystring", location_name: "arn"))
1801
1812
  ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
1802
1813
 
@@ -1932,6 +1943,7 @@ module Aws::Chime
1932
1943
 
1933
1944
  PhoneNumber.add_member(:phone_number_id, Shapes::ShapeRef.new(shape: String, location_name: "PhoneNumberId"))
1934
1945
  PhoneNumber.add_member(:e164_phone_number, Shapes::ShapeRef.new(shape: E164PhoneNumber, location_name: "E164PhoneNumber"))
1946
+ PhoneNumber.add_member(:country, Shapes::ShapeRef.new(shape: Alpha2CountryCode, location_name: "Country"))
1935
1947
  PhoneNumber.add_member(:type, Shapes::ShapeRef.new(shape: PhoneNumberType, location_name: "Type"))
1936
1948
  PhoneNumber.add_member(:product_type, Shapes::ShapeRef.new(shape: PhoneNumberProductType, location_name: "ProductType"))
1937
1949
  PhoneNumber.add_member(:status, Shapes::ShapeRef.new(shape: PhoneNumberStatus, location_name: "Status"))
@@ -1959,6 +1971,12 @@ module Aws::Chime
1959
1971
  PhoneNumberCapabilities.add_member(:outbound_mms, Shapes::ShapeRef.new(shape: NullableBoolean, location_name: "OutboundMMS"))
1960
1972
  PhoneNumberCapabilities.struct_class = Types::PhoneNumberCapabilities
1961
1973
 
1974
+ PhoneNumberCountriesList.member = Shapes::ShapeRef.new(shape: PhoneNumberCountry)
1975
+
1976
+ PhoneNumberCountry.add_member(:country_code, Shapes::ShapeRef.new(shape: Alpha2CountryCode, location_name: "CountryCode"))
1977
+ PhoneNumberCountry.add_member(:supported_phone_number_types, Shapes::ShapeRef.new(shape: PhoneNumberTypeList, location_name: "SupportedPhoneNumberTypes"))
1978
+ PhoneNumberCountry.struct_class = Types::PhoneNumberCountry
1979
+
1962
1980
  PhoneNumberError.add_member(:phone_number_id, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "PhoneNumberId"))
1963
1981
  PhoneNumberError.add_member(:error_code, Shapes::ShapeRef.new(shape: ErrorCode, location_name: "ErrorCode"))
1964
1982
  PhoneNumberError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
@@ -1978,6 +1996,8 @@ module Aws::Chime
1978
1996
 
1979
1997
  PhoneNumberOrderList.member = Shapes::ShapeRef.new(shape: PhoneNumberOrder)
1980
1998
 
1999
+ PhoneNumberTypeList.member = Shapes::ShapeRef.new(shape: PhoneNumberType)
2000
+
1981
2001
  Proxy.add_member(:default_session_expiry_minutes, Shapes::ShapeRef.new(shape: Integer, location_name: "DefaultSessionExpiryMinutes"))
1982
2002
  Proxy.add_member(:disabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Disabled"))
1983
2003
  Proxy.add_member(:fall_back_phone_number, Shapes::ShapeRef.new(shape: E164PhoneNumber, location_name: "FallBackPhoneNumber"))
@@ -2164,14 +2184,16 @@ module Aws::Chime
2164
2184
 
2165
2185
  SearchAvailablePhoneNumbersRequest.add_member(:area_code, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "area-code"))
2166
2186
  SearchAvailablePhoneNumbersRequest.add_member(:city, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "city"))
2167
- SearchAvailablePhoneNumbersRequest.add_member(:country, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "country"))
2187
+ SearchAvailablePhoneNumbersRequest.add_member(:country, Shapes::ShapeRef.new(shape: Alpha2CountryCode, location: "querystring", location_name: "country"))
2168
2188
  SearchAvailablePhoneNumbersRequest.add_member(:state, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "state"))
2169
2189
  SearchAvailablePhoneNumbersRequest.add_member(:toll_free_prefix, Shapes::ShapeRef.new(shape: TollFreePrefix, location: "querystring", location_name: "toll-free-prefix"))
2190
+ SearchAvailablePhoneNumbersRequest.add_member(:phone_number_type, Shapes::ShapeRef.new(shape: PhoneNumberType, location: "querystring", location_name: "phone-number-type"))
2170
2191
  SearchAvailablePhoneNumbersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: PhoneNumberMaxResults, location: "querystring", location_name: "max-results"))
2171
2192
  SearchAvailablePhoneNumbersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location: "querystring", location_name: "next-token"))
2172
2193
  SearchAvailablePhoneNumbersRequest.struct_class = Types::SearchAvailablePhoneNumbersRequest
2173
2194
 
2174
2195
  SearchAvailablePhoneNumbersResponse.add_member(:e164_phone_numbers, Shapes::ShapeRef.new(shape: E164PhoneNumberList, location_name: "E164PhoneNumbers"))
2196
+ SearchAvailablePhoneNumbersResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
2175
2197
  SearchAvailablePhoneNumbersResponse.struct_class = Types::SearchAvailablePhoneNumbersResponse
2176
2198
 
2177
2199
  SendChannelMessageRequest.add_member(:channel_arn, Shapes::ShapeRef.new(shape: ChimeArn, required: true, location: "uri", location_name: "channelArn"))
@@ -4748,6 +4770,21 @@ module Aws::Chime
4748
4770
  )
4749
4771
  end)
4750
4772
 
4773
+ api.add_operation(:list_supported_phone_number_countries, Seahorse::Model::Operation.new.tap do |o|
4774
+ o.name = "ListSupportedPhoneNumberCountries"
4775
+ o.http_method = "GET"
4776
+ o.http_request_uri = "/phone-number-countries"
4777
+ o.input = Shapes::ShapeRef.new(shape: ListSupportedPhoneNumberCountriesRequest)
4778
+ o.output = Shapes::ShapeRef.new(shape: ListSupportedPhoneNumberCountriesResponse)
4779
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
4780
+ o.errors << Shapes::ShapeRef.new(shape: ForbiddenException)
4781
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
4782
+ o.errors << Shapes::ShapeRef.new(shape: UnauthorizedClientException)
4783
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
4784
+ o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
4785
+ o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
4786
+ end)
4787
+
4751
4788
  api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
4752
4789
  o.name = "ListTagsForResource"
4753
4790
  o.http_method = "GET"
@@ -5146,6 +5183,12 @@ module Aws::Chime
5146
5183
  o.errors << Shapes::ShapeRef.new(shape: ThrottledClientException)
5147
5184
  o.errors << Shapes::ShapeRef.new(shape: ServiceUnavailableException)
5148
5185
  o.errors << Shapes::ShapeRef.new(shape: ServiceFailureException)
5186
+ o[:pager] = Aws::Pager.new(
5187
+ limit_key: "max_results",
5188
+ tokens: {
5189
+ "next_token" => "next_token"
5190
+ }
5191
+ )
5149
5192
  end)
5150
5193
 
5151
5194
  api.add_operation(:send_channel_message, Seahorse::Model::Operation.new.tap do |o|
@@ -928,7 +928,7 @@ module Aws::Chime
928
928
  # update_phone_number_request_items: [ # required
929
929
  # {
930
930
  # phone_number_id: "NonEmptyString", # required
931
- # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector
931
+ # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
932
932
  # calling_name: "CallingName",
933
933
  # },
934
934
  # ],
@@ -2376,7 +2376,7 @@ module Aws::Chime
2376
2376
  # data as a hash:
2377
2377
  #
2378
2378
  # {
2379
- # product_type: "BusinessCalling", # required, accepts BusinessCalling, VoiceConnector
2379
+ # product_type: "BusinessCalling", # required, accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
2380
2380
  # e164_phone_numbers: ["E164PhoneNumber"], # required
2381
2381
  # }
2382
2382
  #
@@ -3702,7 +3702,7 @@ module Aws::Chime
3702
3702
  end
3703
3703
 
3704
3704
  # @!attribute [rw] channel_ban
3705
- # The the details of the ban.
3705
+ # The details of the ban.
3706
3706
  # @return [Types::ChannelBan]
3707
3707
  #
3708
3708
  # @see http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/DescribeChannelBanResponse AWS API Documentation
@@ -6148,7 +6148,7 @@ module Aws::Chime
6148
6148
  #
6149
6149
  # {
6150
6150
  # status: "AcquireInProgress", # accepts AcquireInProgress, AcquireFailed, Unassigned, Assigned, ReleaseInProgress, DeleteInProgress, ReleaseFailed, DeleteFailed
6151
- # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector
6151
+ # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
6152
6152
  # filter_name: "AccountId", # accepts AccountId, UserId, VoiceConnectorId, VoiceConnectorGroupId, SipRuleId
6153
6153
  # filter_value: "String",
6154
6154
  # max_results: 1,
@@ -6463,6 +6463,37 @@ module Aws::Chime
6463
6463
  include Aws::Structure
6464
6464
  end
6465
6465
 
6466
+ # @note When making an API call, you may pass ListSupportedPhoneNumberCountriesRequest
6467
+ # data as a hash:
6468
+ #
6469
+ # {
6470
+ # product_type: "BusinessCalling", # required, accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
6471
+ # }
6472
+ #
6473
+ # @!attribute [rw] product_type
6474
+ # The phone number product type.
6475
+ # @return [String]
6476
+ #
6477
+ # @see http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSupportedPhoneNumberCountriesRequest AWS API Documentation
6478
+ #
6479
+ class ListSupportedPhoneNumberCountriesRequest < Struct.new(
6480
+ :product_type)
6481
+ SENSITIVE = []
6482
+ include Aws::Structure
6483
+ end
6484
+
6485
+ # @!attribute [rw] phone_number_countries
6486
+ # The supported phone number countries.
6487
+ # @return [Array<Types::PhoneNumberCountry>]
6488
+ #
6489
+ # @see http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ListSupportedPhoneNumberCountriesResponse AWS API Documentation
6490
+ #
6491
+ class ListSupportedPhoneNumberCountriesResponse < Struct.new(
6492
+ :phone_number_countries)
6493
+ SENSITIVE = []
6494
+ include Aws::Structure
6495
+ end
6496
+
6466
6497
  # @note When making an API call, you may pass ListTagsForResourceRequest
6467
6498
  # data as a hash:
6468
6499
  #
@@ -7088,6 +7119,10 @@ module Aws::Chime
7088
7119
  # The phone number, in E.164 format.
7089
7120
  # @return [String]
7090
7121
  #
7122
+ # @!attribute [rw] country
7123
+ # The phone number country. Format: ISO 3166-1 alpha-2.
7124
+ # @return [String]
7125
+ #
7091
7126
  # @!attribute [rw] type
7092
7127
  # The phone number type.
7093
7128
  # @return [String]
@@ -7133,6 +7168,7 @@ module Aws::Chime
7133
7168
  class PhoneNumber < Struct.new(
7134
7169
  :phone_number_id,
7135
7170
  :e164_phone_number,
7171
+ :country,
7136
7172
  :type,
7137
7173
  :product_type,
7138
7174
  :status,
@@ -7220,6 +7256,25 @@ module Aws::Chime
7220
7256
  include Aws::Structure
7221
7257
  end
7222
7258
 
7259
+ # The phone number country.
7260
+ #
7261
+ # @!attribute [rw] country_code
7262
+ # The phone number country code. Format: ISO 3166-1 alpha-2.
7263
+ # @return [String]
7264
+ #
7265
+ # @!attribute [rw] supported_phone_number_types
7266
+ # The supported phone number types.
7267
+ # @return [Array<String>]
7268
+ #
7269
+ # @see http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/PhoneNumberCountry AWS API Documentation
7270
+ #
7271
+ class PhoneNumberCountry < Struct.new(
7272
+ :country_code,
7273
+ :supported_phone_number_types)
7274
+ SENSITIVE = []
7275
+ include Aws::Structure
7276
+ end
7277
+
7223
7278
  # If the phone number action fails for one or more of the phone numbers
7224
7279
  # in the request, a list of the phone numbers is returned, along with
7225
7280
  # error codes and error messages.
@@ -8303,31 +8358,40 @@ module Aws::Chime
8303
8358
  # {
8304
8359
  # area_code: "String",
8305
8360
  # city: "String",
8306
- # country: "String",
8361
+ # country: "Alpha2CountryCode",
8307
8362
  # state: "String",
8308
8363
  # toll_free_prefix: "TollFreePrefix",
8364
+ # phone_number_type: "Local", # accepts Local, TollFree
8309
8365
  # max_results: 1,
8310
8366
  # next_token: "String",
8311
8367
  # }
8312
8368
  #
8313
8369
  # @!attribute [rw] area_code
8314
- # The area code used to filter results.
8370
+ # The area code used to filter results. Only applies to the US.
8315
8371
  # @return [String]
8316
8372
  #
8317
8373
  # @!attribute [rw] city
8318
- # The city used to filter results.
8374
+ # The city used to filter results. Only applies to the US.
8319
8375
  # @return [String]
8320
8376
  #
8321
8377
  # @!attribute [rw] country
8322
- # The country used to filter results.
8378
+ # The country used to filter results. Defaults to the US Format: ISO
8379
+ # 3166-1 alpha-2.
8323
8380
  # @return [String]
8324
8381
  #
8325
8382
  # @!attribute [rw] state
8326
- # The state used to filter results.
8383
+ # The state used to filter results. Required only if you provide
8384
+ # `City`. Only applies to the US.
8327
8385
  # @return [String]
8328
8386
  #
8329
8387
  # @!attribute [rw] toll_free_prefix
8330
- # The toll-free prefix that you use to filter results.
8388
+ # The toll-free prefix that you use to filter results. Only applies to
8389
+ # the US.
8390
+ # @return [String]
8391
+ #
8392
+ # @!attribute [rw] phone_number_type
8393
+ # The phone number type used to filter results. Required for non-US
8394
+ # numbers.
8331
8395
  # @return [String]
8332
8396
  #
8333
8397
  # @!attribute [rw] max_results
@@ -8335,7 +8399,7 @@ module Aws::Chime
8335
8399
  # @return [Integer]
8336
8400
  #
8337
8401
  # @!attribute [rw] next_token
8338
- # The token to use to retrieve the next page of results.
8402
+ # The token used to retrieve the next page of results.
8339
8403
  # @return [String]
8340
8404
  #
8341
8405
  # @see http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SearchAvailablePhoneNumbersRequest AWS API Documentation
@@ -8346,6 +8410,7 @@ module Aws::Chime
8346
8410
  :country,
8347
8411
  :state,
8348
8412
  :toll_free_prefix,
8413
+ :phone_number_type,
8349
8414
  :max_results,
8350
8415
  :next_token)
8351
8416
  SENSITIVE = []
@@ -8356,10 +8421,15 @@ module Aws::Chime
8356
8421
  # List of phone numbers, in E.164 format.
8357
8422
  # @return [Array<String>]
8358
8423
  #
8424
+ # @!attribute [rw] next_token
8425
+ # The token used to retrieve the next page of search results.
8426
+ # @return [String]
8427
+ #
8359
8428
  # @see http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/SearchAvailablePhoneNumbersResponse AWS API Documentation
8360
8429
  #
8361
8430
  class SearchAvailablePhoneNumbersResponse < Struct.new(
8362
- :e164_phone_numbers)
8431
+ :e164_phone_numbers,
8432
+ :next_token)
8363
8433
  SENSITIVE = []
8364
8434
  include Aws::Structure
8365
8435
  end
@@ -9494,7 +9564,7 @@ module Aws::Chime
9494
9564
  #
9495
9565
  # {
9496
9566
  # phone_number_id: "String", # required
9497
- # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector
9567
+ # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
9498
9568
  # calling_name: "CallingName",
9499
9569
  # }
9500
9570
  #
@@ -9528,7 +9598,7 @@ module Aws::Chime
9528
9598
  #
9529
9599
  # {
9530
9600
  # phone_number_id: "NonEmptyString", # required
9531
- # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector
9601
+ # product_type: "BusinessCalling", # accepts BusinessCalling, VoiceConnector, SipMediaApplicationDialIn
9532
9602
  # calling_name: "CallingName",
9533
9603
  # }
9534
9604
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-chime
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.45.0
4
+ version: 1.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-03 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core