aws-sdk-lexruntimev2 1.15.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::LexRuntimeV2
12
+ module Endpoints
13
+
14
+ class DeleteSession
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::LexRuntimeV2::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class GetSession
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::LexRuntimeV2::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class PutSession
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::LexRuntimeV2::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class RecognizeText
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::LexRuntimeV2::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class RecognizeUtterance
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::LexRuntimeV2::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class StartConversation
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::LexRuntimeV2::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ end
99
+ end
@@ -57,6 +57,14 @@ module Aws::LexRuntimeV2
57
57
  # @option params [Array<Types::Message>] :welcome_messages
58
58
  # A list of messages to send to the user.
59
59
  #
60
+ # If you set the `welcomeMessage` field, you must also set the [
61
+ # `DialogAction` ][1] structure's [ `type` ][2] field.
62
+ #
63
+ #
64
+ #
65
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html
66
+ # [2]: https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html#lexv2-Type-runtime_DialogAction-type
67
+ #
60
68
  # @option params [Boolean] :disable_playback
61
69
  # Determines whether Amazon Lex V2 should send audio responses to the
62
70
  # client application.
@@ -0,0 +1,80 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::LexRuntimeV2
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::LexRuntimeV2::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::LexRuntimeV2::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::LexRuntimeV2::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :delete_session
60
+ Aws::LexRuntimeV2::Endpoints::DeleteSession.build(context)
61
+ when :get_session
62
+ Aws::LexRuntimeV2::Endpoints::GetSession.build(context)
63
+ when :put_session
64
+ Aws::LexRuntimeV2::Endpoints::PutSession.build(context)
65
+ when :recognize_text
66
+ Aws::LexRuntimeV2::Endpoints::RecognizeText.build(context)
67
+ when :recognize_utterance
68
+ Aws::LexRuntimeV2::Endpoints::RecognizeUtterance.build(context)
69
+ when :start_conversation
70
+ Aws::LexRuntimeV2::Endpoints::StartConversation.build(context)
71
+ end
72
+ end
73
+ end
74
+
75
+ def add_handlers(handlers, _config)
76
+ handlers.add(Handler, step: :build, priority: 75)
77
+ end
78
+ end
79
+ end
80
+ end
@@ -259,6 +259,12 @@ module Aws::LexRuntimeV2
259
259
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
260
260
  # slot_to_elicit: "NonEmptyString",
261
261
  # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
262
+ # sub_slot_to_elicit: {
263
+ # name: "NonEmptyString", # required
264
+ # sub_slot_to_elicit: {
265
+ # # recursive ElicitSubSlot
266
+ # },
267
+ # },
262
268
  # },
263
269
  # intent: {
264
270
  # name: "NonEmptyString", # required
@@ -269,12 +275,15 @@ module Aws::LexRuntimeV2
269
275
  # interpreted_value: "NonEmptyString", # required
270
276
  # resolved_values: ["NonEmptyString"],
271
277
  # },
272
- # shape: "Scalar", # accepts Scalar, List
278
+ # shape: "Scalar", # accepts Scalar, List, Composite
273
279
  # values: [
274
280
  # {
275
281
  # # recursive Slot
276
282
  # },
277
283
  # ],
284
+ # sub_slots: {
285
+ # # recursive Slots
286
+ # },
278
287
  # },
279
288
  # },
280
289
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
@@ -300,11 +309,14 @@ module Aws::LexRuntimeV2
300
309
  # slot_hints: {
301
310
  # "Name" => {
302
311
  # "Name" => {
303
- # runtime_hint_values: [ # required
312
+ # runtime_hint_values: [
304
313
  # {
305
314
  # phrase: "RuntimeHintPhrase", # required
306
315
  # },
307
316
  # ],
317
+ # sub_slot_hints: {
318
+ # # recursive SlotHintsSlotMap
319
+ # },
308
320
  # },
309
321
  # },
310
322
  # },
@@ -376,6 +388,14 @@ module Aws::LexRuntimeV2
376
388
  #
377
389
  # @!attribute [rw] welcome_messages
378
390
  # A list of messages to send to the user.
391
+ #
392
+ # If you set the `welcomeMessage` field, you must also set the [
393
+ # `DialogAction` ][1] structure's [ `type` ][2] field.
394
+ #
395
+ #
396
+ #
397
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html
398
+ # [2]: https://docs.aws.amazon.com/lexv2/latest/dg/API_runtime_DialogAction.html#lexv2-Type-runtime_DialogAction-type
379
399
  # @return [Array<Types::Message>]
