aws-sdk-lex 1.45.0 → 1.47.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: bce7c74313736ccee287b431d1e581774c42cd7e16fd9d8d1a0c148dd98a14a9
4
- data.tar.gz: 19d0282dec64f95cb70e9813c73fcc89e368ea942d2ede91d2f7db51c002df4d
3
+ metadata.gz: 91b5d4742ad7ac021589934953086fb42797aa2437ced947c452df1fb2162d7a
4
+ data.tar.gz: 41015899427237696cd198bd534cf508cce86eee8dbd3fe6a6a08e065fc20fc5
5
5
  SHA512:
6
- metadata.gz: 333774c32c1709234359f3adee4f5d0f5bc6d93addd0d713d6ff84ed1061e04ac6a2172c657960ed5264478b4c28bf38c8bdb01f8dd0b756b46659e724caa47a
7
- data.tar.gz: b27acb174b69263ae8004f6a457b01842a48408a2570cd5a79bd2db72135c868e5d86d450944111bb97ed8f09936f9f76b59394fccded6fde01eca46534614eb
6
+ metadata.gz: 82aebb0bc28befb5600b21dc2d5c00ec5f9ad02ddf01c9d528a562afd5738a5b6ea7d67d0813ceae75cd302a5d9996617ae396d36479354278ee3a6dd26ad763
7
+ data.tar.gz: 291d88bea31fbfeab790a07fd6c1944ec93e5790a96138d012c303a0504b9a216dd061ff3f3aedfee82106939656e059bdcd829ebf204facb21e927eaa3f63b3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.47.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.46.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.45.0 (2022-02-24)
5
17
  ------------------
6
18
 
@@ -285,4 +297,4 @@ Unreleased Changes
285
297
  1.0.0.rc1 (2017-05-05)
286
298
  ------------------
287
299
 
288
- * Feature - Initial release of `aws-sdk-lex`.
300
+ * Feature - Initial release of `aws-sdk-lex`.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.47.0
@@ -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
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:lex)
@@ -79,8 +79,9 @@ module Aws::Lex
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::Lex::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::Lex
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::Lex
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::Lex::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::Lex::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -1152,7 +1169,7 @@ module Aws::Lex
1152
1169
  params: params,
1153
1170
  config: config)
1154
1171
  context[:gem_name] = 'aws-sdk-lex'
1155
- context[:gem_version] = '1.45.0'
1172
+ context[:gem_version] = '1.47.0'
1156
1173
  Seahorse::Client::Request.new(handlers, context)
1157
1174
  end
1158
1175
 
@@ -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::Lex
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,57 @@
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::Lex
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://runtime.lex-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://runtime-fips.lex.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
39
+ return Aws::Endpoints::Endpoint.new(url: "https://runtime-fips.lex.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
+ end
41
+ return Aws::Endpoints::Endpoint.new(url: "https://runtime.lex-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
42
+ end
43
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
44
+ end
45
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
46
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
47
+ return Aws::Endpoints::Endpoint.new(url: "https://runtime.lex.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
48
+ end
49
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
50
+ end
51
+ return Aws::Endpoints::Endpoint.new(url: "https://runtime.lex.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
52
+ end
53
+ raise ArgumentError, 'No endpoint could be resolved'
54
+
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,85 @@
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::Lex
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::Lex::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::Lex::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 PostContent
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::Lex::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 PostText
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::Lex::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 PutSession
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::Lex::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
+ end
85
+ end
@@ -0,0 +1,78 @@
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::Lex
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Lex::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::Lex::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Lex::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::Lex::Endpoints::DeleteSession.build(context)
61
+ when :get_session
62
+ Aws::Lex::Endpoints::GetSession.build(context)
63
+ when :post_content
64
+ Aws::Lex::Endpoints::PostContent.build(context)
65
+ when :post_text
66
+ Aws::Lex::Endpoints::PostText.build(context)
67
+ when :put_session
68
+ Aws::Lex::Endpoints::PutSession.build(context)
69
+ end
70
+ end
71
+ end
72
+
73
+ def add_handlers(handlers, _config)
74
+ handlers.add(Handler, step: :build, priority: 75)
75
+ end
76
+ end
77
+ end
78
+ end
@@ -16,20 +16,6 @@ module Aws::Lex
16
16
  # can be set at runtime using the `PutContent`, `PutText`, or
17
17
  # `PutSession` operation.
18
18
  #
19
- # @note When making an API call, you may pass ActiveContext
20
- # data as a hash:
21
- #
22
- # {
23
- # name: "ActiveContextName", # required
24
- # time_to_live: { # required
25
- # time_to_live_in_seconds: 1,
26
- # turns_to_live: 1,
27
- # },
28
- # parameters: { # required
29
- # "ParameterName" => "Text",
30
- # },
31
- # }
32
- #
33
19
  # @!attribute [rw] name
34
20
  # The name of the context.
35
21
  # @return [String]
@@ -55,14 +41,6 @@ module Aws::Lex
55
41
 
56
42
  # The length of time or number of turns that a context remains active.
57
43
  #
58
- # @note When making an API call, you may pass ActiveContextTimeToLive
59
- # data as a hash:
60
- #
61
- # {
62
- # time_to_live_in_seconds: 1,
63
- # turns_to_live: 1,
64
- # }
65
- #
66
44
  # @!attribute [rw] time_to_live_in_seconds
67
45
  # The number of seconds that the context should be active after it is
68
46
  # first sent in a `PostContent` or `PostText` response. You can set
@@ -150,15 +128,6 @@ module Aws::Lex
150
128
  include Aws::Structure
151
129
  end
152
130
 
153
- # @note When making an API call, you may pass DeleteSessionRequest
154
- # data as a hash:
155
- #
156
- # {
157
- # bot_name: "BotName", # required
158
- # bot_alias: "BotAlias", # required
159
- # user_id: "UserId", # required
160
- # }
161
- #
162
131
  # @!attribute [rw] bot_name
163
132
  # The name of the bot that contains the session data.
164
133
  # @return [String]
@@ -236,21 +205,6 @@ module Aws::Lex
236
205
  # interaction to a specific state, or to return the interaction to a
237
206
  # previous state.
238
207
  #
239
- # @note When making an API call, you may pass DialogAction
240
- # data as a hash:
241
- #
242
- # {
243
- # type: "ElicitIntent", # required, accepts ElicitIntent, ConfirmIntent, ElicitSlot, Close, Delegate
244
- # intent_name: "IntentName",
245
- # slots: {
246
- # "String" => "String",
247
- # },
248
- # slot_to_elicit: "String",
249
- # fulfillment_state: "Fulfilled", # accepts Fulfilled, Failed, ReadyForFulfillment
250
- # message: "Text",
251
- # message_format: "PlainText", # accepts PlainText, CustomPayload, SSML, Composite
252
- # }
253
- #
254
208
  # @!attribute [rw] type
255
209
  # The next action that the bot should take in its interaction with the
256
210
  # user. The possible values are:
@@ -369,16 +323,6 @@ module Aws::Lex
369
323
  include Aws::Structure
370
324
  end
371
325
 
372
- # @note When making an API call, you may pass GetSessionRequest
373
- # data as a hash:
374
- #
375
- # {
376
- # bot_name: "BotName", # required
377
- # bot_alias: "BotAlias", # required
378
- # user_id: "UserId", # required
379
- # checkpoint_label_filter: "IntentSummaryCheckpointLabel",
380
- # }
381
- #
382
326
  # @!attribute [rw] bot_name
383
327
  # The name of the bot that contains the session data.
384
328
  # @return [String]
@@ -478,21 +422,6 @@ module Aws::Lex
478
422
  # process the intent, or so that you can return the intent to its
479
423
  # previous state.
480
424
  #
481
- # @note When making an API call, you may pass IntentSummary
482
- # data as a hash:
483
- #
484
- # {
485
- # intent_name: "IntentName",
486
- # checkpoint_label: "IntentSummaryCheckpointLabel",
487
- # slots: {
488
- # "String" => "String",
489
- # },
490
- # confirmation_status: "None", # accepts None, Confirmed, Denied
491
- # dialog_action_type: "ElicitIntent", # required, accepts ElicitIntent, ConfirmIntent, ElicitSlot, Close, Delegate
492
- # fulfillment_state: "Fulfilled", # accepts Fulfilled, Failed, ReadyForFulfillment
493
- # slot_to_elicit: "String",
494
- # }
495
- #
496
425
  # @!attribute [rw] intent_name
497
426
  # The name of the intent.
498
427
  # @return [String]
@@ -649,21 +578,6 @@ module Aws::Lex
649
578
  include Aws::Structure
650
579
  end
651
580
 
652
- # @note When making an API call, you may pass PostContentRequest
653
- # data as a hash:
654
- #
655
- # {
656
- # bot_name: "BotName", # required
657
- # bot_alias: "BotAlias", # required
658
- # user_id: "UserId", # required
659
- # session_attributes: "AttributesString",
660
- # request_attributes: "AttributesString",
661
- # content_type: "HttpContentType", # required
662
- # accept: "Accept",
663
- # input_stream: "data", # required
664
- # active_contexts: "ActiveContextsString",
665
- # }
666
- #
667
581
  # @!attribute [rw] bot_name
668
582
  # Name of the Amazon Lex bot.
669
583
  # @return [String]
@@ -1091,34 +1005,6 @@ module Aws::Lex
1091
1005
  include Aws::Structure
1092
1006
  end
1093
1007
 
1094
- # @note When making an API call, you may pass PostTextRequest
1095
- # data as a hash:
1096
- #
1097
- # {
1098
- # bot_name: "BotName", # required
1099
- # bot_alias: "BotAlias", # required
1100
- # user_id: "UserId", # required
1101
- # session_attributes: {
1102
- # "String" => "String",
1103
- # },
1104
- # request_attributes: {
1105
- # "String" => "String",
1106
- # },
1107
- # input_text: "Text", # required
1108
- # active_contexts: [
1109
- # {
1110
- # name: "ActiveContextName", # required
1111
- # time_to_live: { # required
1112
- # time_to_live_in_seconds: 1,
1113
- # turns_to_live: 1,
1114
- # },
1115
- # parameters: { # required
1116
- # "ParameterName" => "Text",
1117
- # },
1118
- # },
1119
- # ],
1120
- # }
1121
- #
1122
1008
  # @!attribute [rw] bot_name
1123
1009
  # The name of the Amazon Lex bot.
1124
1010
  # @return [String]
@@ -1430,55 +1316,6 @@ module Aws::Lex
1430
1316
  include Aws::Structure
1431
1317
  end
1432
1318
 
1433
- # @note When making an API call, you may pass PutSessionRequest
1434
- # data as a hash:
1435
- #
1436
- # {
1437
- # bot_name: "BotName", # required
1438
- # bot_alias: "BotAlias", # required
1439
- # user_id: "UserId", # required
1440
- # session_attributes: {
1441
- # "String" => "String",
1442
- # },
1443
- # dialog_action: {
1444
- # type: "ElicitIntent", # required, accepts ElicitIntent, ConfirmIntent, ElicitSlot, Close, Delegate
1445
- # intent_name: "IntentName",
1446
- # slots: {
1447
- # "String" => "String",
1448
- # },
1449
- # slot_to_elicit: "String",
1450
- # fulfillment_state: "Fulfilled", # accepts Fulfilled, Failed, ReadyForFulfillment
1451
- # message: "Text",
1452
- # message_format: "PlainText", # accepts PlainText, CustomPayload, SSML, Composite
1453
- # },
1454
- # recent_intent_summary_view: [
1455
- # {
1456
- # intent_name: "IntentName",
1457
- # checkpoint_label: "IntentSummaryCheckpointLabel",
1458
- # slots: {
1459
- # "String" => "String",
1460
- # },
1461
- # confirmation_status: "None", # accepts None, Confirmed, Denied
1462
- # dialog_action_type: "ElicitIntent", # required, accepts ElicitIntent, ConfirmIntent, ElicitSlot, Close, Delegate
1463
- # fulfillment_state: "Fulfilled", # accepts Fulfilled, Failed, ReadyForFulfillment
1464
- # slot_to_elicit: "String",
1465
- # },
1466
- # ],
1467
- # accept: "Accept",
1468
- # active_contexts: [
1469
- # {
1470
- # name: "ActiveContextName", # required
1471
- # time_to_live: { # required
1472
- # time_to_live_in_seconds: 1,
1473
- # turns_to_live: 1,
1474
- # },
1475
- # parameters: { # required
1476
- # "ParameterName" => "Text",
1477
- # },
1478
- # },
1479
- # ],
1480
- # }
1481
- #
1482
1319
  # @!attribute [rw] bot_name
1483
1320
  # The name of the bot that contains the session data.
1484
1321
  # @return [String]
data/lib/aws-sdk-lex.rb CHANGED
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-lex/types'
15
15
  require_relative 'aws-sdk-lex/client_api'
16
+ require_relative 'aws-sdk-lex/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-lex/client'
17
18
  require_relative 'aws-sdk-lex/errors'
18
19
  require_relative 'aws-sdk-lex/resource'
20
+ require_relative 'aws-sdk-lex/endpoint_parameters'
21
+ require_relative 'aws-sdk-lex/endpoint_provider'
22
+ require_relative 'aws-sdk-lex/endpoints'
19
23
  require_relative 'aws-sdk-lex/customizations'
20
24
 
21
25
  # This module provides support for Amazon Lex Runtime Service. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-lex/customizations'
48
52
  # @!group service
49
53
  module Aws::Lex
50
54
 
51
- GEM_VERSION = '1.45.0'
55
+ GEM_VERSION = '1.47.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-lex
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.45.0
4
+ version: 1.47.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: 2022-02-24 00:00:00.000000000 Z
11
+ date: 2023-01-18 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.127.0
22
+ version: 3.165.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.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-lex/client.rb
60
60
  - lib/aws-sdk-lex/client_api.rb
61
61
  - lib/aws-sdk-lex/customizations.rb
62
+ - lib/aws-sdk-lex/endpoint_parameters.rb
63
+ - lib/aws-sdk-lex/endpoint_provider.rb
64
+ - lib/aws-sdk-lex/endpoints.rb
62
65
  - lib/aws-sdk-lex/errors.rb
66
+ - lib/aws-sdk-lex/plugins/endpoints.rb
63
67
  - lib/aws-sdk-lex/resource.rb
64
68
  - lib/aws-sdk-lex/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby