aws-sdk-lex 1.21.0 → 1.22.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
  SHA1:
3
- metadata.gz: 2062953461b050418fadba575b535a863f8b443a
4
- data.tar.gz: 309b189c1bd919a16d5a1ae36c0b112ec73d7a0c
3
+ metadata.gz: 69d8a5bd5db4bdb4bc0153d06c7f5eb3ab92c2ba
4
+ data.tar.gz: 0ad81c5159a1edc83b4c8091cef2e08a50c8ebd5
5
5
  SHA512:
6
- metadata.gz: 350a6a320a395fdfa159c7c9abfe2d7e3b062d5901baf6e686ed1796a019739f45d7db85b74b8dc5a45c88c9007cc0bae0a54ad09f1b5076030d72f3a1128987
7
- data.tar.gz: 3a6be9ed12c5f6050dd8cca4ebb483f4e16f8493568ccb0a06bc998eeccf534f501e632f8968a75ed52e60aed92cc329e8387af32662c529be4e4e6b259ce493
6
+ metadata.gz: 3d2ab24508637ee8dc82f95c93c8e2621e68594b1ac43c364dfa50c039df72b878ca6616c2d2e3aef3f0f6d3793f4806e582156b1e84f71d4279688e8a12f9c8
7
+ data.tar.gz: 4a6a501537b5fc88916253cece470c7716b9d101e33ef3276ae25cb8bee24767692525df7269f865cd4661bc5f18bad26c23da0057b9f29c09f0f2116fca4588
data/lib/aws-sdk-lex.rb CHANGED
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-lex/customizations'
42
42
  # @service
43
43
  module Aws::Lex
44
44
 
45
- GEM_VERSION = '1.21.0'
45
+ GEM_VERSION = '1.22.0'
46
46
 
47
47
  end
@@ -572,6 +572,7 @@ module Aws::Lex
572
572
  # * {Types::PostContentResponse#intent_name #intent_name} => String
573
573
  # * {Types::PostContentResponse#slots #slots} => String
574
574
  # * {Types::PostContentResponse#session_attributes #session_attributes} => String
575
+ # * {Types::PostContentResponse#sentiment_response #sentiment_response} => String
575
576
  # * {Types::PostContentResponse#message #message} => String
576
577
  # * {Types::PostContentResponse#message_format #message_format} => String
577
578
  # * {Types::PostContentResponse#dialog_state #dialog_state} => String
@@ -598,6 +599,7 @@ module Aws::Lex
598
599
  # resp.intent_name #=> String
599
600
  # resp.slots #=> String
600
601
  # resp.session_attributes #=> String
602
+ # resp.sentiment_response #=> String
601
603
  # resp.message #=> String
602
604
  # resp.message_format #=> String, one of "PlainText", "CustomPayload", "SSML", "Composite"
603
605
  # resp.dialog_state #=> String, one of "ElicitIntent", "ConfirmIntent", "ElicitSlot", "Fulfilled", "ReadyForFulfillment", "Failed"
@@ -735,6 +737,7 @@ module Aws::Lex
735
737
  # * {Types::PostTextResponse#slots #slots} => Hash<String,String>
736
738
  # * {Types::PostTextResponse#session_attributes #session_attributes} => Hash<String,String>
737
739
  # * {Types::PostTextResponse#message #message} => String
740
+ # * {Types::PostTextResponse#sentiment_response #sentiment_response} => Types::SentimentResponse
738
741
  # * {Types::PostTextResponse#message_format #message_format} => String
739
742
  # * {Types::PostTextResponse#dialog_state #dialog_state} => String
740
743
  # * {Types::PostTextResponse#slot_to_elicit #slot_to_elicit} => String
@@ -763,6 +766,8 @@ module Aws::Lex
763
766
  # resp.session_attributes #=> Hash
764
767
  # resp.session_attributes["String"] #=> String
765
768
  # resp.message #=> String
769
+ # resp.sentiment_response.sentiment_label #=> String
770
+ # resp.sentiment_response.sentiment_score #=> String
766
771
  # resp.message_format #=> String, one of "PlainText", "CustomPayload", "SSML", "Composite"
767
772
  # resp.dialog_state #=> String, one of "ElicitIntent", "ConfirmIntent", "ElicitSlot", "Fulfilled", "ReadyForFulfillment", "Failed"
768
773
  # resp.slot_to_elicit #=> String
@@ -950,7 +955,7 @@ module Aws::Lex
950
955
  params: params,
951
956
  config: config)
952
957
  context[:gem_name] = 'aws-sdk-lex'
953
- context[:gem_version] = '1.21.0'
958
+ context[:gem_version] = '1.22.0'
954
959
  Seahorse::Client::Request.new(handlers, context)
955
960
  end
956
961
 
@@ -54,6 +54,9 @@ module Aws::Lex
54
54
  PutSessionResponse = Shapes::StructureShape.new(name: 'PutSessionResponse')
55
55
  RequestTimeoutException = Shapes::StructureShape.new(name: 'RequestTimeoutException')
56
56
  ResponseCard = Shapes::StructureShape.new(name: 'ResponseCard')
57
+ SentimentLabel = Shapes::StringShape.new(name: 'SentimentLabel')
58
+ SentimentResponse = Shapes::StructureShape.new(name: 'SentimentResponse')
59
+ SentimentScore = Shapes::StringShape.new(name: 'SentimentScore')
57
60
  String = Shapes::StringShape.new(name: 'String')
58
61
  StringMap = Shapes::MapShape.new(name: 'StringMap')
59
62
  StringUrlWithLength = Shapes::StringShape.new(name: 'StringUrlWithLength')
@@ -162,6 +165,7 @@ module Aws::Lex
162
165
  PostContentResponse.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location: "header", location_name: "x-amz-lex-intent-name"))
163
166
  PostContentResponse.add_member(:slots, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slots", metadata: {"jsonvalue"=>true}))
164
167
  PostContentResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-attributes", metadata: {"jsonvalue"=>true}))
168
+ PostContentResponse.add_member(:sentiment_response, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-sentiment"))
165
169
  PostContentResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, location: "header", location_name: "x-amz-lex-message"))
166
170
  PostContentResponse.add_member(:message_format, Shapes::ShapeRef.new(shape: MessageFormatType, location: "header", location_name: "x-amz-lex-message-format"))
167
171
  PostContentResponse.add_member(:dialog_state, Shapes::ShapeRef.new(shape: DialogState, location: "header", location_name: "x-amz-lex-dialog-state"))
@@ -184,6 +188,7 @@ module Aws::Lex
184
188
  PostTextResponse.add_member(:slots, Shapes::ShapeRef.new(shape: StringMap, location_name: "slots"))
185
189
  PostTextResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
186
190
  PostTextResponse.add_member(:message, Shapes::ShapeRef.new(shape: Text, location_name: "message"))
191
+ PostTextResponse.add_member(:sentiment_response, Shapes::ShapeRef.new(shape: SentimentResponse, location_name: "sentimentResponse"))
187
192
  PostTextResponse.add_member(:message_format, Shapes::ShapeRef.new(shape: MessageFormatType, location_name: "messageFormat"))
188
193
  PostTextResponse.add_member(:dialog_state, Shapes::ShapeRef.new(shape: DialogState, location_name: "dialogState"))
189
194
  PostTextResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location_name: "slotToElicit"))
@@ -221,6 +226,10 @@ module Aws::Lex
221
226
  ResponseCard.add_member(:generic_attachments, Shapes::ShapeRef.new(shape: genericAttachmentList, location_name: "genericAttachments"))
222
227
  ResponseCard.struct_class = Types::ResponseCard
223
228
 
229
+ SentimentResponse.add_member(:sentiment_label, Shapes::ShapeRef.new(shape: SentimentLabel, location_name: "sentimentLabel"))
230
+ SentimentResponse.add_member(:sentiment_score, Shapes::ShapeRef.new(shape: SentimentScore, location_name: "sentimentScore"))
231
+ SentimentResponse.struct_class = Types::SentimentResponse
232
+
224
233
  StringMap.key = Shapes::ShapeRef.new(shape: String)
225
234
  StringMap.value = Shapes::ShapeRef.new(shape: String)
226
235
 
@@ -730,6 +730,14 @@ module Aws::Lex
730
730
  # information.
731
731
  # @return [String]
732
732
  #
733
+ # @!attribute [rw] sentiment_response
734
+ # The sentiment expressed in and utterance.
735
+ #
736
+ # When the bot is configured to send utterances to Amazon Comprehend
737
+ # for sentiment analysis, this field contains the result of the
738
+ # analysis.
739
+ # @return [String]
740
+ #
733
741
  # @!attribute [rw] message
734
742
  # The message to convey to the user. The message can come from the
735
743
  # bot's configuration or from a Lambda function.
@@ -847,6 +855,7 @@ module Aws::Lex
847
855
  :intent_name,
848
856
  :slots,
849
857
  :session_attributes,
858
+ :sentiment_response,
850
859
  :message,
851
860
  :message_format,
852
861
  :dialog_state,
@@ -995,6 +1004,14 @@ module Aws::Lex
995
1004
  # the client in its response.
996
1005
  # @return [String]
997
1006
  #
1007
+ # @!attribute [rw] sentiment_response
1008
+ # The sentiment expressed in and utterance.
1009
+ #
1010
+ # When the bot is configured to send utterances to Amazon Comprehend
1011
+ # for sentiment analysis, this field contains the result of the
1012
+ # analysis.
1013
+ # @return [Types::SentimentResponse]
1014
+ #
998
1015
  # @!attribute [rw] message_format
999
1016
  # The format of the response message. One of the following values:
1000
1017
  #
@@ -1078,6 +1095,7 @@ module Aws::Lex
1078
1095
  :slots,
1079
1096
  :session_attributes,
1080
1097
  :message,
1098
+ :sentiment_response,
1081
1099
  :message_format,
1082
1100
  :dialog_state,
1083
1101
  :slot_to_elicit,
@@ -1348,6 +1366,29 @@ module Aws::Lex
1348
1366
  include Aws::Structure
1349
1367
  end
1350
1368
 
1369
+ # The sentiment expressed in an utterance.
1370
+ #
1371
+ # When the bot is configured to send utterances to Amazon Comprehend for
1372
+ # sentiment analysis, this field structure contains the result of the
1373
+ # analysis.
1374
+ #
1375
+ # @!attribute [rw] sentiment_label
1376
+ # The inferred sentiment that Amazon Comprehend has the highest
1377
+ # confidence in.
1378
+ # @return [String]
1379
+ #
1380
+ # @!attribute [rw] sentiment_score
1381
+ # The likelihood that the sentiment was correctly inferred.
1382
+ # @return [String]
1383
+ #
1384
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/SentimentResponse AWS API Documentation
1385
+ #
1386
+ class SentimentResponse < Struct.new(
1387
+ :sentiment_label,
1388
+ :sentiment_score)
1389
+ include Aws::Structure
1390
+ end
1391
+
1351
1392
  # The Content-Type header (`PostContent` API) has an invalid value.
1352
1393
  #
1353
1394
  # @!attribute [rw] message
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.21.0
4
+ version: 1.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core