aws-sdk-lexmodelbuildingservice 1.26.0 → 1.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 04f18979a37113a4ef5a33facee02ce5037f0c8e
4
- data.tar.gz: 3771c0eabf4689ed08b21aa0b4ba39eda74907ec
2
+ SHA256:
3
+ metadata.gz: a20e61dc76a0911396ff749197c4b0bcbd56a6281e63ce148f1e308956fc3d03
4
+ data.tar.gz: dfae671158f82bff0198b7a598f91efbb22d4b2b79239b926bedcffc1fadd4d8
5
5
  SHA512:
6
- metadata.gz: 96a9b01248e160ae64128898893814bff7b76bd5f242adf24fcdb77259f507e7a8bc0f3f5a2bad16a3e5ab1c1620806fe9275a68248c4ab04ea65d05b7e2488f
7
- data.tar.gz: ac790b08886dfbdf2b18624f3d335f1231b003540e9873871edeea4bc716c549db7f3e9ecd383731f9737c7165b538ef0d8e01a5520ebc8d12d5fa05b643c03a
6
+ metadata.gz: 36d5efba4873bc1dae717467a005ebc109141f7e6e88f02db095ce2359f0628fa4e9e7323060af081249c349c89cc112f114fa08b314b56c40a7cbc81a56c426
7
+ data.tar.gz: 047e98ff7a54767419add31cb996e01228ccabbd6d59729e452e904270efe69816ab98dedda8076b3b7d42eee0ad8eaeb8a064fe5419c9429a677f493c834f12
@@ -24,17 +24,20 @@ require_relative 'aws-sdk-lexmodelbuildingservice/customizations'
24
24
  # methods each accept a hash of request parameters and return a response
25
25
  # structure.
26
26
  #
27
+ # lex_model_building_service = Aws::LexModelBuildingService::Client.new
28
+ # resp = lex_model_building_service.create_bot_version(params)
29
+ #
27
30
  # See {Client} for more information.
28
31
  #
29
32
  # # Errors
30
33
  #
31
- # Errors returned from Amazon Lex Model Building Service all
32
- # extend {Errors::ServiceError}.
34
+ # Errors returned from Amazon Lex Model Building Service are defined in the
35
+ # {Errors} module and all extend {Errors::ServiceError}.
33
36
  #
34
37
  # begin
35
38
  # # do stuff
36
39
  # rescue Aws::LexModelBuildingService::Errors::ServiceError
37
- # # rescues all service API errors
40
+ # # rescues all Amazon Lex Model Building Service API errors
38
41
  # end
39
42
  #
40
43
  # See {Errors} for more information.
@@ -42,6 +45,6 @@ require_relative 'aws-sdk-lexmodelbuildingservice/customizations'
42
45
  # @service
43
46
  module Aws::LexModelBuildingService
44
47
 
45
- GEM_VERSION = '1.26.0'
48
+ GEM_VERSION = '1.32.0'
46
49
 
47
50
  end
@@ -24,12 +24,25 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
24
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
25
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
26
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
27
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
30
 
30
31
  Aws::Plugins::GlobalConfiguration.add_identifier(:lexmodelbuildingservice)
31
32
 
32
33
  module Aws::LexModelBuildingService
34
+ # An API client for LexModelBuildingService. To construct a client, you need to configure a `:region` and `:credentials`.
35
+ #
36
+ # client = Aws::LexModelBuildingService::Client.new(
37
+ # region: region_name,
38
+ # credentials: credentials,
39
+ # # ...
40
+ # )
41
+ #
42
+ # For details on configuring region and credentials see
43
+ # the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
44
+ #
45
+ # See {#initialize} for a full list of supported configuration options.
33
46
  class Client < Seahorse::Client::Base
34
47
 
35
48
  include Aws::ClientStubs
@@ -57,6 +70,7 @@ module Aws::LexModelBuildingService
57
70
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
58
71
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
59
72
  add_plugin(Aws::Plugins::TransferEncoding)
73
+ add_plugin(Aws::Plugins::HttpChecksum)
60
74
  add_plugin(Aws::Plugins::SignatureV4)
