aws-sdk-lexmodelbuildingservice 1.33.0 → 1.38.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af494c702bc00c9c3bc0dc56af6bef23952de0e93946bba709b78f57409a356d
4
- data.tar.gz: f5082e0eb6fbfd5b555d99ece1a36eddbca5bb2911913fda0bd0c60dfaab6933
3
+ metadata.gz: 4e19e0e2642b34cd9c430608e30e490edafc02abcaaa6d7696cf8df380bf8df8
4
+ data.tar.gz: e4199b511957e41fc5a752dc6e31e7399ab8aba9aa7500bd1c430fe56cb31de0
5
5
  SHA512:
6
- metadata.gz: 87a7c09f5c0197e43ae580f441492bc81f6852a2d480397005d6a8b75ef3b199e2ee6d13665fc8854de5d7a40b094429ef0619febaa4361876d5776042c35858
7
- data.tar.gz: 694e389c7253e60ffe996d4db08856331686d18fba49bce82306fc9a359b3b71db85eccd11794313cf6e0afcc0d3ad333831539688ed611e983c6d088087ff91
6
+ metadata.gz: a3b527dbcf76b8ba5ef97565d283ef76827aa86b2e2a44524e6ff76f5efa2138cf9cd60230501037f2b4746cd090619636d082d69bfc707095d61d88a751a735
7
+ data.tar.gz: 9b1eac317fe0976ec21257feb9d79842e3e511372dcb98ece1c3fd2d00f5cb1888e4fada0b9e0cb76d14ec6898d38f145a14c2a4802465f317c9663d8a10686c
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -44,9 +45,9 @@ require_relative 'aws-sdk-lexmodelbuildingservice/customizations'
44
45
  #
45
46
  # See {Errors} for more information.
46
47
  #
47
- # @service
48
+ # @!group service
48
49
  module Aws::LexModelBuildingService
49
50
 
50
- GEM_VERSION = '1.33.0'
51
+ GEM_VERSION = '1.38.0'
51
52
 
52
53
  end
@@ -85,13 +85,28 @@ module Aws::LexModelBuildingService
85
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
86
86
  # credentials.
87
87
  #
88
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
89
+ # shared file, such as `~/.aws/config`.
90
+ #
91
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
92
+ #
93
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
94
+ # assume a role after providing credentials via the web.
95
+ #
96
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
97
+ # access token generated from `aws login`.
98
+ #
99
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
100
+ # process that outputs to stdout.
101
+ #
88
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
89
103
  # from an EC2 IMDS on an EC2 instance.
90
104
  #
91
- # * `Aws::SharedCredentials` - Used for loading credentials from a
92
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
93
107
  #
94
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
95
110
  #
96
111
  # When `:credentials` are not configured directly, the following
97
112
  # locations will be searched for credentials:
@@ -101,10 +116,10 @@ module Aws::LexModelBuildingService
101
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
102
117
  # * `~/.aws/credentials`
103
118
  # * `~/.aws/config`
104
- # * EC2 IMDS instance profile - When used by default, the timeouts are
105
- # very aggressive. Construct and pass an instance of
106
- # `Aws::InstanceProfileCredentails` to enable retries and extended
107
- # timeouts.
119
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
120
+ # are very aggressive. Construct and pass an instance of
121
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
122
+ # enable retries and extended timeouts.
108
123
  #
109
124
  # @option options [required, String] :region
110
125
  # The AWS region to connect to. The configured `:region` is
@@ -358,6 +373,7 @@ module Aws::LexModelBuildingService
358
373
  # * {Types::CreateBotVersionResponse#version #version} => String
359
374
  # * {Types::CreateBotVersionResponse#locale #locale} => String
360
375
  # * {Types::CreateBotVersionResponse#child_directed #child_directed} => Boolean
376
+ # * {Types::CreateBotVersionResponse#enable_model_improvements #enable_model_improvements} => Boolean
361
377
  # * {Types::CreateBotVersionResponse#detect_sentiment #detect_sentiment} => Boolean
362
378
  #
363
379
  # @example Request syntax with placeholder values
@@ -393,8 +409,9 @@ module Aws::LexModelBuildingService
393
409
  # resp.voice_id #=> String
394
410
  # resp.checksum #=> String
395
411
  # resp.version #=> String
396
- # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
412
+ # resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-US"
397
413
  # resp.child_directed #=> Boolean
414
+ # resp.enable_model_improvements #=> Boolean
398
415
  # resp.detect_sentiment #=> Boolean
399
416
  #
