aws-sdk-lexruntimev2 1.2.0 → 1.3.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: c4f0532977717ed1e5ee3d3a35e0e923fc050783758c48de3daf6931bf4675c5
4
- data.tar.gz: a7034897311288b40f593c535f3f335443a9aeb72f4829489a0359b15a7a0d85
3
+ metadata.gz: a4c5b47adf0455d67561490f2a6f781f51e1f77099c6d02d46263c06f6dbc3b5
4
+ data.tar.gz: 6b2b8a6623d8e71e40d644346784213420743c48b9bc224fe2442cb65251c23d
5
5
  SHA512:
6
- metadata.gz: 687fc38e16f4ea95985139f7a4857389c34aeba6f81ae7b5c484b50661c8eae4991596c524ca7f76fed5ad6df5459ec40c7172ac045931e2f64b3e4bd8fb7f9f
7
- data.tar.gz: 9f519a7b13b5f78a5ea8ee9b8a7c0cf80cde50b9c4719efaae854e9539247939cfedc8db7a16daa29370141b623c0e0bbc15105cebea20757a36be04729e96f8
6
+ metadata.gz: 11021d580f53f4a530ea30ad5859b15c3da5a08e51fc7fed72086ac99f5b66c1839eb65508c5fc3e5c2fba066e015e6d78a8aeb02cd7c6a2666cca76c4a7076a
7
+ data.tar.gz: e03b4a4673fc79a50c0dea85cbdd0a00523c9cc85984362f84080670a89b040b4f0f8f7da5a079aa83550f16404d0d0669d94797c1e9eb985da0af15ce3e5828
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.3.0 (2021-06-15)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for Multi Valued slots in Amazon Lex V2 APIs for runtime
8
+
4
9
  1.2.0 (2021-03-10)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.3.0
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-lexruntimev2/event_streams'
50
50
  # @!group service
51
51
  module Aws::LexRuntimeV2
52
52
 
53
- GEM_VERSION = '1.2.0'
53
+ GEM_VERSION = '1.3.0'
54
54
 
55
55
  end
@@ -239,9 +239,28 @@ module Aws::LexRuntimeV2
239
239
 
240
240
  # Starts an HTTP/2 bidirectional event stream that enables you to send
241
241
  # audio, text, or DTMF input in real time. After your application starts
242
- # a conversation, users send input to Amazon Lex as a stream of events.
243
- # Amazon Lex processes the incoming events and responds with streaming
244
- # text or audio events.
242
+ # a conversation, users send input to Amazon Lex V2 as a stream of
243
+ # events. Amazon Lex V2 processes the incoming events and responds with
244
+ # streaming text or audio events.
245
+ #
246
+ # Audio input must be in the following format: `audio/lpcm
247
+ # sample-rate=8000 sample-size-bits=16 channel-count=1;
248
+ # is-big-endian=false`.
249
+ #
250
+ # The `StartConversation` operation is supported only in the following
251
+ # SDKs:
252
+ #
253
+ # * [AWS SDK for C++][1]
254
+ #
255
+ # * [AWS SDK for Java V2][2]
256
+ #
257
+ # * [AWS SDK for Ruby V3][3]
258
+ #
259
+ #
260
+ #
261
+ # [1]: https://docs.aws.amazon.com/goto/SdkForCpp/runtime.lex.v2-2020-08-07/StartConversation
262
+ # [2]: https://docs.aws.amazon.com/goto/SdkForJavaV2/runtime.lex.v2-2020-08-07/StartConversation
263
+ # [3]: https://docs.aws.amazon.com/goto/SdkForRubyV3/runtime.lex.v2-2020-08-07/StartConversation
245
264
  #
246
265
  # @option params [required, String] :bot_id
247
266
  # The identifier of the bot to process the request.
@@ -256,7 +275,7 @@ module Aws::LexRuntimeV2
256
275
  # The identifier of the user session that is having the conversation.
257
276
  #
258
277
  # @option params [String] :conversation_mode
259
- # The conversation type that you are using the Amazon Lex. If the
278
+ # The conversation type that you are using the Amazon Lex V2. If the
260
279
  # conversation mode is `AUDIO` you can send both audio and DTMF
