aws-sdk-lexmodelsv2 1.16.0 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexmodelsv2/client.rb +740 -39
- data/lib/aws-sdk-lexmodelsv2/client_api.rb +423 -2
- data/lib/aws-sdk-lexmodelsv2/types.rb +1745 -103
- data/lib/aws-sdk-lexmodelsv2.rb +1 -1
- metadata +4 -4
@@ -27,6 +27,7 @@ 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'
|
30
31
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
31
32
|
require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
32
33
|
|
@@ -73,6 +74,7 @@ module Aws::LexModelsV2
|
|
73
74
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
74
75
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
76
|
add_plugin(Aws::Plugins::HttpChecksum)
|
77
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
76
78
|
add_plugin(Aws::Plugins::SignatureV4)
|
77
79
|
add_plugin(Aws::Plugins::Protocols::RestJson)
|
78
80
|
|
@@ -175,6 +177,10 @@ module Aws::LexModelsV2
|
|
175
177
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
176
178
|
# a clock skew correction and retry requests with skewed client clocks.
|
177
179
|
#
|
180
|
+
# @option options [String] :defaults_mode ("legacy")
|
181
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
182
|
+
# accepted modes and the configuration defaults that are included.
|
183
|
+
#
|
178
184
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
179
185
|
# Set to true to disable SDK automatically adding host prefix
|
180
186
|
# to default service endpoint when available.
|
@@ -297,7 +303,7 @@ module Aws::LexModelsV2
|
|
297
303
|
# seconds to wait when opening a HTTP session before raising a
|
298
304
|
# `Timeout::Error`.
|
299
305
|
#
|
300
|
-
# @option options [
|
306
|
+
# @option options [Float] :http_read_timeout (60) The default
|
301
307
|
# number of seconds to wait for response data. This value can
|
302
308
|
# safely be set per-request on the session.
|
303
309
|
#
|
@@ -313,6 +319,9 @@ module Aws::LexModelsV2
|
|
313
319
|
# disables this behaviour. This value can safely be set per
|
314
320
|
# request on the session.
|
315
321
|
#
|
322
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
323
|
+
# in seconds.
|
324
|
+
#
|
316
325
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
317
326
|
# HTTP debug output will be sent to the `:logger`.
|
318
327
|
#
|
@@ -385,7 +394,7 @@ module Aws::LexModelsV2
|
|
385
394
|
# resp.bot_id #=> String
|
386
395
|
# resp.bot_version #=> String
|
387
396
|
# resp.locale_id #=> String
|
388
|
-
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
397
|
+
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
389
398
|
# resp.last_build_submitted_date_time #=> Time
|
390
399
|
#
|
391
400
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BuildBotLocale AWS API Documentation
|
@@ -725,7 +734,7 @@ module Aws::LexModelsV2
|
|
725
734
|
# resp.nlu_intent_confidence_threshold #=> Float
|
726
735
|
# resp.voice_settings.voice_id #=> String
|
727
736
|
# resp.voice_settings.engine #=> String, one of "standard", "neural"
|
728
|
-
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
737
|
+
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
729
738
|
# resp.creation_date_time #=> Time
|
730
739
|
#
|
731
740
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotLocale AWS API Documentation
|
@@ -846,8 +855,13 @@ module Aws::LexModelsV2
|
|
846
855
|
# bot_version: "BotVersion", # required
|
847
856
|
# locale_id: "LocaleId", # required
|
848
857
|
# },
|
858
|
+
# custom_vocabulary_export_specification: {
|
859
|
+
# bot_id: "Id", # required
|
860
|
+
# bot_version: "BotVersion", # required
|
861
|
+
# locale_id: "LocaleId", # required
|
862
|
+
# },
|
849
863
|
# },
|
850
|
-
# file_format: "LexJson", # required, accepts LexJson
|
864
|
+
# file_format: "LexJson", # required, accepts LexJson, TSV
|
851
865
|
# file_password: "ImportExportFilePassword",
|
852
866
|
# })
|
853
867
|
#
|
@@ -859,7 +873,10 @@ module Aws::LexModelsV2
|
|
859
873
|
# resp.resource_specification.bot_locale_export_specification.bot_id #=> String
|
860
874
|
# resp.resource_specification.bot_locale_export_specification.bot_version #=> String
|
861
875
|
# resp.resource_specification.bot_locale_export_specification.locale_id #=> String
|
862
|
-
# resp.
|
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"
|
863
880
|
# resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
864
881
|
# resp.creation_date_time #=> Time
|
865
882
|
#
|
@@ -2318,7 +2335,7 @@ module Aws::LexModelsV2
|
|
2318
2335
|
# values that help train the machine learning model about the values
|
2319
2336
|
# that it resolves for a slot.
|
2320
2337
|
#
|
2321
|
-
# @option params [
|
2338
|
+
# @option params [Types::SlotValueSelectionSetting] :value_selection_setting
|
2322
2339
|
# Determines the strategy that Amazon Lex uses to select a value from
|
2323
2340
|
# the list of possible values. The field can be set to one of the
|
2324
2341
|
# following values:
|
@@ -2356,6 +2373,9 @@ module Aws::LexModelsV2
|
|
2356
2373
|
#
|
2357
2374
|
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
2358
2375
|
#
|
2376
|
+
# @option params [Types::ExternalSourceSetting] :external_source_setting
|
2377
|
+
# Sets the type of external information used to create the slot type.
|
2378
|
+
#
|
2359
2379
|
# @return [Types::CreateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2360
2380
|
#
|
2361
2381
|
# * {Types::CreateSlotTypeResponse#slot_type_id #slot_type_id} => String
|
@@ -2368,6 +2388,7 @@ module Aws::LexModelsV2
|
|
2368
2388
|
# * {Types::CreateSlotTypeResponse#bot_version #bot_version} => String
|
2369
2389
|
# * {Types::CreateSlotTypeResponse#locale_id #locale_id} => String
|
2370
2390
|
# * {Types::CreateSlotTypeResponse#creation_date_time #creation_date_time} => Time
|
2391
|
+
# * {Types::CreateSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
|
2371
2392
|
#
|
2372
2393
|
# @example Request syntax with placeholder values
|
2373
2394
|
#
|
@@ -2386,16 +2407,28 @@ module Aws::LexModelsV2
|
|
2386
2407
|
# ],
|
2387
2408
|
# },
|
2388
2409
|
# ],
|
2389
|
-
# value_selection_setting: {
|
2410
|
+
# value_selection_setting: {
|
2390
2411
|
# resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
|
2391
2412
|
# regex_filter: {
|
2392
2413
|
# pattern: "RegexPattern", # required
|
2393
2414
|
# },
|
2415
|
+
# advanced_recognition_setting: {
|
2416
|
+
# audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
|
2417
|
+
# },
|
2394
2418
|
# },
|
2395
2419
|
# parent_slot_type_signature: "SlotTypeSignature",
|
2396
2420
|
# bot_id: "Id", # required
|
2397
2421
|
# bot_version: "DraftBotVersion", # required
|
2398
2422
|
# locale_id: "LocaleId", # required
|
2423
|
+
# external_source_setting: {
|
2424
|
+
# grammar_slot_type_setting: {
|
2425
|
+
# source: {
|
2426
|
+
# s3_bucket_name: "S3BucketName", # required
|
2427
|
+
# s3_object_key: "S3ObjectPath", # required
|
2428
|
+
# kms_key_arn: "KmsKeyArn",
|
2429
|
+
# },
|
2430
|
+
# },
|
2431
|
+
# },
|
2399
2432
|
# })
|
2400
2433
|
#
|
2401
2434
|
# @example Response structure
|
@@ -2409,11 +2442,15 @@ module Aws::LexModelsV2
|
|
2409
2442
|
# resp.slot_type_values[0].synonyms[0].value #=> String
|
2410
2443
|
# resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
|
2411
2444
|
# resp.value_selection_setting.regex_filter.pattern #=> String
|
2445
|
+
# resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
|
2412
2446
|
# resp.parent_slot_type_signature #=> String
|
2413
2447
|
# resp.bot_id #=> String
|
2414
2448
|
# resp.bot_version #=> String
|
2415
2449
|
# resp.locale_id #=> String
|
2416
2450
|
# resp.creation_date_time #=> Time
|
2451
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
|
2452
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
|
2453
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
|
2417
2454
|
#
|
2418
2455
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotType AWS API Documentation
|
2419
2456
|
#
|
@@ -2571,7 +2608,7 @@ module Aws::LexModelsV2
|
|
2571
2608
|
# resp.bot_id #=> String
|
2572
2609
|
# resp.bot_version #=> String
|
2573
2610
|
# resp.locale_id #=> String
|
2574
|
-
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
2611
|
+
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
2575
2612
|
#
|
2576
2613
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotLocale AWS API Documentation
|
2577
2614
|
#
|
@@ -2631,6 +2668,50 @@ module Aws::LexModelsV2
|
|
2631
2668
|
req.send_request(options)
|
2632
2669
|
end
|
2633
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
|
+
|
2634
2715
|
# Removes a previous export and the associated files stored in an S3
|
2635
2716
|
# bucket.
|
2636
2717
|
#
|
@@ -3133,6 +3214,7 @@ module Aws::LexModelsV2
|
|
3133
3214
|
# * {Types::DescribeBotLocaleResponse#last_updated_date_time #last_updated_date_time} => Time
|
3134
3215
|
# * {Types::DescribeBotLocaleResponse#last_build_submitted_date_time #last_build_submitted_date_time} => Time
|
3135
3216
|
# * {Types::DescribeBotLocaleResponse#bot_locale_history_events #bot_locale_history_events} => Array<Types::BotLocaleHistoryEvent>
|
3217
|
+
# * {Types::DescribeBotLocaleResponse#recommended_actions #recommended_actions} => Array<String>
|
3136
3218
|
#
|
3137
3219
|
# @example Request syntax with placeholder values
|
3138
3220
|
#
|
@@ -3154,7 +3236,7 @@ module Aws::LexModelsV2
|
|
3154
3236
|
# resp.voice_settings.engine #=> String, one of "standard", "neural"
|
3155
3237
|
# resp.intents_count #=> Integer
|
3156
3238
|
# resp.slot_types_count #=> Integer
|
3157
|
-
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
3239
|
+
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
3158
3240
|
# resp.failure_reasons #=> Array
|
3159
3241
|
# resp.failure_reasons[0] #=> String
|
3160
3242
|
# resp.creation_date_time #=> Time
|
@@ -3163,6 +3245,8 @@ module Aws::LexModelsV2
|
|
3163
3245
|
# resp.bot_locale_history_events #=> Array
|
3164
3246
|
# resp.bot_locale_history_events[0].event #=> String
|
3165
3247
|
# resp.bot_locale_history_events[0].event_date #=> Time
|
3248
|
+
# resp.recommended_actions #=> Array
|
3249
|
+
# resp.recommended_actions[0] #=> String
|
3166
3250
|
#
|
3167
3251
|
#
|
3168
3252
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -3180,6 +3264,89 @@ module Aws::LexModelsV2
|
|
3180
3264
|
req.send_request(options)
|
3181
3265
|
end
|
3182
3266
|
|
3267
|
+
# Provides metadata information about a bot recommendation. This
|
3268
|
+
# information will enable you to get a description on the request
|
3269
|
+
# inputs, to download associated transcripts after processing is
|
3270
|
+
# complete, and to download intents and slot-types generated by the bot
|
3271
|
+
# recommendation.
|
3272
|
+
#
|
3273
|
+
# @option params [required, String] :bot_id
|
3274
|
+
# The unique identifier of the bot associated with the bot
|
3275
|
+
# recommendation.
|
3276
|
+
#
|
3277
|
+
# @option params [required, String] :bot_version
|
3278
|
+
# The version of the bot associated with the bot recommendation.
|
3279
|
+
#
|
3280
|
+
# @option params [required, String] :locale_id
|
3281
|
+
# The identifier of the language and locale of the bot recommendation to
|
3282
|
+
# describe. The string must match one of the supported locales. For more
|
3283
|
+
# information, see [Supported languages][1].
|
3284
|
+
#
|
3285
|
+
#
|
3286
|
+
#
|
3287
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
3288
|
+
#
|
3289
|
+
# @option params [required, String] :bot_recommendation_id
|
3290
|
+
# The identifier of the bot recommendation to describe.
|
3291
|
+
#
|
3292
|
+
# @return [Types::DescribeBotRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3293
|
+
#
|
3294
|
+
# * {Types::DescribeBotRecommendationResponse#bot_id #bot_id} => String
|
3295
|
+
# * {Types::DescribeBotRecommendationResponse#bot_version #bot_version} => String
|
3296
|
+
# * {Types::DescribeBotRecommendationResponse#locale_id #locale_id} => String
|
3297
|
+
# * {Types::DescribeBotRecommendationResponse#bot_recommendation_status #bot_recommendation_status} => String
|
3298
|
+
# * {Types::DescribeBotRecommendationResponse#bot_recommendation_id #bot_recommendation_id} => String
|
3299
|
+
# * {Types::DescribeBotRecommendationResponse#failure_reasons #failure_reasons} => Array<String>
|
3300
|
+
# * {Types::DescribeBotRecommendationResponse#creation_date_time #creation_date_time} => Time
|
3301
|
+
# * {Types::DescribeBotRecommendationResponse#last_updated_date_time #last_updated_date_time} => Time
|
3302
|
+
# * {Types::DescribeBotRecommendationResponse#transcript_source_setting #transcript_source_setting} => Types::TranscriptSourceSetting
|
3303
|
+
# * {Types::DescribeBotRecommendationResponse#encryption_setting #encryption_setting} => Types::EncryptionSetting
|
3304
|
+
# * {Types::DescribeBotRecommendationResponse#bot_recommendation_results #bot_recommendation_results} => Types::BotRecommendationResults
|
3305
|
+
#
|
3306
|
+
# @example Request syntax with placeholder values
|
3307
|
+
#
|
3308
|
+
# resp = client.describe_bot_recommendation({
|
3309
|
+
# bot_id: "Id", # required
|
3310
|
+
# bot_version: "DraftBotVersion", # required
|
3311
|
+
# locale_id: "LocaleId", # required
|
3312
|
+
# bot_recommendation_id: "Id", # required
|
3313
|
+
# })
|
3314
|
+
#
|
3315
|
+
# @example Response structure
|
3316
|
+
#
|
3317
|
+
# resp.bot_id #=> String
|
3318
|
+
# resp.bot_version #=> String
|
3319
|
+
# resp.locale_id #=> String
|
3320
|
+
# resp.bot_recommendation_status #=> String, one of "Processing", "Deleting", "Deleted", "Downloading", "Updating", "Available", "Failed"
|
3321
|
+
# resp.bot_recommendation_id #=> String
|
3322
|
+
# resp.failure_reasons #=> Array
|
3323
|
+
# resp.failure_reasons[0] #=> String
|
3324
|
+
# resp.creation_date_time #=> Time
|
3325
|
+
# resp.last_updated_date_time #=> Time
|
3326
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.s3_bucket_name #=> String
|
3327
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes #=> Array
|
3328
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes[0] #=> String
|
3329
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_format #=> String, one of "Lex"
|
3330
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.start_date_time #=> Time
|
3331
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.end_date_time #=> Time
|
3332
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.kms_key_arn #=> String
|
3333
|
+
# resp.encryption_setting.kms_key_arn #=> String
|
3334
|
+
# resp.encryption_setting.bot_locale_export_password #=> String
|
3335
|
+
# resp.encryption_setting.associated_transcripts_password #=> String
|
3336
|
+
# resp.bot_recommendation_results.bot_locale_export_url #=> String
|
3337
|
+
# resp.bot_recommendation_results.associated_transcripts_url #=> String
|
3338
|
+
# resp.bot_recommendation_results.statistics.intents.discovered_intent_count #=> Integer
|
3339
|
+
# resp.bot_recommendation_results.statistics.slot_types.discovered_slot_type_count #=> Integer
|
3340
|
+
#
|
3341
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotRecommendation AWS API Documentation
|
3342
|
+
#
|
3343
|
+
# @overload describe_bot_recommendation(params = {})
|
3344
|
+
# @param [Hash] params ({})
|
3345
|
+
def describe_bot_recommendation(params = {}, options = {})
|
3346
|
+
req = build_request(:describe_bot_recommendation, params)
|
3347
|
+
req.send_request(options)
|
3348
|
+
end
|
3349
|
+
|
3183
3350
|
# Provides metadata about a version of a bot.
|
3184
3351
|
#
|
3185
3352
|
# @option params [required, String] :bot_id
|
@@ -3237,6 +3404,53 @@ module Aws::LexModelsV2
|
|
3237
3404
|
req.send_request(options)
|
3238
3405
|
end
|
3239
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
|
+
|
3240
3454
|
# Gets information about a specific export.
|
3241
3455
|
#
|
3242
3456
|
# @option params [required, String] :export_id
|
@@ -3267,7 +3481,10 @@ module Aws::LexModelsV2
|
|
3267
3481
|
# resp.resource_specification.bot_locale_export_specification.bot_id #=> String
|
3268
3482
|
# resp.resource_specification.bot_locale_export_specification.bot_version #=> String
|
3269
3483
|
# resp.resource_specification.bot_locale_export_specification.locale_id #=> String
|
3270
|
-
# resp.
|
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"
|
3271
3488
|
# resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
3272
3489
|
# resp.failure_reasons #=> Array
|
3273
3490
|
# resp.failure_reasons[0] #=> String
|
@@ -3329,9 +3546,12 @@ module Aws::LexModelsV2
|
|
3329
3546
|
# resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
|
3330
3547
|
# resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
|
3331
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
|
3332
3552
|
# resp.imported_resource_id #=> String
|
3333
3553
|
# resp.imported_resource_name #=> String
|
3334
|
-
# resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
|
3554
|
+
# resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
|
3335
3555
|
# resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
3336
3556
|
# resp.failure_reasons #=> Array
|
3337
3557
|
# resp.failure_reasons[0] #=> String
|
@@ -3846,6 +4066,7 @@ module Aws::LexModelsV2
|
|
3846
4066
|
# * {Types::DescribeSlotTypeResponse#locale_id #locale_id} => String
|
3847
4067
|
# * {Types::DescribeSlotTypeResponse#creation_date_time #creation_date_time} => Time
|
3848
4068
|
# * {Types::DescribeSlotTypeResponse#last_updated_date_time #last_updated_date_time} => Time
|
4069
|
+
# * {Types::DescribeSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
|
3849
4070
|
#
|
3850
4071
|
# @example Request syntax with placeholder values
|
3851
4072
|
#
|
@@ -3867,12 +4088,16 @@ module Aws::LexModelsV2
|
|
3867
4088
|
# resp.slot_type_values[0].synonyms[0].value #=> String
|
3868
4089
|
# resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
|
3869
4090
|
# resp.value_selection_setting.regex_filter.pattern #=> String
|
4091
|
+
# resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
|
3870
4092
|
# resp.parent_slot_type_signature #=> String
|
3871
4093
|
# resp.bot_id #=> String
|
3872
4094
|
# resp.bot_version #=> String
|
3873
4095
|
# resp.locale_id #=> String
|
3874
4096
|
# resp.creation_date_time #=> Time
|
3875
4097
|
# resp.last_updated_date_time #=> Time
|
4098
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
|
4099
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
|
4100
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
|
3876
4101
|
#
|
3877
4102
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotType AWS API Documentation
|
3878
4103
|
#
|
@@ -4143,7 +4368,7 @@ module Aws::LexModelsV2
|
|
4143
4368
|
# resp.bot_locale_summaries[0].locale_id #=> String
|
4144
4369
|
# resp.bot_locale_summaries[0].locale_name #=> String
|
4145
4370
|
# resp.bot_locale_summaries[0].description #=> String
|
4146
|
-
# resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
4371
|
+
# resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
4147
4372
|
# resp.bot_locale_summaries[0].last_updated_date_time #=> Time
|
4148
4373
|
# resp.bot_locale_summaries[0].last_build_submitted_date_time #=> Time
|
4149
4374
|
#
|
@@ -4156,6 +4381,71 @@ module Aws::LexModelsV2
|
|
4156
4381
|
req.send_request(options)
|
4157
4382
|
end
|
4158
4383
|
|
4384
|
+
# Get a list of bot recommendations that meet the specified criteria.
|
4385
|
+
#
|
4386
|
+
# @option params [required, String] :bot_id
|
4387
|
+
# The unique identifier of the bot that contains the bot recommendation
|
4388
|
+
# list.
|
4389
|
+
#
|
4390
|
+
# @option params [required, String] :bot_version
|
4391
|
+
# The version of the bot that contains the bot recommendation list.
|
4392
|
+
#
|
4393
|
+
# @option params [required, String] :locale_id
|
4394
|
+
# The identifier of the language and locale of the bot recommendation
|
4395
|
+
# list.
|
4396
|
+
#
|
4397
|
+
# @option params [Integer] :max_results
|
4398
|
+
# The maximum number of bot recommendations to return in each page of
|
4399
|
+
# results. If there are fewer results than the max page size, only the
|
4400
|
+
# actual number of results are returned.
|
4401
|
+
#
|
4402
|
+
# @option params [String] :next_token
|
4403
|
+
# If the response from the ListBotRecommendation operation contains more
|
4404
|
+
# results than specified in the maxResults parameter, a token is
|
4405
|
+
# returned in the response. Use that token in the nextToken parameter to
|
4406
|
+
# return the next page of results.
|
4407
|
+
#
|
4408
|
+
# @return [Types::ListBotRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4409
|
+
#
|
4410
|
+
# * {Types::ListBotRecommendationsResponse#bot_id #bot_id} => String
|
4411
|
+
# * {Types::ListBotRecommendationsResponse#bot_version #bot_version} => String
|
4412
|
+
# * {Types::ListBotRecommendationsResponse#locale_id #locale_id} => String
|
4413
|
+
# * {Types::ListBotRecommendationsResponse#bot_recommendation_summaries #bot_recommendation_summaries} => Array<Types::BotRecommendationSummary>
|
4414
|
+
# * {Types::ListBotRecommendationsResponse#next_token #next_token} => String
|
4415
|
+
#
|
4416
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4417
|
+
#
|
4418
|
+
# @example Request syntax with placeholder values
|
4419
|
+
#
|
4420
|
+
# resp = client.list_bot_recommendations({
|
4421
|
+
# bot_id: "Id", # required
|
4422
|
+
# bot_version: "DraftBotVersion", # required
|
4423
|
+
# locale_id: "LocaleId", # required
|
4424
|
+
# max_results: 1,
|
4425
|
+
# next_token: "NextToken",
|
4426
|
+
# })
|
4427
|
+
#
|
4428
|
+
# @example Response structure
|
4429
|
+
#
|
4430
|
+
# resp.bot_id #=> String
|
4431
|
+
# resp.bot_version #=> String
|
4432
|
+
# resp.locale_id #=> String
|
4433
|
+
# resp.bot_recommendation_summaries #=> Array
|
4434
|
+
# resp.bot_recommendation_summaries[0].bot_recommendation_status #=> String, one of "Processing", "Deleting", "Deleted", "Downloading", "Updating", "Available", "Failed"
|
4435
|
+
# resp.bot_recommendation_summaries[0].bot_recommendation_id #=> String
|
4436
|
+
# resp.bot_recommendation_summaries[0].creation_date_time #=> Time
|
4437
|
+
# resp.bot_recommendation_summaries[0].last_updated_date_time #=> Time
|
4438
|
+
# resp.next_token #=> String
|
4439
|
+
#
|
4440
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBotRecommendations AWS API Documentation
|
4441
|
+
#
|
4442
|
+
# @overload list_bot_recommendations(params = {})
|
4443
|
+
# @param [Hash] params ({})
|
4444
|
+
def list_bot_recommendations(params = {}, options = {})
|
4445
|
+
req = build_request(:list_bot_recommendations, params)
|
4446
|
+
req.send_request(options)
|
4447
|
+
end
|
4448
|
+
|
4159
4449
|
# Gets information about all of the versions of a bot.
|
4160
4450
|
#
|
4161
4451
|
# The `ListBotVersions` operation returns a summary of each version of a
|
@@ -4244,8 +4534,12 @@ module Aws::LexModelsV2
|
|
4244
4534
|
# @option params [String] :next_token
|
4245
4535
|
# If the response from the `ListBots` operation contains more results
|
4246
4536
|
# than specified in the `maxResults` parameter, a token is returned in
|
4247
|
-
# the response.
|
4248
|
-
#
|
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.
|
4249
4543
|
#
|
4250
4544
|
# @return [Types::ListBotsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4251
4545
|
#
|
@@ -4430,8 +4724,8 @@ module Aws::LexModelsV2
|
|
4430
4724
|
req.send_request(options)
|
4431
4725
|
end
|
4432
4726
|
|
4433
|
-
# Lists the exports for a bot
|
4434
|
-
# 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.
|
4435
4729
|
#
|
4436
4730
|
# @option params [String] :bot_id
|
4437
4731
|
# The unique identifier that Amazon Lex assigned to the bot.
|
@@ -4457,8 +4751,17 @@ module Aws::LexModelsV2
|
|
4457
4751
|
# @option params [String] :next_token
|
4458
4752
|
# If the response from the `ListExports` operation contains more results
|
4459
4753
|
# that specified in the `maxResults` parameter, a token is returned in
|
4460
|
-
# the response.
|
4461
|
-
#
|
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.
|
4462
4765
|
#
|
4463
4766
|
# @return [Types::ListExportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4464
4767
|
#
|
@@ -4466,6 +4769,7 @@ module Aws::LexModelsV2
|
|
4466
4769
|
# * {Types::ListExportsResponse#bot_version #bot_version} => String
|
4467
4770
|
# * {Types::ListExportsResponse#export_summaries #export_summaries} => Array<Types::ExportSummary>
|
4468
4771
|
# * {Types::ListExportsResponse#next_token #next_token} => String
|
4772
|
+
# * {Types::ListExportsResponse#locale_id #locale_id} => String
|
4469
4773
|
#
|
4470
4774
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4471
4775
|
#
|
@@ -4487,6 +4791,7 @@ module Aws::LexModelsV2
|
|
4487
4791
|
# ],
|
4488
4792
|
# max_results: 1,
|
4489
4793
|
# next_token: "NextToken",
|
4794
|
+
# locale_id: "LocaleId",
|
4490
4795
|
# })
|
4491
4796
|
#
|
4492
4797
|
# @example Response structure
|
@@ -4500,11 +4805,15 @@ module Aws::LexModelsV2
|
|
4500
4805
|
# resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_id #=> String
|
4501
4806
|
# resp.export_summaries[0].resource_specification.bot_locale_export_specification.bot_version #=> String
|
4502
4807
|
# resp.export_summaries[0].resource_specification.bot_locale_export_specification.locale_id #=> String
|
4503
|
-
# resp.export_summaries[0].
|
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"
|
4504
4812
|
# resp.export_summaries[0].export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
4505
4813
|
# resp.export_summaries[0].creation_date_time #=> Time
|
4506
4814
|
# resp.export_summaries[0].last_updated_date_time #=> Time
|
4507
4815
|
# resp.next_token #=> String
|
4816
|
+
# resp.locale_id #=> String
|
4508
4817
|
#
|
4509
4818
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListExports AWS API Documentation
|
4510
4819
|
#
|
@@ -4515,8 +4824,8 @@ module Aws::LexModelsV2
|
|
4515
4824
|
req.send_request(options)
|
4516
4825
|
end
|
4517
4826
|
|
4518
|
-
# Lists the imports for a bot
|
4519
|
-
# 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.
|
4520
4829
|
#
|
4521
4830
|
# @option params [String] :bot_id
|
4522
4831
|
# The unique identifier that Amazon Lex assigned to the bot.
|
@@ -4542,8 +4851,17 @@ module Aws::LexModelsV2
|
|
4542
4851
|
# @option params [String] :next_token
|
4543
4852
|
# If the response from the `ListImports` operation contains more results
|
4544
4853
|
# than specified in the `maxResults` parameter, a token is returned in
|
4545
|
-
# the response.
|
4546
|
-
#
|
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.
|
4547
4865
|
#
|
4548
4866
|
# @return [Types::ListImportsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4549
4867
|
#
|
@@ -4551,6 +4869,7 @@ module Aws::LexModelsV2
|
|
4551
4869
|
# * {Types::ListImportsResponse#bot_version #bot_version} => String
|
4552
4870
|
# * {Types::ListImportsResponse#import_summaries #import_summaries} => Array<Types::ImportSummary>
|
4553
4871
|
# * {Types::ListImportsResponse#next_token #next_token} => String
|
4872
|
+
# * {Types::ListImportsResponse#locale_id #locale_id} => String
|
4554
4873
|
#
|
4555
4874
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4556
4875
|
#
|
@@ -4572,6 +4891,7 @@ module Aws::LexModelsV2
|
|
4572
4891
|
# ],
|
4573
4892
|
# max_results: 1,
|
4574
4893
|
# next_token: "NextToken",
|
4894
|
+
# locale_id: "LocaleId",
|
4575
4895
|
# })
|
4576
4896
|
#
|
4577
4897
|
# @example Response structure
|
@@ -4583,10 +4903,12 @@ module Aws::LexModelsV2
|
|
4583
4903
|
# resp.import_summaries[0].imported_resource_id #=> String
|
4584
4904
|
# resp.import_summaries[0].imported_resource_name #=> String
|
4585
4905
|
# resp.import_summaries[0].import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
4586
|
-
# resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
|
4906
|
+
# resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
|
4587
4907
|
# resp.import_summaries[0].creation_date_time #=> Time
|
4588
4908
|
# resp.import_summaries[0].last_updated_date_time #=> Time
|
4909
|
+
# resp.import_summaries[0].imported_resource_type #=> String, one of "Bot", "BotLocale", "CustomVocabulary"
|
4589
4910
|
# resp.next_token #=> String
|
4911
|
+
# resp.locale_id #=> String
|
4590
4912
|
#
|
4591
4913
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListImports AWS API Documentation
|
4592
4914
|
#
|
@@ -4632,8 +4954,12 @@ module Aws::LexModelsV2
|
|
4632
4954
|
# @option params [String] :next_token
|
4633
4955
|
# If the response from the `ListIntents` operation contains more results
|
4634
4956
|
# than specified in the `maxResults` parameter, a token is returned in
|
4635
|
-
# the response.
|
4636
|
-
#
|
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.
|
4637
4963
|
#
|
4638
4964
|
# @return [Types::ListIntentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4639
4965
|
#
|
@@ -4694,6 +5020,77 @@ module Aws::LexModelsV2
|
|
4694
5020
|
req.send_request(options)
|
4695
5021
|
end
|
4696
5022
|
|
5023
|
+
# Gets a list of recommended intents provided by the bot recommendation
|
5024
|
+
# that you can use in your bot.
|
5025
|
+
#
|
5026
|
+
# @option params [required, String] :bot_id
|
5027
|
+
# The unique identifier of the bot associated with the recommended
|
5028
|
+
# intents.
|
5029
|
+
#
|
5030
|
+
# @option params [required, String] :bot_version
|
5031
|
+
# The version of the bot that contains the recommended intents.
|
5032
|
+
#
|
5033
|
+
# @option params [required, String] :locale_id
|
5034
|
+
# The identifier of the language and locale of the recommended intents.
|
5035
|
+
#
|
5036
|
+
# @option params [required, String] :bot_recommendation_id
|
5037
|
+
# The identifier of the bot recommendation that contains the recommended
|
5038
|
+
# intents.
|
5039
|
+
#
|
5040
|
+
# @option params [String] :next_token
|
5041
|
+
# If the response from the ListRecommendedIntents operation contains
|
5042
|
+
# more results than specified in the maxResults parameter, a token is
|
5043
|
+
# returned in the response. Use that token in the nextToken parameter to
|
5044
|
+
# return the next page of results.
|
5045
|
+
#
|
5046
|
+
# @option params [Integer] :max_results
|
5047
|
+
# The maximum number of bot recommendations to return in each page of
|
5048
|
+
# results. If there are fewer results than the max page size, only the
|
5049
|
+
# actual number of results are returned.
|
5050
|
+
#
|
5051
|
+
# @return [Types::ListRecommendedIntentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5052
|
+
#
|
5053
|
+
# * {Types::ListRecommendedIntentsResponse#bot_id #bot_id} => String
|
5054
|
+
# * {Types::ListRecommendedIntentsResponse#bot_version #bot_version} => String
|
5055
|
+
# * {Types::ListRecommendedIntentsResponse#locale_id #locale_id} => String
|
5056
|
+
# * {Types::ListRecommendedIntentsResponse#bot_recommendation_id #bot_recommendation_id} => String
|
5057
|
+
# * {Types::ListRecommendedIntentsResponse#summary_list #summary_list} => Array<Types::RecommendedIntentSummary>
|
5058
|
+
# * {Types::ListRecommendedIntentsResponse#next_token #next_token} => String
|
5059
|
+
#
|
5060
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
5061
|
+
#
|
5062
|
+
# @example Request syntax with placeholder values
|
5063
|
+
#
|
5064
|
+
# resp = client.list_recommended_intents({
|
5065
|
+
# bot_id: "Id", # required
|
5066
|
+
# bot_version: "DraftBotVersion", # required
|
5067
|
+
# locale_id: "LocaleId", # required
|
5068
|
+
# bot_recommendation_id: "Id", # required
|
5069
|
+
# next_token: "NextToken",
|
5070
|
+
# max_results: 1,
|
5071
|
+
# })
|
5072
|
+
#
|
5073
|
+
# @example Response structure
|
5074
|
+
#
|
5075
|
+
# resp.bot_id #=> String
|
5076
|
+
# resp.bot_version #=> String
|
5077
|
+
# resp.locale_id #=> String
|
5078
|
+
# resp.bot_recommendation_id #=> String
|
5079
|
+
# resp.summary_list #=> Array
|
5080
|
+
# resp.summary_list[0].intent_id #=> String
|
5081
|
+
# resp.summary_list[0].intent_name #=> String
|
5082
|
+
# resp.summary_list[0].sample_utterances_count #=> Integer
|
5083
|
+
# resp.next_token #=> String
|
5084
|
+
#
|
5085
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListRecommendedIntents AWS API Documentation
|
5086
|
+
#
|
5087
|
+
# @overload list_recommended_intents(params = {})
|
5088
|
+
# @param [Hash] params ({})
|
5089
|
+
def list_recommended_intents(params = {}, options = {})
|
5090
|
+
req = build_request(:list_recommended_intents, params)
|
5091
|
+
req.send_request(options)
|
5092
|
+
end
|
5093
|
+
|
4697
5094
|
# Gets a list of slot types that match the specified criteria.
|
4698
5095
|
#
|
4699
5096
|
# @option params [required, String] :bot_id
|
@@ -4754,7 +5151,7 @@ module Aws::LexModelsV2
|
|
4754
5151
|
# },
|
4755
5152
|
# filters: [
|
4756
5153
|
# {
|
4757
|
-
# name: "SlotTypeName", # required, accepts SlotTypeName
|
5154
|
+
# name: "SlotTypeName", # required, accepts SlotTypeName, ExternalSourceType
|
4758
5155
|
# values: ["FilterValue"], # required
|
4759
5156
|
# operator: "CO", # required, accepts CO, EQ
|
4760
5157
|
# },
|
@@ -4774,6 +5171,7 @@ module Aws::LexModelsV2
|
|
4774
5171
|
# resp.slot_type_summaries[0].description #=> String
|
4775
5172
|
# resp.slot_type_summaries[0].parent_slot_type_signature #=> String
|
4776
5173
|
# resp.slot_type_summaries[0].last_updated_date_time #=> Time
|
5174
|
+
# resp.slot_type_summaries[0].slot_type_category #=> String, one of "Custom", "Extended", "ExternalGrammar"
|
4777
5175
|
# resp.next_token #=> String
|
4778
5176
|
#
|
4779
5177
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlotTypes AWS API Documentation
|
@@ -4936,8 +5334,194 @@ module Aws::LexModelsV2
|
|
4936
5334
|
req.send_request(options)
|
4937
5335
|
end
|
4938
5336
|
|
4939
|
-
#
|
4940
|
-
#
|
5337
|
+
# Search for associated transcripts that meet the specified criteria.
|
5338
|
+
#
|
5339
|
+
# @option params [required, String] :bot_id
|
5340
|
+
# The unique identifier of the bot associated with the transcripts that
|
5341
|
+
# you are searching.
|
5342
|
+
#
|
5343
|
+
# @option params [required, String] :bot_version
|
5344
|
+
# The version of the bot containing the transcripts that you are
|
5345
|
+
# searching.
|
5346
|
+
#
|
5347
|
+
# @option params [required, String] :locale_id
|
5348
|
+
# The identifier of the language and locale of the transcripts to
|
5349
|
+
# search. The string must match one of the supported locales. For more
|
5350
|
+
# information, see [Supported languages][1]
|
5351
|
+
#
|
5352
|
+
#
|
5353
|
+
#
|
5354
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
5355
|
+
#
|
5356
|
+
# @option params [required, String] :bot_recommendation_id
|
5357
|
+
# The unique identifier of the bot recommendation associated with the
|
5358
|
+
# transcripts to search.
|
5359
|
+
#
|
5360
|
+
# @option params [String] :search_order
|
5361
|
+
# How SearchResults are ordered. Valid values are Ascending or
|
5362
|
+
# Descending. The default is Descending.
|
5363
|
+
#
|
5364
|
+
# @option params [required, Array<Types::AssociatedTranscriptFilter>] :filters
|
5365
|
+
# A list of filter objects.
|
5366
|
+
#
|
5367
|
+
# @option params [Integer] :max_results
|
5368
|
+
# The maximum number of bot recommendations to return in each page of
|
5369
|
+
# results. If there are fewer results than the max page size, only the
|
5370
|
+
# actual number of results are returned.
|
5371
|
+
#
|
5372
|
+
# @option params [Integer] :next_index
|
5373
|
+
# If the response from the SearchAssociatedTranscriptsRequest operation
|
5374
|
+
# contains more results than specified in the maxResults parameter, an
|
5375
|
+
# index is returned in the response. Use that index in the nextIndex
|
5376
|
+
# parameter to return the next page of results.
|
5377
|
+
#
|
5378
|
+
# @return [Types::SearchAssociatedTranscriptsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5379
|
+
#
|
5380
|
+
# * {Types::SearchAssociatedTranscriptsResponse#bot_id #bot_id} => String
|
5381
|
+
# * {Types::SearchAssociatedTranscriptsResponse#bot_version #bot_version} => String
|
5382
|
+
# * {Types::SearchAssociatedTranscriptsResponse#locale_id #locale_id} => String
|
5383
|
+
# * {Types::SearchAssociatedTranscriptsResponse#bot_recommendation_id #bot_recommendation_id} => String
|
5384
|
+
# * {Types::SearchAssociatedTranscriptsResponse#next_index #next_index} => Integer
|
5385
|
+
# * {Types::SearchAssociatedTranscriptsResponse#associated_transcripts #associated_transcripts} => Array<Types::AssociatedTranscript>
|
5386
|
+
# * {Types::SearchAssociatedTranscriptsResponse#total_results #total_results} => Integer
|
5387
|
+
#
|
5388
|
+
# @example Request syntax with placeholder values
|
5389
|
+
#
|
5390
|
+
# resp = client.search_associated_transcripts({
|
5391
|
+
# bot_id: "Id", # required
|
5392
|
+
# bot_version: "BotVersion", # required
|
5393
|
+
# locale_id: "LocaleId", # required
|
5394
|
+
# bot_recommendation_id: "Id", # required
|
5395
|
+
# search_order: "Ascending", # accepts Ascending, Descending
|
5396
|
+
# filters: [ # required
|
5397
|
+
# {
|
5398
|
+
# name: "IntentId", # required, accepts IntentId, SlotTypeId
|
5399
|
+
# values: ["FilterValue"], # required
|
5400
|
+
# },
|
5401
|
+
# ],
|
5402
|
+
# max_results: 1,
|
5403
|
+
# next_index: 1,
|
5404
|
+
# })
|
5405
|
+
#
|
5406
|
+
# @example Response structure
|
5407
|
+
#
|
5408
|
+
# resp.bot_id #=> String
|
5409
|
+
# resp.bot_version #=> String
|
5410
|
+
# resp.locale_id #=> String
|
5411
|
+
# resp.bot_recommendation_id #=> String
|
5412
|
+
# resp.next_index #=> Integer
|
5413
|
+
# resp.associated_transcripts #=> Array
|
5414
|
+
# resp.associated_transcripts[0].transcript #=> String
|
5415
|
+
# resp.total_results #=> Integer
|
5416
|
+
#
|
5417
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SearchAssociatedTranscripts AWS API Documentation
|
5418
|
+
#
|
5419
|
+
# @overload search_associated_transcripts(params = {})
|
5420
|
+
# @param [Hash] params ({})
|
5421
|
+
def search_associated_transcripts(params = {}, options = {})
|
5422
|
+
req = build_request(:search_associated_transcripts, params)
|
5423
|
+
req.send_request(options)
|
5424
|
+
end
|
5425
|
+
|
5426
|
+
# Use this to provide your transcript data, and to start the bot
|
5427
|
+
# recommendation process.
|
5428
|
+
#
|
5429
|
+
# @option params [required, String] :bot_id
|
5430
|
+
# The unique identifier of the bot containing the bot recommendation.
|
5431
|
+
#
|
5432
|
+
# @option params [required, String] :bot_version
|
5433
|
+
# The version of the bot containing the bot recommendation.
|
5434
|
+
#
|
5435
|
+
# @option params [required, String] :locale_id
|
5436
|
+
# The identifier of the language and locale of the bot recommendation to
|
5437
|
+
# start. The string must match one of the supported locales. For more
|
5438
|
+
# information, see [Supported languages][1]
|
5439
|
+
#
|
5440
|
+
#
|
5441
|
+
#
|
5442
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
5443
|
+
#
|
5444
|
+
# @option params [required, Types::TranscriptSourceSetting] :transcript_source_setting
|
5445
|
+
# The object representing the Amazon S3 bucket containing the
|
5446
|
+
# transcript, as well as the associated metadata.
|
5447
|
+
#
|
5448
|
+
# @option params [Types::EncryptionSetting] :encryption_setting
|
5449
|
+
# The object representing the passwords that will be used to encrypt the
|
5450
|
+
# data related to the bot recommendation results, as well as the KMS key
|
5451
|
+
# ARN used to encrypt the associated metadata.
|
5452
|
+
#
|
5453
|
+
# @return [Types::StartBotRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5454
|
+
#
|
5455
|
+
# * {Types::StartBotRecommendationResponse#bot_id #bot_id} => String
|
5456
|
+
# * {Types::StartBotRecommendationResponse#bot_version #bot_version} => String
|
5457
|
+
# * {Types::StartBotRecommendationResponse#locale_id #locale_id} => String
|
5458
|
+
# * {Types::StartBotRecommendationResponse#bot_recommendation_status #bot_recommendation_status} => String
|
5459
|
+
# * {Types::StartBotRecommendationResponse#bot_recommendation_id #bot_recommendation_id} => String
|
5460
|
+
# * {Types::StartBotRecommendationResponse#creation_date_time #creation_date_time} => Time
|
5461
|
+
# * {Types::StartBotRecommendationResponse#transcript_source_setting #transcript_source_setting} => Types::TranscriptSourceSetting
|
5462
|
+
# * {Types::StartBotRecommendationResponse#encryption_setting #encryption_setting} => Types::EncryptionSetting
|
5463
|
+
#
|
5464
|
+
# @example Request syntax with placeholder values
|
5465
|
+
#
|
5466
|
+
# resp = client.start_bot_recommendation({
|
5467
|
+
# bot_id: "Id", # required
|
5468
|
+
# bot_version: "DraftBotVersion", # required
|
5469
|
+
# locale_id: "LocaleId", # required
|
5470
|
+
# transcript_source_setting: { # required
|
5471
|
+
# s3_bucket_transcript_source: {
|
5472
|
+
# s3_bucket_name: "S3BucketName", # required
|
5473
|
+
# path_format: {
|
5474
|
+
# object_prefixes: ["ObjectPrefix"],
|
5475
|
+
# },
|
5476
|
+
# transcript_format: "Lex", # required, accepts Lex
|
5477
|
+
# transcript_filter: {
|
5478
|
+
# lex_transcript_filter: {
|
5479
|
+
# date_range_filter: {
|
5480
|
+
# start_date_time: Time.now, # required
|
5481
|
+
# end_date_time: Time.now, # required
|
5482
|
+
# },
|
5483
|
+
# },
|
5484
|
+
# },
|
5485
|
+
# kms_key_arn: "KmsKeyArn",
|
5486
|
+
# },
|
5487
|
+
# },
|
5488
|
+
# encryption_setting: {
|
5489
|
+
# kms_key_arn: "KmsKeyArn",
|
5490
|
+
# bot_locale_export_password: "FilePassword",
|
5491
|
+
# associated_transcripts_password: "FilePassword",
|
5492
|
+
# },
|
5493
|
+
# })
|
5494
|
+
#
|
5495
|
+
# @example Response structure
|
5496
|
+
#
|
5497
|
+
# resp.bot_id #=> String
|
5498
|
+
# resp.bot_version #=> String
|
5499
|
+
# resp.locale_id #=> String
|
5500
|
+
# resp.bot_recommendation_status #=> String, one of "Processing", "Deleting", "Deleted", "Downloading", "Updating", "Available", "Failed"
|
5501
|
+
# resp.bot_recommendation_id #=> String
|
5502
|
+
# resp.creation_date_time #=> Time
|
5503
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.s3_bucket_name #=> String
|
5504
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes #=> Array
|
5505
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes[0] #=> String
|
5506
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_format #=> String, one of "Lex"
|
5507
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.start_date_time #=> Time
|
5508
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.end_date_time #=> Time
|
5509
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.kms_key_arn #=> String
|
5510
|
+
# resp.encryption_setting.kms_key_arn #=> String
|
5511
|
+
# resp.encryption_setting.bot_locale_export_password #=> String
|
5512
|
+
# resp.encryption_setting.associated_transcripts_password #=> String
|
5513
|
+
#
|
5514
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartBotRecommendation AWS API Documentation
|
5515
|
+
#
|
5516
|
+
# @overload start_bot_recommendation(params = {})
|
5517
|
+
# @param [Hash] params ({})
|
5518
|
+
def start_bot_recommendation(params = {}, options = {})
|
5519
|
+
req = build_request(:start_bot_recommendation, params)
|
5520
|
+
req.send_request(options)
|
5521
|
+
end
|
5522
|
+
|
5523
|
+
# Starts importing a bot, bot locale, or custom vocabulary from a zip
|
5524
|
+
# archive that you uploaded to an S3 bucket.
|
4941
5525
|
#
|
4942
5526
|
# @option params [required, String] :import_id
|
4943
5527
|
# The unique identifier for the import. It is included in the response
|
@@ -4948,7 +5532,7 @@ module Aws::LexModelsV2
|
|
4948
5532
|
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/API_CreateUploadUrl.html
|
4949
5533
|
#
|
4950
5534
|
# @option params [required, Types::ImportResourceSpecification] :resource_specification
|
4951
|
-
# Parameters for creating the bot or
|
5535
|
+
# Parameters for creating the bot, bot locale or custom vocabulary.
|
4952
5536
|
#
|
4953
5537
|
# @option params [required, String] :merge_strategy
|
4954
5538
|
# The strategy to use when there is a name conflict between the imported
|
@@ -4957,8 +5541,8 @@ module Aws::LexModelsV2
|
|
4957
5541
|
# fails.
|
4958
5542
|
#
|
4959
5543
|
# @option params [String] :file_password
|
4960
|
-
# The password used to encrypt the zip archive that contains the
|
4961
|
-
#
|
5544
|
+
# The password used to encrypt the zip archive that contains the
|
5545
|
+
# resource definition. You should always encrypt the zip archive to
|
4962
5546
|
# protect it during transit between your site and Amazon Lex.
|
4963
5547
|
#
|
4964
5548
|
# @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -4998,8 +5582,13 @@ module Aws::LexModelsV2
|
|
4998
5582
|
# engine: "standard", # accepts standard, neural
|
4999
5583
|
# },
|
5000
5584
|
# },
|
5585
|
+
# custom_vocabulary_import_specification: {
|
5586
|
+
# bot_id: "Id", # required
|
5587
|
+
# bot_version: "DraftBotVersion", # required
|
5588
|
+
# locale_id: "LocaleId", # required
|
5589
|
+
# },
|
5001
5590
|
# },
|
5002
|
-
# merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
|
5591
|
+
# merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict, Append
|
5003
5592
|
# file_password: "ImportExportFilePassword",
|
5004
5593
|
# })
|
5005
5594
|
#
|
@@ -5020,7 +5609,10 @@ module Aws::LexModelsV2
|
|
5020
5609
|
# resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
|
5021
5610
|
# resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
|
5022
5611
|
# resp.resource_specification.bot_locale_import_specification.voice_settings.engine #=> String, one of "standard", "neural"
|
5023
|
-
# resp.
|
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
|
5615
|
+
# resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
|
5024
5616
|
# resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
5025
5617
|
# resp.creation_date_time #=> Time
|
5026
5618
|
#
|
@@ -5341,6 +5933,7 @@ module Aws::LexModelsV2
|
|
5341
5933
|
# * {Types::UpdateBotLocaleResponse#failure_reasons #failure_reasons} => Array<String>
|
5342
5934
|
# * {Types::UpdateBotLocaleResponse#creation_date_time #creation_date_time} => Time
|
5343
5935
|
# * {Types::UpdateBotLocaleResponse#last_updated_date_time #last_updated_date_time} => Time
|
5936
|
+
# * {Types::UpdateBotLocaleResponse#recommended_actions #recommended_actions} => Array<String>
|
5344
5937
|
#
|
5345
5938
|
# @example Request syntax with placeholder values
|
5346
5939
|
#
|
@@ -5366,11 +5959,13 @@ module Aws::LexModelsV2
|
|
5366
5959
|
# resp.nlu_intent_confidence_threshold #=> Float
|
5367
5960
|
# resp.voice_settings.voice_id #=> String
|
5368
5961
|
# resp.voice_settings.engine #=> String, one of "standard", "neural"
|
5369
|
-
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
5962
|
+
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
5370
5963
|
# resp.failure_reasons #=> Array
|
5371
5964
|
# resp.failure_reasons[0] #=> String
|
5372
5965
|
# resp.creation_date_time #=> Time
|
5373
5966
|
# resp.last_updated_date_time #=> Time
|
5967
|
+
# resp.recommended_actions #=> Array
|
5968
|
+
# resp.recommended_actions[0] #=> String
|
5374
5969
|
#
|
5375
5970
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale AWS API Documentation
|
5376
5971
|
#
|
@@ -5381,6 +5976,88 @@ module Aws::LexModelsV2
|
|
5381
5976
|
req.send_request(options)
|
5382
5977
|
end
|
5383
5978
|
|
5979
|
+
# Updates an existing bot recommendation request.
|
5980
|
+
#
|
5981
|
+
# @option params [required, String] :bot_id
|
5982
|
+
# The unique identifier of the bot containing the bot recommendation to
|
5983
|
+
# be updated.
|
5984
|
+
#
|
5985
|
+
# @option params [required, String] :bot_version
|
5986
|
+
# The version of the bot containing the bot recommendation to be
|
5987
|
+
# updated.
|
5988
|
+
#
|
5989
|
+
# @option params [required, String] :locale_id
|
5990
|
+
# The identifier of the language and locale of the bot recommendation to
|
5991
|
+
# update. The string must match one of the supported locales. For more
|
5992
|
+
# information, see [Supported languages][1]
|
5993
|
+
#
|
5994
|
+
#
|
5995
|
+
#
|
5996
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
5997
|
+
#
|
5998
|
+
# @option params [required, String] :bot_recommendation_id
|
5999
|
+
# The unique identifier of the bot recommendation to be updated.
|
6000
|
+
#
|
6001
|
+
# @option params [required, Types::EncryptionSetting] :encryption_setting
|
6002
|
+
# The object representing the passwords that will be used to encrypt the
|
6003
|
+
# data related to the bot recommendation results, as well as the KMS key
|
6004
|
+
# ARN used to encrypt the associated metadata.
|
6005
|
+
#
|
6006
|
+
# @return [Types::UpdateBotRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6007
|
+
#
|
6008
|
+
# * {Types::UpdateBotRecommendationResponse#bot_id #bot_id} => String
|
6009
|
+
# * {Types::UpdateBotRecommendationResponse#bot_version #bot_version} => String
|
6010
|
+
# * {Types::UpdateBotRecommendationResponse#locale_id #locale_id} => String
|
6011
|
+
# * {Types::UpdateBotRecommendationResponse#bot_recommendation_status #bot_recommendation_status} => String
|
6012
|
+
# * {Types::UpdateBotRecommendationResponse#bot_recommendation_id #bot_recommendation_id} => String
|
6013
|
+
# * {Types::UpdateBotRecommendationResponse#creation_date_time #creation_date_time} => Time
|
6014
|
+
# * {Types::UpdateBotRecommendationResponse#last_updated_date_time #last_updated_date_time} => Time
|
6015
|
+
# * {Types::UpdateBotRecommendationResponse#transcript_source_setting #transcript_source_setting} => Types::TranscriptSourceSetting
|
6016
|
+
# * {Types::UpdateBotRecommendationResponse#encryption_setting #encryption_setting} => Types::EncryptionSetting
|
6017
|
+
#
|
6018
|
+
# @example Request syntax with placeholder values
|
6019
|
+
#
|
6020
|
+
# resp = client.update_bot_recommendation({
|
6021
|
+
# bot_id: "Id", # required
|
6022
|
+
# bot_version: "DraftBotVersion", # required
|
6023
|
+
# locale_id: "LocaleId", # required
|
6024
|
+
# bot_recommendation_id: "Id", # required
|
6025
|
+
# encryption_setting: { # required
|
6026
|
+
# kms_key_arn: "KmsKeyArn",
|
6027
|
+
# bot_locale_export_password: "FilePassword",
|
6028
|
+
# associated_transcripts_password: "FilePassword",
|
6029
|
+
# },
|
6030
|
+
# })
|
6031
|
+
#
|
6032
|
+
# @example Response structure
|
6033
|
+
#
|
6034
|
+
# resp.bot_id #=> String
|
6035
|
+
# resp.bot_version #=> String
|
6036
|
+
# resp.locale_id #=> String
|
6037
|
+
# resp.bot_recommendation_status #=> String, one of "Processing", "Deleting", "Deleted", "Downloading", "Updating", "Available", "Failed"
|
6038
|
+
# resp.bot_recommendation_id #=> String
|
6039
|
+
# resp.creation_date_time #=> Time
|
6040
|
+
# resp.last_updated_date_time #=> Time
|
6041
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.s3_bucket_name #=> String
|
6042
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes #=> Array
|
6043
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes[0] #=> String
|
6044
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_format #=> String, one of "Lex"
|
6045
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.start_date_time #=> Time
|
6046
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.end_date_time #=> Time
|
6047
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.kms_key_arn #=> String
|
6048
|
+
# resp.encryption_setting.kms_key_arn #=> String
|
6049
|
+
# resp.encryption_setting.bot_locale_export_password #=> String
|
6050
|
+
# resp.encryption_setting.associated_transcripts_password #=> String
|
6051
|
+
#
|
6052
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotRecommendation AWS API Documentation
|
6053
|
+
#
|
6054
|
+
# @overload update_bot_recommendation(params = {})
|
6055
|
+
# @param [Hash] params ({})
|
6056
|
+
def update_bot_recommendation(params = {}, options = {})
|
6057
|
+
req = build_request(:update_bot_recommendation, params)
|
6058
|
+
req.send_request(options)
|
6059
|
+
end
|
6060
|
+
|
5384
6061
|
# Updates the password used to protect an export zip archive.
|
5385
6062
|
#
|
5386
6063
|
# The password is not required. If you don't supply a password, Amazon
|
@@ -5422,7 +6099,10 @@ module Aws::LexModelsV2
|
|
5422
6099
|
# resp.resource_specification.bot_locale_export_specification.bot_id #=> String
|
5423
6100
|
# resp.resource_specification.bot_locale_export_specification.bot_version #=> String
|
5424
6101
|
# resp.resource_specification.bot_locale_export_specification.locale_id #=> String
|
5425
|
-
# resp.
|
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"
|
5426
6106
|
# resp.export_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
5427
6107
|
# resp.creation_date_time #=> Time
|
5428
6108
|
# resp.last_updated_date_time #=> Time
|
@@ -6724,7 +7404,7 @@ module Aws::LexModelsV2
|
|
6724
7404
|
# A new list of values and their optional synonyms that define the
|
6725
7405
|
# values that the slot type can take.
|
6726
7406
|
#
|
6727
|
-
# @option params [
|
7407
|
+
# @option params [Types::SlotValueSelectionSetting] :value_selection_setting
|
6728
7408
|
# The strategy that Amazon Lex should use when deciding on a value from
|
6729
7409
|
# the list of slot type values.
|
6730
7410
|
#
|
@@ -6747,6 +7427,10 @@ module Aws::LexModelsV2
|
|
6747
7427
|
#
|
6748
7428
|
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
6749
7429
|
#
|
7430
|
+
# @option params [Types::ExternalSourceSetting] :external_source_setting
|
7431
|
+
# Provides information about the external source of the slot type's
|
7432
|
+
# definition.
|
7433
|
+
#
|
6750
7434
|
# @return [Types::UpdateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6751
7435
|
#
|
6752
7436
|
# * {Types::UpdateSlotTypeResponse#slot_type_id #slot_type_id} => String
|
@@ -6760,6 +7444,7 @@ module Aws::LexModelsV2
|
|
6760
7444
|
# * {Types::UpdateSlotTypeResponse#locale_id #locale_id} => String
|
6761
7445
|
# * {Types::UpdateSlotTypeResponse#creation_date_time #creation_date_time} => Time
|
6762
7446
|
# * {Types::UpdateSlotTypeResponse#last_updated_date_time #last_updated_date_time} => Time
|
7447
|
+
# * {Types::UpdateSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
|
6763
7448
|
#
|
6764
7449
|
# @example Request syntax with placeholder values
|
6765
7450
|
#
|
@@ -6779,16 +7464,28 @@ module Aws::LexModelsV2
|
|
6779
7464
|
# ],
|
6780
7465
|
# },
|
6781
7466
|
# ],
|
6782
|
-
# value_selection_setting: {
|
7467
|
+
# value_selection_setting: {
|
6783
7468
|
# resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
|
6784
7469
|
# regex_filter: {
|
6785
7470
|
# pattern: "RegexPattern", # required
|
6786
7471
|
# },
|
7472
|
+
# advanced_recognition_setting: {
|
7473
|
+
# audio_recognition_strategy: "UseSlotValuesAsCustomVocabulary", # accepts UseSlotValuesAsCustomVocabulary
|
7474
|
+
# },
|
6787
7475
|
# },
|
6788
7476
|
# parent_slot_type_signature: "SlotTypeSignature",
|
6789
7477
|
# bot_id: "Id", # required
|
6790
7478
|
# bot_version: "DraftBotVersion", # required
|
6791
7479
|
# locale_id: "LocaleId", # required
|
7480
|
+
# external_source_setting: {
|
7481
|
+
# grammar_slot_type_setting: {
|
7482
|
+
# source: {
|
7483
|
+
# s3_bucket_name: "S3BucketName", # required
|
7484
|
+
# s3_object_key: "S3ObjectPath", # required
|
7485
|
+
# kms_key_arn: "KmsKeyArn",
|
7486
|
+
# },
|
7487
|
+
# },
|
7488
|
+
# },
|
6792
7489
|
# })
|
6793
7490
|
#
|
6794
7491
|
# @example Response structure
|
@@ -6802,12 +7499,16 @@ module Aws::LexModelsV2
|
|
6802
7499
|
# resp.slot_type_values[0].synonyms[0].value #=> String
|
6803
7500
|
# resp.value_selection_setting.resolution_strategy #=> String, one of "OriginalValue", "TopResolution"
|
6804
7501
|
# resp.value_selection_setting.regex_filter.pattern #=> String
|
7502
|
+
# resp.value_selection_setting.advanced_recognition_setting.audio_recognition_strategy #=> String, one of "UseSlotValuesAsCustomVocabulary"
|
6805
7503
|
# resp.parent_slot_type_signature #=> String
|
6806
7504
|
# resp.bot_id #=> String
|
6807
7505
|
# resp.bot_version #=> String
|
6808
7506
|
# resp.locale_id #=> String
|
6809
7507
|
# resp.creation_date_time #=> Time
|
6810
7508
|
# resp.last_updated_date_time #=> Time
|
7509
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
|
7510
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
|
7511
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
|
6811
7512
|
#
|
6812
7513
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotType AWS API Documentation
|
6813
7514
|
#
|
@@ -6831,7 +7532,7 @@ module Aws::LexModelsV2
|
|
6831
7532
|
params: params,
|
6832
7533
|
config: config)
|
6833
7534
|
context[:gem_name] = 'aws-sdk-lexmodelsv2'
|
6834
|
-
context[:gem_version] = '1.
|
7535
|
+
context[:gem_version] = '1.20.0'
|
6835
7536
|
Seahorse::Client::Request.new(handlers, context)
|
6836
7537
|
end
|
6837
7538
|
|