61
75
  add_plugin(Aws::Plugins::Protocols::RestJson)
62
76
 
@@ -93,7 +107,7 @@ module Aws::LexModelBuildingService
93
107
  # @option options [required, String] :region
94
108
  # The AWS region to connect to. The configured `:region` is
95
109
  # used to determine the service `:endpoint`. When not passed,
96
- # a default `:region` is search for in the following locations:
110
+ # a default `:region` is searched for in the following locations:
97
111
  #
98
112
  # * `Aws.config[:region]`
99
113
  # * `ENV['AWS_REGION']`
@@ -108,6 +122,12 @@ module Aws::LexModelBuildingService
108
122
  # When set to `true`, a thread polling for endpoints will be running in
109
123
  # the background every 60 secs (default). Defaults to `false`.
110
124
  #
125
+ # @option options [Boolean] :adaptive_retry_wait_to_fill (true)
126
+ # Used only in `adaptive` retry mode. When true, the request will sleep
127
+ # until there is sufficent client side capacity to retry the request.
128
+ # When false, the request will raise a `RetryCapacityNotAvailableError` and will
129
+ # not retry instead of sleeping.
130
+ #
111
131
  # @option options [Boolean] :client_side_monitoring (false)
112
132
  # When `true`, client-side metrics will be collected for all API requests from
113
133
  # this client.
@@ -132,6 +152,10 @@ module Aws::LexModelBuildingService
132
152
  # When `true`, an attempt is made to coerce request parameters into
133
153
  # the required types.
134
154
  #
155
+ # @option options [Boolean] :correct_clock_skew (true)
156
+ # Used only in `standard` and adaptive retry modes. Specifies whether to apply
157
+ # a clock skew correction and retry requests with skewed client clocks.
158
+ #
135
159
  # @option options [Boolean] :disable_host_prefix_injection (false)
136
160
  # Set to true to disable SDK automatically adding host prefix
137
161
  # to default service endpoint when available.
@@ -139,7 +163,7 @@ module Aws::LexModelBuildingService
139
163
  # @option options [String] :endpoint
140
164
  # The client endpoint is normally constructed from the `:region`
141
165
  # option. You should only configure an `:endpoint` when connecting
142
- # to test endpoints. This should be avalid HTTP(S) URI.
166
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
143
167
  #
144
168
  # @option options [Integer] :endpoint_cache_max_entries (1000)
145
169
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -154,7 +178,7 @@ module Aws::LexModelBuildingService
154
178
  # requests fetching endpoints information. Defaults to 60 sec.
155
179
  #
156
180
  # @option options [Boolean] :endpoint_discovery (false)
157
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
181
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
158
182
  #
159
183
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
160
184
  # The log formatter.
@@ -166,15 +190,29 @@ module Aws::LexModelBuildingService
166
190
  # The Logger instance to send log messages to. If this option
167
191
  # is not set, logging will be disabled.
168
192
  #
193
+ # @option options [Integer] :max_attempts (3)
194
+ # An integer representing the maximum number attempts that will be made for
195
+ # a single request, including the initial attempt. For example,
196
+ # setting this value to 5 will result in a request being retried up to
197
+ # 4 times. Used in `standard` and `adaptive` retry modes.
198
+ #
169
199
  # @option options [String] :profile ("default")
170
200
  # Used when loading credentials from the shared credentials file
171
201
  # at HOME/.aws/credentials. When not specified, 'default' is used.
172
202
  #
203
+ # @option options [Proc] :retry_backoff
204
+ # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
205
+ # This option is only used in the `legacy` retry mode.
206
+ #
173
207
  # @option options [Float] :retry_base_delay (0.3)
174
- # The base delay in seconds used by the default backoff function.
208
+ # The base delay in seconds used by the default backoff function. This option
209
+ # is only used in the `legacy` retry mode.
175
210
  #
176
211
  # @option options [Symbol] :retry_jitter (:none)
177
- # A delay randomiser function used by the default backoff function. Some predefined functions can be referenced by name - :none, :equal, :full, otherwise a Proc that takes and returns a number.
212
+ # A delay randomiser function used by the default backoff function.
213
+ # Some predefined functions can be referenced by name - :none, :equal, :full,
214
+ # otherwise a Proc that takes and returns a number. This option is only used
215
+ # in the `legacy` retry mode.
178
216
  #
179
217
  # @see https://www.awsarchitectureblog.com/2015/03/backoff.html
180
218
  #
@@ -182,11 +220,30 @@ module Aws::LexModelBuildingService
182
220
  # The maximum number of times to retry failed requests. Only
183
221
  # ~ 500 level server errors and certain ~ 400 level client errors
184
222
  # are retried. Generally, these are throttling errors, data
185
- # checksum errors, networking errors, timeout errors and auth
186
- # errors from expired credentials.
223
+ # checksum errors, networking errors, timeout errors, auth errors,
224
+ # endpoint discovery, and errors from expired credentials.
225
+ # This option is only used in the `legacy` retry mode.
187
226
  #
188
227
  # @option options [Integer] :retry_max_delay (0)
189
- # The maximum number of seconds to delay between retries (0 for no limit) used by the default backoff function.
228
+ # The maximum number of seconds to delay between retries (0 for no limit)
229
+ # used by the default backoff function. This option is only used in the
230
+ # `legacy` retry mode.
231
+ #
232
+ # @option options [String] :retry_mode ("legacy")
233
+ # Specifies which retry algorithm to use. Values are:
234
+ #
235
+ # * `legacy` - The pre-existing retry behavior. This is default value if
236
+ # no retry mode is provided.
237
+ #
238
+ # * `standard` - A standardized set of retry rules across the AWS SDKs.
239
+ # This includes support for retry quotas, which limit the number of
240
+ # unsuccessful retries a client can make.
241
+ #
242
+ # * `adaptive` - An experimental retry mode that includes all the
243
+ # functionality of `standard` mode along with automatic client side
244
+ # throttling. This is a provisional mode that may change behavior
245
+ # in the future.
246
+ #
190
247
  #
191
248
  # @option options [String] :secret_access_key
192
249
  #
@@ -209,16 +266,15 @@ module Aws::LexModelBuildingService
209
266
  # requests through. Formatted like 'http://proxy.com:123'.
210
267
  #
211
268
  # @option options [Float] :http_open_timeout (15) The number of
212
- # seconds to wait when opening a HTTP session before rasing a
269
+ # seconds to wait when opening a HTTP session before raising a
213
270
  # `Timeout::Error`.
214
271
  #
215
272
  # @option options [Integer] :http_read_timeout (60) The default
216
273
  # number of seconds to wait for response data. This value can
217
- # safely be set
218
- # per-request on the session yeidled by {#session_for}.
274
+ # safely be set per-request on the session.
219
275
  #
220
276
  # @option options [Float] :http_idle_timeout (5) The number of
221
- # seconds a connection is allowed to sit idble before it is
277
+ # seconds a connection is allowed to sit idle before it is
222
278
  # considered stale. Stale connections are closed and removed
223
279
  # from the pool before making a request.
224
280
  #
@@ -227,7 +283,7 @@ module Aws::LexModelBuildingService
227
283
  # request body. This option has no effect unless the request has
228
284
  # "Expect" header set to "100-continue". Defaults to `nil` which
229
285
  # disables this behaviour. This value can safely be set per
230
- # request on the session yeidled by {#session_for}.
286
+ # request on the session.
231
287
  #
232
288
  # @option options [Boolean] :http_wire_trace (false) When `true`,
233
289
  # HTTP debug output will be sent to the `:logger`.
@@ -395,6 +451,7 @@ module Aws::LexModelBuildingService
395
451
  # * {Types::CreateIntentVersionResponse#created_date #created_date} => Time
396
452
  # * {Types::CreateIntentVersionResponse#version #version} => String
397
453
  # * {Types::CreateIntentVersionResponse#checksum #checksum} => String
454
+ # * {Types::CreateIntentVersionResponse#kendra_configuration #kendra_configuration} => Types::KendraConfiguration
398
455
  #
399
456
  # @example Request syntax with placeholder values
400
457
  #
@@ -463,6 +520,9 @@ module Aws::LexModelBuildingService
463
520
  # resp.created_date #=> Time