261
280
  # information. If the mode is `TEXT` you can only send text.
262
281
  #
@@ -454,6 +473,9 @@ module Aws::LexRuntimeV2
454
473
  # event.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
455
474
  # event.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
456
475
  # event.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
476
+ # event.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
477
+ # event.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
478
+ # event.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
457
479
  # event.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
458
480
  # event.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
459
481
  # event.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot"
@@ -464,6 +486,9 @@ module Aws::LexRuntimeV2
464
486
  # event.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
465
487
  # event.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
466
488
  # event.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
489
+ # event.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
490
+ # event.session_state.intent.slots["NonEmptyString"].values #=> Array
491
+ # event.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
467
492
  # event.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
468
493
  # event.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
469
494
  # event.session_state.active_contexts #=> Array
@@ -567,7 +592,7 @@ module Aws::LexRuntimeV2
567
592
  http_response: Seahorse::Client::Http::AsyncResponse.new,
568
593
  config: config)
569
594
  context[:gem_name] = 'aws-sdk-lexruntimev2'
570
- context[:gem_version] = '1.2.0'
595
+ context[:gem_version] = '1.3.0'
571
596
  Seahorse::Client::Request.new(handlers, context)
572
597
  end
573
598
 
@@ -405,7 +405,7 @@ module Aws::LexRuntimeV2
405
405
  # For example, you can use this operation to retrieve session
406
406
  # information for a user that has left a long-running session in use.
407
407
  #
408
- # If the bot, alias, or session identifier doesn't exist, Amazon Lex
408
+ # If the bot, alias, or session identifier doesn't exist, Amazon Lex V2
409
409
  # returns a `BadRequestException`. If the locale doesn't exist or is
410
410
  # not enabled for the alias, you receive a `BadRequestException`.
411
411
  #
@@ -463,6 +463,9 @@ module Aws::LexRuntimeV2
463
463
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
464
464
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
465
465
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
466
+ # resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
467
+ # resp.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
468
+ # resp.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
466
469
  # resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
467
470
  # resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
468
471
  # resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot"
@@ -473,6 +476,9 @@ module Aws::LexRuntimeV2
473
476
  # resp.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
474
477
  # resp.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
475
478
  # resp.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
479
+ # resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
480
+ # resp.session_state.intent.slots["NonEmptyString"].values #=> Array
481
+ # resp.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
476
482
  # resp.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
477
483
  # resp.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
478
484
  # resp.session_state.active_contexts #=> Array
@@ -495,7 +501,7 @@ module Aws::LexRuntimeV2
495
501
  end
496
502
 
497
503
  # Creates a new session or modifies an existing session with an Amazon
498
- # Lex bot. Use this operation to enable your application to set the
504
+ # Lex V2 bot. Use this operation to enable your application to set the
499
505
  # state of the bot.
500
506
  #
501
507
  # @option params [required, String] :bot_id
@@ -517,22 +523,22 @@ module Aws::LexRuntimeV2
517
523
  # @option params [required, Types::SessionState] :session_state
518
524
  # Sets the state of the session with the user. You can use this to set
519
525
  # the current intent, attributes, context, and dialog action. Use the
520
- # dialog action to determine the next step that Amazon Lex should use in
521
- # the conversation with the user.
526
+ # dialog action to determine the next step that Amazon Lex V2 should use
527
+ # in the conversation with the user.
522
528
  #
523
529
  # @option params [Hash<String,String>] :request_attributes
524
- # Request-specific information passed between Amazon Lex and the client
525
- # application.
530
+ # Request-specific information passed between Amazon Lex V2 and the
531
+ # client application.
526
532
  #
527
533
  # The namespace `x-amz-lex:` is reserved for special attributes. Don't
528
534
  # create any request attributes with the prefix `x-amz-lex:`.
529
535
  #
530
536
  # @option params [String] :response_content_type
531
- # The message that Amazon Lex returns in the response can be either text
532
- # or speech depending on the value of this parameter.
537
+ # The message that Amazon Lex V2 returns in the response can be either
538
+ # text or speech depending on the value of this parameter.
533
539
  #
534
- # * If the value is `text/plain; charset=utf-8`, Amazon Lex returns text
535
- # in the response.
540
+ # * If the value is `text/plain; charset=utf-8`, Amazon Lex V2 returns
541
+ # text in the response.
536
542
  #
537
543
  # ^
538
544
  #
@@ -555,7 +561,7 @@ module Aws::LexRuntimeV2
555
561
  # messages: [
556
562
  # {
557
563
  # content: "Text",
558
- # content_type: "CustomPayload", # accepts CustomPayload, ImageResponseCard, PlainText, SSML
564
+ # content_type: "CustomPayload", # required, accepts CustomPayload, ImageResponseCard, PlainText, SSML
559
565
  # image_response_card: {
560
566
  # title: "AttachmentTitle", # required
561
567
  # subtitle: "AttachmentTitle",
@@ -583,6 +589,12 @@ module Aws::LexRuntimeV2
583
589
  # interpreted_value: "NonEmptyString", # required
584
590
  # resolved_values: ["NonEmptyString"],
585
591
  # },
592
+ # shape: "Scalar", # accepts Scalar, List
593
+ # values: [
594
+ # {
595
+ # # recursive Slot
596
+ # },
597
+ # ],
586
598
  # },
587
599
  # },
588
600
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting
@@ -595,7 +607,7 @@ module Aws::LexRuntimeV2
595
607
  # time_to_live_in_seconds: 1, # required
596
608
  # turns_to_live: 1, # required
597
609
  # },
598
- # context_attributes: {
610
+ # context_attributes: { # required
599
611
  # "ParameterName" => "Text",
600
612
  # },
601
613
  # },
@@ -629,12 +641,13 @@ module Aws::LexRuntimeV2
629
641
  req.send_request(options, &block)
630
642
  end
631
643
 
632
- # Sends user input to Amazon Lex. Client applications use this API to
633
- # send requests to Amazon Lex at runtime. Amazon Lex then interprets the
634
- # user input using the machine learning model that it build for the bot.
644
+ # Sends user input to Amazon Lex V2. Client applications use this API to
645
+ # send requests to Amazon Lex V2 at runtime. Amazon Lex V2 then
646
+ # interprets the user input using the machine learning model that it
647
+ # build for the bot.
635
648
  #
636
- # In response, Amazon Lex returns the next message to convey to the user
637
- # and an optional response card to display.
649
+ # In response, Amazon Lex V2 returns the next message to convey to the
650
+ # user and an optional response card to display.
638
651
  #
639
652
  # @option params [required, String] :bot_id
640
653
  # The identifier of the bot that processes the request.
@@ -649,14 +662,14 @@ module Aws::LexRuntimeV2
649
662
  # The identifier of the user session that is having the conversation.
650
663
  #
651
664
  # @option params [required, String] :text
652
- # The text that the user entered. Amazon Lex interprets this text.
665
+ # The text that the user entered. Amazon Lex V2 interprets this text.
653
666
  #
654
667
  # @option params [Types::SessionState] :session_state
655
668
  # The current state of the dialog between the user and the bot.
656
669
  #
657
670
  # @option params [Hash<String,String>] :request_attributes
658
671
  # Request-specific information passed between the client application and
659
- # Amazon Lex
672
+ # Amazon Lex V2
660
673
  #
661
674
  # The namespace `x-amz-lex:` is reserved for special attributes. Don't
662
675
  # create any request attributes with the prefix `x-amz-lex:`.
@@ -691,6 +704,12 @@ module Aws::LexRuntimeV2
691
704
  # interpreted_value: "NonEmptyString", # required
692
705
  # resolved_values: ["NonEmptyString"],
693
706
  # },
707
+ # shape: "Scalar", # accepts Scalar, List
708
+ # values: [
709
+ # {
710
+ # # recursive Slot
711
+ # },
712
+ # ],
694
713
  # },
695
714
  # },
696
715
  # state: "Failed", # accepts Failed, Fulfilled, InProgress, ReadyForFulfillment, Waiting
@@ -703,7 +722,7 @@ module Aws::LexRuntimeV2
703
722
  # time_to_live_in_seconds: 1, # required
704
723
  # turns_to_live: 1, # required
705
724
  # },
706
- # context_attributes: {
725
+ # context_attributes: { # required
707
726
  # "ParameterName" => "Text",
708
727
  # },
709
728
  # },
@@ -737,6 +756,9 @@ module Aws::LexRuntimeV2
737
756
  # resp.session_state.intent.slots["NonEmptyString"].value.interpreted_value #=> String
738
757
  # resp.session_state.intent.slots["NonEmptyString"].value.resolved_values #=> Array
739
758
  # resp.session_state.intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
759
+ # resp.session_state.intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
760
+ # resp.session_state.intent.slots["NonEmptyString"].values #=> Array
761
+ # resp.session_state.intent.slots["NonEmptyString"].values[0] #=> Types::Slot
740
762
  # resp.session_state.intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
741
763
  # resp.session_state.intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
742
764
  # resp.session_state.active_contexts #=> Array
@@ -761,6 +783,9 @@ module Aws::LexRuntimeV2
761
783
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.interpreted_value #=> String
762
784
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values #=> Array
763
785
  # resp.interpretations[0].intent.slots["NonEmptyString"].value.resolved_values[0] #=> String
786
+ # resp.interpretations[0].intent.slots["NonEmptyString"].shape #=> String, one of "Scalar", "List"
787
+ # resp.interpretations[0].intent.slots["NonEmptyString"].values #=> Array
788
+ # resp.interpretations[0].intent.slots["NonEmptyString"].values[0] #=> Types::Slot
764
789
  # resp.interpretations[0].intent.state #=> String, one of "Failed", "Fulfilled", "InProgress", "ReadyForFulfillment", "Waiting"
765
790
  # resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
766
791
  # resp.request_attributes #=> Hash
@@ -776,10 +801,35 @@ module Aws::LexRuntimeV2
776
801
  req.send_request(options)
777
802
  end
778
803
 
779
- # Sends user input to Amazon Lex. You can send text or speech. Clients
780
- # use this API to send text and audio requests to Amazon Lex at runtime.
781
- # Amazon Lex interprets the user input using the machine learning model
782
- # built for the bot.
804
+ # Sends user input to Amazon Lex V2. You can send text or speech.
805
+ # Clients use this API to send text and audio requests to Amazon Lex V2
806
+ # at runtime. Amazon Lex V2 interprets the user input using the machine
807
+ # learning model built for the bot.
808
+ #
809
+ # The following request fields must be compressed with gzip and then
810
+ # base64 encoded before you send them to Amazon Lex V2.
811
+ #
812
+ # * requestAttributes
813
+ #
814
+ # * sessionState
815
+ #
816
+ # The following response fields are compressed using gzip and then
817
+ # base64 encoded by Amazon Lex V2. Before you can use these fields, you
818
+ # must decode and decompress them.
819
+ #
820
+ # * inputTranscript
821
+ #
822
+ # * interpretations
823
+ #
824
+ # * messages
825
+ #
826
+ # * requestAttributes
827
+ #
828
+ # * sessionState
829
+ #
830
+ # The example contains a Java application that compresses and encodes a
831
+ # Java object to send to Amazon Lex V2, and a second that decodes and
832
+ # decompresses a response from Amazon Lex V2.
783
833
  #
784
834
  # @option params [required, String] :bot_id
785
835
  # The identifier of the bot that should receive the request.
@@ -797,16 +847,22 @@ module Aws::LexRuntimeV2
797
847
  # @option params [String] :session_state
798
848
  # Sets the state of the session with the user. You can use this to set
799
849
  # the current intent, attributes, context, and dialog action. Use the
800
- # dialog action to determine the next step that Amazon Lex should use in
801
- # the conversation with the user.
850
+ # dialog action to determine the next step that Amazon Lex V2 should use
851
+ # in the conversation with the user.
852
+ #
853
+ # The `sessionState` field must be compressed using gzip and then base64
854
+ # encoded before sending to Amazon Lex V2.
802
855
  #
803
856
  # @option params [String] :request_attributes
804
857
  # Request-specific information passed between the client application and
805
- # Amazon Lex
858
+ # Amazon Lex V2
806
859
  #
807
860
  # The namespace `x-amz-lex:` is reserved for special attributes. Don't
808
861
  # create any request attributes for prefix `x-amz-lex:`.
809
862
  #
863
+ # The `requestAttributes` field must be compressed using gzip and then
864
+ # base64 encoded before sending to Amazon Lex V2.
865
+ #
810
866
  # @option params [required, String] :request_content_type
811
867
  # Indicates the format for audio input or that the content is text. The
812
868
  # header must start with one of the following prefixes:
@@ -833,17 +889,18 @@ module Aws::LexRuntimeV2
833
889
  # ^
834
890
  #
835
891
  # @option params [String] :response_content_type
836
- # The message that Amazon Lex returns in the response can be either text
837
- # or speech based on the `responseContentType` value.
892
+ # The message that Amazon Lex V2 returns in the response can be either
893
+ # text or speech based on the `responseContentType` value.
838
894
  #
839
- # * If the value is `text/plain;charset=utf-8`, Amazon Lex returns text
840
- # in the response.
895
+ # * If the value is `text/plain;charset=utf-8`, Amazon Lex V2 returns
896
+ # text in the response.
841
897
  #
842
- # * If the value begins with `audio/`, Amazon Lex returns speech in the
843
- # response. Amazon Lex uses Amazon Polly to generate the speech using
844
- # the configuration that you specified in the `requestContentType`
845
- # parameter. For example, if you specify `audio/mpeg` as the value,
846
- # Amazon Lex returns speech in the MPEG format.
898
+ # * If the value begins with `audio/`, Amazon Lex V2 returns speech in
899
+ # the response. Amazon Lex V2 uses Amazon Polly to generate the speech
900
+ # using the configuration that you specified in the
901
+ # `requestContentType` parameter. For example, if you specify
902
+ # `audio/mpeg` as the value, Amazon Lex V2 returns speech in the MPEG
903
+ # format.
847
904
  #
848
905
  # * If the value is `audio/pcm`, the speech returned is `audio/pcm` at
849
906
  # 16 KHz in 16-bit, little-endian format.
@@ -924,7 +981,7 @@ module Aws::LexRuntimeV2
924
981
  params: params,
925
982
  config: config)
926
983
  context[:gem_name] = 'aws-sdk-lexruntimev2'
927
- context[:gem_version] = '1.2.0'
984
+ context[:gem_version] = '1.3.0'
928
985
  Seahorse::Client::Request.new(handlers, context)
929
986
  end
930
987
 
@@ -84,6 +84,7 @@ module Aws::LexRuntimeV2
84
84
  SentimentType = Shapes::StringShape.new(name: 'SentimentType')
85
85
  SessionId = Shapes::StringShape.new(name: 'SessionId')
86
86
  SessionState = Shapes::StructureShape.new(name: 'SessionState')
87
+ Shape = Shapes::StringShape.new(name: 'Shape')
87
88
  Slot = Shapes::StructureShape.new(name: 'Slot')
88
89
  Slots = Shapes::MapShape.new(name: 'Slots')
89
90
  StartConversationRequest = Shapes::StructureShape.new(name: 'StartConversationRequest')
@@ -100,13 +101,14 @@ module Aws::LexRuntimeV2
100
101
  TranscriptEvent = Shapes::StructureShape.new(name: 'TranscriptEvent')
101
102
  ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
102
103
  Value = Shapes::StructureShape.new(name: 'Value')
104
+ Values = Shapes::ListShape.new(name: 'Values')
103
105
 
104
106
  AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
105
107
  AccessDeniedException.struct_class = Types::AccessDeniedException
106
108
 
107
109
  ActiveContext.add_member(:name, Shapes::ShapeRef.new(shape: ActiveContextName, required: true, location_name: "name"))
108
110
  ActiveContext.add_member(:time_to_live, Shapes::ShapeRef.new(shape: ActiveContextTimeToLive, required: true, location_name: "timeToLive"))
109
- ActiveContext.add_member(:context_attributes, Shapes::ShapeRef.new(shape: ActiveContextParametersMap, location_name: "contextAttributes"))
111
+ ActiveContext.add_member(:context_attributes, Shapes::ShapeRef.new(shape: ActiveContextParametersMap, required: true, location_name: "contextAttributes"))
110
112
  ActiveContext.struct_class = Types::ActiveContext
111
113
 
112
114
  ActiveContextParametersMap.key = Shapes::ShapeRef.new(shape: ParameterName)
@@ -227,7 +229,7 @@ module Aws::LexRuntimeV2
227
229
  Interpretations.member = Shapes::ShapeRef.new(shape: Interpretation)
228
230
 
229
231
  Message.add_member(:content, Shapes::ShapeRef.new(shape: Text, location_name: "content"))
230
- Message.add_member(:content_type, Shapes::ShapeRef.new(shape: MessageContentType, location_name: "contentType"))
232
+ Message.add_member(:content_type, Shapes::ShapeRef.new(shape: MessageContentType, required: true, location_name: "contentType"))
231
233
  Message.add_member(:image_response_card, Shapes::ShapeRef.new(shape: ImageResponseCard, location_name: "imageResponseCard"))
232
234
  Message.struct_class = Types::Message
233
235
 
@@ -325,6 +327,8 @@ module Aws::LexRuntimeV2
325
327
  SessionState.struct_class = Types::SessionState
326
328
 
327
329
  Slot.add_member(:value, Shapes::ShapeRef.new(shape: Value, location_name: "value"))
330
+ Slot.add_member(:shape, Shapes::ShapeRef.new(shape: Shape, location_name: "shape"))
331
+ Slot.add_member(:values, Shapes::ShapeRef.new(shape: Values, location_name: "values"))
328
332
  Slot.struct_class = Types::Slot
329
333
 
330
334
  Slots.key = Shapes::ShapeRef.new(shape: NonEmptyString)
@@ -398,6 +402,8 @@ module Aws::LexRuntimeV2
398
402
  Value.add_member(:resolved_values, Shapes::ShapeRef.new(shape: StringList, location_name: "resolvedValues"))
399
403
  Value.struct_class = Types::Value
400
404
 
405
+ Values.member = Shapes::ShapeRef.new(shape: Slot)
406
+
401
407
 
402
408
  # @api private
403
409
  API = Seahorse::Model::Api.new.tap do |api|
@@ -17,23 +17,24 @@ module Aws::LexRuntimeV2
17
17
 
18
18
  # @option params [Hash&lt;String,String&gt;] :request_attributes
19
19
  # Request-specific information passed between the client application and
20
- # Amazon Lex.
20
+ # Amazon Lex V2.
21
21
  #
22
22
  # The namespace `x-amz-lex:` is reserved for special attributes. Don&#39;t
23
23
  # create any request attributes for prefix `x-amz-lex:`.
24
24
  #
25
25
  # @option params [String] :response_content_type
26
- # The message that Amazon Lex returns in the response can be either text
27
- # or speech based on the `responseContentType` value.
26
+ # The message that Amazon Lex V2 returns in the response can be either
27
+ # text or speech based on the `responseContentType` value.
28
28
  #
29
- # * If the value is `text/plain;charset=utf-8`, Amazon Lex returns text
30
- # in the response.
29
+ # * If the value is `text/plain;charset=utf-8`, Amazon Lex V2 returns
30
+ # text in the response.
31
31
  #
32
- # * If the value begins with `audio/`, Amazon Lex returns speech in the
33
- # response. Amazon Lex uses Amazon Polly to generate the speech using
34
- # the configuration that you specified in the `requestContentType`
35
- # parameter. For example, if you specify `audio/mpeg` as the value,
36
- # Amazon Lex returns speech in the MPEG format.
32
+ # * If the value begins with `audio/`, Amazon Lex V2 returns speech in
33
+ # the response. Amazon Lex V2 uses Amazon Polly to generate the speech
34
+ # using the configuration that you specified in the
35
+ # `requestContentType` parameter. For example, if you specify
36
+ # `audio/mpeg` as the value, Amazon Lex V2 returns speech in the MPEG
37
+ # format.
37
38
  #
38
39
  # * If the value is `audio/pcm`, the speech returned is audio/pcm in
39
40
  # 16-bit, little-endian format.
@@ -51,13 +52,13 @@ module Aws::LexRuntimeV2
51
52
  # * text/plain; charset=utf-8
52
53
  #
53
54
  # @option params [Types::SessionState] :session_state
54
- # The state of the user&#39;s session with Amazon Lex.
55
+ # The state of the user&#39;s session with Amazon Lex V2.
55
56
  #
56
57
  # @option params [Array&lt;Types::Message&gt;] :welcome_messages
57
58
  # A list of messages to send to the user.
58
59
  #
59
60
  # @option params [Boolean] :disable_playback
60
- # Determines whether Amazon Lex should send audio responses to the
61
+ # Determines whether Amazon Lex V2 should send audio responses to the
61
62
  # client application. When this parameter if `false`, the client
62
63
  # application needs to create responses for the user.
63
64
  #
@@ -67,7 +68,7 @@ module Aws::LexRuntimeV2
67
68
  #
68
69
  # @option params [Integer] :client_timestamp_millis
69
70
  # A timestamp set by the client of the date and time that the event was
70
- # sent to Amazon Lex.
71
+ # sent to Amazon Lex V2.
71
72
  #
72
73
  def signal_configuration_event_event(params = {})
73
74
  @event_emitter.emit(:configuration_event, params)
@@ -89,7 +90,7 @@ module Aws::LexRuntimeV2
89
90
  #
90
91
  # @option params [Integer] :client_timestamp_millis
91
92
  # A timestamp set by the client of the date and time that the event was
92
- # sent to Amazon Lex.
93
+ # sent to Amazon Lex V2.
93
94
  #
94
95
  def signal_audio_input_event_event(params = {})
95
96
  @event_emitter.emit(:audio_input_event, params)
@@ -105,14 +106,14 @@ module Aws::LexRuntimeV2
105
106
  #
106
107
  # @option params [Integer] :client_timestamp_millis
107
108
  # A timestamp set by the client of the date and time that the event was
108
- # sent to Amazon Lex.
109
+ # sent to Amazon Lex V2.
109
110
  #
110
111
  def signal_dtmf_input_event_event(params = {})
111
112
  @event_emitter.emit(:dtmf_input_event, params)
112
113
  end
113
114
 
114
115
  # @option params [String] :text
115
- # The text from the user. Amazon Lex processes this as a complete
116
+ # The text from the user. Amazon Lex V2 processes this as a complete
116
117
  # statement.
117
118
  #
118
119
  # @option params [String] :event_id
@@ -121,7 +122,7 @@ module Aws::LexRuntimeV2
121
122
  #
122
123
  # @option params [Integer] :client_timestamp_millis
123
124
  # A timestamp set by the client of the date and time that the event was
124
- # sent to Amazon Lex.
125
+ # sent to Amazon Lex V2.
125
126
  #
126
127
  def signal_text_input_event_event(params = {})
127
128
  @event_emitter.emit(:text_input_event, params)
@@ -133,7 +134,7 @@ module Aws::LexRuntimeV2
133
134
  #
134
135
  # @option params [Integer] :client_timestamp_millis
135
136
  # A timestamp set by the client of the date and time that the event was
136
- # sent to Amazon Lex.
137
+ # sent to Amazon Lex V2.
137
138
  #
138
139
  def signal_playback_completion_event_event(params = {})
139
140
  @event_emitter.emit(:playback_completion_event, params)
@@ -145,7 +146,7 @@ module Aws::LexRuntimeV2
145
146
  #
146
147
  # @option params [Integer] :client_timestamp_millis
147
148
  # A timestamp set by the client of the date and time that the event was
148
- # sent to Amazon Lex.
149
+ # sent to Amazon Lex V2.
149
150
  #
150
151
  def signal_disconnection_event_event(params = {})
151
152
  @event_emitter.emit(:disconnection_event, params)