aws-sdk-lexmodelbuildingservice 1.22.0 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab0e99b286bf75c5f0bc717bdc04f3c33301f2fc
4
- data.tar.gz: ed46a55eaaf83c0e11f475d8669f9718be488e16
3
+ metadata.gz: 7f93529cfffcd9300dd342b599f4e5c9964ca15c
4
+ data.tar.gz: d675545628850e3a365319ed92267a3891d36403
5
5
  SHA512:
6
- metadata.gz: 8db022e5a875e30b156fdfeaf3ceedbb207bcde9f5eee72f85a7cc4c38673964e13474016fb0b80b490d9eda7cc0b6bd696d288e3565c53669668aeab631abd9
7
- data.tar.gz: eb4d3d47f550b3a0d75ef03c3b27fd39f4cf4fade35204ee60bdc0132c68de7ab27ad96e43e1850895f43a7e10e02598fc91e86d18df1f0a54ab907cf04f7422
6
+ metadata.gz: df16ccd6854ec3a5e7838a84e1b95c23a1f01693783b1728a40a4eb0de3d539ad9b1a804ffaee169bfc7f2aeccc9864d7a3419ab99b34c7bbf161dbeb8eac46f
7
+ data.tar.gz: 42222b815f880328c844673ba422a64cbe02045d7e31325507a9d6f011f6f4c3d613c7a58a25d6ab6e1b5b7269c10d52764b7fb06e68c2152c2b105362086076
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lexmodelbuildingservice/customizations'
42
42
  # @service
43
43
  module Aws::LexModelBuildingService
44
44
 
45
- GEM_VERSION = '1.22.0'
45
+ GEM_VERSION = '1.23.0'
46
46
 
47
47
  end
@@ -300,6 +300,7 @@ module Aws::LexModelBuildingService
300
300
  # * {Types::CreateBotVersionResponse#version #version} => String
301
301
  # * {Types::CreateBotVersionResponse#locale #locale} => String
302
302
  # * {Types::CreateBotVersionResponse#child_directed #child_directed} => Boolean
303
+ # * {Types::CreateBotVersionResponse#detect_sentiment #detect_sentiment} => Boolean
303
304
  #
304
305
  # @example Request syntax with placeholder values
305
306
  #
@@ -336,6 +337,7 @@ module Aws::LexModelBuildingService
336
337
  # resp.version #=> String
337
338
  # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
338
339
  # resp.child_directed #=> Boolean
340
+ # resp.detect_sentiment #=> Boolean
339
341
  #
340
342
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateBotVersion AWS API Documentation
341
343
  #
@@ -544,7 +546,13 @@ module Aws::LexModelBuildingService
544
546
 
545
547
  # Deletes all versions of the bot, including the `$LATEST` version. To
546
548
  # delete a specific version of the bot, use the DeleteBotVersion
547
- # operation.
549
+ # operation. The `DeleteBot` operation doesn't immediately remove the
550
+ # bot schema. Instead, it is marked for deletion and removed later.
551
+ #
552
+ # Amazon Lex stores utterances indefinitely for improving the ability of
553
+ # your bot to respond to user inputs. These utterances are not removed
554
+ # when the bot is deleted. To remove the utterances, use the
555
+ # DeleteUtterances operation.
548
556
  #
549
557
  # If a bot has an alias, you can't delete it. Instead, the `DeleteBot`
550
558
  # operation returns a `ResourceInUseException` exception that includes a
@@ -827,8 +835,11 @@ module Aws::LexModelBuildingService
827
835
  # operation, and then stored indefinitely for use in improving the
828
836
  # ability of your bot to respond to user input.
829
837
  #
830
- # Use the `DeleteStoredUtterances` operation to manually delete stored
831
- # utterances for a specific user.
838
+ # Use the `DeleteUtterances` operation to manually delete stored
839
+ # utterances for a specific user. When you use the `DeleteUtterances`
840
+ # operation, utterances stored for improving your bot's ability to
841
+ # respond to user input are deleted immediately. Utterances stored for
842
+ # use with the `GetUtterancesView` operation are deleted after 15 days.
832
843
  #