380
400
  #
381
401
  # @!attribute [rw] disable_playback
@@ -553,6 +573,12 @@ module Aws::LexRuntimeV2
553
573
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
554
574
  # slot_to_elicit: "NonEmptyString",
555
575
  # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
576
+ # sub_slot_to_elicit: {
577
+ # name: "NonEmptyString", # required
578
+ # sub_slot_to_elicit: {
579
+ # # recursive ElicitSubSlot
580
+ # },
581
+ # },
556
582
  # }
557
583
  #
558
584
  # @!attribute [rw] type
@@ -569,6 +595,9 @@ module Aws::LexRuntimeV2
569
595
  #
570
596
  # * `Delegate` - The next action is determined by Amazon Lex V2.
571
597
  #
598
+ # * `ElicitIntent` - The next action is to elicit an intent from the
599
+ # user.
600
+ #
572
601
  # * `ElicitSlot` - The next action is to elicit a slot value from the
573
602
  # user.
574
603
  # @return [String]
@@ -594,12 +623,18 @@ module Aws::LexRuntimeV2
594
623
  # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html
595
624
  # @return [String]
596
625
  #
626
+ # @!attribute [rw] sub_slot_to_elicit
627
+ # The name of the constituent sub slot of the composite slot specified
628
+ # in slotToElicit that should be elicited from the user.
629
+ # @return [Types::ElicitSubSlot]
630
+ #
597
631
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/DialogAction AWS API Documentation
598
632
  #
599
633
  class DialogAction < Struct.new(
600
634
  :type,
601
635
  :slot_to_elicit,
602
- :slot_elicitation_style)
636
+ :slot_elicitation_style,
637
+ :sub_slot_to_elicit)
603
638
  SENSITIVE = []
604
639
  include Aws::Structure
605
640
  end
@@ -636,6 +671,39 @@ module Aws::LexRuntimeV2
636
671
  include Aws::Structure
637
672
  end
638
673
 
674
+ # The specific constituent sub slot of the composite slot to elicit in
675
+ # dialog action.
676
+ #
677
+ # @note When making an API call, you may pass ElicitSubSlot
678
+ # data as a hash:
679
+ #
680
+ # {
681
+ # name: "NonEmptyString", # required
682
+ # sub_slot_to_elicit: {
683
+ # name: "NonEmptyString", # required
684
+ # sub_slot_to_elicit: {
685
+ # # recursive ElicitSubSlot
686
+ # },
687
+ # },
688
+ # }
689
+ #
690
+ # @!attribute [rw] name
691
+ # The name of the slot that should be elicited from the user.
692
+ # @return [String]
693
+ #
694
+ # @!attribute [rw] sub_slot_to_elicit
695
+ # The field is not supported.
696
+ # @return [Types::ElicitSubSlot]
697
+ #
698
+ # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/ElicitSubSlot AWS API Documentation
699
+ #
700
+ class ElicitSubSlot < Struct.new(
701
+ :name,
702
+ :sub_slot_to_elicit)
703
+ SENSITIVE = []
704
+ include Aws::Structure
705
+ end
706
+
639
707
  # @note When making an API call, you may pass GetSessionRequest
640
708
  # data as a hash:
641
709
  #
@@ -800,12 +868,15 @@ module Aws::LexRuntimeV2
800
868
  # interpreted_value: "NonEmptyString", # required
801
869
  # resolved_values: ["NonEmptyString"],
802
870
  # },
803
- # shape: "Scalar", # accepts Scalar, List
871
+ # shape: "Scalar", # accepts Scalar, List, Composite
804
872
  # values: [
805
873
  # {
806
874
  # # recursive Slot
807
875
  # },
808
876
  # ],
877
+ # sub_slots: {
878
+ # # recursive Slots
879
+ # },
809
880
  # },
810
881
  # },
811
882
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
@@ -1081,6 +1152,12 @@ module Aws::LexRuntimeV2
1081
1152
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
1082
1153
  # slot_to_elicit: "NonEmptyString",
1083
1154
  # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
1155
+ # sub_slot_to_elicit: {
1156
+ # name: "NonEmptyString", # required
1157
+ # sub_slot_to_elicit: {
1158
+ # # recursive ElicitSubSlot
1159
+ # },
1160
+ # },
1084
1161
  # },
1085
1162
  # intent: {
1086
1163
  # name: "NonEmptyString", # required
@@ -1091,12 +1168,15 @@ module Aws::LexRuntimeV2
1091
1168
  # interpreted_value: "NonEmptyString", # required
1092
1169
  # resolved_values: ["NonEmptyString"],
1093
1170
  # },
1094
- # shape: "Scalar", # accepts Scalar, List
1171
+ # shape: "Scalar", # accepts Scalar, List, Composite
1095
1172
  # values: [
1096
1173
  # {
1097
1174
  # # recursive Slot
1098
1175
  # },
1099
1176
  # ],
1177
+ # sub_slots: {
1178
+ # # recursive Slots
1179
+ # },
1100
1180
  # },
1101
1181
  # },
1102
1182
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
@@ -1122,11 +1202,14 @@ module Aws::LexRuntimeV2
1122
1202
  # slot_hints: {
1123
1203
  # "Name" => {
1124
1204
  # "Name" => {
1125
- # runtime_hint_values: [ # required
1205
+ # runtime_hint_values: [
1126
1206
  # {
1127
1207
  # phrase: "RuntimeHintPhrase", # required
1128
1208
  # },
1129
1209
  # ],
1210
+ # sub_slot_hints: {
1211
+ # # recursive SlotHintsSlotMap
1212
+ # },
1130
1213
  # },
1131
1214
  # },
1132
1215
  # },
@@ -1260,6 +1343,12 @@ module Aws::LexRuntimeV2
1260
1343
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
1261
1344
  # slot_to_elicit: "NonEmptyString",
1262
1345
  # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
1346
+ # sub_slot_to_elicit: {
1347
+ # name: "NonEmptyString", # required
1348
+ # sub_slot_to_elicit: {
1349
+ # # recursive ElicitSubSlot
1350
+ # },
1351
+ # },
1263
1352
  # },
1264
1353
  # intent: {
1265
1354
  # name: "NonEmptyString", # required
@@ -1270,12 +1359,15 @@ module Aws::LexRuntimeV2
1270
1359
  # interpreted_value: "NonEmptyString", # required
1271
1360
  # resolved_values: ["NonEmptyString"],
1272
1361
  # },
1273
- # shape: "Scalar", # accepts Scalar, List
1362
+ # shape: "Scalar", # accepts Scalar, List, Composite
1274
1363
  # values: [
1275
1364
  # {
1276
1365
  # # recursive Slot
1277
1366
  # },
1278
1367
  # ],
1368
+ # sub_slots: {
1369
+ # # recursive Slots
1370
+ # },
1279
1371
  # },
1280
1372
  # },
1281
1373
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
@@ -1301,11 +1393,14 @@ module Aws::LexRuntimeV2
1301
1393
  # slot_hints: {
1302
1394
  # "Name" => {
1303
1395
  # "Name" => {
1304
- # runtime_hint_values: [ # required
1396
+ # runtime_hint_values: [
1305
1397
  # {
1306
1398
  # phrase: "RuntimeHintPhrase", # required
1307
1399
  # },
1308
1400
  # ],
1401
+ # sub_slot_hints: {
1402
+ # # recursive SlotHintsSlotMap
1403
+ # },
1309
1404
  # },
1310
1405
  # },
1311
1406
  # },
@@ -1659,11 +1754,23 @@ module Aws::LexRuntimeV2
1659
1754
  # data as a hash:
1660
1755
  #
1661
1756
  # {
1662
- # runtime_hint_values: [ # required
1757
+ # runtime_hint_values: [
1663
1758
  # {
1664
1759
  # phrase: "RuntimeHintPhrase", # required
1665
1760
  # },
1666
1761
  # ],
1762
+ # sub_slot_hints: {
1763
+ # "Name" => {
1764
+ # runtime_hint_values: [
1765
+ # {
1766
+ # phrase: "RuntimeHintPhrase", # required
1767
+ # },
1768
+ # ],
1769
+ # sub_slot_hints: {
1770
+ # # recursive SlotHintsSlotMap
1771
+ # },
1772
+ # },
1773
+ # },
1667
1774
  # }
1668
1775
  #
1669
1776
  # @!attribute [rw] runtime_hint_values
@@ -1672,10 +1779,20 @@ module Aws::LexRuntimeV2
1672
1779
  # values.
1673
1780
  # @return [Array<Types::RuntimeHintValue>]
1674
1781
  #
1782
+ # @!attribute [rw] sub_slot_hints
1783
+ # A map of constituent sub slot names inside a composite slot in the
1784
+ # intent and the phrases that should be added for each sub slot.
1785
+ # Inside each composite slot hints, this structure provides a
1786
+ # mechanism to add granular sub slot phrases. Only sub slot hints are
1787
+ # supported for composite slots. The intent name, composite slot name
1788
+ # and the constituent sub slot names must exist.
1789
+ # @return [Hash<String,Types::RuntimeHintDetails>]
1790
+ #
1675
1791
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RuntimeHintDetails AWS API Documentation
1676
1792
  #
1677
1793
  class RuntimeHintDetails < Struct.new(
1678
- :runtime_hint_values)
1794
+ :runtime_hint_values,
1795
+ :sub_slot_hints)
1679
1796
  SENSITIVE = []
1680
1797
  include Aws::Structure
1681
1798
  end
@@ -1712,11 +1829,12 @@ module Aws::LexRuntimeV2
1712
1829
  # Before you can use runtime hints with an existing bot, you must first
1713
1830
  # rebuild the bot.
1714
1831
  #
1715
- # For more information, see [Using hints to improve accuracy][1].
1832
+ # For more information, see [Using runtime hints to improve recognition
1833
+ # of slot values][1].
1716
1834
  #
1717
1835
  #
1718
1836
  #
1719
- # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.xml
1837
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.html
1720
1838
  #
1721
1839
  # @note When making an API call, you may pass RuntimeHints
1722
1840
  # data as a hash:
@@ -1725,11 +1843,14 @@ module Aws::LexRuntimeV2
1725
1843
  # slot_hints: {
1726
1844
  # "Name" => {
1727
1845
  # "Name" => {
1728
- # runtime_hint_values: [ # required
1846
+ # runtime_hint_values: [
1729
1847
  # {
1730
1848
  # phrase: "RuntimeHintPhrase", # required
1731
1849
  # },
1732
1850
  # ],
1851
+ # sub_slot_hints: {
1852
+ # # recursive SlotHintsSlotMap
1853
+ # },
1733
1854
  # },
1734
1855
  # },
1735
1856
  # },
@@ -1747,7 +1868,7 @@ module Aws::LexRuntimeV2
1747
1868
  #
1748
1869
  #
1749
1870
  #
1750
- # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.xml
1871
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-hints.html
1751
1872
  # @return [Hash<String,Hash<String,Types::RuntimeHintDetails>>]
1752
1873
  #
1753
1874
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/RuntimeHints AWS API Documentation
@@ -1832,6 +1953,12 @@ module Aws::LexRuntimeV2
1832
1953
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
1833
1954
  # slot_to_elicit: "NonEmptyString",
1834
1955
  # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
1956
+ # sub_slot_to_elicit: {
1957
+ # name: "NonEmptyString", # required
1958
+ # sub_slot_to_elicit: {
1959
+ # # recursive ElicitSubSlot
1960
+ # },
1961
+ # },
1835
1962
  # },
1836
1963
  # intent: {
1837
1964
  # name: "NonEmptyString", # required
@@ -1842,12 +1969,15 @@ module Aws::LexRuntimeV2
1842
1969
  # interpreted_value: "NonEmptyString", # required
1843
1970
  # resolved_values: ["NonEmptyString"],
1844
1971
  # },
1845
- # shape: "Scalar", # accepts Scalar, List
1972
+ # shape: "Scalar", # accepts Scalar, List, Composite
1846
1973
  # values: [
1847
1974
  # {
1848
1975
  # # recursive Slot
1849
1976
  # },
1850
1977
  # ],
1978
+ # sub_slots: {
1979
+ # # recursive Slots
1980
+ # },
1851
1981
  # },
1852
1982
  # },
1853
1983
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
@@ -1873,11 +2003,14 @@ module Aws::LexRuntimeV2
1873
2003
  # slot_hints: {
1874
2004
  # "Name" => {
1875
2005
  # "Name" => {
1876
- # runtime_hint_values: [ # required
2006
+ # runtime_hint_values: [
1877
2007
  # {
1878
2008
  # phrase: "RuntimeHintPhrase", # required
1879
2009
  # },
1880
2010
  # ],
2011
+ # sub_slot_hints: {
2012
+ # # recursive SlotHintsSlotMap
2013
+ # },
1881
2014
  # },
1882
2015
  # },
1883
2016
  # },
@@ -1940,7 +2073,7 @@ module Aws::LexRuntimeV2
1940
2073
  # interpreted_value: "NonEmptyString", # required
1941
2074
  # resolved_values: ["NonEmptyString"],
1942
2075
  # },
1943
- # shape: "Scalar", # accepts Scalar, List
2076
+ # shape: "Scalar", # accepts Scalar, List, Composite
1944
2077
  # values: [
1945
2078
  # {
1946
2079
  # value: {
@@ -1948,12 +2081,35 @@ module Aws::LexRuntimeV2
1948
2081
  # interpreted_value: "NonEmptyString", # required
1949
2082
  # resolved_values: ["NonEmptyString"],
1950
2083
  # },
1951
- # shape: "Scalar", # accepts Scalar, List
2084
+ # shape: "Scalar", # accepts Scalar, List, Composite
1952
2085
  # values: {
1953
2086
  # # recursive Values
1954
2087
  # },
2088
+ # sub_slots: {
2089
+ # "NonEmptyString" => {
2090
+ # # recursive Slot
2091
+ # },
2092
+ # },
1955
2093
  # },
1956
2094
  # ],
2095
+ # sub_slots: {
2096
+ # "NonEmptyString" => {
2097
+ # value: {
2098
+ # original_value: "NonEmptyString",
2099
+ # interpreted_value: "NonEmptyString", # required
2100
+ # resolved_values: ["NonEmptyString"],
2101
+ # },
2102
+ # shape: "Scalar", # accepts Scalar, List, Composite
2103
+ # values: [
2104
+ # {
2105
+ # # recursive Slot
2106
+ # },
2107
+ # ],
2108
+ # sub_slots: {
2109
+ # # recursive Slots
2110
+ # },
2111
+ # },
2112
+ # },
1957
2113
  # }
1958
2114
  #
1959
2115
  # @!attribute [rw] value
@@ -1972,12 +2128,17 @@ module Aws::LexRuntimeV2
1972
2128
  # might be "pepperoni" and "pineapple."
1973
2129
  # @return [Array<Types::Slot>]
1974
2130
  #
2131
+ # @!attribute [rw] sub_slots
2132
+ # The constituent sub slots of a composite slot.
2133
+ # @return [Hash<String,Types::Slot>]
2134
+ #
1975
2135
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/Slot AWS API Documentation
1976
2136
  #
1977
2137
  class Slot < Struct.new(
1978
2138
  :value,
1979
2139
  :shape,
1980
- :values)
2140
+ :values,
2141
+ :sub_slots)
1981
2142
  SENSITIVE = []
1982
2143
  include Aws::Structure
1983
2144
  end
@@ -2214,6 +2375,12 @@ module Aws::LexRuntimeV2
2214
2375
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
2215
2376
  # slot_to_elicit: "NonEmptyString",
2216
2377
  # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
2378
+ # sub_slot_to_elicit: {
2379
+ # name: "NonEmptyString", # required
2380
+ # sub_slot_to_elicit: {
2381
+ # # recursive ElicitSubSlot
2382
+ # },
2383
+ # },
2217
2384
  # },
2218
2385
  # intent: {
2219
2386
  # name: "NonEmptyString", # required
@@ -2224,12 +2391,15 @@ module Aws::LexRuntimeV2
2224
2391
  # interpreted_value: "NonEmptyString", # required
2225
2392
  # resolved_values: ["NonEmptyString"],
2226
2393
  # },
2227
- # shape: "Scalar", # accepts Scalar, List
2394
+ # shape: "Scalar", # accepts Scalar, List, Composite
2228
2395
  # values: [
2229
2396
  # {
2230
2397
  # # recursive Slot
2231
2398
  # },
2232
2399
  # ],
2400
+ # sub_slots: {
2401
+ # # recursive Slots
2402
+ # },
2233
2403
  # },
2234
2404
  # },
2235
2405
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
@@ -2255,11 +2425,14 @@ module Aws::LexRuntimeV2
2255
2425
  # slot_hints: {
2256
2426
  # "Name" => {
2257
2427
  # "Name" => {
2258
- # runtime_hint_values: [ # required
2428
+ # runtime_hint_values: [
2259
2429
  # {
2260
2430
  # phrase: "RuntimeHintPhrase", # required
2261
2431
  # },
2262
2432
  # ],
2433
+ # sub_slot_hints: {
2434
+ # # recursive SlotHintsSlotMap
2435
+ # },
2263
2436
  # },
2264
2437
  # },
2265
2438
  # },