@aws-sdk/client-kendra-ranking 3.247.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/LICENSE +201 -0
- package/README.md +207 -0
- package/dist-cjs/KendraRanking.js +142 -0
- package/dist-cjs/KendraRankingClient.js +40 -0
- package/dist-cjs/commands/CreateRescoreExecutionPlanCommand.js +45 -0
- package/dist-cjs/commands/DeleteRescoreExecutionPlanCommand.js +45 -0
- package/dist-cjs/commands/DescribeRescoreExecutionPlanCommand.js +45 -0
- package/dist-cjs/commands/ListRescoreExecutionPlansCommand.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +45 -0
- package/dist-cjs/commands/RescoreCommand.js +45 -0
- package/dist-cjs/commands/TagResourceCommand.js +45 -0
- package/dist-cjs/commands/UntagResourceCommand.js +45 -0
- package/dist-cjs/commands/UpdateRescoreExecutionPlanCommand.js +45 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/endpoint/EndpointParameters.js +11 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/KendraRankingServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +208 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListRescoreExecutionPlansPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_json1_0.js +928 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +51 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/KendraRanking.js +138 -0
- package/dist-es/KendraRankingClient.js +36 -0
- package/dist-es/commands/CreateRescoreExecutionPlanCommand.js +41 -0
- package/dist-es/commands/DeleteRescoreExecutionPlanCommand.js +41 -0
- package/dist-es/commands/DescribeRescoreExecutionPlanCommand.js +41 -0
- package/dist-es/commands/ListRescoreExecutionPlansCommand.js +41 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
- package/dist-es/commands/RescoreCommand.js +41 -0
- package/dist-es/commands/TagResourceCommand.js +41 -0
- package/dist-es/commands/UntagResourceCommand.js +41 -0
- package/dist-es/commands/UpdateRescoreExecutionPlanCommand.js +41 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoint/EndpointParameters.js +7 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/KendraRankingServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +176 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListRescoreExecutionPlansPaginator.js +32 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_0.js +907 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +46 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/KendraRanking.d.ts +104 -0
- package/dist-types/KendraRankingClient.d.ts +152 -0
- package/dist-types/commands/CreateRescoreExecutionPlanCommand.d.ts +46 -0
- package/dist-types/commands/DeleteRescoreExecutionPlanCommand.d.ts +39 -0
- package/dist-types/commands/DescribeRescoreExecutionPlanCommand.d.ts +39 -0
- package/dist-types/commands/ListRescoreExecutionPlansCommand.d.ts +39 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/commands/RescoreCommand.d.ts +40 -0
- package/dist-types/commands/TagResourceCommand.d.ts +41 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +40 -0
- package/dist-types/commands/UpdateRescoreExecutionPlanCommand.d.ts +42 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +17 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/KendraRankingServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +600 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListRescoreExecutionPlansPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +29 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/KendraRanking.d.ts +157 -0
- package/dist-types/ts3.4/KendraRankingClient.d.ts +166 -0
- package/dist-types/ts3.4/commands/CreateRescoreExecutionPlanCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteRescoreExecutionPlanCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeRescoreExecutionPlanCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListRescoreExecutionPlansCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RescoreCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateRescoreExecutionPlanCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/KendraRankingServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +224 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListRescoreExecutionPlansPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +113 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +105 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { KendraRankingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraRankingClient";
|
|
5
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
6
|
+
export interface TagResourceCommandInput extends TagResourceRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Adds a specified tag to a specified rescore execution
|
|
12
|
+
* plan. A rescore execution plan is an Amazon Kendra
|
|
13
|
+
* Intelligent Ranking resource used for provisioning the
|
|
14
|
+
* <code>Rescore</code> API. If the tag already exists,
|
|
15
|
+
* the existing value is replaced with the new value.</p>
|
|
16
|
+
* @example
|
|
17
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
18
|
+
* ```javascript
|
|
19
|
+
* import { KendraRankingClient, TagResourceCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
20
|
+
* // const { KendraRankingClient, TagResourceCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
21
|
+
* const client = new KendraRankingClient(config);
|
|
22
|
+
* const command = new TagResourceCommand(input);
|
|
23
|
+
* const response = await client.send(command);
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
27
|
+
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
28
|
+
* @see {@link KendraRankingClientResolvedConfig | config} for KendraRankingClient's `config` shape.
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
export declare class TagResourceCommand extends $Command<TagResourceCommandInput, TagResourceCommandOutput, KendraRankingClientResolvedConfig> {
|
|
32
|
+
readonly input: TagResourceCommandInput;
|
|
33
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
34
|
+
constructor(input: TagResourceCommandInput);
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KendraRankingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
|
|
39
|
+
private serialize;
|
|
40
|
+
private deserialize;
|
|
41
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { KendraRankingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraRankingClient";
|
|
5
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
6
|
+
export interface UntagResourceCommandInput extends UntagResourceRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Removes a tag from a rescore execution plan. A rescore
|
|
12
|
+
* execution plan is an Amazon Kendra Intelligent
|
|
13
|
+
* Ranking resource used for provisioning the
|
|
14
|
+
* <code>Rescore</code> operation.</p>
|
|
15
|
+
* @example
|
|
16
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
17
|
+
* ```javascript
|
|
18
|
+
* import { KendraRankingClient, UntagResourceCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
19
|
+
* // const { KendraRankingClient, UntagResourceCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
20
|
+
* const client = new KendraRankingClient(config);
|
|
21
|
+
* const command = new UntagResourceCommand(input);
|
|
22
|
+
* const response = await client.send(command);
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
26
|
+
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
27
|
+
* @see {@link KendraRankingClientResolvedConfig | config} for KendraRankingClient's `config` shape.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
export declare class UntagResourceCommand extends $Command<UntagResourceCommandInput, UntagResourceCommandOutput, KendraRankingClientResolvedConfig> {
|
|
31
|
+
readonly input: UntagResourceCommandInput;
|
|
32
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
33
|
+
constructor(input: UntagResourceCommandInput);
|
|
34
|
+
/**
|
|
35
|
+
* @internal
|
|
36
|
+
*/
|
|
37
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KendraRankingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
|
|
38
|
+
private serialize;
|
|
39
|
+
private deserialize;
|
|
40
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { KendraRankingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KendraRankingClient";
|
|
5
|
+
import { UpdateRescoreExecutionPlanRequest } from "../models/models_0";
|
|
6
|
+
export interface UpdateRescoreExecutionPlanCommandInput extends UpdateRescoreExecutionPlanRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateRescoreExecutionPlanCommandOutput extends __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Updates a rescore execution plan. A rescore execution plan
|
|
12
|
+
* is an Amazon Kendra Intelligent Ranking resource used for
|
|
13
|
+
* provisioning the <code>Rescore</code> API. You can update the
|
|
14
|
+
* number of capacity units you require for Amazon Kendra
|
|
15
|
+
* Intelligent Ranking to rescore or re-rank a search service's
|
|
16
|
+
* results.</p>
|
|
17
|
+
* @example
|
|
18
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
19
|
+
* ```javascript
|
|
20
|
+
* import { KendraRankingClient, UpdateRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
|
|
21
|
+
* // const { KendraRankingClient, UpdateRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
|
|
22
|
+
* const client = new KendraRankingClient(config);
|
|
23
|
+
* const command = new UpdateRescoreExecutionPlanCommand(input);
|
|
24
|
+
* const response = await client.send(command);
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @see {@link UpdateRescoreExecutionPlanCommandInput} for command's `input` shape.
|
|
28
|
+
* @see {@link UpdateRescoreExecutionPlanCommandOutput} for command's `response` shape.
|
|
29
|
+
* @see {@link KendraRankingClientResolvedConfig | config} for KendraRankingClient's `config` shape.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
export declare class UpdateRescoreExecutionPlanCommand extends $Command<UpdateRescoreExecutionPlanCommandInput, UpdateRescoreExecutionPlanCommandOutput, KendraRankingClientResolvedConfig> {
|
|
33
|
+
readonly input: UpdateRescoreExecutionPlanCommandInput;
|
|
34
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
35
|
+
constructor(input: UpdateRescoreExecutionPlanCommandInput);
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KendraRankingClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateRescoreExecutionPlanCommandInput, UpdateRescoreExecutionPlanCommandOutput>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./CreateRescoreExecutionPlanCommand";
|
|
2
|
+
export * from "./DeleteRescoreExecutionPlanCommand";
|
|
3
|
+
export * from "./DescribeRescoreExecutionPlanCommand";
|
|
4
|
+
export * from "./ListRescoreExecutionPlansCommand";
|
|
5
|
+
export * from "./ListTagsForResourceCommand";
|
|
6
|
+
export * from "./RescoreCommand";
|
|
7
|
+
export * from "./TagResourceCommand";
|
|
8
|
+
export * from "./UntagResourceCommand";
|
|
9
|
+
export * from "./UpdateRescoreExecutionPlanCommand";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";
|
|
2
|
+
export interface ClientInputEndpointParameters {
|
|
3
|
+
region?: string | Provider<string>;
|
|
4
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
5
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
6
|
+
}
|
|
7
|
+
export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
8
|
+
defaultSigningName: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
11
|
+
defaultSigningName: string;
|
|
12
|
+
};
|
|
13
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
14
|
+
Region: string;
|
|
15
|
+
UseFIPS?: boolean;
|
|
16
|
+
Endpoint?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
|
|
2
|
+
/**
|
|
3
|
+
* Base exception class for all service exceptions from KendraRanking service.
|
|
4
|
+
*/
|
|
5
|
+
export declare class KendraRankingServiceException extends __ServiceException {
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
constructor(options: __ServiceExceptionOptions);
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|