833
844
  # This operation requires permissions for the `lex:DeleteUtterances`
834
845
  # action.
@@ -892,6 +903,7 @@ module Aws::LexModelBuildingService
892
903
  # * {Types::GetBotResponse#version #version} => String
893
904
  # * {Types::GetBotResponse#locale #locale} => String
894
905
  # * {Types::GetBotResponse#child_directed #child_directed} => Boolean
906
+ # * {Types::GetBotResponse#detect_sentiment #detect_sentiment} => Boolean
895
907
  #
896
908
  #
897
909
  # @example Example: To get information about a bot
@@ -983,6 +995,7 @@ module Aws::LexModelBuildingService
983
995
  # resp.version #=> String
984
996
  # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
985
997
  # resp.child_directed #=> Boolean
998
+ # resp.detect_sentiment #=> Boolean
986
999
  #
987
1000
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBot AWS API Documentation
988
1001
  #
@@ -2266,12 +2279,16 @@ module Aws::LexModelBuildingService
2266
2279
  # about the old version and the new so that you can compare the
2267
2280
  # performance across the two versions.
2268
2281
  #
2269
- # <note markdown="1"> Utterance statistics are generated once a day. Data is available for
2270
- # the last 15 days. You can request information for up to 5 versions in
2271
- # each request. The response contains information about a maximum of 100
2272
- # utterances for each version.
2282
+ # Utterance statistics are generated once a day. Data is available for
2283
+ # the last 15 days. You can request information for up to 5 versions of
2284
+ # your bot in each request. Amazon Lex returns the most frequent
2285
+ # utterances received by the bot in the last 15 days. The response
2286
+ # contains information about a maximum of 100 utterances for each
2287
+ # version.
2273
2288
  #
2274
- # </note>
2289
+ # If you set `childDirected` field to true when you created your bot, or
2290
+ # if you opted out of participating in improving Amazon Lex, utterances
2291
+ # are not available.
2275
2292
  #
2276
2293
  # This operation requires permissions for the `lex:GetUtterancesView`
2277
2294
  # action.
@@ -2285,7 +2302,7 @@ module Aws::LexModelBuildingService
2285
2302
  # returned. The limit is 5 versions per request.
2286
2303
  #
2287
2304
  # @option params [required, String] :status_type
2288
- # To return utterances that were recognized and handled, use`Detected`.
2305
+ # To return utterances that were recognized and handled, use `Detected`.
2289
2306
  # To return utterances that were not recognized, use `Missed`.
2290
2307
  #
2291
2308
  # @return [Types::GetUtterancesViewResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
@@ -2337,7 +2354,7 @@ module Aws::LexModelBuildingService
2337
2354
  # which are set to their default values. If you don't specify values for
2338
2355
  # required fields, Amazon Lex throws an exception. This operation
2339
2356
  # requires permissions for the lex:PutBot action. For more information,
2340
- # see auth-and-access-control.
2357
+ # see security-iam.
2341
2358
  # `
2342
2359
  #
2343
2360
  # @option params [required, String] :name
@@ -2354,7 +2371,7 @@ module Aws::LexModelBuildingService
2354
2371
  # @option params [Types::Prompt] :clarification_prompt
2355
2372
  # When Amazon Lex doesn't understand the user's intent, it uses this
2356
2373
  # message to get clarification. To specify how many times Amazon Lex
2357
- # should repeate the clarification prompt, use the `maxAttempts` field.
2374
+ # should repeat the clarification prompt, use the `maxAttempts` field.
2358
2375
  # If Amazon Lex still doesn't understand, it sends the message in the
2359
2376
  # `abortStatement` field.
2360
2377
  #
@@ -2364,6 +2381,35 @@ module Aws::LexModelBuildingService
2364
2381
  # would you like to do? You can say 'Order a pizza' or 'Order a
2365
2382
  # drink.'"
2366
2383
  #
2384
+ # If you have defined a fallback intent, it will be invoked if the
2385
+ # clarification prompt is repeated the number of times defined in the
2386
+ # `maxAttempts` field. For more information, see [
2387
+ # AMAZON.FallbackIntent][1].
2388
+ #
2389
+ # If you don't define a clarification prompt, at runtime Amazon Lex
2390
+ # will return a 400 Bad Request exception in three cases:
2391
+ #
2392
+ # * Follow-up prompt - When the user responds to a follow-up prompt but
2393
+ # does not provide an intent. For example, in response to a follow-up
2394
+ # prompt that says "Would you like anything else today?" the user
2395
+ # says "Yes." Amazon Lex will return a 400 Bad Request exception
2396
+ # because it does not have a clarification prompt to send to the user
2397
+ # to get an intent.
2398
+ #
2399
+ # * Lambda function - When using a Lambda function, you return an
2400
+ # `ElicitIntent` dialog type. Since Amazon Lex does not have a
2401
+ # clarification prompt to get an intent from the user, it returns a
2402
+ # 400 Bad Request exception.
2403
+ #
2404
+ # * PutSession operation - When using the `PutSession` operation, you
2405
+ # send an `ElicitIntent` dialog type. Since Amazon Lex does not have a
2406
+ # clarification prompt to get an intent from the user, it returns a
2407
+ # 400 Bad Request exception.
2408
+ #
2409
+ #
2410
+ #
2411
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/built-in-intent-fallback.html
2412
+ #
2367
2413
  # @option params [Types::Statement] :abort_statement
2368
2414
  # When Amazon Lex can't understand the user's input in context, it
2369
2415
  # tries to elicit the information a few times. After that, Amazon Lex
@@ -2382,6 +2428,14 @@ module Aws::LexModelBuildingService
2382
2428
  # You specify the `valueElicitationPrompt` field when you create the
2383
2429
  # `CrustType` slot.
2384
2430
  #
2431
+ # If you have defined a fallback intent the abort statement will not be
2432
+ # sent to the user, the fallback intent is used instead. For more
2433
+ # information, see [ AMAZON.FallbackIntent][1].
2434
+ #
2435
+ #
2436
+ #
2437
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/built-in-intent-fallback.html
2438
+ #
2385
2439
  # @option params [Integer] :idle_session_ttl_in_seconds
2386
2440
  # The maximum time in seconds that Amazon Lex retains the data gathered
2387
2441
  # in a conversation.
@@ -2405,12 +2459,12 @@ module Aws::LexModelBuildingService
2405
2459
  # @option params [String] :voice_id
2406
2460
  # The Amazon Polly voice ID that you want Amazon Lex to use for voice
2407
2461
  # interactions with the user. The locale configured for the voice must
2408
- # match the locale of the bot. For more information, see [Available
2409
- # Voices][1] in the *Amazon Polly Developer Guide*.
2462
+ # match the locale of the bot. For more information, see [Voices in
2463
+ # Amazon Polly][1] in the *Amazon Polly Developer Guide*.
2410
2464
  #
2411
2465
  #
2412
2466
  #
2413
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/voicelist.html
2467
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/voicelist.html
2414
2468
  #
2415
2469
  # @option params [String] :checksum
2416
2470
  # Identifies a specific revision of the `$LATEST` version.
@@ -2468,7 +2522,15 @@ module Aws::LexModelBuildingService
2468
2522
  #
2469
2523
  # [1]: https://aws.amazon.com/lex/faqs#data-security
2470
2524
  #
2525
+ # @option params [Boolean] :detect_sentiment
2526
+ # When set to `true` user utterances are sent to Amazon Comprehend for
2527
+ # sentiment analysis. If you don't specify `detectSentiment`, the
2528
+ # default is `false`.
2529
+ #
2471
2530
  # @option params [Boolean] :create_version
2531
+ # When set to `true` a new numbered version of the bot is created. This
2532
+ # is the same as calling the `CreateBotVersion` operation. If you don't
2533
+ # specify `createVersion`, the default is `false`.
2472
2534
  #
2473
2535
  # @return [Types::PutBotResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2474
2536
  #
@@ -2488,6 +2550,7 @@ module Aws::LexModelBuildingService
2488
2550
  # * {Types::PutBotResponse#locale #locale} => String
2489
2551
  # * {Types::PutBotResponse#child_directed #child_directed} => Boolean
2490
2552
  # * {Types::PutBotResponse#create_version #create_version} => Boolean
2553
+ # * {Types::PutBotResponse#detect_sentiment #detect_sentiment} => Boolean
2491
2554
  #
2492
2555
  #
2493
2556
  # @example Example: To create a bot
@@ -2617,6 +2680,7 @@ module Aws::LexModelBuildingService
2617
2680
  # process_behavior: "SAVE", # accepts SAVE, BUILD
2618
2681
  # locale: "en-US", # required, accepts en-US, en-GB, de-DE
2619
2682
  # child_directed: false, # required
2683
+ # detect_sentiment: false,
2620
2684
  # create_version: false,
2621
2685
  # })
2622
2686
  #
@@ -2649,6 +2713,7 @@ module Aws::LexModelBuildingService
2649
2713
  # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
2650
2714
  # resp.child_directed #=> Boolean
2651
2715
  # resp.create_version #=> Boolean
2716
+ # resp.detect_sentiment #=> Boolean
2652
2717
  #
2653
2718
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBot AWS API Documentation
2654
2719
  #
@@ -2914,6 +2979,9 @@ module Aws::LexModelBuildingService
2914
2979
  # exception.
2915
2980
  #
2916
2981
  # @option params [Boolean] :create_version
2982
+ # When set to `true` a new numbered version of the intent is created.
2983
+ # This is the same as calling the `CreateIntentVersion` operation. If
2984
+ # you do not specify `createVersion`, the default is `false`.
2917
2985
  #
2918
2986
  # @return [Types::PutIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2919
2987
  #
@@ -3448,6 +3516,9 @@ module Aws::LexModelBuildingService
3448
3516
  # `ORIGINAL_VALUE`.
3449
3517
  #
3450
3518
  # @option params [Boolean] :create_version
3519
+ # When set to `true` a new numbered version of the slot type is created.
3520
+ # This is the same as calling the `CreateSlotTypeVersion` operation. If
3521
+ # you do not specify `createVersion`, the default is `false`.
3451
3522
  #
3452
3523
  # @return [Types::PutSlotTypeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3453
3524
  #
@@ -3613,7 +3684,7 @@ module Aws::LexModelBuildingService
3613
3684
  params: params,
3614
3685
  config: config)
3615
3686
  context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
3616
- context[:gem_version] = '1.22.0'
3687
+ context[:gem_version] = '1.23.0'
3617
3688
  Seahorse::Client::Request.new(handlers, context)
3618
3689
  end
3619
3690
 
@@ -257,6 +257,7 @@ module Aws::LexModelBuildingService
257
257
  CreateBotVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
258
258
  CreateBotVersionResponse.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
259
259
  CreateBotVersionResponse.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, location_name: "childDirected"))
260
+ CreateBotVersionResponse.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
260
261
  CreateBotVersionResponse.struct_class = Types::CreateBotVersionResponse
261
262
 
262
263
  CreateIntentVersionRequest.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, required: true, location: "uri", location_name: "name"))
@@ -411,6 +412,7 @@ module Aws::LexModelBuildingService
411
412
  GetBotResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
412
413
  GetBotResponse.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
413
414
  GetBotResponse.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, location_name: "childDirected"))
415
+ GetBotResponse.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
414
416
  GetBotResponse.struct_class = Types::GetBotResponse
415
417
 
416
418
  GetBotVersionsRequest.add_member(:name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "name"))
@@ -641,6 +643,7 @@ module Aws::LexModelBuildingService
641
643
  PutBotRequest.add_member(:process_behavior, Shapes::ShapeRef.new(shape: ProcessBehavior, location_name: "processBehavior"))
642
644
  PutBotRequest.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, required: true, location_name: "locale"))
643
645
  PutBotRequest.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, required: true, location_name: "childDirected"))
646
+ PutBotRequest.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
644
647
  PutBotRequest.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
645
648
  PutBotRequest.struct_class = Types::PutBotRequest
646
649
 
@@ -660,6 +663,7 @@ module Aws::LexModelBuildingService
660
663
  PutBotResponse.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
661
664
  PutBotResponse.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, location_name: "childDirected"))
662
665
  PutBotResponse.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
666
+ PutBotResponse.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
663
667
  PutBotResponse.struct_class = Types::PutBotResponse
664
668
 
665
669
  PutIntentRequest.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, required: true, location: "uri", location_name: "name"))
@@ -409,6 +409,11 @@ module Aws::LexModelBuildingService
409
409
  # [1]: https://aws.amazon.com/lex/faqs#data-security
410
410
  # @return [Boolean]
411
411
  #
412
+ # @!attribute [rw] detect_sentiment
413
+ # Indicates whether utterances entered by the user should be sent to
414
+ # Amazon Comprehend for sentiment analysis.
415
+ # @return [Boolean]
416
+ #
412
417
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateBotVersionResponse AWS API Documentation
413
418
  #
414
419
  class CreateBotVersionResponse < Struct.new(
@@ -426,7 +431,8 @@ module Aws::LexModelBuildingService
426
431
  :checksum,
427
432
  :version,
428
433
  :locale,
429
- :child_directed)
434
+ :child_directed,
435
+ :detect_sentiment)
430
436
  include Aws::Structure
431
437
  end
432
438
 
@@ -1323,10 +1329,19 @@ module Aws::LexModelBuildingService
1323
1329
  # @return [Types::Statement]
1324
1330
  #
1325
1331
  # @!attribute [rw] status
1326
- # The status of the bot. If the bot is ready to run, the status is
1327
- # `READY`. If there was a problem with building the bot, the status is
1328
- # `FAILED` and the `failureReason` explains why the bot did not build.
1329
- # If the bot was saved but not built, the status is `NOT BUILT`.
1332
+ # The status of the bot.
1333
+ #
1334
+ # When the status is `BUILDING` Amazon Lex is building the bot for
1335
+ # testing and use.
1336
+ #
1337
+ # If the status of the bot is `READY_BASIC_TESTING`, you can test the
1338
+ # bot using the exact utterances specified in the bot's intents. When
1339
+ # the bot is ready for full testing or to run, the status is `READY`.
1340
+ #
1341
+ # If there was a problem with building the bot, the status is `FAILED`
1342
+ # and the `failureReason` field explains why the bot did not build.
1343
+ #
1344
+ # If the bot was saved but not built, the status is `NOT_BUILT`.
1330
1345
  # @return [String]
1331
1346
  #
1332
1347
  # @!attribute [rw] failure_reason
@@ -1400,6 +1415,11 @@ module Aws::LexModelBuildingService
1400
1415
  # [1]: https://aws.amazon.com/lex/faqs#data-security
1401
1416
  # @return [Boolean]
1402
1417
  #
1418
+ # @!attribute [rw] detect_sentiment
1419
+ # Indicates whether user utterances should be sent to Amazon
1420
+ # Comprehend for sentiment analysis.
1421
+ # @return [Boolean]
1422
+ #
1403
1423
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBotResponse AWS API Documentation
1404
1424
  #
1405
1425
  class GetBotResponse < Struct.new(
@@ -1417,7 +1437,8 @@ module Aws::LexModelBuildingService
1417
1437
  :checksum,
1418
1438
  :version,
1419
1439
  :locale,
1420
- :child_directed)
1440
+ :child_directed,
1441
+ :detect_sentiment)
1421
1442
  include Aws::Structure
1422
1443
  end
1423
1444
 
@@ -2278,8 +2299,8 @@ module Aws::LexModelBuildingService
2278
2299
  # @return [Array<String>]
2279
2300
  #
2280
2301
  # @!attribute [rw] status_type
2281
- # To return utterances that were recognized and handled,
2282
- # use`Detected`. To return utterances that were not recognized, use
2302
+ # To return utterances that were recognized and handled, use
2303
+ # `Detected`. To return utterances that were not recognized, use
2283
2304
  # `Missed`.
2284
2305
  # @return [String]
2285
2306
  #
@@ -2300,7 +2321,8 @@ module Aws::LexModelBuildingService
2300
2321
  # An array of UtteranceList objects, each containing a list of
2301
2322
  # UtteranceData objects describing the utterances that were processed
2302
2323
  # by your bot. The response contains a maximum of 100 `UtteranceData`
2303
- # objects for each version.
2324
+ # objects for each version. Amazon Lex returns the most frequent
2325
+ # utterances received by the bot in the last 15 days.
2304
2326
  # @return [Array<Types::UtteranceList>]
2305
2327
  #
2306
2328
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetUtterancesViewResponse AWS API Documentation
@@ -2639,6 +2661,7 @@ module Aws::LexModelBuildingService
2639
2661
  # process_behavior: "SAVE", # accepts SAVE, BUILD
2640
2662
  # locale: "en-US", # required, accepts en-US, en-GB, de-DE
2641
2663
  # child_directed: false, # required
2664
+ # detect_sentiment: false,
2642
2665
  # create_version: false,
2643
2666
  # }
2644
2667
  #
@@ -2659,15 +2682,44 @@ module Aws::LexModelBuildingService
2659
2682
  # @!attribute [rw] clarification_prompt
2660
2683
  # When Amazon Lex doesn't understand the user's intent, it uses this
2661
2684
  # message to get clarification. To specify how many times Amazon Lex
2662
- # should repeate the clarification prompt, use the `maxAttempts`
2663
- # field. If Amazon Lex still doesn't understand, it sends the message
2664
- # in the `abortStatement` field.
2685
+ # should repeat the clarification prompt, use the `maxAttempts` field.
2686
+ # If Amazon Lex still doesn't understand, it sends the message in the
2687
+ # `abortStatement` field.
2665
2688
  #
2666
2689
  # When you create a clarification prompt, make sure that it suggests
2667
2690
  # the correct response from the user. for example, for a bot that
2668
2691
  # orders pizza and drinks, you might create this clarification prompt:
2669
2692
  # "What would you like to do? You can say 'Order a pizza' or
2670
2693
  # 'Order a drink.'"
2694
+ #
2695
+ # If you have defined a fallback intent, it will be invoked if the
2696
+ # clarification prompt is repeated the number of times defined in the
2697
+ # `maxAttempts` field. For more information, see [
2698
+ # AMAZON.FallbackIntent][1].
2699
+ #
2700
+ # If you don't define a clarification prompt, at runtime Amazon Lex
2701
+ # will return a 400 Bad Request exception in three cases:
2702
+ #
2703
+ # * Follow-up prompt - When the user responds to a follow-up prompt
2704
+ # but does not provide an intent. For example, in response to a
2705
+ # follow-up prompt that says "Would you like anything else today?"
2706
+ # the user says "Yes." Amazon Lex will return a 400 Bad Request
2707
+ # exception because it does not have a clarification prompt to send
2708
+ # to the user to get an intent.
2709
+ #
2710
+ # * Lambda function - When using a Lambda function, you return an
2711
+ # `ElicitIntent` dialog type. Since Amazon Lex does not have a
2712
+ # clarification prompt to get an intent from the user, it returns a
2713
+ # 400 Bad Request exception.
2714
+ #
2715
+ # * PutSession operation - When using the `PutSession` operation, you
2716
+ # send an `ElicitIntent` dialog type. Since Amazon Lex does not have
2717
+ # a clarification prompt to get an intent from the user, it returns
2718
+ # a 400 Bad Request exception.
2719
+ #
2720
+ #
2721
+ #
2722
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/built-in-intent-fallback.html
2671
2723
  # @return [Types::Prompt]
2672
2724
  #
2673
2725
  # @!attribute [rw] abort_statement
@@ -2687,6 +2739,14 @@ module Aws::LexModelBuildingService
2687
2739
  # one of the intents. This intent might require the `CrustType` slot.
2688
2740
  # You specify the `valueElicitationPrompt` field when you create the
2689
2741
  # `CrustType` slot.
2742
+ #
2743
+ # If you have defined a fallback intent the abort statement will not
2744
+ # be sent to the user, the fallback intent is used instead. For more
2745
+ # information, see [ AMAZON.FallbackIntent][1].
2746
+ #
2747
+ #
2748
+ #
2749
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/built-in-intent-fallback.html
2690
2750
  # @return [Types::Statement]
2691
2751
  #
2692
2752
  # @!attribute [rw] idle_session_ttl_in_seconds
@@ -2713,12 +2773,12 @@ module Aws::LexModelBuildingService
2713
2773
  # @!attribute [rw] voice_id
2714
2774
  # The Amazon Polly voice ID that you want Amazon Lex to use for voice
2715
2775
  # interactions with the user. The locale configured for the voice must
2716
- # match the locale of the bot. For more information, see [Available
2717
- # Voices][1] in the *Amazon Polly Developer Guide*.
2776
+ # match the locale of the bot. For more information, see [Voices in
2777
+ # Amazon Polly][1] in the *Amazon Polly Developer Guide*.
2718
2778
  #
2719
2779
  #
2720
2780
  #
2721
- # [1]: http://docs.aws.amazon.com/polly/latest/dg/voicelist.html
2781
+ # [1]: https://docs.aws.amazon.com/polly/latest/dg/voicelist.html
2722
2782
  # @return [String]
2723
2783
  #
2724
2784
  # @!attribute [rw] checksum
@@ -2782,7 +2842,16 @@ module Aws::LexModelBuildingService
2782
2842
  # [1]: https://aws.amazon.com/lex/faqs#data-security
2783
2843
  # @return [Boolean]
2784
2844
  #
2845
+ # @!attribute [rw] detect_sentiment
2846
+ # When set to `true` user utterances are sent to Amazon Comprehend for
2847
+ # sentiment analysis. If you don't specify `detectSentiment`, the
2848
+ # default is `false`.
2849
+ # @return [Boolean]
2850
+ #
2785
2851
  # @!attribute [rw] create_version
2852
+ # When set to `true` a new numbered version of the bot is created.
2853
+ # This is the same as calling the `CreateBotVersion` operation. If you
2854
+ # don't specify `createVersion`, the default is `false`.
2786
2855
  # @return [Boolean]
2787
2856
  #
2788
2857
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotRequest AWS API Documentation
@@ -2799,6 +2868,7 @@ module Aws::LexModelBuildingService
2799
2868
  :process_behavior,
2800
2869
  :locale,
2801
2870
  :child_directed,
2871
+ :detect_sentiment,
2802
2872
  :create_version)
2803
2873
  include Aws::Structure
2804
2874
  end
@@ -2828,13 +2898,21 @@ module Aws::LexModelBuildingService
2828
2898
  # @!attribute [rw] status
2829
2899
  # When you send a request to create a bot with `processBehavior` set
2830
2900
  # to `BUILD`, Amazon Lex sets the `status` response element to
2831
- # `BUILDING`. After Amazon Lex builds the bot, it sets `status` to
2832
- # `READY`. If Amazon Lex can't build the bot, Amazon Lex sets
2833
- # `status` to `FAILED`. Amazon Lex returns the reason for the failure
2834
- # in the `failureReason` response element.
2901
+ # `BUILDING`.
2902
+ #
2903
+ # In the `READY_BASIC_TESTING` state you can test the bot with user
2904
+ # inputs that exactly match the utterances configured for the bot's
2905
+ # intents and values in the slot types.
2835
2906
  #
2836
- # When you set `processBehavior`to `SAVE`, Amazon Lex sets the status
2907
+ # If Amazon Lex can't build the bot, Amazon Lex sets `status` to
2908
+ # `FAILED`. Amazon Lex returns the reason for the failure in the
2909
+ # `failureReason` response element.
2910
+ #
2911
+ # When you set `processBehavior` to `SAVE`, Amazon Lex sets the status
2837
2912
  # code to `NOT BUILT`.
2913
+ #
2914
+ # When the bot is in the `READY` state you can test and publish the
2915
+ # bot.
2838
2916
  # @return [String]
2839
2917
  #
2840
2918
  # @!attribute [rw] failure_reason
@@ -2908,6 +2986,16 @@ module Aws::LexModelBuildingService
2908
2986
  # @return [Boolean]
2909
2987
  #
2910
2988
  # @!attribute [rw] create_version
2989
+ # `True` if a new version of the bot was created. If the
2990
+ # `createVersion` field was not specified in the request, the
2991
+ # `createVersion` field is set to false in the response.
2992
+ # @return [Boolean]
2993
+ #
2994
+ # @!attribute [rw] detect_sentiment
2995
+ # `true` if the bot is configured to send user utterances to Amazon
2996
+ # Comprehend for sentiment analysis. If the `detectSentiment` field
2997
+ # was not specified in the request, the `detectSentiment` field is
2998
+ # `false` in the response.
2911
2999
  # @return [Boolean]
2912
3000
  #
2913
3001
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutBotResponse AWS API Documentation
@@ -2928,7 +3016,8 @@ module Aws::LexModelBuildingService
2928
3016
  :version,
2929
3017
  :locale,
2930
3018
  :child_directed,
2931
- :create_version)
3019
+ :create_version,
3020
+ :detect_sentiment)
2932
3021
  include Aws::Structure
2933
3022
  end
2934
3023
 
@@ -3180,6 +3269,9 @@ module Aws::LexModelBuildingService
3180
3269
  # @return [String]
3181
3270
  #
3182
3271
  # @!attribute [rw] create_version
3272
+ # When set to `true` a new numbered version of the intent is created.
3273
+ # This is the same as calling the `CreateIntentVersion` operation. If
3274
+ # you do not specify `createVersion`, the default is `false`.
3183
3275
  # @return [Boolean]
3184
3276
  #
3185
3277
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntentRequest AWS API Documentation
@@ -3274,6 +3366,9 @@ module Aws::LexModelBuildingService
3274
3366
  # @return [String]
3275
3367
  #
3276
3368
  # @!attribute [rw] create_version
3369
+ # `True` if a new version of the intent was created. If the
3370
+ # `createVersion` field was not specified in the request, the
3371
+ # `createVersion` field is set to false in the response.
3277
3372
  # @return [Boolean]
3278
3373
  #
3279
3374
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntentResponse AWS API Documentation
@@ -3380,6 +3475,10 @@ module Aws::LexModelBuildingService
3380
3475
  # @return [String]
3381
3476
  #
3382
3477
  # @!attribute [rw] create_version
3478
+ # When set to `true` a new numbered version of the slot type is
3479
+ # created. This is the same as calling the `CreateSlotTypeVersion`
3480
+ # operation. If you do not specify `createVersion`, the default is
3481
+ # `false`.
3383
3482
  # @return [Boolean]
3384
3483
  #
3385
3484
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutSlotTypeRequest AWS API Documentation
@@ -3431,6 +3530,9 @@ module Aws::LexModelBuildingService
3431
3530
  # @return [String]
3432
3531
  #
3433
3532
  # @!attribute [rw] create_version
3533
+ # `True` if a new version of the slot type was created. If the
3534
+ # `createVersion` field was not specified in the request, the
3535
+ # `createVersion` field is set to false in the response.
3434
3536
  # @return [Boolean]
3435
3537
  #
3436
3538
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutSlotTypeResponse AWS API Documentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lexmodelbuildingservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core