aws-sdk-lexmodelbuildingservice 1.43.0 → 1.47.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 +300 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-lexmodelbuildingservice.rb +2 -2
- data/lib/aws-sdk-lexmodelbuildingservice/client.rb +222 -14
- data/lib/aws-sdk-lexmodelbuildingservice/client_api.rb +139 -1
- data/lib/aws-sdk-lexmodelbuildingservice/errors.rb +17 -1
- data/lib/aws-sdk-lexmodelbuildingservice/resource.rb +1 -1
- data/lib/aws-sdk-lexmodelbuildingservice/types.rb +404 -4
- metadata +9 -7
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.47.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-lexmodelbuildingservice/customizations'
|
|
48
48
|
# @!group service
|
49
49
|
module Aws::LexModelBuildingService
|
50
50
|
|
51
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.47.0'
|
52
52
|
|
53
53
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -409,7 +409,7 @@ module Aws::LexModelBuildingService
|
|
409
409
|
# resp.voice_id #=> String
|
410
410
|
# resp.checksum #=> String
|
411
411
|
# resp.version #=> String
|
412
|
-
# resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT"
|
412
|
+
# resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
413
413
|
# resp.child_directed #=> Boolean
|
414
414
|
# resp.enable_model_improvements #=> Boolean
|
415
415
|
# resp.detect_sentiment #=> Boolean
|
@@ -1092,7 +1092,7 @@ module Aws::LexModelBuildingService
|
|
1092
1092
|
# resp.voice_id #=> String
|
1093
1093
|
# resp.checksum #=> String
|
1094
1094
|
# resp.version #=> String
|
1095
|
-
# resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT"
|
1095
|
+
# resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
1096
1096
|
# resp.child_directed #=> Boolean
|
1097
1097
|
# resp.detect_sentiment #=> Boolean
|
1098
1098
|
#
|
@@ -1534,7 +1534,7 @@ module Aws::LexModelBuildingService
|
|
1534
1534
|
#
|
1535
1535
|
# resp.signature #=> String
|
1536
1536
|
# resp.supported_locales #=> Array
|
1537
|
-
# resp.supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT"
|
1537
|
+
# resp.supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
1538
1538
|
# resp.slots #=> Array
|
1539
1539
|
# resp.slots[0].name #=> String
|
1540
1540
|
#
|
@@ -1586,7 +1586,7 @@ module Aws::LexModelBuildingService
|
|
1586
1586
|
# @example Request syntax with placeholder values
|
1587
1587
|
#
|
1588
1588
|
# resp = client.get_builtin_intents({
|
1589
|
-
# locale: "de-DE", # accepts de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-FR, fr-CA, it-IT
|
1589
|
+
# locale: "de-DE", # accepts de-DE, en-AU, en-GB, en-IN, en-US, es-419, es-ES, es-US, fr-FR, fr-CA, it-IT, ja-JP
|
1590
1590
|
# signature_contains: "String",
|
1591
1591
|
# next_token: "NextToken",
|
1592
1592
|
# max_results: 1,
|
@@ -1597,7 +1597,7 @@ module Aws::LexModelBuildingService
|
|
1597
1597
|
# resp.intents #=> Array
|
1598
1598
|
# resp.intents[0].signature #=> String
|
1599
1599
|
# resp.intents[0].supported_locales #=> Array
|
1600
|
-
# resp.intents[0].supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT"
|
1600
|
+
# resp.intents[0].supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
1601
1601
|
# resp.next_token #=> String
|
1602
1602
|
#
|
1603
1603
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntents AWS API Documentation
|
@@ -1649,7 +1649,7 @@ module Aws::LexModelBuildingService
|
|
1649
1649
|
# @example Request syntax with placeholder values
|
1650
1650
|
#
|
1651
1651
|
# resp = client.get_builtin_slot_types({
|
1652
|
-
# locale: "de-DE", # accepts de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-FR, fr-CA, it-IT
|
1652
|
+
# locale: "de-DE", # accepts de-DE, en-AU, en-GB, en-IN, en-US, es-419, es-ES, es-US, fr-FR, fr-CA, it-IT, ja-JP
|
1653
1653
|
# signature_contains: "String",
|
1654
1654
|
# next_token: "NextToken",
|
1655
1655
|
# max_results: 1,
|
@@ -1660,7 +1660,7 @@ module Aws::LexModelBuildingService
|
|
1660
1660
|
# resp.slot_types #=> Array
|
1661
1661
|
# resp.slot_types[0].signature #=> String
|
1662
1662
|
# resp.slot_types[0].supported_locales #=> Array
|
1663
|
-
# resp.slot_types[0].supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT"
|
1663
|
+
# resp.slot_types[0].supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
1664
1664
|
# resp.next_token #=> String
|
1665
1665
|
#
|
1666
1666
|
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinSlotTypes AWS API Documentation
|
@@ -2175,6 +2175,129 @@ module Aws::LexModelBuildingService
|
|
2175
2175
|
req.send_request(options)
|
2176
2176
|
end
|
2177
2177
|
|
2178
|
+
# Provides details about an ongoing or complete migration from an Amazon
|
2179
|
+
# Lex V1 bot to an Amazon Lex V2 bot. Use this operation to view the
|
2180
|
+
# migration alerts and warnings related to the migration.
|
2181
|
+
#
|
2182
|
+
# @option params [required, String] :migration_id
|
2183
|
+
# The unique identifier of the migration to view. The `migrationID` is
|
2184
|
+
# returned by the operation.
|
2185
|
+
#
|
2186
|
+
# @return [Types::GetMigrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2187
|
+
#
|
2188
|
+
# * {Types::GetMigrationResponse#migration_id #migration_id} => String
|
2189
|
+
# * {Types::GetMigrationResponse#v1_bot_name #v1_bot_name} => String
|
2190
|
+
# * {Types::GetMigrationResponse#v1_bot_version #v1_bot_version} => String
|
2191
|
+
# * {Types::GetMigrationResponse#v1_bot_locale #v1_bot_locale} => String
|
2192
|
+
# * {Types::GetMigrationResponse#v2_bot_id #v2_bot_id} => String
|
2193
|
+
# * {Types::GetMigrationResponse#v2_bot_role #v2_bot_role} => String
|
2194
|
+
# * {Types::GetMigrationResponse#migration_status #migration_status} => String
|
2195
|
+
# * {Types::GetMigrationResponse#migration_strategy #migration_strategy} => String
|
2196
|
+
# * {Types::GetMigrationResponse#migration_timestamp #migration_timestamp} => Time
|
2197
|
+
# * {Types::GetMigrationResponse#alerts #alerts} => Array<Types::MigrationAlert>
|
2198
|
+
#
|
2199
|
+
# @example Request syntax with placeholder values
|
2200
|
+
#
|
2201
|
+
# resp = client.get_migration({
|
2202
|
+
# migration_id: "MigrationId", # required
|
2203
|
+
# })
|
2204
|
+
#
|
2205
|
+
# @example Response structure
|
2206
|
+
#
|
2207
|
+
# resp.migration_id #=> String
|
2208
|
+
# resp.v1_bot_name #=> String
|
2209
|
+
# resp.v1_bot_version #=> String
|
2210
|
+
# resp.v1_bot_locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
2211
|
+
# resp.v2_bot_id #=> String
|
2212
|
+
# resp.v2_bot_role #=> String
|
2213
|
+
# resp.migration_status #=> String, one of "IN_PROGRESS", "COMPLETED", "FAILED"
|
2214
|
+
# resp.migration_strategy #=> String, one of "CREATE_NEW", "UPDATE_EXISTING"
|
2215
|
+
# resp.migration_timestamp #=> Time
|
2216
|
+
# resp.alerts #=> Array
|
2217
|
+
# resp.alerts[0].type #=> String, one of "ERROR", "WARN"
|
2218
|
+
# resp.alerts[0].message #=> String
|
2219
|
+
# resp.alerts[0].details #=> Array
|
2220
|
+
# resp.alerts[0].details[0] #=> String
|
2221
|
+
# resp.alerts[0].reference_urls #=> Array
|
2222
|
+
# resp.alerts[0].reference_urls[0] #=> String
|
2223
|
+
#
|
2224
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetMigration AWS API Documentation
|
2225
|
+
#
|
2226
|
+
# @overload get_migration(params = {})
|
2227
|
+
# @param [Hash] params ({})
|
2228
|
+
def get_migration(params = {}, options = {})
|
2229
|
+
req = build_request(:get_migration, params)
|
2230
|
+
req.send_request(options)
|
2231
|
+
end
|
2232
|
+
|
2233
|
+
# Gets a list of migrations between Amazon Lex V1 and Amazon Lex V2.
|
2234
|
+
#
|
2235
|
+
# @option params [String] :sort_by_attribute
|
2236
|
+
# The field to sort the list of migrations by. You can sort by the
|
2237
|
+
# Amazon Lex V1 bot name or the date and time that the migration was
|
2238
|
+
# started.
|
2239
|
+
#
|
2240
|
+
# @option params [String] :sort_by_order
|
2241
|
+
# The order so sort the list.
|
2242
|
+
#
|
2243
|
+
# @option params [String] :v1_bot_name_contains
|
2244
|
+
# Filters the list to contain only bots whose name contains the
|
2245
|
+
# specified string. The string is matched anywhere in bot name.
|
2246
|
+
#
|
2247
|
+
# @option params [String] :migration_status_equals
|
2248
|
+
# Filters the list to contain only migrations in the specified state.
|
2249
|
+
#
|
2250
|
+
# @option params [Integer] :max_results
|
2251
|
+
# The maximum number of migrations to return in the response. The
|
2252
|
+
# default is 10.
|
2253
|
+
#
|
2254
|
+
# @option params [String] :next_token
|
2255
|
+
# A pagination token that fetches the next page of migrations. If the
|
2256
|
+
# response to this operation is truncated, Amazon Lex returns a
|
2257
|
+
# pagination token in the response. To fetch the next page of
|
2258
|
+
# migrations, specify the pagination token in the request.
|
2259
|
+
#
|
2260
|
+
# @return [Types::GetMigrationsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2261
|
+
#
|
2262
|
+
# * {Types::GetMigrationsResponse#migration_summaries #migration_summaries} => Array<Types::MigrationSummary>
|
2263
|
+
# * {Types::GetMigrationsResponse#next_token #next_token} => String
|
2264
|
+
#
|
2265
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
2266
|
+
#
|
2267
|
+
# @example Request syntax with placeholder values
|
2268
|
+
#
|
2269
|
+
# resp = client.get_migrations({
|
2270
|
+
# sort_by_attribute: "V1_BOT_NAME", # accepts V1_BOT_NAME, MIGRATION_DATE_TIME
|
2271
|
+
# sort_by_order: "ASCENDING", # accepts ASCENDING, DESCENDING
|
2272
|
+
# v1_bot_name_contains: "BotName",
|
2273
|
+
# migration_status_equals: "IN_PROGRESS", # accepts IN_PROGRESS, COMPLETED, FAILED
|
2274
|
+
# max_results: 1,
|
2275
|
+
# next_token: "NextToken",
|
2276
|
+
# })
|
2277
|
+
#
|
2278
|
+
# @example Response structure
|
2279
|
+
#
|
2280
|
+
# resp.migration_summaries #=> Array
|
2281
|
+
# resp.migration_summaries[0].migration_id #=> String
|
2282
|
+
# resp.migration_summaries[0].v1_bot_name #=> String
|
2283
|
+
# resp.migration_summaries[0].v1_bot_version #=> String
|
2284
|
+
# resp.migration_summaries[0].v1_bot_locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
2285
|
+
# resp.migration_summaries[0].v2_bot_id #=> String
|
2286
|
+
# resp.migration_summaries[0].v2_bot_role #=> String
|
2287
|
+
# resp.migration_summaries[0].migration_status #=> String, one of "IN_PROGRESS", "COMPLETED", "FAILED"
|
2288
|
+
# resp.migration_summaries[0].migration_strategy #=> String, one of "CREATE_NEW", "UPDATE_EXISTING"
|
2289
|
+
# resp.migration_summaries[0].migration_timestamp #=> Time
|
2290
|
+
# resp.next_token #=> String
|
2291
|
+
#
|
2292
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetMigrations AWS API Documentation
|
2293
|
+
#
|
2294
|
+
# @overload get_migrations(params = {})
|
2295
|
+
# @param [Hash] params ({})
|
2296
|
+
def get_migrations(params = {}, options = {})
|
2297
|
+
req = build_request(:get_migrations, params)
|
2298
|
+
req.send_request(options)
|
2299
|
+
end
|
2300
|
+
|
2178
2301
|
# Returns information about a specific version of a slot type. In
|
2179
2302
|
# addition to specifying the slot type name, you must specify the slot
|
2180
2303
|
# type version.
|
@@ -2440,9 +2563,10 @@ module Aws::LexModelBuildingService
|
|
2440
2563
|
# contains information about a maximum of 100 utterances for each
|
2441
2564
|
# version.
|
2442
2565
|
#
|
2443
|
-
# If you set `childDirected` field to true when you created your bot,
|
2444
|
-
#
|
2445
|
-
# are not
|
2566
|
+
# If you set `childDirected` field to true when you created your bot, if
|
2567
|
+
# you are using slot obfuscation with one or more slots, or if you opted
|
2568
|
+
# out of participating in improving Amazon Lex, utterances are not
|
2569
|
+
# available.
|
2446
2570
|
#
|
2447
2571
|
# This operation requires permissions for the `lex:GetUtterancesView`
|
2448
2572
|
# action.
|
@@ -2945,7 +3069,7 @@ module Aws::LexModelBuildingService
|
|
2945
3069
|
# voice_id: "String",
|
2946
3070
|
# checksum: "String",
|
2947
3071
|
# process_behavior: "SAVE", # accepts SAVE, BUILD
|
2948
|
-
# locale: "de-DE", # required, accepts de-DE, en-AU, en-GB, en-US, es-419, es-ES, es-US, fr-FR, fr-CA, it-IT
|
3072
|
+
# locale: "de-DE", # required, accepts de-DE, en-AU, en-GB, en-IN, en-US, es-419, es-ES, es-US, fr-FR, fr-CA, it-IT, ja-JP
|
2949
3073
|
# child_directed: false, # required
|
2950
3074
|
# detect_sentiment: false,
|
2951
3075
|
# create_version: false,
|
@@ -2985,7 +3109,7 @@ module Aws::LexModelBuildingService
|
|
2985
3109
|
# resp.voice_id #=> String
|
2986
3110
|
# resp.checksum #=> String
|
2987
3111
|
# resp.version #=> String
|
2988
|
-
# resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT"
|
3112
|
+
# resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
2989
3113
|
# resp.child_directed #=> Boolean
|
2990
3114
|
# resp.create_version #=> Boolean
|
2991
3115
|
# resp.detect_sentiment #=> Boolean
|
@@ -4086,6 +4210,90 @@ module Aws::LexModelBuildingService
|
|
4086
4210
|
req.send_request(options)
|
4087
4211
|
end
|
4088
4212
|
|
4213
|
+
# Starts migrating a bot from Amazon Lex V1 to Amazon Lex V2. Migrate
|
4214
|
+
# your bot when you want to take advantage of the new features of Amazon
|
4215
|
+
# Lex V2.
|
4216
|
+
#
|
4217
|
+
# For more information, see [Migrating a bot][1] in the *Amazon Lex
|
4218
|
+
# developer guide*.
|
4219
|
+
#
|
4220
|
+
#
|
4221
|
+
#
|
4222
|
+
# [1]: https://docs.aws.amazon.com/lex/latest/dg/migrate.html
|
4223
|
+
#
|
4224
|
+
# @option params [required, String] :v1_bot_name
|
4225
|
+
# The name of the Amazon Lex V1 bot that you are migrating to Amazon Lex
|
4226
|
+
# V2.
|
4227
|
+
#
|
4228
|
+
# @option params [required, String] :v1_bot_version
|
4229
|
+
# The version of the bot to migrate to Amazon Lex V2. You can migrate
|
4230
|
+
# the `$LATEST` version as well as any numbered version.
|
4231
|
+
#
|
4232
|
+
# @option params [required, String] :v2_bot_name
|
4233
|
+
# The name of the Amazon Lex V2 bot that you are migrating the Amazon
|
4234
|
+
# Lex V1 bot to.
|
4235
|
+
#
|
4236
|
+
# * If the Amazon Lex V2 bot doesn't exist, you must use the
|
4237
|
+
# `CREATE_NEW` migration strategy.
|
4238
|
+
#
|
4239
|
+
# * If the Amazon Lex V2 bot exists, you must use the `UPDATE_EXISTING`
|
4240
|
+
# migration strategy to change the contents of the Amazon Lex V2 bot.
|
4241
|
+
#
|
4242
|
+
# @option params [required, String] :v2_bot_role
|
4243
|
+
# The IAM role that Amazon Lex uses to run the Amazon Lex V2 bot.
|
4244
|
+
#
|
4245
|
+
# @option params [required, String] :migration_strategy
|
4246
|
+
# The strategy used to conduct the migration.
|
4247
|
+
#
|
4248
|
+
# * `CREATE_NEW` - Creates a new Amazon Lex V2 bot and migrates the
|
4249
|
+
# Amazon Lex V1 bot to the new bot.
|
4250
|
+
#
|
4251
|
+
# * `UPDATE_EXISTING` - Overwrites the existing Amazon Lex V2 bot
|
4252
|
+
# metadata and the locale being migrated. It doesn't change any other
|
4253
|
+
# locales in the Amazon Lex V2 bot. If the locale doesn't exist, a
|
4254
|
+
# new locale is created in the Amazon Lex V2 bot.
|
4255
|
+
#
|
4256
|
+
# @return [Types::StartMigrationResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4257
|
+
#
|
4258
|
+
# * {Types::StartMigrationResponse#v1_bot_name #v1_bot_name} => String
|
4259
|
+
# * {Types::StartMigrationResponse#v1_bot_version #v1_bot_version} => String
|
4260
|
+
# * {Types::StartMigrationResponse#v1_bot_locale #v1_bot_locale} => String
|
4261
|
+
# * {Types::StartMigrationResponse#v2_bot_id #v2_bot_id} => String
|
4262
|
+
# * {Types::StartMigrationResponse#v2_bot_role #v2_bot_role} => String
|
4263
|
+
# * {Types::StartMigrationResponse#migration_id #migration_id} => String
|
4264
|
+
# * {Types::StartMigrationResponse#migration_strategy #migration_strategy} => String
|
4265
|
+
# * {Types::StartMigrationResponse#migration_timestamp #migration_timestamp} => Time
|
4266
|
+
#
|
4267
|
+
# @example Request syntax with placeholder values
|
4268
|
+
#
|
4269
|
+
# resp = client.start_migration({
|
4270
|
+
# v1_bot_name: "BotName", # required
|
4271
|
+
# v1_bot_version: "Version", # required
|
4272
|
+
# v2_bot_name: "V2BotName", # required
|
4273
|
+
# v2_bot_role: "IamRoleArn", # required
|
4274
|
+
# migration_strategy: "CREATE_NEW", # required, accepts CREATE_NEW, UPDATE_EXISTING
|
4275
|
+
# })
|
4276
|
+
#
|
4277
|
+
# @example Response structure
|
4278
|
+
#
|
4279
|
+
# resp.v1_bot_name #=> String
|
4280
|
+
# resp.v1_bot_version #=> String
|
4281
|
+
# resp.v1_bot_locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-IN", "en-US", "es-419", "es-ES", "es-US", "fr-FR", "fr-CA", "it-IT", "ja-JP"
|
4282
|
+
# resp.v2_bot_id #=> String
|
4283
|
+
# resp.v2_bot_role #=> String
|
4284
|
+
# resp.migration_id #=> String
|
4285
|
+
# resp.migration_strategy #=> String, one of "CREATE_NEW", "UPDATE_EXISTING"
|
4286
|
+
# resp.migration_timestamp #=> Time
|
4287
|
+
#
|
4288
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/StartMigration AWS API Documentation
|
4289
|
+
#
|
4290
|
+
# @overload start_migration(params = {})
|
4291
|
+
# @param [Hash] params ({})
|
4292
|
+
def start_migration(params = {}, options = {})
|
4293
|
+
req = build_request(:start_migration, params)
|
4294
|
+
req.send_request(options)
|
4295
|
+
end
|
4296
|
+
|
4089
4297
|
# Adds the specified tags to the specified resource. If a tag key
|
4090
4298
|
# already exists, the existing value is replaced with the new value.
|
4091
4299
|
#
|
@@ -4161,7 +4369,7 @@ module Aws::LexModelBuildingService
|
|
4161
4369
|
params: params,
|
4162
4370
|
config: config)
|
4163
4371
|
context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
|
4164
|
-
context[:gem_version] = '1.
|
4372
|
+
context[:gem_version] = '1.47.0'
|
4165
4373
|
Seahorse::Client::Request.new(handlers, context)
|
4166
4374
|
end
|
4167
4375
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -13,6 +13,7 @@ module Aws::LexModelBuildingService
|
|
13
13
|
|
14
14
|
include Seahorse::Model
|
15
15
|
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
16
17
|
AliasName = Shapes::StringShape.new(name: 'AliasName')
|
17
18
|
AliasNameOrListAll = Shapes::StringShape.new(name: 'AliasNameOrListAll')
|
18
19
|
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
@@ -104,6 +105,10 @@ module Aws::LexModelBuildingService
|
|
104
105
|
GetIntentVersionsResponse = Shapes::StructureShape.new(name: 'GetIntentVersionsResponse')
|
105
106
|
GetIntentsRequest = Shapes::StructureShape.new(name: 'GetIntentsRequest')
|
106
107
|
GetIntentsResponse = Shapes::StructureShape.new(name: 'GetIntentsResponse')
|
108
|
+
GetMigrationRequest = Shapes::StructureShape.new(name: 'GetMigrationRequest')
|
109
|
+
GetMigrationResponse = Shapes::StructureShape.new(name: 'GetMigrationResponse')
|
110
|
+
GetMigrationsRequest = Shapes::StructureShape.new(name: 'GetMigrationsRequest')
|
111
|
+
GetMigrationsResponse = Shapes::StructureShape.new(name: 'GetMigrationsResponse')
|
107
112
|
GetSlotTypeRequest = Shapes::StructureShape.new(name: 'GetSlotTypeRequest')
|
108
113
|
GetSlotTypeResponse = Shapes::StructureShape.new(name: 'GetSlotTypeResponse')
|
109
114
|
GetSlotTypeVersionsRequest = Shapes::StructureShape.new(name: 'GetSlotTypeVersionsRequest')
|
@@ -146,6 +151,20 @@ module Aws::LexModelBuildingService
|
|
146
151
|
Message = Shapes::StructureShape.new(name: 'Message')
|
147
152
|
MessageList = Shapes::ListShape.new(name: 'MessageList')
|
148
153
|
MessageVersion = Shapes::StringShape.new(name: 'MessageVersion')
|
154
|
+
MigrationAlert = Shapes::StructureShape.new(name: 'MigrationAlert')
|
155
|
+
MigrationAlertDetail = Shapes::StringShape.new(name: 'MigrationAlertDetail')
|
156
|
+
MigrationAlertDetails = Shapes::ListShape.new(name: 'MigrationAlertDetails')
|
157
|
+
MigrationAlertMessage = Shapes::StringShape.new(name: 'MigrationAlertMessage')
|
158
|
+
MigrationAlertReferenceURL = Shapes::StringShape.new(name: 'MigrationAlertReferenceURL')
|
159
|
+
MigrationAlertReferenceURLs = Shapes::ListShape.new(name: 'MigrationAlertReferenceURLs')
|
160
|
+
MigrationAlertType = Shapes::StringShape.new(name: 'MigrationAlertType')
|
161
|
+
MigrationAlerts = Shapes::ListShape.new(name: 'MigrationAlerts')
|
162
|
+
MigrationId = Shapes::StringShape.new(name: 'MigrationId')
|
163
|
+
MigrationSortAttribute = Shapes::StringShape.new(name: 'MigrationSortAttribute')
|
164
|
+
MigrationStatus = Shapes::StringShape.new(name: 'MigrationStatus')
|
165
|
+
MigrationStrategy = Shapes::StringShape.new(name: 'MigrationStrategy')
|
166
|
+
MigrationSummary = Shapes::StructureShape.new(name: 'MigrationSummary')
|
167
|
+
MigrationSummaryList = Shapes::ListShape.new(name: 'MigrationSummaryList')
|
149
168
|
Name = Shapes::StringShape.new(name: 'Name')
|
150
169
|
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
151
170
|
NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
|
@@ -193,8 +212,11 @@ module Aws::LexModelBuildingService
|
|
193
212
|
SlotTypeRegexConfiguration = Shapes::StructureShape.new(name: 'SlotTypeRegexConfiguration')
|
194
213
|
SlotUtteranceList = Shapes::ListShape.new(name: 'SlotUtteranceList')
|
195
214
|
SlotValueSelectionStrategy = Shapes::StringShape.new(name: 'SlotValueSelectionStrategy')
|
215
|
+
SortOrder = Shapes::StringShape.new(name: 'SortOrder')
|
196
216
|
StartImportRequest = Shapes::StructureShape.new(name: 'StartImportRequest')
|
197
217
|
StartImportResponse = Shapes::StructureShape.new(name: 'StartImportResponse')
|
218
|
+
StartMigrationRequest = Shapes::StructureShape.new(name: 'StartMigrationRequest')
|
219
|
+
StartMigrationResponse = Shapes::StructureShape.new(name: 'StartMigrationResponse')
|
198
220
|
Statement = Shapes::StructureShape.new(name: 'Statement')
|
199
221
|
Status = Shapes::StringShape.new(name: 'Status')
|
200
222
|
StatusType = Shapes::StringShape.new(name: 'StatusType')
|
@@ -216,10 +238,15 @@ module Aws::LexModelBuildingService
|
|
216
238
|
UtteranceData = Shapes::StructureShape.new(name: 'UtteranceData')
|
217
239
|
UtteranceList = Shapes::StructureShape.new(name: 'UtteranceList')
|
218
240
|
UtteranceString = Shapes::StringShape.new(name: 'UtteranceString')
|
241
|
+
V2BotId = Shapes::StringShape.new(name: 'V2BotId')
|
242
|
+
V2BotName = Shapes::StringShape.new(name: 'V2BotName')
|
219
243
|
Value = Shapes::StringShape.new(name: 'Value')
|
220
244
|
Version = Shapes::StringShape.new(name: 'Version')
|
221
245
|
roleArn = Shapes::StringShape.new(name: 'roleArn')
|
222
246
|
|
247
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
248
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
249
|
+
|
223
250
|
BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
224
251
|
BadRequestException.struct_class = Types::BadRequestException
|
225
252
|
|
@@ -596,6 +623,33 @@ module Aws::LexModelBuildingService
|
|
596
623
|
GetIntentsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
597
624
|
GetIntentsResponse.struct_class = Types::GetIntentsResponse
|
598
625
|
|
626
|
+
GetMigrationRequest.add_member(:migration_id, Shapes::ShapeRef.new(shape: MigrationId, required: true, location: "uri", location_name: "migrationId"))
|
627
|
+
GetMigrationRequest.struct_class = Types::GetMigrationRequest
|
628
|
+
|
629
|
+
GetMigrationResponse.add_member(:migration_id, Shapes::ShapeRef.new(shape: MigrationId, location_name: "migrationId"))
|
630
|
+
GetMigrationResponse.add_member(:v1_bot_name, Shapes::ShapeRef.new(shape: BotName, location_name: "v1BotName"))
|
631
|
+
GetMigrationResponse.add_member(:v1_bot_version, Shapes::ShapeRef.new(shape: Version, location_name: "v1BotVersion"))
|
632
|
+
GetMigrationResponse.add_member(:v1_bot_locale, Shapes::ShapeRef.new(shape: Locale, location_name: "v1BotLocale"))
|
633
|
+
GetMigrationResponse.add_member(:v2_bot_id, Shapes::ShapeRef.new(shape: V2BotId, location_name: "v2BotId"))
|
634
|
+
GetMigrationResponse.add_member(:v2_bot_role, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "v2BotRole"))
|
635
|
+
GetMigrationResponse.add_member(:migration_status, Shapes::ShapeRef.new(shape: MigrationStatus, location_name: "migrationStatus"))
|
636
|
+
GetMigrationResponse.add_member(:migration_strategy, Shapes::ShapeRef.new(shape: MigrationStrategy, location_name: "migrationStrategy"))
|
637
|
+
GetMigrationResponse.add_member(:migration_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "migrationTimestamp"))
|
638
|
+
GetMigrationResponse.add_member(:alerts, Shapes::ShapeRef.new(shape: MigrationAlerts, location_name: "alerts"))
|
639
|
+
GetMigrationResponse.struct_class = Types::GetMigrationResponse
|
640
|
+
|
641
|
+
GetMigrationsRequest.add_member(:sort_by_attribute, Shapes::ShapeRef.new(shape: MigrationSortAttribute, location: "querystring", location_name: "sortByAttribute"))
|
642
|
+
GetMigrationsRequest.add_member(:sort_by_order, Shapes::ShapeRef.new(shape: SortOrder, location: "querystring", location_name: "sortByOrder"))
|
643
|
+
GetMigrationsRequest.add_member(:v1_bot_name_contains, Shapes::ShapeRef.new(shape: BotName, location: "querystring", location_name: "v1BotNameContains"))
|
644
|
+
GetMigrationsRequest.add_member(:migration_status_equals, Shapes::ShapeRef.new(shape: MigrationStatus, location: "querystring", location_name: "migrationStatusEquals"))
|
645
|
+
GetMigrationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
|
646
|
+
GetMigrationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
|
647
|
+
GetMigrationsRequest.struct_class = Types::GetMigrationsRequest
|
648
|
+
|
649
|
+
GetMigrationsResponse.add_member(:migration_summaries, Shapes::ShapeRef.new(shape: MigrationSummaryList, location_name: "migrationSummaries"))
|
650
|
+
GetMigrationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
|
651
|
+
GetMigrationsResponse.struct_class = Types::GetMigrationsResponse
|
652
|
+
|
599
653
|
GetSlotTypeRequest.add_member(:name, Shapes::ShapeRef.new(shape: SlotTypeName, required: true, location: "uri", location_name: "name"))
|
600
654
|
GetSlotTypeRequest.add_member(:version, Shapes::ShapeRef.new(shape: Version, required: true, location: "uri", location_name: "version"))
|
601
655
|
GetSlotTypeRequest.struct_class = Types::GetSlotTypeRequest
|
@@ -709,6 +763,31 @@ module Aws::LexModelBuildingService
|
|
709
763
|
|
710
764
|
MessageList.member = Shapes::ShapeRef.new(shape: Message)
|
711
765
|
|
766
|
+
MigrationAlert.add_member(:type, Shapes::ShapeRef.new(shape: MigrationAlertType, location_name: "type"))
|
767
|
+
MigrationAlert.add_member(:message, Shapes::ShapeRef.new(shape: MigrationAlertMessage, location_name: "message"))
|
768
|
+
MigrationAlert.add_member(:details, Shapes::ShapeRef.new(shape: MigrationAlertDetails, location_name: "details"))
|
769
|
+
MigrationAlert.add_member(:reference_urls, Shapes::ShapeRef.new(shape: MigrationAlertReferenceURLs, location_name: "referenceURLs"))
|
770
|
+
MigrationAlert.struct_class = Types::MigrationAlert
|
771
|
+
|
772
|
+
MigrationAlertDetails.member = Shapes::ShapeRef.new(shape: MigrationAlertDetail)
|
773
|
+
|
774
|
+
MigrationAlertReferenceURLs.member = Shapes::ShapeRef.new(shape: MigrationAlertReferenceURL)
|
775
|
+
|
776
|
+
MigrationAlerts.member = Shapes::ShapeRef.new(shape: MigrationAlert)
|
777
|
+
|
778
|
+
MigrationSummary.add_member(:migration_id, Shapes::ShapeRef.new(shape: MigrationId, location_name: "migrationId"))
|
779
|
+
MigrationSummary.add_member(:v1_bot_name, Shapes::ShapeRef.new(shape: BotName, location_name: "v1BotName"))
|
780
|
+
MigrationSummary.add_member(:v1_bot_version, Shapes::ShapeRef.new(shape: Version, location_name: "v1BotVersion"))
|
781
|
+
MigrationSummary.add_member(:v1_bot_locale, Shapes::ShapeRef.new(shape: Locale, location_name: "v1BotLocale"))
|
782
|
+
MigrationSummary.add_member(:v2_bot_id, Shapes::ShapeRef.new(shape: V2BotId, location_name: "v2BotId"))
|
783
|
+
MigrationSummary.add_member(:v2_bot_role, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "v2BotRole"))
|
784
|
+
MigrationSummary.add_member(:migration_status, Shapes::ShapeRef.new(shape: MigrationStatus, location_name: "migrationStatus"))
|
785
|
+
MigrationSummary.add_member(:migration_strategy, Shapes::ShapeRef.new(shape: MigrationStrategy, location_name: "migrationStrategy"))
|
786
|
+
MigrationSummary.add_member(:migration_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "migrationTimestamp"))
|
787
|
+
MigrationSummary.struct_class = Types::MigrationSummary
|
788
|
+
|
789
|
+
MigrationSummaryList.member = Shapes::ShapeRef.new(shape: MigrationSummary)
|
790
|
+
|
712
791
|
NotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
|
713
792
|
NotFoundException.struct_class = Types::NotFoundException
|
714
793
|
|
@@ -914,6 +993,23 @@ module Aws::LexModelBuildingService
|
|
914
993
|
StartImportResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
|
915
994
|
StartImportResponse.struct_class = Types::StartImportResponse
|
916
995
|
|
996
|
+
StartMigrationRequest.add_member(:v1_bot_name, Shapes::ShapeRef.new(shape: BotName, required: true, location_name: "v1BotName"))
|
997
|
+
StartMigrationRequest.add_member(:v1_bot_version, Shapes::ShapeRef.new(shape: Version, required: true, location_name: "v1BotVersion"))
|
998
|
+
StartMigrationRequest.add_member(:v2_bot_name, Shapes::ShapeRef.new(shape: V2BotName, required: true, location_name: "v2BotName"))
|
999
|
+
StartMigrationRequest.add_member(:v2_bot_role, Shapes::ShapeRef.new(shape: IamRoleArn, required: true, location_name: "v2BotRole"))
|
1000
|
+
StartMigrationRequest.add_member(:migration_strategy, Shapes::ShapeRef.new(shape: MigrationStrategy, required: true, location_name: "migrationStrategy"))
|
1001
|
+
StartMigrationRequest.struct_class = Types::StartMigrationRequest
|
1002
|
+
|
1003
|
+
StartMigrationResponse.add_member(:v1_bot_name, Shapes::ShapeRef.new(shape: BotName, location_name: "v1BotName"))
|
1004
|
+
StartMigrationResponse.add_member(:v1_bot_version, Shapes::ShapeRef.new(shape: Version, location_name: "v1BotVersion"))
|
1005
|
+
StartMigrationResponse.add_member(:v1_bot_locale, Shapes::ShapeRef.new(shape: Locale, location_name: "v1BotLocale"))
|
1006
|
+
StartMigrationResponse.add_member(:v2_bot_id, Shapes::ShapeRef.new(shape: V2BotId, location_name: "v2BotId"))
|
1007
|
+
StartMigrationResponse.add_member(:v2_bot_role, Shapes::ShapeRef.new(shape: IamRoleArn, location_name: "v2BotRole"))
|
1008
|
+
StartMigrationResponse.add_member(:migration_id, Shapes::ShapeRef.new(shape: MigrationId, location_name: "migrationId"))
|
1009
|
+
StartMigrationResponse.add_member(:migration_strategy, Shapes::ShapeRef.new(shape: MigrationStrategy, location_name: "migrationStrategy"))
|
1010
|
+
StartMigrationResponse.add_member(:migration_timestamp, Shapes::ShapeRef.new(shape: Timestamp, location_name: "migrationTimestamp"))
|
1011
|
+
StartMigrationResponse.struct_class = Types::StartMigrationResponse
|
1012
|
+
|
917
1013
|
Statement.add_member(:messages, Shapes::ShapeRef.new(shape: MessageList, required: true, location_name: "messages"))
|
918
1014
|
Statement.add_member(:response_card, Shapes::ShapeRef.new(shape: ResponseCard, location_name: "responseCard"))
|
919
1015
|
Statement.struct_class = Types::Statement
|
@@ -1360,6 +1456,35 @@ module Aws::LexModelBuildingService
|
|
1360
1456
|
)
|
1361
1457
|
end)
|
1362
1458
|
|
1459
|
+
api.add_operation(:get_migration, Seahorse::Model::Operation.new.tap do |o|
|
1460
|
+
o.name = "GetMigration"
|
1461
|
+
o.http_method = "GET"
|
1462
|
+
o.http_request_uri = "/migrations/{migrationId}"
|
1463
|
+
o.input = Shapes::ShapeRef.new(shape: GetMigrationRequest)
|
1464
|
+
o.output = Shapes::ShapeRef.new(shape: GetMigrationResponse)
|
1465
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1466
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1467
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1468
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1469
|
+
end)
|
1470
|
+
|
1471
|
+
api.add_operation(:get_migrations, Seahorse::Model::Operation.new.tap do |o|
|
1472
|
+
o.name = "GetMigrations"
|
1473
|
+
o.http_method = "GET"
|
1474
|
+
o.http_request_uri = "/migrations"
|
1475
|
+
o.input = Shapes::ShapeRef.new(shape: GetMigrationsRequest)
|
1476
|
+
o.output = Shapes::ShapeRef.new(shape: GetMigrationsResponse)
|
1477
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1478
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1479
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1480
|
+
o[:pager] = Aws::Pager.new(
|
1481
|
+
limit_key: "max_results",
|
1482
|
+
tokens: {
|
1483
|
+
"next_token" => "next_token"
|
1484
|
+
}
|
1485
|
+
)
|
1486
|
+
end)
|
1487
|
+
|
1363
1488
|
api.add_operation(:get_slot_type, Seahorse::Model::Operation.new.tap do |o|
|
1364
1489
|
o.name = "GetSlotType"
|
1365
1490
|
o.http_method = "GET"
|
@@ -1494,6 +1619,19 @@ module Aws::LexModelBuildingService
|
|
1494
1619
|
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1495
1620
|
end)
|
1496
1621
|
|
1622
|
+
api.add_operation(:start_migration, Seahorse::Model::Operation.new.tap do |o|
|
1623
|
+
o.name = "StartMigration"
|
1624
|
+
o.http_method = "POST"
|
1625
|
+
o.http_request_uri = "/migrations"
|
1626
|
+
o.input = Shapes::ShapeRef.new(shape: StartMigrationRequest)
|
1627
|
+
o.output = Shapes::ShapeRef.new(shape: StartMigrationResponse)
|
1628
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
1629
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
|
1630
|
+
o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
|
1631
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1632
|
+
o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
|
1633
|
+
end)
|
1634
|
+
|
1497
1635
|
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
1498
1636
|
o.name = "TagResource"
|
1499
1637
|
o.http_method = "POST"
|