aws-sdk-lexmodelsv2 1.15.0 → 1.19.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 +560 -18
- data/lib/aws-sdk-lexmodelsv2/client_api.rb +341 -2
- data/lib/aws-sdk-lexmodelsv2/types.rb +1338 -18
- 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
|
|
@@ -119,7 +121,9 @@ module Aws::LexModelsV2
|
|
119
121
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
122
|
# are very aggressive. Construct and pass an instance of
|
121
123
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
124
|
+
# enable retries and extended timeouts. Instance profile credential
|
125
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
126
|
+
# to true.
|
123
127
|
#
|
124
128
|
# @option options [required, String] :region
|
125
129
|
# The AWS region to connect to. The configured `:region` is
|
@@ -173,6 +177,10 @@ module Aws::LexModelsV2
|
|
173
177
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
174
178
|
# a clock skew correction and retry requests with skewed client clocks.
|
175
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
|
+
#
|
176
184
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
177
185
|
# Set to true to disable SDK automatically adding host prefix
|
178
186
|
# to default service endpoint when available.
|
@@ -295,7 +303,7 @@ module Aws::LexModelsV2
|
|
295
303
|
# seconds to wait when opening a HTTP session before raising a
|
296
304
|
# `Timeout::Error`.
|
297
305
|
#
|
298
|
-
# @option options [
|
306
|
+
# @option options [Float] :http_read_timeout (60) The default
|
299
307
|
# number of seconds to wait for response data. This value can
|
300
308
|
# safely be set per-request on the session.
|
301
309
|
#
|
@@ -311,6 +319,9 @@ module Aws::LexModelsV2
|
|
311
319
|
# disables this behaviour. This value can safely be set per
|
312
320
|
# request on the session.
|
313
321
|
#
|
322
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
323
|
+
# in seconds.
|
324
|
+
#
|
314
325
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
315
326
|
# HTTP debug output will be sent to the `:logger`.
|
316
327
|
#
|
@@ -383,7 +394,7 @@ module Aws::LexModelsV2
|
|
383
394
|
# resp.bot_id #=> String
|
384
395
|
# resp.bot_version #=> String
|
385
396
|
# resp.locale_id #=> String
|
386
|
-
# 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"
|
387
398
|
# resp.last_build_submitted_date_time #=> Time
|
388
399
|
#
|
389
400
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BuildBotLocale AWS API Documentation
|
@@ -723,7 +734,7 @@ module Aws::LexModelsV2
|
|
723
734
|
# resp.nlu_intent_confidence_threshold #=> Float
|
724
735
|
# resp.voice_settings.voice_id #=> String
|
725
736
|
# resp.voice_settings.engine #=> String, one of "standard", "neural"
|
726
|
-
# 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"
|
727
738
|
# resp.creation_date_time #=> Time
|
728
739
|
#
|
729
740
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateBotLocale AWS API Documentation
|
@@ -2316,7 +2327,7 @@ module Aws::LexModelsV2
|
|
2316
2327
|
# values that help train the machine learning model about the values
|
2317
2328
|
# that it resolves for a slot.
|
2318
2329
|
#
|
2319
|
-
# @option params [
|
2330
|
+
# @option params [Types::SlotValueSelectionSetting] :value_selection_setting
|
2320
2331
|
# Determines the strategy that Amazon Lex uses to select a value from
|
2321
2332
|
# the list of possible values. The field can be set to one of the
|
2322
2333
|
# following values:
|
@@ -2354,6 +2365,9 @@ module Aws::LexModelsV2
|
|
2354
2365
|
#
|
2355
2366
|
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
2356
2367
|
#
|
2368
|
+
# @option params [Types::ExternalSourceSetting] :external_source_setting
|
2369
|
+
# Sets the type of external information used to create the slot type.
|
2370
|
+
#
|
2357
2371
|
# @return [Types::CreateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2358
2372
|
#
|
2359
2373
|
# * {Types::CreateSlotTypeResponse#slot_type_id #slot_type_id} => String
|
@@ -2366,6 +2380,7 @@ module Aws::LexModelsV2
|
|
2366
2380
|
# * {Types::CreateSlotTypeResponse#bot_version #bot_version} => String
|
2367
2381
|
# * {Types::CreateSlotTypeResponse#locale_id #locale_id} => String
|
2368
2382
|
# * {Types::CreateSlotTypeResponse#creation_date_time #creation_date_time} => Time
|
2383
|
+
# * {Types::CreateSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
|
2369
2384
|
#
|
2370
2385
|
# @example Request syntax with placeholder values
|
2371
2386
|
#
|
@@ -2384,7 +2399,7 @@ module Aws::LexModelsV2
|
|
2384
2399
|
# ],
|
2385
2400
|
# },
|
2386
2401
|
# ],
|
2387
|
-
# value_selection_setting: {
|
2402
|
+
# value_selection_setting: {
|
2388
2403
|
# resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
|
2389
2404
|
# regex_filter: {
|
2390
2405
|
# pattern: "RegexPattern", # required
|
@@ -2394,6 +2409,15 @@ module Aws::LexModelsV2
|
|
2394
2409
|
# bot_id: "Id", # required
|
2395
2410
|
# bot_version: "DraftBotVersion", # required
|
2396
2411
|
# locale_id: "LocaleId", # required
|
2412
|
+
# external_source_setting: {
|
2413
|
+
# grammar_slot_type_setting: {
|
2414
|
+
# source: {
|
2415
|
+
# s3_bucket_name: "S3BucketName", # required
|
2416
|
+
# s3_object_key: "S3ObjectPath", # required
|
2417
|
+
# kms_key_arn: "KmsKeyArn",
|
2418
|
+
# },
|
2419
|
+
# },
|
2420
|
+
# },
|
2397
2421
|
# })
|
2398
2422
|
#
|
2399
2423
|
# @example Response structure
|
@@ -2412,6 +2436,9 @@ module Aws::LexModelsV2
|
|
2412
2436
|
# resp.bot_version #=> String
|
2413
2437
|
# resp.locale_id #=> String
|
2414
2438
|
# resp.creation_date_time #=> Time
|
2439
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
|
2440
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
|
2441
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
|
2415
2442
|
#
|
2416
2443
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateSlotType AWS API Documentation
|
2417
2444
|
#
|
@@ -2569,7 +2596,7 @@ module Aws::LexModelsV2
|
|
2569
2596
|
# resp.bot_id #=> String
|
2570
2597
|
# resp.bot_version #=> String
|
2571
2598
|
# resp.locale_id #=> String
|
2572
|
-
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
2599
|
+
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
2573
2600
|
#
|
2574
2601
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DeleteBotLocale AWS API Documentation
|
2575
2602
|
#
|
@@ -3131,6 +3158,7 @@ module Aws::LexModelsV2
|
|
3131
3158
|
# * {Types::DescribeBotLocaleResponse#last_updated_date_time #last_updated_date_time} => Time
|
3132
3159
|
# * {Types::DescribeBotLocaleResponse#last_build_submitted_date_time #last_build_submitted_date_time} => Time
|
3133
3160
|
# * {Types::DescribeBotLocaleResponse#bot_locale_history_events #bot_locale_history_events} => Array<Types::BotLocaleHistoryEvent>
|
3161
|
+
# * {Types::DescribeBotLocaleResponse#recommended_actions #recommended_actions} => Array<String>
|
3134
3162
|
#
|
3135
3163
|
# @example Request syntax with placeholder values
|
3136
3164
|
#
|
@@ -3152,7 +3180,7 @@ module Aws::LexModelsV2
|
|
3152
3180
|
# resp.voice_settings.engine #=> String, one of "standard", "neural"
|
3153
3181
|
# resp.intents_count #=> Integer
|
3154
3182
|
# resp.slot_types_count #=> Integer
|
3155
|
-
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
3183
|
+
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
3156
3184
|
# resp.failure_reasons #=> Array
|
3157
3185
|
# resp.failure_reasons[0] #=> String
|
3158
3186
|
# resp.creation_date_time #=> Time
|
@@ -3161,6 +3189,8 @@ module Aws::LexModelsV2
|
|
3161
3189
|
# resp.bot_locale_history_events #=> Array
|
3162
3190
|
# resp.bot_locale_history_events[0].event #=> String
|
3163
3191
|
# resp.bot_locale_history_events[0].event_date #=> Time
|
3192
|
+
# resp.recommended_actions #=> Array
|
3193
|
+
# resp.recommended_actions[0] #=> String
|
3164
3194
|
#
|
3165
3195
|
#
|
3166
3196
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -3178,6 +3208,89 @@ module Aws::LexModelsV2
|
|
3178
3208
|
req.send_request(options)
|
3179
3209
|
end
|
3180
3210
|
|
3211
|
+
# Provides metadata information about a bot recommendation. This
|
3212
|
+
# information will enable you to get a description on the request
|
3213
|
+
# inputs, to download associated transcripts after processing is
|
3214
|
+
# complete, and to download intents and slot-types generated by the bot
|
3215
|
+
# recommendation.
|
3216
|
+
#
|
3217
|
+
# @option params [required, String] :bot_id
|
3218
|
+
# The unique identifier of the bot associated with the bot
|
3219
|
+
# recommendation.
|
3220
|
+
#
|
3221
|
+
# @option params [required, String] :bot_version
|
3222
|
+
# The version of the bot associated with the bot recommendation.
|
3223
|
+
#
|
3224
|
+
# @option params [required, String] :locale_id
|
3225
|
+
# The identifier of the language and locale of the bot recommendation to
|
3226
|
+
# describe. The string must match one of the supported locales. For more
|
3227
|
+
# information, see [Supported languages][1].
|
3228
|
+
#
|
3229
|
+
#
|
3230
|
+
#
|
3231
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
3232
|
+
#
|
3233
|
+
# @option params [required, String] :bot_recommendation_id
|
3234
|
+
# The identifier of the bot recommendation to describe.
|
3235
|
+
#
|
3236
|
+
# @return [Types::DescribeBotRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3237
|
+
#
|
3238
|
+
# * {Types::DescribeBotRecommendationResponse#bot_id #bot_id} => String
|
3239
|
+
# * {Types::DescribeBotRecommendationResponse#bot_version #bot_version} => String
|
3240
|
+
# * {Types::DescribeBotRecommendationResponse#locale_id #locale_id} => String
|
3241
|
+
# * {Types::DescribeBotRecommendationResponse#bot_recommendation_status #bot_recommendation_status} => String
|
3242
|
+
# * {Types::DescribeBotRecommendationResponse#bot_recommendation_id #bot_recommendation_id} => String
|
3243
|
+
# * {Types::DescribeBotRecommendationResponse#failure_reasons #failure_reasons} => Array<String>
|
3244
|
+
# * {Types::DescribeBotRecommendationResponse#creation_date_time #creation_date_time} => Time
|
3245
|
+
# * {Types::DescribeBotRecommendationResponse#last_updated_date_time #last_updated_date_time} => Time
|
3246
|
+
# * {Types::DescribeBotRecommendationResponse#transcript_source_setting #transcript_source_setting} => Types::TranscriptSourceSetting
|
3247
|
+
# * {Types::DescribeBotRecommendationResponse#encryption_setting #encryption_setting} => Types::EncryptionSetting
|
3248
|
+
# * {Types::DescribeBotRecommendationResponse#bot_recommendation_results #bot_recommendation_results} => Types::BotRecommendationResults
|
3249
|
+
#
|
3250
|
+
# @example Request syntax with placeholder values
|
3251
|
+
#
|
3252
|
+
# resp = client.describe_bot_recommendation({
|
3253
|
+
# bot_id: "Id", # required
|
3254
|
+
# bot_version: "DraftBotVersion", # required
|
3255
|
+
# locale_id: "LocaleId", # required
|
3256
|
+
# bot_recommendation_id: "Id", # required
|
3257
|
+
# })
|
3258
|
+
#
|
3259
|
+
# @example Response structure
|
3260
|
+
#
|
3261
|
+
# resp.bot_id #=> String
|
3262
|
+
# resp.bot_version #=> String
|
3263
|
+
# resp.locale_id #=> String
|
3264
|
+
# resp.bot_recommendation_status #=> String, one of "Processing", "Deleting", "Deleted", "Downloading", "Updating", "Available", "Failed"
|
3265
|
+
# resp.bot_recommendation_id #=> String
|
3266
|
+
# resp.failure_reasons #=> Array
|
3267
|
+
# resp.failure_reasons[0] #=> String
|
3268
|
+
# resp.creation_date_time #=> Time
|
3269
|
+
# resp.last_updated_date_time #=> Time
|
3270
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.s3_bucket_name #=> String
|
3271
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes #=> Array
|
3272
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes[0] #=> String
|
3273
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_format #=> String, one of "Lex"
|
3274
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.start_date_time #=> Time
|
3275
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.end_date_time #=> Time
|
3276
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.kms_key_arn #=> String
|
3277
|
+
# resp.encryption_setting.kms_key_arn #=> String
|
3278
|
+
# resp.encryption_setting.bot_locale_export_password #=> String
|
3279
|
+
# resp.encryption_setting.associated_transcripts_password #=> String
|
3280
|
+
# resp.bot_recommendation_results.bot_locale_export_url #=> String
|
3281
|
+
# resp.bot_recommendation_results.associated_transcripts_url #=> String
|
3282
|
+
# resp.bot_recommendation_results.statistics.intents.discovered_intent_count #=> Integer
|
3283
|
+
# resp.bot_recommendation_results.statistics.slot_types.discovered_slot_type_count #=> Integer
|
3284
|
+
#
|
3285
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeBotRecommendation AWS API Documentation
|
3286
|
+
#
|
3287
|
+
# @overload describe_bot_recommendation(params = {})
|
3288
|
+
# @param [Hash] params ({})
|
3289
|
+
def describe_bot_recommendation(params = {}, options = {})
|
3290
|
+
req = build_request(:describe_bot_recommendation, params)
|
3291
|
+
req.send_request(options)
|
3292
|
+
end
|
3293
|
+
|
3181
3294
|
# Provides metadata about a version of a bot.
|
3182
3295
|
#
|
3183
3296
|
# @option params [required, String] :bot_id
|
@@ -3329,7 +3442,7 @@ module Aws::LexModelsV2
|
|
3329
3442
|
# resp.resource_specification.bot_locale_import_specification.voice_settings.engine #=> String, one of "standard", "neural"
|
3330
3443
|
# resp.imported_resource_id #=> String
|
3331
3444
|
# resp.imported_resource_name #=> String
|
3332
|
-
# resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
|
3445
|
+
# resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
|
3333
3446
|
# resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
3334
3447
|
# resp.failure_reasons #=> Array
|
3335
3448
|
# resp.failure_reasons[0] #=> String
|
@@ -3844,6 +3957,7 @@ module Aws::LexModelsV2
|
|
3844
3957
|
# * {Types::DescribeSlotTypeResponse#locale_id #locale_id} => String
|
3845
3958
|
# * {Types::DescribeSlotTypeResponse#creation_date_time #creation_date_time} => Time
|
3846
3959
|
# * {Types::DescribeSlotTypeResponse#last_updated_date_time #last_updated_date_time} => Time
|
3960
|
+
# * {Types::DescribeSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
|
3847
3961
|
#
|
3848
3962
|
# @example Request syntax with placeholder values
|
3849
3963
|
#
|
@@ -3871,6 +3985,9 @@ module Aws::LexModelsV2
|
|
3871
3985
|
# resp.locale_id #=> String
|
3872
3986
|
# resp.creation_date_time #=> Time
|
3873
3987
|
# resp.last_updated_date_time #=> Time
|
3988
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
|
3989
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
|
3990
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
|
3874
3991
|
#
|
3875
3992
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/DescribeSlotType AWS API Documentation
|
3876
3993
|
#
|
@@ -4141,7 +4258,7 @@ module Aws::LexModelsV2
|
|
4141
4258
|
# resp.bot_locale_summaries[0].locale_id #=> String
|
4142
4259
|
# resp.bot_locale_summaries[0].locale_name #=> String
|
4143
4260
|
# resp.bot_locale_summaries[0].description #=> String
|
4144
|
-
# resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
4261
|
+
# resp.bot_locale_summaries[0].bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
4145
4262
|
# resp.bot_locale_summaries[0].last_updated_date_time #=> Time
|
4146
4263
|
# resp.bot_locale_summaries[0].last_build_submitted_date_time #=> Time
|
4147
4264
|
#
|
@@ -4154,6 +4271,71 @@ module Aws::LexModelsV2
|
|
4154
4271
|
req.send_request(options)
|
4155
4272
|
end
|
4156
4273
|
|
4274
|
+
# Get a list of bot recommendations that meet the specified criteria.
|
4275
|
+
#
|
4276
|
+
# @option params [required, String] :bot_id
|
4277
|
+
# The unique identifier of the bot that contains the bot recommendation
|
4278
|
+
# list.
|
4279
|
+
#
|
4280
|
+
# @option params [required, String] :bot_version
|
4281
|
+
# The version of the bot that contains the bot recommendation list.
|
4282
|
+
#
|
4283
|
+
# @option params [required, String] :locale_id
|
4284
|
+
# The identifier of the language and locale of the bot recommendation
|
4285
|
+
# list.
|
4286
|
+
#
|
4287
|
+
# @option params [Integer] :max_results
|
4288
|
+
# The maximum number of bot recommendations to return in each page of
|
4289
|
+
# results. If there are fewer results than the max page size, only the
|
4290
|
+
# actual number of results are returned.
|
4291
|
+
#
|
4292
|
+
# @option params [String] :next_token
|
4293
|
+
# If the response from the ListBotRecommendation operation contains more
|
4294
|
+
# results than specified in the maxResults parameter, a token is
|
4295
|
+
# returned in the response. Use that token in the nextToken parameter to
|
4296
|
+
# return the next page of results.
|
4297
|
+
#
|
4298
|
+
# @return [Types::ListBotRecommendationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4299
|
+
#
|
4300
|
+
# * {Types::ListBotRecommendationsResponse#bot_id #bot_id} => String
|
4301
|
+
# * {Types::ListBotRecommendationsResponse#bot_version #bot_version} => String
|
4302
|
+
# * {Types::ListBotRecommendationsResponse#locale_id #locale_id} => String
|
4303
|
+
# * {Types::ListBotRecommendationsResponse#bot_recommendation_summaries #bot_recommendation_summaries} => Array<Types::BotRecommendationSummary>
|
4304
|
+
# * {Types::ListBotRecommendationsResponse#next_token #next_token} => String
|
4305
|
+
#
|
4306
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4307
|
+
#
|
4308
|
+
# @example Request syntax with placeholder values
|
4309
|
+
#
|
4310
|
+
# resp = client.list_bot_recommendations({
|
4311
|
+
# bot_id: "Id", # required
|
4312
|
+
# bot_version: "DraftBotVersion", # required
|
4313
|
+
# locale_id: "LocaleId", # required
|
4314
|
+
# max_results: 1,
|
4315
|
+
# next_token: "NextToken",
|
4316
|
+
# })
|
4317
|
+
#
|
4318
|
+
# @example Response structure
|
4319
|
+
#
|
4320
|
+
# resp.bot_id #=> String
|
4321
|
+
# resp.bot_version #=> String
|
4322
|
+
# resp.locale_id #=> String
|
4323
|
+
# resp.bot_recommendation_summaries #=> Array
|
4324
|
+
# resp.bot_recommendation_summaries[0].bot_recommendation_status #=> String, one of "Processing", "Deleting", "Deleted", "Downloading", "Updating", "Available", "Failed"
|
4325
|
+
# resp.bot_recommendation_summaries[0].bot_recommendation_id #=> String
|
4326
|
+
# resp.bot_recommendation_summaries[0].creation_date_time #=> Time
|
4327
|
+
# resp.bot_recommendation_summaries[0].last_updated_date_time #=> Time
|
4328
|
+
# resp.next_token #=> String
|
4329
|
+
#
|
4330
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListBotRecommendations AWS API Documentation
|
4331
|
+
#
|
4332
|
+
# @overload list_bot_recommendations(params = {})
|
4333
|
+
# @param [Hash] params ({})
|
4334
|
+
def list_bot_recommendations(params = {}, options = {})
|
4335
|
+
req = build_request(:list_bot_recommendations, params)
|
4336
|
+
req.send_request(options)
|
4337
|
+
end
|
4338
|
+
|
4157
4339
|
# Gets information about all of the versions of a bot.
|
4158
4340
|
#
|
4159
4341
|
# The `ListBotVersions` operation returns a summary of each version of a
|
@@ -4581,7 +4763,7 @@ module Aws::LexModelsV2
|
|
4581
4763
|
# resp.import_summaries[0].imported_resource_id #=> String
|
4582
4764
|
# resp.import_summaries[0].imported_resource_name #=> String
|
4583
4765
|
# resp.import_summaries[0].import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
4584
|
-
# resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
|
4766
|
+
# resp.import_summaries[0].merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
|
4585
4767
|
# resp.import_summaries[0].creation_date_time #=> Time
|
4586
4768
|
# resp.import_summaries[0].last_updated_date_time #=> Time
|
4587
4769
|
# resp.next_token #=> String
|
@@ -4692,6 +4874,77 @@ module Aws::LexModelsV2
|
|
4692
4874
|
req.send_request(options)
|
4693
4875
|
end
|
4694
4876
|
|
4877
|
+
# Gets a list of recommended intents provided by the bot recommendation
|
4878
|
+
# that you can use in your bot.
|
4879
|
+
#
|
4880
|
+
# @option params [required, String] :bot_id
|
4881
|
+
# The unique identifier of the bot associated with the recommended
|
4882
|
+
# intents.
|
4883
|
+
#
|
4884
|
+
# @option params [required, String] :bot_version
|
4885
|
+
# The version of the bot that contains the recommended intents.
|
4886
|
+
#
|
4887
|
+
# @option params [required, String] :locale_id
|
4888
|
+
# The identifier of the language and locale of the recommended intents.
|
4889
|
+
#
|
4890
|
+
# @option params [required, String] :bot_recommendation_id
|
4891
|
+
# The identifier of the bot recommendation that contains the recommended
|
4892
|
+
# intents.
|
4893
|
+
#
|
4894
|
+
# @option params [String] :next_token
|
4895
|
+
# If the response from the ListRecommendedIntents operation contains
|
4896
|
+
# more results than specified in the maxResults parameter, a token is
|
4897
|
+
# returned in the response. Use that token in the nextToken parameter to
|
4898
|
+
# return the next page of results.
|
4899
|
+
#
|
4900
|
+
# @option params [Integer] :max_results
|
4901
|
+
# The maximum number of bot recommendations to return in each page of
|
4902
|
+
# results. If there are fewer results than the max page size, only the
|
4903
|
+
# actual number of results are returned.
|
4904
|
+
#
|
4905
|
+
# @return [Types::ListRecommendedIntentsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4906
|
+
#
|
4907
|
+
# * {Types::ListRecommendedIntentsResponse#bot_id #bot_id} => String
|
4908
|
+
# * {Types::ListRecommendedIntentsResponse#bot_version #bot_version} => String
|
4909
|
+
# * {Types::ListRecommendedIntentsResponse#locale_id #locale_id} => String
|
4910
|
+
# * {Types::ListRecommendedIntentsResponse#bot_recommendation_id #bot_recommendation_id} => String
|
4911
|
+
# * {Types::ListRecommendedIntentsResponse#summary_list #summary_list} => Array<Types::RecommendedIntentSummary>
|
4912
|
+
# * {Types::ListRecommendedIntentsResponse#next_token #next_token} => String
|
4913
|
+
#
|
4914
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
4915
|
+
#
|
4916
|
+
# @example Request syntax with placeholder values
|
4917
|
+
#
|
4918
|
+
# resp = client.list_recommended_intents({
|
4919
|
+
# bot_id: "Id", # required
|
4920
|
+
# bot_version: "DraftBotVersion", # required
|
4921
|
+
# locale_id: "LocaleId", # required
|
4922
|
+
# bot_recommendation_id: "Id", # required
|
4923
|
+
# next_token: "NextToken",
|
4924
|
+
# max_results: 1,
|
4925
|
+
# })
|
4926
|
+
#
|
4927
|
+
# @example Response structure
|
4928
|
+
#
|
4929
|
+
# resp.bot_id #=> String
|
4930
|
+
# resp.bot_version #=> String
|
4931
|
+
# resp.locale_id #=> String
|
4932
|
+
# resp.bot_recommendation_id #=> String
|
4933
|
+
# resp.summary_list #=> Array
|
4934
|
+
# resp.summary_list[0].intent_id #=> String
|
4935
|
+
# resp.summary_list[0].intent_name #=> String
|
4936
|
+
# resp.summary_list[0].sample_utterances_count #=> Integer
|
4937
|
+
# resp.next_token #=> String
|
4938
|
+
#
|
4939
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListRecommendedIntents AWS API Documentation
|
4940
|
+
#
|
4941
|
+
# @overload list_recommended_intents(params = {})
|
4942
|
+
# @param [Hash] params ({})
|
4943
|
+
def list_recommended_intents(params = {}, options = {})
|
4944
|
+
req = build_request(:list_recommended_intents, params)
|
4945
|
+
req.send_request(options)
|
4946
|
+
end
|
4947
|
+
|
4695
4948
|
# Gets a list of slot types that match the specified criteria.
|
4696
4949
|
#
|
4697
4950
|
# @option params [required, String] :bot_id
|
@@ -4752,7 +5005,7 @@ module Aws::LexModelsV2
|
|
4752
5005
|
# },
|
4753
5006
|
# filters: [
|
4754
5007
|
# {
|
4755
|
-
# name: "SlotTypeName", # required, accepts SlotTypeName
|
5008
|
+
# name: "SlotTypeName", # required, accepts SlotTypeName, ExternalSourceType
|
4756
5009
|
# values: ["FilterValue"], # required
|
4757
5010
|
# operator: "CO", # required, accepts CO, EQ
|
4758
5011
|
# },
|
@@ -4772,6 +5025,7 @@ module Aws::LexModelsV2
|
|
4772
5025
|
# resp.slot_type_summaries[0].description #=> String
|
4773
5026
|
# resp.slot_type_summaries[0].parent_slot_type_signature #=> String
|
4774
5027
|
# resp.slot_type_summaries[0].last_updated_date_time #=> Time
|
5028
|
+
# resp.slot_type_summaries[0].slot_type_category #=> String, one of "Custom", "Extended", "ExternalGrammar"
|
4775
5029
|
# resp.next_token #=> String
|
4776
5030
|
#
|
4777
5031
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListSlotTypes AWS API Documentation
|
@@ -4934,6 +5188,192 @@ module Aws::LexModelsV2
|
|
4934
5188
|
req.send_request(options)
|
4935
5189
|
end
|
4936
5190
|
|
5191
|
+
# Search for associated transcripts that meet the specified criteria.
|
5192
|
+
#
|
5193
|
+
# @option params [required, String] :bot_id
|
5194
|
+
# The unique identifier of the bot associated with the transcripts that
|
5195
|
+
# you are searching.
|
5196
|
+
#
|
5197
|
+
# @option params [required, String] :bot_version
|
5198
|
+
# The version of the bot containing the transcripts that you are
|
5199
|
+
# searching.
|
5200
|
+
#
|
5201
|
+
# @option params [required, String] :locale_id
|
5202
|
+
# The identifier of the language and locale of the transcripts to
|
5203
|
+
# search. The string must match one of the supported locales. For more
|
5204
|
+
# information, see [Supported languages][1]
|
5205
|
+
#
|
5206
|
+
#
|
5207
|
+
#
|
5208
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
5209
|
+
#
|
5210
|
+
# @option params [required, String] :bot_recommendation_id
|
5211
|
+
# The unique identifier of the bot recommendation associated with the
|
5212
|
+
# transcripts to search.
|
5213
|
+
#
|
5214
|
+
# @option params [String] :search_order
|
5215
|
+
# How SearchResults are ordered. Valid values are Ascending or
|
5216
|
+
# Descending. The default is Descending.
|
5217
|
+
#
|
5218
|
+
# @option params [required, Array<Types::AssociatedTranscriptFilter>] :filters
|
5219
|
+
# A list of filter objects.
|
5220
|
+
#
|
5221
|
+
# @option params [Integer] :max_results
|
5222
|
+
# The maximum number of bot recommendations to return in each page of
|
5223
|
+
# results. If there are fewer results than the max page size, only the
|
5224
|
+
# actual number of results are returned.
|
5225
|
+
#
|
5226
|
+
# @option params [Integer] :next_index
|
5227
|
+
# If the response from the SearchAssociatedTranscriptsRequest operation
|
5228
|
+
# contains more results than specified in the maxResults parameter, an
|
5229
|
+
# index is returned in the response. Use that index in the nextIndex
|
5230
|
+
# parameter to return the next page of results.
|
5231
|
+
#
|
5232
|
+
# @return [Types::SearchAssociatedTranscriptsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5233
|
+
#
|
5234
|
+
# * {Types::SearchAssociatedTranscriptsResponse#bot_id #bot_id} => String
|
5235
|
+
# * {Types::SearchAssociatedTranscriptsResponse#bot_version #bot_version} => String
|
5236
|
+
# * {Types::SearchAssociatedTranscriptsResponse#locale_id #locale_id} => String
|
5237
|
+
# * {Types::SearchAssociatedTranscriptsResponse#bot_recommendation_id #bot_recommendation_id} => String
|
5238
|
+
# * {Types::SearchAssociatedTranscriptsResponse#next_index #next_index} => Integer
|
5239
|
+
# * {Types::SearchAssociatedTranscriptsResponse#associated_transcripts #associated_transcripts} => Array<Types::AssociatedTranscript>
|
5240
|
+
# * {Types::SearchAssociatedTranscriptsResponse#total_results #total_results} => Integer
|
5241
|
+
#
|
5242
|
+
# @example Request syntax with placeholder values
|
5243
|
+
#
|
5244
|
+
# resp = client.search_associated_transcripts({
|
5245
|
+
# bot_id: "Id", # required
|
5246
|
+
# bot_version: "BotVersion", # required
|
5247
|
+
# locale_id: "LocaleId", # required
|
5248
|
+
# bot_recommendation_id: "Id", # required
|
5249
|
+
# search_order: "Ascending", # accepts Ascending, Descending
|
5250
|
+
# filters: [ # required
|
5251
|
+
# {
|
5252
|
+
# name: "IntentId", # required, accepts IntentId, SlotTypeId
|
5253
|
+
# values: ["FilterValue"], # required
|
5254
|
+
# },
|
5255
|
+
# ],
|
5256
|
+
# max_results: 1,
|
5257
|
+
# next_index: 1,
|
5258
|
+
# })
|
5259
|
+
#
|
5260
|
+
# @example Response structure
|
5261
|
+
#
|
5262
|
+
# resp.bot_id #=> String
|
5263
|
+
# resp.bot_version #=> String
|
5264
|
+
# resp.locale_id #=> String
|
5265
|
+
# resp.bot_recommendation_id #=> String
|
5266
|
+
# resp.next_index #=> Integer
|
5267
|
+
# resp.associated_transcripts #=> Array
|
5268
|
+
# resp.associated_transcripts[0].transcript #=> String
|
5269
|
+
# resp.total_results #=> Integer
|
5270
|
+
#
|
5271
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/SearchAssociatedTranscripts AWS API Documentation
|
5272
|
+
#
|
5273
|
+
# @overload search_associated_transcripts(params = {})
|
5274
|
+
# @param [Hash] params ({})
|
5275
|
+
def search_associated_transcripts(params = {}, options = {})
|
5276
|
+
req = build_request(:search_associated_transcripts, params)
|
5277
|
+
req.send_request(options)
|
5278
|
+
end
|
5279
|
+
|
5280
|
+
# Use this to provide your transcript data, and to start the bot
|
5281
|
+
# recommendation process.
|
5282
|
+
#
|
5283
|
+
# @option params [required, String] :bot_id
|
5284
|
+
# The unique identifier of the bot containing the bot recommendation.
|
5285
|
+
#
|
5286
|
+
# @option params [required, String] :bot_version
|
5287
|
+
# The version of the bot containing the bot recommendation.
|
5288
|
+
#
|
5289
|
+
# @option params [required, String] :locale_id
|
5290
|
+
# The identifier of the language and locale of the bot recommendation to
|
5291
|
+
# start. The string must match one of the supported locales. For more
|
5292
|
+
# information, see [Supported languages][1]
|
5293
|
+
#
|
5294
|
+
#
|
5295
|
+
#
|
5296
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
5297
|
+
#
|
5298
|
+
# @option params [required, Types::TranscriptSourceSetting] :transcript_source_setting
|
5299
|
+
# The object representing the Amazon S3 bucket containing the
|
5300
|
+
# transcript, as well as the associated metadata.
|
5301
|
+
#
|
5302
|
+
# @option params [Types::EncryptionSetting] :encryption_setting
|
5303
|
+
# The object representing the passwords that will be used to encrypt the
|
5304
|
+
# data related to the bot recommendation results, as well as the KMS key
|
5305
|
+
# ARN used to encrypt the associated metadata.
|
5306
|
+
#
|
5307
|
+
# @return [Types::StartBotRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5308
|
+
#
|
5309
|
+
# * {Types::StartBotRecommendationResponse#bot_id #bot_id} => String
|
5310
|
+
# * {Types::StartBotRecommendationResponse#bot_version #bot_version} => String
|
5311
|
+
# * {Types::StartBotRecommendationResponse#locale_id #locale_id} => String
|
5312
|
+
# * {Types::StartBotRecommendationResponse#bot_recommendation_status #bot_recommendation_status} => String
|
5313
|
+
# * {Types::StartBotRecommendationResponse#bot_recommendation_id #bot_recommendation_id} => String
|
5314
|
+
# * {Types::StartBotRecommendationResponse#creation_date_time #creation_date_time} => Time
|
5315
|
+
# * {Types::StartBotRecommendationResponse#transcript_source_setting #transcript_source_setting} => Types::TranscriptSourceSetting
|
5316
|
+
# * {Types::StartBotRecommendationResponse#encryption_setting #encryption_setting} => Types::EncryptionSetting
|
5317
|
+
#
|
5318
|
+
# @example Request syntax with placeholder values
|
5319
|
+
#
|
5320
|
+
# resp = client.start_bot_recommendation({
|
5321
|
+
# bot_id: "Id", # required
|
5322
|
+
# bot_version: "DraftBotVersion", # required
|
5323
|
+
# locale_id: "LocaleId", # required
|
5324
|
+
# transcript_source_setting: { # required
|
5325
|
+
# s3_bucket_transcript_source: {
|
5326
|
+
# s3_bucket_name: "S3BucketName", # required
|
5327
|
+
# path_format: {
|
5328
|
+
# object_prefixes: ["ObjectPrefix"],
|
5329
|
+
# },
|
5330
|
+
# transcript_format: "Lex", # required, accepts Lex
|
5331
|
+
# transcript_filter: {
|
5332
|
+
# lex_transcript_filter: {
|
5333
|
+
# date_range_filter: {
|
5334
|
+
# start_date_time: Time.now, # required
|
5335
|
+
# end_date_time: Time.now, # required
|
5336
|
+
# },
|
5337
|
+
# },
|
5338
|
+
# },
|
5339
|
+
# kms_key_arn: "KmsKeyArn",
|
5340
|
+
# },
|
5341
|
+
# },
|
5342
|
+
# encryption_setting: {
|
5343
|
+
# kms_key_arn: "KmsKeyArn",
|
5344
|
+
# bot_locale_export_password: "FilePassword",
|
5345
|
+
# associated_transcripts_password: "FilePassword",
|
5346
|
+
# },
|
5347
|
+
# })
|
5348
|
+
#
|
5349
|
+
# @example Response structure
|
5350
|
+
#
|
5351
|
+
# resp.bot_id #=> String
|
5352
|
+
# resp.bot_version #=> String
|
5353
|
+
# resp.locale_id #=> String
|
5354
|
+
# resp.bot_recommendation_status #=> String, one of "Processing", "Deleting", "Deleted", "Downloading", "Updating", "Available", "Failed"
|
5355
|
+
# resp.bot_recommendation_id #=> String
|
5356
|
+
# resp.creation_date_time #=> Time
|
5357
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.s3_bucket_name #=> String
|
5358
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes #=> Array
|
5359
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes[0] #=> String
|
5360
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_format #=> String, one of "Lex"
|
5361
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.start_date_time #=> Time
|
5362
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.end_date_time #=> Time
|
5363
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.kms_key_arn #=> String
|
5364
|
+
# resp.encryption_setting.kms_key_arn #=> String
|
5365
|
+
# resp.encryption_setting.bot_locale_export_password #=> String
|
5366
|
+
# resp.encryption_setting.associated_transcripts_password #=> String
|
5367
|
+
#
|
5368
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/StartBotRecommendation AWS API Documentation
|
5369
|
+
#
|
5370
|
+
# @overload start_bot_recommendation(params = {})
|
5371
|
+
# @param [Hash] params ({})
|
5372
|
+
def start_bot_recommendation(params = {}, options = {})
|
5373
|
+
req = build_request(:start_bot_recommendation, params)
|
5374
|
+
req.send_request(options)
|
5375
|
+
end
|
5376
|
+
|
4937
5377
|
# Starts importing a bot or bot locale from a zip archive that you
|
4938
5378
|
# uploaded to an S3 bucket.
|
4939
5379
|
#
|
@@ -4997,7 +5437,7 @@ module Aws::LexModelsV2
|
|
4997
5437
|
# },
|
4998
5438
|
# },
|
4999
5439
|
# },
|
5000
|
-
# merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict
|
5440
|
+
# merge_strategy: "Overwrite", # required, accepts Overwrite, FailOnConflict, Append
|
5001
5441
|
# file_password: "ImportExportFilePassword",
|
5002
5442
|
# })
|
5003
5443
|
#
|
@@ -5018,7 +5458,7 @@ module Aws::LexModelsV2
|
|
5018
5458
|
# resp.resource_specification.bot_locale_import_specification.nlu_intent_confidence_threshold #=> Float
|
5019
5459
|
# resp.resource_specification.bot_locale_import_specification.voice_settings.voice_id #=> String
|
5020
5460
|
# resp.resource_specification.bot_locale_import_specification.voice_settings.engine #=> String, one of "standard", "neural"
|
5021
|
-
# resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict"
|
5461
|
+
# resp.merge_strategy #=> String, one of "Overwrite", "FailOnConflict", "Append"
|
5022
5462
|
# resp.import_status #=> String, one of "InProgress", "Completed", "Failed", "Deleting"
|
5023
5463
|
# resp.creation_date_time #=> Time
|
5024
5464
|
#
|
@@ -5339,6 +5779,7 @@ module Aws::LexModelsV2
|
|
5339
5779
|
# * {Types::UpdateBotLocaleResponse#failure_reasons #failure_reasons} => Array<String>
|
5340
5780
|
# * {Types::UpdateBotLocaleResponse#creation_date_time #creation_date_time} => Time
|
5341
5781
|
# * {Types::UpdateBotLocaleResponse#last_updated_date_time #last_updated_date_time} => Time
|
5782
|
+
# * {Types::UpdateBotLocaleResponse#recommended_actions #recommended_actions} => Array<String>
|
5342
5783
|
#
|
5343
5784
|
# @example Request syntax with placeholder values
|
5344
5785
|
#
|
@@ -5364,11 +5805,13 @@ module Aws::LexModelsV2
|
|
5364
5805
|
# resp.nlu_intent_confidence_threshold #=> Float
|
5365
5806
|
# resp.voice_settings.voice_id #=> String
|
5366
5807
|
# resp.voice_settings.engine #=> String, one of "standard", "neural"
|
5367
|
-
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing"
|
5808
|
+
# resp.bot_locale_status #=> String, one of "Creating", "Building", "Built", "ReadyExpressTesting", "Failed", "Deleting", "NotBuilt", "Importing", "Processing"
|
5368
5809
|
# resp.failure_reasons #=> Array
|
5369
5810
|
# resp.failure_reasons[0] #=> String
|
5370
5811
|
# resp.creation_date_time #=> Time
|
5371
5812
|
# resp.last_updated_date_time #=> Time
|
5813
|
+
# resp.recommended_actions #=> Array
|
5814
|
+
# resp.recommended_actions[0] #=> String
|
5372
5815
|
#
|
5373
5816
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotLocale AWS API Documentation
|
5374
5817
|
#
|
@@ -5379,6 +5822,88 @@ module Aws::LexModelsV2
|
|
5379
5822
|
req.send_request(options)
|
5380
5823
|
end
|
5381
5824
|
|
5825
|
+
# Updates an existing bot recommendation request.
|
5826
|
+
#
|
5827
|
+
# @option params [required, String] :bot_id
|
5828
|
+
# The unique identifier of the bot containing the bot recommendation to
|
5829
|
+
# be updated.
|
5830
|
+
#
|
5831
|
+
# @option params [required, String] :bot_version
|
5832
|
+
# The version of the bot containing the bot recommendation to be
|
5833
|
+
# updated.
|
5834
|
+
#
|
5835
|
+
# @option params [required, String] :locale_id
|
5836
|
+
# The identifier of the language and locale of the bot recommendation to
|
5837
|
+
# update. The string must match one of the supported locales. For more
|
5838
|
+
# information, see [Supported languages][1]
|
5839
|
+
#
|
5840
|
+
#
|
5841
|
+
#
|
5842
|
+
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
5843
|
+
#
|
5844
|
+
# @option params [required, String] :bot_recommendation_id
|
5845
|
+
# The unique identifier of the bot recommendation to be updated.
|
5846
|
+
#
|
5847
|
+
# @option params [required, Types::EncryptionSetting] :encryption_setting
|
5848
|
+
# The object representing the passwords that will be used to encrypt the
|
5849
|
+
# data related to the bot recommendation results, as well as the KMS key
|
5850
|
+
# ARN used to encrypt the associated metadata.
|
5851
|
+
#
|
5852
|
+
# @return [Types::UpdateBotRecommendationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
5853
|
+
#
|
5854
|
+
# * {Types::UpdateBotRecommendationResponse#bot_id #bot_id} => String
|
5855
|
+
# * {Types::UpdateBotRecommendationResponse#bot_version #bot_version} => String
|
5856
|
+
# * {Types::UpdateBotRecommendationResponse#locale_id #locale_id} => String
|
5857
|
+
# * {Types::UpdateBotRecommendationResponse#bot_recommendation_status #bot_recommendation_status} => String
|
5858
|
+
# * {Types::UpdateBotRecommendationResponse#bot_recommendation_id #bot_recommendation_id} => String
|
5859
|
+
# * {Types::UpdateBotRecommendationResponse#creation_date_time #creation_date_time} => Time
|
5860
|
+
# * {Types::UpdateBotRecommendationResponse#last_updated_date_time #last_updated_date_time} => Time
|
5861
|
+
# * {Types::UpdateBotRecommendationResponse#transcript_source_setting #transcript_source_setting} => Types::TranscriptSourceSetting
|
5862
|
+
# * {Types::UpdateBotRecommendationResponse#encryption_setting #encryption_setting} => Types::EncryptionSetting
|
5863
|
+
#
|
5864
|
+
# @example Request syntax with placeholder values
|
5865
|
+
#
|
5866
|
+
# resp = client.update_bot_recommendation({
|
5867
|
+
# bot_id: "Id", # required
|
5868
|
+
# bot_version: "DraftBotVersion", # required
|
5869
|
+
# locale_id: "LocaleId", # required
|
5870
|
+
# bot_recommendation_id: "Id", # required
|
5871
|
+
# encryption_setting: { # required
|
5872
|
+
# kms_key_arn: "KmsKeyArn",
|
5873
|
+
# bot_locale_export_password: "FilePassword",
|
5874
|
+
# associated_transcripts_password: "FilePassword",
|
5875
|
+
# },
|
5876
|
+
# })
|
5877
|
+
#
|
5878
|
+
# @example Response structure
|
5879
|
+
#
|
5880
|
+
# resp.bot_id #=> String
|
5881
|
+
# resp.bot_version #=> String
|
5882
|
+
# resp.locale_id #=> String
|
5883
|
+
# resp.bot_recommendation_status #=> String, one of "Processing", "Deleting", "Deleted", "Downloading", "Updating", "Available", "Failed"
|
5884
|
+
# resp.bot_recommendation_id #=> String
|
5885
|
+
# resp.creation_date_time #=> Time
|
5886
|
+
# resp.last_updated_date_time #=> Time
|
5887
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.s3_bucket_name #=> String
|
5888
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes #=> Array
|
5889
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.path_format.object_prefixes[0] #=> String
|
5890
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_format #=> String, one of "Lex"
|
5891
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.start_date_time #=> Time
|
5892
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.transcript_filter.lex_transcript_filter.date_range_filter.end_date_time #=> Time
|
5893
|
+
# resp.transcript_source_setting.s3_bucket_transcript_source.kms_key_arn #=> String
|
5894
|
+
# resp.encryption_setting.kms_key_arn #=> String
|
5895
|
+
# resp.encryption_setting.bot_locale_export_password #=> String
|
5896
|
+
# resp.encryption_setting.associated_transcripts_password #=> String
|
5897
|
+
#
|
5898
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateBotRecommendation AWS API Documentation
|
5899
|
+
#
|
5900
|
+
# @overload update_bot_recommendation(params = {})
|
5901
|
+
# @param [Hash] params ({})
|
5902
|
+
def update_bot_recommendation(params = {}, options = {})
|
5903
|
+
req = build_request(:update_bot_recommendation, params)
|
5904
|
+
req.send_request(options)
|
5905
|
+
end
|
5906
|
+
|
5382
5907
|
# Updates the password used to protect an export zip archive.
|
5383
5908
|
#
|
5384
5909
|
# The password is not required. If you don't supply a password, Amazon
|
@@ -6722,7 +7247,7 @@ module Aws::LexModelsV2
|
|
6722
7247
|
# A new list of values and their optional synonyms that define the
|
6723
7248
|
# values that the slot type can take.
|
6724
7249
|
#
|
6725
|
-
# @option params [
|
7250
|
+
# @option params [Types::SlotValueSelectionSetting] :value_selection_setting
|
6726
7251
|
# The strategy that Amazon Lex should use when deciding on a value from
|
6727
7252
|
# the list of slot type values.
|
6728
7253
|
#
|
@@ -6745,6 +7270,10 @@ module Aws::LexModelsV2
|
|
6745
7270
|
#
|
6746
7271
|
# [1]: https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html
|
6747
7272
|
#
|
7273
|
+
# @option params [Types::ExternalSourceSetting] :external_source_setting
|
7274
|
+
# Provides information about the external source of the slot type's
|
7275
|
+
# definition.
|
7276
|
+
#
|
6748
7277
|
# @return [Types::UpdateSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6749
7278
|
#
|
6750
7279
|
# * {Types::UpdateSlotTypeResponse#slot_type_id #slot_type_id} => String
|
@@ -6758,6 +7287,7 @@ module Aws::LexModelsV2
|
|
6758
7287
|
# * {Types::UpdateSlotTypeResponse#locale_id #locale_id} => String
|
6759
7288
|
# * {Types::UpdateSlotTypeResponse#creation_date_time #creation_date_time} => Time
|
6760
7289
|
# * {Types::UpdateSlotTypeResponse#last_updated_date_time #last_updated_date_time} => Time
|
7290
|
+
# * {Types::UpdateSlotTypeResponse#external_source_setting #external_source_setting} => Types::ExternalSourceSetting
|
6761
7291
|
#
|
6762
7292
|
# @example Request syntax with placeholder values
|
6763
7293
|
#
|
@@ -6777,7 +7307,7 @@ module Aws::LexModelsV2
|
|
6777
7307
|
# ],
|
6778
7308
|
# },
|
6779
7309
|
# ],
|
6780
|
-
# value_selection_setting: {
|
7310
|
+
# value_selection_setting: {
|
6781
7311
|
# resolution_strategy: "OriginalValue", # required, accepts OriginalValue, TopResolution
|
6782
7312
|
# regex_filter: {
|
6783
7313
|
# pattern: "RegexPattern", # required
|
@@ -6787,6 +7317,15 @@ module Aws::LexModelsV2
|
|
6787
7317
|
# bot_id: "Id", # required
|
6788
7318
|
# bot_version: "DraftBotVersion", # required
|
6789
7319
|
# locale_id: "LocaleId", # required
|
7320
|
+
# external_source_setting: {
|
7321
|
+
# grammar_slot_type_setting: {
|
7322
|
+
# source: {
|
7323
|
+
# s3_bucket_name: "S3BucketName", # required
|
7324
|
+
# s3_object_key: "S3ObjectPath", # required
|
7325
|
+
# kms_key_arn: "KmsKeyArn",
|
7326
|
+
# },
|
7327
|
+
# },
|
7328
|
+
# },
|
6790
7329
|
# })
|
6791
7330
|
#
|
6792
7331
|
# @example Response structure
|
@@ -6806,6 +7345,9 @@ module Aws::LexModelsV2
|
|
6806
7345
|
# resp.locale_id #=> String
|
6807
7346
|
# resp.creation_date_time #=> Time
|
6808
7347
|
# resp.last_updated_date_time #=> Time
|
7348
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_bucket_name #=> String
|
7349
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.s3_object_key #=> String
|
7350
|
+
# resp.external_source_setting.grammar_slot_type_setting.source.kms_key_arn #=> String
|
6809
7351
|
#
|
6810
7352
|
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/UpdateSlotType AWS API Documentation
|
6811
7353
|
#
|
@@ -6829,7 +7371,7 @@ module Aws::LexModelsV2
|
|
6829
7371
|
params: params,
|
6830
7372
|
config: config)
|
6831
7373
|
context[:gem_name] = 'aws-sdk-lexmodelsv2'
|
6832
|
-
context[:gem_version] = '1.
|
7374
|
+
context[:gem_version] = '1.19.0'
|
6833
7375
|
Seahorse::Client::Request.new(handlers, context)
|
6834
7376
|
end
|
6835
7377
|
|