aws-sdk-lexruntimev2 1.8.0 → 1.12.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: 63d3c72fc8aae38f352406c9ea96c43f6cd4682b1d03553301357c48697f7da5
4
- data.tar.gz: 5c7a4764d80449c772bb278edad1561e427d2c5e9353648ac3847e5998b63a9b
3
+ metadata.gz: 0e801189c4920d705ceac9c552854fbe9dc548dd1202b81537350df6597b5062
4
+ data.tar.gz: 1ab1d32ca002266bb6f2504d55d9641c70cad30bbdf45007b795b96d11d4a05e
5
5
  SHA512:
6
- metadata.gz: 89c954898303bae42f57bf5b50191721c7bc926d98a2b1066f1f9c8ae20461642910e07ddbd3f9100660ca7d86f6985b0886651ffb9fd978e9a5e5e11145fb44
7
- data.tar.gz: 4eb52e60c812ca6a511f0c30d806bb157d4d82843a8b3f2565c0e9aa44b0d698c26d1a2eef2c17586cb29252ad9813b3e9e3aad0de0101eee2f2fc89846021c4
6
+ metadata.gz: f830331fe352b0f5642bbfdcc8e191590d73639ad8962240b50ab75cf13af433836cc0cdee5f8aa25ffd2ccd5422b5e33babe77f4fb6c61c60f6a944cf32a1f6
7
+ data.tar.gz: ae9d803450d2696c65c8b13a089d342c5369421555b48ff0ee14488edade55fb80ef4091851471af3ca7ea98216b3ea2ec3e483b12d37857886265d2b5dc0c82
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.12.0 (2021-12-21)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.11.0 (2021-11-30)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.10.0 (2021-11-19)
15
+ ------------------
16
+
17
+ * Feature - Now supports styled slots in Lex V2 runtime. Customers can provide inputs like "a as in apple b for beta" which will be resolved to "ab" as slot value.
18
+
19
+ 1.9.0 (2021-11-04)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.8.0 (2021-10-18)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0
1
+ 1.12.0
@@ -23,6 +23,7 @@ require 'aws-sdk-core/plugins/stub_responses.rb'
23
23
  require 'aws-sdk-core/plugins/idempotency_token.rb'
24
24
  require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
25
25
  require 'aws-sdk-core/plugins/http_checksum.rb'
26
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
26
27
  require 'aws-sdk-core/plugins/invocation_id.rb'
27
28
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
29
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
@@ -52,6 +53,7 @@ module Aws::LexRuntimeV2
52
53
  add_plugin(Aws::Plugins::IdempotencyToken)
53
54
  add_plugin(Aws::Plugins::JsonvalueConverter)
54
55
  add_plugin(Aws::Plugins::HttpChecksum)
56
+ add_plugin(Aws::Plugins::DefaultsMode)
55
57
  add_plugin(Aws::Plugins::InvocationId)
56
58
  add_plugin(Aws::Plugins::SignatureV4)
57
59
  add_plugin(Aws::Plugins::Protocols::RestJson)
@@ -98,7 +100,9 @@ module Aws::LexRuntimeV2
98
100
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
99
101
  # are very aggressive. Construct and pass an instance of
100
102
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
101
- # enable retries and extended timeouts.
103
+ # enable retries and extended timeouts. Instance profile credential
104
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
105
+ # to true.
102
106
  #
103
107
  # @option options [required, String] :region
104
108
  # The AWS region to connect to. The configured `:region` is
@@ -128,6 +132,10 @@ module Aws::LexRuntimeV2
128
132
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
129
133
  # a clock skew correction and retry requests with skewed client clocks.
130
134
  #
135
+ # @option options [String] :defaults_mode ("legacy")
136
+ # See {Aws::DefaultsModeConfiguration} for a list of the
137
+ # accepted modes and the configuration defaults that are included.
138
+ #
131
139
  # @option options [String] :endpoint
132
140
  # The client endpoint is normally constructed from the `:region`
133
141
  # option. You should only configure an `:endpoint` when connecting
@@ -220,6 +228,15 @@ module Aws::LexRuntimeV2
220
228
  # ** Please note ** When response stubbing is enabled, no HTTP