400
417
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateBotVersion AWS API Documentation
@@ -959,6 +976,8 @@ module Aws::LexModelBuildingService
959
976
  # * {Types::GetBotResponse#name #name} => String
960
977
  # * {Types::GetBotResponse#description #description} => String
961
978
  # * {Types::GetBotResponse#intents #intents} => Array<Types::Intent>
979
+ # * {Types::GetBotResponse#enable_model_improvements #enable_model_improvements} => Boolean
980
+ # * {Types::GetBotResponse#nlu_intent_confidence_threshold #nlu_intent_confidence_threshold} => Float
962
981
  # * {Types::GetBotResponse#clarification_prompt #clarification_prompt} => Types::Prompt
963
982
  # * {Types::GetBotResponse#abort_statement #abort_statement} => Types::Statement
964
983
  # * {Types::GetBotResponse#status #status} => String
@@ -1042,6 +1061,8 @@ module Aws::LexModelBuildingService
1042
1061
  # resp.intents #=> Array
1043
1062
  # resp.intents[0].intent_name #=> String
1044
1063
  # resp.intents[0].intent_version #=> String
1064
+ # resp.enable_model_improvements #=> Boolean
1065
+ # resp.nlu_intent_confidence_threshold #=> Float
1045
1066
  # resp.clarification_prompt.messages #=> Array
1046
1067
  # resp.clarification_prompt.messages[0].content_type #=> String, one of "PlainText", "SSML", "CustomPayload"
1047
1068
  # resp.clarification_prompt.messages[0].content #=> String
@@ -1061,7 +1082,7 @@ module Aws::LexModelBuildingService
1061
1082
  # resp.voice_id #=> String
1062
1083
  # resp.checksum #=> String
1063
1084
  # resp.version #=> String
1064
- # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
1085
+ # resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-US"
1065
1086
  # resp.child_directed #=> Boolean
1066
1087
  # resp.detect_sentiment #=> Boolean
1067
1088
  #
@@ -1503,7 +1524,7 @@ module Aws::LexModelBuildingService
1503
1524
  #
1504
1525
  # resp.signature #=> String
1505
1526
  # resp.supported_locales #=> Array
1506
- # resp.supported_locales[0] #=> String, one of "en-US", "en-GB", "de-DE"
1527
+ # resp.supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-US"
1507
1528
  # resp.slots #=> Array
1508
1529
  # resp.slots[0].name #=> String
1509
1530
  #
@@ -1555,7 +1576,7 @@ module Aws::LexModelBuildingService
1555
1576
  # @example Request syntax with placeholder values
1556
1577
  #
1557
1578
  # resp = client.get_builtin_intents({
1558
- # locale: "en-US", # accepts en-US, en-GB, de-DE
1579
+ # locale: "de-DE", # accepts de-DE, en-AU, en-GB, en-US, es-US
1559
1580
  # signature_contains: "String",
1560
1581
  # next_token: "NextToken",
1561
1582
  # max_results: 1,
@@ -1566,7 +1587,7 @@ module Aws::LexModelBuildingService
1566
1587
  # resp.intents #=> Array
1567
1588
  # resp.intents[0].signature #=> String
1568
1589
  # resp.intents[0].supported_locales #=> Array
1569
- # resp.intents[0].supported_locales[0] #=> String, one of "en-US", "en-GB", "de-DE"
1590
+ # resp.intents[0].supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-US"
1570
1591
  # resp.next_token #=> String
1571
1592
  #
1572
1593
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntents AWS API Documentation
@@ -1618,7 +1639,7 @@ module Aws::LexModelBuildingService
1618
1639
  # @example Request syntax with placeholder values
1619
1640
  #
1620
1641
  # resp = client.get_builtin_slot_types({
1621
- # locale: "en-US", # accepts en-US, en-GB, de-DE
1642
+ # locale: "de-DE", # accepts de-DE, en-AU, en-GB, en-US, es-US
1622
1643
  # signature_contains: "String",
1623
1644
  # next_token: "NextToken",
1624
1645
  # max_results: 1,
@@ -1629,7 +1650,7 @@ module Aws::LexModelBuildingService
1629
1650
  # resp.slot_types #=> Array
1630
1651
  # resp.slot_types[0].signature #=> String
1631
1652
  # resp.slot_types[0].supported_locales #=> Array
1632
- # resp.slot_types[0].supported_locales[0] #=> String, one of "en-US", "en-GB", "de-DE"
1653
+ # resp.slot_types[0].supported_locales[0] #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-US"
1633
1654
  # resp.next_token #=> String
1634
1655
  #
1635
1656
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinSlotTypes AWS API Documentation
@@ -2513,6 +2534,85 @@ module Aws::LexModelBuildingService
2513
2534
  # user can express. For example, a pizza ordering bot might support an
2514
2535
  # OrderPizza intent. For more information, see how-it-works.
2515
2536
  #
2537
+ # @option params [Boolean] :enable_model_improvements
2538
+ # Set to `true` to enable access to natural language understanding
2539
+ # improvements.
2540
+ #
2541
+ # When you set the `enableModelImprovements` parameter to `true` you can
2542
+ # use the `nluIntentConfidenceThreshold` parameter to configure
2543
+ # confidence scores. For more information, see [Confidence Scores][1].
2544
+ #
2545
+ # You can only set the `enableModelImprovements` parameter in certain
2546
+ # Regions. If you set the parameter to `true`, your bot has access to
2547
+ # accuracy improvements.
2548
+ #
2549
+ # The Regions where you can set the `enableModelImprovements` parameter
2550
+ # to `true` are:
2551
+ #
2552
+ # * US East (N. Virginia) (us-east-1)
2553
+ #
2554
+ # * US West (Oregon) (us-west-2)
2555
+ #
2556
+ # * Asia Pacific (Sydney) (ap-southeast-2)
2557
+ #
2558
+ # * EU (Ireland) (eu-west-1)
2559
+ #
2560
+ # In other Regions, the `enableModelImprovements` parameter is set to
2561
+ # `true` by default. In these Regions setting the parameter to `false`
2562
+ # throws a `ValidationException` exception.
2563
+ #
2564
+ # * Asia Pacific (Singapore) (ap-southeast-1)
2565
+ #
2566
+ # * Asia Pacific (Tokyo) (ap-northeast-1)
2567
+ #
2568
+ # * EU (Frankfurt) (eu-central-1)
2569
+ #
2570
+ # * EU (London) (eu-west-2)
2571
+ #
2572
+ #
2573
+ #
2574
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html
2575
+ #
2576
+ # @option params [Float] :nlu_intent_confidence_threshold
2577
+ # Determines the threshold where Amazon Lex will insert the
2578
+ # `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
2579
+ # returning alternative intents in a [PostContent][1] or [PostText][2]
2580
+ # response. `AMAZON.FallbackIntent` and `AMAZON.KendraSearchIntent` are
2581
+ # only inserted if they are configured for the bot.
2582
+ #
2583
+ # You must set the `enableModelImprovements` parameter to `true` to use
2584
+ # confidence scores.
2585
+ #
2586
+ # * US East (N. Virginia) (us-east-1)
2587
+ #
2588
+ # * US West (Oregon) (us-west-2)
2589
+ #
2590
+ # * Asia Pacific (Sydney) (ap-southeast-2)
2591
+ #
2592
+ # * EU (Ireland) (eu-west-1)
2593
+ #
2594
+ # In other Regions, the `enableModelImprovements` parameter is set to
2595
+ # `true` by default.
2596
+ #
2597
+ # For example, suppose a bot is configured with the confidence threshold
2598
+ # of 0.80 and the `AMAZON.FallbackIntent`. Amazon Lex returns three
2599
+ # alternative intents with the following confidence scores: IntentA
2600
+ # (0.70), IntentB (0.60), IntentC (0.50). The response from the
2601
+ # `PostText` operation would be:
2602
+ #
2603
+ # * AMAZON.FallbackIntent
2604
+ #
2605
+ # * IntentA
2606
+ #
2607
+ # * IntentB
2608
+ #
2609
+ # * IntentC
2610
+ #
2611
+ #
2612
+ #
2613
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html
2614
+ # [2]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html
2615
+ #
2516
2616
  # @option params [Types::Prompt] :clarification_prompt
2517
2617
  # When Amazon Lex doesn't understand the user's intent, it uses this
2518
2618
  # message to get clarification. To specify how many times Amazon Lex
@@ -2559,7 +2659,7 @@ module Aws::LexModelBuildingService
2559
2659
  # When Amazon Lex can't understand the user's input in context, it
2560
2660
  # tries to elicit the information a few times. After that, Amazon Lex
2561
2661
  # sends the message defined in `abortStatement` to the user, and then
2562
- # aborts the conversation. To set the number of retries, use the
2662
+ # cancels the conversation. To set the number of retries, use the
2563
2663
  # `valueElicitationPrompt` field for the slot type.
2564
2664
  #
2565
2665
  # For example, in a pizza ordering bot, Amazon Lex might ask a user
@@ -2573,7 +2673,7 @@ module Aws::LexModelBuildingService
2573
2673
  # You specify the `valueElicitationPrompt` field when you create the
2574
2674
  # `CrustType` slot.
2575
2675
  #
2576
- # If you have defined a fallback intent the abort statement will not be
2676
+ # If you have defined a fallback intent the cancel statement will not be
2577
2677
  # sent to the user, the fallback intent is used instead. For more
2578
2678
  # information, see [ AMAZON.FallbackIntent][1].
2579
2679
  #
@@ -2687,6 +2787,8 @@ module Aws::LexModelBuildingService
2687
2787
  # * {Types::PutBotResponse#name #name} => String
2688
2788
  # * {Types::PutBotResponse#description #description} => String
2689
2789
  # * {Types::PutBotResponse#intents #intents} => Array<Types::Intent>
2790
+ # * {Types::PutBotResponse#enable_model_improvements #enable_model_improvements} => Boolean
2791
+ # * {Types::PutBotResponse#nlu_intent_confidence_threshold #nlu_intent_confidence_threshold} => Float
2690
2792
  # * {Types::PutBotResponse#clarification_prompt #clarification_prompt} => Types::Prompt
2691
2793
  # * {Types::PutBotResponse#abort_statement #abort_statement} => Types::Statement
2692
2794
  # * {Types::PutBotResponse#status #status} => String
@@ -2804,6 +2906,8 @@ module Aws::LexModelBuildingService
2804
2906
  # intent_version: "Version", # required
2805
2907
  # },
2806
2908
  # ],
2909
+ # enable_model_improvements: false,
2910
+ # nlu_intent_confidence_threshold: 1.0,
2807
2911
  # clarification_prompt: {
2808
2912
  # messages: [ # required
2809
2913
  # {
@@ -2829,7 +2933,7 @@ module Aws::LexModelBuildingService
2829
2933
  # voice_id: "String",
2830
2934
  # checksum: "String",
2831
2935
  # process_behavior: "SAVE", # accepts SAVE, BUILD
2832
- # locale: "en-US", # required, accepts en-US, en-GB, de-DE
2936
+ # locale: "de-DE", # required, accepts de-DE, en-AU, en-GB, en-US, es-US
2833
2937
  # child_directed: false, # required
2834
2938
  # detect_sentiment: false,
2835
2939
  # create_version: false,
@@ -2848,6 +2952,8 @@ module Aws::LexModelBuildingService
2848
2952
  # resp.intents #=> Array
2849
2953
  # resp.intents[0].intent_name #=> String
2850
2954
  # resp.intents[0].intent_version #=> String
2955
+ # resp.enable_model_improvements #=> Boolean
2956
+ # resp.nlu_intent_confidence_threshold #=> Float
2851
2957
  # resp.clarification_prompt.messages #=> Array
2852
2958
  # resp.clarification_prompt.messages[0].content_type #=> String, one of "PlainText", "SSML", "CustomPayload"
2853
2959
  # resp.clarification_prompt.messages[0].content #=> String
@@ -2867,7 +2973,7 @@ module Aws::LexModelBuildingService
2867
2973
  # resp.voice_id #=> String
2868
2974
  # resp.checksum #=> String
2869
2975
  # resp.version #=> String
2870
- # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
2976
+ # resp.locale #=> String, one of "de-DE", "en-AU", "en-GB", "en-US", "es-US"
2871
2977
  # resp.child_directed #=> Boolean
2872
2978
  # resp.create_version #=> Boolean
2873
2979
  # resp.detect_sentiment #=> Boolean
@@ -3699,6 +3805,9 @@ module Aws::LexModelBuildingService
3699
3805
  # are additional values that help train the machine learning model about
3700
3806
  # the values that it resolves for a slot.
3701
3807
  #
3808
+ # A regular expression slot type doesn't require enumeration values.
3809
+ # All other slot types require a list of enumeration values.
3810
+ #
3702
3811
  # When Amazon Lex resolves a slot value, it generates a resolution list
3703
3812
  # that contains up to five possible values for the slot. If you are
3704
3813
  # using a Lambda function, this resolution list is passed to the
@@ -3852,7 +3961,7 @@ module Aws::LexModelBuildingService
3852
3961
 
3853
3962
  # Starts a job to import a resource to Amazon Lex.
3854
3963
  #
3855
- # @option params [required, String, IO] :payload
3964
+ # @option params [required, String, StringIO, File] :payload
3856
3965
  # A zip archive in binary format. The archive should contain one file, a
3857
3966
  # JSON file containing the resource to import. The resource should match
3858
3967
  # the type specified in the `resourceType` field.
@@ -4002,7 +4111,7 @@ module Aws::LexModelBuildingService
4002
4111
  params: params,
4003
4112
  config: config)
4004
4113
  context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
4005
- context[:gem_version] = '1.33.0'
4114
+ context[:gem_version] = '1.38.0'
4006
4115
  Seahorse::Client::Request.new(handlers, context)
4007
4116
  end
4008
4117
 
@@ -40,6 +40,7 @@ module Aws::LexModelBuildingService
40
40
  ChannelStatus = Shapes::StringShape.new(name: 'ChannelStatus')
41
41
  ChannelType = Shapes::StringShape.new(name: 'ChannelType')
42
42
  CodeHook = Shapes::StructureShape.new(name: 'CodeHook')
43
+ ConfidenceThreshold = Shapes::FloatShape.new(name: 'ConfidenceThreshold')
43
44
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
44
45
  ContentString = Shapes::StringShape.new(name: 'ContentString')
45
46
  ContentType = Shapes::StringShape.new(name: 'ContentType')
@@ -301,6 +302,7 @@ module Aws::LexModelBuildingService
301
302
  CreateBotVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
302
303
  CreateBotVersionResponse.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
303
304
  CreateBotVersionResponse.add_member(:child_directed, Shapes::ShapeRef.new(shape: Boolean, location_name: "childDirected"))
305
+ CreateBotVersionResponse.add_member(:enable_model_improvements, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableModelImprovements"))
304
306
  CreateBotVersionResponse.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
305
307
  CreateBotVersionResponse.struct_class = Types::CreateBotVersionResponse
306
308
 
@@ -448,6 +450,8 @@ module Aws::LexModelBuildingService
448
450
  GetBotResponse.add_member(:name, Shapes::ShapeRef.new(shape: BotName, location_name: "name"))
449
451
  GetBotResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
450
452
  GetBotResponse.add_member(:intents, Shapes::ShapeRef.new(shape: IntentList, location_name: "intents"))
453
+ GetBotResponse.add_member(:enable_model_improvements, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableModelImprovements"))
454
+ GetBotResponse.add_member(:nlu_intent_confidence_threshold, Shapes::ShapeRef.new(shape: ConfidenceThreshold, location_name: "nluIntentConfidenceThreshold"))
451
455
  GetBotResponse.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
452
456
  GetBotResponse.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
453
457
  GetBotResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
@@ -718,6 +722,8 @@ module Aws::LexModelBuildingService
718
722
  PutBotRequest.add_member(:name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "name"))
719
723
  PutBotRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
720
724
  PutBotRequest.add_member(:intents, Shapes::ShapeRef.new(shape: IntentList, location_name: "intents"))
725
+ PutBotRequest.add_member(:enable_model_improvements, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableModelImprovements"))
726
+ PutBotRequest.add_member(:nlu_intent_confidence_threshold, Shapes::ShapeRef.new(shape: ConfidenceThreshold, location_name: "nluIntentConfidenceThreshold"))
721
727
  PutBotRequest.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
722
728
  PutBotRequest.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
723
729
  PutBotRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
@@ -734,6 +740,8 @@ module Aws::LexModelBuildingService
734
740
  PutBotResponse.add_member(:name, Shapes::ShapeRef.new(shape: BotName, location_name: "name"))
735
741
  PutBotResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
736
742
  PutBotResponse.add_member(:intents, Shapes::ShapeRef.new(shape: IntentList, location_name: "intents"))
743
+ PutBotResponse.add_member(:enable_model_improvements, Shapes::ShapeRef.new(shape: Boolean, location_name: "enableModelImprovements"))
744
+ PutBotResponse.add_member(:nlu_intent_confidence_threshold, Shapes::ShapeRef.new(shape: ConfidenceThreshold, location_name: "nluIntentConfidenceThreshold"))
737
745
  PutBotResponse.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
738
746
  PutBotResponse.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
739
747
  PutBotResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
@@ -412,7 +412,7 @@ module Aws::LexModelBuildingService
412
412
  # @return [Types::Prompt]
413
413
  #
414
414
  # @!attribute [rw] abort_statement
415
- # The message that Amazon Lex uses to abort a conversation. For more
415
+ # The message that Amazon Lex uses to cancel a conversation. For more
416
416
  # information, see PutBot.
417
417
  # @return [Types::Statement]
418
418
  #
@@ -492,6 +492,12 @@ module Aws::LexModelBuildingService
492
492
  # [1]: https://aws.amazon.com/lex/faqs#data-security
493
493
  # @return [Boolean]
494
494
  #
495
+ # @!attribute [rw] enable_model_improvements
496
+ # Indicates whether the bot uses accuracy improvements. `true`
497
+ # indicates that the bot is using the improvements, otherwise,
498
+ # `false`.
499
+ # @return [Boolean]
500
+ #
495
501
  # @!attribute [rw] detect_sentiment
496
502
  # Indicates whether utterances entered by the user should be sent to
497
503
  # Amazon Comprehend for sentiment analysis.
@@ -515,6 +521,7 @@ module Aws::LexModelBuildingService
515
521
  :version,
516
522
  :locale,
517
523
  :child_directed,
524
+ :enable_model_improvements,
518
525
  :detect_sentiment)
519
526
  SENSITIVE = []
520
527
  include Aws::Structure
@@ -620,7 +627,7 @@ module Aws::LexModelBuildingService
620
627
  # @return [String]
621
628
  #
622
629
  # @!attribute [rw] kendra_configuration
623
- # Configuration information, if any, for connectin an Amazon Kendra
630
+ # Configuration information, if any, for connecting an Amazon Kendra
624
631
  # index with the `AMAZON.KendraSearchIntent` intent.
625
632
  # @return [Types::KendraConfiguration]
626
633
  #
@@ -1449,6 +1456,27 @@ module Aws::LexModelBuildingService
1449
1456
  # An array of `intent` objects. For more information, see PutBot.
1450
1457
  # @return [Array<Types::Intent>]
1451
1458
  #
1459
+ # @!attribute [rw] enable_model_improvements
1460
+ # Indicates whether the bot uses accuracy improvements. `true`
1461
+ # indicates that the bot is using the improvements, otherwise,
1462
+ # `false`.
1463
+ # @return [Boolean]
1464
+ #
1465
+ # @!attribute [rw] nlu_intent_confidence_threshold
1466
+ # The score that determines where Amazon Lex inserts the
1467
+ # `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
1468
+ # returning alternative intents in a [PostContent][1] or [PostText][2]
1469
+ # response. `AMAZON.FallbackIntent` is inserted if the confidence
1470
+ # score for all intents is below this value.
1471
+ # `AMAZON.KendraSearchIntent` is only inserted if it is configured for
1472
+ # the bot.
1473
+ #
1474
+ #
1475
+ #
1476
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html
1477
+ # [2]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html
1478
+ # @return [Float]
1479
+ #
1452
1480
  # @!attribute [rw] clarification_prompt
1453
1481
  # The message Amazon Lex uses when it doesn't understand the user's
1454
1482
  # request. For more information, see PutBot.
@@ -1558,6 +1586,8 @@ module Aws::LexModelBuildingService
1558
1586
  :name,
1559
1587
  :description,
1560
1588
  :intents,
1589
+ :enable_model_improvements,
1590
+ :nlu_intent_confidence_threshold,
1561
1591
  :clarification_prompt,
1562
1592
  :abort_statement,
1563
1593
  :status,
@@ -1738,7 +1768,7 @@ module Aws::LexModelBuildingService
1738
1768
  # data as a hash:
1739
1769
  #
1740
1770
  # {
1741
- # locale: "en-US", # accepts en-US, en-GB, de-DE
1771
+ # locale: "de-DE", # accepts de-DE, en-AU, en-GB, en-US, es-US
1742
1772
  # signature_contains: "String",
1743
1773
  # next_token: "NextToken",
1744
1774
  # max_results: 1,
@@ -1808,7 +1838,7 @@ module Aws::LexModelBuildingService
1808
1838
  # data as a hash:
1809
1839
  #
1810
1840
  # {
1811
- # locale: "en-US", # accepts en-US, en-GB, de-DE
1841
+ # locale: "de-DE", # accepts de-DE, en-AU, en-GB, en-US, es-US
1812
1842
  # signature_contains: "String",
1813
1843
  # next_token: "NextToken",
1814
1844
  # max_results: 1,
@@ -3036,6 +3066,8 @@ module Aws::LexModelBuildingService
3036
3066
  # intent_version: "Version", # required
3037
3067
  # },
3038
3068
  # ],
3069
+ # enable_model_improvements: false,
3070
+ # nlu_intent_confidence_threshold: 1.0,
3039
3071
  # clarification_prompt: {
3040
3072
  # messages: [ # required
3041
3073
  # {
@@ -3061,7 +3093,7 @@ module Aws::LexModelBuildingService
3061
3093
  # voice_id: "String",
3062
3094
  # checksum: "String",
3063
3095
  # process_behavior: "SAVE", # accepts SAVE, BUILD
3064
- # locale: "en-US", # required, accepts en-US, en-GB, de-DE
3096
+ # locale: "de-DE", # required, accepts de-DE, en-AU, en-GB, en-US, es-US
3065
3097
  # child_directed: false, # required
3066
3098
  # detect_sentiment: false,
3067
3099
  # create_version: false,
@@ -3087,6 +3119,87 @@ module Aws::LexModelBuildingService
3087
3119
  # an OrderPizza intent. For more information, see how-it-works.
3088
3120
  # @return [Array<Types::Intent>]
3089
3121
  #
3122
+ # @!attribute [rw] enable_model_improvements
3123
+ # Set to `true` to enable access to natural language understanding
3124
+ # improvements.
3125
+ #
3126
+ # When you set the `enableModelImprovements` parameter to `true` you
3127
+ # can use the `nluIntentConfidenceThreshold` parameter to configure
3128
+ # confidence scores. For more information, see [Confidence Scores][1].
3129
+ #
3130
+ # You can only set the `enableModelImprovements` parameter in certain
3131
+ # Regions. If you set the parameter to `true`, your bot has access to
3132
+ # accuracy improvements.
3133
+ #
3134
+ # The Regions where you can set the `enableModelImprovements`
3135
+ # parameter to `true` are:
3136
+ #
3137
+ # * US East (N. Virginia) (us-east-1)
3138
+ #
3139
+ # * US West (Oregon) (us-west-2)
3140
+ #
3141
+ # * Asia Pacific (Sydney) (ap-southeast-2)
3142
+ #
3143
+ # * EU (Ireland) (eu-west-1)
3144
+ #
3145
+ # In other Regions, the `enableModelImprovements` parameter is set to
3146
+ # `true` by default. In these Regions setting the parameter to `false`
3147
+ # throws a `ValidationException` exception.
3148
+ #
3149
+ # * Asia Pacific (Singapore) (ap-southeast-1)
3150
+ #
3151
+ # * Asia Pacific (Tokyo) (ap-northeast-1)
3152
+ #
3153
+ # * EU (Frankfurt) (eu-central-1)
3154
+ #
3155
+ # * EU (London) (eu-west-2)
3156
+ #
3157
+ #
3158
+ #
3159
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html
3160
+ # @return [Boolean]
3161
+ #
3162
+ # @!attribute [rw] nlu_intent_confidence_threshold
3163
+ # Determines the threshold where Amazon Lex will insert the
3164
+ # `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
3165
+ # returning alternative intents in a [PostContent][1] or [PostText][2]
3166
+ # response. `AMAZON.FallbackIntent` and `AMAZON.KendraSearchIntent`
3167
+ # are only inserted if they are configured for the bot.
3168
+ #
3169
+ # You must set the `enableModelImprovements` parameter to `true` to
3170
+ # use confidence scores.
3171
+ #
3172
+ # * US East (N. Virginia) (us-east-1)
3173
+ #
3174
+ # * US West (Oregon) (us-west-2)
3175
+ #
3176
+ # * Asia Pacific (Sydney) (ap-southeast-2)
3177
+ #
3178
+ # * EU (Ireland) (eu-west-1)
3179
+ #
3180
+ # In other Regions, the `enableModelImprovements` parameter is set to
3181
+ # `true` by default.
3182
+ #
3183
+ # For example, suppose a bot is configured with the confidence
3184
+ # threshold of 0.80 and the `AMAZON.FallbackIntent`. Amazon Lex
3185
+ # returns three alternative intents with the following confidence
3186
+ # scores: IntentA (0.70), IntentB (0.60), IntentC (0.50). The response
3187
+ # from the `PostText` operation would be:
3188
+ #
3189
+ # * AMAZON.FallbackIntent
3190
+ #
3191
+ # * IntentA
3192
+ #
3193
+ # * IntentB
3194
+ #
3195
+ # * IntentC
3196
+ #
3197
+ #
3198
+ #
3199
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html
3200
+ # [2]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html
3201
+ # @return [Float]
3202
+ #
3090
3203
  # @!attribute [rw] clarification_prompt
3091
3204
  # When Amazon Lex doesn't understand the user's intent, it uses this
3092
3205
  # message to get clarification. To specify how many times Amazon Lex
@@ -3134,7 +3247,7 @@ module Aws::LexModelBuildingService
3134
3247
  # When Amazon Lex can't understand the user's input in context, it
3135
3248
  # tries to elicit the information a few times. After that, Amazon Lex
3136
3249
  # sends the message defined in `abortStatement` to the user, and then
3137
- # aborts the conversation. To set the number of retries, use the
3250
+ # cancels the conversation. To set the number of retries, use the
3138
3251
  # `valueElicitationPrompt` field for the slot type.
3139
3252
  #
3140
3253
  # For example, in a pizza ordering bot, Amazon Lex might ask a user
@@ -3148,7 +3261,7 @@ module Aws::LexModelBuildingService
3148
3261
  # You specify the `valueElicitationPrompt` field when you create the
3149
3262
  # `CrustType` slot.
3150
3263
  #
3151
- # If you have defined a fallback intent the abort statement will not
3264
+ # If you have defined a fallback intent the cancel statement will not
3152
3265
  # be sent to the user, the fallback intent is used instead. For more
3153
3266
  # information, see [ AMAZON.FallbackIntent][1].
3154
3267
  #
@@ -3274,6 +3387,8 @@ module Aws::LexModelBuildingService
3274
3387
  :name,
3275
3388
  :description,
3276
3389
  :intents,
3390
+ :enable_model_improvements,
3391
+ :nlu_intent_confidence_threshold,
3277
3392
  :clarification_prompt,
3278
3393
  :abort_statement,
3279
3394
  :idle_session_ttl_in_seconds,
@@ -3301,13 +3416,34 @@ module Aws::LexModelBuildingService
3301
3416
  # An array of `Intent` objects. For more information, see PutBot.
3302
3417
  # @return [Array<Types::Intent>]
3303
3418
  #
3419
+ # @!attribute [rw] enable_model_improvements
3420
+ # Indicates whether the bot uses accuracy improvements. `true`
3421
+ # indicates that the bot is using the improvements, otherwise,
3422
+ # `false`.
3423
+ # @return [Boolean]
3424
+ #
3425
+ # @!attribute [rw] nlu_intent_confidence_threshold
3426
+ # The score that determines where Amazon Lex inserts the
3427
+ # `AMAZON.FallbackIntent`, `AMAZON.KendraSearchIntent`, or both when
3428
+ # returning alternative intents in a [PostContent][1] or [PostText][2]
3429
+ # response. `AMAZON.FallbackIntent` is inserted if the confidence
3430
+ # score for all intents is below this value.
3431
+ # `AMAZON.KendraSearchIntent` is only inserted if it is configured for
3432
+ # the bot.
3433
+ #
3434
+ #
3435
+ #
3436
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostContent.html
3437
+ # [2]: https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html
3438
+ # @return [Float]
3439
+ #
3304
3440
  # @!attribute [rw] clarification_prompt
3305
3441
  # The prompts that Amazon Lex uses when it doesn't understand the
3306
3442
  # user's intent. For more information, see PutBot.
3307
3443
  # @return [Types::Prompt]
3308
3444
  #
3309
3445
  # @!attribute [rw] abort_statement
3310
- # The message that Amazon Lex uses to abort a conversation. For more
3446
+ # The message that Amazon Lex uses to cancel a conversation. For more
3311
3447
  # information, see PutBot.
3312
3448
  # @return [Types::Statement]
3313
3449
  #
@@ -3424,6 +3560,8 @@ module Aws::LexModelBuildingService
3424
3560
  :name,
3425
3561
  :description,
3426
3562
  :intents,
3563
+ :enable_model_improvements,
3564
+ :nlu_intent_confidence_threshold,
3427
3565
  :clarification_prompt,
3428
3566
  :abort_statement,
3429
3567
  :status,
@@ -3891,6 +4029,9 @@ module Aws::LexModelBuildingService
3891
4029
  # which are additional values that help train the machine learning
3892
4030
  # model about the values that it resolves for a slot.
3893
4031
  #
4032
+ # A regular expression slot type doesn't require enumeration values.
4033
+ # All other slot types require a list of enumeration values.
4034
+ #
3894
4035
  # When Amazon Lex resolves a slot value, it generates a resolution
3895
4036
  # list that contains up to five possible values for the slot. If you
3896
4037
  # are using a Lambda function, this resolution list is passed to the
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.33.0
4
+ version: 1.38.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: 2020-06-23 00:00:00.000000000 Z
11
+ date: 2020-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core