aws-sdk-lex 1.30.0 → 1.35.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: '00921462902faea5a8523763fa58d28bf097f0bf3fc87296be3a8f318ed8bae8'
4
- data.tar.gz: 1efdbf475ee3406ca1d3c54f889a1fa0539229ec0d69d63742aa3e712c1c6de4
3
+ metadata.gz: 4c13b6f48b04e277d4142792c8498a92f6ce8d748385551e2c85cb78ecb036cd
4
+ data.tar.gz: bd9e819786b15d60a8eb697bba29468b4851e16db49a16404aa865c82a8f3fe3
5
5
  SHA512:
6
- metadata.gz: fd7112d74224834947b8f210526d0f003ebb10fe9025947916d2bd79724fa5c1921dfd4f0d9c64795bb42aab1f5a17d98c313e1a99aa1d7d9dbe6e209d5a4fcc
7
- data.tar.gz: f4b5ae08793a85f5826fbfb58e59779306dfeba5f9dcd8d7a6cbd9b45de72985e0d46e9a24eeb952d0ce298734eb5e8b9c39faae5e8be74271b47b06f5fc10dd
6
+ metadata.gz: b15becbf6168bce79840679e8daa2dce7cfd321c324081e891ecd126959fdd6558225eb611e4939b2c58c489ef3531dd73a773079810ae3ccf93d3c6f5b6a25c
7
+ data.tar.gz: afbcba49a59f13d1113b3130db446ce2cc286cfada35a495830ba4639064fb6a89a124288b859f035400e0dee7020cf2886ce7bb2c4e69c3ac833eb1a1f87cf8
data/CHANGELOG.md ADDED
@@ -0,0 +1,238 @@
1
+ Unreleased Changes
2
+ ------------------
3
+
4
+ 1.35.0 (2021-03-10)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.34.0 (2021-02-02)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.33.0 (2020-11-19)
15
+ ------------------
16
+
17
+ * Feature - Amazon Lex now supports the ability to view and manage active contexts associated with a user session.
18
+
19
+ 1.32.0 (2020-09-30)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.31.0 (2020-09-15)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.30.0 (2020-08-25)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.29.0 (2020-08-06)
35
+ ------------------
36
+
37
+ * Feature - Amazon Lex supports intent classification confidence scores along with a list of the top five intents.
38
+
39
+ 1.28.0 (2020-06-23)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.27.1 (2020-06-11)
45
+ ------------------
46
+
47
+ * Issue - Republish previous version with correct dependency on `aws-sdk-core`.
48
+
49
+ 1.27.0 (2020-06-10)
50
+ ------------------
51
+
52
+ * Issue - This version has been yanked. (#2327).
53
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
54
+
55
+ 1.26.0 (2020-05-28)
56
+ ------------------
57
+
58
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
59
+
60
+ 1.25.0 (2020-05-07)
61
+ ------------------
62
+
63
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
64
+
65
+ 1.24.0 (2020-03-09)
66
+ ------------------
67
+
68
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
69
+
70
+ 1.23.0 (2019-11-25)
71
+ ------------------
72
+
73
+ * Feature - Amazon Lex adds "sessionId" attribute to the PostText and PostContent response.
74
+
75
+ 1.22.0 (2019-11-21)
76
+ ------------------
77
+
78
+ * Feature - Amazon Lex now supports Sentiment Analysis
79
+
80
+ 1.21.0 (2019-10-23)
81
+ ------------------
82
+
83
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
84
+
85
+ 1.20.0 (2019-10-10)
86
+ ------------------
87
+
88
+ * Feature - Amazon Lex now supports Session API checkpoints
89
+
90
+ 1.19.0 (2019-08-09)
91
+ ------------------
92
+
93
+ * Feature - Manage Amazon Lex session state using APIs on the client
94
+
95
+ 1.18.0 (2019-07-25)
96
+ ------------------
97
+
98
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
99
+
100
+ 1.17.0 (2019-07-01)
101
+ ------------------
102
+
103
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
104
+
105
+ 1.16.0 (2019-06-17)
106
+ ------------------
107
+
108
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
109
+
110
+ 1.15.0 (2019-05-21)
111
+ ------------------
112
+
113
+ * Feature - API update.
114
+
115
+ 1.14.0 (2019-05-15)
116
+ ------------------
117
+
118
+ * Feature - API update.
119
+
120
+ 1.13.0 (2019-05-14)
121
+ ------------------
122
+
123
+ * Feature - API update.
124
+
125
+ 1.12.0 (2019-03-21)
126
+ ------------------
127
+
128
+ * Feature - API update.
129
+
130
+ 1.11.0 (2019-03-18)
131
+ ------------------
132
+
133
+ * Feature - API update.
134
+
135
+ 1.10.0 (2019-03-14)
136
+ ------------------
137
+
138
+ * Feature - API update.
139
+
140
+ 1.9.0 (2018-11-20)
141
+ ------------------
142
+
143
+ * Feature - API update.
144
+
145
+ 1.8.0 (2018-10-24)
146
+ ------------------
147
+
148
+ * Feature - API update.
149
+
150
+ 1.7.0 (2018-10-23)
151
+ ------------------
152
+
153
+ * Feature - API update.
154
+
155
+ 1.6.0 (2018-09-06)
156
+ ------------------
157
+
158
+ * Feature - Adds code paths and plugins for future SDK instrumentation and telemetry.
159
+
160
+ 1.5.0 (2018-09-05)
161
+ ------------------
162
+
163
+ * Feature - API update.
164
+
165
+ 1.4.0 (2018-06-26)
166
+ ------------------
167
+
168
+ * Feature - API update.
169
+
170
+ 1.3.0 (2018-02-09)
171
+ ------------------
172
+
173
+ * Feature - API update.
174
+
175
+ 1.2.0 (2017-09-20)
176
+ ------------------
177
+
178
+ * Feature - API update.
179
+
180
+ 1.1.0 (2017-09-01)
181
+ ------------------
182
+
183
+ * Feature - API update.
184
+
185
+ * Issue - Update `aws-sdk-lex` gemspec metadata.
186
+
187
+ 1.0.0 (2017-08-29)
188
+ ------------------
189
+
190
+ 1.0.0.rc10 (2017-08-15)
191
+ ------------------
192
+
193
+ * Feature - API update.
194
+
195
+ 1.0.0.rc9 (2017-08-01)
196
+ ------------------
197
+
198
+ * Feature - API update.
199
+
200
+ 1.0.0.rc8 (2017-07-25)
201
+ ------------------
202
+
203
+ * Feature - API update.
204
+
205
+ 1.0.0.rc7 (2017-07-13)
206
+ ------------------
207
+
208
+ * Feature - API update.
209
+
210
+ 1.0.0.rc6 (2017-07-06)
211
+ ------------------
212
+
213
+ * Feature - API update.
214
+
215
+ 1.0.0.rc5 (2017-06-29)
216
+ ------------------
217
+
218
+ * Feature - API update.
219
+
220
+ 1.0.0.rc4 (2017-05-23)
221
+ ------------------
222
+
223
+ * Feature - API update.
224
+
225
+ 1.0.0.rc3 (2017-05-09)
226
+ ------------------
227
+
228
+ * Feature - API update.
229
+
230
+ 1.0.0.rc2 (2017-05-09)
231
+ ------------------
232
+
233
+ * Feature - API update.
234
+
235
+ 1.0.0.rc1 (2017-05-05)
236
+ ------------------
237
+
238
+ * Feature - Initial release of `aws-sdk-lex`.
data/LICENSE.txt ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.35.0
data/lib/aws-sdk-lex.rb CHANGED
@@ -3,10 +3,11 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  require 'aws-sdk-core'
11
12
  require 'aws-sigv4'
12
13
 
@@ -47,6 +48,6 @@ require_relative 'aws-sdk-lex/customizations'
47
48
  # @!group service
48
49
  module Aws::Lex
49
50
 
50
- GEM_VERSION = '1.30.0'
51
+ GEM_VERSION = '1.35.0'
51
52
 
52
53
  end
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -394,6 +394,7 @@ module Aws::Lex
394
394
  # * {Types::GetSessionResponse#session_attributes #session_attributes} => Hash<String,String>
395
395
  # * {Types::GetSessionResponse#session_id #session_id} => String
396
396
  # * {Types::GetSessionResponse#dialog_action #dialog_action} => Types::DialogAction
397
+ # * {Types::GetSessionResponse#active_contexts #active_contexts} => Array<Types::ActiveContext>
397
398
  #
398
399
  # @example Request syntax with placeholder values
399
400
  #
@@ -426,6 +427,12 @@ module Aws::Lex
426
427
  # resp.dialog_action.fulfillment_state #=> String, one of "Fulfilled", "Failed", "ReadyForFulfillment"
427
428
  # resp.dialog_action.message #=> String
428
429
  # resp.dialog_action.message_format #=> String, one of "PlainText", "CustomPayload", "SSML", "Composite"
430
+ # resp.active_contexts #=> Array
431
+ # resp.active_contexts[0].name #=> String
432
+ # resp.active_contexts[0].time_to_live.time_to_live_in_seconds #=> Integer
433
+ # resp.active_contexts[0].time_to_live.turns_to_live #=> Integer
434
+ # resp.active_contexts[0].parameters #=> Hash
435
+ # resp.active_contexts[0].parameters["ParameterName"] #=> String
429
436
  #
430
437
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/GetSession AWS API Documentation
431
438
  #
@@ -639,6 +646,19 @@ module Aws::Lex
639
646
  # you get better performance if you stream audio data rather than
640
647
  # buffering the data locally.
641
648
  #
649
+ # @option params [String] :active_contexts
650
+ # A list of contexts active for the request. A context can be activated
651
+ # when a previous intent is fulfilled, or by including the context in
652
+ # the request,
653
+ #
654
+ # If you don't specify a list of contexts, Amazon Lex will use the
655
+ # current list of contexts for the session. If you specify an empty
656
+ # list, all contexts for the session are cleared.
657
+ #
658
+ # **SDK automatically handles json encoding and base64 encoding for you
659
+ # when the required value (Hash, Array, etc.) is provided according to
660
+ # the description.**
661
+ #
642
662
  # @return [Types::PostContentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
643
663
  #
644
664
  # * {Types::PostContentResponse#content_type #content_type} => String
@@ -656,6 +676,7 @@ module Aws::Lex
656
676
  # * {Types::PostContentResponse#audio_stream #audio_stream} => IO
657
677
  # * {Types::PostContentResponse#bot_version #bot_version} => String
658
678
  # * {Types::PostContentResponse#session_id #session_id} => String
679
+ # * {Types::PostContentResponse#active_contexts #active_contexts} => String
659
680
  #
660
681
  # @example Request syntax with placeholder values
661
682
  #
@@ -668,6 +689,7 @@ module Aws::Lex
668
689
  # content_type: "HttpContentType", # required
669
690
  # accept: "Accept",
670
691
  # input_stream: "data", # required
692
+ # active_contexts: "ActiveContextsString",
671
693
  # })
672
694
  #
673
695
  # @example Response structure
@@ -687,6 +709,7 @@ module Aws::Lex
687
709
  # resp.audio_stream #=> IO
688
710
  # resp.bot_version #=> String
689
711
  # resp.session_id #=> String
712
+ # resp.active_contexts #=> String
690
713
  #
691
714
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostContent AWS API Documentation
692
715
  #
@@ -812,6 +835,15 @@ module Aws::Lex
812
835
  # @option params [required, String] :input_text
813
836
  # The text that the user entered (Amazon Lex interprets this text).
814
837
  #
838
+ # @option params [Array<Types::ActiveContext>] :active_contexts
839
+ # A list of contexts active for the request. A context can be activated
840
+ # when a previous intent is fulfilled, or by including the context in
841
+ # the request,
842
+ #
843
+ # If you don't specify a list of contexts, Amazon Lex will use the
844
+ # current list of contexts for the session. If you specify an empty
845
+ # list, all contexts for the session are cleared.
846
+ #
815
847
  # @return [Types::PostTextResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
816
848
  #
817
849
  # * {Types::PostTextResponse#intent_name #intent_name} => String
@@ -827,6 +859,7 @@ module Aws::Lex
827
859
  # * {Types::PostTextResponse#response_card #response_card} => Types::ResponseCard
828
860
  # * {Types::PostTextResponse#session_id #session_id} => String
829
861
  # * {Types::PostTextResponse#bot_version #bot_version} => String
862
+ # * {Types::PostTextResponse#active_contexts #active_contexts} => Array&lt;Types::ActiveContext&gt;
830
863
  #
831
864
  # @example Request syntax with placeholder values
832
865
  #
@@ -841,6 +874,18 @@ module Aws::Lex
841
874
  # "String" => "String",
842
875
  # },
843
876
  # input_text: "Text", # required
877
+ # active_contexts: [
878
+ # {
879
+ # name: "ActiveContextName", # required
880
+ # time_to_live: { # required
881
+ # time_to_live_in_seconds: 1,
882
+ # turns_to_live: 1,
883
+ # },
884
+ # parameters: { # required
885
+ # "ParameterName" => "Text",
886
+ # },
887
+ # },
888
+ # ],
844
889
  # })
845
890
  #
846
891
  # @example Response structure
@@ -874,6 +919,12 @@ module Aws::Lex
874
919
  # resp.response_card.generic_attachments[0].buttons[0].value #=> String
875
920
  # resp.session_id #=> String
876
921
  # resp.bot_version #=> String
922
+ # resp.active_contexts #=> Array
923
+ # resp.active_contexts[0].name #=> String
924
+ # resp.active_contexts[0].time_to_live.time_to_live_in_seconds #=> Integer
925
+ # resp.active_contexts[0].time_to_live.turns_to_live #=> Integer
926
+ # resp.active_contexts[0].parameters #=> Hash
927
+ # resp.active_contexts[0].parameters["ParameterName"] #=> String
877
928
  #
878
929
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostText AWS API Documentation
879
930
  #
@@ -964,6 +1015,15 @@ module Aws::Lex
964
1015
  #
965
1016
  # * `text/plain; charset=utf-8`
966
1017
  #
1018
+ # @option params [Array<Types::ActiveContext>] :active_contexts
1019
+ # A list of contexts active for the request. A context can be activated
1020
+ # when a previous intent is fulfilled, or by including the context in
1021
+ # the request,
1022
+ #
1023
+ # If you don't specify a list of contexts, Amazon Lex will use the
1024
+ # current list of contexts for the session. If you specify an empty
1025
+ # list, all contexts for the session are cleared.
1026
+ #
967
1027
  # @return [Types::PutSessionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
968
1028
  #
969
1029
  # * {Types::PutSessionResponse#content_type #content_type} => String
@@ -976,6 +1036,7 @@ module Aws::Lex
976
1036
  # * {Types::PutSessionResponse#slot_to_elicit #slot_to_elicit} => String
977
1037
  # * {Types::PutSessionResponse#audio_stream #audio_stream} => IO
978
1038
  # * {Types::PutSessionResponse#session_id #session_id} => String
1039
+ # * {Types::PutSessionResponse#active_contexts #active_contexts} => String
979
1040
  #
980
1041
  # @example Request syntax with placeholder values
981
1042
  #
@@ -1011,6 +1072,18 @@ module Aws::Lex
1011
1072
  # },
1012
1073
  # ],
1013
1074
  # accept: "Accept",
1075
+ # active_contexts: [
1076
+ # {
1077
+ # name: "ActiveContextName", # required
1078
+ # time_to_live: { # required
1079
+ # time_to_live_in_seconds: 1,
1080
+ # turns_to_live: 1,
1081
+ # },
1082
+ # parameters: { # required
1083
+ # "ParameterName" => "Text",
1084
+ # },
1085
+ # },
1086
+ # ],
1014
1087
  # })
1015
1088
  #
1016
1089
  # @example Response structure
@@ -1025,6 +1098,7 @@ module Aws::Lex
1025
1098
  # resp.slot_to_elicit #=> String
1026
1099
  # resp.audio_stream #=> IO
1027
1100
  # resp.session_id #=> String
1101
+ # resp.active_contexts #=> String
1028
1102
  #
1029
1103
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PutSession AWS API Documentation
1030
1104
  #
@@ -1048,7 +1122,7 @@ module Aws::Lex
1048
1122
  params: params,
1049
1123
  config: config)
1050
1124
  context[:gem_name] = 'aws-sdk-lex'
1051
- context[:gem_version] = '1.30.0'
1125
+ context[:gem_version] = '1.35.0'
1052
1126
  Seahorse::Client::Request.new(handlers, context)
1053
1127
  end
1054
1128
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -14,6 +14,14 @@ module Aws::Lex
14
14
  include Seahorse::Model
15
15
 
16
16
  Accept = Shapes::StringShape.new(name: 'Accept')
17
+ ActiveContext = Shapes::StructureShape.new(name: 'ActiveContext')
18
+ ActiveContextName = Shapes::StringShape.new(name: 'ActiveContextName')
19
+ ActiveContextParametersMap = Shapes::MapShape.new(name: 'ActiveContextParametersMap')
20
+ ActiveContextTimeToLive = Shapes::StructureShape.new(name: 'ActiveContextTimeToLive')
21
+ ActiveContextTimeToLiveInSeconds = Shapes::IntegerShape.new(name: 'ActiveContextTimeToLiveInSeconds')
22
+ ActiveContextTurnsToLive = Shapes::IntegerShape.new(name: 'ActiveContextTurnsToLive')
23
+ ActiveContextsList = Shapes::ListShape.new(name: 'ActiveContextsList')
24
+ ActiveContextsString = Shapes::StringShape.new(name: 'ActiveContextsString')
17
25
  AttributesString = Shapes::StringShape.new(name: 'AttributesString')
18
26
  BadGatewayException = Shapes::StructureShape.new(name: 'BadGatewayException')
19
27
  BadRequestException = Shapes::StructureShape.new(name: 'BadRequestException')
@@ -52,6 +60,7 @@ module Aws::Lex
52
60
  MessageFormatType = Shapes::StringShape.new(name: 'MessageFormatType')
53
61
  NotAcceptableException = Shapes::StructureShape.new(name: 'NotAcceptableException')
54
62
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
63
+ ParameterName = Shapes::StringShape.new(name: 'ParameterName')
55
64
  PostContentRequest = Shapes::StructureShape.new(name: 'PostContentRequest')
56
65
  PostContentResponse = Shapes::StructureShape.new(name: 'PostContentResponse')
57
66
  PostTextRequest = Shapes::StructureShape.new(name: 'PostTextRequest')
@@ -74,6 +83,20 @@ module Aws::Lex
74
83
  genericAttachmentList = Shapes::ListShape.new(name: 'genericAttachmentList')
75
84
  listOfButtons = Shapes::ListShape.new(name: 'listOfButtons')
76
85
 
86
+ ActiveContext.add_member(:name, Shapes::ShapeRef.new(shape: ActiveContextName, required: true, location_name: "name"))
87
+ ActiveContext.add_member(:time_to_live, Shapes::ShapeRef.new(shape: ActiveContextTimeToLive, required: true, location_name: "timeToLive"))
88
+ ActiveContext.add_member(:parameters, Shapes::ShapeRef.new(shape: ActiveContextParametersMap, required: true, location_name: "parameters"))
89
+ ActiveContext.struct_class = Types::ActiveContext
90
+
91
+ ActiveContextParametersMap.key = Shapes::ShapeRef.new(shape: ParameterName)
92
+ ActiveContextParametersMap.value = Shapes::ShapeRef.new(shape: Text)
93
+
94
+ ActiveContextTimeToLive.add_member(:time_to_live_in_seconds, Shapes::ShapeRef.new(shape: ActiveContextTimeToLiveInSeconds, location_name: "timeToLiveInSeconds"))
95
+ ActiveContextTimeToLive.add_member(:turns_to_live, Shapes::ShapeRef.new(shape: ActiveContextTurnsToLive, location_name: "turnsToLive"))
96
+ ActiveContextTimeToLive.struct_class = Types::ActiveContextTimeToLive
97
+
98
+ ActiveContextsList.member = Shapes::ShapeRef.new(shape: ActiveContext)
99
+
77
100
  BadGatewayException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
78
101
  BadGatewayException.struct_class = Types::BadGatewayException
79
102
 
@@ -127,6 +150,7 @@ module Aws::Lex
127
150
  GetSessionResponse.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
128
151
  GetSessionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "sessionId"))
129
152
  GetSessionResponse.add_member(:dialog_action, Shapes::ShapeRef.new(shape: DialogAction, location_name: "dialogAction"))
153
+ GetSessionResponse.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsList, location_name: "activeContexts"))
130
154
  GetSessionResponse.struct_class = Types::GetSessionResponse
131
155
 
132
156
  IntentConfidence.add_member(:score, Shapes::ShapeRef.new(shape: Double, location_name: "score"))
@@ -169,6 +193,7 @@ module Aws::Lex
169
193
  PostContentRequest.add_member(:content_type, Shapes::ShapeRef.new(shape: HttpContentType, required: true, location: "header", location_name: "Content-Type"))
170
194
  PostContentRequest.add_member(:accept, Shapes::ShapeRef.new(shape: Accept, location: "header", location_name: "Accept"))
171
195
  PostContentRequest.add_member(:input_stream, Shapes::ShapeRef.new(shape: BlobStream, required: true, location_name: "inputStream"))
196
+ PostContentRequest.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsString, location: "header", location_name: "x-amz-lex-active-contexts", metadata: {"jsonvalue"=>true}))
172
197
  PostContentRequest.struct_class = Types::PostContentRequest
173
198
  PostContentRequest[:payload] = :input_stream
174
199
  PostContentRequest[:payload_member] = PostContentRequest.member(:input_stream)
@@ -188,6 +213,7 @@ module Aws::Lex
188
213
  PostContentResponse.add_member(:audio_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "audioStream"))
189
214
  PostContentResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location: "header", location_name: "x-amz-lex-bot-version"))
190
215
  PostContentResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-id"))
216
+ PostContentResponse.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsString, location: "header", location_name: "x-amz-lex-active-contexts", metadata: {"jsonvalue"=>true}))
191
217
  PostContentResponse.struct_class = Types::PostContentResponse
192
218
  PostContentResponse[:payload] = :audio_stream
193
219
  PostContentResponse[:payload_member] = PostContentResponse.member(:audio_stream)
@@ -198,6 +224,7 @@ module Aws::Lex
198
224
  PostTextRequest.add_member(:session_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "sessionAttributes"))
199
225
  PostTextRequest.add_member(:request_attributes, Shapes::ShapeRef.new(shape: StringMap, location_name: "requestAttributes"))
200
226
  PostTextRequest.add_member(:input_text, Shapes::ShapeRef.new(shape: Text, required: true, location_name: "inputText"))
227
+ PostTextRequest.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsList, location_name: "activeContexts"))
201
228
  PostTextRequest.struct_class = Types::PostTextRequest
202
229
 
203
230
  PostTextResponse.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
@@ -213,6 +240,7 @@ module Aws::Lex
213
240
  PostTextResponse.add_member(:response_card, Shapes::ShapeRef.new(shape: ResponseCard, location_name: "responseCard"))
214
241
  PostTextResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location_name: "sessionId"))
215
242
  PostTextResponse.add_member(:bot_version, Shapes::ShapeRef.new(shape: BotVersion, location_name: "botVersion"))
243
+ PostTextResponse.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsList, location_name: "activeContexts"))
216
244
  PostTextResponse.struct_class = Types::PostTextResponse
217
245
 
218
246
  PredictedIntent.add_member(:intent_name, Shapes::ShapeRef.new(shape: IntentName, location_name: "intentName"))
@@ -227,6 +255,7 @@ module Aws::Lex
227
255
  PutSessionRequest.add_member(:dialog_action, Shapes::ShapeRef.new(shape: DialogAction, location_name: "dialogAction"))
228
256
  PutSessionRequest.add_member(:recent_intent_summary_view, Shapes::ShapeRef.new(shape: IntentSummaryList, location_name: "recentIntentSummaryView"))
229
257
  PutSessionRequest.add_member(:accept, Shapes::ShapeRef.new(shape: Accept, location: "header", location_name: "Accept"))
258
+ PutSessionRequest.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsList, location_name: "activeContexts"))
230
259
  PutSessionRequest.struct_class = Types::PutSessionRequest
231
260
 
232
261
  PutSessionResponse.add_member(:content_type, Shapes::ShapeRef.new(shape: HttpContentType, location: "header", location_name: "Content-Type"))
@@ -239,6 +268,7 @@ module Aws::Lex
239
268
  PutSessionResponse.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-slot-to-elicit"))
240
269
  PutSessionResponse.add_member(:audio_stream, Shapes::ShapeRef.new(shape: BlobStream, location_name: "audioStream"))
241
270
  PutSessionResponse.add_member(:session_id, Shapes::ShapeRef.new(shape: String, location: "header", location_name: "x-amz-lex-session-id"))
271
+ PutSessionResponse.add_member(:active_contexts, Shapes::ShapeRef.new(shape: ActiveContextsString, location: "header", location_name: "x-amz-lex-active-contexts", metadata: {"jsonvalue"=>true}))
242
272
  PutSessionResponse.struct_class = Types::PutSessionResponse
243
273
  PutSessionResponse[:payload] = :audio_stream
244
274
  PutSessionResponse[:payload_member] = PutSessionResponse.member(:audio_stream)
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,7 +3,7 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
@@ -3,13 +3,87 @@
3
3
  # WARNING ABOUT GENERATED CODE
4
4
  #
5
5
  # This file is generated. See the contributing guide for more information:
6
- # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
10
  module Aws::Lex
11
11
  module Types
12
12
 
13
+ # A context is a variable that contains information about the current
14
+ # state of the conversation between a user and Amazon Lex. Context can
15
+ # be set automatically by Amazon Lex when an intent is fulfilled, or it
16
+ # can be set at runtime using the `PutContent`, `PutText`, or
17
+ # `PutSession` operation.
18
+ #
19
+ # @note When making an API call, you may pass ActiveContext
20
+ # data as a hash:
21
+ #
22
+ # {
23
+ # name: "ActiveContextName", # required
24
+ # time_to_live: { # required
25
+ # time_to_live_in_seconds: 1,
26
+ # turns_to_live: 1,
27
+ # },
28
+ # parameters: { # required
29
+ # "ParameterName" => "Text",
30
+ # },
31
+ # }
32
+ #
33
+ # @!attribute [rw] name
34
+ # The name of the context.
35
+ # @return [String]
36
+ #
37
+ # @!attribute [rw] time_to_live
38
+ # The length of time or number of turns that a context remains active.
39
+ # @return [Types::ActiveContextTimeToLive]
40
+ #
41
+ # @!attribute [rw] parameters
42
+ # State variables for the current context. You can use these values as
43
+ # default values for slots in subsequent events.
44
+ # @return [Hash<String,String>]
45
+ #
46
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/ActiveContext AWS API Documentation
47
+ #
48
+ class ActiveContext < Struct.new(
49
+ :name,
50
+ :time_to_live,
51
+ :parameters)
52
+ SENSITIVE = []
53
+ include Aws::Structure
54
+ end
55
+
56
+ # The length of time or number of turns that a context remains active.
57
+ #
58
+ # @note When making an API call, you may pass ActiveContextTimeToLive
59
+ # data as a hash:
60
+ #
61
+ # {
62
+ # time_to_live_in_seconds: 1,
63
+ # turns_to_live: 1,
64
+ # }
65
+ #
66
+ # @!attribute [rw] time_to_live_in_seconds
67
+ # The number of seconds that the context should be active after it is
68
+ # first sent in a `PostContent` or `PostText` response. You can set
69
+ # the value between 5 and 86,400 seconds (24 hours).
70
+ # @return [Integer]
71
+ #
72
+ # @!attribute [rw] turns_to_live
73
+ # The number of conversation turns that the context should be active.
74
+ # A conversation turn is one `PostContent` or `PostText` request and
75
+ # the corresponding response from Amazon Lex.
76
+ # @return [Integer]
77
+ #
78
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/ActiveContextTimeToLive AWS API Documentation
79
+ #
80
+ class ActiveContextTimeToLive < Struct.new(
81
+ :time_to_live_in_seconds,
82
+ :turns_to_live)
83
+ SENSITIVE = []
84
+ include Aws::Structure
85
+ end
86
+
13
87
  # Either the Amazon Lex bot is still building, or one of the dependent
14
88
  # services (Amazon Polly, AWS Lambda) failed with an internal service
15
89
  # error.
@@ -361,14 +435,24 @@ module Aws::Lex
361
435
  # Describes the current state of the bot.
362
436
  # @return [Types::DialogAction]
363
437
  #
438
+ # @!attribute [rw] active_contexts
439
+ # A list of active contexts for the session. A context can be set when
440
+ # an intent is fulfilled or by calling the `PostContent`, `PostText`,
441
+ # or `PutSession` operation.
442
+ #
443
+ # You can use a context to control the intents that can follow up an
444
+ # intent, or to modify the operation of your application.
445
+ # @return [Array<Types::ActiveContext>]
446
+ #
364
447
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/GetSessionResponse AWS API Documentation
365
448
  #
366
449
  class GetSessionResponse < Struct.new(
367
450
  :recent_intent_summary_view,
368
451
  :session_attributes,
369
452
  :session_id,
370
- :dialog_action)
371
- SENSITIVE = [:session_attributes]
453
+ :dialog_action,
454
+ :active_contexts)
455
+ SENSITIVE = [:session_attributes, :active_contexts]
372
456
  include Aws::Structure
373
457
  end
374
458
 
@@ -577,6 +661,7 @@ module Aws::Lex
577
661
  # content_type: "HttpContentType", # required
578
662
  # accept: "Accept",
579
663
  # input_stream: "data", # required
664
+ # active_contexts: "ActiveContextsString",
580
665
  # }
581
666
  #
582
667
  # @!attribute [rw] bot_name
@@ -721,6 +806,16 @@ module Aws::Lex
721
806
  # than buffering the data locally.
722
807
  # @return [IO]
723
808
  #
809
+ # @!attribute [rw] active_contexts
810
+ # A list of contexts active for the request. A context can be
811
+ # activated when a previous intent is fulfilled, or by including the
812
+ # context in the request,
813
+ #
814
+ # If you don't specify a list of contexts, Amazon Lex will use the
815
+ # current list of contexts for the session. If you specify an empty
816
+ # list, all contexts for the session are cleared.
817
+ # @return [String]
818
+ #
724
819
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostContentRequest AWS API Documentation
725
820
  #
726
821
  class PostContentRequest < Struct.new(
@@ -731,8 +826,9 @@ module Aws::Lex
731
826
  :request_attributes,
732
827
  :content_type,
733
828
  :accept,
734
- :input_stream)
735
- SENSITIVE = [:session_attributes, :request_attributes]
829
+ :input_stream,
830
+ :active_contexts)
831
+ SENSITIVE = [:session_attributes, :request_attributes, :active_contexts]
736
832
  include Aws::Structure
737
833
  end
738
834
 
@@ -751,7 +847,7 @@ module Aws::Lex
751
847
  # score is between 0.0 and 1.0.
752
848
  #
753
849
  # The score is a relative score, not an absolute score. The score may
754
- # change based on improvements to the Amazon Lex NLU.
850
+ # change based on improvements to Amazon Lex.
755
851
  # @return [String]
756
852
  #
757
853
  # @!attribute [rw] alternative_intents
@@ -907,23 +1003,21 @@ module Aws::Lex
907
1003
  # The version of the bot that responded to the conversation. You can
908
1004
  # use this information to help determine if one version of a bot is
909
1005
  # 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
1006
  # @return [String]
922
1007
  #
923
1008
  # @!attribute [rw] session_id
924
1009
  # The unique identifier for the session.
925
1010
  # @return [String]
926
1011
  #
1012
+ # @!attribute [rw] active_contexts
1013
+ # A list of active contexts for the session. A context can be set when
1014
+ # an intent is fulfilled or by calling the `PostContent`, `PostText`,
1015
+ # or `PutSession` operation.
1016
+ #
1017
+ # You can use a context to control the intents that can follow up an
1018
+ # intent, or to modify the operation of your application.
1019
+ # @return [String]
1020
+ #
927
1021
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostContentResponse AWS API Documentation
928
1022
  #
929
1023
  class PostContentResponse < Struct.new(
@@ -941,8 +1035,9 @@ module Aws::Lex
941
1035
  :input_transcript,
942
1036
  :audio_stream,
943
1037
  :bot_version,
944
- :session_id)
945
- SENSITIVE = [:message]
1038
+ :session_id,
1039
+ :active_contexts)
1040
+ SENSITIVE = [:message, :active_contexts]
946
1041
  include Aws::Structure
947
1042
  end
948
1043
 
@@ -960,6 +1055,18 @@ module Aws::Lex
960
1055
  # "String" => "String",
961
1056
  # },
962
1057
  # input_text: "Text", # required
1058
+ # active_contexts: [
1059
+ # {
1060
+ # name: "ActiveContextName", # required
1061
+ # time_to_live: { # required
1062
+ # time_to_live_in_seconds: 1,
1063
+ # turns_to_live: 1,
1064
+ # },
1065
+ # parameters: { # required
1066
+ # "ParameterName" => "Text",
1067
+ # },
1068
+ # },
1069
+ # ],
963
1070
  # }
964
1071
  #
965
1072
  # @!attribute [rw] bot_name
@@ -1026,6 +1133,16 @@ module Aws::Lex
1026
1133
  # The text that the user entered (Amazon Lex interprets this text).
1027
1134
  # @return [String]
1028
1135
  #
1136
+ # @!attribute [rw] active_contexts
1137
+ # A list of contexts active for the request. A context can be
1138
+ # activated when a previous intent is fulfilled, or by including the
1139
+ # context in the request,
1140
+ #
1141
+ # If you don't specify a list of contexts, Amazon Lex will use the
1142
+ # current list of contexts for the session. If you specify an empty
1143
+ # list, all contexts for the session are cleared.
1144
+ # @return [Array<Types::ActiveContext>]
1145
+ #
1029
1146
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostTextRequest AWS API Documentation
1030
1147
  #
1031
1148
  class PostTextRequest < Struct.new(
@@ -1034,8 +1151,9 @@ module Aws::Lex
1034
1151
  :user_id,
1035
1152
  :session_attributes,
1036
1153
  :request_attributes,
1037
- :input_text)
1038
- SENSITIVE = [:session_attributes, :request_attributes, :input_text]
1154
+ :input_text,
1155
+ :active_contexts)
1156
+ SENSITIVE = [:session_attributes, :request_attributes, :input_text, :active_contexts]
1039
1157
  include Aws::Structure
1040
1158
  end
1041
1159
 
@@ -1050,8 +1168,7 @@ module Aws::Lex
1050
1168
  # Scores][1].
1051
1169
  #
1052
1170
  # 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.
1171
+ # change based on improvements to Amazon Lex.
1055
1172
  #
1056
1173
  #
1057
1174
  #
@@ -1202,18 +1319,16 @@ module Aws::Lex
1202
1319
  # The version of the bot that responded to the conversation. You can
1203
1320
  # use this information to help determine if one version of a bot is
1204
1321
  # performing better than another version.
1322
+ # @return [String]
1205
1323
  #
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
- #
1324
+ # @!attribute [rw] active_contexts
1325
+ # A list of active contexts for the session. A context can be set when
1326
+ # an intent is fulfilled or by calling the `PostContent`, `PostText`,
1327
+ # or `PutSession` operation.
1214
1328
  #
1215
- # [1]: https://docs.aws.amazon.com/lex/latest/dg/API_PutBot.html#lex-PutBot-request-enableModelImprovements
1216
- # @return [String]
1329
+ # You can use a context to control the intents that can follow up an
1330
+ # intent, or to modify the operation of your application.
1331
+ # @return [Array<Types::ActiveContext>]
1217
1332
  #
1218
1333
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PostTextResponse AWS API Documentation
1219
1334
  #
@@ -1230,8 +1345,9 @@ module Aws::Lex
1230
1345
  :slot_to_elicit,
1231
1346
  :response_card,
1232
1347
  :session_id,
1233
- :bot_version)
1234
- SENSITIVE = [:slots, :session_attributes, :message]
1348
+ :bot_version,
1349
+ :active_contexts)
1350
+ SENSITIVE = [:slots, :session_attributes, :message, :active_contexts]
1235
1351
  include Aws::Structure
1236
1352
  end
1237
1353
 
@@ -1299,6 +1415,18 @@ module Aws::Lex
1299
1415
  # },
1300
1416
  # ],
1301
1417
  # accept: "Accept",
1418
+ # active_contexts: [
1419
+ # {
1420
+ # name: "ActiveContextName", # required
1421
+ # time_to_live: { # required
1422
+ # time_to_live_in_seconds: 1,
1423
+ # turns_to_live: 1,
1424
+ # },
1425
+ # parameters: { # required
1426
+ # "ParameterName" => "Text",
1427
+ # },
1428
+ # },
1429
+ # ],
1302
1430
  # }
1303
1431
  #
1304
1432
  # @!attribute [rw] bot_name
@@ -1378,6 +1506,16 @@ module Aws::Lex
1378
1506
  # * `text/plain; charset=utf-8`
1379
1507
  # @return [String]
1380
1508
  #
1509
+ # @!attribute [rw] active_contexts
1510
+ # A list of contexts active for the request. A context can be
1511
+ # activated when a previous intent is fulfilled, or by including the
1512
+ # context in the request,
1513
+ #
1514
+ # If you don't specify a list of contexts, Amazon Lex will use the
1515
+ # current list of contexts for the session. If you specify an empty
1516
+ # list, all contexts for the session are cleared.
1517
+ # @return [Array<Types::ActiveContext>]
1518
+ #
1381
1519
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PutSessionRequest AWS API Documentation
1382
1520
  #
1383
1521
  class PutSessionRequest < Struct.new(
@@ -1387,8 +1525,9 @@ module Aws::Lex
1387
1525
  :session_attributes,
1388
1526
  :dialog_action,
1389
1527
  :recent_intent_summary_view,
1390
- :accept)
1391
- SENSITIVE = [:session_attributes]
1528
+ :accept,
1529
+ :active_contexts)
1530
+ SENSITIVE = [:session_attributes, :active_contexts]
1392
1531
  include Aws::Structure
1393
1532
  end
1394
1533
 
@@ -1474,6 +1613,10 @@ module Aws::Lex
1474
1613
  # A unique identifier for the session.
1475
1614
  # @return [String]
1476
1615
  #
1616
+ # @!attribute [rw] active_contexts
1617
+ # A list of active contexts for the session.
1618
+ # @return [String]
1619
+ #
1477
1620
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex-2016-11-28/PutSessionResponse AWS API Documentation
1478
1621
  #
1479
1622
  class PutSessionResponse < Struct.new(
@@ -1486,8 +1629,9 @@ module Aws::Lex
1486
1629
  :dialog_state,
1487
1630
  :slot_to_elicit,
1488
1631
  :audio_stream,
1489
- :session_id)
1490
- SENSITIVE = [:message]
1632
+ :session_id,
1633
+ :active_contexts)
1634
+ SENSITIVE = [:message, :active_contexts]
1491
1635
  include Aws::Structure
1492
1636
  end
1493
1637
 
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.30.0
4
+ version: 1.35.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-08-25 00:00:00.000000000 Z
11
+ date: 2021-03-10 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.99.0
22
+ version: 3.112.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.99.0
32
+ version: 3.112.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -47,11 +47,14 @@ dependencies:
47
47
  description: Official AWS Ruby gem for Amazon Lex Runtime Service. This gem is part
48
48
  of the AWS SDK for Ruby.
49
49
  email:
50
- - trevrowe@amazon.com
50
+ - aws-dr-rubygems@amazon.com
51
51
  executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - CHANGELOG.md
56
+ - LICENSE.txt
57
+ - VERSION
55
58
  - lib/aws-sdk-lex.rb
56
59
  - lib/aws-sdk-lex/client.rb
57
60
  - lib/aws-sdk-lex/client_api.rb