221
229
  # requests are made, and retries are disabled.
222
230
  #
231
+ # @option options [Boolean] :use_dualstack_endpoint
232
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
233
+ # will be used if available.
234
+ #
235
+ # @option options [Boolean] :use_fips_endpoint
236
+ # When set to `true`, fips compatible endpoints will be used if available.
237
+ # When a `fips` region is used, the region is normalized and this config
238
+ # is set to `true`.
239
+ #
223
240
  # @option options [Boolean] :validate_params (true)
224
241
  # When `true`, request parameters are validated before
225
242
  # sending the request.
@@ -505,6 +522,7 @@ module Aws::LexRuntimeV2
505
522
  # event.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
506
523
  # event.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
507
524
  # event.session_state.dialog_action.slot_to_elicit #=> String
525
+ # event.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
508
526
  # event.session_state.intent.name #=> String
509
527
  # event.session_state.intent.slots #=> Hash
510
528
  # event.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
@@ -617,7 +635,7 @@ module Aws::LexRuntimeV2
617
635
  http_response: Seahorse::Client::Http::AsyncResponse.new,
618
636
  config: config)
619
637
  context[:gem_name] = 'aws-sdk-lexruntimev2'
620
- context[:gem_version] = '1.8.0'
638
+ context[:gem_version] = '1.12.0'
621
639
  Seahorse::Client::Request.new(handlers, context)
622
640
  end
623
641
 
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
27
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
28
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
29
  require 'aws-sdk-core/plugins/http_checksum.rb'
30
+ require 'aws-sdk-core/plugins/defaults_mode.rb'
30
31
  require 'aws-sdk-core/plugins/signature_v4.rb'
31
32
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
32
33
  require 'aws-sdk-core/plugins/event_stream_configuration.rb'
@@ -74,6 +75,7 @@ module Aws::LexRuntimeV2
74
75
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
75
76
  add_plugin(Aws::Plugins::TransferEncoding)
76
77
  add_plugin(Aws::Plugins::HttpChecksum)
78
+ add_plugin(Aws::Plugins::DefaultsMode)
77
79
  add_plugin(Aws::Plugins::SignatureV4)
78
80
  add_plugin(Aws::Plugins::Protocols::RestJson)
79
81
  add_plugin(Aws::Plugins::EventStreamConfiguration)
@@ -121,7 +123,9 @@ module Aws::LexRuntimeV2
121
123
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
122
124
  # are very aggressive. Construct and pass an instance of
123
125
  # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
124
- # enable retries and extended timeouts.
126
+ # enable retries and extended timeouts. Instance profile credential
127
+ # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
128
+ # to true.
125
129
  #
126
130
  # @option options [required, String] :region
127
131
  # The AWS region to connect to. The configured `:region` is
@@ -175,6 +179,10 @@ module Aws::LexRuntimeV2
175
179
  # Used only in `standard` and adaptive retry modes. Specifies whether to apply
176
180
  # a clock skew correction and retry requests with skewed client clocks.
177
181
  #
182
+ # @option options [String] :defaults_mode ("legacy")
183
+ # See {Aws::DefaultsModeConfiguration} for a list of the
184
+ # accepted modes and the configuration defaults that are included.
185
+ #
178
186
  # @option options [Boolean] :disable_host_prefix_injection (false)
179
187
  # Set to true to disable SDK automatically adding host prefix
180
188
  # to default service endpoint when available.
@@ -286,6 +294,15 @@ module Aws::LexRuntimeV2
286
294
  # ** Please note ** When response stubbing is enabled, no HTTP
287
295
  # requests are made, and retries are disabled.
288
296
  #
297
+ # @option options [Boolean] :use_dualstack_endpoint
298
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
299
+ # will be used if available.
300
+ #
301
+ # @option options [Boolean] :use_fips_endpoint
302
+ # When set to `true`, fips compatible endpoints will be used if available.
303
+ # When a `fips` region is used, the region is normalized and this config
304
+ # is set to `true`.
305
+ #
289
306
  # @option options [Boolean] :validate_params (true)
290
307
  # When `true`, request parameters are validated before
