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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd6ca50110fda6f758f27e4281580d1ca1b22b5b7b632f54dc2b82906f5c1f4d
4
- data.tar.gz: c2357f66da3599850ecbd3652786ddd8e3be059038e7afc4c5face102a4883f6
3
+ metadata.gz: 4d119aacb234025a19af9883bc11bda6ea6a8b4079b0329a9038c6031af6ed0e
4
+ data.tar.gz: fc41718eeea10ffefe0779119364d35d772328d1933ca51b3a54a055d490f89c
5
5
  SHA512:
6
- metadata.gz: 84b54a508e7275e93ff7b23e533ba5f44c2331afe78a5cfeb069710d39f633aabc4dd40152ba7a6b7772e69de5193e6efb193abe5c4197ae3384bb9f3ba5382f
7
- data.tar.gz: '09c0b8cbc618a6ecc509927b4435d197f9d6762c46cd1227c3c2cb2bca5d0a88bac92c67a422f4475395b7bc96fd1ca3bc65a0b09d5425524349055c7e9b6ed3'
6
+ metadata.gz: db25814668f6eb1baa9b66fd63dd2f31cb05bfedd45bf173be90862fbb5dc9b238757fbc1ce769b65182586d828ae6eeadf56b609be54c52bd0133d6b92a8baa
7
+ data.tar.gz: 4e4984e1dfb2d06dfedde6225552bd2ef579b1bd3964149b6c713b0a129ac9ce7fb9425e09e5e1a722bff0adef133edfe6be976b02cc8091ba7dea5cee963ba7
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.17.0 (2022-10-25)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.16.0 (2022-09-09)
10
+ ------------------
11
+
12
+ * Feature - This release is for supporting Composite Slot Type feature in AWS Lex V2. Composite Slot Type will help developer to logically group coherent slots and maintain their inter-relationships in runtime conversation.
13
+
4
14
  1.15.0 (2022-02-24)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.17.0
@@ -27,7 +27,7 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
27
27
  require 'aws-sdk-core/plugins/defaults_mode.rb'
28
28
  require 'aws-sdk-core/plugins/recursion_detection.rb'
29
29
  require 'aws-sdk-core/plugins/invocation_id.rb'
30
- require 'aws-sdk-core/plugins/signature_v4.rb'
30
+ require 'aws-sdk-core/plugins/sign.rb'
31
31
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
32
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
33
33
 
@@ -59,9 +59,10 @@ module Aws::LexRuntimeV2
59
59
  add_plugin(Aws::Plugins::DefaultsMode)
60
60
  add_plugin(Aws::Plugins::RecursionDetection)
61
61
  add_plugin(Aws::Plugins::InvocationId)
62
- add_plugin(Aws::Plugins::SignatureV4)
62
+ add_plugin(Aws::Plugins::Sign)
63
63
  add_plugin(Aws::Plugins::Protocols::RestJson)
64
64
  add_plugin(Aws::Plugins::EventStreamConfiguration)
65
+ add_plugin(Aws::LexRuntimeV2::Plugins::Endpoints)
65
66
 
66
67
  # @option options [required, Aws::CredentialProvider] :credentials
67
68
  # Your AWS credentials. This can be an instance of any one of the
@@ -232,6 +233,19 @@ module Aws::LexRuntimeV2
232
233
  # ** Please note ** When response stubbing is enabled, no HTTP
233
234
  # requests are made, and retries are disabled.
234
235
  #
236
+ # @option options [Aws::TokenProvider] :token_provider
237
+ # A Bearer Token Provider. This can be an instance of any one of the
238
+ # following classes:
239
+ #
240
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
241
+ # tokens.
242
+ #
243
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
244
+ # access token generated from `aws login`.
245
+ #
246
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
247
+ # will be used to search for tokens configured for your profile in shared configuration files.
248
+ #
235
249
  # @option options [Boolean] :use_dualstack_endpoint
236
250
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
237
251
  # will be used if available.
@@ -245,6 +259,9 @@ module Aws::LexRuntimeV2
245
259
  # When `true`, request parameters are validated before
246
260
  # sending the request.
247
261
  #
262
+ # @option options [Aws::LexRuntimeV2::EndpointProvider] :endpoint_provider
263
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LexRuntimeV2::EndpointParameters`
264
+ #
248
265
  def initialize(*args)
249
266
  unless Kernel.const_defined?("HTTP2")
250
267
  raise "Must include http/2 gem to use AsyncClient instances."
@@ -519,23 +536,27 @@ module Aws::LexRuntimeV2
519
536
  # event.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
520
537
  # event.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
521
538
  # event.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
522
- # event.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
539
+ # event.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
523
540
  # event.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
524
541
  # event.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
542
+ # event.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
525
543
  # event.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
526
544
  # event.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
527
545
  # event.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
528
546
  # event.session_state.dialog_action.slot_to_elicit #=> String
529
547
  # event.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
548
+ # event.session_state.dialog_action.sub_slot_to_elicit.name #=> String
549
+ # event.session_state.dialog_action.sub_slot_to_elicit.sub_slot_to_elicit #=> Types::ElicitSubSlot
530
550
  # event.session_state.intent.name #=> String
531
551
  # event.session_state.intent.slots #=> Hash
532
552
  # event.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
533
553
  # event.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
534
554
  # event.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
535
555
  # event.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
536
- # event.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
556
+ # event.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
537
557
  # event.session_state.intent.slots["NonEmptyString"].values #=> Array
538
558
  # event.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
559
+ # event.session_state.intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
539
560
  # event.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
540
561
  # event.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
541
562
  # event.session_state.active_contexts #=> Array
@@ -551,6 +572,7 @@ module Aws::LexRuntimeV2
551
572
  # event.session_state.runtime_hints.slot_hints["Name"] #=> Hash
552
573
  # event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
553
574
  # event.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
575
+ # event.session_state.runtime_hints.slot_hints["Name"]["Name"].sub_slot_hints #=> Types::SlotHintsSlotMap
554
576
  # event.request_attributes #=> Hash
555
577
  # event.request_attributes["NonEmptyString"] #=> String
556
578
  # event.session_id #=> String
@@ -622,9 +644,9 @@ module Aws::LexRuntimeV2
622
644
  req = build_request(:start_conversation, params)
623
645
 
624
646
  req.context[:input_event_stream_handler] = input_event_stream_handler
625
- req.handlers.add(Aws::Binary::EncodeHandler, priority: 95)
647
+ req.handlers.add(Aws::Binary::EncodeHandler, priority: 55)
626
648
  req.context[:output_event_stream_handler] = output_event_stream_handler
627
- req.handlers.add(Aws::Binary::DecodeHandler, priority: 95)
649
+ req.handlers.add(Aws::Binary::DecodeHandler, priority: 55)
628
650
 
629
651
  req.send_request(options, &block)
630
652
  end
@@ -643,7 +665,7 @@ module Aws::LexRuntimeV2
643
665
  http_response: Seahorse::Client::Http::AsyncResponse.new,
644
666
  config: config)
645
667
  context[:gem_name] = 'aws-sdk-lexruntimev2'
646
- context[:gem_version] = '1.15.0'
668
+ context[:gem_version] = '1.17.0'
647
669
  Seahorse::Client::Request.new(handlers, context)
648
670
  end
649
671
 
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
36
36
 
@@ -80,9 +80,10 @@ module Aws::LexRuntimeV2
80
80
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
81
81
  add_plugin(Aws::Plugins::DefaultsMode)
82
82
  add_plugin(Aws::Plugins::RecursionDetection)
83
- add_plugin(Aws::Plugins::SignatureV4)
83
+ add_plugin(Aws::Plugins::Sign)
84
84
  add_plugin(Aws::Plugins::Protocols::RestJson)
85
85
  add_plugin(Aws::Plugins::EventStreamConfiguration)
86
+ add_plugin(Aws::LexRuntimeV2::Plugins::Endpoints)
86
87
 
87
88
  # @overload initialize(options)
88
89
  # @param [Hash] options
@@ -298,6 +299,19 @@ module Aws::LexRuntimeV2
298
299
  # ** Please note ** When response stubbing is enabled, no HTTP
299
300
  # requests are made, and retries are disabled.
300
301
  #
302
+ # @option options [Aws::TokenProvider] :token_provider
303
+ # A Bearer Token Provider. This can be an instance of any one of the
304
+ # following classes:
305
+ #
306
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
307
+ # tokens.
308
+ #
309
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
310
+ # access token generated from `aws login`.
311
+ #
312
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
313
+ # will be used to search for tokens configured for your profile in shared configuration files.
314
+ #
301
315
  # @option options [Boolean] :use_dualstack_endpoint
302
316
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
303
317
  # will be used if available.
@@ -311,6 +325,9 @@ module Aws::LexRuntimeV2
311
325
  # When `true`, request parameters are validated before
312
326
  # sending the request.
313
327
  #
328
+ # @option options [Aws::LexRuntimeV2::EndpointProvider] :endpoint_provider
329
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::LexRuntimeV2::EndpointParameters`
330
+ #
314
331
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
315
332
  # requests through. Formatted like 'http://proxy.com:123'.
316
333
  #
@@ -487,23 +504,27 @@ module Aws::LexRuntimeV2
487
504
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
488
505
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
489
506
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
490
- # resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
507
+ # resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
491
508
  # resp.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
492
509
  # resp.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
510
+ # resp.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
493
511
  # resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
494
512
  # resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
495
513
  # resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
496
514
  # resp.session_state.dialog_action.slot_to_elicit #=> String
497
515
  # resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
516
+ # resp.session_state.dialog_action.sub_slot_to_elicit.name #=> String
517
+ # resp.session_state.dialog_action.sub_slot_to_elicit.sub_slot_to_elicit #=> Types::ElicitSubSlot
498
518
  # resp.session_state.intent.name #=> String
499
519
  # resp.session_state.intent.slots #=> Hash
500
520
  # resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
501
521
  # resp.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
502
522
  # resp.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
503
523
  # resp.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
504
- # resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
524
+ # resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
505
525
  # resp.session_state.intent.slots["NonEmptyString"].values #=> Array
506
526
  # resp.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
527
+ # resp.session_state.intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
507
528
  # resp.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
508
529
  # resp.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
509
530
  # resp.session_state.active_contexts #=> Array
@@ -519,6 +540,7 @@ module Aws::LexRuntimeV2
519
540
  # resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
520
541
  # resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
521
542
  # resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
543
+ # resp.session_state.runtime_hints.slot_hints["Name"]["Name"].sub_slot_hints #=> Types::SlotHintsSlotMap
522
544
  #
523
545
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/GetSession AWS API Documentation
524
546
  #
@@ -609,6 +631,12 @@ module Aws::LexRuntimeV2
609
631
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
610
632
  # slot_to_elicit: "NonEmptyString",
611
633
  # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
634
+ # sub_slot_to_elicit: {
635
+ # name: "NonEmptyString", # required
636
+ # sub_slot_to_elicit: {
637
+ # # recursive ElicitSubSlot
638
+ # },
639
+ # },
612
640
  # },
613
641
  # intent: {
614
642
  # name: "NonEmptyString", # required
@@ -619,12 +647,15 @@ module Aws::LexRuntimeV2
619
647
  # interpreted_value: "NonEmptyString", # required
620
648
  # resolved_values: ["NonEmptyString"],
621
649
  # },
622
- # shape: "Scalar", # accepts Scalar, List
650
+ # shape: "Scalar", # accepts Scalar, List, Composite
623
651
  # values: [
624
652
  # {
625
653
  # # recursive Slot
626
654
  # },
627
655
  # ],
656
+ # sub_slots: {
657
+ # # recursive Slots
658
+ # },
628
659
  # },
629
660
  # },
630
661
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
@@ -650,11 +681,14 @@ module Aws::LexRuntimeV2
650
681
  # slot_hints: {
651
682
  # "Name" => {
652
683
  # "Name" => {
653
- # runtime_hint_values: [ # required
684
+ # runtime_hint_values: [
654
685
  # {
655
686
  # phrase: "RuntimeHintPhrase", # required
656
687
  # },
657
688
  # ],
689
+ # sub_slot_hints: {
690
+ # # recursive SlotHintsSlotMap
691
+ # },
658
692
  # },
659
693
  # },
660
694
  # },
@@ -762,6 +796,12 @@ module Aws::LexRuntimeV2
762
796
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
763
797
  # slot_to_elicit: "NonEmptyString",
764
798
  # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
799
+ # sub_slot_to_elicit: {
800
+ # name: "NonEmptyString", # required
801
+ # sub_slot_to_elicit: {
802
+ # # recursive ElicitSubSlot
803
+ # },
804
+ # },
765
805
  # },
766
806
  # intent: {
767
807
  # name: "NonEmptyString", # required
@@ -772,12 +812,15 @@ module Aws::LexRuntimeV2
772
812
  # interpreted_value: "NonEmptyString", # required
773
813
  # resolved_values: ["NonEmptyString"],
774
814
  # },
775
- # shape: "Scalar", # accepts Scalar, List
815
+ # shape: "Scalar", # accepts Scalar, List, Composite
776
816
  # values: [
777
817
  # {
778
818
  # # recursive Slot
779
819
  # },
780
820
  # ],
821
+ # sub_slots: {
822
+ # # recursive Slots
823
+ # },
781
824
  # },
782
825
  # },
783
826
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting, FulfillmentInProgress
@@ -803,11 +846,14 @@ module Aws::LexRuntimeV2
803
846
  # slot_hints: {
804
847
  # "Name" => {
805
848
  # "Name" => {
806
- # runtime_hint_values: [ # required
849
+ # runtime_hint_values: [
807
850
  # {
808
851
  # phrase: "RuntimeHintPhrase", # required
809
852
  # },
810
853
  # ],
854
+ # sub_slot_hints: {
855
+ # # recursive SlotHintsSlotMap
856
+ # },
811
857
  # },
812
858
  # },
813
859
  # },
@@ -832,15 +878,18 @@ module Aws::LexRuntimeV2
832
878
  # resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
833
879
  # resp.session_state.dialog_action.slot_to_elicit #=> String
834
880
  # resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
881
+ # resp.session_state.dialog_action.sub_slot_to_elicit.name #=> String
882
+ # resp.session_state.dialog_action.sub_slot_to_elicit.sub_slot_to_elicit #=> Types::ElicitSubSlot
835
883
  # resp.session_state.intent.name #=> String
836
884
  # resp.session_state.intent.slots #=> Hash
837
885
  # resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
838
886
  # resp.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
839
887
  # resp.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
840
888
  # resp.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
841
- # resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
889
+ # resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
842
890
  # resp.session_state.intent.slots["NonEmptyString"].values #=> Array
843
891
  # resp.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
892
+ # resp.session_state.intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
844
893
  # resp.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
845
894
  # resp.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
846
895
  # resp.session_state.active_contexts #=> Array
@@ -856,6 +905,7 @@ module Aws::LexRuntimeV2
856
905
  # resp.session_state.runtime_hints.slot_hints["Name"] #=> Hash
857
906
  # resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values #=> Array
858
907
  # resp.session_state.runtime_hints.slot_hints["Name"]["Name"].runtime_hint_values[0].phrase #=> String
908
+ # resp.session_state.runtime_hints.slot_hints["Name"]["Name"].sub_slot_hints #=> Types::SlotHintsSlotMap
859
909
  # resp.interpretations #=> Array
860
910
  # resp.interpretations[0].nlu_confidence.score #=> Float
861
911
  # resp.interpretations[0].sentiment_response.sentiment #=> String, one of "MIXED", "NEGATIVE", "NEUTRAL", "POSITIVE"
@@ -869,9 +919,10 @@ module Aws::LexRuntimeV2
869
919
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
870
920
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
871
921
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
872
- # resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
922
+ # resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List", "Composite"
873
923
  # resp.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
874
924
  # resp.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
925
+ # resp.interpretations[0].intent.slots["NonEmptyString"].sub_slots #=> Types::Slots
875
926
  # resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting", "FulfillmentInProgress"
876
927
  # resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
877
928
  # resp.request_attributes #=> Hash
@@ -1091,7 +1142,7 @@ module Aws::LexRuntimeV2
1091
1142
  params: params,
1092
1143
  config: config)
1093
1144
  context[:gem_name] = 'aws-sdk-lexruntimev2'
1094
- context[:gem_version] = '1.15.0'
1145
+ context[:gem_version] = '1.17.0'
1095
1146
  Seahorse::Client::Request.new(handlers, context)
1096
1147
  end
1097
1148
 
@@ -49,6 +49,7 @@ module Aws::LexRuntimeV2
49
49
  DialogActionType = Shapes::StringShape.new(name: 'DialogActionType')
50
50
  DisconnectionEvent = Shapes::StructureShape.new(name: 'DisconnectionEvent')
51
51
  Double = Shapes::FloatShape.new(name: 'Double')
52
+ ElicitSubSlot = Shapes::StructureShape.new(name: 'ElicitSubSlot')
52
53
  EpochMillis = Shapes::IntegerShape.new(name: 'EpochMillis')
53
54
  EventId = Shapes::StringShape.new(name: 'EventId')
54
55
  GetSessionRequest = Shapes::StructureShape.new(name: 'GetSessionRequest')
@@ -187,12 +188,17 @@ module Aws::LexRuntimeV2
187
188
  DialogAction.add_member(:type, Shapes::ShapeRef.new(shape: DialogActionType, required: true, location_name: "type"))
188
189
  DialogAction.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "slotToElicit"))
189
190
  DialogAction.add_member(:slot_elicitation_style, Shapes::ShapeRef.new(shape: StyleType, location_name: "slotElicitationStyle"))
191
+ DialogAction.add_member(:sub_slot_to_elicit, Shapes::ShapeRef.new(shape: ElicitSubSlot, location_name: "subSlotToElicit"))
190
192
  DialogAction.struct_class = Types::DialogAction
191
193
 
192
194
  DisconnectionEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
193
195
  DisconnectionEvent.add_member(:client_timestamp_millis, Shapes::ShapeRef.new(shape: EpochMillis, location_name: "clientTimestampMillis"))
194
196
  DisconnectionEvent.struct_class = Types::DisconnectionEvent
195
197
 
198
+ ElicitSubSlot.add_member(:name, Shapes::ShapeRef.new(shape: NonEmptyString, required: true, location_name: "name"))
199
+ ElicitSubSlot.add_member(:sub_slot_to_elicit, Shapes::ShapeRef.new(shape: ElicitSubSlot, location_name: "subSlotToElicit"))
200
+ ElicitSubSlot.struct_class = Types::ElicitSubSlot
201
+
196
202
  GetSessionRequest.add_member(:bot_id, Shapes::ShapeRef.new(shape: BotIdentifier, required: true, location: "uri", location_name: "botId"))
197
203
  GetSessionRequest.add_member(:bot_alias_id, Shapes::ShapeRef.new(shape: BotAliasIdentifier, required: true, location: "uri", location_name: "botAliasId"))
198
204
  GetSessionRequest.add_member(:locale_id, Shapes::ShapeRef.new(shape: LocaleId, required: true, location: "uri", location_name: "localeId"))
@@ -319,7 +325,8 @@ module Aws::LexRuntimeV2
319
325
  ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
320
326
  ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
321
327
 
322
- RuntimeHintDetails.add_member(:runtime_hint_values, Shapes::ShapeRef.new(shape: RuntimeHintValuesList, required: true, location_name: "runtimeHintValues"))
328
+ RuntimeHintDetails.add_member(:runtime_hint_values, Shapes::ShapeRef.new(shape: RuntimeHintValuesList, location_name: "runtimeHintValues"))
329
+ RuntimeHintDetails.add_member(:sub_slot_hints, Shapes::ShapeRef.new(shape: SlotHintsSlotMap, location_name: "subSlotHints"))
323
330
  RuntimeHintDetails.struct_class = Types::RuntimeHintDetails
324
331
 
325
332
  RuntimeHintValue.add_member(:phrase, Shapes::ShapeRef.new(shape: RuntimeHintPhrase, required: true, location_name: "phrase"))
@@ -351,6 +358,7 @@ module Aws::LexRuntimeV2
351
358
  Slot.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
352
359
  Slot.add_member(:shape, Shapes::ShapeRef.new(shape: Shape, location_name: "shape"))
353
360
  Slot.add_member(:values, Shapes::ShapeRef.new(shape: Values, location_name: "values"))
361
+ Slot.add_member(:sub_slots, Shapes::ShapeRef.new(shape: Slots, location_name: "subSlots"))
354
362
  Slot.struct_class = Types::Slot
355
363
 
356
364
  SlotHintsIntentMap.key = Shapes::ShapeRef.new(shape: Name)
@@ -0,0 +1,66 @@
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
+ module Aws::LexRuntimeV2
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,112 @@
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
+ module Aws::LexRuntimeV2
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJ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