@aws-sdk/client-kendra-ranking 3.299.0 → 3.301.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-types/commands/CreateRescoreExecutionPlanCommand.d.ts +14 -0
- package/dist-types/commands/DeleteRescoreExecutionPlanCommand.d.ts +3 -0
- package/dist-types/commands/DescribeRescoreExecutionPlanCommand.d.ts +3 -0
- package/dist-types/commands/ListRescoreExecutionPlansCommand.d.ts +4 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -0
- package/dist-types/commands/RescoreCommand.d.ts +19 -0
- package/dist-types/commands/TagResourceCommand.d.ts +9 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +6 -0
- package/dist-types/commands/UpdateRescoreExecutionPlanCommand.d.ts +8 -0
- package/package.json +8 -8
|
@@ -35,6 +35,20 @@ export interface CreateRescoreExecutionPlanCommandOutput extends CreateRescoreEx
|
|
|
35
35
|
* import { KendraRankingClient, CreateRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
36
36
|
* // const { KendraRankingClient, CreateRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
37
37
|
* const client = new KendraRankingClient(config);
|
|
38
|
+
* const input = { // CreateRescoreExecutionPlanRequest
|
|
39
|
+
* Name: "STRING_VALUE", // required
|
|
40
|
+
* Description: "STRING_VALUE",
|
|
41
|
+
* CapacityUnits: { // CapacityUnitsConfiguration
|
|
42
|
+
* RescoreCapacityUnits: Number("int"), // required
|
|
43
|
+
* },
|
|
44
|
+
* Tags: [ // TagList
|
|
45
|
+
* { // Tag
|
|
46
|
+
* Key: "STRING_VALUE", // required
|
|
47
|
+
* Value: "STRING_VALUE", // required
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* ClientToken: "STRING_VALUE",
|
|
51
|
+
* };
|
|
38
52
|
* const command = new CreateRescoreExecutionPlanCommand(input);
|
|
39
53
|
* const response = await client.send(command);
|
|
40
54
|
* ```
|
|
@@ -28,6 +28,9 @@ export interface DeleteRescoreExecutionPlanCommandOutput extends __MetadataBeare
|
|
|
28
28
|
* import { KendraRankingClient, DeleteRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
29
29
|
* // const { KendraRankingClient, DeleteRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
30
30
|
* const client = new KendraRankingClient(config);
|
|
31
|
+
* const input = { // DeleteRescoreExecutionPlanRequest
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
31
34
|
* const command = new DeleteRescoreExecutionPlanCommand(input);
|
|
32
35
|
* const response = await client.send(command);
|
|
33
36
|
* ```
|
|
@@ -28,6 +28,9 @@ export interface DescribeRescoreExecutionPlanCommandOutput extends DescribeResco
|
|
|
28
28
|
* import { KendraRankingClient, DescribeRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
29
29
|
* // const { KendraRankingClient, DescribeRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
30
30
|
* const client = new KendraRankingClient(config);
|
|
31
|
+
* const input = { // DescribeRescoreExecutionPlanRequest
|
|
32
|
+
* Id: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
31
34
|
* const command = new DescribeRescoreExecutionPlanCommand(input);
|
|
32
35
|
* const response = await client.send(command);
|
|
33
36
|
* ```
|
|
@@ -28,6 +28,10 @@ export interface ListRescoreExecutionPlansCommandOutput extends ListRescoreExecu
|
|
|
28
28
|
* import { KendraRankingClient, ListRescoreExecutionPlansCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
29
29
|
* // const { KendraRankingClient, ListRescoreExecutionPlansCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
30
30
|
* const client = new KendraRankingClient(config);
|
|
31
|
+
* const input = { // ListRescoreExecutionPlansRequest
|
|
32
|
+
* NextToken: "STRING_VALUE",
|
|
33
|
+
* MaxResults: Number("int"),
|
|
34
|
+
* };
|
|
31
35
|
* const command = new ListRescoreExecutionPlansCommand(input);
|
|
32
36
|
* const response = await client.send(command);
|
|
33
37
|
* ```
|
|
@@ -28,6 +28,9 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
28
28
|
* import { KendraRankingClient, ListTagsForResourceCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
29
29
|
* // const { KendraRankingClient, ListTagsForResourceCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
30
30
|
* const client = new KendraRankingClient(config);
|
|
31
|
+
* const input = { // ListTagsForResourceRequest
|
|
32
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
33
|
+
* };
|
|
31
34
|
* const command = new ListTagsForResourceCommand(input);
|
|
32
35
|
* const response = await client.send(command);
|
|
33
36
|
* ```
|
|
@@ -29,6 +29,25 @@ export interface RescoreCommandOutput extends RescoreResult, __MetadataBearer {
|
|
|
29
29
|
* import { KendraRankingClient, RescoreCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
30
30
|
* // const { KendraRankingClient, RescoreCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
31
31
|
* const client = new KendraRankingClient(config);
|
|
32
|
+
* const input = { // RescoreRequest
|
|
33
|
+
* RescoreExecutionPlanId: "STRING_VALUE", // required
|
|
34
|
+
* SearchQuery: "STRING_VALUE", // required
|
|
35
|
+
* Documents: [ // DocumentList // required
|
|
36
|
+
* { // Document
|
|
37
|
+
* Id: "STRING_VALUE", // required
|
|
38
|
+
* GroupId: "STRING_VALUE",
|
|
39
|
+
* Title: "STRING_VALUE",
|
|
40
|
+
* Body: "STRING_VALUE",
|
|
41
|
+
* TokenizedTitle: [ // TitleTokensList
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* TokenizedBody: [ // BodyTokensList
|
|
45
|
+
* "STRING_VALUE",
|
|
46
|
+
* ],
|
|
47
|
+
* OriginalScore: Number("float"), // required
|
|
48
|
+
* },
|
|
49
|
+
* ],
|
|
50
|
+
* };
|
|
32
51
|
* const command = new RescoreCommand(input);
|
|
33
52
|
* const response = await client.send(command);
|
|
34
53
|
* ```
|
|
@@ -30,6 +30,15 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
30
30
|
* import { KendraRankingClient, TagResourceCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
31
31
|
* // const { KendraRankingClient, TagResourceCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
32
32
|
* const client = new KendraRankingClient(config);
|
|
33
|
+
* const input = { // TagResourceRequest
|
|
34
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
35
|
+
* Tags: [ // TagList // required
|
|
36
|
+
* { // Tag
|
|
37
|
+
* Key: "STRING_VALUE", // required
|
|
38
|
+
* Value: "STRING_VALUE", // required
|
|
39
|
+
* },
|
|
40
|
+
* ],
|
|
41
|
+
* };
|
|
33
42
|
* const command = new TagResourceCommand(input);
|
|
34
43
|
* const response = await client.send(command);
|
|
35
44
|
* ```
|
|
@@ -29,6 +29,12 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
29
29
|
* import { KendraRankingClient, UntagResourceCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
30
30
|
* // const { KendraRankingClient, UntagResourceCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
31
31
|
* const client = new KendraRankingClient(config);
|
|
32
|
+
* const input = { // UntagResourceRequest
|
|
33
|
+
* ResourceARN: "STRING_VALUE", // required
|
|
34
|
+
* TagKeys: [ // TagKeyList // required
|
|
35
|
+
* "STRING_VALUE",
|
|
36
|
+
* ],
|
|
37
|
+
* };
|
|
32
38
|
* const command = new UntagResourceCommand(input);
|
|
33
39
|
* const response = await client.send(command);
|
|
34
40
|
* ```
|
|
@@ -31,6 +31,14 @@ export interface UpdateRescoreExecutionPlanCommandOutput extends __MetadataBeare
|
|
|
31
31
|
* import { KendraRankingClient, UpdateRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
32
32
|
* // const { KendraRankingClient, UpdateRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
33
33
|
* const client = new KendraRankingClient(config);
|
|
34
|
+
* const input = { // UpdateRescoreExecutionPlanRequest
|
|
35
|
+
* Id: "STRING_VALUE", // required
|
|
36
|
+
* Name: "STRING_VALUE",
|
|
37
|
+
* Description: "STRING_VALUE",
|
|
38
|
+
* CapacityUnits: { // CapacityUnitsConfiguration
|
|
39
|
+
* RescoreCapacityUnits: Number("int"), // required
|
|
40
|
+
* },
|
|
41
|
+
* };
|
|
34
42
|
* const command = new UpdateRescoreExecutionPlanCommand(input);
|
|
35
43
|
* const response = await client.send(command);
|
|
36
44
|
* ```
|
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.301.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.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.301.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.300.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.301.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.296.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.296.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.296.0",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@aws-sdk/middleware-host-header": "3.296.0",
|
|
33
33
|
"@aws-sdk/middleware-logger": "3.296.0",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "3.296.0",
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.300.0",
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.296.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.299.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.296.0",
|
|
39
39
|
"@aws-sdk/middleware-user-agent": "3.299.0",
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.300.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.296.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.296.0",
|
|
43
43
|
"@aws-sdk/smithy-client": "3.296.0",
|
|
@@ -47,11 +47,11 @@
|
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.295.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.295.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-browser": "3.296.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.300.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.296.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.296.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.299.0",
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.300.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.295.0",
|
|
56
56
|
"tslib": "^2.5.0",
|
|
57
57
|
"uuid": "^8.3.2"
|