291
308
  # sending the request.
@@ -297,7 +314,7 @@ module Aws::LexRuntimeV2
297
314
  # seconds to wait when opening a HTTP session before raising a
298
315
  # `Timeout::Error`.
299
316
  #
300
- # @option options [Integer] :http_read_timeout (60) The default
317
+ # @option options [Float] :http_read_timeout (60) The default
301
318
  # number of seconds to wait for response data. This value can
302
319
  # safely be set per-request on the session.
303
320
  #
@@ -313,6 +330,9 @@ module Aws::LexRuntimeV2
313
330
  # disables this behaviour. This value can safely be set per
314
331
  # request on the session.
315
332
  #
333
+ # @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
334
+ # in seconds.
335
+ #
316
336
  # @option options [Boolean] :http_wire_trace (false) When `true`,
317
337
  # HTTP debug output will be sent to the `:logger`.
318
338
  #
@@ -470,6 +490,7 @@ module Aws::LexRuntimeV2
470
490
  # resp.interpretations[0].intent.confirmation_state #=> String, one of "Confirmed", "Denied", "None"
471
491
  # resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
472
492
  # resp.session_state.dialog_action.slot_to_elicit #=> String
493
+ # resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
473
494
  # resp.session_state.intent.name #=> String
474
495
  # resp.session_state.intent.slots #=> Hash
475
496
  # resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
@@ -579,6 +600,7 @@ module Aws::LexRuntimeV2
579
600
  # dialog_action: {
580
601
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
581
602
  # slot_to_elicit: "NonEmptyString",
603
+ # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
582
604
  # },
583
605
  # intent: {
584
606
  # name: "NonEmptyString", # required
@@ -718,6 +740,7 @@ module Aws::LexRuntimeV2
718
740
  # dialog_action: {
719
741
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
720
742
  # slot_to_elicit: "NonEmptyString",
743
+ # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
721
744
  # },
722
745
  # intent: {
723
746
  # name: "NonEmptyString", # required
@@ -774,6 +797,7 @@ module Aws::LexRuntimeV2
774
797
  # resp.messages[0].image_response_card.buttons[0].value #=> String
775
798
  # resp.session_state.dialog_action.type #=> String, one of "Close", "ConfirmIntent", "Delegate", "ElicitIntent", "ElicitSlot", "None"
776
799
  # resp.session_state.dialog_action.slot_to_elicit #=> String
800
+ # resp.session_state.dialog_action.slot_elicitation_style #=> String, one of "Default", "SpellByLetter", "SpellByWord"
777
801
  # resp.session_state.intent.name #=> String
778
802
  # resp.session_state.intent.slots #=> Hash
779
803
  # resp.session_state.intent.slots["NonEmptyString"].value.original_value #=> String
@@ -1029,7 +1053,7 @@ module Aws::LexRuntimeV2
1029
1053
  params: params,
1030
1054
  config: config)
1031
1055
  context[:gem_name] = 'aws-sdk-lexruntimev2'
1032
- context[:gem_version] = '1.8.0'
1056
+ context[:gem_version] = '1.12.0'
1033
1057
  Seahorse::Client::Request.new(handlers, context)
1034
1058
  end
1035
1059
 
@@ -94,6 +94,7 @@ module Aws::LexRuntimeV2
94
94
  String = Shapes::StringShape.new(name: 'String')
95
95
  StringList = Shapes::ListShape.new(name: 'StringList')
96
96
  StringMap = Shapes::MapShape.new(name: 'StringMap')
97
+ StyleType = Shapes::StringShape.new(name: 'StyleType')
97
98
  Text = Shapes::StringShape.new(name: 'Text')
98
99
  TextInputEvent = Shapes::StructureShape.new(name: 'TextInputEvent')
99
100
  TextResponseEvent = Shapes::StructureShape.new(name: 'TextResponseEvent')
@@ -177,6 +178,7 @@ module Aws::LexRuntimeV2
177
178
 
178
179
  DialogAction.add_member(:type, Shapes::ShapeRef.new(shape: DialogActionType, required: true, location_name: "type"))
179
180
  DialogAction.add_member(:slot_to_elicit, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "slotToElicit"))
181
+ DialogAction.add_member(:slot_elicitation_style, Shapes::ShapeRef.new(shape: StyleType, location_name: "slotElicitationStyle"))
180
182
  DialogAction.struct_class = Types::DialogAction
181
183
 
182
184
  DisconnectionEvent.add_member(:event_id, Shapes::ShapeRef.new(shape: EventId, location_name: "eventId"))
@@ -258,6 +258,7 @@ module Aws::LexRuntimeV2
258
258
  # dialog_action: {
259
259
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
260
260
  # slot_to_elicit: "NonEmptyString",
261
+ # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
261
262
  # },
262
263
  # intent: {
263
264
  # name: "NonEmptyString", # required
@@ -538,6 +539,7 @@ module Aws::LexRuntimeV2
538
539
  # {
539
540
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
540
541
  # slot_to_elicit: "NonEmptyString",
542
+ # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
541
543
  # }
542
544
  #
543
545
  # @!attribute [rw] type
@@ -562,11 +564,29 @@ module Aws::LexRuntimeV2
562
564
  # The name of the slot that should be elicited from the user.
563
565
  # @return [String]
564
566
  #
567
+ # @!attribute [rw] slot_elicitation_style
568
+ # Configures the slot to use spell-by-letter or spell-by-word style.
569
+ # When you use a style on a slot, users can spell out their input to
570
+ # make it clear to your bot.
571
+ #
572
+ # * Spell by letter - "b" "o" "b"
573
+ #
574
+ # * Spell by word - "b as in boy" "o as in oscar" "b as in boy"
575
+ #
576
+ # For more information, see [ Using spelling to enter slot values
577
+ # ][1].
578
+ #
579
+ #
580
+ #
581
+ # [1]: https://docs.aws.amazon.com/lexv2/latest/dg/using-spelling.html
582
+ # @return [String]
583
+ #
565
584
  # @see http://docs.aws.amazon.com/goto/WebAPI/runtime.lex.v2-2020-08-07/DialogAction AWS API Documentation
566
585
  #
567
586
  class DialogAction < Struct.new(
568
587
  :type,
569
- :slot_to_elicit)
588
+ :slot_to_elicit,
589
+ :slot_elicitation_style)
570
590
  SENSITIVE = []
571
591
  include Aws::Structure
572
592
  end
@@ -1047,6 +1067,7 @@ module Aws::LexRuntimeV2
1047
1067
  # dialog_action: {
1048
1068
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
1049
1069
  # slot_to_elicit: "NonEmptyString",
1070
+ # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
1050
1071
  # },
1051
1072
  # intent: {
1052
1073
  # name: "NonEmptyString", # required
@@ -1212,6 +1233,7 @@ module Aws::LexRuntimeV2
1212
1233
  # dialog_action: {
1213
1234
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
1214
1235
  # slot_to_elicit: "NonEmptyString",
1236
+ # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
1215
1237
  # },
1216
1238
  # intent: {
1217
1239
  # name: "NonEmptyString", # required
@@ -1664,6 +1686,7 @@ module Aws::LexRuntimeV2
1664
1686
  # dialog_action: {
1665
1687
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
1666
1688
  # slot_to_elicit: "NonEmptyString",
1689
+ # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
1667
1690
  # },
1668
1691
  # intent: {
1669
1692
  # name: "NonEmptyString", # required
@@ -2024,6 +2047,7 @@ module Aws::LexRuntimeV2
2024
2047
  # dialog_action: {
2025
2048
  # type: "Close", # required, accepts Close, ConfirmIntent, Delegate, ElicitIntent, ElicitSlot, None
2026
2049
  # slot_to_elicit: "NonEmptyString",
2050
+ # slot_elicitation_style: "Default", # accepts Default, SpellByLetter, SpellByWord
2027
2051
  # },
2028
2052
  # intent: {
2029
2053
  # name: "NonEmptyString", # required
@@ -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.8.0'
53
+ GEM_VERSION = '1.12.0'
54
54
 
55
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lexruntimev2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.12.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: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2021-12-21 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.121.2
22
+ version: 3.125.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.121.2
32
+ version: 3.125.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement