aws-sdk-lex 1.26.0 → 1.31.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
  SHA256:
3
- metadata.gz: 680cb14cf717f581618e0c82371cf7474b7d49a9103a6b227e9b93e6396c0a3b
4
- data.tar.gz: e3c8420c94b0bc03336d87fc7c8ac1f17f54b5bacd04ea6d890f734bf179a8a0
3
+ metadata.gz: 90ed79affd0efe1e09b594c431ba14f44023a6fdccc947541f61c47e1a0101a1
4
+ data.tar.gz: a8a7d3be0ddaab2d64005943e036d6cc93a12617115f469c8d0509910a50b05f
5
5
  SHA512:
6
- metadata.gz: d2483e3ae3768ad066837d52a58b40671bc9947c27249bac5a506c56ad7d3b392ad674ce79d4a068073c5a7f5152c97e3cfb216ba8e79ae1423c2779b0d980d6
7
- data.tar.gz: 536bc89dc0fc83b9ac17f24989800924e6100766da42669f817ef9a30a0465af20d97460cdfbb2402e6820cf8794eaa7978152657bd0b4487074692a6d351ef7
6
+ metadata.gz: a96d9c55f82d48582bd8b4feb9a5a50ef152cbbe0e5ea733f644a511fad8c081ca6e34f0207a21994b40f3a989666ecf974e7fe57f21219cc181b8e900c9c4bd
7
+ data.tar.gz: 3de7eba82af72dbd9ce4f22c260a427bedd76a84f6e617046f3f30c28cb38e6af23ce9cee539d8021901a9714505cdf8fdf1f26d26a5ec82bcffd12008e3f615
@@ -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:
@@ -5,6 +7,7 @@
5
7
  #
6
8
  # WARNING ABOUT GENERATED CODE
7
9
 
10
+
8
11
  require 'aws-sdk-core'
9
12
  require 'aws-sigv4'
10
13
 
@@ -42,9 +45,9 @@ require_relative 'aws-sdk-lex/customizations'
42
45
  #
43
46
  # See {Errors} for more information.
44
47
  #
45
- # @service
48
+ # @!group service
46
49
  module Aws::Lex
47
50
 
48
- GEM_VERSION = '1.26.0'
51
+ GEM_VERSION = '1.31.0'
49
52
 
50
53
  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::Lex
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::Lex
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::Lex
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::Lex
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
@@ -624,6 +643,8 @@ module Aws::Lex
624
643
  #
625
644
  # * {Types::PostContentResponse#content_type #content_type} => String
626
645
  # * {Types::PostContentResponse#intent_name #intent_name} => String
646
+ # * {Types::PostContentResponse#nlu_intent_confidence #nlu_intent_confidence} => String
647
+ # * {Types::PostContentResponse#alternative_intents #alternative_intents} => String
627
648
  # * {Types::PostContentResponse#slots #slots} => String
628
649
  # * {Types::PostContentResponse#session_attributes #session_attributes} => String
629
650
  # * {Types::PostContentResponse#sentiment_response #sentiment_response} => String
@@ -633,6 +654,7 @@ module Aws::Lex
633
654
  # * {Types::PostContentResponse#slot_to_elicit #slot_to_elicit} => String
634
655
  # * {Types::PostContentResponse#input_transcript #input_transcript} => String
635
656
  # * {Types::PostContentResponse#audio_stream #audio_stream} => IO
657
+ # * {Types::PostContentResponse#bot_version #bot_version} => String
636
658
  # * {Types::PostContentResponse#session_id #session_id} => String
637
659
  #
638
660
  # @example Request syntax with placeholder values
@@ -652,6 +674,8 @@ module Aws::Lex
652
674
  #
653
675
  # resp.content_type #=> String
654
676
  # resp.intent_name #=> String
677
+ # resp.nlu_intent_confidence #=> String
678
+ # resp.alternative_intents #=> String
655
679
  # resp.slots #=> String
656
680
  # resp.session_attributes #=> String
657
681
  # resp.sentiment_response #=> String
@@ -661,6 +685,7 @@ module Aws::Lex
661
685
  # resp.slot_to_elicit #=> String
662
686
  # resp.input_transcript #=> String
663
687
  # resp.audio_stream #=> IO
688
+ # resp.bot_version #=> String
664
689
  # resp.session_id #=> String
665
690
  #
666
691
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostContent AWS API Documentation
@@ -790,6 +815,8 @@ module Aws::Lex
790
815
  # @return [Types::PostTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
791
816
  #
792
817
  # * {Types::PostTextResponse#intent_name #intent_name} => String
818
+ # * {Types::PostTextResponse#nlu_intent_confidence #nlu_intent_confidence} => Types::IntentConfidence
819
+ # * {Types::PostTextResponse#alternative_intents #alternative_intents} => Array<Types::PredictedIntent>
793
820
  # * {Types::PostTextResponse#slots #slots} => Hash<String,String>
794
821
  # * {Types::PostTextResponse#session_attributes #session_attributes} => Hash<String,String>
795
822
  # * {Types::PostTextResponse#message #message} => String
@@ -799,6 +826,7 @@ module Aws::Lex
799
826
  # * {Types::PostTextResponse#slot_to_elicit #slot_to_elicit} => String
800
827
  # * {Types::PostTextResponse#response_card #response_card} => Types::ResponseCard
801
828
  # * {Types::PostTextResponse#session_id #session_id} => String
829
+ # * {Types::PostTextResponse#bot_version #bot_version} => String
802
830
  #
803
831
  # @example Request syntax with placeholder values
804
832
  #
@@ -818,6 +846,12 @@ module Aws::Lex
818
846
  # @example Response structure
819
847
  #
820
848
  # resp.intent_name #=> String
849
+ # resp.nlu_intent_confidence.score #=> Float
850
+ # resp.alternative_intents #=> Array
851
+ # resp.alternative_intents[0].intent_name #=> String
852
+ # resp.alternative_intents[0].nlu_intent_confidence.score #=> Float
853
+ # resp.alternative_intents[0].slots #=> Hash
854
+ # resp.alternative_intents[0].slots["String"] #=> String
821
855
  # resp.slots #=> Hash
822
856
  # resp.slots["String"] #=> String
823
857
  # resp.session_attributes #=> Hash
@@ -839,6 +873,7 @@ module Aws::Lex
839
873
  # resp.response_card.generic_attachments[0].buttons[0].text #=> String
840
874
  # resp.response_card.generic_attachments[0].buttons[0].value #=> String
841
875
  # resp.session_id #=> String
876
+ # resp.bot_version #=> String
842
877
  #
843
878
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostText AWS API Documentation
844
879
  #
@@ -1013,7 +1048,7 @@ module Aws::Lex
1013
1048
  params: params,
1014
1049
  config: config)
1015
1050
  context[:gem_name] = 'aws-sdk-lex'
1016
- context[:gem_version] = '1.26.0'
1051
+ context[:gem_version] = '1.31.0'
1017
1052
  Seahorse::Client::Request.new(handlers, context)
1018
1053
  end
1019
1054
 
@@ -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:
@@ -18,6 +20,7 @@ module Aws::Lex
18
20
  BlobStream = Shapes::BlobShape.new(name: 'BlobStream', streaming: true)
19
21
  BotAlias = Shapes::StringShape.new(name: 'BotAlias')
20
22
  BotName = Shapes::StringShape.new(name: 'BotName')
23
+ BotVersion = Shapes::StringShape.new(name: 'BotVersion')
21
24
  Button = Shapes::StructureShape.new(name: 'Button')
22
25
  ButtonTextStringWithLength = Shapes::StringShape.new(name: 'ButtonTextStringWithLength')
23
26
  ButtonValueStringWithLength = Shapes::StringShape.new(name: 'ButtonValueStringWithLength')
@@ -30,12 +33,15 @@ module Aws::Lex
30
33
  DialogAction = Shapes::StructureShape.new(name: 'DialogAction')
31
34
  DialogActionType = Shapes::StringShape.new(name: 'DialogActionType')
32
35
  DialogState = Shapes::StringShape.new(name: 'DialogState')
36
+ Double = Shapes::FloatShape.new(name: 'Double')
33
37
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
34
38
  FulfillmentState = Shapes::StringShape.new(name: 'FulfillmentState')
35
39
  GenericAttachment = Shapes::StructureShape.new(name: 'GenericAttachment')
36
40
  GetSessionRequest = Shapes::StructureShape.new(name: 'GetSessionRequest')
37
41
  GetSessionResponse = Shapes::StructureShape.new(name: 'GetSessionResponse')
38
42
  HttpContentType = Shapes::StringShape.new(name: 'HttpContentType')
43
+ IntentConfidence = Shapes::StructureShape.new(name: 'IntentConfidence')
44
+ IntentList = Shapes::ListShape.new(name: 'IntentList')
39
45
  IntentName = Shapes::StringShape.new(name: 'IntentName')
40
46
  IntentSummary = Shapes::StructureShape.new(name: 'IntentSummary')
41
47
  IntentSummaryCheckpointLabel = Shapes::StringShape.new(name: 'IntentSummaryCheckpointLabel')
@@ -50,6 +56,7 @@ module Aws::Lex
50
56
  PostContentResponse = Shapes::StructureShape.new(name: 'PostContentResponse')
51
57
  PostTextRequest = Shapes::StructureShape.new(name: 'PostTextRequest')
52
58
  PostTextResponse = Shapes::StructureShape.new(name: 'PostTextResponse')
59
+ PredictedIntent = Shapes::StructureShape.new(name: 'PredictedIntent')
53
60
  PutSessionRequest = Shapes::StructureShape.new(name: 'PutSessionRequest')
54
61
  PutSessionResponse = Shapes::StructureShape.new(name: 'PutSessionResponse')
55
62
  RequestTimeoutException = Shapes::StructureShape.new(name: 'RequestTimeoutException')
@@ -122,6 +129,11 @@ module Aws::Lex
122
129
  GetSessionResponse.add_member(:dialog_action, Shapes::ShapeRef.new(shape: DialogAction, location_name: "dialogAction"))
123
130
  GetSessionResponse.struct_class = Types::GetSessionResponse
124
131
 
132
+ IntentConfidence.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
133
+ IntentConfidence.struct_class = Types::IntentConfidence
134
+
135
+ IntentList.member = Shapes::ShapeRef.new(shape: PredictedIntent)
136
+
125
137
  IntentSummary.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
126
138
  IntentSummary.add_member(:checkpoint_label, Shapes::ShapeRef.new(shape: IntentSummaryCheckpointLabel, location_name: "checkpointLabel"))
127
139
  IntentSummary.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
@@ -163,6 +175,8 @@ module Aws::Lex
163
175
 
164
176
  PostContentResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: HttpContentType, location: "header", location_name: "Content-Type"))
165
177
  PostContentResponse.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location: "header", location_name: "x-amz-lex-intent-name"))
178
+ PostContentResponse.add_member(:nlu_intent_confidence, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-nlu-intent-confidence", metadata: {"jsonvalue"=>true}))
179
+ PostContentResponse.add_member(:alternative_intents, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-alternative-intents", metadata: {"jsonvalue"=>true}))
166
180
  PostContentResponse.add_member(:slots, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slots", metadata: {"jsonvalue"=>true}))
167
181
  PostContentResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-attributes", metadata: {"jsonvalue"=>true}))
168
182
  PostContentResponse.add_member(:sentiment_response, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-sentiment"))
@@ -172,6 +186,7 @@ module Aws::Lex
172
186
  PostContentResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slot-to-elicit"))
173
187
  PostContentResponse.add_member(:input_transcript, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-input-transcript"))
174
188
  PostContentResponse.add_member(:audio_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "audioStream"))
189
+ PostContentResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location: "header", location_name: "x-amz-lex-bot-version"))
175
190
  PostContentResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-id"))
176
191
  PostContentResponse.struct_class = Types::PostContentResponse
177
192
  PostContentResponse[:payload] = :audio_stream
@@ -186,6 +201,8 @@ module Aws::Lex
186
201
  PostTextRequest.struct_class = Types::PostTextRequest
187
202
 
188
203
  PostTextResponse.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
204
+ PostTextResponse.add_member(:nlu_intent_confidence, Shapes::ShapeRef.new(shape: IntentConfidence, location_name: "nluIntentConfidence"))
205
+ PostTextResponse.add_member(:alternative_intents, Shapes::ShapeRef.new(shape: IntentList, location_name: "alternativeIntents"))
189
206
  PostTextResponse.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
190
207
  PostTextResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
191
208
  PostTextResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, location_name: "message"))
@@ -195,8 +212,14 @@ module Aws::Lex
195
212
  PostTextResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location_name: "slotToElicit"))
196
213
  PostTextResponse.add_member(:response_card, Shapes::ShapeRef.new(shape: ResponseCard, location_name: "responseCard"))
197
214
  PostTextResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "sessionId"))
215
+ PostTextResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location_name: "botVersion"))
198
216
  PostTextResponse.struct_class = Types::PostTextResponse
199
217
 
218
+ PredictedIntent.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
219
+ PredictedIntent.add_member(:nlu_intent_confidence, Shapes::ShapeRef.new(shape: IntentConfidence, location_name: "nluIntentConfidence"))
220
+ PredictedIntent.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
221
+ PredictedIntent.struct_class = Types::PredictedIntent
222
+
200
223
  PutSessionRequest.add_member(:bot_name, Shapes::ShapeRef.new(shape: BotName, required: true, location: "uri", location_name: "botName"))
201
224
  PutSessionRequest.add_member(:bot_alias, Shapes::ShapeRef.new(shape: BotAlias, required: true, location: "uri", location_name: "botAlias"))
202
225
  PutSessionRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location: "uri", location_name: "userId"))
@@ -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:
@@ -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:
@@ -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:
@@ -19,6 +21,7 @@ module Aws::Lex
19
21
  #
20
22
  class BadGatewayException < Struct.new(
21
23
  :message)
24
+ SENSITIVE = []
22
25
  include Aws::Structure
23
26
  end
24
27
 
@@ -33,6 +36,7 @@ module Aws::Lex
33
36
  #
34
37
  class BadRequestException < Struct.new(
35
38
  :message)
39
+ SENSITIVE = []
36
40
  include Aws::Structure
37
41
  end
38
42
 
@@ -54,6 +58,7 @@ module Aws::Lex
54
58
  class Button < Struct.new(
55
59
  :text,
56
60
  :value)
61
+ SENSITIVE = []
57
62
  include Aws::Structure
58
63
  end
59
64
 
@@ -67,6 +72,7 @@ module Aws::Lex
67
72
  #
68
73
  class ConflictException < Struct.new(
69
74
  :message)
75
+ SENSITIVE = []
70
76
  include Aws::Structure
71
77
  end
72
78
 
@@ -97,6 +103,7 @@ module Aws::Lex
97
103
  :bot_name,
98
104
  :bot_alias,
99
105
  :user_id)
106
+ SENSITIVE = []
100
107
  include Aws::Structure
101
108
  end
102
109
 
@@ -123,6 +130,7 @@ module Aws::Lex
123
130
  :bot_alias,
124
131
  :user_id,
125
132
  :session_id)
133
+ SENSITIVE = []
126
134
  include Aws::Structure
127
135
  end
128
136
 
@@ -144,6 +152,7 @@ module Aws::Lex
144
152
  #
145
153
  class DependencyFailedException < Struct.new(
146
154
  :message)
155
+ SENSITIVE = []
147
156
  include Aws::Structure
148
157
  end
149
158
 
@@ -247,6 +256,7 @@ module Aws::Lex
247
256
  :fulfillment_state,
248
257
  :message,
249
258
  :message_format)
259
+ SENSITIVE = [:slots, :message]
250
260
  include Aws::Structure
251
261
  end
252
262
 
@@ -281,6 +291,7 @@ module Aws::Lex
281
291
  :attachment_link_url,
282
292
  :image_url,
283
293
  :buttons)
294
+ SENSITIVE = []
284
295
  include Aws::Structure
285
296
  end
286
297
 
@@ -322,6 +333,7 @@ module Aws::Lex
322
333
  :bot_alias,
323
334
  :user_id,
324
335
  :checkpoint_label_filter)
336
+ SENSITIVE = []
325
337
  include Aws::Structure
326
338
  end
327
339
 
@@ -356,6 +368,24 @@ module Aws::Lex
356
368
  :session_attributes,
357
369
  :session_id,
358
370
  :dialog_action)
371
+ SENSITIVE = [:session_attributes]
372
+ include Aws::Structure
373
+ end
374
+
375
+ # Provides a score that indicates the confidence that Amazon Lex has
376
+ # that an intent is the one that satisfies the user's intent.
377
+ #
378
+ # @!attribute [rw] score
379
+ # A score that indicates how confident Amazon Lex is that an intent
380
+ # satisfies the user's intent. Ranges between 0.00 and 1.00. Higher
381
+ # scores indicate higher confidence.
382
+ # @return [Float]
383
+ #
384
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/IntentConfidence AWS API Documentation
385
+ #
386
+ class IntentConfidence < Struct.new(
387
+ :score)
388
+ SENSITIVE = []
359
389
  include Aws::Structure
360
390
  end
361
391
 
@@ -461,6 +491,7 @@ module Aws::Lex
461
491
  :dialog_action_type,
462
492
  :fulfillment_state,
463
493
  :slot_to_elicit)
494
+ SENSITIVE = [:slots]
464
495
  include Aws::Structure
465
496
  end
466
497
 
@@ -473,6 +504,7 @@ module Aws::Lex
473
504
  #
474
505
  class InternalFailureException < Struct.new(
475
506
  :message)
507
+ SENSITIVE = []
476
508
  include Aws::Structure
477
509
  end
478
510
 
@@ -489,6 +521,7 @@ module Aws::Lex
489
521
  class LimitExceededException < Struct.new(
490
522
  :retry_after_seconds,
491
523
  :message)
524
+ SENSITIVE = []
492
525
  include Aws::Structure
493
526
  end
494
527
 
@@ -501,6 +534,7 @@ module Aws::Lex
501
534
  #
502
535
  class LoopDetectedException < Struct.new(
503
536
  :message)
537
+ SENSITIVE = []
504
538
  include Aws::Structure
505
539
  end
506
540
 
@@ -513,6 +547,7 @@ module Aws::Lex
513
547
  #
514
548
  class NotAcceptableException < Struct.new(
515
549
  :message)
550
+ SENSITIVE = []
516
551
  include Aws::Structure
517
552
  end
518
553
 
@@ -526,6 +561,7 @@ module Aws::Lex
526
561
  #
527
562
  class NotFoundException < Struct.new(
528
563
  :message)
564
+ SENSITIVE = []
529
565
  include Aws::Structure
530
566
  end
531
567
 
@@ -696,6 +732,7 @@ module Aws::Lex
696
732
  :content_type,
697
733
  :accept,
698
734
  :input_stream)
735
+ SENSITIVE = [:session_attributes, :request_attributes]
699
736
  include Aws::Structure
700
737
  end
701
738
 
@@ -708,6 +745,24 @@ module Aws::Lex
708
745
  # Current user intent that Amazon Lex is aware of.
709
746
  # @return [String]
710
747
  #
748
+ # @!attribute [rw] nlu_intent_confidence
749
+ # Provides a score that indicates how confident Amazon Lex is that the
750
+ # returned intent is the one that matches the user's intent. The
751
+ # score is between 0.0 and 1.0.
752
+ #
753
+ # The score is a relative score, not an absolute score. The score may
754
+ # change based on improvements to the Amazon Lex NLU.
755
+ # @return [String]
756
+ #
757
+ # @!attribute [rw] alternative_intents
758
+ # One to four alternative intents that may be applicable to the
759
+ # user's intent.
760
+ #
761
+ # Each alternative includes a score that indicates how confident
762
+ # Amazon Lex is that the intent matches the user's intent. The
763
+ # intents are sorted by the confidence score.
764
+ # @return [String]
765
+ #
711
766
  # @!attribute [rw] slots
712
767
  # Map of zero or more intent slots (name/value pairs) Amazon Lex
713
768
  # detected from the user input during the conversation. The field is
@@ -731,7 +786,7 @@ module Aws::Lex
731
786
  # @return [String]
732
787
  #
733
788
  # @!attribute [rw] sentiment_response
734
- # The sentiment expressed in and utterance.
789
+ # The sentiment expressed in an utterance.
735
790
  #
