aws-sdk-lexmodelsv2 1.28.0 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexmodelsv2/client.rb +280 -4
- data/lib/aws-sdk-lexmodelsv2/client_api.rb +162 -0
- data/lib/aws-sdk-lexmodelsv2/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-lexmodelsv2/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-lexmodelsv2/endpoints.rb +1009 -0
- data/lib/aws-sdk-lexmodelsv2/plugins/endpoints.rb +210 -0
- data/lib/aws-sdk-lexmodelsv2/types.rb +459 -0
- data/lib/aws-sdk-lexmodelsv2.rb +6 -2
- metadata +8 -4
@@ -0,0 +1,210 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
module Aws::LexModelsV2
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::LexModelsV2::EndpointProvider',
|
17
|
+
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
|
+
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
|
+
'where `parameters` is a Struct similar to '\
|
20
|
+
'`Aws::LexModelsV2::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::LexModelsV2::EndpointProvider.new
|
23
|
+
end
|
24
|
+
|
25
|
+
# @api private
|
26
|
+
class Handler < Seahorse::Client::Handler
|
27
|
+
def call(context)
|
28
|
+
# If endpoint was discovered, do not resolve or apply the endpoint.
|
29
|
+
unless context[:discovered_endpoint]
|
30
|
+
params = parameters_for_operation(context)
|
31
|
+
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
32
|
+
|
33
|
+
context.http_request.endpoint = endpoint.url
|
34
|
+
apply_endpoint_headers(context, endpoint.headers)
|
35
|
+
end
|
36
|
+
|
37
|
+
context[:endpoint_params] = params
|
38
|
+
context[:auth_scheme] =
|
39
|
+
Aws::Endpoints.resolve_auth_scheme(context, endpoint)
|
40
|
+
|
41
|
+
@handler.call(context)
|
42
|
+
end
|
43
|
+
|
44
|
+
private
|
45
|
+
|
46
|
+
def apply_endpoint_headers(context, headers)
|
47
|
+
headers.each do |key, values|
|
48
|
+
value = values
|
49
|
+
.compact
|
50
|
+
.map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
|
51
|
+
.join(',')
|
52
|
+
|
53
|
+
context.http_request.headers[key] = value
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def parameters_for_operation(context)
|
58
|
+
case context.operation_name
|
59
|
+
when :batch_create_custom_vocabulary_item
|
60
|
+
Aws::LexModelsV2::Endpoints::BatchCreateCustomVocabularyItem.build(context)
|
61
|
+
when :batch_delete_custom_vocabulary_item
|
62
|
+
Aws::LexModelsV2::Endpoints::BatchDeleteCustomVocabularyItem.build(context)
|
63
|
+
when :batch_update_custom_vocabulary_item
|
64
|
+
Aws::LexModelsV2::Endpoints::BatchUpdateCustomVocabularyItem.build(context)
|
65
|
+
when :build_bot_locale
|
66
|
+
Aws::LexModelsV2::Endpoints::BuildBotLocale.build(context)
|
67
|
+
when :create_bot
|
68
|
+
Aws::LexModelsV2::Endpoints::CreateBot.build(context)
|
69
|
+
when :create_bot_alias
|
70
|
+
Aws::LexModelsV2::Endpoints::CreateBotAlias.build(context)
|
71
|
+
when :create_bot_locale
|
72
|
+
Aws::LexModelsV2::Endpoints::CreateBotLocale.build(context)
|
73
|
+
when :create_bot_version
|
74
|
+
Aws::LexModelsV2::Endpoints::CreateBotVersion.build(context)
|
75
|
+
when :create_export
|
76
|
+
Aws::LexModelsV2::Endpoints::CreateExport.build(context)
|
77
|
+
when :create_intent
|
78
|
+
Aws::LexModelsV2::Endpoints::CreateIntent.build(context)
|
79
|
+
when :create_resource_policy
|
80
|
+
Aws::LexModelsV2::Endpoints::CreateResourcePolicy.build(context)
|
81
|
+
when :create_resource_policy_statement
|
82
|
+
Aws::LexModelsV2::Endpoints::CreateResourcePolicyStatement.build(context)
|
83
|
+
when :create_slot
|
84
|
+
Aws::LexModelsV2::Endpoints::CreateSlot.build(context)
|
85
|
+
when :create_slot_type
|
86
|
+
Aws::LexModelsV2::Endpoints::CreateSlotType.build(context)
|
87
|
+
when :create_upload_url
|
88
|
+
Aws::LexModelsV2::Endpoints::CreateUploadUrl.build(context)
|
89
|
+
when :delete_bot
|
90
|
+
Aws::LexModelsV2::Endpoints::DeleteBot.build(context)
|
91
|
+
when :delete_bot_alias
|
92
|
+
Aws::LexModelsV2::Endpoints::DeleteBotAlias.build(context)
|
93
|
+
when :delete_bot_locale
|
94
|
+
Aws::LexModelsV2::Endpoints::DeleteBotLocale.build(context)
|
95
|
+
when :delete_bot_version
|
96
|
+
Aws::LexModelsV2::Endpoints::DeleteBotVersion.build(context)
|
97
|
+
when :delete_custom_vocabulary
|
98
|
+
Aws::LexModelsV2::Endpoints::DeleteCustomVocabulary.build(context)
|
99
|
+
when :delete_export
|
100
|
+
Aws::LexModelsV2::Endpoints::DeleteExport.build(context)
|
101
|
+
when :delete_import
|
102
|
+
Aws::LexModelsV2::Endpoints::DeleteImport.build(context)
|
103
|
+
when :delete_intent
|
104
|
+
Aws::LexModelsV2::Endpoints::DeleteIntent.build(context)
|
105
|
+
when :delete_resource_policy
|
106
|
+
Aws::LexModelsV2::Endpoints::DeleteResourcePolicy.build(context)
|
107
|
+
when :delete_resource_policy_statement
|
108
|
+
Aws::LexModelsV2::Endpoints::DeleteResourcePolicyStatement.build(context)
|
109
|
+
when :delete_slot
|
110
|
+
Aws::LexModelsV2::Endpoints::DeleteSlot.build(context)
|
111
|
+
when :delete_slot_type
|
112
|
+
Aws::LexModelsV2::Endpoints::DeleteSlotType.build(context)
|
113
|
+
when :delete_utterances
|
114
|
+
Aws::LexModelsV2::Endpoints::DeleteUtterances.build(context)
|
115
|
+
when :describe_bot
|
116
|
+
Aws::LexModelsV2::Endpoints::DescribeBot.build(context)
|
117
|
+
when :describe_bot_alias
|
118
|
+
Aws::LexModelsV2::Endpoints::DescribeBotAlias.build(context)
|
119
|
+
when :describe_bot_locale
|
120
|
+
Aws::LexModelsV2::Endpoints::DescribeBotLocale.build(context)
|
121
|
+
when :describe_bot_recommendation
|
122
|
+
Aws::LexModelsV2::Endpoints::DescribeBotRecommendation.build(context)
|
123
|
+
when :describe_bot_version
|
124
|
+
Aws::LexModelsV2::Endpoints::DescribeBotVersion.build(context)
|
125
|
+
when :describe_custom_vocabulary_metadata
|
126
|
+
Aws::LexModelsV2::Endpoints::DescribeCustomVocabularyMetadata.build(context)
|
127
|
+
when :describe_export
|
128
|
+
Aws::LexModelsV2::Endpoints::DescribeExport.build(context)
|
129
|
+
when :describe_import
|
130
|
+
Aws::LexModelsV2::Endpoints::DescribeImport.build(context)
|
131
|
+
when :describe_intent
|
132
|
+
Aws::LexModelsV2::Endpoints::DescribeIntent.build(context)
|
133
|
+
when :describe_resource_policy
|
134
|
+
Aws::LexModelsV2::Endpoints::DescribeResourcePolicy.build(context)
|
135
|
+
when :describe_slot
|
136
|
+
Aws::LexModelsV2::Endpoints::DescribeSlot.build(context)
|
137
|
+
when :describe_slot_type
|
138
|
+
Aws::LexModelsV2::Endpoints::DescribeSlotType.build(context)
|
139
|
+
when :list_aggregated_utterances
|
140
|
+
Aws::LexModelsV2::Endpoints::ListAggregatedUtterances.build(context)
|
141
|
+
when :list_bot_aliases
|
142
|
+
Aws::LexModelsV2::Endpoints::ListBotAliases.build(context)
|
143
|
+
when :list_bot_locales
|
144
|
+
Aws::LexModelsV2::Endpoints::ListBotLocales.build(context)
|
145
|
+
when :list_bot_recommendations
|
146
|
+
Aws::LexModelsV2::Endpoints::ListBotRecommendations.build(context)
|
147
|
+
when :list_bot_versions
|
148
|
+
Aws::LexModelsV2::Endpoints::ListBotVersions.build(context)
|
149
|
+
when :list_bots
|
150
|
+
Aws::LexModelsV2::Endpoints::ListBots.build(context)
|
151
|
+
when :list_built_in_intents
|
152
|
+
Aws::LexModelsV2::Endpoints::ListBuiltInIntents.build(context)
|
153
|
+
when :list_built_in_slot_types
|
154
|
+
Aws::LexModelsV2::Endpoints::ListBuiltInSlotTypes.build(context)
|
155
|
+
when :list_custom_vocabulary_items
|
156
|
+
Aws::LexModelsV2::Endpoints::ListCustomVocabularyItems.build(context)
|
157
|
+
when :list_exports
|
158
|
+
Aws::LexModelsV2::Endpoints::ListExports.build(context)
|
159
|
+
when :list_imports
|
160
|
+
Aws::LexModelsV2::Endpoints::ListImports.build(context)
|
161
|
+
when :list_intents
|
162
|
+
Aws::LexModelsV2::Endpoints::ListIntents.build(context)
|
163
|
+
when :list_recommended_intents
|
164
|
+
Aws::LexModelsV2::Endpoints::ListRecommendedIntents.build(context)
|
165
|
+
when :list_slot_types
|
166
|
+
Aws::LexModelsV2::Endpoints::ListSlotTypes.build(context)
|
167
|
+
when :list_slots
|
168
|
+
Aws::LexModelsV2::Endpoints::ListSlots.build(context)
|
169
|
+
when :list_tags_for_resource
|
170
|
+
Aws::LexModelsV2::Endpoints::ListTagsForResource.build(context)
|
171
|
+
when :search_associated_transcripts
|
172
|
+
Aws::LexModelsV2::Endpoints::SearchAssociatedTranscripts.build(context)
|
173
|
+
when :start_bot_recommendation
|
174
|
+
Aws::LexModelsV2::Endpoints::StartBotRecommendation.build(context)
|
175
|
+
when :start_import
|
176
|
+
Aws::LexModelsV2::Endpoints::StartImport.build(context)
|
177
|
+
when :stop_bot_recommendation
|
178
|
+
Aws::LexModelsV2::Endpoints::StopBotRecommendation.build(context)
|
179
|
+
when :tag_resource
|
180
|
+
Aws::LexModelsV2::Endpoints::TagResource.build(context)
|
181
|
+
when :untag_resource
|
182
|
+
Aws::LexModelsV2::Endpoints::UntagResource.build(context)
|
183
|
+
when :update_bot
|
184
|
+
Aws::LexModelsV2::Endpoints::UpdateBot.build(context)
|
185
|
+
when :update_bot_alias
|
186
|
+
Aws::LexModelsV2::Endpoints::UpdateBotAlias.build(context)
|
187
|
+
when :update_bot_locale
|
188
|
+
Aws::LexModelsV2::Endpoints::UpdateBotLocale.build(context)
|
189
|
+
when :update_bot_recommendation
|
190
|
+
Aws::LexModelsV2::Endpoints::UpdateBotRecommendation.build(context)
|
191
|
+
when :update_export
|
192
|
+
Aws::LexModelsV2::Endpoints::UpdateExport.build(context)
|
193
|
+
when :update_intent
|
194
|
+
Aws::LexModelsV2::Endpoints::UpdateIntent.build(context)
|
195
|
+
when :update_resource_policy
|
196
|
+
Aws::LexModelsV2::Endpoints::UpdateResourcePolicy.build(context)
|
197
|
+
when :update_slot
|
198
|
+
Aws::LexModelsV2::Endpoints::UpdateSlot.build(context)
|
199
|
+
when :update_slot_type
|
200
|
+
Aws::LexModelsV2::Endpoints::UpdateSlotType.build(context)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
def add_handlers(handlers, _config)
|
206
|
+
handlers.add(Handler, step: :build, priority: 75)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|
@@ -368,6 +368,257 @@ module Aws::LexModelsV2
|
|
368
368
|
include Aws::Structure
|
369
369
|
end
|
370
370
|
|
371
|
+
# @note When making an API call, you may pass BatchCreateCustomVocabularyItemRequest
|
372
|
+
# data as a hash:
|
373
|
+
#
|
374
|
+
# {
|
375
|
+
# bot_id: "Id", # required
|
376
|
+
# bot_version: "BotVersion", # required
|
377
|
+
# locale_id: "LocaleId", # required
|
378
|
+
# custom_vocabulary_item_list: [ # required
|
379
|
+
# {
|
380
|
+
# phrase: "Phrase", # required
|
381
|
+
# weight: 1,
|
382
|
+
# display_as: "Phrase",
|
383
|
+
# },
|
384
|
+
# ],
|
385
|
+
# }
|
386
|
+
#
|
387
|
+
# @!attribute [rw] bot_id
|
388
|
+
# The unique identifier of the bot to batch create the custom
|
389
|
+
# vocabulary item for.
|
390
|
+
# @return [String]
|
391
|
+
#
|
392
|
+
# @!attribute [rw] bot_version
|
393
|
+
# The bot version of the bot to batch create the custom vocabulary
|
394
|
+
# item for.
|
395
|
+
# @return [String]
|
396
|
+
#
|
397
|
+
# @!attribute [rw] locale_id
|
398
|
+
# The unique locale identifier of the bot to batch create the custom
|
399
|
+
# vocabulary item for.
|
400
|
+
# @return [String]
|
401
|
+
#
|
402
|
+
# @!attribute [rw] custom_vocabulary_item_list
|
403
|
+
# The custom vocabulary item list of the bot to batch create the
|
404
|
+
# custom vocabulary item for.
|
405
|
+
# @return [Array<Types::NewCustomVocabularyItem>]
|
406
|
+
#
|
407
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchCreateCustomVocabularyItemRequest AWS API Documentation
|
408
|
+
#
|
409
|
+
class BatchCreateCustomVocabularyItemRequest < Struct.new(
|
410
|
+
:bot_id,
|
411
|
+
:bot_version,
|
412
|
+
:locale_id,
|
413
|
+
:custom_vocabulary_item_list)
|
414
|
+
SENSITIVE = []
|
415
|
+
include Aws::Structure
|
416
|
+
end
|
417
|
+
|
418
|
+
# @!attribute [rw] bot_id
|
419
|
+
# The unique identifier of the bot to batch create response for the
|
420
|
+
# custom vocabulary item.
|
421
|
+
# @return [String]
|
422
|
+
#
|
423
|
+
# @!attribute [rw] bot_version
|
424
|
+
# The bot version of the bot to batch create the custom vocabulary
|
425
|
+
# item response for.
|
426
|
+
# @return [String]
|
427
|
+
#
|
428
|
+
# @!attribute [rw] locale_id
|
429
|
+
# The unique locale identifier of the bot to batch create the custom
|
430
|
+
# vocabulary item response for.
|
431
|
+
# @return [String]
|
432
|
+
#
|
433
|
+
# @!attribute [rw] errors
|
434
|
+
# The errors of the action to batch create the custom vocabulary item
|
435
|
+
# response for a bot.
|
436
|
+
# @return [Array<Types::FailedCustomVocabularyItem>]
|
437
|
+
#
|
438
|
+
# @!attribute [rw] resources
|
439
|
+
# The resources of the action to batch create the custom vocabulary
|
440
|
+
# item response for a bot.
|
441
|
+
# @return [Array<Types::CustomVocabularyItem>]
|
442
|
+
#
|
443
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchCreateCustomVocabularyItemResponse AWS API Documentation
|
444
|
+
#
|
445
|
+
class BatchCreateCustomVocabularyItemResponse < Struct.new(
|
446
|
+
:bot_id,
|
447
|
+
:bot_version,
|
448
|
+
:locale_id,
|
449
|
+
:errors,
|
450
|
+
:resources)
|
451
|
+
SENSITIVE = []
|
452
|
+
include Aws::Structure
|
453
|
+
end
|
454
|
+
|
455
|
+
# @note When making an API call, you may pass BatchDeleteCustomVocabularyItemRequest
|
456
|
+
# data as a hash:
|
457
|
+
#
|
458
|
+
# {
|
459
|
+
# bot_id: "Id", # required
|
460
|
+
# bot_version: "BotVersion", # required
|
461
|
+
# locale_id: "LocaleId", # required
|
462
|
+
# custom_vocabulary_item_list: [ # required
|
463
|
+
# {
|
464
|
+
# item_id: "ItemId", # required
|
465
|
+
# },
|
466
|
+
# ],
|
467
|
+
# }
|
468
|
+
#
|
469
|
+
# @!attribute [rw] bot_id
|
470
|
+
# The unique identifier of the bot to batch delete request for the
|
471
|
+
# custom vocabulary item.
|
472
|
+
# @return [String]
|
473
|
+
#
|
474
|
+
# @!attribute [rw] bot_version
|
475
|
+
# The version of the bot to batch delete request for the custom
|
476
|
+
# vocabulary item.
|
477
|
+
# @return [String]
|
478
|
+
#
|
479
|
+
# @!attribute [rw] locale_id
|
480
|
+
# The locale identifier of the bot to batch delete request for the
|
481
|
+
# custom vocabulary item.
|
482
|
+
# @return [String]
|
483
|
+
#
|
484
|
+
# @!attribute [rw] custom_vocabulary_item_list
|
485
|
+
# The custom vocabulary list to batch delete request for the custom
|
486
|
+
# vocabulary item.
|
487
|
+
# @return [Array<Types::CustomVocabularyEntryId>]
|
488
|
+
#
|
489
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchDeleteCustomVocabularyItemRequest AWS API Documentation
|
490
|
+
#
|
491
|
+
class BatchDeleteCustomVocabularyItemRequest < Struct.new(
|
492
|
+
:bot_id,
|
493
|
+
:bot_version,
|
494
|
+
:locale_id,
|
495
|
+
:custom_vocabulary_item_list)
|
496
|
+
SENSITIVE = []
|
497
|
+
include Aws::Structure
|
498
|
+
end
|
499
|
+
|
500
|
+
# @!attribute [rw] bot_id
|
501
|
+
# The unique identifier of the bot to batch delete response for the
|
502
|
+
# custom vocabulary item.
|
503
|
+
# @return [String]
|
504
|
+
#
|
505
|
+
# @!attribute [rw] bot_version
|
506
|
+
# The version of the bot to batch delete response for the custom
|
507
|
+
# vocabulary item.
|
508
|
+
# @return [String]
|
509
|
+
#
|
510
|
+
# @!attribute [rw] locale_id
|
511
|
+
# The locale identifier of the bot to batch delete response for the
|
512
|
+
# custom vocabulary item.
|
513
|
+
# @return [String]
|
514
|
+
#
|
515
|
+
# @!attribute [rw] errors
|
516
|
+
# The errors of the action to batch delete response for the custom
|
517
|
+
# vocabulary item.
|
518
|
+
# @return [Array<Types::FailedCustomVocabularyItem>]
|
519
|
+
#
|
520
|
+
# @!attribute [rw] resources
|
521
|
+
# The resources of the action to batch delete response for the custom
|
522
|
+
# vocabulary item.
|
523
|
+
# @return [Array<Types::CustomVocabularyItem>]
|
524
|
+
#
|
525
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchDeleteCustomVocabularyItemResponse AWS API Documentation
|
526
|
+
#
|
527
|
+
class BatchDeleteCustomVocabularyItemResponse < Struct.new(
|
528
|
+
:bot_id,
|
529
|
+
:bot_version,
|
530
|
+
:locale_id,
|
531
|
+
:errors,
|
532
|
+
:resources)
|
533
|
+
SENSITIVE = []
|
534
|
+
include Aws::Structure
|
535
|
+
end
|
536
|
+
|
537
|
+
# @note When making an API call, you may pass BatchUpdateCustomVocabularyItemRequest
|
538
|
+
# data as a hash:
|
539
|
+
#
|
540
|
+
# {
|
541
|
+
# bot_id: "Id", # required
|
542
|
+
# bot_version: "BotVersion", # required
|
543
|
+
# locale_id: "LocaleId", # required
|
544
|
+
# custom_vocabulary_item_list: [ # required
|
545
|
+
# {
|
546
|
+
# item_id: "ItemId", # required
|
547
|
+
# phrase: "Phrase", # required
|
548
|
+
# weight: 1,
|
549
|
+
# display_as: "Phrase",
|
550
|
+
# },
|
551
|
+
# ],
|
552
|
+
# }
|
553
|
+
#
|
554
|
+
# @!attribute [rw] bot_id
|
555
|
+
# The unique identifier of the bot to the batch update request for the
|
556
|
+
# custom vocabulary item.
|
557
|
+
# @return [String]
|
558
|
+
#
|
559
|
+
# @!attribute [rw] bot_version
|
560
|
+
# The bot version of the bot to the batch update request for the
|
561
|
+
# custom vocabulary item.
|
562
|
+
# @return [String]
|
563
|
+
#
|
564
|
+
# @!attribute [rw] locale_id
|
565
|
+
# The locale identifier of the bot to the batch update request for the
|
566
|
+
# custom vocabulary item.
|
567
|
+
# @return [String]
|
568
|
+
#
|
569
|
+
# @!attribute [rw] custom_vocabulary_item_list
|
570
|
+
# The custom vocabulary item list of the bot to the batch update
|
571
|
+
# request for the custom vocabulary item.
|
572
|
+
# @return [Array<Types::CustomVocabularyItem>]
|
573
|
+
#
|
574
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchUpdateCustomVocabularyItemRequest AWS API Documentation
|
575
|
+
#
|
576
|
+
class BatchUpdateCustomVocabularyItemRequest < Struct.new(
|
577
|
+
:bot_id,
|
578
|
+
:bot_version,
|
579
|
+
:locale_id,
|
580
|
+
:custom_vocabulary_item_list)
|
581
|
+
SENSITIVE = []
|
582
|
+
include Aws::Structure
|
583
|
+
end
|
584
|
+
|
585
|
+
# @!attribute [rw] bot_id
|
586
|
+
# The unique identifier of the bot to the batch update response for
|
587
|
+
# the custom vocabulary item.
|
588
|
+
# @return [String]
|
589
|
+
#
|
590
|
+
# @!attribute [rw] bot_version
|
591
|
+
# The bot version of the bot to the batch update response for the
|
592
|
+
# custom vocabulary item.
|
593
|
+
# @return [String]
|
594
|
+
#
|
595
|
+
# @!attribute [rw] locale_id
|
596
|
+
# The locale identifier of the bot to the batch update response for
|
597
|
+
# the custom vocabulary item.
|
598
|
+
# @return [String]
|
599
|
+
#
|
600
|
+
# @!attribute [rw] errors
|
601
|
+
# The errors of the action to batch update response for the custom
|
602
|
+
# vocabulary item.
|
603
|
+
# @return [Array<Types::FailedCustomVocabularyItem>]
|
604
|
+
#
|
605
|
+
# @!attribute [rw] resources
|
606
|
+
# The resources of the action to batch update response for the custom
|
607
|
+
# vocabulary item.
|
608
|
+
# @return [Array<Types::CustomVocabularyItem>]
|
609
|
+
#
|
610
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/BatchUpdateCustomVocabularyItemResponse AWS API Documentation
|
611
|
+
#
|
612
|
+
class BatchUpdateCustomVocabularyItemResponse < Struct.new(
|
613
|
+
:bot_id,
|
614
|
+
:bot_version,
|
615
|
+
:locale_id,
|
616
|
+
:errors,
|
617
|
+
:resources)
|
618
|
+
SENSITIVE = []
|
619
|
+
include Aws::Structure
|
620
|
+
end
|
621
|
+
|
371
622
|
# Provides a record of an event that affects a bot alias. For example,
|
372
623
|
# when the version of a bot that the alias points to changes.
|
373
624
|
#
|
@@ -8864,6 +9115,27 @@ module Aws::LexModelsV2
|
|
8864
9115
|
include Aws::Structure
|
8865
9116
|
end
|
8866
9117
|
|
9118
|
+
# The unique entry identifier for the custom vocabulary items.
|
9119
|
+
#
|
9120
|
+
# @note When making an API call, you may pass CustomVocabularyEntryId
|
9121
|
+
# data as a hash:
|
9122
|
+
#
|
9123
|
+
# {
|
9124
|
+
# item_id: "ItemId", # required
|
9125
|
+
# }
|
9126
|
+
#
|
9127
|
+
# @!attribute [rw] item_id
|
9128
|
+
# The unique item identifier for the custom vocabulary items.
|
9129
|
+
# @return [String]
|
9130
|
+
#
|
9131
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CustomVocabularyEntryId AWS API Documentation
|
9132
|
+
#
|
9133
|
+
class CustomVocabularyEntryId < Struct.new(
|
9134
|
+
:item_id)
|
9135
|
+
SENSITIVE = []
|
9136
|
+
include Aws::Structure
|
9137
|
+
end
|
9138
|
+
|
8867
9139
|
# Provides the parameters required for exporting a custom vocabulary.
|
8868
9140
|
#
|
8869
9141
|
# @note When making an API call, you may pass CustomVocabularyExportSpecification
|
@@ -8933,6 +9205,49 @@ module Aws::LexModelsV2
|
|
8933
9205
|
include Aws::Structure
|
8934
9206
|
end
|
8935
9207
|
|
9208
|
+
# The unique custom vocabulary item from the custom vocabulary list.
|
9209
|
+
#
|
9210
|
+
# @note When making an API call, you may pass CustomVocabularyItem
|
9211
|
+
# data as a hash:
|
9212
|
+
#
|
9213
|
+
# {
|
9214
|
+
# item_id: "ItemId", # required
|
9215
|
+
# phrase: "Phrase", # required
|
9216
|
+
# weight: 1,
|
9217
|
+
# display_as: "Phrase",
|
9218
|
+
# }
|
9219
|
+
#
|
9220
|
+
# @!attribute [rw] item_id
|
9221
|
+
# The unique item identifer for the custom vocabulary item from the
|
9222
|
+
# custom vocabulary list.
|
9223
|
+
# @return [String]
|
9224
|
+
#
|
9225
|
+
# @!attribute [rw] phrase
|
9226
|
+
# The unique phrase for the custom vocabulary item from the custom
|
9227
|
+
# vocabulary list.
|
9228
|
+
# @return [String]
|
9229
|
+
#
|
9230
|
+
# @!attribute [rw] weight
|
9231
|
+
# The weight assigned for the custom vocabulary item from the custom
|
9232
|
+
# vocabulary list.
|
9233
|
+
# @return [Integer]
|
9234
|
+
#
|
9235
|
+
# @!attribute [rw] display_as
|
9236
|
+
# The display as value for the custom vocabulary item from the custom
|
9237
|
+
# vocabulary list.
|
9238
|
+
# @return [String]
|
9239
|
+
#
|
9240
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CustomVocabularyItem AWS API Documentation
|
9241
|
+
#
|
9242
|
+
class CustomVocabularyItem < Struct.new(
|
9243
|
+
:item_id,
|
9244
|
+
:phrase,
|
9245
|
+
:weight,
|
9246
|
+
:display_as)
|
9247
|
+
SENSITIVE = []
|
9248
|
+
include Aws::Structure
|
9249
|
+
end
|
9250
|
+
|
8936
9251
|
# Specifies the DTMF input specifications.
|
8937
9252
|
#
|
8938
9253
|
# @note When making an API call, you may pass DTMFSpecification
|
@@ -12173,6 +12488,34 @@ module Aws::LexModelsV2
|
|
12173
12488
|
include Aws::Structure
|
12174
12489
|
end
|
12175
12490
|
|
12491
|
+
# The unique failed custom vocabulary item from the custom vocabulary
|
12492
|
+
# list.
|
12493
|
+
#
|
12494
|
+
# @!attribute [rw] item_id
|
12495
|
+
# The unique item identifer for the failed custom vocabulary item from
|
12496
|
+
# the custom vocabulary list.
|
12497
|
+
# @return [String]
|
12498
|
+
#
|
12499
|
+
# @!attribute [rw] error_message
|
12500
|
+
# The error message for the failed custom vocabulary item from the
|
12501
|
+
# custom vocabulary list.
|
12502
|
+
# @return [String]
|
12503
|
+
#
|
12504
|
+
# @!attribute [rw] error_code
|
12505
|
+
# The unique error code for the failed custom vocabulary item from the
|
12506
|
+
# custom vocabulary list.
|
12507
|
+
# @return [String]
|
12508
|
+
#
|
12509
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/FailedCustomVocabularyItem AWS API Documentation
|
12510
|
+
#
|
12511
|
+
class FailedCustomVocabularyItem < Struct.new(
|
12512
|
+
:item_id,
|
12513
|
+
:error_message,
|
12514
|
+
:error_code)
|
12515
|
+
SENSITIVE = []
|
12516
|
+
include Aws::Structure
|
12517
|
+
end
|
12518
|
+
|
12176
12519
|
# Determines if a Lambda function should be invoked for a specific
|
12177
12520
|
# intent.
|
12178
12521
|
#
|
@@ -17819,6 +18162,86 @@ module Aws::LexModelsV2
|
|
17819
18162
|
include Aws::Structure
|
17820
18163
|
end
|
17821
18164
|
|
18165
|
+
# @note When making an API call, you may pass ListCustomVocabularyItemsRequest
|
18166
|
+
# data as a hash:
|
18167
|
+
#
|
18168
|
+
# {
|
18169
|
+
# bot_id: "Id", # required
|
18170
|
+
# bot_version: "BotVersion", # required
|
18171
|
+
# locale_id: "LocaleId", # required
|
18172
|
+
# max_results: 1,
|
18173
|
+
# next_token: "NextToken",
|
18174
|
+
# }
|
18175
|
+
#
|
18176
|
+
# @!attribute [rw] bot_id
|
18177
|
+
# The unique identifier of the bot to the list custom vocabulary
|
18178
|
+
# request.
|
18179
|
+
# @return [String]
|
18180
|
+
#
|
18181
|
+
# @!attribute [rw] bot_version
|
18182
|
+
# The bot version of the bot to the list custom vocabulary request.
|
18183
|
+
# @return [String]
|
18184
|
+
#
|
18185
|
+
# @!attribute [rw] locale_id
|
18186
|
+
# The locale identifier of the bot to the list custom vocabulary
|
18187
|
+
# request.
|
18188
|
+
# @return [String]
|
18189
|
+
#
|
18190
|
+
# @!attribute [rw] max_results
|
18191
|
+
# The maximum results to the list custom vocabulary request.
|
18192
|
+
# @return [Integer]
|
18193
|
+
#
|
18194
|
+
# @!attribute [rw] next_token
|
18195
|
+
# The nextToken identifier to the list custom vocabulary request.
|
18196
|
+
# @return [String]
|
18197
|
+
#
|
18198
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListCustomVocabularyItemsRequest AWS API Documentation
|
18199
|
+
#
|
18200
|
+
class ListCustomVocabularyItemsRequest < Struct.new(
|
18201
|
+
:bot_id,
|
18202
|
+
:bot_version,
|
18203
|
+
:locale_id,
|
18204
|
+
:max_results,
|
18205
|
+
:next_token)
|
18206
|
+
SENSITIVE = []
|
18207
|
+
include Aws::Structure
|
18208
|
+
end
|
18209
|
+
|
18210
|
+
# @!attribute [rw] bot_id
|
18211
|
+
# The unique identifier of the bot to the list custom vocabulary
|
18212
|
+
# response.
|
18213
|
+
# @return [String]
|
18214
|
+
#
|
18215
|
+
# @!attribute [rw] bot_version
|
18216
|
+
# The bot version of the bot to the list custom vocabulary response.
|
18217
|
+
# @return [String]
|
18218
|
+
#
|
18219
|
+
# @!attribute [rw] locale_id
|
18220
|
+
# The locale identifier of the bot to the list custom vocabulary
|
18221
|
+
# response.
|
18222
|
+
# @return [String]
|
18223
|
+
#
|
18224
|
+
# @!attribute [rw] custom_vocabulary_items
|
18225
|
+
# The custom vocabulary items from the list custom vocabulary
|
18226
|
+
# response.
|
18227
|
+
# @return [Array<Types::CustomVocabularyItem>]
|
18228
|
+
#
|
18229
|
+
# @!attribute [rw] next_token
|
18230
|
+
# The nextToken identifier to the list custom vocabulary response.
|
18231
|
+
# @return [String]
|
18232
|
+
#
|
18233
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/ListCustomVocabularyItemsResponse AWS API Documentation
|
18234
|
+
#
|
18235
|
+
class ListCustomVocabularyItemsResponse < Struct.new(
|
18236
|
+
:bot_id,
|
18237
|
+
:bot_version,
|
18238
|
+
:locale_id,
|
18239
|
+
:custom_vocabulary_items,
|
18240
|
+
:next_token)
|
18241
|
+
SENSITIVE = []
|
18242
|
+
include Aws::Structure
|
18243
|
+
end
|
18244
|
+
|
17822
18245
|
# @note When making an API call, you may pass ListExportsRequest
|
17823
18246
|
# data as a hash:
|
17824
18247
|
#
|
@@ -18723,6 +19146,42 @@ module Aws::LexModelsV2
|
|
18723
19146
|
include Aws::Structure
|
18724
19147
|
end
|
18725
19148
|
|
19149
|
+
# The new custom vocabulary item from the custom vocabulary list.
|
19150
|
+
#
|
19151
|
+
# @note When making an API call, you may pass NewCustomVocabularyItem
|
19152
|
+
# data as a hash:
|
19153
|
+
#
|
19154
|
+
# {
|
19155
|
+
# phrase: "Phrase", # required
|
19156
|
+
# weight: 1,
|
19157
|
+
# display_as: "Phrase",
|
19158
|
+
# }
|
19159
|
+
#
|
19160
|
+
# @!attribute [rw] phrase
|
19161
|
+
# The unique phrase for the new custom vocabulary item from the custom
|
19162
|
+
# vocabulary list.
|
19163
|
+
# @return [String]
|
19164
|
+
#
|
19165
|
+
# @!attribute [rw] weight
|
19166
|
+
# The weight assigned to the new custom vocabulary item from the
|
19167
|
+
# custom vocabulary list.
|
19168
|
+
# @return [Integer]
|
19169
|
+
#
|
19170
|
+
# @!attribute [rw] display_as
|
19171
|
+
# The display as value assigned to the new custom vocabulary item from
|
19172
|
+
# the custom vocabulary list.
|
19173
|
+
# @return [String]
|
19174
|
+
#
|
19175
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/NewCustomVocabularyItem AWS API Documentation
|
19176
|
+
#
|
19177
|
+
class NewCustomVocabularyItem < Struct.new(
|
19178
|
+
:phrase,
|
19179
|
+
:weight,
|
19180
|
+
:display_as)
|
19181
|
+
SENSITIVE = []
|
19182
|
+
include Aws::Structure
|
19183
|
+
end
|
19184
|
+
|
18726
19185
|
# Determines whether Amazon Lex obscures slot values in conversation
|
18727
19186
|
# logs.
|
18728
19187
|
#
|