aws-sdk-lexmodelbuildingservice 1.25.0 → 1.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/aws-sdk-lexmodelbuildingservice.rb +7 -4
- data/lib/aws-sdk-lexmodelbuildingservice/client.rb +262 -15
- data/lib/aws-sdk-lexmodelbuildingservice/client_api.rb +102 -0
- data/lib/aws-sdk-lexmodelbuildingservice/errors.rb +29 -7
- data/lib/aws-sdk-lexmodelbuildingservice/resource.rb +1 -0
- data/lib/aws-sdk-lexmodelbuildingservice/types.rb +305 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f9019613a0fa9f0f53b0138293ac4618a1f724707e0fbf9fe3a6b363f151d34
|
4
|
+
data.tar.gz: df1d835099f43e228e822d1c3b0dd47c6001602d4b7ac85e2f6d64d1baafcb41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7307c6516f4b8b390fb1865a298170c3105cbbb00899cf05cbd8227f2db9d357276235004ef540179c545d829a957011316fa6a23a2a44e0a2dca373348de8e
|
7
|
+
data.tar.gz: 50cfce6c8db55bef11954bba99ed961df325b13ed1d1eb3b10d744b656b4de1d7efc5f1c9e41c89f20e9cbe04a3f8fe49007bd2a3e9658dbfd0a0987eb340149
|
@@ -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
|
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
|
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.
|
48
|
+
GEM_VERSION = '1.30.0'
|
46
49
|
|
47
50
|
end
|
@@ -30,6 +30,18 @@ require 'aws-sdk-core/plugins/protocols/rest_json.rb'
|
|
30
30
|
Aws::Plugins::GlobalConfiguration.add_identifier(:lexmodelbuildingservice)
|
31
31
|
|
32
32
|
module Aws::LexModelBuildingService
|
33
|
+
# An API client for LexModelBuildingService. To construct a client, you need to configure a `:region` and `:credentials`.
|
34
|
+
#
|
35
|
+
# client = Aws::LexModelBuildingService::Client.new(
|
36
|
+
# region: region_name,
|
37
|
+
# credentials: credentials,
|
38
|
+
# # ...
|
39
|
+
# )
|
40
|
+
#
|
41
|
+
# For details on configuring region and credentials see
|
42
|
+
# the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
|
43
|
+
#
|
44
|
+
# See {#initialize} for a full list of supported configuration options.
|
33
45
|
class Client < Seahorse::Client::Base
|
34
46
|
|
35
47
|
include Aws::ClientStubs
|
@@ -93,7 +105,7 @@ module Aws::LexModelBuildingService
|
|
93
105
|
# @option options [required, String] :region
|
94
106
|
# The AWS region to connect to. The configured `:region` is
|
95
107
|
# used to determine the service `:endpoint`. When not passed,
|
96
|
-
# a default `:region` is
|
108
|
+
# a default `:region` is searched for in the following locations:
|
97
109
|
#
|
98
110
|
# * `Aws.config[:region]`
|
99
111
|
# * `ENV['AWS_REGION']`
|
@@ -108,6 +120,12 @@ module Aws::LexModelBuildingService
|
|
108
120
|
# When set to `true`, a thread polling for endpoints will be running in
|
109
121
|
# the background every 60 secs (default). Defaults to `false`.
|
110
122
|
#
|
123
|
+
# @option options [Boolean] :adaptive_retry_wait_to_fill (true)
|
124
|
+
# Used only in `adaptive` retry mode. When true, the request will sleep
|
125
|
+
# until there is sufficent client side capacity to retry the request.
|
126
|
+
# When false, the request will raise a `RetryCapacityNotAvailableError` and will
|
127
|
+
# not retry instead of sleeping.
|
128
|
+
#
|
111
129
|
# @option options [Boolean] :client_side_monitoring (false)
|
112
130
|
# When `true`, client-side metrics will be collected for all API requests from
|
113
131
|
# this client.
|
@@ -132,6 +150,10 @@ module Aws::LexModelBuildingService
|
|
132
150
|
# When `true`, an attempt is made to coerce request parameters into
|
133
151
|
# the required types.
|
134
152
|
#
|
153
|
+
# @option options [Boolean] :correct_clock_skew (true)
|
154
|
+
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
155
|
+
# a clock skew correction and retry requests with skewed client clocks.
|
156
|
+
#
|
135
157
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
136
158
|
# Set to true to disable SDK automatically adding host prefix
|
137
159
|
# to default service endpoint when available.
|
@@ -139,7 +161,7 @@ module Aws::LexModelBuildingService
|
|
139
161
|
# @option options [String] :endpoint
|
140
162
|
# The client endpoint is normally constructed from the `:region`
|
141
163
|
# option. You should only configure an `:endpoint` when connecting
|
142
|
-
# to test endpoints. This should be
|
164
|
+
# to test endpoints. This should be a valid HTTP(S) URI.
|
143
165
|
#
|
144
166
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
145
167
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -154,7 +176,7 @@ module Aws::LexModelBuildingService
|
|
154
176
|
# requests fetching endpoints information. Defaults to 60 sec.
|
155
177
|
#
|
156
178
|
# @option options [Boolean] :endpoint_discovery (false)
|
157
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
179
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
158
180
|
#
|
159
181
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
160
182
|
# The log formatter.
|
@@ -166,15 +188,29 @@ module Aws::LexModelBuildingService
|
|
166
188
|
# The Logger instance to send log messages to. If this option
|
167
189
|
# is not set, logging will be disabled.
|
168
190
|
#
|
191
|
+
# @option options [Integer] :max_attempts (3)
|
192
|
+
# An integer representing the maximum number attempts that will be made for
|
193
|
+
# a single request, including the initial attempt. For example,
|
194
|
+
# setting this value to 5 will result in a request being retried up to
|
195
|
+
# 4 times. Used in `standard` and `adaptive` retry modes.
|
196
|
+
#
|
169
197
|
# @option options [String] :profile ("default")
|
170
198
|
# Used when loading credentials from the shared credentials file
|
171
199
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
172
200
|
#
|
201
|
+
# @option options [Proc] :retry_backoff
|
202
|
+
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
203
|
+
# This option is only used in the `legacy` retry mode.
|
204
|
+
#
|
173
205
|
# @option options [Float] :retry_base_delay (0.3)
|
174
|
-
# The base delay in seconds used by the default backoff function.
|
206
|
+
# The base delay in seconds used by the default backoff function. This option
|
207
|
+
# is only used in the `legacy` retry mode.
|
175
208
|
#
|
176
209
|
# @option options [Symbol] :retry_jitter (:none)
|
177
|
-
# A delay randomiser function used by the default backoff function.
|
210
|
+
# A delay randomiser function used by the default backoff function.
|
211
|
+
# Some predefined functions can be referenced by name - :none, :equal, :full,
|
212
|
+
# otherwise a Proc that takes and returns a number. This option is only used
|
213
|
+
# in the `legacy` retry mode.
|
178
214
|
#
|
179
215
|
# @see https://www.awsarchitectureblog.com/2015/03/backoff.html
|
180
216
|
#
|
@@ -182,11 +218,30 @@ module Aws::LexModelBuildingService
|
|
182
218
|
# The maximum number of times to retry failed requests. Only
|
183
219
|
# ~ 500 level server errors and certain ~ 400 level client errors
|
184
220
|
# are retried. Generally, these are throttling errors, data
|
185
|
-
# checksum errors, networking errors, timeout errors
|
186
|
-
# errors from expired credentials.
|
221
|
+
# checksum errors, networking errors, timeout errors, auth errors,
|
222
|
+
# endpoint discovery, and errors from expired credentials.
|
223
|
+
# This option is only used in the `legacy` retry mode.
|
187
224
|
#
|
188
225
|
# @option options [Integer] :retry_max_delay (0)
|
189
|
-
# The maximum number of seconds to delay between retries (0 for no limit)
|
226
|
+
# The maximum number of seconds to delay between retries (0 for no limit)
|
227
|
+
# used by the default backoff function. This option is only used in the
|
228
|
+
# `legacy` retry mode.
|
229
|
+
#
|
230
|
+
# @option options [String] :retry_mode ("legacy")
|
231
|
+
# Specifies which retry algorithm to use. Values are:
|
232
|
+
#
|
233
|
+
# * `legacy` - The pre-existing retry behavior. This is default value if
|
234
|
+
# no retry mode is provided.
|
235
|
+
#
|
236
|
+
# * `standard` - A standardized set of retry rules across the AWS SDKs.
|
237
|
+
# This includes support for retry quotas, which limit the number of
|
238
|
+
# unsuccessful retries a client can make.
|
239
|
+
#
|
240
|
+
# * `adaptive` - An experimental retry mode that includes all the
|
241
|
+
# functionality of `standard` mode along with automatic client side
|
242
|
+
# throttling. This is a provisional mode that may change behavior
|
243
|
+
# in the future.
|
244
|
+
#
|
190
245
|
#
|
191
246
|
# @option options [String] :secret_access_key
|
192
247
|
#
|
@@ -209,16 +264,15 @@ module Aws::LexModelBuildingService
|
|
209
264
|
# requests through. Formatted like 'http://proxy.com:123'.
|
210
265
|
#
|
211
266
|
# @option options [Float] :http_open_timeout (15) The number of
|
212
|
-
# seconds to wait when opening a HTTP session before
|
267
|
+
# seconds to wait when opening a HTTP session before raising a
|
213
268
|
# `Timeout::Error`.
|
214
269
|
#
|
215
270
|
# @option options [Integer] :http_read_timeout (60) The default
|
216
271
|
# 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}.
|
272
|
+
# safely be set per-request on the session.
|
219
273
|
#
|
220
274
|
# @option options [Float] :http_idle_timeout (5) The number of
|
221
|
-
# seconds a connection is allowed to sit
|
275
|
+
# seconds a connection is allowed to sit idle before it is
|
222
276
|
# considered stale. Stale connections are closed and removed
|
223
277
|
# from the pool before making a request.
|
224
278
|
#
|
@@ -227,7 +281,7 @@ module Aws::LexModelBuildingService
|
|
227
281
|
# request body. This option has no effect unless the request has
|
228
282
|
# "Expect" header set to "100-continue". Defaults to `nil` which
|
229
283
|
# disables this behaviour. This value can safely be set per
|
230
|
-
# request on the session
|
284
|
+
# request on the session.
|
231
285
|
#
|
232
286
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
233
287
|
# HTTP debug output will be sent to the `:logger`.
|
@@ -514,6 +568,8 @@ module Aws::LexModelBuildingService
|
|
514
568
|
# * {Types::CreateSlotTypeVersionResponse#version #version} => String
|
515
569
|
# * {Types::CreateSlotTypeVersionResponse#checksum #checksum} => String
|
516
570
|
# * {Types::CreateSlotTypeVersionResponse#value_selection_strategy #value_selection_strategy} => String
|
571
|
+
# * {Types::CreateSlotTypeVersionResponse#parent_slot_type_signature #parent_slot_type_signature} => String
|
572
|
+
# * {Types::CreateSlotTypeVersionResponse#slot_type_configurations #slot_type_configurations} => Array<Types::SlotTypeConfiguration>
|
517
573
|
#
|
518
574
|
# @example Request syntax with placeholder values
|
519
575
|
#
|
@@ -535,6 +591,9 @@ module Aws::LexModelBuildingService
|
|
535
591
|
# resp.version #=> String
|
536
592
|
# resp.checksum #=> String
|
537
593
|
# resp.value_selection_strategy #=> String, one of "ORIGINAL_VALUE", "TOP_RESOLUTION"
|
594
|
+
# resp.parent_slot_type_signature #=> String
|
595
|
+
# resp.slot_type_configurations #=> Array
|
596
|
+
# resp.slot_type_configurations[0].regex_configuration.pattern #=> String
|
538
597
|
#
|
539
598
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateSlotTypeVersion AWS API Documentation
|
540
599
|
#
|
@@ -1090,6 +1149,8 @@ module Aws::LexModelBuildingService
|
|
1090
1149
|
# * {Types::GetBotAliasesResponse#bot_aliases #bot_aliases} => Array<Types::BotAliasMetadata>
|
1091
1150
|
# * {Types::GetBotAliasesResponse#next_token #next_token} => String
|
1092
1151
|
#
|
1152
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1153
|
+
#
|
1093
1154
|
# @example Request syntax with placeholder values
|
1094
1155
|
#
|
1095
1156
|
# resp = client.get_bot_aliases({
|
@@ -1221,6 +1282,8 @@ module Aws::LexModelBuildingService
|
|
1221
1282
|
# * {Types::GetBotChannelAssociationsResponse#bot_channel_associations #bot_channel_associations} => Array<Types::BotChannelAssociation>
|
1222
1283
|
# * {Types::GetBotChannelAssociationsResponse#next_token #next_token} => String
|
1223
1284
|
#
|
1285
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1286
|
+
#
|
1224
1287
|
# @example Request syntax with placeholder values
|
1225
1288
|
#
|
1226
1289
|
# resp = client.get_bot_channel_associations({
|
@@ -1287,6 +1350,8 @@ module Aws::LexModelBuildingService
|
|
1287
1350
|
# * {Types::GetBotVersionsResponse#bots #bots} => Array<Types::BotMetadata>
|
1288
1351
|
# * {Types::GetBotVersionsResponse#next_token #next_token} => String
|
1289
1352
|
#
|
1353
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1354
|
+
#
|
1290
1355
|
# @example Request syntax with placeholder values
|
1291
1356
|
#
|
1292
1357
|
# resp = client.get_bot_versions({
|
@@ -1346,6 +1411,8 @@ module Aws::LexModelBuildingService
|
|
1346
1411
|
# * {Types::GetBotsResponse#bots #bots} => Array<Types::BotMetadata>
|
1347
1412
|
# * {Types::GetBotsResponse#next_token #next_token} => String
|
1348
1413
|
#
|
1414
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1415
|
+
#
|
1349
1416
|
#
|
1350
1417
|
# @example Example: To get a list of bots
|
1351
1418
|
#
|
@@ -1475,6 +1542,8 @@ module Aws::LexModelBuildingService
|
|
1475
1542
|
# * {Types::GetBuiltinIntentsResponse#intents #intents} => Array<Types::BuiltinIntentMetadata>
|
1476
1543
|
# * {Types::GetBuiltinIntentsResponse#next_token #next_token} => String
|
1477
1544
|
#
|
1545
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1546
|
+
#
|
1478
1547
|
# @example Request syntax with placeholder values
|
1479
1548
|
#
|
1480
1549
|
# resp = client.get_builtin_intents({
|
@@ -1536,6 +1605,8 @@ module Aws::LexModelBuildingService
|
|
1536
1605
|
# * {Types::GetBuiltinSlotTypesResponse#slot_types #slot_types} => Array<Types::BuiltinSlotTypeMetadata>
|
1537
1606
|
# * {Types::GetBuiltinSlotTypesResponse#next_token #next_token} => String
|
1538
1607
|
#
|
1608
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1609
|
+
#
|
1539
1610
|
# @example Request syntax with placeholder values
|
1540
1611
|
#
|
1541
1612
|
# resp = client.get_builtin_slot_types({
|
@@ -1940,6 +2011,8 @@ module Aws::LexModelBuildingService
|
|
1940
2011
|
# * {Types::GetIntentVersionsResponse#intents #intents} => Array<Types::IntentMetadata>
|
1941
2012
|
# * {Types::GetIntentVersionsResponse#next_token #next_token} => String
|
1942
2013
|
#
|
2014
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2015
|
+
#
|
1943
2016
|
# @example Request syntax with placeholder values
|
1944
2017
|
#
|
1945
2018
|
# resp = client.get_intent_versions({
|
@@ -1997,6 +2070,8 @@ module Aws::LexModelBuildingService
|
|
1997
2070
|
# * {Types::GetIntentsResponse#intents #intents} => Array<Types::IntentMetadata>
|
1998
2071
|
# * {Types::GetIntentsResponse#next_token #next_token} => String
|
1999
2072
|
#
|
2073
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2074
|
+
#
|
2000
2075
|
#
|
2001
2076
|
# @example Example: To get a list of intents
|
2002
2077
|
#
|
@@ -2069,6 +2144,8 @@ module Aws::LexModelBuildingService
|
|
2069
2144
|
# * {Types::GetSlotTypeResponse#version #version} => String
|
2070
2145
|
# * {Types::GetSlotTypeResponse#checksum #checksum} => String
|
2071
2146
|
# * {Types::GetSlotTypeResponse#value_selection_strategy #value_selection_strategy} => String
|
2147
|
+
# * {Types::GetSlotTypeResponse#parent_slot_type_signature #parent_slot_type_signature} => String
|
2148
|
+
# * {Types::GetSlotTypeResponse#slot_type_configurations #slot_type_configurations} => Array<Types::SlotTypeConfiguration>
|
2072
2149
|
#
|
2073
2150
|
#
|
2074
2151
|
# @example Example: To get information about a slot type
|
@@ -2118,6 +2195,9 @@ module Aws::LexModelBuildingService
|
|
2118
2195
|
# resp.version #=> String
|
2119
2196
|
# resp.checksum #=> String
|
2120
2197
|
# resp.value_selection_strategy #=> String, one of "ORIGINAL_VALUE", "TOP_RESOLUTION"
|
2198
|
+
# resp.parent_slot_type_signature #=> String
|
2199
|
+
# resp.slot_type_configurations #=> Array
|
2200
|
+
# resp.slot_type_configurations[0].regex_configuration.pattern #=> String
|
2121
2201
|
#
|
2122
2202
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetSlotType AWS API Documentation
|
2123
2203
|
#
|
@@ -2160,6 +2240,8 @@ module Aws::LexModelBuildingService
|
|
2160
2240
|
# * {Types::GetSlotTypeVersionsResponse#slot_types #slot_types} => Array<Types::SlotTypeMetadata>
|
2161
2241
|
# * {Types::GetSlotTypeVersionsResponse#next_token #next_token} => String
|
2162
2242
|
#
|
2243
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2244
|
+
#
|
2163
2245
|
# @example Request syntax with placeholder values
|
2164
2246
|
#
|
2165
2247
|
# resp = client.get_slot_type_versions({
|
@@ -2217,6 +2299,8 @@ module Aws::LexModelBuildingService
|
|
2217
2299
|
# * {Types::GetSlotTypesResponse#slot_types #slot_types} => Array<Types::SlotTypeMetadata>
|
2218
2300
|
# * {Types::GetSlotTypesResponse#next_token #next_token} => String
|
2219
2301
|
#
|
2302
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2303
|
+
#
|
2220
2304
|
#
|
2221
2305
|
# @example Example: To get a list of slot types
|
2222
2306
|
#
|
@@ -2356,6 +2440,38 @@ module Aws::LexModelBuildingService
|
|
2356
2440
|
req.send_request(options)
|
2357
2441
|
end
|
2358
2442
|
|
2443
|
+
# Gets a list of tags associated with the specified resource. Only bots,
|
2444
|
+
# bot aliases, and bot channels can have tags associated with them.
|
2445
|
+
#
|
2446
|
+
# @option params [required, String] :resource_arn
|
2447
|
+
# The Amazon Resource Name (ARN) of the resource to get a list of tags
|
2448
|
+
# for.
|
2449
|
+
#
|
2450
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2451
|
+
#
|
2452
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Array<Types::Tag>
|
2453
|
+
#
|
2454
|
+
# @example Request syntax with placeholder values
|
2455
|
+
#
|
2456
|
+
# resp = client.list_tags_for_resource({
|
2457
|
+
# resource_arn: "AmazonResourceName", # required
|
2458
|
+
# })
|
2459
|
+
#
|
2460
|
+
# @example Response structure
|
2461
|
+
#
|
2462
|
+
# resp.tags #=> Array
|
2463
|
+
# resp.tags[0].key #=> String
|
2464
|
+
# resp.tags[0].value #=> String
|
2465
|
+
#
|
2466
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/ListTagsForResource AWS API Documentation
|
2467
|
+
#
|
2468
|
+
# @overload list_tags_for_resource(params = {})
|
2469
|
+
# @param [Hash] params ({})
|
2470
|
+
def list_tags_for_resource(params = {}, options = {})
|
2471
|
+
req = build_request(:list_tags_for_resource, params)
|
2472
|
+
req.send_request(options)
|
2473
|
+
end
|
2474
|
+
|
2359
2475
|
# Creates an Amazon Lex conversational bot or replaces an existing bot.
|
2360
2476
|
# When you create or update a bot you are only required to specify a
|
2361
2477
|
# name, a locale, and whether the bot is directed toward children under
|
@@ -2549,6 +2665,11 @@ module Aws::LexModelBuildingService
|
|
2549
2665
|
# is the same as calling the `CreateBotVersion` operation. If you don't
|
2550
2666
|
# specify `createVersion`, the default is `false`.
|
2551
2667
|
#
|
2668
|
+
# @option params [Array<Types::Tag>] :tags
|
2669
|
+
# A list of tags to add to the bot. You can only add tags when you
|
2670
|
+
# create a bot, you can't use the `PutBot` operation to update the tags
|
2671
|
+
# on a bot. To update tags, use the `TagResource` operation.
|
2672
|
+
#
|
2552
2673
|
# @return [Types::PutBotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2553
2674
|
#
|
2554
2675
|
# * {Types::PutBotResponse#name #name} => String
|
@@ -2568,6 +2689,7 @@ module Aws::LexModelBuildingService
|
|
2568
2689
|
# * {Types::PutBotResponse#child_directed #child_directed} => Boolean
|
2569
2690
|
# * {Types::PutBotResponse#create_version #create_version} => Boolean
|
2570
2691
|
# * {Types::PutBotResponse#detect_sentiment #detect_sentiment} => Boolean
|
2692
|
+
# * {Types::PutBotResponse#tags #tags} => Array<Types::Tag>
|
2571
2693
|
#
|
2572
2694
|
#
|
2573
2695
|
# @example Example: To create a bot
|
@@ -2593,7 +2715,7 @@ module Aws::LexModelBuildingService
|
|
2593
2715
|
# max_attempts: 1,
|
2594
2716
|
# messages: [
|
2595
2717
|
# {
|
2596
|
-
# content: "I'm sorry, I didn't hear that. Can you
|
2718
|
+
# content: "I'm sorry, I didn't hear that. Can you repeat what you just said?",
|
2597
2719
|
# content_type: "PlainText",
|
2598
2720
|
# },
|
2599
2721
|
# {
|
@@ -2699,6 +2821,12 @@ module Aws::LexModelBuildingService
|
|
2699
2821
|
# child_directed: false, # required
|
2700
2822
|
# detect_sentiment: false,
|
2701
2823
|
# create_version: false,
|
2824
|
+
# tags: [
|
2825
|
+
# {
|
2826
|
+
# key: "TagKey", # required
|
2827
|
+
# value: "TagValue", # required
|
2828
|
+
# },
|
2829
|
+
# ],
|
2702
2830
|
# })
|
2703
2831
|
#
|
2704
2832
|
# @example Response structure
|
@@ -2731,6 +2859,9 @@ module Aws::LexModelBuildingService
|
|
2731
2859
|
# resp.child_directed #=> Boolean
|
2732
2860
|
# resp.create_version #=> Boolean
|
2733
2861
|
# resp.detect_sentiment #=> Boolean
|
2862
|
+
# resp.tags #=> Array
|
2863
|
+
# resp.tags[0].key #=> String
|
2864
|
+
# resp.tags[0].value #=> String
|
2734
2865
|
#
|
2735
2866
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBot AWS API Documentation
|
2736
2867
|
#
|
@@ -2775,6 +2906,12 @@ module Aws::LexModelBuildingService
|
|
2775
2906
|
# @option params [Types::ConversationLogsRequest] :conversation_logs
|
2776
2907
|
# Settings for conversation logs for the alias.
|
2777
2908
|
#
|
2909
|
+
# @option params [Array<Types::Tag>] :tags
|
2910
|
+
# A list of tags to add to the bot alias. You can only add tags when you
|
2911
|
+
# create an alias, you can't use the `PutBotAlias` operation to update
|
2912
|
+
# the tags on a bot alias. To update tags, use the `TagResource`
|
2913
|
+
# operation.
|
2914
|
+
#
|
2778
2915
|
# @return [Types::PutBotAliasResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2779
2916
|
#
|
2780
2917
|
# * {Types::PutBotAliasResponse#name #name} => String
|
@@ -2785,6 +2922,7 @@ module Aws::LexModelBuildingService
|
|
2785
2922
|
# * {Types::PutBotAliasResponse#created_date #created_date} => Time
|
2786
2923
|
# * {Types::PutBotAliasResponse#checksum #checksum} => String
|
2787
2924
|
# * {Types::PutBotAliasResponse#conversation_logs #conversation_logs} => Types::ConversationLogsResponse
|
2925
|
+
# * {Types::PutBotAliasResponse#tags #tags} => Array<Types::Tag>
|
2788
2926
|
#
|
2789
2927
|
# @example Request syntax with placeholder values
|
2790
2928
|
#
|
@@ -2805,6 +2943,12 @@ module Aws::LexModelBuildingService
|
|
2805
2943
|
# ],
|
2806
2944
|
# iam_role_arn: "IamRoleArn", # required
|
2807
2945
|
# },
|
2946
|
+
# tags: [
|
2947
|
+
# {
|
2948
|
+
# key: "TagKey", # required
|
2949
|
+
# value: "TagValue", # required
|
2950
|
+
# },
|
2951
|
+
# ],
|
2808
2952
|
# })
|
2809
2953
|
#
|
2810
2954
|
# @example Response structure
|
@@ -2823,6 +2967,9 @@ module Aws::LexModelBuildingService
|
|
2823
2967
|
# resp.conversation_logs.log_settings[0].resource_arn #=> String
|
2824
2968
|
# resp.conversation_logs.log_settings[0].resource_prefix #=> String
|
2825
2969
|
# resp.conversation_logs.iam_role_arn #=> String
|
2970
|
+
# resp.tags #=> Array
|
2971
|
+
# resp.tags[0].key #=> String
|
2972
|
+
# resp.tags[0].value #=> String
|
2826
2973
|
#
|
2827
2974
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotAlias AWS API Documentation
|
2828
2975
|
#
|
@@ -3561,6 +3708,17 @@ module Aws::LexModelBuildingService
|
|
3561
3708
|
# This is the same as calling the `CreateSlotTypeVersion` operation. If
|
3562
3709
|
# you do not specify `createVersion`, the default is `false`.
|
3563
3710
|
#
|
3711
|
+
# @option params [String] :parent_slot_type_signature
|
3712
|
+
# The built-in slot type used as the parent of the slot type. When you
|
3713
|
+
# define a parent slot type, the new slot type has all of the same
|
3714
|
+
# configuration as the parent.
|
3715
|
+
#
|
3716
|
+
# Only `AMAZON.AlphaNumeric` is supported.
|
3717
|
+
#
|
3718
|
+
# @option params [Array<Types::SlotTypeConfiguration>] :slot_type_configurations
|
3719
|
+
# Configuration information that extends the parent built-in slot type.
|
3720
|
+
# The configuration is added to the settings for the parent slot type.
|
3721
|
+
#
|
3564
3722
|
# @return [Types::PutSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3565
3723
|
#
|
3566
3724
|
# * {Types::PutSlotTypeResponse#name #name} => String
|
@@ -3572,6 +3730,8 @@ module Aws::LexModelBuildingService
|
|
3572
3730
|
# * {Types::PutSlotTypeResponse#checksum #checksum} => String
|
3573
3731
|
# * {Types::PutSlotTypeResponse#value_selection_strategy #value_selection_strategy} => String
|
3574
3732
|
# * {Types::PutSlotTypeResponse#create_version #create_version} => Boolean
|
3733
|
+
# * {Types::PutSlotTypeResponse#parent_slot_type_signature #parent_slot_type_signature} => String
|
3734
|
+
# * {Types::PutSlotTypeResponse#slot_type_configurations #slot_type_configurations} => Array<Types::SlotTypeConfiguration>
|
3575
3735
|
#
|
3576
3736
|
#
|
3577
3737
|
# @example Example: To Create a Slot Type
|
@@ -3623,6 +3783,14 @@ module Aws::LexModelBuildingService
|
|
3623
3783
|
# checksum: "String",
|
3624
3784
|
# value_selection_strategy: "ORIGINAL_VALUE", # accepts ORIGINAL_VALUE, TOP_RESOLUTION
|
3625
3785
|
# create_version: false,
|
3786
|
+
# parent_slot_type_signature: "CustomOrBuiltinSlotTypeName",
|
3787
|
+
# slot_type_configurations: [
|
3788
|
+
# {
|
3789
|
+
# regex_configuration: {
|
3790
|
+
# pattern: "RegexPattern", # required
|
3791
|
+
# },
|
3792
|
+
# },
|
3793
|
+
# ],
|
3626
3794
|
# })
|
3627
3795
|
#
|
3628
3796
|
# @example Response structure
|
@@ -3639,6 +3807,9 @@ module Aws::LexModelBuildingService
|
|
3639
3807
|
# resp.checksum #=> String
|
3640
3808
|
# resp.value_selection_strategy #=> String, one of "ORIGINAL_VALUE", "TOP_RESOLUTION"
|
3641
3809
|
# resp.create_version #=> Boolean
|
3810
|
+
# resp.parent_slot_type_signature #=> String
|
3811
|
+
# resp.slot_type_configurations #=> Array
|
3812
|
+
# resp.slot_type_configurations[0].regex_configuration.pattern #=> String
|
3642
3813
|
#
|
3643
3814
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutSlotType AWS API Documentation
|
3644
3815
|
#
|
@@ -3677,6 +3848,10 @@ module Aws::LexModelBuildingService
|
|
3677
3848
|
# conflict with an existing resource. The $LASTEST version of the
|
3678
3849
|
# existing resource is overwritten with the data from the import file.
|
3679
3850
|
#
|
3851
|
+
# @option params [Array<Types::Tag>] :tags
|
3852
|
+
# A list of tags to add to the imported bot. You can only add tags when
|
3853
|
+
# you import a bot, you can't add tags to an intent or slot type.
|
3854
|
+
#
|
3680
3855
|
# @return [Types::StartImportResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3681
3856
|
#
|
3682
3857
|
# * {Types::StartImportResponse#name #name} => String
|
@@ -3684,6 +3859,7 @@ module Aws::LexModelBuildingService
|
|
3684
3859
|
# * {Types::StartImportResponse#merge_strategy #merge_strategy} => String
|
3685
3860
|
# * {Types::StartImportResponse#import_id #import_id} => String
|
3686
3861
|
# * {Types::StartImportResponse#import_status #import_status} => String
|
3862
|
+
# * {Types::StartImportResponse#tags #tags} => Array<Types::Tag>
|
3687
3863
|
# * {Types::StartImportResponse#created_date #created_date} => Time
|
3688
3864
|
#
|
3689
3865
|
# @example Request syntax with placeholder values
|
@@ -3692,6 +3868,12 @@ module Aws::LexModelBuildingService
|
|
3692
3868
|
# payload: "data", # required
|
3693
3869
|
# resource_type: "BOT", # required, accepts BOT, INTENT, SLOT_TYPE
|
3694
3870
|
# merge_strategy: "OVERWRITE_LATEST", # required, accepts OVERWRITE_LATEST, FAIL_ON_CONFLICT
|
3871
|
+
# tags: [
|
3872
|
+
# {
|
3873
|
+
# key: "TagKey", # required
|
3874
|
+
# value: "TagValue", # required
|
3875
|
+
# },
|
3876
|
+
# ],
|
3695
3877
|
# })
|
3696
3878
|
#
|
3697
3879
|
# @example Response structure
|
@@ -3701,6 +3883,9 @@ module Aws::LexModelBuildingService
|
|
3701
3883
|
# resp.merge_strategy #=> String, one of "OVERWRITE_LATEST", "FAIL_ON_CONFLICT"
|
3702
3884
|
# resp.import_id #=> String
|
3703
3885
|
# resp.import_status #=> String, one of "IN_PROGRESS", "COMPLETE", "FAILED"
|
3886
|
+
# resp.tags #=> Array
|
3887
|
+
# resp.tags[0].key #=> String
|
3888
|
+
# resp.tags[0].value #=> String
|
3704
3889
|
# resp.created_date #=> Time
|
3705
3890
|
#
|
3706
3891
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartImport AWS API Documentation
|
@@ -3712,6 +3897,68 @@ module Aws::LexModelBuildingService
|
|
3712
3897
|
req.send_request(options)
|
3713
3898
|
end
|
3714
3899
|
|
3900
|
+
# Adds the specified tags to the specified resource. If a tag key
|
3901
|
+
# already exists, the existing value is replaced with the new value.
|
3902
|
+
#
|
3903
|
+
# @option params [required, String] :resource_arn
|
3904
|
+
# The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel
|
3905
|
+
# to tag.
|
3906
|
+
#
|
3907
|
+
# @option params [required, Array<Types::Tag>] :tags
|
3908
|
+
# A list of tag keys to add to the resource. If a tag key already
|
3909
|
+
# exists, the existing value is replaced with the new value.
|
3910
|
+
#
|
3911
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3912
|
+
#
|
3913
|
+
# @example Request syntax with placeholder values
|
3914
|
+
#
|
3915
|
+
# resp = client.tag_resource({
|
3916
|
+
# resource_arn: "AmazonResourceName", # required
|
3917
|
+
# tags: [ # required
|
3918
|
+
# {
|
3919
|
+
# key: "TagKey", # required
|
3920
|
+
# value: "TagValue", # required
|
3921
|
+
# },
|
3922
|
+
# ],
|
3923
|
+
# })
|
3924
|
+
#
|
3925
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/TagResource AWS API Documentation
|
3926
|
+
#
|
3927
|
+
# @overload tag_resource(params = {})
|
3928
|
+
# @param [Hash] params ({})
|
3929
|
+
def tag_resource(params = {}, options = {})
|
3930
|
+
req = build_request(:tag_resource, params)
|
3931
|
+
req.send_request(options)
|
3932
|
+
end
|
3933
|
+
|
3934
|
+
# Removes tags from a bot, bot alias or bot channel.
|
3935
|
+
#
|
3936
|
+
# @option params [required, String] :resource_arn
|
3937
|
+
# The Amazon Resource Name (ARN) of the resource to remove the tags
|
3938
|
+
# from.
|
3939
|
+
#
|
3940
|
+
# @option params [required, Array<String>] :tag_keys
|
3941
|
+
# A list of tag keys to remove from the resource. If a tag key does not
|
3942
|
+
# exist on the resource, it is ignored.
|
3943
|
+
#
|
3944
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
3945
|
+
#
|
3946
|
+
# @example Request syntax with placeholder values
|
3947
|
+
#
|
3948
|
+
# resp = client.untag_resource({
|
3949
|
+
# resource_arn: "AmazonResourceName", # required
|
3950
|
+
# tag_keys: ["TagKey"], # required
|
3951
|
+
# })
|
3952
|
+
#
|
3953
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/UntagResource AWS API Documentation
|
3954
|
+
#
|
3955
|
+
# @overload untag_resource(params = {})
|
3956
|
+
# @param [Hash] params ({})
|
3957
|
+
def untag_resource(params = {}, options = {})
|
3958
|
+
req = build_request(:untag_resource, params)
|
3959
|
+
req.send_request(options)
|
3960
|
+
end
|
3961
|
+
|
3715
3962
|
# @!endgroup
|
3716
3963
|
|
3717
3964
|
# @param params ({})
|
@@ -3725,7 +3972,7 @@ module Aws::LexModelBuildingService
|
|
3725
3972
|
params: params,
|
3726
3973
|
config: config)
|
3727
3974
|
context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
|
3728
|
-
context[:gem_version] = '1.
|
3975
|
+
context[:gem_version] = '1.30.0'
|
3729
3976
|
Seahorse::Client::Request.new(handlers, context)
|
3730
3977
|
end
|
3731
3978
|
|