aws-sdk-kendraranking 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-kendraranking/client.rb +817 -0
- data/lib/aws-sdk-kendraranking/client_api.rb +358 -0
- data/lib/aws-sdk-kendraranking/customizations.rb +0 -0
- data/lib/aws-sdk-kendraranking/endpoint_parameters.rb +57 -0
- data/lib/aws-sdk-kendraranking/endpoint_provider.rb +92 -0
- data/lib/aws-sdk-kendraranking/endpoints.rb +132 -0
- data/lib/aws-sdk-kendraranking/errors.rb +166 -0
- data/lib/aws-sdk-kendraranking/plugins/endpoints.rb +86 -0
- data/lib/aws-sdk-kendraranking/resource.rb +26 -0
- data/lib/aws-sdk-kendraranking/types.rb +664 -0
- data/lib/aws-sdk-kendraranking.rb +57 -0
- metadata +94 -0
@@ -0,0 +1,358 @@
|
|
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::KendraRanking
|
11
|
+
# @api private
|
12
|
+
module ClientApi
|
13
|
+
|
14
|
+
include Seahorse::Model
|
15
|
+
|
16
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
17
|
+
AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
|
18
|
+
BodyTokensList = Shapes::ListShape.new(name: 'BodyTokensList')
|
19
|
+
CapacityUnitsConfiguration = Shapes::StructureShape.new(name: 'CapacityUnitsConfiguration')
|
20
|
+
ClientTokenName = Shapes::StringShape.new(name: 'ClientTokenName')
|
21
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
22
|
+
CreateRescoreExecutionPlanRequest = Shapes::StructureShape.new(name: 'CreateRescoreExecutionPlanRequest')
|
23
|
+
CreateRescoreExecutionPlanResponse = Shapes::StructureShape.new(name: 'CreateRescoreExecutionPlanResponse')
|
24
|
+
DeleteRescoreExecutionPlanRequest = Shapes::StructureShape.new(name: 'DeleteRescoreExecutionPlanRequest')
|
25
|
+
DescribeRescoreExecutionPlanRequest = Shapes::StructureShape.new(name: 'DescribeRescoreExecutionPlanRequest')
|
26
|
+
DescribeRescoreExecutionPlanResponse = Shapes::StructureShape.new(name: 'DescribeRescoreExecutionPlanResponse')
|
27
|
+
Description = Shapes::StringShape.new(name: 'Description')
|
28
|
+
Document = Shapes::StructureShape.new(name: 'Document')
|
29
|
+
DocumentBody = Shapes::StringShape.new(name: 'DocumentBody')
|
30
|
+
DocumentId = Shapes::StringShape.new(name: 'DocumentId')
|
31
|
+
DocumentList = Shapes::ListShape.new(name: 'DocumentList')
|
32
|
+
DocumentTitle = Shapes::StringShape.new(name: 'DocumentTitle')
|
33
|
+
ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
|
34
|
+
Float = Shapes::FloatShape.new(name: 'Float')
|
35
|
+
GroupId = Shapes::StringShape.new(name: 'GroupId')
|
36
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
37
|
+
ListRescoreExecutionPlansRequest = Shapes::StructureShape.new(name: 'ListRescoreExecutionPlansRequest')
|
38
|
+
ListRescoreExecutionPlansResponse = Shapes::StructureShape.new(name: 'ListRescoreExecutionPlansResponse')
|
39
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
40
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
41
|
+
MaxResultsIntegerForListRescoreExecutionPlansRequest = Shapes::IntegerShape.new(name: 'MaxResultsIntegerForListRescoreExecutionPlansRequest')
|
42
|
+
NextToken = Shapes::StringShape.new(name: 'NextToken')
|
43
|
+
RescoreCapacityUnit = Shapes::IntegerShape.new(name: 'RescoreCapacityUnit')
|
44
|
+
RescoreExecutionPlanArn = Shapes::StringShape.new(name: 'RescoreExecutionPlanArn')
|
45
|
+
RescoreExecutionPlanId = Shapes::StringShape.new(name: 'RescoreExecutionPlanId')
|
46
|
+
RescoreExecutionPlanName = Shapes::StringShape.new(name: 'RescoreExecutionPlanName')
|
47
|
+
RescoreExecutionPlanStatus = Shapes::StringShape.new(name: 'RescoreExecutionPlanStatus')
|
48
|
+
RescoreExecutionPlanSummary = Shapes::StructureShape.new(name: 'RescoreExecutionPlanSummary')
|
49
|
+
RescoreExecutionPlanSummaryList = Shapes::ListShape.new(name: 'RescoreExecutionPlanSummaryList')
|
50
|
+
RescoreId = Shapes::StringShape.new(name: 'RescoreId')
|
51
|
+
RescoreRequest = Shapes::StructureShape.new(name: 'RescoreRequest')
|
52
|
+
RescoreResult = Shapes::StructureShape.new(name: 'RescoreResult')
|
53
|
+
RescoreResultItem = Shapes::StructureShape.new(name: 'RescoreResultItem')
|
54
|
+
RescoreResultItemList = Shapes::ListShape.new(name: 'RescoreResultItemList')
|
55
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
56
|
+
ResourceUnavailableException = Shapes::StructureShape.new(name: 'ResourceUnavailableException')
|
57
|
+
SearchQuery = Shapes::StringShape.new(name: 'SearchQuery')
|
58
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
59
|
+
Tag = Shapes::StructureShape.new(name: 'Tag')
|
60
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
61
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
62
|
+
TagList = Shapes::ListShape.new(name: 'TagList')
|
63
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
64
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
65
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
66
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
67
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
68
|
+
TitleTokensList = Shapes::ListShape.new(name: 'TitleTokensList')
|
69
|
+
Tokens = Shapes::StringShape.new(name: 'Tokens')
|
70
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
71
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
72
|
+
UpdateRescoreExecutionPlanRequest = Shapes::StructureShape.new(name: 'UpdateRescoreExecutionPlanRequest')
|
73
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
74
|
+
|
75
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
76
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
77
|
+
|
78
|
+
BodyTokensList.member = Shapes::ShapeRef.new(shape: Tokens)
|
79
|
+
|
80
|
+
CapacityUnitsConfiguration.add_member(:rescore_capacity_units, Shapes::ShapeRef.new(shape: RescoreCapacityUnit, required: true, location_name: "RescoreCapacityUnits"))
|
81
|
+
CapacityUnitsConfiguration.struct_class = Types::CapacityUnitsConfiguration
|
82
|
+
|
83
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
84
|
+
ConflictException.struct_class = Types::ConflictException
|
85
|
+
|
86
|
+
CreateRescoreExecutionPlanRequest.add_member(:name, Shapes::ShapeRef.new(shape: RescoreExecutionPlanName, required: true, location_name: "Name"))
|
87
|
+
CreateRescoreExecutionPlanRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
88
|
+
CreateRescoreExecutionPlanRequest.add_member(:capacity_units, Shapes::ShapeRef.new(shape: CapacityUnitsConfiguration, location_name: "CapacityUnits"))
|
89
|
+
CreateRescoreExecutionPlanRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
90
|
+
CreateRescoreExecutionPlanRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientTokenName, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
91
|
+
CreateRescoreExecutionPlanRequest.struct_class = Types::CreateRescoreExecutionPlanRequest
|
92
|
+
|
93
|
+
CreateRescoreExecutionPlanResponse.add_member(:id, Shapes::ShapeRef.new(shape: RescoreExecutionPlanId, required: true, location_name: "Id"))
|
94
|
+
CreateRescoreExecutionPlanResponse.add_member(:arn, Shapes::ShapeRef.new(shape: RescoreExecutionPlanArn, required: true, location_name: "Arn"))
|
95
|
+
CreateRescoreExecutionPlanResponse.struct_class = Types::CreateRescoreExecutionPlanResponse
|
96
|
+
|
97
|
+
DeleteRescoreExecutionPlanRequest.add_member(:id, Shapes::ShapeRef.new(shape: RescoreExecutionPlanId, required: true, location_name: "Id"))
|
98
|
+
DeleteRescoreExecutionPlanRequest.struct_class = Types::DeleteRescoreExecutionPlanRequest
|
99
|
+
|
100
|
+
DescribeRescoreExecutionPlanRequest.add_member(:id, Shapes::ShapeRef.new(shape: RescoreExecutionPlanId, required: true, location_name: "Id"))
|
101
|
+
DescribeRescoreExecutionPlanRequest.struct_class = Types::DescribeRescoreExecutionPlanRequest
|
102
|
+
|
103
|
+
DescribeRescoreExecutionPlanResponse.add_member(:id, Shapes::ShapeRef.new(shape: RescoreExecutionPlanId, location_name: "Id"))
|
104
|
+
DescribeRescoreExecutionPlanResponse.add_member(:arn, Shapes::ShapeRef.new(shape: RescoreExecutionPlanArn, location_name: "Arn"))
|
105
|
+
DescribeRescoreExecutionPlanResponse.add_member(:name, Shapes::ShapeRef.new(shape: RescoreExecutionPlanName, location_name: "Name"))
|
106
|
+
DescribeRescoreExecutionPlanResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
107
|
+
DescribeRescoreExecutionPlanResponse.add_member(:capacity_units, Shapes::ShapeRef.new(shape: CapacityUnitsConfiguration, location_name: "CapacityUnits"))
|
108
|
+
DescribeRescoreExecutionPlanResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
109
|
+
DescribeRescoreExecutionPlanResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
|
110
|
+
DescribeRescoreExecutionPlanResponse.add_member(:status, Shapes::ShapeRef.new(shape: RescoreExecutionPlanStatus, location_name: "Status"))
|
111
|
+
DescribeRescoreExecutionPlanResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "ErrorMessage"))
|
112
|
+
DescribeRescoreExecutionPlanResponse.struct_class = Types::DescribeRescoreExecutionPlanResponse
|
113
|
+
|
114
|
+
Document.add_member(:id, Shapes::ShapeRef.new(shape: DocumentId, required: true, location_name: "Id"))
|
115
|
+
Document.add_member(:group_id, Shapes::ShapeRef.new(shape: GroupId, location_name: "GroupId"))
|
116
|
+
Document.add_member(:title, Shapes::ShapeRef.new(shape: DocumentTitle, location_name: "Title"))
|
117
|
+
Document.add_member(:body, Shapes::ShapeRef.new(shape: DocumentBody, location_name: "Body"))
|
118
|
+
Document.add_member(:tokenized_title, Shapes::ShapeRef.new(shape: TitleTokensList, location_name: "TokenizedTitle"))
|
119
|
+
Document.add_member(:tokenized_body, Shapes::ShapeRef.new(shape: BodyTokensList, location_name: "TokenizedBody"))
|
120
|
+
Document.add_member(:original_score, Shapes::ShapeRef.new(shape: Float, required: true, location_name: "OriginalScore"))
|
121
|
+
Document.struct_class = Types::Document
|
122
|
+
|
123
|
+
DocumentList.member = Shapes::ShapeRef.new(shape: Document)
|
124
|
+
|
125
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
126
|
+
InternalServerException.struct_class = Types::InternalServerException
|
127
|
+
|
128
|
+
ListRescoreExecutionPlansRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
129
|
+
ListRescoreExecutionPlansRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResultsIntegerForListRescoreExecutionPlansRequest, location_name: "MaxResults"))
|
130
|
+
ListRescoreExecutionPlansRequest.struct_class = Types::ListRescoreExecutionPlansRequest
|
131
|
+
|
132
|
+
ListRescoreExecutionPlansResponse.add_member(:summary_items, Shapes::ShapeRef.new(shape: RescoreExecutionPlanSummaryList, location_name: "SummaryItems"))
|
133
|
+
ListRescoreExecutionPlansResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
134
|
+
ListRescoreExecutionPlansResponse.struct_class = Types::ListRescoreExecutionPlansResponse
|
135
|
+
|
136
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
137
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
138
|
+
|
139
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
140
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
141
|
+
|
142
|
+
RescoreExecutionPlanSummary.add_member(:name, Shapes::ShapeRef.new(shape: RescoreExecutionPlanName, location_name: "Name"))
|
143
|
+
RescoreExecutionPlanSummary.add_member(:id, Shapes::ShapeRef.new(shape: RescoreExecutionPlanId, location_name: "Id"))
|
144
|
+
RescoreExecutionPlanSummary.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedAt"))
|
145
|
+
RescoreExecutionPlanSummary.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "UpdatedAt"))
|
146
|
+
RescoreExecutionPlanSummary.add_member(:status, Shapes::ShapeRef.new(shape: RescoreExecutionPlanStatus, location_name: "Status"))
|
147
|
+
RescoreExecutionPlanSummary.struct_class = Types::RescoreExecutionPlanSummary
|
148
|
+
|
149
|
+
RescoreExecutionPlanSummaryList.member = Shapes::ShapeRef.new(shape: RescoreExecutionPlanSummary)
|
150
|
+
|
151
|
+
RescoreRequest.add_member(:rescore_execution_plan_id, Shapes::ShapeRef.new(shape: RescoreExecutionPlanId, required: true, location_name: "RescoreExecutionPlanId"))
|
152
|
+
RescoreRequest.add_member(:search_query, Shapes::ShapeRef.new(shape: SearchQuery, required: true, location_name: "SearchQuery"))
|
153
|
+
RescoreRequest.add_member(:documents, Shapes::ShapeRef.new(shape: DocumentList, required: true, location_name: "Documents"))
|
154
|
+
RescoreRequest.struct_class = Types::RescoreRequest
|
155
|
+
|
156
|
+
RescoreResult.add_member(:rescore_id, Shapes::ShapeRef.new(shape: RescoreId, location_name: "RescoreId"))
|
157
|
+
RescoreResult.add_member(:result_items, Shapes::ShapeRef.new(shape: RescoreResultItemList, location_name: "ResultItems"))
|
158
|
+
RescoreResult.struct_class = Types::RescoreResult
|
159
|
+
|
160
|
+
RescoreResultItem.add_member(:document_id, Shapes::ShapeRef.new(shape: DocumentId, location_name: "DocumentId"))
|
161
|
+
RescoreResultItem.add_member(:score, Shapes::ShapeRef.new(shape: Float, location_name: "Score"))
|
162
|
+
RescoreResultItem.struct_class = Types::RescoreResultItem
|
163
|
+
|
164
|
+
RescoreResultItemList.member = Shapes::ShapeRef.new(shape: RescoreResultItem)
|
165
|
+
|
166
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
167
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
168
|
+
|
169
|
+
ResourceUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
170
|
+
ResourceUnavailableException.struct_class = Types::ResourceUnavailableException
|
171
|
+
|
172
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
173
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
174
|
+
|
175
|
+
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
|
176
|
+
Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
|
177
|
+
Tag.struct_class = Types::Tag
|
178
|
+
|
179
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
180
|
+
|
181
|
+
TagList.member = Shapes::ShapeRef.new(shape: Tag)
|
182
|
+
|
183
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
184
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
|
185
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
186
|
+
|
187
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
188
|
+
|
189
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
190
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
191
|
+
|
192
|
+
TitleTokensList.member = Shapes::ShapeRef.new(shape: Tokens)
|
193
|
+
|
194
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "ResourceARN"))
|
195
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
196
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
197
|
+
|
198
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
199
|
+
|
200
|
+
UpdateRescoreExecutionPlanRequest.add_member(:id, Shapes::ShapeRef.new(shape: RescoreExecutionPlanId, required: true, location_name: "Id"))
|
201
|
+
UpdateRescoreExecutionPlanRequest.add_member(:name, Shapes::ShapeRef.new(shape: RescoreExecutionPlanName, location_name: "Name"))
|
202
|
+
UpdateRescoreExecutionPlanRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
203
|
+
UpdateRescoreExecutionPlanRequest.add_member(:capacity_units, Shapes::ShapeRef.new(shape: CapacityUnitsConfiguration, location_name: "CapacityUnits"))
|
204
|
+
UpdateRescoreExecutionPlanRequest.struct_class = Types::UpdateRescoreExecutionPlanRequest
|
205
|
+
|
206
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "Message"))
|
207
|
+
ValidationException.struct_class = Types::ValidationException
|
208
|
+
|
209
|
+
|
210
|
+
# @api private
|
211
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
212
|
+
|
213
|
+
api.version = "2022-10-19"
|
214
|
+
|
215
|
+
api.metadata = {
|
216
|
+
"apiVersion" => "2022-10-19",
|
217
|
+
"endpointPrefix" => "kendra-ranking",
|
218
|
+
"jsonVersion" => "1.0",
|
219
|
+
"protocol" => "json",
|
220
|
+
"serviceAbbreviation" => "Kendra Ranking",
|
221
|
+
"serviceFullName" => "Amazon Kendra Intelligent Ranking",
|
222
|
+
"serviceId" => "Kendra Ranking",
|
223
|
+
"signatureVersion" => "v4",
|
224
|
+
"signingName" => "kendra-ranking",
|
225
|
+
"targetPrefix" => "AWSKendraRerankingFrontendService",
|
226
|
+
"uid" => "kendra-ranking-2022-10-19",
|
227
|
+
}
|
228
|
+
|
229
|
+
api.add_operation(:create_rescore_execution_plan, Seahorse::Model::Operation.new.tap do |o|
|
230
|
+
o.name = "CreateRescoreExecutionPlan"
|
231
|
+
o.http_method = "POST"
|
232
|
+
o.http_request_uri = "/"
|
233
|
+
o.input = Shapes::ShapeRef.new(shape: CreateRescoreExecutionPlanRequest)
|
234
|
+
o.output = Shapes::ShapeRef.new(shape: CreateRescoreExecutionPlanResponse)
|
235
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
236
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
237
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
238
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
239
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
240
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
241
|
+
end)
|
242
|
+
|
243
|
+
api.add_operation(:delete_rescore_execution_plan, Seahorse::Model::Operation.new.tap do |o|
|
244
|
+
o.name = "DeleteRescoreExecutionPlan"
|
245
|
+
o.http_method = "POST"
|
246
|
+
o.http_request_uri = "/"
|
247
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteRescoreExecutionPlanRequest)
|
248
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
249
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
250
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
251
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
252
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
253
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
254
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
255
|
+
end)
|
256
|
+
|
257
|
+
api.add_operation(:describe_rescore_execution_plan, Seahorse::Model::Operation.new.tap do |o|
|
258
|
+
o.name = "DescribeRescoreExecutionPlan"
|
259
|
+
o.http_method = "POST"
|
260
|
+
o.http_request_uri = "/"
|
261
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeRescoreExecutionPlanRequest)
|
262
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeRescoreExecutionPlanResponse)
|
263
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
264
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
265
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
266
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
267
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
268
|
+
end)
|
269
|
+
|
270
|
+
api.add_operation(:list_rescore_execution_plans, Seahorse::Model::Operation.new.tap do |o|
|
271
|
+
o.name = "ListRescoreExecutionPlans"
|
272
|
+
o.http_method = "POST"
|
273
|
+
o.http_request_uri = "/"
|
274
|
+
o.input = Shapes::ShapeRef.new(shape: ListRescoreExecutionPlansRequest)
|
275
|
+
o.output = Shapes::ShapeRef.new(shape: ListRescoreExecutionPlansResponse)
|
276
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
277
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
278
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
279
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
280
|
+
o[:pager] = Aws::Pager.new(
|
281
|
+
limit_key: "max_results",
|
282
|
+
tokens: {
|
283
|
+
"next_token" => "next_token"
|
284
|
+
}
|
285
|
+
)
|
286
|
+
end)
|
287
|
+
|
288
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
289
|
+
o.name = "ListTagsForResource"
|
290
|
+
o.http_method = "POST"
|
291
|
+
o.http_request_uri = "/"
|
292
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
293
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
294
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
295
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
|
296
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
297
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
298
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
299
|
+
end)
|
300
|
+
|
301
|
+
api.add_operation(:rescore, Seahorse::Model::Operation.new.tap do |o|
|
302
|
+
o.name = "Rescore"
|
303
|
+
o.http_method = "POST"
|
304
|
+
o.http_request_uri = "/"
|
305
|
+
o.input = Shapes::ShapeRef.new(shape: RescoreRequest)
|
306
|
+
o.output = Shapes::ShapeRef.new(shape: RescoreResult)
|
307
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
308
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
309
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
310
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
311
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
312
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
313
|
+
end)
|
314
|
+
|
315
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
316
|
+
o.name = "TagResource"
|
317
|
+
o.http_method = "POST"
|
318
|
+
o.http_request_uri = "/"
|
319
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
320
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
321
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
322
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
|
323
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
324
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
325
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
326
|
+
end)
|
327
|
+
|
328
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
329
|
+
o.name = "UntagResource"
|
330
|
+
o.http_method = "POST"
|
331
|
+
o.http_request_uri = "/"
|
332
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
333
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
334
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
335
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
|
336
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
337
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
338
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
339
|
+
end)
|
340
|
+
|
341
|
+
api.add_operation(:update_rescore_execution_plan, Seahorse::Model::Operation.new.tap do |o|
|
342
|
+
o.name = "UpdateRescoreExecutionPlan"
|
343
|
+
o.http_method = "POST"
|
344
|
+
o.http_request_uri = "/"
|
345
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateRescoreExecutionPlanRequest)
|
346
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
347
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
348
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
349
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
350
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
351
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
352
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
353
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
354
|
+
end)
|
355
|
+
end
|
356
|
+
|
357
|
+
end
|
358
|
+
end
|
File without changes
|
@@ -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::KendraRanking
|
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_fips
|
19
|
+
# 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.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute endpoint
|
24
|
+
# Override the endpoint used to send this request
|
25
|
+
#
|
26
|
+
# @return [String]
|
27
|
+
#
|
28
|
+
EndpointParameters = Struct.new(
|
29
|
+
:region,
|
30
|
+
:use_fips,
|
31
|
+
:endpoint,
|
32
|
+
) do
|
33
|
+
include Aws::Structure
|
34
|
+
|
35
|
+
# @api private
|
36
|
+
class << self
|
37
|
+
PARAM_MAP = {
|
38
|
+
'Region' => :region,
|
39
|
+
'UseFIPS' => :use_fips,
|
40
|
+
'Endpoint' => :endpoint,
|
41
|
+
}.freeze
|
42
|
+
end
|
43
|
+
|
44
|
+
def initialize(options = {})
|
45
|
+
self[:region] = options[:region]
|
46
|
+
if self[:region].nil?
|
47
|
+
raise ArgumentError, "Missing required EndpointParameter: :region"
|
48
|
+
end
|
49
|
+
self[:use_fips] = options[:use_fips]
|
50
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
51
|
+
if self[:use_fips].nil?
|
52
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
53
|
+
end
|
54
|
+
self[:endpoint] = options[:endpoint]
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,92 @@
|
|
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::KendraRanking
|
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
|
+
eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
|
32
|
+
bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
|
33
|
+
YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
|
34
|
+
ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRklQUyI6eyJidWlsdElu
|
35
|
+
IjoiQVdTOjpVc2VGSVBTIiwicmVxdWlyZWQiOnRydWUsImRlZmF1bHQiOmZh
|
36
|
+
bHNlLCJkb2N1bWVudGF0aW9uIjoiV2hlbiB0cnVlLCBzZW5kIHRoaXMgcmVx
|
37
|
+
dWVzdCB0byB0aGUgRklQUy1jb21wbGlhbnQgcmVnaW9uYWwgZW5kcG9pbnQu
|
38
|
+
IElmIHRoZSBjb25maWd1cmVkIGVuZHBvaW50IGRvZXMgbm90IGhhdmUgYSBG
|
39
|
+
SVBTIGNvbXBsaWFudCBlbmRwb2ludCwgZGlzcGF0Y2hpbmcgdGhlIHJlcXVl
|
40
|
+
c3Qgd2lsbCByZXR1cm4gYW4gZXJyb3IuIiwidHlwZSI6IkJvb2xlYW4ifSwi
|
41
|
+
RW5kcG9pbnQiOnsiYnVpbHRJbiI6IlNESzo6RW5kcG9pbnQiLCJyZXF1aXJl
|
42
|
+
ZCI6ZmFsc2UsImRvY3VtZW50YXRpb24iOiJPdm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
+
end
|
@@ -0,0 +1,132 @@
|
|
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::KendraRanking
|
12
|
+
module Endpoints
|
13
|
+
|
14
|
+
class CreateRescoreExecutionPlan
|
15
|
+
def self.build(context)
|
16
|
+
unless context.config.regional_endpoint
|
17
|
+
endpoint = context.config.endpoint.to_s
|
18
|
+
end
|
19
|
+
Aws::KendraRanking::EndpointParameters.new(
|
20
|
+
region: context.config.region,
|
21
|
+
use_fips: context.config.use_fips_endpoint,
|
22
|
+
endpoint: endpoint,
|
23
|
+
)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
class DeleteRescoreExecutionPlan
|
28
|
+
def self.build(context)
|
29
|
+
unless context.config.regional_endpoint
|
30
|
+
endpoint = context.config.endpoint.to_s
|
31
|
+
end
|
32
|
+
Aws::KendraRanking::EndpointParameters.new(
|
33
|
+
region: context.config.region,
|
34
|
+
use_fips: context.config.use_fips_endpoint,
|
35
|
+
endpoint: endpoint,
|
36
|
+
)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
class DescribeRescoreExecutionPlan
|
41
|
+
def self.build(context)
|
42
|
+
unless context.config.regional_endpoint
|
43
|
+
endpoint = context.config.endpoint.to_s
|
44
|
+
end
|
45
|
+
Aws::KendraRanking::EndpointParameters.new(
|
46
|
+
region: context.config.region,
|
47
|
+
use_fips: context.config.use_fips_endpoint,
|
48
|
+
endpoint: endpoint,
|
49
|
+
)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
class ListRescoreExecutionPlans
|
54
|
+
def self.build(context)
|
55
|
+
unless context.config.regional_endpoint
|
56
|
+
endpoint = context.config.endpoint.to_s
|
57
|
+
end
|
58
|
+
Aws::KendraRanking::EndpointParameters.new(
|
59
|
+
region: context.config.region,
|
60
|
+
use_fips: context.config.use_fips_endpoint,
|
61
|
+
endpoint: endpoint,
|
62
|
+
)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class ListTagsForResource
|
67
|
+
def self.build(context)
|
68
|
+
unless context.config.regional_endpoint
|
69
|
+
endpoint = context.config.endpoint.to_s
|
70
|
+
end
|
71
|
+
Aws::KendraRanking::EndpointParameters.new(
|
72
|
+
region: context.config.region,
|
73
|
+
use_fips: context.config.use_fips_endpoint,
|
74
|
+
endpoint: endpoint,
|
75
|
+
)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
class Rescore
|
80
|
+
def self.build(context)
|
81
|
+
unless context.config.regional_endpoint
|
82
|
+
endpoint = context.config.endpoint.to_s
|
83
|
+
end
|
84
|
+
Aws::KendraRanking::EndpointParameters.new(
|
85
|
+
region: context.config.region,
|
86
|
+
use_fips: context.config.use_fips_endpoint,
|
87
|
+
endpoint: endpoint,
|
88
|
+
)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
class TagResource
|
93
|
+
def self.build(context)
|
94
|
+
unless context.config.regional_endpoint
|
95
|
+
endpoint = context.config.endpoint.to_s
|
96
|
+
end
|
97
|
+
Aws::KendraRanking::EndpointParameters.new(
|
98
|
+
region: context.config.region,
|
99
|
+
use_fips: context.config.use_fips_endpoint,
|
100
|
+
endpoint: endpoint,
|
101
|
+
)
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
class UntagResource
|
106
|
+
def self.build(context)
|
107
|
+
unless context.config.regional_endpoint
|
108
|
+
endpoint = context.config.endpoint.to_s
|
109
|
+
end
|
110
|
+
Aws::KendraRanking::EndpointParameters.new(
|
111
|
+
region: context.config.region,
|
112
|
+
use_fips: context.config.use_fips_endpoint,
|
113
|
+
endpoint: endpoint,
|
114
|
+
)
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
class UpdateRescoreExecutionPlan
|
119
|
+
def self.build(context)
|
120
|
+
unless context.config.regional_endpoint
|
121
|
+
endpoint = context.config.endpoint.to_s
|
122
|
+
end
|
123
|
+
Aws::KendraRanking::EndpointParameters.new(
|
124
|
+
region: context.config.region,
|
125
|
+
use_fips: context.config.use_fips_endpoint,
|
126
|
+
endpoint: endpoint,
|
127
|
+
)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
end
|
132
|
+
end
|