aws-sdk-connect 1.68.0 → 1.69.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: 2836a963304554f4a8e5e577313e89df314b399bcd104c936260c5fc60ce0b0f
4
- data.tar.gz: b7ca8cb8338944f0f4c38f2b4c46e72af65e5fc8b8453cf7bf8769ab33be052e
3
+ metadata.gz: cbaafb8d825aecf2b47bb6de469985e767d11659f15117b75cac93ee1a206ad8
4
+ data.tar.gz: f66298e69d8e13d62eb34923489e0d9371e9d36d2625ad07594176c6943ac823
5
5
  SHA512:
6
- metadata.gz: 165bffcd5f86407095f5b61332d0e65fceabc5468c3e0831b7925cbeb79b6291de25b1bc2c6cd9ae574e1275604367a0b2f684cdf53b673e13988d1af715c759
7
- data.tar.gz: d96e0727f9e8400fa68803600911c57dcd5ee52b51aba3fb00c901d9b367a9598ad7455eb7ed19f9c47fd60b7a59c0a6d6e280e35d3323595abb59ec51fd187f
6
+ metadata.gz: c493532b2202c2c76191bb89786f1e306659ec2e288c3079178433f63a7c71771b29dd1ef93c1a171ae18df64d45bb23a23632e8f6e8c035b3c0fdcff2066bd2
7
+ data.tar.gz: 333a38c3b7ff0443ac407b6400ac824db678142fdf92d8d4ed29d61045c161f5ce88cb1f8cde49e351d9cf37fdf1a01a116e59f908a1603ec1ce0896e4b736e5
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.69.0 (2022-04-20)
5
+ ------------------
6
+
7
+ * Feature - This release adds APIs to search, claim, release, list, update, and describe phone numbers. You can also use them to associate and disassociate contact flows to phone numbers.
8
+
4
9
  1.68.0 (2022-04-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.68.0
1
+ 1.69.0
@@ -600,6 +600,38 @@ module Aws::Connect
600
600
  req.send_request(options)
601
601
  end
602
602
 
603
+ # Associates a contact flow with a phone number claimed to your Amazon
604
+ # Connect instance.
605
+ #
606
+ # @option params [required, String] :phone_number_id
607
+ # A unique identifier for the phone number.
608
+ #
609
+ # @option params [required, String] :instance_id
610
+ # The identifier of the Amazon Connect instance. You can find the
611
+ # instanceId in the ARN of the instance.
612
+ #
613
+ # @option params [required, String] :contact_flow_id
614
+ # The identifier of the contact flow.
615
+ #
616
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
617
+ #
618
+ # @example Request syntax with placeholder values
619
+ #
620
+ # resp = client.associate_phone_number_contact_flow({
621
+ # phone_number_id: "PhoneNumberId", # required
622
+ # instance_id: "InstanceId", # required
623
+ # contact_flow_id: "ContactFlowId", # required
624
+ # })
625
+ #
626
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/AssociatePhoneNumberContactFlow AWS API Documentation
627
+ #
628
+ # @overload associate_phone_number_contact_flow(params = {})
629
+ # @param [Hash] params ({})
630
+ def associate_phone_number_contact_flow(params = {}, options = {})
631
+ req = build_request(:associate_phone_number_contact_flow, params)
632
+ req.send_request(options)
633
+ end
634
+
603
635
  # This API is in preview release for Amazon Connect and is subject to
604
636
  # change.
605
637
  #
@@ -710,6 +742,60 @@ module Aws::Connect
710
742
  req.send_request(options)
711
743
  end
712
744
 
745
+ # Claims an available phone number to your Amazon Connect instance.
746
+ #
747
+ # @option params [required, String] :target_arn
748
+ # The Amazon Resource Name (ARN) for Amazon Connect instances that phone
749
+ # numbers are claimed to.
750
+ #
751
+ # @option params [required, String] :phone_number
752
+ # The phone number you want to claim. Phone numbers are formatted `[+]
753
+ # [country code] [subscriber number including area code]`.
754
+ #
755
+ # @option params [String] :phone_number_description
756
+ # The description of the phone number.
757
+ #
758
+ # @option params [Hash<String,String>] :tags
759
+ # The tags used to organize, track, or control access for this resource.
760
+ #
761
+ # @option params [String] :client_token
762
+ # A unique, case-sensitive identifier that you provide to ensure the
763
+ # idempotency of the request.
764
+ #
765
+ # **A suitable default value is auto-generated.** You should normally
766
+ # not need to pass this option.**
767
+ #
768
+ # @return [Types::ClaimPhoneNumberResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
769
+ #
770
+ # * {Types::ClaimPhoneNumberResponse#phone_number_id #phone_number_id} => String
771
+ # * {Types::ClaimPhoneNumberResponse#phone_number_arn #phone_number_arn} => String
772
+ #
773
+ # @example Request syntax with placeholder values
774
+ #
775
+ # resp = client.claim_phone_number({
776
+ # target_arn: "ARN", # required
777
+ # phone_number: "PhoneNumber", # required
778
+ # phone_number_description: "PhoneNumberDescription",
779
+ # tags: {
780
+ # "TagKey" => "TagValue",
781
+ # },
782
+ # client_token: "ClientToken",
783
+ # })
784
+ #
785
+ # @example Response structure
786
+ #
787
+ # resp.phone_number_id #=> String
788
+ # resp.phone_number_arn #=> String
789
+ #
790
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ClaimPhoneNumber AWS API Documentation
791
+ #
792
+ # @overload claim_phone_number(params = {})
793
+ # @param [Hash] params ({})
794
+ def claim_phone_number(params = {}, options = {})
795
+ req = build_request(:claim_phone_number, params)
796
+ req.send_request(options)
797
+ end
798
+
713
799
  # This API is in preview release for Amazon Connect and is subject to
714
800
  # change.
715
801
  #
@@ -2318,6 +2404,45 @@ module Aws::Connect
2318
2404
  req.send_request(options)
2319
2405
  end
2320
2406
 
2407
+ # Gets details and status of a phone number that’s claimed to your
2408
+ # Amazon Connect instance
2409
+ #
2410
+ # @option params [required, String] :phone_number_id
2411
+ # The identifier of the phone number.
2412
+ #
2413
+ # @return [Types::DescribePhoneNumberResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2414
+ #
2415
+ # * {Types::DescribePhoneNumberResponse#claimed_phone_number_summary #claimed_phone_number_summary} => Types::ClaimedPhoneNumberSummary
2416
+ #
2417
+ # @example Request syntax with placeholder values
2418
+ #
2419
+ # resp = client.describe_phone_number({
2420
+ # phone_number_id: "PhoneNumberId", # required
2421
+ # })
2422
+ #
2423
+ # @example Response structure
2424
+ #
2425
+ # resp.claimed_phone_number_summary.phone_number_id #=> String
2426
+ # resp.claimed_phone_number_summary.phone_number_arn #=> String
2427
+ # resp.claimed_phone_number_summary.phone_number #=> String
2428
+ # resp.claimed_phone_number_summary.phone_number_country_code #=> String, one of "AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BR", "IO", "VG", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "CD", "DK", "DJ", "DM", "DO", "TL", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "PF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "CI", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "KP", "MP", "NO", "OM", "PK", "PW", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "CG", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "KR", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "VI", "UG", "UA", "AE", "GB", "US", "UY", "UZ", "VU", "VA", "VE", "VN", "WF", "EH", "YE", "ZM", "ZW"
2429
+ # resp.claimed_phone_number_summary.phone_number_type #=> String, one of "TOLL_FREE", "DID"
2430
+ # resp.claimed_phone_number_summary.phone_number_description #=> String
2431
+ # resp.claimed_phone_number_summary.target_arn #=> String
2432
+ # resp.claimed_phone_number_summary.tags #=> Hash
2433
+ # resp.claimed_phone_number_summary.tags["TagKey"] #=> String
2434
+ # resp.claimed_phone_number_summary.phone_number_status.status #=> String, one of "CLAIMED", "IN_PROGRESS", "FAILED"
2435
+ # resp.claimed_phone_number_summary.phone_number_status.message #=> String
2436
+ #
2437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DescribePhoneNumber AWS API Documentation
2438
+ #
2439
+ # @overload describe_phone_number(params = {})
2440
+ # @param [Hash] params ({})
2441
+ def describe_phone_number(params = {}, options = {})
2442
+ req = build_request(:describe_phone_number, params)
2443
+ req.send_request(options)
2444
+ end
2445
+
2321
2446
  # This API is in preview release for Amazon Connect and is subject to
2322
2447
  # change.
2323
2448
  #
@@ -2858,6 +2983,34 @@ module Aws::Connect
2858
2983
  req.send_request(options)
2859
2984
  end
2860
2985
 
2986
+ # Removes the contact flow association from a phone number claimed to
2987
+ # your Amazon Connect instance, if a contact flow association exists.
2988
+ #
2989
+ # @option params [required, String] :phone_number_id
2990
+ # The identifier of the phone number.
2991
+ #
2992
+ # @option params [required, String] :instance_id
2993
+ # The identifier of the Amazon Connect instance. You can find the
2994
+ # instanceId in the ARN of the instance.
2995
+ #
2996
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2997
+ #
2998
+ # @example Request syntax with placeholder values
2999
+ #
3000
+ # resp = client.disassociate_phone_number_contact_flow({
3001
+ # phone_number_id: "PhoneNumberId", # required
3002
+ # instance_id: "InstanceId", # required
3003
+ # })
3004
+ #
3005
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/DisassociatePhoneNumberContactFlow AWS API Documentation
3006
+ #
3007
+ # @overload disassociate_phone_number_contact_flow(params = {})
3008
+ # @param [Hash] params ({})
3009
+ def disassociate_phone_number_contact_flow(params = {}, options = {})
3010
+ req = build_request(:disassociate_phone_number_contact_flow, params)
3011
+ req.send_request(options)
3012
+ end
3013
+
2861
3014
  # This API is in preview release for Amazon Connect and is subject to
2862
3015
  # change.
2863
3016
  #
@@ -4353,6 +4506,78 @@ module Aws::Connect
4353
4506
  req.send_request(options)
4354
4507
  end
4355
4508
 
4509
+ # Lists phone numbers claimed to your Amazon Connect instance.
4510
+ #
4511
+ # For more information about phone numbers, see [Set Up Phone Numbers
4512
+ # for Your Contact Center][1] in the *Amazon Connect Administrator
4513
+ # Guide*.
4514
+ #
4515
+ #
4516
+ #
4517
+ # [1]: https://docs.aws.amazon.com/connect/latest/adminguide/contact-center-phone-number.html
4518
+ #
4519
+ # @option params [String] :target_arn
4520
+ # The Amazon Resource Name (ARN) for Amazon Connect instances that phone
4521
+ # numbers are claimed to. If `TargetArn` input is not provided, this API
4522
+ # lists numbers claimed to all the Amazon Connect instances belonging to
4523
+ # your account.
4524
+ #
4525
+ # @option params [Integer] :max_results
4526
+ # The maximum number of results to return per page.
4527
+ #
4528
+ # @option params [String] :next_token
4529
+ # The token for the next set of results. Use the value returned in the
4530
+ # previous response in the next request to retrieve the next set of
4531
+ # results.
4532
+ #
4533
+ # @option params [Array<String>] :phone_number_country_codes
4534
+ # The ISO country code.
4535
+ #
4536
+ # @option params [Array<String>] :phone_number_types
4537
+ # The type of phone number.
4538
+ #
4539
+ # @option params [String] :phone_number_prefix
4540
+ # The prefix of the phone number. If provided, it must contain `+` as
4541
+ # part of the country code.
4542
+ #
4543
+ # @return [Types::ListPhoneNumbersV2Response] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4544
+ #
4545
+ # * {Types::ListPhoneNumbersV2Response#next_token #next_token} => String
4546
+ # * {Types::ListPhoneNumbersV2Response#list_phone_numbers_summary_list #list_phone_numbers_summary_list} => Array&lt;Types::ListPhoneNumbersSummary&gt;
4547
+ #
4548
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4549
+ #
4550
+ # @example Request syntax with placeholder values
4551
+ #
4552
+ # resp = client.list_phone_numbers_v2({
4553
+ # target_arn: "ARN",
4554
+ # max_results: 1,
4555
+ # next_token: "LargeNextToken",
4556
+ # phone_number_country_codes: ["AF"], # accepts AF, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW, BR, IO, VG, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CK, CR, HR, CU, CW, CY, CZ, CD, DK, DJ, DM, DO, TL, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, PF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GU, GT, GG, GN, GW, GY, HT, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, CI, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, AN, NC, NZ, NI, NE, NG, NU, KP, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, CG, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, KR, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TG, TK, TO, TT, TN, TR, TM, TC, TV, VI, UG, UA, AE, GB, US, UY, UZ, VU, VA, VE, VN, WF, EH, YE, ZM, ZW
4557
+ # phone_number_types: ["TOLL_FREE"], # accepts TOLL_FREE, DID
4558
+ # phone_number_prefix: "PhoneNumberPrefix",
4559
+ # })
4560
+ #
4561
+ # @example Response structure
4562
+ #
4563
+ # resp.next_token #=> String
4564
+ # resp.list_phone_numbers_summary_list #=> Array
4565
+ # resp.list_phone_numbers_summary_list[0].phone_number_id #=> String
4566
+ # resp.list_phone_numbers_summary_list[0].phone_number_arn #=> String
4567
+ # resp.list_phone_numbers_summary_list[0].phone_number #=> String
4568
+ # resp.list_phone_numbers_summary_list[0].phone_number_country_code #=> String, one of "AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BR", "IO", "VG", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "CD", "DK", "DJ", "DM", "DO", "TL", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "PF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "CI", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "KP", "MP", "NO", "OM", "PK", "PW", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "CG", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "KR", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "VI", "UG", "UA", "AE", "GB", "US", "UY", "UZ", "VU", "VA", "VE", "VN", "WF", "EH", "YE", "ZM", "ZW"
4569
+ # resp.list_phone_numbers_summary_list[0].phone_number_type #=> String, one of "TOLL_FREE", "DID"
4570
+ # resp.list_phone_numbers_summary_list[0].target_arn #=> String
4571
+ #
4572
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ListPhoneNumbersV2 AWS API Documentation
4573
+ #
4574
+ # @overload list_phone_numbers_v2(params = {})
4575
+ # @param [Hash] params ({})
4576
+ def list_phone_numbers_v2(params = {}, options = {})
4577
+ req = build_request(:list_phone_numbers_v2, params)
4578
+ req.send_request(options)
4579
+ end
4580
+
4356
4581
  # Provides information about the prompts for the specified Amazon
4357
4582
  # Connect instance.
4358
4583
  #
@@ -5023,6 +5248,37 @@ module Aws::Connect
5023
5248
  req.send_request(options)
5024
5249
  end
5025
5250
 
5251
+ # Releases a phone number previously claimed to an Amazon Connect
5252
+ # instance.
5253
+ #
5254
+ # @option params [required, String] :phone_number_id
5255
+ # The identifier of the phone number.
5256
+ #
5257
+ # @option params [String] :client_token
5258
+ # A unique, case-sensitive identifier that you provide to ensure the
5259
+ # idempotency of the request.
5260
+ #
5261
+ # **A suitable default value is auto-generated.** You should normally
5262
+ # not need to pass this option.**
5263
+ #
5264
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
5265
+ #
5266
+ # @example Request syntax with placeholder values
5267
+ #
5268
+ # resp = client.release_phone_number({
5269
+ # phone_number_id: "PhoneNumberId", # required
5270
+ # client_token: "ClientToken",
5271
+ # })
5272
+ #
5273
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/ReleasePhoneNumber AWS API Documentation
5274
+ #
5275
+ # @overload release_phone_number(params = {})
5276
+ # @param [Hash] params ({})
5277
+ def release_phone_number(params = {}, options = {})
5278
+ req = build_request(:release_phone_number, params)
5279
+ req.send_request(options)
5280
+ end
5281
+
5026
5282
  # When a contact is being recorded, and the recording has been suspended
5027
5283
  # using SuspendContactRecording, this API resumes recording the call.
5028
5284
  #
@@ -5058,6 +5314,66 @@ module Aws::Connect
5058
5314
  req.send_request(options)
5059
5315
  end
5060
5316
 
5317
+ # Searches for available phone numbers that you can claim to your Amazon
5318
+ # Connect instance.
5319
+ #
5320
+ # @option params [required, String] :target_arn
5321
+ # The Amazon Resource Name (ARN) for Amazon Connect instances that phone
5322
+ # numbers are claimed to.
5323
+ #
5324
+ # @option params [required, String] :phone_number_country_code
5325
+ # The ISO country code.
5326
+ #
5327
+ # @option params [required, String] :phone_number_type
5328
+ # The type of phone number.
5329
+ #
5330
+ # @option params [String] :phone_number_prefix
5331
+ # The prefix of the phone number. If provided, it must contain `+` as
5332
+ # part of the country code.
5333
+ #
5334
+ # @option params [Integer] :max_results
5335
+ # The maximum number of results to return per page.
5336
+ #
5337
+ # @option params [String] :next_token
5338
+ # The token for the next set of results. Use the value returned in the
5339
+ # previous response in the next request to retrieve the next set of
5340
+ # results.
5341
+ #
5342
+ # @return [Types::SearchAvailablePhoneNumbersResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5343
+ #
5344
+ # * {Types::SearchAvailablePhoneNumbersResponse#next_token #next_token} => String
5345
+ # * {Types::SearchAvailablePhoneNumbersResponse#available_numbers_list #available_numbers_list} => Array&lt;Types::AvailableNumberSummary&gt;
5346
+ #
5347
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
5348
+ #
5349
+ # @example Request syntax with placeholder values
5350
+ #
5351
+ # resp = client.search_available_phone_numbers({
5352
+ # target_arn: "ARN", # required
5353
+ # phone_number_country_code: "AF", # required, accepts AF, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW, BR, IO, VG, BN, BG, BF, BI, KH, CM, CA, CV, KY, CF, TD, CL, CN, CX, CC, CO, KM, CK, CR, HR, CU, CW, CY, CZ, CD, DK, DJ, DM, DO, TL, EC, EG, SV, GQ, ER, EE, ET, FK, FO, FJ, FI, FR, PF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GU, GT, GG, GN, GW, GY, HT, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, CI, JM, JP, JE, JO, KZ, KE, KI, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MK, MG, MW, MY, MV, ML, MT, MH, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, AN, NC, NZ, NI, NE, NG, NU, KP, MP, NO, OM, PK, PW, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, CG, RE, RO, RU, RW, BL, SH, KN, LC, MF, PM, VC, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, KR, ES, LK, SD, SR, SJ, SZ, SE, CH, SY, TW, TJ, TZ, TH, TG, TK, TO, TT, TN, TR, TM, TC, TV, VI, UG, UA, AE, GB, US, UY, UZ, VU, VA, VE, VN, WF, EH, YE, ZM, ZW
5354
+ # phone_number_type: "TOLL_FREE", # required, accepts TOLL_FREE, DID
5355
+ # phone_number_prefix: "PhoneNumberPrefix",
5356
+ # max_results: 1,
5357
+ # next_token: "LargeNextToken",
5358
+ # })
5359
+ #
5360
+ # @example Response structure
5361
+ #
5362
+ # resp.next_token #=> String
5363
+ # resp.available_numbers_list #=> Array
5364
+ # resp.available_numbers_list[0].phone_number #=> String
5365
+ # resp.available_numbers_list[0].phone_number_country_code #=> String, one of "AF", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BS", "BH", "BD", "BB", "BY", "BE", "BZ", "BJ", "BM", "BT", "BO", "BA", "BW", "BR", "IO", "VG", "BN", "BG", "BF", "BI", "KH", "CM", "CA", "CV", "KY", "CF", "TD", "CL", "CN", "CX", "CC", "CO", "KM", "CK", "CR", "HR", "CU", "CW", "CY", "CZ", "CD", "DK", "DJ", "DM", "DO", "TL", "EC", "EG", "SV", "GQ", "ER", "EE", "ET", "FK", "FO", "FJ", "FI", "FR", "PF", "GA", "GM", "GE", "DE", "GH", "GI", "GR", "GL", "GD", "GU", "GT", "GG", "GN", "GW", "GY", "HT", "HN", "HK", "HU", "IS", "IN", "ID", "IR", "IQ", "IE", "IM", "IL", "IT", "CI", "JM", "JP", "JE", "JO", "KZ", "KE", "KI", "KW", "KG", "LA", "LV", "LB", "LS", "LR", "LY", "LI", "LT", "LU", "MO", "MK", "MG", "MW", "MY", "MV", "ML", "MT", "MH", "MR", "MU", "YT", "MX", "FM", "MD", "MC", "MN", "ME", "MS", "MA", "MZ", "MM", "NA", "NR", "NP", "NL", "AN", "NC", "NZ", "NI", "NE", "NG", "NU", "KP", "MP", "NO", "OM", "PK", "PW", "PA", "PG", "PY", "PE", "PH", "PN", "PL", "PT", "PR", "QA", "CG", "RE", "RO", "RU", "RW", "BL", "SH", "KN", "LC", "MF", "PM", "VC", "WS", "SM", "ST", "SA", "SN", "RS", "SC", "SL", "SG", "SX", "SK", "SI", "SB", "SO", "ZA", "KR", "ES", "LK", "SD", "SR", "SJ", "SZ", "SE", "CH", "SY", "TW", "TJ", "TZ", "TH", "TG", "TK", "TO", "TT", "TN", "TR", "TM", "TC", "TV", "VI", "UG", "UA", "AE", "GB", "US", "UY", "UZ", "VU", "VA", "VE", "VN", "WF", "EH", "YE", "ZM", "ZW"
5366
+ # resp.available_numbers_list[0].phone_number_type #=> String, one of "TOLL_FREE", "DID"
5367
+ #
5368
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/SearchAvailablePhoneNumbers AWS API Documentation
5369
+ #
5370
+ # @overload search_available_phone_numbers(params = {})
5371
+ # @param [Hash] params ({})
5372
+ def search_available_phone_numbers(params = {}, options = {})
5373
+ req = build_request(:search_available_phone_numbers, params)
5374
+ req.send_request(options)
5375
+ end
5376
+
5061
5377
  # Searches for vocabularies within a specific Amazon Connect instance
5062
5378
  # using `State`, `NameStartsWith`, and `LanguageCode`.
5063
5379
  #
@@ -5733,7 +6049,8 @@ module Aws::Connect
5733
6049
  # Adds the specified tags to the specified resource.
5734
6050
  #
5735
6051
  # The supported resource types are users, routing profiles, queues,
5736
- # quick connects, contact flows, agent status, and hours of operation.
6052
+ # quick connects, contact flows, agent status, hours of operation, and
6053
+ # phone number.
5737
6054
  #
5738
6055
  # For sample policies that use tags, see [Amazon Connect Identity-Based
5739
6056
  # Policy Examples][1] in the *Amazon Connect Administrator Guide*.
@@ -6358,6 +6675,50 @@ module Aws::Connect
6358
6675
  req.send_request(options)
6359
6676
  end
6360
6677
 
6678
+ # Updates your claimed phone number from its current Amazon Connect
6679
+ # instance to another Amazon Connect instance in the same Region.
6680
+ #
6681
+ # @option params [required, String] :phone_number_id
6682
+ # The identifier of the phone number.
6683
+ #
6684
+ # @option params [required, String] :target_arn
6685
+ # The Amazon Resource Name (ARN) for Amazon Connect instances that phone
6686
+ # numbers are claimed to.
6687
+ #
6688
+ # @option params [String] :client_token
6689
+ # A unique, case-sensitive identifier that you provide to ensure the
6690
+ # idempotency of the request.
6691
+ #
6692
+ # **A suitable default value is auto-generated.** You should normally
6693
+ # not need to pass this option.**
6694
+ #
6695
+ # @return [Types::UpdatePhoneNumberResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6696
+ #
6697
+ # * {Types::UpdatePhoneNumberResponse#phone_number_id #phone_number_id} => String
6698
+ # * {Types::UpdatePhoneNumberResponse#phone_number_arn #phone_number_arn} => String
6699
+ #
6700
+ # @example Request syntax with placeholder values
6701
+ #
6702
+ # resp = client.update_phone_number({
6703
+ # phone_number_id: "PhoneNumberId", # required
6704
+ # target_arn: "ARN", # required
6705
+ # client_token: "ClientToken",
6706
+ # })
6707
+ #
6708
+ # @example Response structure
6709
+ #
6710
+ # resp.phone_number_id #=> String
6711
+ # resp.phone_number_arn #=> String
6712
+ #
6713
+ # @see http://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdatePhoneNumber AWS API Documentation
6714
+ #
6715
+ # @overload update_phone_number(params = {})
6716
+ # @param [Hash] params ({})
6717
+ def update_phone_number(params = {}, options = {})
6718
+ req = build_request(:update_phone_number, params)
6719
+ req.send_request(options)
6720
+ end
6721
+
6361
6722
  # This API is in preview release for Amazon Connect and is subject to
6362
6723
  # change.
6363
6724
  #
@@ -7073,7 +7434,7 @@ module Aws::Connect
7073
7434
  params: params,
7074
7435
  config: config)
7075
7436
  context[:gem_name] = 'aws-sdk-connect'
7076
- context[:gem_version] = '1.68.0'
7437
+ context[:gem_version] = '1.69.0'
7077
7438
  Seahorse::Client::Request.new(handlers, context)
7078
7439
  end
7079
7440