736
791
  # When the bot is configured to send utterances to Amazon Comprehend
737
792
  # for sentiment analysis, this field contains the result of the
@@ -848,6 +903,23 @@ module Aws::Lex
848
903
  # Amazon Lex sends that message in the response.
849
904
  # @return [IO]
850
905
  #
906
+ # @!attribute [rw] bot_version
907
+ # The version of the bot that responded to the conversation. You can
908
+ # use this information to help determine if one version of a bot is
909
+ # performing better than another version.
910
+ #
911
+ # If you have enabled the new natural language understanding (NLU)
912
+ # model, you can use this to determine if the improvement is due to
913
+ # changes to the bot or changes to the NLU.
914
+ #
915
+ # For more information about enabling the new NLU, see the
916
+ # [enableModelImprovements][1] parameter of the `PutBot` operation.
917
+ #
918
+ #
919
+ #
920
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-enableModelImprovements
921
+ # @return [String]
922
+ #
851
923
  # @!attribute [rw] session_id
852
924
  # The unique identifier for the session.
853
925
  # @return [String]
@@ -857,6 +929,8 @@ module Aws::Lex
857
929
  class PostContentResponse < Struct.new(
858
930
  :content_type,
859
931
  :intent_name,
932
+ :nlu_intent_confidence,
933
+ :alternative_intents,
860
934
  :slots,
861
935
  :session_attributes,
862
936
  :sentiment_response,
@@ -866,7 +940,9 @@ module Aws::Lex
866
940
  :slot_to_elicit,
867
941
  :input_transcript,
868
942
  :audio_stream,
943
+ :bot_version,
869
944
  :session_id)
945
+ SENSITIVE = [:message]
870
946
  include Aws::Structure
871
947
  end
872
948
 
@@ -959,6 +1035,7 @@ module Aws::Lex
959
1035
  :session_attributes,
960
1036
  :request_attributes,
961
1037
  :input_text)
1038
+ SENSITIVE = [:session_attributes, :request_attributes, :input_text]
962
1039
  include Aws::Structure
963
1040
  end
964
1041
 
@@ -966,6 +1043,30 @@ module Aws::Lex
966
1043
  # The current user intent that Amazon Lex is aware of.
967
1044
  # @return [String]
968
1045
  #
1046
+ # @!attribute [rw] nlu_intent_confidence
1047
+ # Provides a score that indicates how confident Amazon Lex is that the
1048
+ # returned intent is the one that matches the user's intent. The
1049
+ # score is between 0.0 and 1.0. For more information, see [Confidence
1050
+ # Scores][1].
1051
+ #
1052
+ # The score is a relative score, not an absolute score. The score may
1053
+ # change based on improvements to the Amazon Lex natural language
1054
+ # understanding (NLU) model.
1055
+ #
1056
+ #
1057
+ #
1058
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/confidence-scores.html
1059
+ # @return [Types::IntentConfidence]
1060
+ #
1061
+ # @!attribute [rw] alternative_intents
1062
+ # One to four alternative intents that may be applicable to the
1063
+ # user's intent.
1064
+ #
1065
+ # Each alternative includes a score that indicates how confident
1066
+ # Amazon Lex is that the intent matches the user's intent. The
1067
+ # intents are sorted by the confidence score.
1068
+ # @return [Array<Types::PredictedIntent>]
1069
+ #
969
1070
  # @!attribute [rw] slots
970
1071
  # The intent slots that Amazon Lex detected from the user input in the
971
1072
  # conversation.
@@ -1097,10 +1198,29 @@ module Aws::Lex
1097
1198
  # A unique identifier for the session.
1098
1199
  # @return [String]
1099
1200
  #
1201
+ # @!attribute [rw] bot_version
1202
+ # The version of the bot that responded to the conversation. You can
1203
+ # use this information to help determine if one version of a bot is
1204
+ # performing better than another version.
1205
+ #
1206
+ # If you have enabled the new natural language understanding (NLU)
1207
+ # model, you can use this to determine if the improvement is due to
1208
+ # changes to the bot or changes to the NLU.
1209
+ #
1210
+ # For more information about enabling the new NLU, see the
1211
+ # [enableModelImprovements][1] parameter of the `PutBot` operation.
1212
+ #
1213
+ #
1214
+ #
1215
+ # [1]: https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-enableModelImprovements
1216
+ # @return [String]
1217
+ #
1100
1218
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostTextResponse AWS API Documentation
1101
1219
  #
1102
1220
  class PostTextResponse < Struct.new(
1103
1221
  :intent_name,
1222
+ :nlu_intent_confidence,
1223
+ :alternative_intents,
1104
1224
  :slots,
1105
1225
  :session_attributes,
1106
1226
  :message,
@@ -1109,7 +1229,38 @@ module Aws::Lex
1109
1229
  :dialog_state,
1110
1230
  :slot_to_elicit,
1111
1231
  :response_card,
1112
- :session_id)
1232
+ :session_id,
1233
+ :bot_version)
1234
+ SENSITIVE = [:slots, :session_attributes, :message]
1235
+ include Aws::Structure
1236
+ end
1237
+
1238
+ # An intent that Amazon Lex suggests satisfies the user's intent.
1239
+ # Includes the name of the intent, the confidence that Amazon Lex has
1240
+ # that the user's intent is satisfied, and the slots defined for the
1241
+ # intent.
1242
+ #
1243
+ # @!attribute [rw] intent_name
1244
+ # The name of the intent that Amazon Lex suggests satisfies the
1245
+ # user's intent.
1246
+ # @return [String]
1247
+ #
1248
+ # @!attribute [rw] nlu_intent_confidence
1249
+ # Indicates how confident Amazon Lex is that an intent satisfies the
1250
+ # user's intent.
1251
+ # @return [Types::IntentConfidence]
1252
+ #
1253
+ # @!attribute [rw] slots
1254
+ # The slot and slot values associated with the predicted intent.
1255
+ # @return [Hash<String,String>]
1256
+ #
1257
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PredictedIntent AWS API Documentation
1258
+ #
1259
+ class PredictedIntent < Struct.new(
1260
+ :intent_name,
1261
+ :nlu_intent_confidence,
1262
+ :slots)
1263
+ SENSITIVE = [:slots]
1113
1264
  include Aws::Structure
1114
1265
  end
1115
1266
 
@@ -1237,6 +1388,7 @@ module Aws::Lex
1237
1388
  :dialog_action,
1238
1389
  :recent_intent_summary_view,
1239
1390
  :accept)
1391
+ SENSITIVE = [:session_attributes]
1240
1392
  include Aws::Structure
1241
1393
  end
1242
1394
 
@@ -1335,6 +1487,7 @@ module Aws::Lex
1335
1487
  :slot_to_elicit,
1336
1488
  :audio_stream,
1337
1489
  :session_id)
1490
+ SENSITIVE = [:message]
1338
1491
  include Aws::Structure
1339
1492
  end
1340
1493
 
@@ -1347,6 +1500,7 @@ module Aws::Lex
1347
1500
  #
1348
1501
  class RequestTimeoutException < Struct.new(
1349
1502
  :message)
1503
+ SENSITIVE = []
1350
1504
  include Aws::Structure
1351
1505
  end
1352
1506
 
@@ -1373,6 +1527,7 @@ module Aws::Lex
1373
1527
  :version,
1374
1528
  :content_type,
1375
1529
  :generic_attachments)
1530
+ SENSITIVE = []
1376
1531
  include Aws::Structure
1377
1532
  end
1378
1533
 
@@ -1396,6 +1551,7 @@ module Aws::Lex
1396
1551
  class SentimentResponse < Struct.new(
1397
1552
  :sentiment_label,
1398
1553
  :sentiment_score)
1554
+ SENSITIVE = []
1399
1555
  include Aws::Structure
1400
1556
  end
1401
1557
 
@@ -1408,6 +1564,7 @@ module Aws::Lex
1408
1564
  #
1409
1565
  class UnsupportedMediaTypeException < Struct.new(
1410
1566
  :message)
1567
+ SENSITIVE = []
1411
1568
  include Aws::Structure
1412
1569
  end
1413
1570
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.31.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-05-28 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.71.0
22
+ version: 3.99.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.71.0
32
+ version: 3.99.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement