aws-sdk-lexmodelbuildingservice 1.30.0 → 1.36.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: 2f9019613a0fa9f0f53b0138293ac4618a1f724707e0fbf9fe3a6b363f151d34
4
- data.tar.gz: df1d835099f43e228e822d1c3b0dd47c6001602d4b7ac85e2f6d64d1baafcb41
3
+ metadata.gz: c56f0f4678792c15329290fcfa74f505256add2e9b163ef694f74d35aa9568b2
4
+ data.tar.gz: 5b1f37c34a72392baa9352293f330d9d36b865de53478e9c8326f3821d2945df
5
5
  SHA512:
6
- metadata.gz: f7307c6516f4b8b390fb1865a298170c3105cbbb00899cf05cbd8227f2db9d357276235004ef540179c545d829a957011316fa6a23a2a44e0a2dca373348de8e
7
- data.tar.gz: 50cfce6c8db55bef11954bba99ed961df325b13ed1d1eb3b10d744b656b4de1d7efc5f1c9e41c89f20e9cbe04a3f8fe49007bd2a3e9658dbfd0a0987eb340149
6
+ metadata.gz: 35077d5fdfdb7550651aeb835430cff04853654581fff347e85356a3d7a0f30cac869b26cceb9928eb2cabc7ed3ba9a2a5c14f4ec1a7b787b624942e5d79adcb
7
+ data.tar.gz: 624972524277bcb659ff4bddd95eb20187040ac31224b793b2f0e5807e8d723b3e03ec259cf1a9d5ffe81747493b11918414650dfaebfaea889de85996ca501b
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -42,9 +44,9 @@ require_relative 'aws-sdk-lexmodelbuildingservice/customizations'
42
44
  #
43
45
  # See {Errors} for more information.
44
46
  #
45
- # @service
47
+ # @!group service
46
48
  module Aws::LexModelBuildingService
47
49
 
48
- GEM_VERSION = '1.30.0'
50
+ GEM_VERSION = '1.36.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::LexModelBuildingService
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::RestJson)
74
78
 
@@ -81,13 +85,28 @@ module Aws::LexModelBuildingService
81
85
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
82
86
  # credentials.
83
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
+ #
84
102
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
85
103
  # from an EC2 IMDS on an EC2 instance.
86
104
  #
87
- # * `Aws::SharedCredentials` - Used for loading credentials from a
88
- # shared file, such as `~/.aws/config`.
105
+ # * `Aws::ECSCredentials` - Used for loading credentials from
106
+ # instances running in ECS.
89
107
  #
90
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
108
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
109
+ # from the Cognito Identity service.
91
110
  #
92
111
  # When `:credentials` are not configured directly, the following
93
112
  # locations will be searched for credentials:
@@ -97,10 +116,10 @@ module Aws::LexModelBuildingService
97
116
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
98
117
  # * `~/.aws/credentials`
99
118
  # * `~/.aws/config`
100
- # * EC2 IMDS instance profile - When used by default, the timeouts are
101
- # very aggressive. Construct and pass an instance of
102
- # `Aws::InstanceProfileCredentails` to enable retries and extended
103
- # 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.
104
123
  #
105
124
  # @option options [required, String] :region
106
125
  # The AWS region to connect to. The configured `:region` is
@@ -161,7 +180,7 @@ module Aws::LexModelBuildingService
161
180
  # @option options [String] :endpoint
162
181
  # The client endpoint is normally constructed from the `:region`
163
182
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
183
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
184
  #
166
185
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
186
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -354,6 +373,7 @@ module Aws::LexModelBuildingService
354
373
  # * {Types::CreateBotVersionResponse#version #version} => String
355
374
  # * {Types::CreateBotVersionResponse#locale #locale} => String
356
375
  # * {Types::CreateBotVersionResponse#child_directed #child_directed} => Boolean
376
+ # * {Types::CreateBotVersionResponse#enable_model_improvements #enable_model_improvements} => Boolean
357
377
  # * {Types::CreateBotVersionResponse#detect_sentiment #detect_sentiment} => Boolean
358
378
  #
359
379
  # @example Request syntax with placeholder values
@@ -389,8 +409,9 @@ module Aws::LexModelBuildingService
389
409
  # resp.voice_id #=> String
390
410
  # resp.checksum #=> String
391
411
  # resp.version #=> String
392
- # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
412
+ # resp.locale #=> String, one of "en-US", "en-GB", "de-DE", "en-AU"
393
413
  # resp.child_directed #=> Boolean
414
+ # resp.enable_model_improvements #=> Boolean
394
415
  # resp.detect_sentiment #=> Boolean
395
416
  #
396
417
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateBotVersion AWS API Documentation
@@ -449,6 +470,7 @@ module Aws::LexModelBuildingService
449
470
  # * {Types::CreateIntentVersionResponse#created_date #created_date} => Time
450
471
  # * {Types::CreateIntentVersionResponse#version #version} => String
451
472
  # * {Types::CreateIntentVersionResponse#checksum #checksum} => String
473
+ # * {Types::CreateIntentVersionResponse#kendra_configuration #kendra_configuration} => Types::KendraConfiguration
452
474
  #
453
475
  # @example Request syntax with placeholder values
454
476
  #
@@ -517,6 +539,9 @@ module Aws::LexModelBuildingService
517
539
  # resp.created_date #=> Time
518
540
  # resp.version #=> String
519
541
  # resp.checksum #=> String
542
+ # resp.kendra_configuration.kendra_index #=> String
543
+ # resp.kendra_configuration.query_filter_string #=> String
544
+ # resp.kendra_configuration.role #=> String
520
545
  #
521
546
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/CreateIntentVersion AWS API Documentation
522
547
  #
@@ -951,6 +976,8 @@ module Aws::LexModelBuildingService
951
976
  # * {Types::GetBotResponse#name #name} => String
952
977
  # * {Types::GetBotResponse#description #description} => String
953
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
954
981
  # * {Types::GetBotResponse#clarification_prompt #clarification_prompt} => Types::Prompt
955
982
  # * {Types::GetBotResponse#abort_statement #abort_statement} => Types::Statement
956
983
  # * {Types::GetBotResponse#status #status} => String
@@ -1034,6 +1061,8 @@ module Aws::LexModelBuildingService
1034
1061
  # resp.intents #=> Array
1035
1062
  # resp.intents[0].intent_name #=> String
1036
1063
  # resp.intents[0].intent_version #=> String
1064
+ # resp.enable_model_improvements #=> Boolean
1065
+ # resp.nlu_intent_confidence_threshold #=> Float
1037
1066
  # resp.clarification_prompt.messages #=> Array
1038
1067
  # resp.clarification_prompt.messages[0].content_type #=> String, one of "PlainText", "SSML", "CustomPayload"
1039
1068
  # resp.clarification_prompt.messages[0].content #=> String
@@ -1053,7 +1082,7 @@ module Aws::LexModelBuildingService
1053
1082
  # resp.voice_id #=> String
1054
1083
  # resp.checksum #=> String
1055
1084
  # resp.version #=> String
1056
- # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
1085
+ # resp.locale #=> String, one of "en-US", "en-GB", "de-DE", "en-AU"
1057
1086
  # resp.child_directed #=> Boolean
1058
1087
  # resp.detect_sentiment #=> Boolean
1059
1088
  #
@@ -1495,7 +1524,7 @@ module Aws::LexModelBuildingService
1495
1524
  #
1496
1525
  # resp.signature #=> String
1497
1526
  # resp.supported_locales #=> Array
1498
- # resp.supported_locales[0] #=> String, one of "en-US", "en-GB", "de-DE"
1527
+ # resp.supported_locales[0] #=> String, one of "en-US", "en-GB", "de-DE", "en-AU"
1499
1528
  # resp.slots #=> Array
1500
1529
  # resp.slots[0].name #=> String
1501
1530
  #
@@ -1547,7 +1576,7 @@ module Aws::LexModelBuildingService
1547
1576
  # @example Request syntax with placeholder values
1548
1577
  #
1549
1578
  # resp = client.get_builtin_intents({
1550
- # locale: "en-US", # accepts en-US, en-GB, de-DE
1579
+ # locale: "en-US", # accepts en-US, en-GB, de-DE, en-AU
1551
1580
  # signature_contains: "String",
1552
1581
  # next_token: "NextToken",
1553
1582
  # max_results: 1,
@@ -1558,7 +1587,7 @@ module Aws::LexModelBuildingService
1558
1587
  # resp.intents #=> Array
1559
1588
  # resp.intents[0].signature #=> String
1560
1589
  # resp.intents[0].supported_locales #=> Array
1561
- # 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 "en-US", "en-GB", "de-DE", "en-AU"
1562
1591
  # resp.next_token #=> String
1563
1592
  #
1564
1593
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinIntents AWS API Documentation
@@ -1610,7 +1639,7 @@ module Aws::LexModelBuildingService
1610
1639
  # @example Request syntax with placeholder values
1611
1640
  #
1612
1641
  # resp = client.get_builtin_slot_types({
1613
- # locale: "en-US", # accepts en-US, en-GB, de-DE
1642
+ # locale: "en-US", # accepts en-US, en-GB, de-DE, en-AU
1614
1643
  # signature_contains: "String",
1615
1644
  # next_token: "NextToken",
1616
1645
  # max_results: 1,
@@ -1621,7 +1650,7 @@ module Aws::LexModelBuildingService
1621
1650
  # resp.slot_types #=> Array
1622
1651
  # resp.slot_types[0].signature #=> String
1623
1652
  # resp.slot_types[0].supported_locales #=> Array
1624
- # 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 "en-US", "en-GB", "de-DE", "en-AU"
1625
1654
  # resp.next_token #=> String
1626
1655
  #
1627
1656
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetBuiltinSlotTypes AWS API Documentation
@@ -1756,6 +1785,7 @@ module Aws::LexModelBuildingService
1756
1785
  # * {Types::GetIntentResponse#created_date #created_date} => Time
1757
1786
  # * {Types::GetIntentResponse#version #version} => String
1758
1787
  # * {Types::GetIntentResponse#checksum #checksum} => String
1788
+ # * {Types::GetIntentResponse#kendra_configuration #kendra_configuration} => Types::KendraConfiguration
1759
1789
  #
1760
1790
  #
1761
1791
  # @example Example: To get a information about an intent
@@ -1969,6 +1999,9 @@ module Aws::LexModelBuildingService
1969
1999
  # resp.created_date #=> Time
1970
2000
  # resp.version #=> String
1971
2001
  # resp.checksum #=> String
2002
+ # resp.kendra_configuration.kendra_index #=> String
2003
+ # resp.kendra_configuration.query_filter_string #=> String
2004
+ # resp.kendra_configuration.role #=> String
1972
2005
  #
1973
2006
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetIntent AWS API Documentation
1974
2007
  #
@@ -2501,6 +2534,85 @@ module Aws::LexModelBuildingService
2501
2534
  # user can express. For example, a pizza ordering bot might support an
2502
2535
  # OrderPizza intent. For more information, see how-it-works.
2503
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
+ #
2504
2616
  # @option params [Types::Prompt] :clarification_prompt
2505
2617
  # When Amazon Lex doesn't understand the user's intent, it uses this
2506
2618
  # message to get clarification. To specify how many times Amazon Lex
@@ -2547,7 +2659,7 @@ module Aws::LexModelBuildingService
2547
2659
  # When Amazon Lex can't understand the user's input in context, it
2548
2660
  # tries to elicit the information a few times. After that, Amazon Lex
2549
2661
  # sends the message defined in `abortStatement` to the user, and then
2550
- # aborts the conversation. To set the number of retries, use the
2662
+ # cancels the conversation. To set the number of retries, use the
2551
2663
  # `valueElicitationPrompt` field for the slot type.
2552
2664
  #
2553
2665
  # For example, in a pizza ordering bot, Amazon Lex might ask a user
@@ -2561,7 +2673,7 @@ module Aws::LexModelBuildingService
2561
2673
  # You specify the `valueElicitationPrompt` field when you create the
2562
2674
  # `CrustType` slot.
2563
2675
  #
2564
- # 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
2565
2677
  # sent to the user, the fallback intent is used instead. For more
2566
2678
  # information, see [ AMAZON.FallbackIntent][1].
2567
2679
  #
@@ -2675,6 +2787,8 @@ module Aws::LexModelBuildingService
2675
2787
  # * {Types::PutBotResponse#name #name} => String
2676
2788
  # * {Types::PutBotResponse#description #description} => String
2677
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
2678
2792
  # * {Types::PutBotResponse#clarification_prompt #clarification_prompt} => Types::Prompt
2679
2793
  # * {Types::PutBotResponse#abort_statement #abort_statement} => Types::Statement
2680
2794
  # * {Types::PutBotResponse#status #status} => String
@@ -2792,6 +2906,8 @@ module Aws::LexModelBuildingService
2792
2906
  # intent_version: "Version", # required
2793
2907
  # },
2794
2908
  # ],
2909
+ # enable_model_improvements: false,
2910
+ # nlu_intent_confidence_threshold: 1.0,
2795
2911
  # clarification_prompt: {
2796
2912
  # messages: [ # required
2797
2913
  # {
@@ -2817,7 +2933,7 @@ module Aws::LexModelBuildingService
2817
2933
  # voice_id: "String",
2818
2934
  # checksum: "String",
2819
2935
  # process_behavior: "SAVE", # accepts SAVE, BUILD
2820
- # locale: "en-US", # required, accepts en-US, en-GB, de-DE
2936
+ # locale: "en-US", # required, accepts en-US, en-GB, de-DE, en-AU
2821
2937
  # child_directed: false, # required
2822
2938
  # detect_sentiment: false,
2823
2939
  # create_version: false,
@@ -2836,6 +2952,8 @@ module Aws::LexModelBuildingService
2836
2952
  # resp.intents #=> Array
2837
2953
  # resp.intents[0].intent_name #=> String
2838
2954
  # resp.intents[0].intent_version #=> String
2955
+ # resp.enable_model_improvements #=> Boolean
2956
+ # resp.nlu_intent_confidence_threshold #=> Float
2839
2957
  # resp.clarification_prompt.messages #=> Array
2840
2958
  # resp.clarification_prompt.messages[0].content_type #=> String, one of "PlainText", "SSML", "CustomPayload"
2841
2959
  # resp.clarification_prompt.messages[0].content #=> String
@@ -2855,7 +2973,7 @@ module Aws::LexModelBuildingService
2855
2973
  # resp.voice_id #=> String
2856
2974
  # resp.checksum #=> String
2857
2975
  # resp.version #=> String
2858
- # resp.locale #=> String, one of "en-US", "en-GB", "de-DE"
2976
+ # resp.locale #=> String, one of "en-US", "en-GB", "de-DE", "en-AU"
2859
2977
  # resp.child_directed #=> Boolean
2860
2978
  # resp.create_version #=> Boolean
2861
2979
  # resp.detect_sentiment #=> Boolean
@@ -3169,6 +3287,15 @@ module Aws::LexModelBuildingService
3169
3287
  # This is the same as calling the `CreateIntentVersion` operation. If
3170
3288
  # you do not specify `createVersion`, the default is `false`.
3171
3289
  #
3290
+ # @option params [Types::KendraConfiguration] :kendra_configuration
3291
+ # Configuration information required to use the
3292
+ # `AMAZON.KendraSearchIntent` intent to connect to an Amazon Kendra
3293
+ # index. For more information, see [ AMAZON.KendraSearchIntent][1].
3294
+ #
3295
+ #
3296
+ #
3297
+ # [1]: http://docs.aws.amazon.com/lex/latest/dg/built-in-intent-kendra-search.html
3298
+ #
3172
3299
  # @return [Types::PutIntentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3173
3300
  #
3174
3301
  # * {Types::PutIntentResponse#name #name} => String
@@ -3187,6 +3314,7 @@ module Aws::LexModelBuildingService
3187
3314
  # * {Types::PutIntentResponse#version #version} => String
3188
3315
  # * {Types::PutIntentResponse#checksum #checksum} => String
3189
3316
  # * {Types::PutIntentResponse#create_version #create_version} => Boolean
3317
+ # * {Types::PutIntentResponse#kendra_configuration #kendra_configuration} => Types::KendraConfiguration
3190
3318
  #
3191
3319
  #
3192
3320
  # @example Example: To create an intent
@@ -3556,6 +3684,11 @@ module Aws::LexModelBuildingService
3556
3684
  # parent_intent_signature: "BuiltinIntentSignature",
3557
3685
  # checksum: "String",
3558
3686
  # create_version: false,
3687
+ # kendra_configuration: {
3688
+ # kendra_index: "KendraIndexArn", # required
3689
+ # query_filter_string: "QueryFilterString",
3690
+ # role: "roleArn", # required
3691
+ # },
3559
3692
  # })
3560
3693
  #
3561
3694
  # @example Response structure
@@ -3619,6 +3752,9 @@ module Aws::LexModelBuildingService
3619
3752
  # resp.version #=> String
3620
3753
  # resp.checksum #=> String
3621
3754
  # resp.create_version #=> Boolean
3755
+ # resp.kendra_configuration.kendra_index #=> String
3756
+ # resp.kendra_configuration.query_filter_string #=> String
3757
+ # resp.kendra_configuration.role #=> String
3622
3758
  #
3623
3759
  # @see http://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/PutIntent AWS API Documentation
3624
3760
  #
@@ -3669,6 +3805,9 @@ module Aws::LexModelBuildingService
3669
3805
  # are additional values that help train the machine learning model about
3670
3806
  # the values that it resolves for a slot.
3671
3807
  #
3808
+ # A regular expression slot type doesn't require enumeration values.
3809
+ # All other slot types require a list of enumeration values.
3810
+ #
3672
3811
  # When Amazon Lex resolves a slot value, it generates a resolution list
3673
3812
  # that contains up to five possible values for the slot. If you are
3674
3813
  # using a Lambda function, this resolution list is passed to the
@@ -3822,7 +3961,7 @@ module Aws::LexModelBuildingService
3822
3961
 
3823
3962
  # Starts a job to import a resource to Amazon Lex.
3824
3963
  #
3825
- # @option params [required, String, IO] :payload
3964
+ # @option params [required, String, StringIO, File] :payload
3826
3965
  # A zip archive in binary format. The archive should contain one file, a
3827
3966
  # JSON file containing the resource to import. The resource should match
3828
3967
  # the type specified in the `resourceType` field.
@@ -3972,7 +4111,7 @@ module Aws::LexModelBuildingService
3972
4111
  params: params,
3973
4112
  config: config)
3974
4113
  context[:gem_name] = 'aws-sdk-lexmodelbuildingservice'
3975
- context[:gem_version] = '1.30.0'
4114
+ context[:gem_version] = '1.36.0'
3976
4115
  Seahorse::Client::Request.new(handlers, context)
3977
4116
  end
3978
4117
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -38,6 +40,7 @@ module Aws::LexModelBuildingService
38
40
  ChannelStatus = Shapes::StringShape.new(name: 'ChannelStatus')
39
41
  ChannelType = Shapes::StringShape.new(name: 'ChannelType')
40
42
  CodeHook = Shapes::StructureShape.new(name: 'CodeHook')
43
+ ConfidenceThreshold = Shapes::FloatShape.new(name: 'ConfidenceThreshold')
41
44
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
42
45
  ContentString = Shapes::StringShape.new(name: 'ContentString')
43
46
  ContentType = Shapes::StringShape.new(name: 'ContentType')
@@ -117,6 +120,8 @@ module Aws::LexModelBuildingService
117
120
  IntentName = Shapes::StringShape.new(name: 'IntentName')
118
121
  IntentUtteranceList = Shapes::ListShape.new(name: 'IntentUtteranceList')
119
122
  InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
123
+ KendraConfiguration = Shapes::StructureShape.new(name: 'KendraConfiguration')
124
+ KendraIndexArn = Shapes::StringShape.new(name: 'KendraIndexArn')
120
125
  KmsKeyArn = Shapes::StringShape.new(name: 'KmsKeyArn')
121
126
  LambdaARN = Shapes::StringShape.new(name: 'LambdaARN')
122
127
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
@@ -154,6 +159,7 @@ module Aws::LexModelBuildingService
154
159
  PutIntentResponse = Shapes::StructureShape.new(name: 'PutIntentResponse')
155
160
  PutSlotTypeRequest = Shapes::StructureShape.new(name: 'PutSlotTypeRequest')
156
161
  PutSlotTypeResponse = Shapes::StructureShape.new(name: 'PutSlotTypeResponse')
162
+ QueryFilterString = Shapes::StringShape.new(name: 'QueryFilterString')
157
163
  ReferenceType = Shapes::StringShape.new(name: 'ReferenceType')
158
164
  RegexPattern = Shapes::StringShape.new(name: 'RegexPattern')
159
165
  ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
@@ -200,6 +206,7 @@ module Aws::LexModelBuildingService
200
206
  UtteranceString = Shapes::StringShape.new(name: 'UtteranceString')
201
207
  Value = Shapes::StringShape.new(name: 'Value')
202
208
  Version = Shapes::StringShape.new(name: 'Version')
209
+ roleArn = Shapes::StringShape.new(name: 'roleArn')
203
210
 
204
211
  BadRequestException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
205
212
  BadRequestException.struct_class = Types::BadRequestException
@@ -295,6 +302,7 @@ module Aws::LexModelBuildingService
295
302
  CreateBotVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
296
303
  CreateBotVersionResponse.add_member(:locale, Shapes::ShapeRef.new(shape: Locale, location_name: "locale"))
297
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"))
298
306
  CreateBotVersionResponse.add_member(:detect_sentiment, Shapes::ShapeRef.new(shape: Boolean, location_name: "detectSentiment"))
299
307
  CreateBotVersionResponse.struct_class = Types::CreateBotVersionResponse
300
308
 
@@ -317,6 +325,7 @@ module Aws::LexModelBuildingService
317
325
  CreateIntentVersionResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
318
326
  CreateIntentVersionResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
319
327
  CreateIntentVersionResponse.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
328
+ CreateIntentVersionResponse.add_member(:kendra_configuration, Shapes::ShapeRef.new(shape: KendraConfiguration, location_name: "kendraConfiguration"))
320
329
  CreateIntentVersionResponse.struct_class = Types::CreateIntentVersionResponse
321
330
 
322
331
  CreateSlotTypeVersionRequest.add_member(:name, Shapes::ShapeRef.new(shape: SlotTypeName, required: true, location: "uri", location_name: "name"))
@@ -441,6 +450,8 @@ module Aws::LexModelBuildingService
441
450
  GetBotResponse.add_member(:name, Shapes::ShapeRef.new(shape: BotName, location_name: "name"))
442
451
  GetBotResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
443
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"))
444
455
  GetBotResponse.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
445
456
  GetBotResponse.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
446
457
  GetBotResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
@@ -548,6 +559,7 @@ module Aws::LexModelBuildingService
548
559
  GetIntentResponse.add_member(:created_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdDate"))
549
560
  GetIntentResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
550
561
  GetIntentResponse.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
562
+ GetIntentResponse.add_member(:kendra_configuration, Shapes::ShapeRef.new(shape: KendraConfiguration, location_name: "kendraConfiguration"))
551
563
  GetIntentResponse.struct_class = Types::GetIntentResponse
552
564
 
553
565
  GetIntentVersionsRequest.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, required: true, location: "uri", location_name: "name"))
@@ -631,6 +643,11 @@ module Aws::LexModelBuildingService
631
643
  InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
632
644
  InternalFailureException.struct_class = Types::InternalFailureException
633
645
 
646
+ KendraConfiguration.add_member(:kendra_index, Shapes::ShapeRef.new(shape: KendraIndexArn, required: true, location_name: "kendraIndex"))
647
+ KendraConfiguration.add_member(:query_filter_string, Shapes::ShapeRef.new(shape: QueryFilterString, location_name: "queryFilterString"))
648
+ KendraConfiguration.add_member(:role, Shapes::ShapeRef.new(shape: roleArn, required: true, location_name: "role"))
649
+ KendraConfiguration.struct_class = Types::KendraConfiguration
650
+
634
651
  LimitExceededException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "Retry-After"))
635
652
  LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: String, location_name: "message"))
636
653
  LimitExceededException.struct_class = Types::LimitExceededException
@@ -705,6 +722,8 @@ module Aws::LexModelBuildingService
705
722
  PutBotRequest.add_member(:name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "name"))
706
723
  PutBotRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
707
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"))
708
727
  PutBotRequest.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
709
728
  PutBotRequest.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
710
729
  PutBotRequest.add_member(:idle_session_ttl_in_seconds, Shapes::ShapeRef.new(shape: SessionTTL, location_name: "idleSessionTTLInSeconds"))
@@ -721,6 +740,8 @@ module Aws::LexModelBuildingService
721
740
  PutBotResponse.add_member(:name, Shapes::ShapeRef.new(shape: BotName, location_name: "name"))
722
741
  PutBotResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
723
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"))
724
745
  PutBotResponse.add_member(:clarification_prompt, Shapes::ShapeRef.new(shape: Prompt, location_name: "clarificationPrompt"))
725
746
  PutBotResponse.add_member(:abort_statement, Shapes::ShapeRef.new(shape: Statement, location_name: "abortStatement"))
726
747
  PutBotResponse.add_member(:status, Shapes::ShapeRef.new(shape: Status, location_name: "status"))
@@ -751,6 +772,7 @@ module Aws::LexModelBuildingService
751
772
  PutIntentRequest.add_member(:parent_intent_signature, Shapes::ShapeRef.new(shape: BuiltinIntentSignature, location_name: "parentIntentSignature"))
752
773
  PutIntentRequest.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
753
774
  PutIntentRequest.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
775
+ PutIntentRequest.add_member(:kendra_configuration, Shapes::ShapeRef.new(shape: KendraConfiguration, location_name: "kendraConfiguration"))
754
776
  PutIntentRequest.struct_class = Types::PutIntentRequest
755
777
 
756
778
  PutIntentResponse.add_member(:name, Shapes::ShapeRef.new(shape: IntentName, location_name: "name"))
@@ -769,6 +791,7 @@ module Aws::LexModelBuildingService
769
791
  PutIntentResponse.add_member(:version, Shapes::ShapeRef.new(shape: Version, location_name: "version"))
770
792
  PutIntentResponse.add_member(:checksum, Shapes::ShapeRef.new(shape: String, location_name: "checksum"))
771
793
  PutIntentResponse.add_member(:create_version, Shapes::ShapeRef.new(shape: Boolean, location_name: "createVersion"))
794
+ PutIntentResponse.add_member(:kendra_configuration, Shapes::ShapeRef.new(shape: KendraConfiguration, location_name: "kendraConfiguration"))
772
795
  PutIntentResponse.struct_class = Types::PutIntentResponse
773
796
 
774
797
  PutSlotTypeRequest.add_member(:name, Shapes::ShapeRef.new(shape: SlotTypeName, required: true, location: "uri", location_name: "name"))