aws-sdk-lexmodelsv2 1.28.0 → 1.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-lexmodelsv2/client.rb +20 -3
- data/lib/aws-sdk-lexmodelsv2/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-lexmodelsv2/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-lexmodelsv2/endpoints.rb +953 -0
- data/lib/aws-sdk-lexmodelsv2/plugins/endpoints.rb +202 -0
- data/lib/aws-sdk-lexmodelsv2.rb +5 -1
- metadata +8 -4
@@ -0,0 +1,202 @@
|
|
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::LexModelsV2
|
12
|
+
module Plugins
|
13
|
+
class Endpoints < Seahorse::Client::Plugin
|
14
|
+
option(
|
15
|
+
:endpoint_provider,
|
16
|
+
doc_type: 'Aws::LexModelsV2::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::LexModelsV2::EndpointParameters`'
|
21
|
+
) do |cfg|
|
22
|
+
Aws::LexModelsV2::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 :build_bot_locale
|
60
|
+
Aws::LexModelsV2::Endpoints::BuildBotLocale.build(context)
|
61
|
+
when :create_bot
|
62
|
+
Aws::LexModelsV2::Endpoints::CreateBot.build(context)
|
63
|
+
when :create_bot_alias
|
64
|
+
Aws::LexModelsV2::Endpoints::CreateBotAlias.build(context)
|
65
|
+
when :create_bot_locale
|
66
|
+
Aws::LexModelsV2::Endpoints::CreateBotLocale.build(context)
|
67
|
+
when :create_bot_version
|
68
|
+
Aws::LexModelsV2::Endpoints::CreateBotVersion.build(context)
|
69
|
+
when :create_export
|
70
|
+
Aws::LexModelsV2::Endpoints::CreateExport.build(context)
|
71
|
+
when :create_intent
|
72
|
+
Aws::LexModelsV2::Endpoints::CreateIntent.build(context)
|
73
|
+
when :create_resource_policy
|
74
|
+
Aws::LexModelsV2::Endpoints::CreateResourcePolicy.build(context)
|
75
|
+
when :create_resource_policy_statement
|
76
|
+
Aws::LexModelsV2::Endpoints::CreateResourcePolicyStatement.build(context)
|
77
|
+
when :create_slot
|
78
|
+
Aws::LexModelsV2::Endpoints::CreateSlot.build(context)
|
79
|
+
when :create_slot_type
|
80
|
+
Aws::LexModelsV2::Endpoints::CreateSlotType.build(context)
|
81
|
+
when :create_upload_url
|
82
|
+
Aws::LexModelsV2::Endpoints::CreateUploadUrl.build(context)
|
83
|
+
when :delete_bot
|
84
|
+
Aws::LexModelsV2::Endpoints::DeleteBot.build(context)
|
85
|
+
when :delete_bot_alias
|
86
|
+
Aws::LexModelsV2::Endpoints::DeleteBotAlias.build(context)
|
87
|
+
when :delete_bot_locale
|
88
|
+
Aws::LexModelsV2::Endpoints::DeleteBotLocale.build(context)
|
89
|
+
when :delete_bot_version
|
90
|
+
Aws::LexModelsV2::Endpoints::DeleteBotVersion.build(context)
|
91
|
+
when :delete_custom_vocabulary
|
92
|
+
Aws::LexModelsV2::Endpoints::DeleteCustomVocabulary.build(context)
|
93
|
+
when :delete_export
|
94
|
+
Aws::LexModelsV2::Endpoints::DeleteExport.build(context)
|
95
|
+
when :delete_import
|
96
|
+
Aws::LexModelsV2::Endpoints::DeleteImport.build(context)
|
97
|
+
when :delete_intent
|
98
|
+
Aws::LexModelsV2::Endpoints::DeleteIntent.build(context)
|
99
|
+
when :delete_resource_policy
|
100
|
+
Aws::LexModelsV2::Endpoints::DeleteResourcePolicy.build(context)
|
101
|
+
when :delete_resource_policy_statement
|
102
|
+
Aws::LexModelsV2::Endpoints::DeleteResourcePolicyStatement.build(context)
|
103
|
+
when :delete_slot
|
104
|
+
Aws::LexModelsV2::Endpoints::DeleteSlot.build(context)
|
105
|
+
when :delete_slot_type
|
106
|
+
Aws::LexModelsV2::Endpoints::DeleteSlotType.build(context)
|
107
|
+
when :delete_utterances
|
108
|
+
Aws::LexModelsV2::Endpoints::DeleteUtterances.build(context)
|
109
|
+
when :describe_bot
|
110
|
+
Aws::LexModelsV2::Endpoints::DescribeBot.build(context)
|
111
|
+
when :describe_bot_alias
|
112
|
+
Aws::LexModelsV2::Endpoints::DescribeBotAlias.build(context)
|
113
|
+
when :describe_bot_locale
|
114
|
+
Aws::LexModelsV2::Endpoints::DescribeBotLocale.build(context)
|
115
|
+
when :describe_bot_recommendation
|
116
|
+
Aws::LexModelsV2::Endpoints::DescribeBotRecommendation.build(context)
|
117
|
+
when :describe_bot_version
|
118
|
+
Aws::LexModelsV2::Endpoints::DescribeBotVersion.build(context)
|
119
|
+
when :describe_custom_vocabulary_metadata
|
120
|
+
Aws::LexModelsV2::Endpoints::DescribeCustomVocabularyMetadata.build(context)
|
121
|
+
when :describe_export
|
122
|
+
Aws::LexModelsV2::Endpoints::DescribeExport.build(context)
|
123
|
+
when :describe_import
|
124
|
+
Aws::LexModelsV2::Endpoints::DescribeImport.build(context)
|
125
|
+
when :describe_intent
|
126
|
+
Aws::LexModelsV2::Endpoints::DescribeIntent.build(context)
|
127
|
+
when :describe_resource_policy
|
128
|
+
Aws::LexModelsV2::Endpoints::DescribeResourcePolicy.build(context)
|
129
|
+
when :describe_slot
|
130
|
+
Aws::LexModelsV2::Endpoints::DescribeSlot.build(context)
|
131
|
+
when :describe_slot_type
|
132
|
+
Aws::LexModelsV2::Endpoints::DescribeSlotType.build(context)
|
133
|
+
when :list_aggregated_utterances
|
134
|
+
Aws::LexModelsV2::Endpoints::ListAggregatedUtterances.build(context)
|
135
|
+
when :list_bot_aliases
|
136
|
+
Aws::LexModelsV2::Endpoints::ListBotAliases.build(context)
|
137
|
+
when :list_bot_locales
|
138
|
+
Aws::LexModelsV2::Endpoints::ListBotLocales.build(context)
|
139
|
+
when :list_bot_recommendations
|
140
|
+
Aws::LexModelsV2::Endpoints::ListBotRecommendations.build(context)
|
141
|
+
when :list_bot_versions
|
142
|
+
Aws::LexModelsV2::Endpoints::ListBotVersions.build(context)
|
143
|
+
when :list_bots
|
144
|
+
Aws::LexModelsV2::Endpoints::ListBots.build(context)
|
145
|
+
when :list_built_in_intents
|
146
|
+
Aws::LexModelsV2::Endpoints::ListBuiltInIntents.build(context)
|
147
|
+
when :list_built_in_slot_types
|
148
|
+
Aws::LexModelsV2::Endpoints::ListBuiltInSlotTypes.build(context)
|
149
|
+
when :list_exports
|
150
|
+
Aws::LexModelsV2::Endpoints::ListExports.build(context)
|
151
|
+
when :list_imports
|
152
|
+
Aws::LexModelsV2::Endpoints::ListImports.build(context)
|
153
|
+
when :list_intents
|
154
|
+
Aws::LexModelsV2::Endpoints::ListIntents.build(context)
|
155
|
+
when :list_recommended_intents
|
156
|
+
Aws::LexModelsV2::Endpoints::ListRecommendedIntents.build(context)
|
157
|
+
when :list_slot_types
|
158
|
+
Aws::LexModelsV2::Endpoints::ListSlotTypes.build(context)
|
159
|
+
when :list_slots
|
160
|
+
Aws::LexModelsV2::Endpoints::ListSlots.build(context)
|
161
|
+
when :list_tags_for_resource
|
162
|
+
Aws::LexModelsV2::Endpoints::ListTagsForResource.build(context)
|
163
|
+
when :search_associated_transcripts
|
164
|
+
Aws::LexModelsV2::Endpoints::SearchAssociatedTranscripts.build(context)
|
165
|
+
when :start_bot_recommendation
|
166
|
+
Aws::LexModelsV2::Endpoints::StartBotRecommendation.build(context)
|
167
|
+
when :start_import
|
168
|
+
Aws::LexModelsV2::Endpoints::StartImport.build(context)
|
169
|
+
when :stop_bot_recommendation
|
170
|
+
Aws::LexModelsV2::Endpoints::StopBotRecommendation.build(context)
|
171
|
+
when :tag_resource
|
172
|
+
Aws::LexModelsV2::Endpoints::TagResource.build(context)
|
173
|
+
when :untag_resource
|
174
|
+
Aws::LexModelsV2::Endpoints::UntagResource.build(context)
|
175
|
+
when :update_bot
|
176
|
+
Aws::LexModelsV2::Endpoints::UpdateBot.build(context)
|
177
|
+
when :update_bot_alias
|
178
|
+
Aws::LexModelsV2::Endpoints::UpdateBotAlias.build(context)
|
179
|
+
when :update_bot_locale
|
180
|
+
Aws::LexModelsV2::Endpoints::UpdateBotLocale.build(context)
|
181
|
+
when :update_bot_recommendation
|
182
|
+
Aws::LexModelsV2::Endpoints::UpdateBotRecommendation.build(context)
|
183
|
+
when :update_export
|
184
|
+
Aws::LexModelsV2::Endpoints::UpdateExport.build(context)
|
185
|
+
when :update_intent
|
186
|
+
Aws::LexModelsV2::Endpoints::UpdateIntent.build(context)
|
187
|
+
when :update_resource_policy
|
188
|
+
Aws::LexModelsV2::Endpoints::UpdateResourcePolicy.build(context)
|
189
|
+
when :update_slot
|
190
|
+
Aws::LexModelsV2::Endpoints::UpdateSlot.build(context)
|
191
|
+
when :update_slot_type
|
192
|
+
Aws::LexModelsV2::Endpoints::UpdateSlotType.build(context)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
def add_handlers(handlers, _config)
|
198
|
+
handlers.add(Handler, step: :build, priority: 75)
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
202
|
+
end
|
data/lib/aws-sdk-lexmodelsv2.rb
CHANGED
@@ -13,10 +13,14 @@ require 'aws-sigv4'
|
|
13
13
|
|
14
14
|
require_relative 'aws-sdk-lexmodelsv2/types'
|
15
15
|
require_relative 'aws-sdk-lexmodelsv2/client_api'
|
16
|
+
require_relative 'aws-sdk-lexmodelsv2/plugins/endpoints.rb'
|
16
17
|
require_relative 'aws-sdk-lexmodelsv2/client'
|
17
18
|
require_relative 'aws-sdk-lexmodelsv2/errors'
|
18
19
|
require_relative 'aws-sdk-lexmodelsv2/waiters'
|
19
20
|
require_relative 'aws-sdk-lexmodelsv2/resource'
|
21
|
+
require_relative 'aws-sdk-lexmodelsv2/endpoint_parameters'
|
22
|
+
require_relative 'aws-sdk-lexmodelsv2/endpoint_provider'
|
23
|
+
require_relative 'aws-sdk-lexmodelsv2/endpoints'
|
20
24
|
require_relative 'aws-sdk-lexmodelsv2/customizations'
|
21
25
|
|
22
26
|
# This module provides support for Amazon Lex Model Building V2. This module is available in the
|
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-lexmodelsv2/customizations'
|
|
49
53
|
# @!group service
|
50
54
|
module Aws::LexModelsV2
|
51
55
|
|
52
|
-
GEM_VERSION = '1.
|
56
|
+
GEM_VERSION = '1.29.0'
|
53
57
|
|
54
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-lexmodelsv2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.29.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-
|
11
|
+
date: 2022-10-25 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.
|
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.
|
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-lexmodelsv2/client.rb
|
60
60
|
- lib/aws-sdk-lexmodelsv2/client_api.rb
|
61
61
|
- lib/aws-sdk-lexmodelsv2/customizations.rb
|
62
|
+
- lib/aws-sdk-lexmodelsv2/endpoint_parameters.rb
|
63
|
+
- lib/aws-sdk-lexmodelsv2/endpoint_provider.rb
|
64
|
+
- lib/aws-sdk-lexmodelsv2/endpoints.rb
|
62
65
|
- lib/aws-sdk-lexmodelsv2/errors.rb
|
66
|
+
- lib/aws-sdk-lexmodelsv2/plugins/endpoints.rb
|
63
67
|
- lib/aws-sdk-lexmodelsv2/resource.rb
|
64
68
|
- lib/aws-sdk-lexmodelsv2/types.rb
|
65
69
|
- lib/aws-sdk-lexmodelsv2/waiters.rb
|