aws-sdk-lexmodelsv2 1.28.0 → 1.30.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: 9698369e1459f0e0a8e76c79759f990037cc13afb4072062f8d0b4c2b754a723
4
- data.tar.gz: 3019600737967f3295678e5523c53a769cced9bcb1a0f92171f2ab4304d8820c
3
+ metadata.gz: 779344c998a2243c51baf5ffa495d93574cf5c2628feef820108a66a3a8e7cb1
4
+ data.tar.gz: 562a2ff35472716ecab959c2195ac6fa6d0c09d6d7ab674cefc1d8f4cea153ec
5
5
  SHA512:
6
- metadata.gz: 0d24d720b0d78aaefadd216e94a14b90e7fc6f14169ea9cb90e40c2eecd3a24b3133d08f6ba28d716489792feb68059fa9cff7e96a864ef6aa55016b01fb4288
7
- data.tar.gz: d5cbf3f3e9ad003fea9ecb9ad6e3470013e8404a7c5cf96885ef55665c3f93eff365d6d0138c0d44ca4c20349ba067b4d23a1fc7d3f076d34a84a12308c68b94
6
+ metadata.gz: 1ddf27394f21aa02d67782b5afd95496bdb51bc8092fe2d603bebcdd4d8159b9c17617e787473598e201e0e8eac71a3504fd9c9e28129bf441823dab320a2eae
7
+ data.tar.gz: f3293e3e065d8b34f97b641675483bd1fb61466c993284dff73055a01bcc11918fe7cdd6b523b99ac80c94e39858cff9c086819fffc9706e2486c88d699438e2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.30.0 (2022-11-07)
5
+ ------------------
6
+
7
+ * Feature - Amazon Lex now supports new APIs for viewing and editing Custom Vocabulary in bots.
8
+
9
+ 1.29.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.28.0 (2022-09-23)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.28.0
1
+ 1.30.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:lexmodelsv2)
@@ -79,8 +79,9 @@ module Aws::LexModelsV2
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::LexModelsV2::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::LexModelsV2
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::LexModelsV2
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::LexModelsV2::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LexModelsV2::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -351,6 +368,203 @@ module Aws::LexModelsV2
351
368
 
352
369
  # @!group API Operations
353
370
 
371
+ # Batch create custom vocabulary item for the specified locale in the
372
+ # specified bot.
373
+ #
374
+ # @option params [required, String] :bot_id
375
+ # The unique identifier of the bot to batch create the custom vocabulary
376
+ # item for.
377
+ #
378
+ # @option params [required, String] :bot_version
379
+ # The bot version of the bot to batch create the custom vocabulary item
380
+ # for.
381
+ #
382
+ # @option params [required, String] :locale_id
383
+ # The unique locale identifier of the bot to batch create the custom
384
+ # vocabulary item for.
385
+ #
386
+ # @option params [required, Array<Types::NewCustomVocabularyItem>] :custom_vocabulary_item_list
387
+ # The custom vocabulary item list of the bot to batch create the custom
388
+ # vocabulary item for.
389
+ #
390
+ # @return [Types::BatchCreateCustomVocabularyItemResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
391
+ #
392
+ # * {Types::BatchCreateCustomVocabularyItemResponse#bot_id #bot_id} => String
393
+ # * {Types::BatchCreateCustomVocabularyItemResponse#bot_version #bot_version} => String
394
+ # * {Types::BatchCreateCustomVocabularyItemResponse#locale_id #locale_id} => String
395
+ # * {Types::BatchCreateCustomVocabularyItemResponse#errors #errors} => Array&lt;Types::FailedCustomVocabularyItem&gt;
396
+ # * {Types::BatchCreateCustomVocabularyItemResponse#resources #resources} => Array&lt;Types::CustomVocabularyItem&gt;
397
+ #
398
+ # @example Request syntax with placeholder values
399
+ #
400
+ # resp = client.batch_create_custom_vocabulary_item({
401
+ # bot_id: "Id", # required
402
+ # bot_version: "BotVersion", # required
403
+ # locale_id: "LocaleId", # required
404
+ # custom_vocabulary_item_list: [ # required
405
+ # {
406
+ # phrase: "Phrase", # required
407
+ # weight: 1,
408
+ # display_as: "Phrase",
409
+ # },
410
+ # ],
411
+ # })
412
+ #
413
+ # @example Response structure
414
+ #
415
+ # resp.bot_id #=> String
416
+ # resp.bot_version #=> String
417
+ # resp.locale_id #=> String
418
+ # resp.errors #=> Array
419
+ # resp.errors[0].item_id #=> String
420
+ # resp.errors[0].error_message #=> String
421
+ # resp.errors[0].error_code #=> String, one of "DUPLICATE_INPUT", "RESOURCE_DOES_NOT_EXIST", "RESOURCE_ALREADY_EXISTS", "INTERNAL_SERVER_FAILURE"
422
+ # resp.resources #=> Array
423
+ # resp.resources[0].item_id #=> String
424
+ # resp.resources[0].phrase #=> String
425
+ # resp.resources[0].weight #=> Integer
426
+ # resp.resources[0].display_as #=> String
427
+ #
428
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchCreateCustomVocabularyItem AWS API Documentation
429
+ #
430
+ # @overload batch_create_custom_vocabulary_item(params = {})
431
+ # @param [Hash] params ({})
432
+ def batch_create_custom_vocabulary_item(params = {}, options = {})
433
+ req = build_request(:batch_create_custom_vocabulary_item, params)
434
+ req.send_request(options)
435
+ end
436
+
437
+ # Batch delete custom vocabulary item for the specified locale in the
438
+ # specified bot.
439
+ #
440
+ # @option params [required, String] :bot_id
441
+ # The unique identifier of the bot to batch delete request for the
442
+ # custom vocabulary item.
443
+ #
444
+ # @option params [required, String] :bot_version
445
+ # The version of the bot to batch delete request for the custom
446
+ # vocabulary item.
447
+ #
448
+ # @option params [required, String] :locale_id
449
+ # The locale identifier of the bot to batch delete request for the
450
+ # custom vocabulary item.
451
+ #
452
+ # @option params [required, Array<Types::CustomVocabularyEntryId>] :custom_vocabulary_item_list
453
+ # The custom vocabulary list to batch delete request for the custom
454
+ # vocabulary item.
455
+ #
456
+ # @return [Types::BatchDeleteCustomVocabularyItemResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
457
+ #
458
+ # * {Types::BatchDeleteCustomVocabularyItemResponse#bot_id #bot_id} => String
459
+ # * {Types::BatchDeleteCustomVocabularyItemResponse#bot_version #bot_version} => String
460
+ # * {Types::BatchDeleteCustomVocabularyItemResponse#locale_id #locale_id} => String
461
+ # * {Types::BatchDeleteCustomVocabularyItemResponse#errors #errors} => Array&lt;Types::FailedCustomVocabularyItem&gt;
462
+ # * {Types::BatchDeleteCustomVocabularyItemResponse#resources #resources} => Array&lt;Types::CustomVocabularyItem&gt;
463
+ #
464
+ # @example Request syntax with placeholder values
465
+ #
466
+ # resp = client.batch_delete_custom_vocabulary_item({
467
+ # bot_id: "Id", # required
468
+ # bot_version: "BotVersion", # required
469
+ # locale_id: "LocaleId", # required
470
+ # custom_vocabulary_item_list: [ # required
471
+ # {
472
+ # item_id: "ItemId", # required
473
+ # },
474
+ # ],
475
+ # })
476
+ #
477
+ # @example Response structure
478
+ #
479
+ # resp.bot_id #=> String
480
+ # resp.bot_version #=> String
481
+ # resp.locale_id #=> String
482
+ # resp.errors #=> Array
483
+ # resp.errors[0].item_id #=> String
484
+ # resp.errors[0].error_message #=> String
485
+ # resp.errors[0].error_code #=> String, one of "DUPLICATE_INPUT", "RESOURCE_DOES_NOT_EXIST", "RESOURCE_ALREADY_EXISTS", "INTERNAL_SERVER_FAILURE"
486
+ # resp.resources #=> Array
487
+ # resp.resources[0].item_id #=> String
488
+ # resp.resources[0].phrase #=> String
489
+ # resp.resources[0].weight #=> Integer
490
+ # resp.resources[0].display_as #=> String
491
+ #
492
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchDeleteCustomVocabularyItem AWS API Documentation
493
+ #
494
+ # @overload batch_delete_custom_vocabulary_item(params = {})
495
+ # @param [Hash] params ({})
496
+ def batch_delete_custom_vocabulary_item(params = {}, options = {})
497
+ req = build_request(:batch_delete_custom_vocabulary_item, params)
498
+ req.send_request(options)
499
+ end
500
+
501
+ # Batch update custom vocabulary item for the specified locale in the
502
+ # specified bot.
503
+ #
504
+ # @option params [required, String] :bot_id
505
+ # The unique identifier of the bot to the batch update request for the
506
+ # custom vocabulary item.
507
+ #
508
+ # @option params [required, String] :bot_version
509
+ # The bot version of the bot to the batch update request for the custom
510
+ # vocabulary item.
511
+ #
512
+ # @option params [required, String] :locale_id
513
+ # The locale identifier of the bot to the batch update request for the
514
+ # custom vocabulary item.
515
+ #
516
+ # @option params [required, Array<Types::CustomVocabularyItem>] :custom_vocabulary_item_list
517
+ # The custom vocabulary item list of the bot to the batch update request
518
+ # for the custom vocabulary item.
519
+ #
520
+ # @return [Types::BatchUpdateCustomVocabularyItemResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
521
+ #
522
+ # * {Types::BatchUpdateCustomVocabularyItemResponse#bot_id #bot_id} => String
523
+ # * {Types::BatchUpdateCustomVocabularyItemResponse#bot_version #bot_version} => String
524
+ # * {Types::BatchUpdateCustomVocabularyItemResponse#locale_id #locale_id} => String
525
+ # * {Types::BatchUpdateCustomVocabularyItemResponse#errors #errors} => Array&lt;Types::FailedCustomVocabularyItem&gt;
526
+ # * {Types::BatchUpdateCustomVocabularyItemResponse#resources #resources} => Array&lt;Types::CustomVocabularyItem&gt;
527
+ #
528
+ # @example Request syntax with placeholder values
529
+ #
530
+ # resp = client.batch_update_custom_vocabulary_item({
531
+ # bot_id: "Id", # required
532
+ # bot_version: "BotVersion", # required
533
+ # locale_id: "LocaleId", # required
534
+ # custom_vocabulary_item_list: [ # required
535
+ # {
536
+ # item_id: "ItemId", # required
537
+ # phrase: "Phrase", # required
538
+ # weight: 1,
539
+ # display_as: "Phrase",
540
+ # },
541
+ # ],
542
+ # })
543
+ #
544
+ # @example Response structure
545
+ #
546
+ # resp.bot_id #=> String
547
+ # resp.bot_version #=> String
548
+ # resp.locale_id #=> String
549
+ # resp.errors #=> Array
550
+ # resp.errors[0].item_id #=> String
551
+ # resp.errors[0].error_message #=> String
552
+ # resp.errors[0].error_code #=> String, one of "DUPLICATE_INPUT", "RESOURCE_DOES_NOT_EXIST", "RESOURCE_ALREADY_EXISTS", "INTERNAL_SERVER_FAILURE"
553
+ # resp.resources #=> Array
554
+ # resp.resources[0].item_id #=> String
555
+ # resp.resources[0].phrase #=> String
556
+ # resp.resources[0].weight #=> Integer
557
+ # resp.resources[0].display_as #=> String
558
+ #
559
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchUpdateCustomVocabularyItem AWS API Documentation
560
+ #
561
+ # @overload batch_update_custom_vocabulary_item(params = {})
562
+ # @param [Hash] params ({})
563
+ def batch_update_custom_vocabulary_item(params = {}, options = {})
564
+ req = build_request(:batch_update_custom_vocabulary_item, params)
565
+ req.send_request(options)
566
+ end
567
+
354
568
  # Builds a bot, its intents, and its slot types into a specific locale.
355
569
  # A bot can be built into multiple locales. At runtime the locale is
356
570
  # used to choose a specific build of the bot.
@@ -13482,6 +13696,67 @@ module Aws::LexModelsV2
13482
13696
  req.send_request(options)
13483
13697
  end
13484
13698
 
13699
+ # List custom vocabulary items for the specified locale in the specified
13700
+ # bot.
13701
+ #
13702
+ # @option params [required, String] :bot_id
13703
+ # The unique identifier of the bot to the list custom vocabulary
13704
+ # request.
13705
+ #
13706
+ # @option params [required, String] :bot_version
13707
+ # The bot version of the bot to the list custom vocabulary request.
13708
+ #
13709
+ # @option params [required, String] :locale_id
13710
+ # The locale identifier of the bot to the list custom vocabulary
13711
+ # request.
13712
+ #
13713
+ # @option params [Integer] :max_results
13714
+ # The maximum results to the list custom vocabulary request.
13715
+ #
13716
+ # @option params [String] :next_token
13717
+ # The nextToken identifier to the list custom vocabulary request.
13718
+ #
13719
+ # @return [Types::ListCustomVocabularyItemsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
13720
+ #
13721
+ # * {Types::ListCustomVocabularyItemsResponse#bot_id #bot_id} => String
13722
+ # * {Types::ListCustomVocabularyItemsResponse#bot_version #bot_version} => String
13723
+ # * {Types::ListCustomVocabularyItemsResponse#locale_id #locale_id} => String
13724
+ # * {Types::ListCustomVocabularyItemsResponse#custom_vocabulary_items #custom_vocabulary_items} => Array&lt;Types::CustomVocabularyItem&gt;
13725
+ # * {Types::ListCustomVocabularyItemsResponse#next_token #next_token} => String
13726
+ #
13727
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
13728
+ #
13729
+ # @example Request syntax with placeholder values
13730
+ #
13731
+ # resp = client.list_custom_vocabulary_items({
13732
+ # bot_id: "Id", # required
13733
+ # bot_version: "BotVersion", # required
13734
+ # locale_id: "LocaleId", # required
13735
+ # max_results: 1,
13736
+ # next_token: "NextToken",
13737
+ # })
13738
+ #
13739
+ # @example Response structure
13740
+ #
13741
+ # resp.bot_id #=> String
13742
+ # resp.bot_version #=> String
13743
+ # resp.locale_id #=> String
13744
+ # resp.custom_vocabulary_items #=> Array
13745
+ # resp.custom_vocabulary_items[0].item_id #=> String
13746
+ # resp.custom_vocabulary_items[0].phrase #=> String
13747
+ # resp.custom_vocabulary_items[0].weight #=> Integer
13748
+ # resp.custom_vocabulary_items[0].display_as #=> String
13749
+ # resp.next_token #=> String
13750
+ #
13751
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListCustomVocabularyItems AWS API Documentation
13752
+ #
13753
+ # @overload list_custom_vocabulary_items(params = {})
13754
+ # @param [Hash] params ({})
13755
+ def list_custom_vocabulary_items(params = {}, options = {})
13756
+ req = build_request(:list_custom_vocabulary_items, params)
13757
+ req.send_request(options)
13758
+ end
13759
+
13485
13760
  # Lists the exports for a bot, bot locale, or custom vocabulary. Exports
13486
13761
  # are kept in the list for 7 days.
13487
13762
  #
@@ -13779,7 +14054,8 @@ module Aws::LexModelsV2
13779
14054
  end
13780
14055
 
13781
14056
  # Gets a list of recommended intents provided by the bot recommendation
13782
- # that you can use in your bot.
14057
+ # that you can use in your bot. Intents in the response are ordered by
14058
+ # relevance.
13783
14059
  #
13784
14060
  # @option params [required, String] :bot_id
13785
14061
  # The unique identifier of the bot associated with the recommended
@@ -23161,7 +23437,7 @@ module Aws::LexModelsV2
23161
23437
  params: params,
23162
23438
  config: config)
23163
23439
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
23164
- context[:gem_version] = '1.28.0'
23440
+ context[:gem_version] = '1.30.0'
23165
23441
  Seahorse::Client::Request.new(handlers, context)
23166
23442
  end
23167
23443