aws-sdk-lexmodelsv2 1.19.0 → 1.20.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: 2395496229844274a2b53d65ba5e44a64e0c315d847373686d0298735ae7b419
4
- data.tar.gz: 2097ff287cfd621b1f09a37c18d52c19ec453daba9f113d4490785a7d264806c
3
+ metadata.gz: e97e105a6e7b74afa548af3ce88f8bdb44750784ffe212f4e25a40b7ff6cfb81
4
+ data.tar.gz: 4816a42e255ce710fce0e121985ebcb5a152213813a6a63035b0517f6cf8bc27
5
5
  SHA512:
6
- metadata.gz: 5cc58e4a98dc8614fbe75996b815cb705569ae272bf301df0012d1f3e36a55fc73e1d8c0d0beb8bb111300b2a3eeaa4cdf49bda731186b2dfbc342956a2665ff
7
- data.tar.gz: c3158df96f1b4ffa0607a29d31c5de0e2903ec7d90a277cb287be4040c10478f19cf460b7bf98fe9d79337c71d5ea4db39cae43e2495d85d7929c1c7052cdf13
6
+ metadata.gz: e7415add11c544ade59e0e0ec91263aab7c0749f59501ddea29c0bf451d11025fcb8eccf6b39561e8f98dbc90f42744a0a5a561f4b9383805e1f49b2bdbf140b
7
+ data.tar.gz: d618ed4646b8656e7e7cf1704435f51b87b87f924c67dc1952d0e0e9c30b1a1133e00c8e05704eea8205cc46278fd29920d4f17f723b5c5244d9591b766fd671
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.20.0 (2022-01-12)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for Custom vocabulary in Amazon Lex V2 APIs for model building. Customers can give Amazon Lex V2 more information about how to process audio conversations with a bot by creating a custom vocabulary in a specific language.
8
+
4
9
  1.19.0 (2021-12-21)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.19.0
1
+ 1.20.0
@@ -855,8 +855,13 @@ module Aws::LexModelsV2
855
855
  # bot_version: "BotVersion", # required
856
856
  # locale_id: "LocaleId", # required
857
857
  # },
858
+ # custom_vocabulary_export_specification: {
859
+ # bot_id: "Id", # required
860
+ # bot_version: "BotVersion", # required
861
+ # locale_id: "LocaleId", # required
862
+ # },
858
863
  # },
859
- # file_format: "LexJson", # required, accepts LexJson
864
+ # file_format: "LexJson", # required, accepts LexJson, TSV
860
865
  # file_password: "ImportExportFilePassword",
861
866
  # })
862
867
  #
@@ -868,7 +873,10 @@ module Aws::LexModelsV2
868
873
  # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
869
874
  # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
870
875
  # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
871
- # resp.file_format #=> String, one of "LexJson"
876
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_id #=> String
877
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_version #=> String
878
+ # resp.resource_specification.custom_vocabulary_export_specification.locale_id #=> String
879
+ # resp.file_format #=> String, one of "LexJson", "TSV"
872
880
  # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
873
881
  # resp.creation_date_time #=> Time
874
882
  #
@@ -2404,6 +2412,9 @@ module Aws::LexModelsV2
2404
2412
  # regex_filter: {
2405
2413
  # pattern: "RegexPattern", # required
2406
2414
  # },
2415
+ # advanced_recognition_setting: {
2416
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
2417
+ # },
2407
2418
  # },
2408
2419
  # parent_slot_type_signature: "SlotTypeSignature",
2409
2420
  # bot_id: "Id", # required
@@ -2431,6 +2442,7 @@ module Aws::LexModelsV2
2431
2442
  # resp.slot_type_values[0].synonyms[0].value #=> String
2432
2443
  # resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
2433
2444
  # resp.value_selection_setting.regex_filter.pattern #=> String
2445
+ # resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
2434
2446
  # resp.parent_slot_type_signature #=> String
2435
2447
  # resp.bot_id #=> String
2436
2448
  # resp.bot_version #=> String
@@ -2656,6 +2668,50 @@ module Aws::LexModelsV2
2656
2668
  req.send_request(options)
2657
2669
  end
2658
2670
 
2671
+ # Removes a custom vocabulary from the specified locale in the specified
2672
+ # bot.
2673
+ #
2674
+ # @option params [required, String] :bot_id
2675
+ # The unique identifier of the bot to remove the custom vocabulary from.
2676
+ #
2677
+ # @option params [required, String] :bot_version
2678
+ # The version of the bot to remove the custom vocabulary from.
2679
+ #
2680
+ # @option params [required, String] :locale_id
2681
+ # The locale identifier for the locale that contains the custom
2682
+ # vocabulary to remove.
2683
+ #
2684
+ # @return [Types::DeleteCustomVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2685
+ #
2686
+ # * {Types::DeleteCustomVocabularyResponse#bot_id #bot_id} => String
2687
+ # * {Types::DeleteCustomVocabularyResponse#bot_version #bot_version} => String
2688
+ # * {Types::DeleteCustomVocabularyResponse#locale_id #locale_id} => String
2689
+ # * {Types::DeleteCustomVocabularyResponse#custom_vocabulary_status #custom_vocabulary_status} => String
2690
+ #
2691
+ # @example Request syntax with placeholder values
2692
+ #
2693
+ # resp = client.delete_custom_vocabulary({
2694
+ # bot_id: "Id", # required
2695
+ # bot_version: "DraftBotVersion", # required
2696
+ # locale_id: "LocaleId", # required
2697
+ # })
2698
+ #
2699
+ # @example Response structure
2700
+ #
2701
+ # resp.bot_id #=> String
2702
+ # resp.bot_version #=> String
2703
+ # resp.locale_id #=> String
2704
+ # resp.custom_vocabulary_status #=> String, one of "Ready", "Deleting", "Exporting", "Importing", "Creating"
2705
+ #
2706
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteCustomVocabulary AWS API Documentation
2707
+ #
2708
+ # @overload delete_custom_vocabulary(params = {})
2709
+ # @param [Hash] params ({})
2710
+ def delete_custom_vocabulary(params = {}, options = {})
2711
+ req = build_request(:delete_custom_vocabulary, params)
2712
+ req.send_request(options)
2713
+ end
2714
+
2659
2715
  # Removes a previous export and the associated files stored in an S3
2660
2716
  # bucket.
2661
2717
  #
@@ -3348,6 +3404,53 @@ module Aws::LexModelsV2
3348
3404
  req.send_request(options)
3349
3405
  end
3350
3406
 
3407
+ # Provides metadata information about a custom vocabulary.
3408
+ #
3409
+ # @option params [required, String] :bot_id
3410
+ # The unique identifier of the bot that contains the custom vocabulary.
3411
+ #
3412
+ # @option params [required, String] :bot_version
3413
+ # The bot version of the bot to return metadata for.
3414
+ #
3415
+ # @option params [required, String] :locale_id
3416
+ # The locale to return the custom vocabulary information for. The locale
3417
+ # must be `en_GB`.
3418
+ #
3419
+ # @return [Types::DescribeCustomVocabularyMetadataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3420
+ #
3421
+ # * {Types::DescribeCustomVocabularyMetadataResponse#bot_id #bot_id} => String
3422
+ # * {Types::DescribeCustomVocabularyMetadataResponse#bot_version #bot_version} => String
3423
+ # * {Types::DescribeCustomVocabularyMetadataResponse#locale_id #locale_id} => String
3424
+ # * {Types::DescribeCustomVocabularyMetadataResponse#custom_vocabulary_status #custom_vocabulary_status} => String
3425
+ # * {Types::DescribeCustomVocabularyMetadataResponse#creation_date_time #creation_date_time} => Time
3426
+ # * {Types::DescribeCustomVocabularyMetadataResponse#last_updated_date_time #last_updated_date_time} => Time
3427
+ #
3428
+ # @example Request syntax with placeholder values
3429
+ #
3430
+ # resp = client.describe_custom_vocabulary_metadata({
3431
+ # bot_id: "Id", # required
3432
+ # bot_version: "BotVersion", # required
3433
+ # locale_id: "LocaleId", # required
3434
+ # })
3435
+ #
3436
+ # @example Response structure
3437
+ #
3438
+ # resp.bot_id #=> String
3439
+ # resp.bot_version #=> String
3440
+ # resp.locale_id #=> String
3441
+ # resp.custom_vocabulary_status #=> String, one of "Ready", "Deleting", "Exporting", "Importing", "Creating"
3442
+ # resp.creation_date_time #=> Time
3443
+ # resp.last_updated_date_time #=> Time
3444
+ #
3445
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeCustomVocabularyMetadata AWS API Documentation
3446
+ #
3447
+ # @overload describe_custom_vocabulary_metadata(params = {})
3448
+ # @param [Hash] params ({})
3449
+ def describe_custom_vocabulary_metadata(params = {}, options = {})
3450
+ req = build_request(:describe_custom_vocabulary_metadata, params)
3451
+ req.send_request(options)
3452
+ end
3453
+
3351
3454
  # Gets information about a specific export.
3352
3455
  #
3353
3456
  # @option params [required, String] :export_id
@@ -3378,7 +3481,10 @@ module Aws::LexModelsV2
3378
3481
  # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
3379
3482
  # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
3380
3483
  # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
3381
- # resp.file_format #=> String, one of "LexJson"
3484
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_id #=> String
3485
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_version #=> String
3486
+ # resp.resource_specification.custom_vocabulary_export_specification.locale_id #=> String
3487
+ # resp.file_format #=> String, one of "LexJson", "TSV"
3382
3488
  # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3383
3489
  # resp.failure_reasons #=> Array
3384
3490
  # resp.failure_reasons[0] #=> String
@@ -3440,6 +3546,9 @@ module Aws::LexModelsV2
3440
3546
  # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
3441
3547
  # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
3442
3548
  # resp.resource_specification.bot_locale_import_specification.voice_settings.engine #=> String, one of "standard", "neural"
3549
+ # resp.resource_specification.custom_vocabulary_import_specification.bot_id #=> String
3550
+ # resp.resource_specification.custom_vocabulary_import_specification.bot_version #=> String
3551
+ # resp.resource_specification.custom_vocabulary_import_specification.locale_id #=> String
3443
3552
  # resp.imported_resource_id #=> String
3444
3553
  # resp.imported_resource_name #=> String
3445
3554
  # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
@@ -3979,6 +4088,7 @@ module Aws::LexModelsV2
3979
4088
  # resp.slot_type_values[0].synonyms[0].value #=> String
3980
4089
  # resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
3981
4090
  # resp.value_selection_setting.regex_filter.pattern #=> String
4091
+ # resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
3982
4092
  # resp.parent_slot_type_signature #=> String
3983
4093
  # resp.bot_id #=> String
3984
4094
  # resp.bot_version #=> String
@@ -4424,8 +4534,12 @@ module Aws::LexModelsV2
4424
4534
  # @option params [String] :next_token
4425
4535
  # If the response from the `ListBots` operation contains more results
4426
4536
  # than specified in the `maxResults` parameter, a token is returned in
4427
- # the response. Use that token in the `nextToken` parameter to return
4428
- # the next page of results.
4537
+ # the response.
4538
+ #
4539
+ # Use the returned token in the `nextToken` parameter of a `ListBots`
4540
+ # request to return the next page of results. For a complete set of
4541
+ # results, call the `ListBots` operation until the `nextToken` returned
4542
+ # in the response is null.
4429
4543
  #
4430
4544
  # @return [Types::ListBotsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4431
4545
  #
@@ -4610,8 +4724,8 @@ module Aws::LexModelsV2
4610
4724
  req.send_request(options)
4611
4725
  end
4612
4726
 
4613
- # Lists the exports for a bot or bot locale. Exports are kept in the
4614
- # list for 7 days.
4727
+ # Lists the exports for a bot, bot locale, or custom vocabulary. Exports
4728
+ # are kept in the list for 7 days.
4615
4729
  #
4616
4730
  # @option params [String] :bot_id
4617
4731
  # The unique identifier that Amazon Lex assigned to the bot.
@@ -4637,8 +4751,17 @@ module Aws::LexModelsV2
4637
4751
  # @option params [String] :next_token
4638
4752
  # If the response from the `ListExports` operation contains more results
4639
4753
  # that specified in the `maxResults` parameter, a token is returned in
4640
- # the response. Use that token in the `nextToken` parameter to return
4641
- # the next page of results.
4754
+ # the response.
4755
+ #
4756
+ # Use the returned token in the `nextToken` parameter of a `ListExports`
4757
+ # request to return the next page of results. For a complete set of
4758
+ # results, call the `ListExports` operation until the `nextToken`
4759
+ # returned in the response is null.
4760
+ #
4761
+ # @option params [String] :locale_id
4762
+ # Specifies the resources that should be exported. If you don't specify
4763
+ # a resource type in the `filters` parameter, both bot locales and
4764
+ # custom vocabularies are exported.
4642
4765
  #
4643
4766
  # @return [Types::ListExportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4644
4767
  #
@@ -4646,6 +4769,7 @@ module Aws::LexModelsV2
4646
4769
  # * {Types::ListExportsResponse#bot_version #bot_version} => String
4647
4770
  # * {Types::ListExportsResponse#export_summaries #export_summaries} => Array<Types::ExportSummary>
4648
4771
  # * {Types::ListExportsResponse#next_token #next_token} => String
4772
+ # * {Types::ListExportsResponse#locale_id #locale_id} => String
4649
4773
  #
4650
4774
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4651
4775
  #
@@ -4667,6 +4791,7 @@ module Aws::LexModelsV2
4667
4791
  # ],
4668
4792
  # max_results: 1,
4669
4793
  # next_token: "NextToken",
4794
+ # locale_id: "LocaleId",
4670
4795
  # })
4671
4796
  #
4672
4797
  # @example Response structure
@@ -4680,11 +4805,15 @@ module Aws::LexModelsV2
4680
4805
  # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_id #=> String
4681
4806
  # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_version #=> String
4682
4807
  # resp.export_summaries[0].resource_specification.bot_locale_export_specification.locale_id #=> String
4683
- # resp.export_summaries[0].file_format #=> String, one of "LexJson"
4808
+ # resp.export_summaries[0].resource_specification.custom_vocabulary_export_specification.bot_id #=> String
4809
+ # resp.export_summaries[0].resource_specification.custom_vocabulary_export_specification.bot_version #=> String
4810
+ # resp.export_summaries[0].resource_specification.custom_vocabulary_export_specification.locale_id #=> String
4811
+ # resp.export_summaries[0].file_format #=> String, one of "LexJson", "TSV"
4684
4812
  # resp.export_summaries[0].export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4685
4813
  # resp.export_summaries[0].creation_date_time #=> Time
4686
4814
  # resp.export_summaries[0].last_updated_date_time #=> Time
4687
4815
  # resp.next_token #=> String
4816
+ # resp.locale_id #=> String
4688
4817
  #
4689
4818
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports AWS API Documentation
4690
4819
  #
@@ -4695,8 +4824,8 @@ module Aws::LexModelsV2
4695
4824
  req.send_request(options)
4696
4825
  end
4697
4826
 
4698
- # Lists the imports for a bot or bot locale. Imports are kept in the
4699
- # list for 7 days.
4827
+ # Lists the imports for a bot, bot locale, or custom vocabulary. Imports
4828
+ # are kept in the list for 7 days.
4700
4829
  #
4701
4830
  # @option params [String] :bot_id
4702
4831
  # The unique identifier that Amazon Lex assigned to the bot.
@@ -4722,8 +4851,17 @@ module Aws::LexModelsV2
4722
4851
  # @option params [String] :next_token
4723
4852
  # If the response from the `ListImports` operation contains more results
4724
4853
  # than specified in the `maxResults` parameter, a token is returned in
4725
- # the response. Use that token in the `nextToken` parameter to return
4726
- # the next page of results.
4854
+ # the response.
4855
+ #
4856
+ # Use the returned token in the `nextToken` parameter of a `ListImports`
4857
+ # request to return the next page of results. For a complete set of
4858
+ # results, call the `ListImports` operation until the `nextToken`
4859
+ # returned in the response is null.
4860
+ #
4861
+ # @option params [String] :locale_id
4862
+ # Specifies the locale that should be present in the list. If you don't
4863
+ # specify a resource type in the `filters` parameter, the list contains
4864
+ # both bot locales and custom vocabularies.
4727
4865
  #
4728
4866
  # @return [Types::ListImportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4729
4867
  #
@@ -4731,6 +4869,7 @@ module Aws::LexModelsV2
4731
4869
  # * {Types::ListImportsResponse#bot_version #bot_version} => String
4732
4870
  # * {Types::ListImportsResponse#import_summaries #import_summaries} => Array<Types::ImportSummary>
4733
4871
  # * {Types::ListImportsResponse#next_token #next_token} => String
4872
+ # * {Types::ListImportsResponse#locale_id #locale_id} => String
4734
4873
  #
4735
4874
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4736
4875
  #
@@ -4752,6 +4891,7 @@ module Aws::LexModelsV2
4752
4891
  # ],
4753
4892
  # max_results: 1,
4754
4893
  # next_token: "NextToken",
4894
+ # locale_id: "LocaleId",
4755
4895
  # })
4756
4896
  #
4757
4897
  # @example Response structure
@@ -4766,7 +4906,9 @@ module Aws::LexModelsV2
4766
4906
  # resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
4767
4907
  # resp.import_summaries[0].creation_date_time #=> Time
4768
4908
  # resp.import_summaries[0].last_updated_date_time #=> Time
4909
+ # resp.import_summaries[0].imported_resource_type #=> String, one of "Bot", "BotLocale", "CustomVocabulary"
4769
4910
  # resp.next_token #=> String
4911
+ # resp.locale_id #=> String
4770
4912
  #
4771
4913
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports AWS API Documentation
4772
4914
  #
@@ -4812,8 +4954,12 @@ module Aws::LexModelsV2
4812
4954
  # @option params [String] :next_token
4813
4955
  # If the response from the `ListIntents` operation contains more results
4814
4956
  # than specified in the `maxResults` parameter, a token is returned in
4815
- # the response. Use that token in the `nextToken` parameter to return
4816
- # the next page of results.
4957
+ # the response.
4958
+ #
4959
+ # Use the returned token in the `nextToken` parameter of a `ListIntents`
4960
+ # request to return the next page of results. For a complete set of
4961
+ # results, call the `ListIntents` operation until the `nextToken`
4962
+ # returned in the response is null.
4817
4963
  #
4818
4964
  # @return [Types::ListIntentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4819
4965
  #
@@ -5374,8 +5520,8 @@ module Aws::LexModelsV2
5374
5520
  req.send_request(options)
5375
5521
  end
5376
5522
 
5377
- # Starts importing a bot or bot locale from a zip archive that you
5378
- # uploaded to an S3 bucket.
5523
+ # Starts importing a bot, bot locale, or custom vocabulary from a zip
5524
+ # archive that you uploaded to an S3 bucket.
5379
5525
  #
5380
5526
  # @option params [required, String] :import_id
5381
5527
  # The unique identifier for the import. It is included in the response
@@ -5386,7 +5532,7 @@ module Aws::LexModelsV2
5386
5532
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/API_CreateUploadUrl.html
5387
5533
  #
5388
5534
  # @option params [required, Types::ImportResourceSpecification] :resource_specification
5389
- # Parameters for creating the bot or bot locale.
5535
+ # Parameters for creating the bot, bot locale or custom vocabulary.
5390
5536
  #
5391
5537
  # @option params [required, String] :merge_strategy
5392
5538
  # The strategy to use when there is a name conflict between the imported
@@ -5395,8 +5541,8 @@ module Aws::LexModelsV2
5395
5541
  # fails.
5396
5542
  #
5397
5543
  # @option params [String] :file_password
5398
- # The password used to encrypt the zip archive that contains the bot or
5399
- # bot locale definition. You should always encrypt the zip archive to
5544
+ # The password used to encrypt the zip archive that contains the
5545
+ # resource definition. You should always encrypt the zip archive to
5400
5546
  # protect it during transit between your site and Amazon Lex.
5401
5547
  #
5402
5548
  # @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -5436,6 +5582,11 @@ module Aws::LexModelsV2
5436
5582
  # engine: "standard", # accepts standard, neural
5437
5583
  # },
5438
5584
  # },
5585
+ # custom_vocabulary_import_specification: {
5586
+ # bot_id: "Id", # required
5587
+ # bot_version: "DraftBotVersion", # required
5588
+ # locale_id: "LocaleId", # required
5589
+ # },
5439
5590
  # },
5440
5591
  # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict, Append
5441
5592
  # file_password: "ImportExportFilePassword",
@@ -5458,6 +5609,9 @@ module Aws::LexModelsV2
5458
5609
  # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
5459
5610
  # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
5460
5611
  # resp.resource_specification.bot_locale_import_specification.voice_settings.engine #=> String, one of "standard", "neural"
5612
+ # resp.resource_specification.custom_vocabulary_import_specification.bot_id #=> String
5613
+ # resp.resource_specification.custom_vocabulary_import_specification.bot_version #=> String
5614
+ # resp.resource_specification.custom_vocabulary_import_specification.locale_id #=> String
5461
5615
  # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
5462
5616
  # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
5463
5617
  # resp.creation_date_time #=> Time
@@ -5945,7 +6099,10 @@ module Aws::LexModelsV2
5945
6099
  # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
5946
6100
  # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
5947
6101
  # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
5948
- # resp.file_format #=> String, one of "LexJson"
6102
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_id #=> String
6103
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_version #=> String
6104
+ # resp.resource_specification.custom_vocabulary_export_specification.locale_id #=> String
6105
+ # resp.file_format #=> String, one of "LexJson", "TSV"
5949
6106
  # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
5950
6107
  # resp.creation_date_time #=> Time
5951
6108
  # resp.last_updated_date_time #=> Time
@@ -7312,6 +7469,9 @@ module Aws::LexModelsV2
7312
7469
  # regex_filter: {
7313
7470
  # pattern: "RegexPattern", # required
7314
7471
  # },
7472
+ # advanced_recognition_setting: {
7473
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
7474
+ # },
7315
7475
  # },
7316
7476
  # parent_slot_type_signature: "SlotTypeSignature",
7317
7477
  # bot_id: "Id", # required
@@ -7339,6 +7499,7 @@ module Aws::LexModelsV2
7339
7499
  # resp.slot_type_values[0].synonyms[0].value #=> String
7340
7500
  # resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
7341
7501
  # resp.value_selection_setting.regex_filter.pattern #=> String
7502
+ # resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
7342
7503
  # resp.parent_slot_type_signature #=> String
7343
7504
  # resp.bot_id #=> String
7344
7505
  # resp.bot_version #=> String
@@ -7371,7 +7532,7 @@ module Aws::LexModelsV2
7371
7532
  params: params,
7372
7533
  config: config)
7373
7534
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
7374
- context[:gem_version] = '1.19.0'
7535
+ context[:gem_version] = '1.20.0'
7375
7536
  Seahorse::Client::Request.new(handlers, context)
7376
7537
  end
7377
7538
 
@@ -13,6 +13,7 @@ module Aws::LexModelsV2
13
13
 
14
14
  include Seahorse::Model
15
15
 
16
+ AdvancedRecognitionSetting = Shapes::StructureShape.new(name: 'AdvancedRecognitionSetting')
16
17
  AggregatedUtterancesFilter = Shapes::StructureShape.new(name: 'AggregatedUtterancesFilter')
17
18
  AggregatedUtterancesFilterName = Shapes::StringShape.new(name: 'AggregatedUtterancesFilterName')
18
19
  AggregatedUtterancesFilterOperator = Shapes::StringShape.new(name: 'AggregatedUtterancesFilterOperator')
@@ -32,6 +33,7 @@ module Aws::LexModelsV2
32
33
  AudioLogDestination = Shapes::StructureShape.new(name: 'AudioLogDestination')
33
34
  AudioLogSetting = Shapes::StructureShape.new(name: 'AudioLogSetting')
34
35
  AudioLogSettingsList = Shapes::ListShape.new(name: 'AudioLogSettingsList')
36
+ AudioRecognitionStrategy = Shapes::StringShape.new(name: 'AudioRecognitionStrategy')
35
37
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
36
38
  BotAliasHistoryEvent = Shapes::StructureShape.new(name: 'BotAliasHistoryEvent')
37
39
  BotAliasHistoryEventsList = Shapes::ListShape.new(name: 'BotAliasHistoryEventsList')
@@ -135,6 +137,9 @@ module Aws::LexModelsV2
135
137
  CreateUploadUrlResponse = Shapes::StructureShape.new(name: 'CreateUploadUrlResponse')
136
138
  CustomPayload = Shapes::StructureShape.new(name: 'CustomPayload')
137
139
  CustomPayloadValue = Shapes::StringShape.new(name: 'CustomPayloadValue')
140
+ CustomVocabularyExportSpecification = Shapes::StructureShape.new(name: 'CustomVocabularyExportSpecification')
141
+ CustomVocabularyImportSpecification = Shapes::StructureShape.new(name: 'CustomVocabularyImportSpecification')
142
+ CustomVocabularyStatus = Shapes::StringShape.new(name: 'CustomVocabularyStatus')
138
143
  DataPrivacy = Shapes::StructureShape.new(name: 'DataPrivacy')
139
144
  DateRangeFilter = Shapes::StructureShape.new(name: 'DateRangeFilter')
140
145
  DeleteBotAliasRequest = Shapes::StructureShape.new(name: 'DeleteBotAliasRequest')
@@ -145,6 +150,8 @@ module Aws::LexModelsV2
145
150
  DeleteBotResponse = Shapes::StructureShape.new(name: 'DeleteBotResponse')
146
151
  DeleteBotVersionRequest = Shapes::StructureShape.new(name: 'DeleteBotVersionRequest')
147
152
  DeleteBotVersionResponse = Shapes::StructureShape.new(name: 'DeleteBotVersionResponse')
153
+ DeleteCustomVocabularyRequest = Shapes::StructureShape.new(name: 'DeleteCustomVocabularyRequest')
154
+ DeleteCustomVocabularyResponse = Shapes::StructureShape.new(name: 'DeleteCustomVocabularyResponse')
148
155
  DeleteExportRequest = Shapes::StructureShape.new(name: 'DeleteExportRequest')
149
156
  DeleteExportResponse = Shapes::StructureShape.new(name: 'DeleteExportResponse')
150
157
  DeleteImportRequest = Shapes::StructureShape.new(name: 'DeleteImportRequest')
@@ -168,6 +175,8 @@ module Aws::LexModelsV2
168
175
  DescribeBotResponse = Shapes::StructureShape.new(name: 'DescribeBotResponse')
169
176
  DescribeBotVersionRequest = Shapes::StructureShape.new(name: 'DescribeBotVersionRequest')
170
177
  DescribeBotVersionResponse = Shapes::StructureShape.new(name: 'DescribeBotVersionResponse')
178
+ DescribeCustomVocabularyMetadataRequest = Shapes::StructureShape.new(name: 'DescribeCustomVocabularyMetadataRequest')
179
+ DescribeCustomVocabularyMetadataResponse = Shapes::StructureShape.new(name: 'DescribeCustomVocabularyMetadataResponse')
171
180
  DescribeExportRequest = Shapes::StructureShape.new(name: 'DescribeExportRequest')
172
181
  DescribeExportResponse = Shapes::StructureShape.new(name: 'DescribeExportResponse')
173
182
  DescribeImportRequest = Shapes::StructureShape.new(name: 'DescribeImportRequest')
@@ -221,6 +230,7 @@ module Aws::LexModelsV2
221
230
  ImportFilterOperator = Shapes::StringShape.new(name: 'ImportFilterOperator')
222
231
  ImportFilters = Shapes::ListShape.new(name: 'ImportFilters')
223
232
  ImportResourceSpecification = Shapes::StructureShape.new(name: 'ImportResourceSpecification')
233
+ ImportResourceType = Shapes::StringShape.new(name: 'ImportResourceType')
224
234
  ImportSortAttribute = Shapes::StringShape.new(name: 'ImportSortAttribute')
225
235
  ImportSortBy = Shapes::StructureShape.new(name: 'ImportSortBy')
226
236
  ImportStatus = Shapes::StringShape.new(name: 'ImportStatus')
@@ -434,6 +444,9 @@ module Aws::LexModelsV2
434
444
  VoiceSettings = Shapes::StructureShape.new(name: 'VoiceSettings')
435
445
  WaitAndContinueSpecification = Shapes::StructureShape.new(name: 'WaitAndContinueSpecification')
436
446
 
447
+ AdvancedRecognitionSetting.add_member(:audio_recognition_strategy, Shapes::ShapeRef.new(shape: AudioRecognitionStrategy, location_name: "audioRecognitionStrategy"))
448
+ AdvancedRecognitionSetting.struct_class = Types::AdvancedRecognitionSetting
449
+
437
450
  AggregatedUtterancesFilter.add_member(:name, Shapes::ShapeRef.new(shape: AggregatedUtterancesFilterName, required: true, location_name: "name"))
438
451
  AggregatedUtterancesFilter.add_member(:values, Shapes::ShapeRef.new(shape: FilterValues, required: true, location_name: "values"))
439
452
  AggregatedUtterancesFilter.add_member(:operator, Shapes::ShapeRef.new(shape: AggregatedUtterancesFilterOperator, required: true, location_name: "operator"))
@@ -868,6 +881,16 @@ module Aws::LexModelsV2
868
881
  CustomPayload.add_member(:value, Shapes::ShapeRef.new(shape: CustomPayloadValue, required: true, location_name: "value"))
869
882
  CustomPayload.struct_class = Types::CustomPayload
870
883
 
884
+ CustomVocabularyExportSpecification.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "botId"))
885
+ CustomVocabularyExportSpecification.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, required: true, location_name: "botVersion"))
886
+ CustomVocabularyExportSpecification.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location_name: "localeId"))
887
+ CustomVocabularyExportSpecification.struct_class = Types::CustomVocabularyExportSpecification
888
+
889
+ CustomVocabularyImportSpecification.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "botId"))
890
+ CustomVocabularyImportSpecification.add_member(:bot_version, Shapes::ShapeRef.new(shape: DraftBotVersion, required: true, location_name: "botVersion"))
891
+ CustomVocabularyImportSpecification.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location_name: "localeId"))
892
+ CustomVocabularyImportSpecification.struct_class = Types::CustomVocabularyImportSpecification
893
+
871
894
  DataPrivacy.add_member(:child_directed, Shapes::ShapeRef.new(shape: ChildDirected, required: true, location_name: "childDirected"))
872
895
  DataPrivacy.struct_class = Types::DataPrivacy
873
896
 
@@ -914,6 +937,17 @@ module Aws::LexModelsV2
914
937
  DeleteBotVersionResponse.add_member(:bot_status, Shapes::ShapeRef.new(shape: BotStatus, location_name: "botStatus"))
915
938
  DeleteBotVersionResponse.struct_class = Types::DeleteBotVersionResponse
916
939
 
940
+ DeleteCustomVocabularyRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "botId"))
941
+ DeleteCustomVocabularyRequest.add_member(:bot_version, Shapes::ShapeRef.new(shape: DraftBotVersion, required: true, location: "uri", location_name: "botVersion"))
942
+ DeleteCustomVocabularyRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
943
+ DeleteCustomVocabularyRequest.struct_class = Types::DeleteCustomVocabularyRequest
944
+
945
+ DeleteCustomVocabularyResponse.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, location_name: "botId"))
946
+ DeleteCustomVocabularyResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: DraftBotVersion, location_name: "botVersion"))
947
+ DeleteCustomVocabularyResponse.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, location_name: "localeId"))
948
+ DeleteCustomVocabularyResponse.add_member(:custom_vocabulary_status, Shapes::ShapeRef.new(shape: CustomVocabularyStatus, location_name: "customVocabularyStatus"))
949
+ DeleteCustomVocabularyResponse.struct_class = Types::DeleteCustomVocabularyResponse
950
+
917
951
  DeleteExportRequest.add_member(:export_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "exportId"))
918
952
  DeleteExportRequest.struct_class = Types::DeleteExportRequest
919
953
 
@@ -1062,6 +1096,19 @@ module Aws::LexModelsV2
1062
1096
  DescribeBotVersionResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationDateTime"))
1063
1097
  DescribeBotVersionResponse.struct_class = Types::DescribeBotVersionResponse
1064
1098
 
1099
+ DescribeCustomVocabularyMetadataRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "botId"))
1100
+ DescribeCustomVocabularyMetadataRequest.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, required: true, location: "uri", location_name: "botVersion"))
1101
+ DescribeCustomVocabularyMetadataRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
1102
+ DescribeCustomVocabularyMetadataRequest.struct_class = Types::DescribeCustomVocabularyMetadataRequest
1103
+
1104
+ DescribeCustomVocabularyMetadataResponse.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, location_name: "botId"))
1105
+ DescribeCustomVocabularyMetadataResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location_name: "botVersion"))
1106
+ DescribeCustomVocabularyMetadataResponse.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, location_name: "localeId"))
1107
+ DescribeCustomVocabularyMetadataResponse.add_member(:custom_vocabulary_status, Shapes::ShapeRef.new(shape: CustomVocabularyStatus, location_name: "customVocabularyStatus"))
1108
+ DescribeCustomVocabularyMetadataResponse.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationDateTime"))
1109
+ DescribeCustomVocabularyMetadataResponse.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedDateTime"))
1110
+ DescribeCustomVocabularyMetadataResponse.struct_class = Types::DescribeCustomVocabularyMetadataResponse
1111
+
1065
1112
  DescribeExportRequest.add_member(:export_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "exportId"))
1066
1113
  DescribeExportRequest.struct_class = Types::DescribeExportRequest
1067
1114
 
@@ -1182,6 +1229,7 @@ module Aws::LexModelsV2
1182
1229
 
1183
1230
  ExportResourceSpecification.add_member(:bot_export_specification, Shapes::ShapeRef.new(shape: BotExportSpecification, location_name: "botExportSpecification"))
1184
1231
  ExportResourceSpecification.add_member(:bot_locale_export_specification, Shapes::ShapeRef.new(shape: BotLocaleExportSpecification, location_name: "botLocaleExportSpecification"))
1232
+ ExportResourceSpecification.add_member(:custom_vocabulary_export_specification, Shapes::ShapeRef.new(shape: CustomVocabularyExportSpecification, location_name: "customVocabularyExportSpecification"))
1185
1233
  ExportResourceSpecification.struct_class = Types::ExportResourceSpecification
1186
1234
 
1187
1235
  ExportSortBy.add_member(:attribute, Shapes::ShapeRef.new(shape: ExportSortAttribute, required: true, location_name: "attribute"))
@@ -1249,6 +1297,7 @@ module Aws::LexModelsV2
1249
1297
 
1250
1298
  ImportResourceSpecification.add_member(:bot_import_specification, Shapes::ShapeRef.new(shape: BotImportSpecification, location_name: "botImportSpecification"))
1251
1299
  ImportResourceSpecification.add_member(:bot_locale_import_specification, Shapes::ShapeRef.new(shape: BotLocaleImportSpecification, location_name: "botLocaleImportSpecification"))
1300
+ ImportResourceSpecification.add_member(:custom_vocabulary_import_specification, Shapes::ShapeRef.new(shape: CustomVocabularyImportSpecification, location_name: "customVocabularyImportSpecification"))
1252
1301
  ImportResourceSpecification.struct_class = Types::ImportResourceSpecification
1253
1302
 
1254
1303
  ImportSortBy.add_member(:attribute, Shapes::ShapeRef.new(shape: ImportSortAttribute, required: true, location_name: "attribute"))
@@ -1262,6 +1311,7 @@ module Aws::LexModelsV2
1262
1311
  ImportSummary.add_member(:merge_strategy, Shapes::ShapeRef.new(shape: MergeStrategy, location_name: "mergeStrategy"))
1263
1312
  ImportSummary.add_member(:creation_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "creationDateTime"))
1264
1313
  ImportSummary.add_member(:last_updated_date_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastUpdatedDateTime"))
1314
+ ImportSummary.add_member(:imported_resource_type, Shapes::ShapeRef.new(shape: ImportResourceType, location_name: "importedResourceType"))
1265
1315
  ImportSummary.struct_class = Types::ImportSummary
1266
1316
 
1267
1317
  ImportSummaryList.member = Shapes::ShapeRef.new(shape: ImportSummary)
@@ -1430,12 +1480,14 @@ module Aws::LexModelsV2
1430
1480
  ListExportsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: ExportFilters, location_name: "filters"))
1431
1481
  ListExportsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
1432
1482
  ListExportsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1483
+ ListExportsRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, location_name: "localeId"))
1433
1484
  ListExportsRequest.struct_class = Types::ListExportsRequest
1434
1485
 
1435
1486
  ListExportsResponse.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, location_name: "botId"))
1436
1487
  ListExportsResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location_name: "botVersion"))
1437
1488
  ListExportsResponse.add_member(:export_summaries, Shapes::ShapeRef.new(shape: ExportSummaryList, location_name: "exportSummaries"))
1438
1489
  ListExportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1490
+ ListExportsResponse.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, location_name: "localeId"))
1439
1491
  ListExportsResponse.struct_class = Types::ListExportsResponse
1440
1492
 
1441
1493
  ListImportsRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, location_name: "botId"))
@@ -1444,12 +1496,14 @@ module Aws::LexModelsV2
1444
1496
  ListImportsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: ImportFilters, location_name: "filters"))
1445
1497
  ListImportsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "maxResults"))
1446
1498
  ListImportsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1499
+ ListImportsRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, location_name: "localeId"))
1447
1500
  ListImportsRequest.struct_class = Types::ListImportsRequest
1448
1501
 
1449
1502
  ListImportsResponse.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, location_name: "botId"))
1450
1503
  ListImportsResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: DraftBotVersion, location_name: "botVersion"))
1451
1504
  ListImportsResponse.add_member(:import_summaries, Shapes::ShapeRef.new(shape: ImportSummaryList, location_name: "importSummaries"))
1452
1505
  ListImportsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1506
+ ListImportsResponse.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, location_name: "localeId"))
1453
1507
  ListImportsResponse.struct_class = Types::ListImportsResponse
1454
1508
 
1455
1509
  ListIntentsRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "botId"))
@@ -1726,6 +1780,7 @@ module Aws::LexModelsV2
1726
1780
 
1727
1781
  SlotValueSelectionSetting.add_member(:resolution_strategy, Shapes::ShapeRef.new(shape: SlotValueResolutionStrategy, required: true, location_name: "resolutionStrategy"))
1728
1782
  SlotValueSelectionSetting.add_member(:regex_filter, Shapes::ShapeRef.new(shape: SlotValueRegexFilter, location_name: "regexFilter"))
1783
+ SlotValueSelectionSetting.add_member(:advanced_recognition_setting, Shapes::ShapeRef.new(shape: AdvancedRecognitionSetting, location_name: "advancedRecognitionSetting"))
1729
1784
  SlotValueSelectionSetting.struct_class = Types::SlotValueSelectionSetting
1730
1785
 
1731
1786
  StartBotRecommendationRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "botId"))
@@ -2256,6 +2311,20 @@ module Aws::LexModelsV2
2256
2311
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2257
2312
  end)
2258
2313
 
2314
+ api.add_operation(:delete_custom_vocabulary, Seahorse::Model::Operation.new.tap do |o|
2315
+ o.name = "DeleteCustomVocabulary"
2316
+ o.http_method = "DELETE"
2317
+ o.http_request_uri = "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary"
2318
+ o.input = Shapes::ShapeRef.new(shape: DeleteCustomVocabularyRequest)
2319
+ o.output = Shapes::ShapeRef.new(shape: DeleteCustomVocabularyResponse)
2320
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2321
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2322
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2323
+ o.errors << Shapes::ShapeRef.new(shape: PreconditionFailedException)
2324
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
2325
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2326
+ end)
2327
+
2259
2328
  api.add_operation(:delete_export, Seahorse::Model::Operation.new.tap do |o|
2260
2329
  o.name = "DeleteExport"
2261
2330
  o.http_method = "DELETE"
@@ -2423,6 +2492,19 @@ module Aws::LexModelsV2
2423
2492
  o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2424
2493
  end)
2425
2494
 
2495
+ api.add_operation(:describe_custom_vocabulary_metadata, Seahorse::Model::Operation.new.tap do |o|
2496
+ o.name = "DescribeCustomVocabularyMetadata"
2497
+ o.http_method = "GET"
2498
+ o.http_request_uri = "/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/customvocabulary/DEFAULT/metadata"
2499
+ o.input = Shapes::ShapeRef.new(shape: DescribeCustomVocabularyMetadataRequest)
2500
+ o.output = Shapes::ShapeRef.new(shape: DescribeCustomVocabularyMetadataResponse)
2501
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2502
+ o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
2503
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
2504
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2505
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
2506
+ end)
2507
+
2426
2508
  api.add_operation(:describe_export, Seahorse::Model::Operation.new.tap do |o|
2427
2509
  o.name = "DescribeExport"
2428
2510
  o.http_method = "GET"
@@ -10,6 +10,29 @@
10
10
  module Aws::LexModelsV2
11
11
  module Types
12
12
 
13
+ # Provides settings that enable advanced recognition settings for slot
14
+ # values.
15
+ #
16
+ # @note When making an API call, you may pass AdvancedRecognitionSetting
17
+ # data as a hash:
18
+ #
19
+ # {
20
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
21
+ # }
22
+ #
23
+ # @!attribute [rw] audio_recognition_strategy
24
+ # Enables using the slot values as a custom vocabulary for recognizing
25
+ # user utterances.
26
+ # @return [String]
27
+ #
28
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/AdvancedRecognitionSetting AWS API Documentation
29
+ #
30
+ class AdvancedRecognitionSetting < Struct.new(
31
+ :audio_recognition_strategy)
32
+ SENSITIVE = []
33
+ include Aws::Structure
34
+ end
35
+
13
36
  # Filters responses returned by the `ListAggregatedUtterances`
14
37
  # operation.
15
38
  #
@@ -1884,8 +1907,13 @@ module Aws::LexModelsV2
1884
1907
  # bot_version: "BotVersion", # required
1885
1908
  # locale_id: "LocaleId", # required
1886
1909
  # },
1910
+ # custom_vocabulary_export_specification: {
1911
+ # bot_id: "Id", # required
1912
+ # bot_version: "BotVersion", # required
1913
+ # locale_id: "LocaleId", # required
1914
+ # },
1887
1915
  # },
1888
- # file_format: "LexJson", # required, accepts LexJson
1916
+ # file_format: "LexJson", # required, accepts LexJson, TSV
1889
1917
  # file_password: "ImportExportFilePassword",
1890
1918
  # }
1891
1919
  #
@@ -3265,6 +3293,9 @@ module Aws::LexModelsV2
3265
3293
  # regex_filter: {
3266
3294
  # pattern: "RegexPattern", # required
3267
3295
  # },
3296
+ # advanced_recognition_setting: {
3297
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
3298
+ # },
3268
3299
  # },
3269
3300
  # parent_slot_type_signature: "SlotTypeSignature",
3270
3301
  # bot_id: "Id", # required
@@ -3477,6 +3508,75 @@ module Aws::LexModelsV2
3477
3508
  include Aws::Structure
3478
3509
  end
3479
3510
 
3511
+ # Provides the parameters required for exporting a custom vocabulary.
3512
+ #
3513
+ # @note When making an API call, you may pass CustomVocabularyExportSpecification
3514
+ # data as a hash:
3515
+ #
3516
+ # {
3517
+ # bot_id: "Id", # required
3518
+ # bot_version: "BotVersion", # required
3519
+ # locale_id: "LocaleId", # required
3520
+ # }
3521
+ #
3522
+ # @!attribute [rw] bot_id
3523
+ # The identifier of the bot that contains the custom vocabulary to
3524
+ # export.
3525
+ # @return [String]
3526
+ #
3527
+ # @!attribute [rw] bot_version
3528
+ # The version of the bot that contains the custom vocabulary to
3529
+ # export.
3530
+ # @return [String]
3531
+ #
3532
+ # @!attribute [rw] locale_id
3533
+ # The locale of the bot that contains the custom vocabulary to export.
3534
+ # @return [String]
3535
+ #
3536
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CustomVocabularyExportSpecification AWS API Documentation
3537
+ #
3538
+ class CustomVocabularyExportSpecification < Struct.new(
3539
+ :bot_id,
3540
+ :bot_version,
3541
+ :locale_id)
3542
+ SENSITIVE = []
3543
+ include Aws::Structure
3544
+ end
3545
+
3546
+ # Provides the parameters required for importing a custom vocabulary.
3547
+ #
3548
+ # @note When making an API call, you may pass CustomVocabularyImportSpecification
3549
+ # data as a hash:
3550
+ #
3551
+ # {
3552
+ # bot_id: "Id", # required
3553
+ # bot_version: "DraftBotVersion", # required
3554
+ # locale_id: "LocaleId", # required
3555
+ # }
3556
+ #
3557
+ # @!attribute [rw] bot_id
3558
+ # The identifier of the bot to import the custom vocabulary to.
3559
+ # @return [String]
3560
+ #
3561
+ # @!attribute [rw] bot_version
3562
+ # The version of the bot to import the custom vocabulary to.
3563
+ # @return [String]
3564
+ #
3565
+ # @!attribute [rw] locale_id
3566
+ # The identifier of the local to import the custom vocabulary to. The
3567
+ # value must be `en_GB`.
3568
+ # @return [String]
3569
+ #
3570
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CustomVocabularyImportSpecification AWS API Documentation
3571
+ #
3572
+ class CustomVocabularyImportSpecification < Struct.new(
3573
+ :bot_id,
3574
+ :bot_version,
3575
+ :locale_id)
3576
+ SENSITIVE = []
3577
+ include Aws::Structure
3578
+ end
3579
+
3480
3580
  # By default, data stored by Amazon Lex is encrypted. The `DataPrivacy`
3481
3581
  # structure provides settings that determine how Amazon Lex handles
3482
3582
  # special cases of securing the data for your bot.
@@ -3781,6 +3881,68 @@ module Aws::LexModelsV2
3781
3881
  include Aws::Structure
3782
3882
  end
3783
3883
 
3884
+ # @note When making an API call, you may pass DeleteCustomVocabularyRequest
3885
+ # data as a hash:
3886
+ #
3887
+ # {
3888
+ # bot_id: "Id", # required
3889
+ # bot_version: "DraftBotVersion", # required
3890
+ # locale_id: "LocaleId", # required
3891
+ # }
3892
+ #
3893
+ # @!attribute [rw] bot_id
3894
+ # The unique identifier of the bot to remove the custom vocabulary
3895
+ # from.
3896
+ # @return [String]
3897
+ #
3898
+ # @!attribute [rw] bot_version
3899
+ # The version of the bot to remove the custom vocabulary from.
3900
+ # @return [String]
3901
+ #
3902
+ # @!attribute [rw] locale_id
3903
+ # The locale identifier for the locale that contains the custom
3904
+ # vocabulary to remove.
3905
+ # @return [String]
3906
+ #
3907
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteCustomVocabularyRequest AWS API Documentation
3908
+ #
3909
+ class DeleteCustomVocabularyRequest < Struct.new(
3910
+ :bot_id,
3911
+ :bot_version,
3912
+ :locale_id)
3913
+ SENSITIVE = []
3914
+ include Aws::Structure
3915
+ end
3916
+
3917
+ # @!attribute [rw] bot_id
3918
+ # The identifier of the bot that the custom vocabulary was removed
3919
+ # from.
3920
+ # @return [String]
3921
+ #
3922
+ # @!attribute [rw] bot_version
3923
+ # The version of the bot that the custom vocabulary was removed from.
3924
+ # @return [String]
3925
+ #
3926
+ # @!attribute [rw] locale_id
3927
+ # The locale identifier for the locale that the custom vocabulary was
3928
+ # removed from.
3929
+ # @return [String]
3930
+ #
3931
+ # @!attribute [rw] custom_vocabulary_status
3932
+ # The status of removing the custom vocabulary.
3933
+ # @return [String]
3934
+ #
3935
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteCustomVocabularyResponse AWS API Documentation
3936
+ #
3937
+ class DeleteCustomVocabularyResponse < Struct.new(
3938
+ :bot_id,
3939
+ :bot_version,
3940
+ :locale_id,
3941
+ :custom_vocabulary_status)
3942
+ SENSITIVE = []
3943
+ include Aws::Structure
3944
+ end
3945
+
3784
3946
  # @note When making an API call, you may pass DeleteExportRequest
3785
3947
  # data as a hash:
3786
3948
  #
@@ -4672,6 +4834,78 @@ module Aws::LexModelsV2
4672
4834
  include Aws::Structure
4673
4835
  end
4674
4836
 
4837
+ # @note When making an API call, you may pass DescribeCustomVocabularyMetadataRequest
4838
+ # data as a hash:
4839
+ #
4840
+ # {
4841
+ # bot_id: "Id", # required
4842
+ # bot_version: "BotVersion", # required
4843
+ # locale_id: "LocaleId", # required
4844
+ # }
4845
+ #
4846
+ # @!attribute [rw] bot_id
4847
+ # The unique identifier of the bot that contains the custom
4848
+ # vocabulary.
4849
+ # @return [String]
4850
+ #
4851
+ # @!attribute [rw] bot_version
4852
+ # The bot version of the bot to return metadata for.
4853
+ # @return [String]
4854
+ #
4855
+ # @!attribute [rw] locale_id
4856
+ # The locale to return the custom vocabulary information for. The
4857
+ # locale must be `en_GB`.
4858
+ # @return [String]
4859
+ #
4860
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeCustomVocabularyMetadataRequest AWS API Documentation
4861
+ #
4862
+ class DescribeCustomVocabularyMetadataRequest < Struct.new(
4863
+ :bot_id,
4864
+ :bot_version,
4865
+ :locale_id)
4866
+ SENSITIVE = []
4867
+ include Aws::Structure
4868
+ end
4869
+
4870
+ # @!attribute [rw] bot_id
4871
+ # The identifier of the bot that contains the custom vocabulary.
4872
+ # @return [String]
4873
+ #
4874
+ # @!attribute [rw] bot_version
4875
+ # The version of the bot that contains the custom vocabulary to
4876
+ # describe.
4877
+ # @return [String]
4878
+ #
4879
+ # @!attribute [rw] locale_id
4880
+ # The locale that contains the custom vocabulary to describe.
4881
+ # @return [String]
4882
+ #
4883
+ # @!attribute [rw] custom_vocabulary_status
4884
+ # The status of the custom vocabulary. If the status is `Ready` the
4885
+ # custom vocabulary is ready to use.
4886
+ # @return [String]
4887
+ #
4888
+ # @!attribute [rw] creation_date_time
4889
+ # The date and time that the custom vocabulary was created.
4890
+ # @return [Time]
4891
+ #
4892
+ # @!attribute [rw] last_updated_date_time
4893
+ # The date and time that the custom vocabulary was last updated.
4894
+ # @return [Time]
4895
+ #
4896
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeCustomVocabularyMetadataResponse AWS API Documentation
4897
+ #
4898
+ class DescribeCustomVocabularyMetadataResponse < Struct.new(
4899
+ :bot_id,
4900
+ :bot_version,
4901
+ :locale_id,
4902
+ :custom_vocabulary_status,
4903
+ :creation_date_time,
4904
+ :last_updated_date_time)
4905
+ SENSITIVE = []
4906
+ include Aws::Structure
4907
+ end
4908
+
4675
4909
  # @note When making an API call, you may pass DescribeExportRequest
4676
4910
  # data as a hash:
4677
4911
  #
@@ -4701,8 +4935,7 @@ module Aws::LexModelsV2
4701
4935
  # @return [Types::ExportResourceSpecification]
4702
4936
  #
4703
4937
  # @!attribute [rw] file_format
4704
- # The file format used in the files that describe the bot or bot
4705
- # locale.
4938
+ # The file format used in the files that describe the resource.
4706
4939
  # @return [String]
4707
4940
  #
4708
4941
  # @!attribute [rw] export_status
@@ -4768,7 +5001,8 @@ module Aws::LexModelsV2
4768
5001
  # @return [String]
4769
5002
  #
4770
5003
  # @!attribute [rw] resource_specification
4771
- # The specifications of the imported bot or bot locale.
5004
+ # The specifications of the imported bot, bot locale, or custom
5005
+ # vocabulary.
4772
5006
  # @return [Types::ImportResourceSpecification]
4773
5007
  #
4774
5008
  # @!attribute [rw] imported_resource_id
@@ -5340,7 +5574,8 @@ module Aws::LexModelsV2
5340
5574
  # @return [String]
5341
5575
  #
5342
5576
  # @!attribute [rw] values
5343
- # The values to use to filter the response.
5577
+ # The values to use to filter the response. The values must be `Bot`,
5578
+ # `BotLocale`, or `CustomVocabulary`.
5344
5579
  # @return [Array<String>]
5345
5580
  #
5346
5581
  # @!attribute [rw] operator
@@ -5377,6 +5612,11 @@ module Aws::LexModelsV2
5377
5612
  # bot_version: "BotVersion", # required
5378
5613
  # locale_id: "LocaleId", # required
5379
5614
  # },
5615
+ # custom_vocabulary_export_specification: {
5616
+ # bot_id: "Id", # required
5617
+ # bot_version: "BotVersion", # required
5618
+ # locale_id: "LocaleId", # required
5619
+ # },
5380
5620
  # }
5381
5621
  #
5382
5622
  # @!attribute [rw] bot_export_specification
@@ -5387,11 +5627,16 @@ module Aws::LexModelsV2
5387
5627
  # Parameters for exporting a bot locale.
5388
5628
  # @return [Types::BotLocaleExportSpecification]
5389
5629
  #
5630
+ # @!attribute [rw] custom_vocabulary_export_specification
5631
+ # The parameters required to export a custom vocabulary.
5632
+ # @return [Types::CustomVocabularyExportSpecification]
5633
+ #
5390
5634
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ExportResourceSpecification AWS API Documentation
5391
5635
  #
5392
5636
  class ExportResourceSpecification < Struct.new(
5393
5637
  :bot_export_specification,
5394
- :bot_locale_export_specification)
5638
+ :bot_locale_export_specification,
5639
+ :custom_vocabulary_export_specification)
5395
5640
  SENSITIVE = []
5396
5641
  include Aws::Structure
5397
5642
  end
@@ -6264,7 +6509,8 @@ module Aws::LexModelsV2
6264
6509
  # @return [String]
6265
6510
  #
6266
6511
  # @!attribute [rw] values
6267
- # The values to use to filter the response.
6512
+ # The values to use to filter the response. The values must be `Bot`,
6513
+ # `BotLocale`, or `CustomVocabulary`.
6268
6514
  # @return [Array<String>]
6269
6515
  #
6270
6516
  # @!attribute [rw] operator
@@ -6316,6 +6562,11 @@ module Aws::LexModelsV2
6316
6562
  # engine: "standard", # accepts standard, neural
6317
6563
  # },
6318
6564
  # },
6565
+ # custom_vocabulary_import_specification: {
6566
+ # bot_id: "Id", # required
6567
+ # bot_version: "DraftBotVersion", # required
6568
+ # locale_id: "LocaleId", # required
6569
+ # },
6319
6570
  # }
6320
6571
  #
6321
6572
  # @!attribute [rw] bot_import_specification
@@ -6326,11 +6577,16 @@ module Aws::LexModelsV2
6326
6577
  # Parameters for importing a bot locale.
6327
6578
  # @return [Types::BotLocaleImportSpecification]
6328
6579
  #
6580
+ # @!attribute [rw] custom_vocabulary_import_specification
6581
+ # Provides the parameters required for importing a custom vocabulary.
6582
+ # @return [Types::CustomVocabularyImportSpecification]
6583
+ #
6329
6584
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportResourceSpecification AWS API Documentation
6330
6585
  #
6331
6586
  class ImportResourceSpecification < Struct.new(
6332
6587
  :bot_import_specification,
6333
- :bot_locale_import_specification)
6588
+ :bot_locale_import_specification,
6589
+ :custom_vocabulary_import_specification)
6334
6590
  SENSITIVE = []
6335
6591
  include Aws::Structure
6336
6592
  end
@@ -6395,6 +6651,10 @@ module Aws::LexModelsV2
6395
6651
  # The date and time that the import was last updated.
6396
6652
  # @return [Time]
6397
6653
  #
6654
+ # @!attribute [rw] imported_resource_type
6655
+ # The type of resource that was imported.
6656
+ # @return [String]
6657
+ #
6398
6658
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ImportSummary AWS API Documentation
6399
6659
  #
6400
6660
  class ImportSummary < Struct.new(
@@ -6404,7 +6664,8 @@ module Aws::LexModelsV2
6404
6664
  :import_status,
6405
6665
  :merge_strategy,
6406
6666
  :creation_date_time,
6407
- :last_updated_date_time)
6667
+ :last_updated_date_time,
6668
+ :imported_resource_type)
6408
6669
  SENSITIVE = []
6409
6670
  include Aws::Structure
6410
6671
  end
@@ -7462,8 +7723,12 @@ module Aws::LexModelsV2
7462
7723
  # @!attribute [rw] next_token
7463
7724
  # If the response from the `ListBots` operation contains more results
7464
7725
  # than specified in the `maxResults` parameter, a token is returned in
7465
- # the response. Use that token in the `nextToken` parameter to return
7466
- # the next page of results.
7726
+ # the response.
7727
+ #
7728
+ # Use the returned token in the `nextToken` parameter of a `ListBots`
7729
+ # request to return the next page of results. For a complete set of
7730
+ # results, call the `ListBots` operation until the `nextToken`
7731
+ # returned in the response is null.
7467
7732
  # @return [String]
7468
7733
  #
7469
7734
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBotsRequest AWS API Documentation
@@ -7686,6 +7951,7 @@ module Aws::LexModelsV2
7686
7951
  # ],
7687
7952
  # max_results: 1,
7688
7953
  # next_token: "NextToken",
7954
+ # locale_id: "LocaleId",
7689
7955
  # }
7690
7956
  #
7691
7957
  # @!attribute [rw] bot_id
@@ -7717,8 +7983,18 @@ module Aws::LexModelsV2
7717
7983
  # @!attribute [rw] next_token
7718
7984
  # If the response from the `ListExports` operation contains more
7719
7985
  # results that specified in the `maxResults` parameter, a token is
7720
- # returned in the response. Use that token in the `nextToken`
7721
- # parameter to return the next page of results.
7986
+ # returned in the response.
7987
+ #
7988
+ # Use the returned token in the `nextToken` parameter of a
7989
+ # `ListExports` request to return the next page of results. For a
7990
+ # complete set of results, call the `ListExports` operation until the
7991
+ # `nextToken` returned in the response is null.
7992
+ # @return [String]
7993
+ #
7994
+ # @!attribute [rw] locale_id
7995
+ # Specifies the resources that should be exported. If you don't
7996
+ # specify a resource type in the `filters` parameter, both bot locales
7997
+ # and custom vocabularies are exported.
7722
7998
  # @return [String]
7723
7999
  #
7724
8000
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExportsRequest AWS API Documentation
@@ -7729,7 +8005,8 @@ module Aws::LexModelsV2
7729
8005
  :sort_by,
7730
8006
  :filters,
7731
8007
  :max_results,
7732
- :next_token)
8008
+ :next_token,
8009
+ :locale_id)
7733
8010
  SENSITIVE = []
7734
8011
  include Aws::Structure
7735
8012
  end
@@ -7756,13 +8033,18 @@ module Aws::LexModelsV2
7756
8033
  # `ListExports` operation request to get the next page of results.
7757
8034
  # @return [String]
7758
8035
  #
8036
+ # @!attribute [rw] locale_id
8037
+ # The locale specified in the request.
8038
+ # @return [String]
8039
+ #
7759
8040
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExportsResponse AWS API Documentation
7760
8041
  #
7761
8042
  class ListExportsResponse < Struct.new(
7762
8043
  :bot_id,
7763
8044
  :bot_version,
7764
8045
  :export_summaries,
7765
- :next_token)
8046
+ :next_token,
8047
+ :locale_id)
7766
8048
  SENSITIVE = []
7767
8049
  include Aws::Structure
7768
8050
  end
@@ -7786,6 +8068,7 @@ module Aws::LexModelsV2
7786
8068
  # ],
7787
8069
  # max_results: 1,
7788
8070
  # next_token: "NextToken",
8071
+ # locale_id: "LocaleId",
7789
8072
  # }
7790
8073
  #
7791
8074
  # @!attribute [rw] bot_id
@@ -7817,8 +8100,18 @@ module Aws::LexModelsV2
7817
8100
  # @!attribute [rw] next_token
7818
8101
  # If the response from the `ListImports` operation contains more
7819
8102
  # results than specified in the `maxResults` parameter, a token is
7820
- # returned in the response. Use that token in the `nextToken`
7821
- # parameter to return the next page of results.
8103
+ # returned in the response.
8104
+ #
8105
+ # Use the returned token in the `nextToken` parameter of a
8106
+ # `ListImports` request to return the next page of results. For a
8107
+ # complete set of results, call the `ListImports` operation until the
8108
+ # `nextToken` returned in the response is null.
8109
+ # @return [String]
8110
+ #
8111
+ # @!attribute [rw] locale_id
8112
+ # Specifies the locale that should be present in the list. If you
8113
+ # don't specify a resource type in the `filters` parameter, the list
8114
+ # contains both bot locales and custom vocabularies.
7822
8115
  # @return [String]
7823
8116
  #
7824
8117
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImportsRequest AWS API Documentation
@@ -7829,7 +8122,8 @@ module Aws::LexModelsV2
7829
8122
  :sort_by,
7830
8123
  :filters,
7831
8124
  :max_results,
7832
- :next_token)
8125
+ :next_token,
8126
+ :locale_id)
7833
8127
  SENSITIVE = []
7834
8128
  include Aws::Structure
7835
8129
  end
@@ -7856,13 +8150,18 @@ module Aws::LexModelsV2
7856
8150
  # `ListImports` operation request to get the next page of results.
7857
8151
  # @return [String]
7858
8152
  #
8153
+ # @!attribute [rw] locale_id
8154
+ # The locale specified in the request.
8155
+ # @return [String]
8156
+ #
7859
8157
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImportsResponse AWS API Documentation
7860
8158
  #
7861
8159
  class ListImportsResponse < Struct.new(
7862
8160
  :bot_id,
7863
8161
  :bot_version,
7864
8162
  :import_summaries,
7865
- :next_token)
8163
+ :next_token,
8164
+ :locale_id)
7866
8165
  SENSITIVE = []
7867
8166
  include Aws::Structure
7868
8167
  end
@@ -7928,8 +8227,12 @@ module Aws::LexModelsV2
7928
8227
  # @!attribute [rw] next_token
7929
8228
  # If the response from the `ListIntents` operation contains more
7930
8229
  # results than specified in the `maxResults` parameter, a token is
7931
- # returned in the response. Use that token in the `nextToken`
7932
- # parameter to return the next page of results.
8230
+ # returned in the response.
8231
+ #
8232
+ # Use the returned token in the `nextToken` parameter of a
8233
+ # `ListIntents` request to return the next page of results. For a
8234
+ # complete set of results, call the `ListIntents` operation until the
8235
+ # `nextToken` returned in the response is null.
7933
8236
  # @return [String]
7934
8237
  #
7935
8238
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListIntentsRequest AWS API Documentation
@@ -10171,6 +10474,9 @@ module Aws::LexModelsV2
10171
10474
  # regex_filter: {
10172
10475
  # pattern: "RegexPattern", # required
10173
10476
  # },
10477
+ # advanced_recognition_setting: {
10478
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
10479
+ # },
10174
10480
  # }
10175
10481
  #
10176
10482
  # @!attribute [rw] resolution_strategy
@@ -10193,11 +10499,17 @@ module Aws::LexModelsV2
10193
10499
  # A regular expression used to validate the value of a slot.
10194
10500
  # @return [Types::SlotValueRegexFilter]
10195
10501
  #
10502
+ # @!attribute [rw] advanced_recognition_setting
10503
+ # Provides settings that enable advanced recognition settings for slot
10504
+ # values.
10505
+ # @return [Types::AdvancedRecognitionSetting]
10506
+ #
10196
10507
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SlotValueSelectionSetting AWS API Documentation
10197
10508
  #
10198
10509
  class SlotValueSelectionSetting < Struct.new(
10199
10510
  :resolution_strategy,
10200
- :regex_filter)
10511
+ :regex_filter,
10512
+ :advanced_recognition_setting)
10201
10513
  SENSITIVE = []
10202
10514
  include Aws::Structure
10203
10515
  end
@@ -10365,6 +10677,11 @@ module Aws::LexModelsV2
10365
10677
  # engine: "standard", # accepts standard, neural
10366
10678
  # },
10367
10679
  # },
10680
+ # custom_vocabulary_import_specification: {
10681
+ # bot_id: "Id", # required
10682
+ # bot_version: "DraftBotVersion", # required
10683
+ # locale_id: "LocaleId", # required
10684
+ # },
10368
10685
  # },
10369
10686
  # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict, Append
10370
10687
  # file_password: "ImportExportFilePassword",
@@ -10380,7 +10697,7 @@ module Aws::LexModelsV2
10380
10697
  # @return [String]
10381
10698
  #
10382
10699
  # @!attribute [rw] resource_specification
10383
- # Parameters for creating the bot or bot locale.
10700
+ # Parameters for creating the bot, bot locale or custom vocabulary.
10384
10701
  # @return [Types::ImportResourceSpecification]
10385
10702
  #
10386
10703
  # @!attribute [rw] merge_strategy
@@ -10391,9 +10708,9 @@ module Aws::LexModelsV2
10391
10708
  # @return [String]
10392
10709
  #
10393
10710
  # @!attribute [rw] file_password
10394
- # The password used to encrypt the zip archive that contains the bot
10395
- # or bot locale definition. You should always encrypt the zip archive
10396
- # to protect it during transit between your site and Amazon Lex.
10711
+ # The password used to encrypt the zip archive that contains the
10712
+ # resource definition. You should always encrypt the zip archive to
10713
+ # protect it during transit between your site and Amazon Lex.
10397
10714
  # @return [String]
10398
10715
  #
10399
10716
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartImportRequest AWS API Documentation
@@ -10412,7 +10729,7 @@ module Aws::LexModelsV2
10412
10729
  # @return [String]
10413
10730
  #
10414
10731
  # @!attribute [rw] resource_specification
10415
- # The parameters used when importing the bot or bot locale.
10732
+ # The parameters used when importing the resource.
10416
10733
  # @return [Types::ImportResourceSpecification]
10417
10734
  #
10418
10735
  # @!attribute [rw] merge_strategy
@@ -10424,7 +10741,7 @@ module Aws::LexModelsV2
10424
10741
  #
10425
10742
  # @!attribute [rw] import_status
10426
10743
  # The current status of the import. When the status is `Complete` the
10427
- # bot or bot alias is ready to use.
10744
+ # bot, bot alias, or custom vocabulary is ready to use.
10428
10745
  # @return [String]
10429
10746
  #
10430
10747
  # @!attribute [rw] creation_date_time
@@ -11324,7 +11641,9 @@ module Aws::LexModelsV2
11324
11641
  # @return [Types::ExportResourceSpecification]
11325
11642
  #
11326
11643
  # @!attribute [rw] file_format
11327
- # The file format used for the files that define the resource.
11644
+ # The file format used for the files that define the resource. The
11645
+ # `TSV` format is required to export a custom vocabulary only;
11646
+ # otherwise use `LexJson` format.
11328
11647
  # @return [String]
11329
11648
  #
11330
11649
  # @!attribute [rw] export_status
@@ -12546,6 +12865,9 @@ module Aws::LexModelsV2
12546
12865
  # regex_filter: {
12547
12866
  # pattern: "RegexPattern", # required
12548
12867
  # },
12868
+ # advanced_recognition_setting: {
12869
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
12870
+ # },
12549
12871
  # },
12550
12872
  # parent_slot_type_signature: "SlotTypeSignature",
12551
12873
  # bot_id: "Id", # required
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-lexmodelsv2/customizations'
49
49
  # @!group service
50
50
  module Aws::LexModelsV2
51
51
 
52
- GEM_VERSION = '1.19.0'
52
+ GEM_VERSION = '1.20.0'
53
53
 
54
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lexmodelsv2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.20.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-12-21 00:00:00.000000000 Z
11
+ date: 2022-01-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core