aws-sdk-lexmodelsv2 1.17.0 → 1.21.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,6 +27,8 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
31
+ require 'aws-sdk-core/plugins/recursion_detection.rb'
30
32
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
33
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
34
 
@@ -73,6 +75,8 @@ module Aws::LexModelsV2
73
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
74
76
  add_plugin(Aws::Plugins::TransferEncoding)
75
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
79
+ add_plugin(Aws::Plugins::RecursionDetection)
76
80
  add_plugin(Aws::Plugins::SignatureV4)
77
81
  add_plugin(Aws::Plugins::Protocols::RestJson)
78
82
 
@@ -175,6 +179,10 @@ module Aws::LexModelsV2
175
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
176
180
  # a clock skew correction and retry requests with skewed client clocks.
177
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
178
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
179
187
  # Set to true to disable SDK automatically adding host prefix
180
188
  # to default service endpoint when available.
@@ -297,7 +305,7 @@ module Aws::LexModelsV2
297
305
  # seconds to wait when opening a HTTP session before raising a
298
306
  # `Timeout::Error`.
299
307
  #
300
- # @option options [Integer] :http_read_timeout (60) The default
308
+ # @option options [Float] :http_read_timeout (60) The default
301
309
  # number of seconds to wait for response data. This value can
302
310
  # safely be set per-request on the session.
303
311
  #
@@ -313,6 +321,9 @@ module Aws::LexModelsV2
313
321
  # disables this behaviour. This value can safely be set per
314
322
  # request on the session.
315
323
  #
324
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
325
+ # in seconds.
326
+ #
316
327
  # @option options [Boolean] :http_wire_trace (false) When `true`,
317
328
  # HTTP debug output will be sent to the `:logger`.
318
329
  #
@@ -846,8 +857,13 @@ module Aws::LexModelsV2
846
857
  # bot_version: "BotVersion", # required
847
858
  # locale_id: "LocaleId", # required
848
859
  # },
860
+ # custom_vocabulary_export_specification: {
861
+ # bot_id: "Id", # required
862
+ # bot_version: "BotVersion", # required
863
+ # locale_id: "LocaleId", # required
864
+ # },
849
865
  # },
850
- # file_format: "LexJson", # required, accepts LexJson
866
+ # file_format: "LexJson", # required, accepts LexJson, TSV
851
867
  # file_password: "ImportExportFilePassword",
852
868
  # })
853
869
  #
@@ -859,7 +875,10 @@ module Aws::LexModelsV2
859
875
  # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
860
876
  # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
861
877
  # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
862
- # resp.file_format #=> String, one of "LexJson"
878
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_id #=> String
879
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_version #=> String
880
+ # resp.resource_specification.custom_vocabulary_export_specification.locale_id #=> String
881
+ # resp.file_format #=> String, one of "LexJson", "TSV"
863
882
  # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
864
883
  # resp.creation_date_time #=> Time
865
884
  #
@@ -2318,7 +2337,7 @@ module Aws::LexModelsV2
2318
2337
  # values that help train the machine learning model about the values
2319
2338
  # that it resolves for a slot.
2320
2339
  #
2321
- # @option params [required, Types::SlotValueSelectionSetting] :value_selection_setting
2340
+ # @option params [Types::SlotValueSelectionSetting] :value_selection_setting
2322
2341
  # Determines the strategy that Amazon Lex uses to select a value from
2323
2342
  # the list of possible values. The field can be set to one of the
2324
2343
  # following values:
@@ -2356,6 +2375,9 @@ module Aws::LexModelsV2
2356
2375
  #
2357
2376
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
2358
2377
  #
2378
+ # @option params [Types::ExternalSourceSetting] :external_source_setting
2379
+ # Sets the type of external information used to create the slot type.
2380
+ #
2359
2381
  # @return [Types::CreateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2360
2382
  #
2361
2383
  # * {Types::CreateSlotTypeResponse#slot_type_id #slot_type_id} => String
@@ -2368,6 +2390,7 @@ module Aws::LexModelsV2
2368
2390
  # * {Types::CreateSlotTypeResponse#bot_version #bot_version} => String
2369
2391
  # * {Types::CreateSlotTypeResponse#locale_id #locale_id} => String
2370
2392
  # * {Types::CreateSlotTypeResponse#creation_date_time #creation_date_time} => Time
2393
+ # * {Types::CreateSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
2371
2394
  #
2372
2395
  # @example Request syntax with placeholder values
2373
2396
  #
@@ -2386,16 +2409,28 @@ module Aws::LexModelsV2
2386
2409
  # ],
2387
2410
  # },
2388
2411
  # ],
2389
- # value_selection_setting: { # required
2412
+ # value_selection_setting: {
2390
2413
  # resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
2391
2414
  # regex_filter: {
2392
2415
  # pattern: "RegexPattern", # required
2393
2416
  # },
2417
+ # advanced_recognition_setting: {
2418
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
2419
+ # },
2394
2420
  # },
2395
2421
  # parent_slot_type_signature: "SlotTypeSignature",
2396
2422
  # bot_id: "Id", # required
2397
2423
  # bot_version: "DraftBotVersion", # required
2398
2424
  # locale_id: "LocaleId", # required
2425
+ # external_source_setting: {
2426
+ # grammar_slot_type_setting: {
2427
+ # source: {
2428
+ # s3_bucket_name: "S3BucketName", # required
2429
+ # s3_object_key: "S3ObjectPath", # required
2430
+ # kms_key_arn: "KmsKeyArn",
2431
+ # },
2432
+ # },
2433
+ # },
2399
2434
  # })
2400
2435
  #
2401
2436
  # @example Response structure
@@ -2409,11 +2444,15 @@ module Aws::LexModelsV2
2409
2444
  # resp.slot_type_values[0].synonyms[0].value #=> String
2410
2445
  # resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
2411
2446
  # resp.value_selection_setting.regex_filter.pattern #=> String
2447
+ # resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
2412
2448
  # resp.parent_slot_type_signature #=> String
2413
2449
  # resp.bot_id #=> String
2414
2450
  # resp.bot_version #=> String
2415
2451
  # resp.locale_id #=> String
2416
2452
  # resp.creation_date_time #=> Time
2453
+ # resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
2454
+ # resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
2455
+ # resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
2417
2456
  #
2418
2457
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotType AWS API Documentation
2419
2458
  #
@@ -2631,6 +2670,50 @@ module Aws::LexModelsV2
2631
2670
  req.send_request(options)
2632
2671
  end
2633
2672
 
2673
+ # Removes a custom vocabulary from the specified locale in the specified
2674
+ # bot.
2675
+ #
2676
+ # @option params [required, String] :bot_id
2677
+ # The unique identifier of the bot to remove the custom vocabulary from.
2678
+ #
2679
+ # @option params [required, String] :bot_version
2680
+ # The version of the bot to remove the custom vocabulary from.
2681
+ #
2682
+ # @option params [required, String] :locale_id
2683
+ # The locale identifier for the locale that contains the custom
2684
+ # vocabulary to remove.
2685
+ #
2686
+ # @return [Types::DeleteCustomVocabularyResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2687
+ #
2688
+ # * {Types::DeleteCustomVocabularyResponse#bot_id #bot_id} => String
2689
+ # * {Types::DeleteCustomVocabularyResponse#bot_version #bot_version} => String
2690
+ # * {Types::DeleteCustomVocabularyResponse#locale_id #locale_id} => String
2691
+ # * {Types::DeleteCustomVocabularyResponse#custom_vocabulary_status #custom_vocabulary_status} => String
2692
+ #
2693
+ # @example Request syntax with placeholder values
2694
+ #
2695
+ # resp = client.delete_custom_vocabulary({
2696
+ # bot_id: "Id", # required
2697
+ # bot_version: "DraftBotVersion", # required
2698
+ # locale_id: "LocaleId", # required
2699
+ # })
2700
+ #
2701
+ # @example Response structure
2702
+ #
2703
+ # resp.bot_id #=> String
2704
+ # resp.bot_version #=> String
2705
+ # resp.locale_id #=> String
2706
+ # resp.custom_vocabulary_status #=> String, one of "Ready", "Deleting", "Exporting", "Importing", "Creating"
2707
+ #
2708
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteCustomVocabulary AWS API Documentation
2709
+ #
2710
+ # @overload delete_custom_vocabulary(params = {})
2711
+ # @param [Hash] params ({})
2712
+ def delete_custom_vocabulary(params = {}, options = {})
2713
+ req = build_request(:delete_custom_vocabulary, params)
2714
+ req.send_request(options)
2715
+ end
2716
+
2634
2717
  # Removes a previous export and the associated files stored in an S3
2635
2718
  # bucket.
2636
2719
  #
@@ -3133,6 +3216,7 @@ module Aws::LexModelsV2
3133
3216
  # * {Types::DescribeBotLocaleResponse#last_updated_date_time #last_updated_date_time} => Time
3134
3217
  # * {Types::DescribeBotLocaleResponse#last_build_submitted_date_time #last_build_submitted_date_time} => Time
3135
3218
  # * {Types::DescribeBotLocaleResponse#bot_locale_history_events #bot_locale_history_events} => Array<Types::BotLocaleHistoryEvent>
3219
+ # * {Types::DescribeBotLocaleResponse#recommended_actions #recommended_actions} => Array<String>
3136
3220
  #
3137
3221
  # @example Request syntax with placeholder values
3138
3222
  #
@@ -3163,6 +3247,8 @@ module Aws::LexModelsV2
3163
3247
  # resp.bot_locale_history_events #=> Array
3164
3248
  # resp.bot_locale_history_events[0].event #=> String
3165
3249
  # resp.bot_locale_history_events[0].event_date #=> Time
3250
+ # resp.recommended_actions #=> Array
3251
+ # resp.recommended_actions[0] #=> String
3166
3252
  #
3167
3253
  #
3168
3254
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -3320,6 +3406,53 @@ module Aws::LexModelsV2
3320
3406
  req.send_request(options)
3321
3407
  end
3322
3408
 
3409
+ # Provides metadata information about a custom vocabulary.
3410
+ #
3411
+ # @option params [required, String] :bot_id
3412
+ # The unique identifier of the bot that contains the custom vocabulary.
3413
+ #
3414
+ # @option params [required, String] :bot_version
3415
+ # The bot version of the bot to return metadata for.
3416
+ #
3417
+ # @option params [required, String] :locale_id
3418
+ # The locale to return the custom vocabulary information for. The locale
3419
+ # must be `en_GB`.
3420
+ #
3421
+ # @return [Types::DescribeCustomVocabularyMetadataResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3422
+ #
3423
+ # * {Types::DescribeCustomVocabularyMetadataResponse#bot_id #bot_id} => String
3424
+ # * {Types::DescribeCustomVocabularyMetadataResponse#bot_version #bot_version} => String
3425
+ # * {Types::DescribeCustomVocabularyMetadataResponse#locale_id #locale_id} => String
3426
+ # * {Types::DescribeCustomVocabularyMetadataResponse#custom_vocabulary_status #custom_vocabulary_status} => String
3427
+ # * {Types::DescribeCustomVocabularyMetadataResponse#creation_date_time #creation_date_time} => Time
3428
+ # * {Types::DescribeCustomVocabularyMetadataResponse#last_updated_date_time #last_updated_date_time} => Time
3429
+ #
3430
+ # @example Request syntax with placeholder values
3431
+ #
3432
+ # resp = client.describe_custom_vocabulary_metadata({
3433
+ # bot_id: "Id", # required
3434
+ # bot_version: "BotVersion", # required
3435
+ # locale_id: "LocaleId", # required
3436
+ # })
3437
+ #
3438
+ # @example Response structure
3439
+ #
3440
+ # resp.bot_id #=> String
3441
+ # resp.bot_version #=> String
3442
+ # resp.locale_id #=> String
3443
+ # resp.custom_vocabulary_status #=> String, one of "Ready", "Deleting", "Exporting", "Importing", "Creating"
3444
+ # resp.creation_date_time #=> Time
3445
+ # resp.last_updated_date_time #=> Time
3446
+ #
3447
+ # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeCustomVocabularyMetadata AWS API Documentation
3448
+ #
3449
+ # @overload describe_custom_vocabulary_metadata(params = {})
3450
+ # @param [Hash] params ({})
3451
+ def describe_custom_vocabulary_metadata(params = {}, options = {})
3452
+ req = build_request(:describe_custom_vocabulary_metadata, params)
3453
+ req.send_request(options)
3454
+ end
3455
+
3323
3456
  # Gets information about a specific export.
3324
3457
  #
3325
3458
  # @option params [required, String] :export_id
@@ -3350,7 +3483,10 @@ module Aws::LexModelsV2
3350
3483
  # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
3351
3484
  # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
3352
3485
  # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
3353
- # resp.file_format #=> String, one of "LexJson"
3486
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_id #=> String
3487
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_version #=> String
3488
+ # resp.resource_specification.custom_vocabulary_export_specification.locale_id #=> String
3489
+ # resp.file_format #=> String, one of "LexJson", "TSV"
3354
3490
  # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
3355
3491
  # resp.failure_reasons #=> Array
3356
3492
  # resp.failure_reasons[0] #=> String
@@ -3412,6 +3548,9 @@ module Aws::LexModelsV2
3412
3548
  # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
3413
3549
  # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
3414
3550
  # resp.resource_specification.bot_locale_import_specification.voice_settings.engine #=> String, one of "standard", "neural"
3551
+ # resp.resource_specification.custom_vocabulary_import_specification.bot_id #=> String
3552
+ # resp.resource_specification.custom_vocabulary_import_specification.bot_version #=> String
3553
+ # resp.resource_specification.custom_vocabulary_import_specification.locale_id #=> String
3415
3554
  # resp.imported_resource_id #=> String
3416
3555
  # resp.imported_resource_name #=> String
3417
3556
  # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
@@ -3929,6 +4068,7 @@ module Aws::LexModelsV2
3929
4068
  # * {Types::DescribeSlotTypeResponse#locale_id #locale_id} => String
3930
4069
  # * {Types::DescribeSlotTypeResponse#creation_date_time #creation_date_time} => Time
3931
4070
  # * {Types::DescribeSlotTypeResponse#last_updated_date_time #last_updated_date_time} => Time
4071
+ # * {Types::DescribeSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
3932
4072
  #
3933
4073
  # @example Request syntax with placeholder values
3934
4074
  #
@@ -3950,12 +4090,16 @@ module Aws::LexModelsV2
3950
4090
  # resp.slot_type_values[0].synonyms[0].value #=> String
3951
4091
  # resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
3952
4092
  # resp.value_selection_setting.regex_filter.pattern #=> String
4093
+ # resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
3953
4094
  # resp.parent_slot_type_signature #=> String
3954
4095
  # resp.bot_id #=> String
3955
4096
  # resp.bot_version #=> String
3956
4097
  # resp.locale_id #=> String
3957
4098
  # resp.creation_date_time #=> Time
3958
4099
  # resp.last_updated_date_time #=> Time
4100
+ # resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
4101
+ # resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
4102
+ # resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
3959
4103
  #
3960
4104
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotType AWS API Documentation
3961
4105
  #
@@ -4392,8 +4536,12 @@ module Aws::LexModelsV2
4392
4536
  # @option params [String] :next_token
4393
4537
  # If the response from the `ListBots` operation contains more results
4394
4538
  # than specified in the `maxResults` parameter, a token is returned in
4395
- # the response. Use that token in the `nextToken` parameter to return
4396
- # the next page of results.
4539
+ # the response.
4540
+ #
4541
+ # Use the returned token in the `nextToken` parameter of a `ListBots`
4542
+ # request to return the next page of results. For a complete set of
4543
+ # results, call the `ListBots` operation until the `nextToken` returned
4544
+ # in the response is null.
4397
4545
  #
4398
4546
  # @return [Types::ListBotsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4399
4547
  #
@@ -4578,8 +4726,8 @@ module Aws::LexModelsV2
4578
4726
  req.send_request(options)
4579
4727
  end
4580
4728
 
4581
- # Lists the exports for a bot or bot locale. Exports are kept in the
4582
- # list for 7 days.
4729
+ # Lists the exports for a bot, bot locale, or custom vocabulary. Exports
4730
+ # are kept in the list for 7 days.
4583
4731
  #
4584
4732
  # @option params [String] :bot_id
4585
4733
  # The unique identifier that Amazon Lex assigned to the bot.
@@ -4605,8 +4753,17 @@ module Aws::LexModelsV2
4605
4753
  # @option params [String] :next_token
4606
4754
  # If the response from the `ListExports` operation contains more results
4607
4755
  # that specified in the `maxResults` parameter, a token is returned in
4608
- # the response. Use that token in the `nextToken` parameter to return
4609
- # the next page of results.
4756
+ # the response.
4757
+ #
4758
+ # Use the returned token in the `nextToken` parameter of a `ListExports`
4759
+ # request to return the next page of results. For a complete set of
4760
+ # results, call the `ListExports` operation until the `nextToken`
4761
+ # returned in the response is null.
4762
+ #
4763
+ # @option params [String] :locale_id
4764
+ # Specifies the resources that should be exported. If you don't specify
4765
+ # a resource type in the `filters` parameter, both bot locales and
4766
+ # custom vocabularies are exported.
4610
4767
  #
4611
4768
  # @return [Types::ListExportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4612
4769
  #
@@ -4614,6 +4771,7 @@ module Aws::LexModelsV2
4614
4771
  # * {Types::ListExportsResponse#bot_version #bot_version} => String
4615
4772
  # * {Types::ListExportsResponse#export_summaries #export_summaries} => Array<Types::ExportSummary>
4616
4773
  # * {Types::ListExportsResponse#next_token #next_token} => String
4774
+ # * {Types::ListExportsResponse#locale_id #locale_id} => String
4617
4775
  #
4618
4776
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4619
4777
  #
@@ -4635,6 +4793,7 @@ module Aws::LexModelsV2
4635
4793
  # ],
4636
4794
  # max_results: 1,
4637
4795
  # next_token: "NextToken",
4796
+ # locale_id: "LocaleId",
4638
4797
  # })
4639
4798
  #
4640
4799
  # @example Response structure
@@ -4648,11 +4807,15 @@ module Aws::LexModelsV2
4648
4807
  # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_id #=> String
4649
4808
  # resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_version #=> String
4650
4809
  # resp.export_summaries[0].resource_specification.bot_locale_export_specification.locale_id #=> String
4651
- # resp.export_summaries[0].file_format #=> String, one of "LexJson"
4810
+ # resp.export_summaries[0].resource_specification.custom_vocabulary_export_specification.bot_id #=> String
4811
+ # resp.export_summaries[0].resource_specification.custom_vocabulary_export_specification.bot_version #=> String
4812
+ # resp.export_summaries[0].resource_specification.custom_vocabulary_export_specification.locale_id #=> String
4813
+ # resp.export_summaries[0].file_format #=> String, one of "LexJson", "TSV"
4652
4814
  # resp.export_summaries[0].export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
4653
4815
  # resp.export_summaries[0].creation_date_time #=> Time
4654
4816
  # resp.export_summaries[0].last_updated_date_time #=> Time
4655
4817
  # resp.next_token #=> String
4818
+ # resp.locale_id #=> String
4656
4819
  #
4657
4820
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports AWS API Documentation
4658
4821
  #
@@ -4663,8 +4826,8 @@ module Aws::LexModelsV2
4663
4826
  req.send_request(options)
4664
4827
  end
4665
4828
 
4666
- # Lists the imports for a bot or bot locale. Imports are kept in the
4667
- # list for 7 days.
4829
+ # Lists the imports for a bot, bot locale, or custom vocabulary. Imports
4830
+ # are kept in the list for 7 days.
4668
4831
  #
4669
4832
  # @option params [String] :bot_id
4670
4833
  # The unique identifier that Amazon Lex assigned to the bot.
@@ -4690,8 +4853,17 @@ module Aws::LexModelsV2
4690
4853
  # @option params [String] :next_token
4691
4854
  # If the response from the `ListImports` operation contains more results
4692
4855
  # than specified in the `maxResults` parameter, a token is returned in
4693
- # the response. Use that token in the `nextToken` parameter to return
4694
- # the next page of results.
4856
+ # the response.
4857
+ #
4858
+ # Use the returned token in the `nextToken` parameter of a `ListImports`
4859
+ # request to return the next page of results. For a complete set of
4860
+ # results, call the `ListImports` operation until the `nextToken`
4861
+ # returned in the response is null.
4862
+ #
4863
+ # @option params [String] :locale_id
4864
+ # Specifies the locale that should be present in the list. If you don't
4865
+ # specify a resource type in the `filters` parameter, the list contains
4866
+ # both bot locales and custom vocabularies.
4695
4867
  #
4696
4868
  # @return [Types::ListImportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4697
4869
  #
@@ -4699,6 +4871,7 @@ module Aws::LexModelsV2
4699
4871
  # * {Types::ListImportsResponse#bot_version #bot_version} => String
4700
4872
  # * {Types::ListImportsResponse#import_summaries #import_summaries} => Array<Types::ImportSummary>
4701
4873
  # * {Types::ListImportsResponse#next_token #next_token} => String
4874
+ # * {Types::ListImportsResponse#locale_id #locale_id} => String
4702
4875
  #
4703
4876
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
4704
4877
  #
@@ -4720,6 +4893,7 @@ module Aws::LexModelsV2
4720
4893
  # ],
4721
4894
  # max_results: 1,
4722
4895
  # next_token: "NextToken",
4896
+ # locale_id: "LocaleId",
4723
4897
  # })
4724
4898
  #
4725
4899
  # @example Response structure
@@ -4734,7 +4908,9 @@ module Aws::LexModelsV2
4734
4908
  # resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
4735
4909
  # resp.import_summaries[0].creation_date_time #=> Time
4736
4910
  # resp.import_summaries[0].last_updated_date_time #=> Time
4911
+ # resp.import_summaries[0].imported_resource_type #=> String, one of "Bot", "BotLocale", "CustomVocabulary"
4737
4912
  # resp.next_token #=> String
4913
+ # resp.locale_id #=> String
4738
4914
  #
4739
4915
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports AWS API Documentation
4740
4916
  #
@@ -4780,8 +4956,12 @@ module Aws::LexModelsV2
4780
4956
  # @option params [String] :next_token
4781
4957
  # If the response from the `ListIntents` operation contains more results
4782
4958
  # than specified in the `maxResults` parameter, a token is returned in
4783
- # the response. Use that token in the `nextToken` parameter to return
4784
- # the next page of results.
4959
+ # the response.
4960
+ #
4961
+ # Use the returned token in the `nextToken` parameter of a `ListIntents`
4962
+ # request to return the next page of results. For a complete set of
4963
+ # results, call the `ListIntents` operation until the `nextToken`
4964
+ # returned in the response is null.
4785
4965
  #
4786
4966
  # @return [Types::ListIntentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4787
4967
  #
@@ -4973,7 +5153,7 @@ module Aws::LexModelsV2
4973
5153
  # },
4974
5154
  # filters: [
4975
5155
  # {
4976
- # name: "SlotTypeName", # required, accepts SlotTypeName
5156
+ # name: "SlotTypeName", # required, accepts SlotTypeName, ExternalSourceType
4977
5157
  # values: ["FilterValue"], # required
4978
5158
  # operator: "CO", # required, accepts CO, EQ
4979
5159
  # },
@@ -4993,6 +5173,7 @@ module Aws::LexModelsV2
4993
5173
  # resp.slot_type_summaries[0].description #=> String
4994
5174
  # resp.slot_type_summaries[0].parent_slot_type_signature #=> String
4995
5175
  # resp.slot_type_summaries[0].last_updated_date_time #=> Time
5176
+ # resp.slot_type_summaries[0].slot_type_category #=> String, one of "Custom", "Extended", "ExternalGrammar"
4996
5177
  # resp.next_token #=> String
4997
5178
  #
4998
5179
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlotTypes AWS API Documentation
@@ -5341,8 +5522,8 @@ module Aws::LexModelsV2
5341
5522
  req.send_request(options)
5342
5523
  end
5343
5524
 
5344
- # Starts importing a bot or bot locale from a zip archive that you
5345
- # uploaded to an S3 bucket.
5525
+ # Starts importing a bot, bot locale, or custom vocabulary from a zip
5526
+ # archive that you uploaded to an S3 bucket.
5346
5527
  #
5347
5528
  # @option params [required, String] :import_id
5348
5529
  # The unique identifier for the import. It is included in the response
@@ -5353,7 +5534,7 @@ module Aws::LexModelsV2
5353
5534
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/API_CreateUploadUrl.html
5354
5535
  #
5355
5536
  # @option params [required, Types::ImportResourceSpecification] :resource_specification
5356
- # Parameters for creating the bot or bot locale.
5537
+ # Parameters for creating the bot, bot locale or custom vocabulary.
5357
5538
  #
5358
5539
  # @option params [required, String] :merge_strategy
5359
5540
  # The strategy to use when there is a name conflict between the imported
@@ -5362,8 +5543,8 @@ module Aws::LexModelsV2
5362
5543
  # fails.
5363
5544
  #
5364
5545
  # @option params [String] :file_password
5365
- # The password used to encrypt the zip archive that contains the bot or
5366
- # bot locale definition. You should always encrypt the zip archive to
5546
+ # The password used to encrypt the zip archive that contains the
5547
+ # resource definition. You should always encrypt the zip archive to
5367
5548
  # protect it during transit between your site and Amazon Lex.
5368
5549
  #
5369
5550
  # @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -5403,6 +5584,11 @@ module Aws::LexModelsV2
5403
5584
  # engine: "standard", # accepts standard, neural
5404
5585
  # },
5405
5586
  # },
5587
+ # custom_vocabulary_import_specification: {
5588
+ # bot_id: "Id", # required
5589
+ # bot_version: "DraftBotVersion", # required
5590
+ # locale_id: "LocaleId", # required
5591
+ # },
5406
5592
  # },
5407
5593
  # merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict, Append
5408
5594
  # file_password: "ImportExportFilePassword",
@@ -5425,6 +5611,9 @@ module Aws::LexModelsV2
5425
5611
  # resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
5426
5612
  # resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
5427
5613
  # resp.resource_specification.bot_locale_import_specification.voice_settings.engine #=> String, one of "standard", "neural"
5614
+ # resp.resource_specification.custom_vocabulary_import_specification.bot_id #=> String
5615
+ # resp.resource_specification.custom_vocabulary_import_specification.bot_version #=> String
5616
+ # resp.resource_specification.custom_vocabulary_import_specification.locale_id #=> String
5428
5617
  # resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
5429
5618
  # resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
5430
5619
  # resp.creation_date_time #=> Time
@@ -5746,6 +5935,7 @@ module Aws::LexModelsV2
5746
5935
  # * {Types::UpdateBotLocaleResponse#failure_reasons #failure_reasons} => Array<String>
5747
5936
  # * {Types::UpdateBotLocaleResponse#creation_date_time #creation_date_time} => Time
5748
5937
  # * {Types::UpdateBotLocaleResponse#last_updated_date_time #last_updated_date_time} => Time
5938
+ # * {Types::UpdateBotLocaleResponse#recommended_actions #recommended_actions} => Array<String>
5749
5939
  #
5750
5940
  # @example Request syntax with placeholder values
5751
5941
  #
@@ -5776,6 +5966,8 @@ module Aws::LexModelsV2
5776
5966
  # resp.failure_reasons[0] #=> String
5777
5967
  # resp.creation_date_time #=> Time
5778
5968
  # resp.last_updated_date_time #=> Time
5969
+ # resp.recommended_actions #=> Array
5970
+ # resp.recommended_actions[0] #=> String
5779
5971
  #
5780
5972
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale AWS API Documentation
5781
5973
  #
@@ -5909,7 +6101,10 @@ module Aws::LexModelsV2
5909
6101
  # resp.resource_specification.bot_locale_export_specification.bot_id #=> String
5910
6102
  # resp.resource_specification.bot_locale_export_specification.bot_version #=> String
5911
6103
  # resp.resource_specification.bot_locale_export_specification.locale_id #=> String
5912
- # resp.file_format #=> String, one of "LexJson"
6104
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_id #=> String
6105
+ # resp.resource_specification.custom_vocabulary_export_specification.bot_version #=> String
6106
+ # resp.resource_specification.custom_vocabulary_export_specification.locale_id #=> String
6107
+ # resp.file_format #=> String, one of "LexJson", "TSV"
5913
6108
  # resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
5914
6109
  # resp.creation_date_time #=> Time
5915
6110
  # resp.last_updated_date_time #=> Time
@@ -7211,7 +7406,7 @@ module Aws::LexModelsV2
7211
7406
  # A new list of values and their optional synonyms that define the
7212
7407
  # values that the slot type can take.
7213
7408
  #
7214
- # @option params [required, Types::SlotValueSelectionSetting] :value_selection_setting
7409
+ # @option params [Types::SlotValueSelectionSetting] :value_selection_setting
7215
7410
  # The strategy that Amazon Lex should use when deciding on a value from
7216
7411
  # the list of slot type values.
7217
7412
  #
@@ -7234,6 +7429,10 @@ module Aws::LexModelsV2
7234
7429
  #
7235
7430
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
7236
7431
  #
7432
+ # @option params [Types::ExternalSourceSetting] :external_source_setting
7433
+ # Provides information about the external source of the slot type's
7434
+ # definition.
7435
+ #
7237
7436
  # @return [Types::UpdateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
7238
7437
  #
7239
7438
  # * {Types::UpdateSlotTypeResponse#slot_type_id #slot_type_id} => String
@@ -7247,6 +7446,7 @@ module Aws::LexModelsV2
7247
7446
  # * {Types::UpdateSlotTypeResponse#locale_id #locale_id} => String
7248
7447
  # * {Types::UpdateSlotTypeResponse#creation_date_time #creation_date_time} => Time
7249
7448
  # * {Types::UpdateSlotTypeResponse#last_updated_date_time #last_updated_date_time} => Time
7449
+ # * {Types::UpdateSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
7250
7450
  #
7251
7451
  # @example Request syntax with placeholder values
7252
7452
  #
@@ -7266,16 +7466,28 @@ module Aws::LexModelsV2
7266
7466
  # ],
7267
7467
  # },
7268
7468
  # ],
7269
- # value_selection_setting: { # required
7469
+ # value_selection_setting: {
7270
7470
  # resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
7271
7471
  # regex_filter: {
7272
7472
  # pattern: "RegexPattern", # required
7273
7473
  # },
7474
+ # advanced_recognition_setting: {
7475
+ # audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
7476
+ # },
7274
7477
  # },
7275
7478
  # parent_slot_type_signature: "SlotTypeSignature",
7276
7479
  # bot_id: "Id", # required
7277
7480
  # bot_version: "DraftBotVersion", # required
7278
7481
  # locale_id: "LocaleId", # required
7482
+ # external_source_setting: {
7483
+ # grammar_slot_type_setting: {
7484
+ # source: {
7485
+ # s3_bucket_name: "S3BucketName", # required
7486
+ # s3_object_key: "S3ObjectPath", # required
7487
+ # kms_key_arn: "KmsKeyArn",
7488
+ # },
7489
+ # },
7490
+ # },
7279
7491
  # })
7280
7492
  #
7281
7493
  # @example Response structure
@@ -7289,12 +7501,16 @@ module Aws::LexModelsV2
7289
7501
  # resp.slot_type_values[0].synonyms[0].value #=> String
7290
7502
  # resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
7291
7503
  # resp.value_selection_setting.regex_filter.pattern #=> String
7504
+ # resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
7292
7505
  # resp.parent_slot_type_signature #=> String
7293
7506
  # resp.bot_id #=> String
7294
7507
  # resp.bot_version #=> String
7295
7508
  # resp.locale_id #=> String
7296
7509
  # resp.creation_date_time #=> Time
7297
7510
  # resp.last_updated_date_time #=> Time
7511
+ # resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
7512
+ # resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
7513
+ # resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
7298
7514
  #
7299
7515
  # @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotType AWS API Documentation
7300
7516
  #
@@ -7318,7 +7534,7 @@ module Aws::LexModelsV2
7318
7534
  params: params,
7319
7535
  config: config)
7320
7536
  context[:gem_name] = 'aws-sdk-lexmodelsv2'
7321
- context[:gem_version] = '1.17.0'
7537
+ context[:gem_version] = '1.21.0'
7322
7538
  Seahorse::Client::Request.new(handlers, context)
7323
7539
  end
7324
7540