464
521
  # resp.version #=> String
465
522
  # resp.checksum #=> String
523
+ # resp.kendra_configuration.kendra_index #=> String
524
+ # resp.kendra_configuration.query_filter_string #=> String
525
+ # resp.kendra_configuration.role #=> String
466
526
  #
467
527
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateIntentVersion AWS API Documentation
468
528
  #
@@ -1095,6 +1155,8 @@ module Aws::LexModelBuildingService
1095
1155
  # * {Types::GetBotAliasesResponse#bot_aliases #bot_aliases} => Array&lt;Types::BotAliasMetadata&gt;
1096
1156
  # * {Types::GetBotAliasesResponse#next_token #next_token} => String
1097
1157
  #
1158
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1159
+ #
1098
1160
  # @example Request syntax with placeholder values
1099
1161
  #
1100
1162
  # resp = client.get_bot_aliases({
@@ -1226,6 +1288,8 @@ module Aws::LexModelBuildingService
1226
1288
  # * {Types::GetBotChannelAssociationsResponse#bot_channel_associations #bot_channel_associations} => Array&lt;Types::BotChannelAssociation&gt;
1227
1289
  # * {Types::GetBotChannelAssociationsResponse#next_token #next_token} => String
1228
1290
  #
1291
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1292
+ #
1229
1293
  # @example Request syntax with placeholder values
1230
1294
  #
1231
1295
  # resp = client.get_bot_channel_associations({
@@ -1292,6 +1356,8 @@ module Aws::LexModelBuildingService
1292
1356
  # * {Types::GetBotVersionsResponse#bots #bots} => Array&lt;Types::BotMetadata&gt;
1293
1357
  # * {Types::GetBotVersionsResponse#next_token #next_token} => String
1294
1358
  #
1359
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1360
+ #
1295
1361
  # @example Request syntax with placeholder values
1296
1362
  #
1297
1363
  # resp = client.get_bot_versions({
@@ -1351,6 +1417,8 @@ module Aws::LexModelBuildingService
1351
1417
  # * {Types::GetBotsResponse#bots #bots} => Array&lt;Types::BotMetadata&gt;
1352
1418
  # * {Types::GetBotsResponse#next_token #next_token} => String
1353
1419
  #
1420
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1421
+ #
1354
1422
  #
1355
1423
  # @example Example: To get a list of bots
1356
1424
  #
@@ -1480,6 +1548,8 @@ module Aws::LexModelBuildingService
1480
1548
  # * {Types::GetBuiltinIntentsResponse#intents #intents} => Array&lt;Types::BuiltinIntentMetadata&gt;
1481
1549
  # * {Types::GetBuiltinIntentsResponse#next_token #next_token} => String
1482
1550
  #
1551
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1552
+ #
1483
1553
  # @example Request syntax with placeholder values
1484
1554
  #
1485
1555
  # resp = client.get_builtin_intents({
@@ -1541,6 +1611,8 @@ module Aws::LexModelBuildingService
1541
1611
  # * {Types::GetBuiltinSlotTypesResponse#slot_types #slot_types} => Array&lt;Types::BuiltinSlotTypeMetadata&gt;
1542
1612
  # * {Types::GetBuiltinSlotTypesResponse#next_token #next_token} => String
1543
1613
  #
1614
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1615
+ #
1544
1616
  # @example Request syntax with placeholder values
1545
1617
  #
1546
1618
  # resp = client.get_builtin_slot_types({
@@ -1690,6 +1762,7 @@ module Aws::LexModelBuildingService
1690
1762
  # * {Types::GetIntentResponse#created_date #created_date} => Time
1691
1763
  # * {Types::GetIntentResponse#version #version} => String
1692
1764
  # * {Types::GetIntentResponse#checksum #checksum} => String
1765
+ # * {Types::GetIntentResponse#kendra_configuration #kendra_configuration} => Types::KendraConfiguration
1693
1766
  #
1694
1767
  #
1695
1768
  # @example Example: To get a information about an intent
@@ -1903,6 +1976,9 @@ module Aws::LexModelBuildingService
1903
1976
  # resp.created_date #=> Time
1904
1977
  # resp.version #=> String
1905
1978
  # resp.checksum #=> String
1979
+ # resp.kendra_configuration.kendra_index #=> String
1980
+ # resp.kendra_configuration.query_filter_string #=> String
1981
+ # resp.kendra_configuration.role #=> String
1906
1982
  #
1907
1983
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntent AWS API Documentation
1908
1984
  #
@@ -1945,6 +2021,8 @@ module Aws::LexModelBuildingService
1945
2021
  # * {Types::GetIntentVersionsResponse#intents #intents} => Array&lt;Types::IntentMetadata&gt;
1946
2022
  # * {Types::GetIntentVersionsResponse#next_token #next_token} => String
1947
2023
  #
2024
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2025
+ #
1948
2026
  # @example Request syntax with placeholder values
1949
2027
  #
1950
2028
  # resp = client.get_intent_versions({
@@ -2002,6 +2080,8 @@ module Aws::LexModelBuildingService
2002
2080
  # * {Types::GetIntentsResponse#intents #intents} => Array&lt;Types::IntentMetadata&gt;
2003
2081
  # * {Types::GetIntentsResponse#next_token #next_token} => String
2004
2082
  #
2083
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2084
+ #
2005
2085
  #
2006
2086
  # @example Example: To get a list of intents
2007
2087
  #
@@ -2170,6 +2250,8 @@ module Aws::LexModelBuildingService
2170
2250
  # * {Types::GetSlotTypeVersionsResponse#slot_types #slot_types} => Array&lt;Types::SlotTypeMetadata&gt;
2171
2251
  # * {Types::GetSlotTypeVersionsResponse#next_token #next_token} => String
2172
2252
  #
2253
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2254
+ #
2173
2255
  # @example Request syntax with placeholder values
2174
2256
  #
2175
2257
  # resp = client.get_slot_type_versions({
@@ -2227,6 +2309,8 @@ module Aws::LexModelBuildingService
2227
2309
  # * {Types::GetSlotTypesResponse#slot_types #slot_types} => Array&lt;Types::SlotTypeMetadata&gt;
2228
2310
  # * {Types::GetSlotTypesResponse#next_token #next_token} => String
2229
2311
  #
2312
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
2313
+ #
2230
2314
  #
2231
2315
  # @example Example: To get a list of slot types
2232
2316
  #
@@ -2366,6 +2450,38 @@ module Aws::LexModelBuildingService
2366
2450
  req.send_request(options)
2367
2451
  end
2368
2452
 
2453
+ # Gets a list of tags associated with the specified resource. Only bots,
2454
+ # bot aliases, and bot channels can have tags associated with them.
2455
+ #
2456
+ # @option params [required, String] :resource_arn
2457
+ # The Amazon Resource Name (ARN) of the resource to get a list of tags
2458
+ # for.
2459
+ #
2460
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2461
+ #
2462
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
2463
+ #
2464
+ # @example Request syntax with placeholder values
2465
+ #
2466
+ # resp = client.list_tags_for_resource({
2467
+ # resource_arn: "AmazonResourceName", # required
2468
+ # })
2469
+ #
2470
+ # @example Response structure
2471
+ #
2472
+ # resp.tags #=> Array
2473
+ # resp.tags[0].key #=> String
2474
+ # resp.tags[0].value #=> String
2475
+ #
2476
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/ListTagsForResource AWS API Documentation
2477
+ #
2478
+ # @overload list_tags_for_resource(params = {})
2479
+ # @param [Hash] params ({})
2480
+ def list_tags_for_resource(params = {}, options = {})
2481
+ req = build_request(:list_tags_for_resource, params)
2482
+ req.send_request(options)
2483
+ end
2484
+
2369
2485
  # Creates an Amazon Lex conversational bot or replaces an existing bot.
2370
2486
  # When you create or update a bot you are only required to specify a
2371
2487
  # name, a locale, and whether the bot is directed toward children under
@@ -2559,6 +2675,11 @@ module Aws::LexModelBuildingService
2559
2675
  # is the same as calling the `CreateBotVersion` operation. If you don't
2560
2676
  # specify `createVersion`, the default is `false`.
2561
2677
  #
2678
+ # @option params [Array<Types::Tag>] :tags
2679
+ # A list of tags to add to the bot. You can only add tags when you
2680
+ # create a bot, you can't use the `PutBot` operation to update the tags
2681
+ # on a bot. To update tags, use the `TagResource` operation.
2682
+ #
2562
2683
  # @return [Types::PutBotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2563
2684
  #
2564
2685
  # * {Types::PutBotResponse#name #name} => String
@@ -2578,6 +2699,7 @@ module Aws::LexModelBuildingService
2578
2699
  # * {Types::PutBotResponse#child_directed #child_directed} => Boolean
2579
2700
  # * {Types::PutBotResponse#create_version #create_version} => Boolean
2580
2701
  # * {Types::PutBotResponse#detect_sentiment #detect_sentiment} => Boolean
2702
+ # * {Types::PutBotResponse#tags #tags} => Array&lt;Types::Tag&gt;
2581
2703
  #
2582
2704
  #
2583
2705
  # @example Example: To create a bot
@@ -2709,6 +2831,12 @@ module Aws::LexModelBuildingService
2709
2831
  # child_directed: false, # required
2710
2832
  # detect_sentiment: false,
2711
2833
  # create_version: false,
2834
+ # tags: [
2835
+ # {
2836
+ # key: "TagKey", # required
2837
+ # value: "TagValue", # required
2838
+ # },
2839
+ # ],
2712
2840
  # })
2713
2841
  #
2714
2842
  # @example Response structure
@@ -2741,6 +2869,9 @@ module Aws::LexModelBuildingService
2741
2869
  # resp.child_directed #=> Boolean
2742
2870
  # resp.create_version #=> Boolean
2743
2871
  # resp.detect_sentiment #=> Boolean
2872
+ # resp.tags #=> Array
2873
+ # resp.tags[0].key #=> String
2874
+ # resp.tags[0].value #=> String
2744
2875
  #
2745
2876
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBot AWS API Documentation
2746
2877
  #
@@ -2785,6 +2916,12 @@ module Aws::LexModelBuildingService
2785
2916
  # @option params [Types::ConversationLogsRequest] :conversation_logs
2786
2917
  # Settings for conversation logs for the alias.
2787
2918
  #
2919
+ # @option params [Array<Types::Tag>] :tags
2920
+ # A list of tags to add to the bot alias. You can only add tags when you
2921
+ # create an alias, you can't use the `PutBotAlias` operation to update
2922
+ # the tags on a bot alias. To update tags, use the `TagResource`
2923
+ # operation.
2924
+ #
2788
2925
  # @return [Types::PutBotAliasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2789
2926
  #
2790
2927
  # * {Types::PutBotAliasResponse#name #name} => String
@@ -2795,6 +2932,7 @@ module Aws::LexModelBuildingService
2795
2932
  # * {Types::PutBotAliasResponse#created_date #created_date} => Time
2796
2933
  # * {Types::PutBotAliasResponse#checksum #checksum} => String
2797
2934
  # * {Types::PutBotAliasResponse#conversation_logs #conversation_logs} => Types::ConversationLogsResponse
2935
+ # * {Types::PutBotAliasResponse#tags #tags} => Array&lt;Types::Tag&gt;
2798
2936
  #
2799
2937
  # @example Request syntax with placeholder values
2800
2938
  #
@@ -2815,6 +2953,12 @@ module Aws::LexModelBuildingService
2815
2953
  # ],
2816
2954
  # iam_role_arn: "IamRoleArn", # required
2817
2955
  # },
2956
+ # tags: [
2957
+ # {
2958
+ # key: "TagKey", # required
2959
+ # value: "TagValue", # required
2960
+ # },
2961
+ # ],
2818
2962
  # })
2819
2963
  #
2820
2964
  # @example Response structure
@@ -2833,6 +2977,9 @@ module Aws::LexModelBuildingService
2833
2977
  # resp.conversation_logs.log_settings[0].resource_arn #=> String
2834
2978
  # resp.conversation_logs.log_settings[0].resource_prefix #=> String
