@aws-sdk/client-kendra-ranking 3.315.0 → 3.319.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.
- package/dist-cjs/KendraRanking.js +13 -126
- package/dist-cjs/protocols/Aws_json1_0.js +1 -1
- package/dist-es/KendraRanking.js +13 -126
- package/dist-es/protocols/Aws_json1_0.js +1 -1
- package/dist-types/KendraRanking.d.ts +18 -57
- package/dist-types/ts3.4/KendraRanking.d.ts +4 -1
- package/package.json +8 -8
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.KendraRanking = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CreateRescoreExecutionPlanCommand_1 = require("./commands/CreateRescoreExecutionPlanCommand");
|
|
5
6
|
const DeleteRescoreExecutionPlanCommand_1 = require("./commands/DeleteRescoreExecutionPlanCommand");
|
|
6
7
|
const DescribeRescoreExecutionPlanCommand_1 = require("./commands/DescribeRescoreExecutionPlanCommand");
|
|
@@ -11,132 +12,18 @@ const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
|
11
12
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
12
13
|
const UpdateRescoreExecutionPlanCommand_1 = require("./commands/UpdateRescoreExecutionPlanCommand");
|
|
13
14
|
const KendraRankingClient_1 = require("./KendraRankingClient");
|
|
15
|
+
const commands = {
|
|
16
|
+
CreateRescoreExecutionPlanCommand: CreateRescoreExecutionPlanCommand_1.CreateRescoreExecutionPlanCommand,
|
|
17
|
+
DeleteRescoreExecutionPlanCommand: DeleteRescoreExecutionPlanCommand_1.DeleteRescoreExecutionPlanCommand,
|
|
18
|
+
DescribeRescoreExecutionPlanCommand: DescribeRescoreExecutionPlanCommand_1.DescribeRescoreExecutionPlanCommand,
|
|
19
|
+
ListRescoreExecutionPlansCommand: ListRescoreExecutionPlansCommand_1.ListRescoreExecutionPlansCommand,
|
|
20
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
21
|
+
RescoreCommand: RescoreCommand_1.RescoreCommand,
|
|
22
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
23
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
24
|
+
UpdateRescoreExecutionPlanCommand: UpdateRescoreExecutionPlanCommand_1.UpdateRescoreExecutionPlanCommand,
|
|
25
|
+
};
|
|
14
26
|
class KendraRanking extends KendraRankingClient_1.KendraRankingClient {
|
|
15
|
-
createRescoreExecutionPlan(args, optionsOrCb, cb) {
|
|
16
|
-
const command = new CreateRescoreExecutionPlanCommand_1.CreateRescoreExecutionPlanCommand(args);
|
|
17
|
-
if (typeof optionsOrCb === "function") {
|
|
18
|
-
this.send(command, optionsOrCb);
|
|
19
|
-
}
|
|
20
|
-
else if (typeof cb === "function") {
|
|
21
|
-
if (typeof optionsOrCb !== "object")
|
|
22
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
23
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return this.send(command, optionsOrCb);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
deleteRescoreExecutionPlan(args, optionsOrCb, cb) {
|
|
30
|
-
const command = new DeleteRescoreExecutionPlanCommand_1.DeleteRescoreExecutionPlanCommand(args);
|
|
31
|
-
if (typeof optionsOrCb === "function") {
|
|
32
|
-
this.send(command, optionsOrCb);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof cb === "function") {
|
|
35
|
-
if (typeof optionsOrCb !== "object")
|
|
36
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
37
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
return this.send(command, optionsOrCb);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
describeRescoreExecutionPlan(args, optionsOrCb, cb) {
|
|
44
|
-
const command = new DescribeRescoreExecutionPlanCommand_1.DescribeRescoreExecutionPlanCommand(args);
|
|
45
|
-
if (typeof optionsOrCb === "function") {
|
|
46
|
-
this.send(command, optionsOrCb);
|
|
47
|
-
}
|
|
48
|
-
else if (typeof cb === "function") {
|
|
49
|
-
if (typeof optionsOrCb !== "object")
|
|
50
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
51
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
return this.send(command, optionsOrCb);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
listRescoreExecutionPlans(args, optionsOrCb, cb) {
|
|
58
|
-
const command = new ListRescoreExecutionPlansCommand_1.ListRescoreExecutionPlansCommand(args);
|
|
59
|
-
if (typeof optionsOrCb === "function") {
|
|
60
|
-
this.send(command, optionsOrCb);
|
|
61
|
-
}
|
|
62
|
-
else if (typeof cb === "function") {
|
|
63
|
-
if (typeof optionsOrCb !== "object")
|
|
64
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
65
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
return this.send(command, optionsOrCb);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
72
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
73
|
-
if (typeof optionsOrCb === "function") {
|
|
74
|
-
this.send(command, optionsOrCb);
|
|
75
|
-
}
|
|
76
|
-
else if (typeof cb === "function") {
|
|
77
|
-
if (typeof optionsOrCb !== "object")
|
|
78
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
79
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
return this.send(command, optionsOrCb);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
rescore(args, optionsOrCb, cb) {
|
|
86
|
-
const command = new RescoreCommand_1.RescoreCommand(args);
|
|
87
|
-
if (typeof optionsOrCb === "function") {
|
|
88
|
-
this.send(command, optionsOrCb);
|
|
89
|
-
}
|
|
90
|
-
else if (typeof cb === "function") {
|
|
91
|
-
if (typeof optionsOrCb !== "object")
|
|
92
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
return this.send(command, optionsOrCb);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
tagResource(args, optionsOrCb, cb) {
|
|
100
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
101
|
-
if (typeof optionsOrCb === "function") {
|
|
102
|
-
this.send(command, optionsOrCb);
|
|
103
|
-
}
|
|
104
|
-
else if (typeof cb === "function") {
|
|
105
|
-
if (typeof optionsOrCb !== "object")
|
|
106
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
107
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
108
|
-
}
|
|
109
|
-
else {
|
|
110
|
-
return this.send(command, optionsOrCb);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
untagResource(args, optionsOrCb, cb) {
|
|
114
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
115
|
-
if (typeof optionsOrCb === "function") {
|
|
116
|
-
this.send(command, optionsOrCb);
|
|
117
|
-
}
|
|
118
|
-
else if (typeof cb === "function") {
|
|
119
|
-
if (typeof optionsOrCb !== "object")
|
|
120
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
121
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
return this.send(command, optionsOrCb);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
updateRescoreExecutionPlan(args, optionsOrCb, cb) {
|
|
128
|
-
const command = new UpdateRescoreExecutionPlanCommand_1.UpdateRescoreExecutionPlanCommand(args);
|
|
129
|
-
if (typeof optionsOrCb === "function") {
|
|
130
|
-
this.send(command, optionsOrCb);
|
|
131
|
-
}
|
|
132
|
-
else if (typeof cb === "function") {
|
|
133
|
-
if (typeof optionsOrCb !== "object")
|
|
134
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
return this.send(command, optionsOrCb);
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
27
|
}
|
|
142
28
|
exports.KendraRanking = KendraRanking;
|
|
29
|
+
(0, smithy_client_1.createAggregatedClient)(commands, KendraRanking);
|
|
@@ -555,7 +555,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
555
555
|
const se_CreateRescoreExecutionPlanRequest = (input, context) => {
|
|
556
556
|
return (0, smithy_client_1.take)(input, {
|
|
557
557
|
CapacityUnits: smithy_client_1._json,
|
|
558
|
-
ClientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
558
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
559
559
|
Description: [],
|
|
560
560
|
Name: [],
|
|
561
561
|
Tags: smithy_client_1._json,
|
package/dist-es/KendraRanking.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { CreateRescoreExecutionPlanCommand, } from "./commands/CreateRescoreExecutionPlanCommand";
|
|
2
3
|
import { DeleteRescoreExecutionPlanCommand, } from "./commands/DeleteRescoreExecutionPlanCommand";
|
|
3
4
|
import { DescribeRescoreExecutionPlanCommand, } from "./commands/DescribeRescoreExecutionPlanCommand";
|
|
@@ -8,131 +9,17 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
|
8
9
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
9
10
|
import { UpdateRescoreExecutionPlanCommand, } from "./commands/UpdateRescoreExecutionPlanCommand";
|
|
10
11
|
import { KendraRankingClient } from "./KendraRankingClient";
|
|
12
|
+
const commands = {
|
|
13
|
+
CreateRescoreExecutionPlanCommand,
|
|
14
|
+
DeleteRescoreExecutionPlanCommand,
|
|
15
|
+
DescribeRescoreExecutionPlanCommand,
|
|
16
|
+
ListRescoreExecutionPlansCommand,
|
|
17
|
+
ListTagsForResourceCommand,
|
|
18
|
+
RescoreCommand,
|
|
19
|
+
TagResourceCommand,
|
|
20
|
+
UntagResourceCommand,
|
|
21
|
+
UpdateRescoreExecutionPlanCommand,
|
|
22
|
+
};
|
|
11
23
|
export class KendraRanking extends KendraRankingClient {
|
|
12
|
-
createRescoreExecutionPlan(args, optionsOrCb, cb) {
|
|
13
|
-
const command = new CreateRescoreExecutionPlanCommand(args);
|
|
14
|
-
if (typeof optionsOrCb === "function") {
|
|
15
|
-
this.send(command, optionsOrCb);
|
|
16
|
-
}
|
|
17
|
-
else if (typeof cb === "function") {
|
|
18
|
-
if (typeof optionsOrCb !== "object")
|
|
19
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
20
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
return this.send(command, optionsOrCb);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
deleteRescoreExecutionPlan(args, optionsOrCb, cb) {
|
|
27
|
-
const command = new DeleteRescoreExecutionPlanCommand(args);
|
|
28
|
-
if (typeof optionsOrCb === "function") {
|
|
29
|
-
this.send(command, optionsOrCb);
|
|
30
|
-
}
|
|
31
|
-
else if (typeof cb === "function") {
|
|
32
|
-
if (typeof optionsOrCb !== "object")
|
|
33
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
34
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
return this.send(command, optionsOrCb);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
describeRescoreExecutionPlan(args, optionsOrCb, cb) {
|
|
41
|
-
const command = new DescribeRescoreExecutionPlanCommand(args);
|
|
42
|
-
if (typeof optionsOrCb === "function") {
|
|
43
|
-
this.send(command, optionsOrCb);
|
|
44
|
-
}
|
|
45
|
-
else if (typeof cb === "function") {
|
|
46
|
-
if (typeof optionsOrCb !== "object")
|
|
47
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
48
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
return this.send(command, optionsOrCb);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
listRescoreExecutionPlans(args, optionsOrCb, cb) {
|
|
55
|
-
const command = new ListRescoreExecutionPlansCommand(args);
|
|
56
|
-
if (typeof optionsOrCb === "function") {
|
|
57
|
-
this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
else if (typeof cb === "function") {
|
|
60
|
-
if (typeof optionsOrCb !== "object")
|
|
61
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
62
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return this.send(command, optionsOrCb);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
69
|
-
const command = new ListTagsForResourceCommand(args);
|
|
70
|
-
if (typeof optionsOrCb === "function") {
|
|
71
|
-
this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
else if (typeof cb === "function") {
|
|
74
|
-
if (typeof optionsOrCb !== "object")
|
|
75
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
76
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
return this.send(command, optionsOrCb);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
rescore(args, optionsOrCb, cb) {
|
|
83
|
-
const command = new RescoreCommand(args);
|
|
84
|
-
if (typeof optionsOrCb === "function") {
|
|
85
|
-
this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
else if (typeof cb === "function") {
|
|
88
|
-
if (typeof optionsOrCb !== "object")
|
|
89
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
90
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
return this.send(command, optionsOrCb);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
tagResource(args, optionsOrCb, cb) {
|
|
97
|
-
const command = new TagResourceCommand(args);
|
|
98
|
-
if (typeof optionsOrCb === "function") {
|
|
99
|
-
this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
else if (typeof cb === "function") {
|
|
102
|
-
if (typeof optionsOrCb !== "object")
|
|
103
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
104
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
return this.send(command, optionsOrCb);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
untagResource(args, optionsOrCb, cb) {
|
|
111
|
-
const command = new UntagResourceCommand(args);
|
|
112
|
-
if (typeof optionsOrCb === "function") {
|
|
113
|
-
this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
else if (typeof cb === "function") {
|
|
116
|
-
if (typeof optionsOrCb !== "object")
|
|
117
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
118
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
return this.send(command, optionsOrCb);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
updateRescoreExecutionPlan(args, optionsOrCb, cb) {
|
|
125
|
-
const command = new UpdateRescoreExecutionPlanCommand(args);
|
|
126
|
-
if (typeof optionsOrCb === "function") {
|
|
127
|
-
this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
else if (typeof cb === "function") {
|
|
130
|
-
if (typeof optionsOrCb !== "object")
|
|
131
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
132
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
return this.send(command, optionsOrCb);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
24
|
}
|
|
25
|
+
createAggregatedClient(commands, KendraRanking);
|
|
@@ -534,7 +534,7 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
534
534
|
const se_CreateRescoreExecutionPlanRequest = (input, context) => {
|
|
535
535
|
return take(input, {
|
|
536
536
|
CapacityUnits: _json,
|
|
537
|
-
ClientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
537
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
538
538
|
Description: [],
|
|
539
539
|
Name: [],
|
|
540
540
|
Tags: _json,
|
|
@@ -9,106 +9,67 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
|
|
|
9
9
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
10
10
|
import { UpdateRescoreExecutionPlanCommandInput, UpdateRescoreExecutionPlanCommandOutput } from "./commands/UpdateRescoreExecutionPlanCommand";
|
|
11
11
|
import { KendraRankingClient } from "./KendraRankingClient";
|
|
12
|
-
|
|
13
|
-
* @public
|
|
14
|
-
* <p>Amazon Kendra Intelligent Ranking uses Amazon Kendra
|
|
15
|
-
* semantic search capabilities to intelligently re-rank a search
|
|
16
|
-
* service's results.</p>
|
|
17
|
-
*/
|
|
18
|
-
export declare class KendraRanking extends KendraRankingClient {
|
|
12
|
+
export interface KendraRanking {
|
|
19
13
|
/**
|
|
20
|
-
* @
|
|
21
|
-
* <p>Creates a rescore execution plan. A rescore execution
|
|
22
|
-
* plan is an Amazon Kendra Intelligent Ranking resource
|
|
23
|
-
* used for provisioning the <code>Rescore</code> API. You set
|
|
24
|
-
* the number of capacity units that you require for
|
|
25
|
-
* Amazon Kendra Intelligent Ranking to rescore or re-rank
|
|
26
|
-
* a search service's results.</p>
|
|
27
|
-
* <p>For an example of using the
|
|
28
|
-
* <code>CreateRescoreExecutionPlan</code> API, including using
|
|
29
|
-
* the Python and Java SDKs, see <a href="https://docs.aws.amazon.com/kendra/latest/dg/search-service-rerank.html">Semantically
|
|
30
|
-
* ranking a search service's results</a>.</p>
|
|
14
|
+
* @see {@link CreateRescoreExecutionPlanCommand}
|
|
31
15
|
*/
|
|
32
16
|
createRescoreExecutionPlan(args: CreateRescoreExecutionPlanCommandInput, options?: __HttpHandlerOptions): Promise<CreateRescoreExecutionPlanCommandOutput>;
|
|
33
17
|
createRescoreExecutionPlan(args: CreateRescoreExecutionPlanCommandInput, cb: (err: any, data?: CreateRescoreExecutionPlanCommandOutput) => void): void;
|
|
34
18
|
createRescoreExecutionPlan(args: CreateRescoreExecutionPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateRescoreExecutionPlanCommandOutput) => void): void;
|
|
35
19
|
/**
|
|
36
|
-
* @
|
|
37
|
-
* <p>Deletes a rescore execution plan. A rescore execution
|
|
38
|
-
* plan is an Amazon Kendra Intelligent Ranking resource
|
|
39
|
-
* used for provisioning the <code>Rescore</code> API.</p>
|
|
20
|
+
* @see {@link DeleteRescoreExecutionPlanCommand}
|
|
40
21
|
*/
|
|
41
22
|
deleteRescoreExecutionPlan(args: DeleteRescoreExecutionPlanCommandInput, options?: __HttpHandlerOptions): Promise<DeleteRescoreExecutionPlanCommandOutput>;
|
|
42
23
|
deleteRescoreExecutionPlan(args: DeleteRescoreExecutionPlanCommandInput, cb: (err: any, data?: DeleteRescoreExecutionPlanCommandOutput) => void): void;
|
|
43
24
|
deleteRescoreExecutionPlan(args: DeleteRescoreExecutionPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteRescoreExecutionPlanCommandOutput) => void): void;
|
|
44
25
|
/**
|
|
45
|
-
* @
|
|
46
|
-
* <p>Gets information about a rescore execution plan. A rescore
|
|
47
|
-
* execution plan is an Amazon Kendra Intelligent Ranking
|
|
48
|
-
* resource used for provisioning the <code>Rescore</code> API.</p>
|
|
26
|
+
* @see {@link DescribeRescoreExecutionPlanCommand}
|
|
49
27
|
*/
|
|
50
28
|
describeRescoreExecutionPlan(args: DescribeRescoreExecutionPlanCommandInput, options?: __HttpHandlerOptions): Promise<DescribeRescoreExecutionPlanCommandOutput>;
|
|
51
29
|
describeRescoreExecutionPlan(args: DescribeRescoreExecutionPlanCommandInput, cb: (err: any, data?: DescribeRescoreExecutionPlanCommandOutput) => void): void;
|
|
52
30
|
describeRescoreExecutionPlan(args: DescribeRescoreExecutionPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeRescoreExecutionPlanCommandOutput) => void): void;
|
|
53
31
|
/**
|
|
54
|
-
* @
|
|
55
|
-
* <p>Lists your rescore execution plans. A rescore execution plan
|
|
56
|
-
* is an Amazon Kendra Intelligent Ranking resource used for
|
|
57
|
-
* provisioning the <code>Rescore</code> API.</p>
|
|
32
|
+
* @see {@link ListRescoreExecutionPlansCommand}
|
|
58
33
|
*/
|
|
59
34
|
listRescoreExecutionPlans(args: ListRescoreExecutionPlansCommandInput, options?: __HttpHandlerOptions): Promise<ListRescoreExecutionPlansCommandOutput>;
|
|
60
35
|
listRescoreExecutionPlans(args: ListRescoreExecutionPlansCommandInput, cb: (err: any, data?: ListRescoreExecutionPlansCommandOutput) => void): void;
|
|
61
36
|
listRescoreExecutionPlans(args: ListRescoreExecutionPlansCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRescoreExecutionPlansCommandOutput) => void): void;
|
|
62
37
|
/**
|
|
63
|
-
* @
|
|
64
|
-
* <p>Gets a list of tags associated with a specified resource.
|
|
65
|
-
* A rescore execution plan is an example of a resource that
|
|
66
|
-
* can have tags associated with it.</p>
|
|
38
|
+
* @see {@link ListTagsForResourceCommand}
|
|
67
39
|
*/
|
|
68
40
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
69
41
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
70
42
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
71
43
|
/**
|
|
72
|
-
* @
|
|
73
|
-
* <p>Rescores or re-ranks search results from a search service
|
|
74
|
-
* such as OpenSearch (self managed). You use the semantic search
|
|
75
|
-
* capabilities of Amazon Kendra Intelligent Ranking to
|
|
76
|
-
* improve the search service's results.</p>
|
|
44
|
+
* @see {@link RescoreCommand}
|
|
77
45
|
*/
|
|
78
46
|
rescore(args: RescoreCommandInput, options?: __HttpHandlerOptions): Promise<RescoreCommandOutput>;
|
|
79
47
|
rescore(args: RescoreCommandInput, cb: (err: any, data?: RescoreCommandOutput) => void): void;
|
|
80
48
|
rescore(args: RescoreCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RescoreCommandOutput) => void): void;
|
|
81
49
|
/**
|
|
82
|
-
* @
|
|
83
|
-
* <p>Adds a specified tag to a specified rescore execution
|
|
84
|
-
* plan. A rescore execution plan is an Amazon Kendra
|
|
85
|
-
* Intelligent Ranking resource used for provisioning the
|
|
86
|
-
* <code>Rescore</code> API. If the tag already exists,
|
|
87
|
-
* the existing value is replaced with the new value.</p>
|
|
50
|
+
* @see {@link TagResourceCommand}
|
|
88
51
|
*/
|
|
89
52
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
90
53
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
91
54
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
92
55
|
/**
|
|
93
|
-
* @
|
|
94
|
-
* <p>Removes a tag from a rescore execution plan. A rescore
|
|
95
|
-
* execution plan is an Amazon Kendra Intelligent
|
|
96
|
-
* Ranking resource used for provisioning the
|
|
97
|
-
* <code>Rescore</code> operation.</p>
|
|
56
|
+
* @see {@link UntagResourceCommand}
|
|
98
57
|
*/
|
|
99
58
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
100
59
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
101
60
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
102
61
|
/**
|
|
103
|
-
* @
|
|
104
|
-
* <p>Updates a rescore execution plan. A rescore execution plan
|
|
105
|
-
* is an Amazon Kendra Intelligent Ranking resource used for
|
|
106
|
-
* provisioning the <code>Rescore</code> API. You can update the
|
|
107
|
-
* number of capacity units you require for Amazon Kendra
|
|
108
|
-
* Intelligent Ranking to rescore or re-rank a search service's
|
|
109
|
-
* results.</p>
|
|
62
|
+
* @see {@link UpdateRescoreExecutionPlanCommand}
|
|
110
63
|
*/
|
|
111
64
|
updateRescoreExecutionPlan(args: UpdateRescoreExecutionPlanCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRescoreExecutionPlanCommandOutput>;
|
|
112
65
|
updateRescoreExecutionPlan(args: UpdateRescoreExecutionPlanCommandInput, cb: (err: any, data?: UpdateRescoreExecutionPlanCommandOutput) => void): void;
|
|
113
66
|
updateRescoreExecutionPlan(args: UpdateRescoreExecutionPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRescoreExecutionPlanCommandOutput) => void): void;
|
|
114
67
|
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
* <p>Amazon Kendra Intelligent Ranking uses Amazon Kendra
|
|
71
|
+
* semantic search capabilities to intelligently re-rank a search
|
|
72
|
+
* service's results.</p>
|
|
73
|
+
*/
|
|
74
|
+
export declare class KendraRanking extends KendraRankingClient implements KendraRanking {
|
|
75
|
+
}
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
UpdateRescoreExecutionPlanCommandOutput,
|
|
37
37
|
} from "./commands/UpdateRescoreExecutionPlanCommand";
|
|
38
38
|
import { KendraRankingClient } from "./KendraRankingClient";
|
|
39
|
-
export
|
|
39
|
+
export interface KendraRanking {
|
|
40
40
|
createRescoreExecutionPlan(
|
|
41
41
|
args: CreateRescoreExecutionPlanCommandInput,
|
|
42
42
|
options?: __HttpHandlerOptions
|
|
@@ -155,3 +155,6 @@ export declare class KendraRanking extends KendraRankingClient {
|
|
|
155
155
|
cb: (err: any, data?: UpdateRescoreExecutionPlanCommandOutput) => void
|
|
156
156
|
): void;
|
|
157
157
|
}
|
|
158
|
+
export declare class KendraRanking
|
|
159
|
+
extends KendraRankingClient
|
|
160
|
+
implements KendraRanking {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kendra-ranking",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kendra Ranking Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.319.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.319.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.319.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.310.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.310.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.310.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.319.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.319.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|