2835
2979
  # resp.conversation_logs.iam_role_arn #=> String
2980
+ # resp.tags #=> Array
2981
+ # resp.tags[0].key #=> String
2982
+ # resp.tags[0].value #=> String
2836
2983
  #
2837
2984
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAlias AWS API Documentation
2838
2985
  #
@@ -3032,6 +3179,15 @@ module Aws::LexModelBuildingService
3032
3179
  # This is the same as calling the `CreateIntentVersion` operation. If
3033
3180
  # you do not specify `createVersion`, the default is `false`.
3034
3181
  #
3182
+ # @option params [Types::KendraConfiguration] :kendra_configuration
3183
+ # Configuration information required to use the
3184
+ # `AMAZON.KendraSearchIntent` intent to connect to an Amazon Kendra
3185
+ # index. For more information, see [ AMAZON.KendraSearchIntent][1].
3186
+ #
3187
+ #
3188
+ #
3189
+ # [1]: http://docs.aws.amazon.com/lex/latest/dg/built-in-intent-kendra-search.html
3190
+ #
3035
3191
  # @return [Types::PutIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3036
3192
  #
3037
3193
  # * {Types::PutIntentResponse#name #name} => String
@@ -3050,6 +3206,7 @@ module Aws::LexModelBuildingService
3050
3206
  # * {Types::PutIntentResponse#version #version} => String
3051
3207
  # * {Types::PutIntentResponse#checksum #checksum} => String
3052
3208
  # * {Types::PutIntentResponse#create_version #create_version} => Boolean
3209
+ # * {Types::PutIntentResponse#kendra_configuration #kendra_configuration} => Types::KendraConfiguration
3053
3210
  #
3054
3211
  #
3055
3212
  # @example Example: To create an intent
@@ -3419,6 +3576,11 @@ module Aws::LexModelBuildingService
3419
3576
  # parent_intent_signature: "BuiltinIntentSignature",
3420
3577
  # checksum: "String",
3421
3578
  # create_version: false,
3579
+ # kendra_configuration: {
3580
+ # kendra_index: "KendraIndexArn", # required
3581
+ # query_filter_string: "QueryFilterString",
3582
+ # role: "roleArn", # required
3583
+ # },
3422
3584
  # })
3423
3585
  #
3424
3586
  # @example Response structure
@@ -3482,6 +3644,9 @@ module Aws::LexModelBuildingService
3482
3644
  # resp.version #=> String
3483
3645
  # resp.checksum #=> String
3484
3646
  # resp.create_version #=> Boolean
3647
+ # resp.kendra_configuration.kendra_index #=> String
3648
+ # resp.kendra_configuration.query_filter_string #=> String
3649
+ # resp.kendra_configuration.role #=> String
3485
3650
  #
3486
3651
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntent AWS API Documentation
3487
3652
  #
@@ -3711,6 +3876,10 @@ module Aws::LexModelBuildingService
3711
3876
  # conflict with an existing resource. The $LASTEST version of the
3712
3877
  # existing resource is overwritten with the data from the import file.
3713
3878
  #
3879
+ # @option params [Array<Types::Tag>] :tags
3880
+ # A list of tags to add to the imported bot. You can only add tags when
3881
+ # you import a bot, you can't add tags to an intent or slot type.
3882
+ #
3714
3883
  # @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3715
3884
  #
3716
3885
  # * {Types::StartImportResponse#name #name} => String
@@ -3718,6 +3887,7 @@ module Aws::LexModelBuildingService
3718
3887
  # * {Types::StartImportResponse#merge_strategy #merge_strategy} => String
3719
3888
  # * {Types::StartImportResponse#import_id #import_id} => String
3720
3889
  # * {Types::StartImportResponse#import_status #import_status} => String
3890
+ # * {Types::StartImportResponse#tags #tags} => Array&lt;Types::Tag&gt;
3721
3891
  # * {Types::StartImportResponse#created_date #created_date} => Time
3722
3892
  #
3723
3893
  # @example Request syntax with placeholder values
@@ -3726,6 +3896,12 @@ module Aws::LexModelBuildingService
3726
3896
  # payload: "data", # required
3727
3897
  # resource_type: "BOT", # required, accepts BOT, INTENT, SLOT_TYPE
3728
3898
  # merge_strategy: "OVERWRITE_LATEST", # required, accepts OVERWRITE_LATEST, FAIL_ON_CONFLICT
3899
+ # tags: [
3900
+ # {
3901
+ # key: "TagKey", # required
3902
+ # value: "TagValue", # required
3903
+ # },
3904
+ # ],
3729
3905
  # })
3730
3906
  #
3731
3907
  # @example Response structure
@@ -3735,6 +3911,9 @@ module Aws::LexModelBuildingService
3735
3911
  # resp.merge_strategy #=> String, one of "OVERWRITE_LATEST", "FAIL_ON_CONFLICT"
3736
3912
  # resp.import_id #=> String
3737
3913
  # resp.import_status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
3914
+ # resp.tags #=> Array
3915
+ # resp.tags[0].key #=> String
3916
+ # resp.tags[0].value #=> String
3738
3917
  # resp.created_date #=> Time
3739
3918
  #
3740
3919
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartImport AWS API Documentation
@@ -3746,6 +3925,68 @@ module Aws::LexModelBuildingService
3746
3925
  req.send_request(options)
3747
3926
  end
3748
3927
 
3928
+ # Adds the specified tags to the specified resource. If a tag key
3929
+ # already exists, the existing value is replaced with the new value.
3930
+ #
3931
+ # @option params [required, String] :resource_arn
3932
+ # The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel
3933
+ # to tag.
3934
+ #
3935
+ # @option params [required, Array<Types::Tag>] :tags
3936
+ # A list of tag keys to add to the resource. If a tag key already
3937
+ # exists, the existing value is replaced with the new value.
3938
+ #
3939
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3940
+ #
3941
+ # @example Request syntax with placeholder values
3942
+ #
3943
+ # resp = client.tag_resource({
3944
+ # resource_arn: "AmazonResourceName", # required
3945
+ # tags: [ # required
3946
+ # {
3947
+ # key: "TagKey", # required
3948
+ # value: "TagValue", # required
3949
+ # },
3950
+ # ],
3951
+ # })
3952
+ #
3953
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/TagResource AWS API Documentation
3954
+ #
3955
+ # @overload tag_resource(params = {})
3956
+ # @param [Hash] params ({})
3957
+ def tag_resource(params = {}, options = {})
3958
+ req = build_request(:tag_resource, params)
3959
+ req.send_request(options)
3960
+ end
3961
+
3962
+ # Removes tags from a bot, bot alias or bot channel.
3963
+ #
3964
+ # @option params [required, String] :resource_arn
3965
+ # The Amazon Resource Name (ARN) of the resource to remove the tags
3966
+ # from.
3967
+ #
3968
+ # @option params [required, Array<String>] :tag_keys
3969
+ # A list of tag keys to remove from the resource. If a tag key does not
3970
+ # exist on the resource, it is ignored.
3971
+ #
3972
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3973
+ #
3974
+ # @example Request syntax with placeholder values
3975
+ #
3976
+ # resp = client.untag_resource({
3977
+ # resource_arn: "AmazonResourceName", # required
3978
+ # tag_keys: ["TagKey"], # required
3979
+ # })
3980
+ #
3981
+ # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UntagResource AWS API Documentation
3982
+ #
3983
+ # @overload untag_resource(params = {})
3984
+ # @param [Hash] params ({})
3985
+ def untag_resource(params = {}, options = {})
3986
+ req = build_request(:untag_resource, params)
3987
+ req.send_request(options)
3988
+ end
3989
+
3749
3990
  # @!endgroup
3750
3991
 
3751
3992
  # @param params ({})
@@ -3759,7 +4000,7 @@ module Aws::LexModelBuildingService
3759
4000
  params: params,
3760
4001
  config: config)
3761
4002
  context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
3762
- context[:gem_version] = '1.26.0'
4003
+ context[:gem_version] = '1.32.0'
3763
4004
  Seahorse::Client::Request.new(handlers, context)
3764
4005
  end
3765
4006