@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.
Files changed (111) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +207 -0
  3. package/dist-cjs/KendraRanking.js +142 -0
  4. package/dist-cjs/KendraRankingClient.js +40 -0
  5. package/dist-cjs/commands/CreateRescoreExecutionPlanCommand.js +45 -0
  6. package/dist-cjs/commands/DeleteRescoreExecutionPlanCommand.js +45 -0
  7. package/dist-cjs/commands/DescribeRescoreExecutionPlanCommand.js +45 -0
  8. package/dist-cjs/commands/ListRescoreExecutionPlansCommand.js +45 -0
  9. package/dist-cjs/commands/ListTagsForResourceCommand.js +45 -0
  10. package/dist-cjs/commands/RescoreCommand.js +45 -0
  11. package/dist-cjs/commands/TagResourceCommand.js +45 -0
  12. package/dist-cjs/commands/UntagResourceCommand.js +45 -0
  13. package/dist-cjs/commands/UpdateRescoreExecutionPlanCommand.js +45 -0
  14. package/dist-cjs/commands/index.js +12 -0
  15. package/dist-cjs/endpoint/EndpointParameters.js +11 -0
  16. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  17. package/dist-cjs/endpoint/ruleset.js +7 -0
  18. package/dist-cjs/index.js +11 -0
  19. package/dist-cjs/models/KendraRankingServiceException.js +11 -0
  20. package/dist-cjs/models/index.js +4 -0
  21. package/dist-cjs/models/models_0.js +208 -0
  22. package/dist-cjs/pagination/Interfaces.js +2 -0
  23. package/dist-cjs/pagination/ListRescoreExecutionPlansPaginator.js +36 -0
  24. package/dist-cjs/pagination/index.js +5 -0
  25. package/dist-cjs/protocols/Aws_json1_0.js +928 -0
  26. package/dist-cjs/runtimeConfig.browser.js +42 -0
  27. package/dist-cjs/runtimeConfig.js +51 -0
  28. package/dist-cjs/runtimeConfig.native.js +15 -0
  29. package/dist-cjs/runtimeConfig.shared.js +18 -0
  30. package/dist-es/KendraRanking.js +138 -0
  31. package/dist-es/KendraRankingClient.js +36 -0
  32. package/dist-es/commands/CreateRescoreExecutionPlanCommand.js +41 -0
  33. package/dist-es/commands/DeleteRescoreExecutionPlanCommand.js +41 -0
  34. package/dist-es/commands/DescribeRescoreExecutionPlanCommand.js +41 -0
  35. package/dist-es/commands/ListRescoreExecutionPlansCommand.js +41 -0
  36. package/dist-es/commands/ListTagsForResourceCommand.js +41 -0
  37. package/dist-es/commands/RescoreCommand.js +41 -0
  38. package/dist-es/commands/TagResourceCommand.js +41 -0
  39. package/dist-es/commands/UntagResourceCommand.js +41 -0
  40. package/dist-es/commands/UpdateRescoreExecutionPlanCommand.js +41 -0
  41. package/dist-es/commands/index.js +9 -0
  42. package/dist-es/endpoint/EndpointParameters.js +7 -0
  43. package/dist-es/endpoint/endpointResolver.js +8 -0
  44. package/dist-es/endpoint/ruleset.js +4 -0
  45. package/dist-es/index.js +6 -0
  46. package/dist-es/models/KendraRankingServiceException.js +7 -0
  47. package/dist-es/models/index.js +1 -0
  48. package/dist-es/models/models_0.js +176 -0
  49. package/dist-es/pagination/Interfaces.js +1 -0
  50. package/dist-es/pagination/ListRescoreExecutionPlansPaginator.js +32 -0
  51. package/dist-es/pagination/index.js +2 -0
  52. package/dist-es/protocols/Aws_json1_0.js +907 -0
  53. package/dist-es/runtimeConfig.browser.js +37 -0
  54. package/dist-es/runtimeConfig.js +46 -0
  55. package/dist-es/runtimeConfig.native.js +11 -0
  56. package/dist-es/runtimeConfig.shared.js +14 -0
  57. package/dist-types/KendraRanking.d.ts +104 -0
  58. package/dist-types/KendraRankingClient.d.ts +152 -0
  59. package/dist-types/commands/CreateRescoreExecutionPlanCommand.d.ts +46 -0
  60. package/dist-types/commands/DeleteRescoreExecutionPlanCommand.d.ts +39 -0
  61. package/dist-types/commands/DescribeRescoreExecutionPlanCommand.d.ts +39 -0
  62. package/dist-types/commands/ListRescoreExecutionPlansCommand.d.ts +39 -0
  63. package/dist-types/commands/ListTagsForResourceCommand.d.ts +39 -0
  64. package/dist-types/commands/RescoreCommand.d.ts +40 -0
  65. package/dist-types/commands/TagResourceCommand.d.ts +41 -0
  66. package/dist-types/commands/UntagResourceCommand.d.ts +40 -0
  67. package/dist-types/commands/UpdateRescoreExecutionPlanCommand.d.ts +42 -0
  68. package/dist-types/commands/index.d.ts +9 -0
  69. package/dist-types/endpoint/EndpointParameters.d.ts +17 -0
  70. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  71. package/dist-types/endpoint/ruleset.d.ts +2 -0
  72. package/dist-types/index.d.ts +6 -0
  73. package/dist-types/models/KendraRankingServiceException.d.ts +10 -0
  74. package/dist-types/models/index.d.ts +1 -0
  75. package/dist-types/models/models_0.d.ts +600 -0
  76. package/dist-types/pagination/Interfaces.d.ts +6 -0
  77. package/dist-types/pagination/ListRescoreExecutionPlansPaginator.d.ts +4 -0
  78. package/dist-types/pagination/index.d.ts +2 -0
  79. package/dist-types/protocols/Aws_json1_0.d.ts +29 -0
  80. package/dist-types/runtimeConfig.browser.d.ts +42 -0
  81. package/dist-types/runtimeConfig.d.ts +42 -0
  82. package/dist-types/runtimeConfig.native.d.ts +41 -0
  83. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  84. package/dist-types/ts3.4/KendraRanking.d.ts +157 -0
  85. package/dist-types/ts3.4/KendraRankingClient.d.ts +166 -0
  86. package/dist-types/ts3.4/commands/CreateRescoreExecutionPlanCommand.d.ts +41 -0
  87. package/dist-types/ts3.4/commands/DeleteRescoreExecutionPlanCommand.d.ts +37 -0
  88. package/dist-types/ts3.4/commands/DescribeRescoreExecutionPlanCommand.d.ts +41 -0
  89. package/dist-types/ts3.4/commands/ListRescoreExecutionPlansCommand.d.ts +41 -0
  90. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
  91. package/dist-types/ts3.4/commands/RescoreCommand.d.ts +32 -0
  92. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
  93. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
  94. package/dist-types/ts3.4/commands/UpdateRescoreExecutionPlanCommand.d.ts +37 -0
  95. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  96. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +32 -0
  97. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  98. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  99. package/dist-types/ts3.4/index.d.ts +6 -0
  100. package/dist-types/ts3.4/models/KendraRankingServiceException.d.ts +7 -0
  101. package/dist-types/ts3.4/models/index.d.ts +1 -0
  102. package/dist-types/ts3.4/models/models_0.d.ts +224 -0
  103. package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
  104. package/dist-types/ts3.4/pagination/ListRescoreExecutionPlansPaginator.d.ts +11 -0
  105. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  106. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +113 -0
  107. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
  108. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  109. package/dist-types/ts3.4/runtimeConfig.native.d.ts +80 -0
  110. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
  111. package/package.json +105 -0
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteRescoreExecutionPlanCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class DeleteRescoreExecutionPlanCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteRescoreExecutionPlanCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraRankingClient";
27
+ const commandName = "DeleteRescoreExecutionPlanCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: models_0_1.DeleteRescoreExecutionPlanRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: (output) => output,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_0_1.serializeAws_json1_0DeleteRescoreExecutionPlanCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_0_1.deserializeAws_json1_0DeleteRescoreExecutionPlanCommand)(output, context);
43
+ }
44
+ }
45
+ exports.DeleteRescoreExecutionPlanCommand = DeleteRescoreExecutionPlanCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeRescoreExecutionPlanCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class DescribeRescoreExecutionPlanCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeRescoreExecutionPlanCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraRankingClient";
27
+ const commandName = "DescribeRescoreExecutionPlanCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: models_0_1.DescribeRescoreExecutionPlanRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: models_0_1.DescribeRescoreExecutionPlanResponseFilterSensitiveLog,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_0_1.serializeAws_json1_0DescribeRescoreExecutionPlanCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_0_1.deserializeAws_json1_0DescribeRescoreExecutionPlanCommand)(output, context);
43
+ }
44
+ }
45
+ exports.DescribeRescoreExecutionPlanCommand = DescribeRescoreExecutionPlanCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListRescoreExecutionPlansCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class ListRescoreExecutionPlansCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListRescoreExecutionPlansCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraRankingClient";
27
+ const commandName = "ListRescoreExecutionPlansCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: models_0_1.ListRescoreExecutionPlansRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: models_0_1.ListRescoreExecutionPlansResponseFilterSensitiveLog,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_0_1.serializeAws_json1_0ListRescoreExecutionPlansCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_0_1.deserializeAws_json1_0ListRescoreExecutionPlansCommand)(output, context);
43
+ }
44
+ }
45
+ exports.ListRescoreExecutionPlansCommand = ListRescoreExecutionPlansCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTagsForResourceCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class ListTagsForResourceCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraRankingClient";
27
+ const commandName = "ListTagsForResourceCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: models_0_1.ListTagsForResourceRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: models_0_1.ListTagsForResourceResponseFilterSensitiveLog,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_0_1.serializeAws_json1_0ListTagsForResourceCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_0_1.deserializeAws_json1_0ListTagsForResourceCommand)(output, context);
43
+ }
44
+ }
45
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RescoreCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class RescoreCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RescoreCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraRankingClient";
27
+ const commandName = "RescoreCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: models_0_1.RescoreRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: models_0_1.RescoreResultFilterSensitiveLog,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_0_1.serializeAws_json1_0RescoreCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_0_1.deserializeAws_json1_0RescoreCommand)(output, context);
43
+ }
44
+ }
45
+ exports.RescoreCommand = RescoreCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TagResourceCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class TagResourceCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TagResourceCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraRankingClient";
27
+ const commandName = "TagResourceCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: models_0_1.TagResourceRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: models_0_1.TagResourceResponseFilterSensitiveLog,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_0_1.serializeAws_json1_0TagResourceCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_0_1.deserializeAws_json1_0TagResourceCommand)(output, context);
43
+ }
44
+ }
45
+ exports.TagResourceCommand = TagResourceCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResourceCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class UntagResourceCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UntagResourceCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraRankingClient";
27
+ const commandName = "UntagResourceCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: models_0_1.UntagResourceRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: models_0_1.UntagResourceResponseFilterSensitiveLog,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_0_1.serializeAws_json1_0UntagResourceCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_0_1.deserializeAws_json1_0UntagResourceCommand)(output, context);
43
+ }
44
+ }
45
+ exports.UntagResourceCommand = UntagResourceCommand;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRescoreExecutionPlanCommand = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ const models_0_1 = require("../models/models_0");
8
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
9
+ class UpdateRescoreExecutionPlanCommand extends smithy_client_1.Command {
10
+ constructor(input) {
11
+ super();
12
+ this.input = input;
13
+ }
14
+ static getEndpointParameterInstructions() {
15
+ return {
16
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
17
+ Endpoint: { type: "builtInParams", name: "endpoint" },
18
+ Region: { type: "builtInParams", name: "region" },
19
+ };
20
+ }
21
+ resolveMiddleware(clientStack, configuration, options) {
22
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
23
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateRescoreExecutionPlanCommand.getEndpointParameterInstructions()));
24
+ const stack = clientStack.concat(this.middlewareStack);
25
+ const { logger } = configuration;
26
+ const clientName = "KendraRankingClient";
27
+ const commandName = "UpdateRescoreExecutionPlanCommand";
28
+ const handlerExecutionContext = {
29
+ logger,
30
+ clientName,
31
+ commandName,
32
+ inputFilterSensitiveLog: models_0_1.UpdateRescoreExecutionPlanRequestFilterSensitiveLog,
33
+ outputFilterSensitiveLog: (output) => output,
34
+ };
35
+ const { requestHandler } = configuration;
36
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
+ }
38
+ serialize(input, context) {
39
+ return (0, Aws_json1_0_1.serializeAws_json1_0UpdateRescoreExecutionPlanCommand)(input, context);
40
+ }
41
+ deserialize(output, context) {
42
+ return (0, Aws_json1_0_1.deserializeAws_json1_0UpdateRescoreExecutionPlanCommand)(output, context);
43
+ }
44
+ }
45
+ exports.UpdateRescoreExecutionPlanCommand = UpdateRescoreExecutionPlanCommand;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateRescoreExecutionPlanCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeleteRescoreExecutionPlanCommand"), exports);
6
+ tslib_1.__exportStar(require("./DescribeRescoreExecutionPlanCommand"), exports);
7
+ tslib_1.__exportStar(require("./ListRescoreExecutionPlansCommand"), exports);
8
+ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
9
+ tslib_1.__exportStar(require("./RescoreCommand"), exports);
10
+ tslib_1.__exportStar(require("./TagResourceCommand"), exports);
11
+ tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
12
+ tslib_1.__exportStar(require("./UpdateRescoreExecutionPlanCommand"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveClientEndpointParameters = void 0;
4
+ const resolveClientEndpointParameters = (options) => {
5
+ return {
6
+ ...options,
7
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
8
+ defaultSigningName: "kendra-ranking",
9
+ };
10
+ };
11
+ exports.resolveClientEndpointParameters = resolveClientEndpointParameters;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultEndpointResolver = void 0;
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const ruleset_1 = require("./ruleset");
6
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
7
+ return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ endpointParams: endpointParams,
9
+ logger: context.logger,
10
+ });
11
+ };
12
+ exports.defaultEndpointResolver = defaultEndpointResolver;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ruleSet = void 0;
4
+ const p = "argv", q = "ref";
5
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "booleanEquals", g = "error", h = "endpoint", i = "getAttr", j = { [q]: "Endpoint" }, k = {}, l = { [q]: d }, m = { [g]: "FIPS is enabled but this partition does not support FIPS", "type": g }, n = [{ "fn": f, [p]: [{ [q]: "UseFIPS" }, true] }], o = [{ "fn": f, [p]: [true, { "fn": i, [p]: [l, "supportsFIPS"] }] }];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseFIPS: { required: a, default: b, type: "Boolean" }, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ fn: "aws.partition", [p]: [{ [q]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ fn: "isSet", [p]: [j] }], type: e, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: g }, { endpoint: { url: j, properties: k, headers: k }, type: h }] }, { type: e, rules: [{ conditions: [{ fn: f, [p]: [a, { fn: i, [p]: [l, "supportsDualStack"] }] }], type: e, rules: [{ conditions: n, type: e, rules: [{ conditions: o, type: e, rules: [{ endpoint: { url: "https://kendra-ranking-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: h }] }, m] }, { endpoint: { url: "https://kendra-ranking.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: h }] }, { type: e, rules: [{ conditions: n, type: e, rules: [{ conditions: o, type: e, rules: [{ endpoint: { url: "https://kendra-ranking-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: h }] }, m] }, { endpoint: { url: "https://kendra-ranking.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: h }] }] }] }] };
7
+ exports.ruleSet = _data;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KendraRankingServiceException = void 0;
4
+ const tslib_1 = require("tslib");
5
+ tslib_1.__exportStar(require("./KendraRanking"), exports);
6
+ tslib_1.__exportStar(require("./KendraRankingClient"), exports);
7
+ tslib_1.__exportStar(require("./commands"), exports);
8
+ tslib_1.__exportStar(require("./models"), exports);
9
+ tslib_1.__exportStar(require("./pagination"), exports);
10
+ var KendraRankingServiceException_1 = require("./models/KendraRankingServiceException");
11
+ Object.defineProperty(exports, "KendraRankingServiceException", { enumerable: true, get: function () { return KendraRankingServiceException_1.KendraRankingServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KendraRankingServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class KendraRankingServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, KendraRankingServiceException.prototype);
9
+ }
10
+ }
11
+ exports.KendraRankingServiceException = KendraRankingServiceException;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./models_0"), exports);
@@ -0,0 +1,208 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRescoreExecutionPlanRequestFilterSensitiveLog = exports.UntagResourceResponseFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceResponseFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RescoreResultFilterSensitiveLog = exports.RescoreResultItemFilterSensitiveLog = exports.RescoreRequestFilterSensitiveLog = exports.DocumentFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListRescoreExecutionPlansResponseFilterSensitiveLog = exports.RescoreExecutionPlanSummaryFilterSensitiveLog = exports.ListRescoreExecutionPlansRequestFilterSensitiveLog = exports.DescribeRescoreExecutionPlanResponseFilterSensitiveLog = exports.DescribeRescoreExecutionPlanRequestFilterSensitiveLog = exports.DeleteRescoreExecutionPlanRequestFilterSensitiveLog = exports.CreateRescoreExecutionPlanResponseFilterSensitiveLog = exports.CreateRescoreExecutionPlanRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.CapacityUnitsConfigurationFilterSensitiveLog = exports.ResourceUnavailableException = exports.RescoreExecutionPlanStatus = exports.ResourceNotFoundException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const KendraRankingServiceException_1 = require("./KendraRankingServiceException");
5
+ class AccessDeniedException extends KendraRankingServiceException_1.KendraRankingServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ class ConflictException extends KendraRankingServiceException_1.KendraRankingServiceException {
20
+ constructor(opts) {
21
+ super({
22
+ name: "ConflictException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ this.name = "ConflictException";
27
+ this.$fault = "client";
28
+ Object.setPrototypeOf(this, ConflictException.prototype);
29
+ this.Message = opts.Message;
30
+ }
31
+ }
32
+ exports.ConflictException = ConflictException;
33
+ class InternalServerException extends KendraRankingServiceException_1.KendraRankingServiceException {
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "server",
38
+ ...opts,
39
+ });
40
+ this.name = "InternalServerException";
41
+ this.$fault = "server";
42
+ Object.setPrototypeOf(this, InternalServerException.prototype);
43
+ this.Message = opts.Message;
44
+ }
45
+ }
46
+ exports.InternalServerException = InternalServerException;
47
+ class ServiceQuotaExceededException extends KendraRankingServiceException_1.KendraRankingServiceException {
48
+ constructor(opts) {
49
+ super({
50
+ name: "ServiceQuotaExceededException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ this.name = "ServiceQuotaExceededException";
55
+ this.$fault = "client";
56
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
57
+ this.Message = opts.Message;
58
+ }
59
+ }
60
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
61
+ class ThrottlingException extends KendraRankingServiceException_1.KendraRankingServiceException {
62
+ constructor(opts) {
63
+ super({
64
+ name: "ThrottlingException",
65
+ $fault: "client",
66
+ ...opts,
67
+ });
68
+ this.name = "ThrottlingException";
69
+ this.$fault = "client";
70
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
71
+ this.Message = opts.Message;
72
+ }
73
+ }
74
+ exports.ThrottlingException = ThrottlingException;
75
+ class ValidationException extends KendraRankingServiceException_1.KendraRankingServiceException {
76
+ constructor(opts) {
77
+ super({
78
+ name: "ValidationException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ this.name = "ValidationException";
83
+ this.$fault = "client";
84
+ Object.setPrototypeOf(this, ValidationException.prototype);
85
+ this.Message = opts.Message;
86
+ }
87
+ }
88
+ exports.ValidationException = ValidationException;
89
+ class ResourceNotFoundException extends KendraRankingServiceException_1.KendraRankingServiceException {
90
+ constructor(opts) {
91
+ super({
92
+ name: "ResourceNotFoundException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ this.name = "ResourceNotFoundException";
97
+ this.$fault = "client";
98
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
99
+ this.Message = opts.Message;
100
+ }
101
+ }
102
+ exports.ResourceNotFoundException = ResourceNotFoundException;
103
+ var RescoreExecutionPlanStatus;
104
+ (function (RescoreExecutionPlanStatus) {
105
+ RescoreExecutionPlanStatus["ACTIVE"] = "ACTIVE";
106
+ RescoreExecutionPlanStatus["CREATING"] = "CREATING";
107
+ RescoreExecutionPlanStatus["DELETING"] = "DELETING";
108
+ RescoreExecutionPlanStatus["FAILED"] = "FAILED";
109
+ RescoreExecutionPlanStatus["UPDATING"] = "UPDATING";
110
+ })(RescoreExecutionPlanStatus = exports.RescoreExecutionPlanStatus || (exports.RescoreExecutionPlanStatus = {}));
111
+ class ResourceUnavailableException extends KendraRankingServiceException_1.KendraRankingServiceException {
112
+ constructor(opts) {
113
+ super({
114
+ name: "ResourceUnavailableException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ this.name = "ResourceUnavailableException";
119
+ this.$fault = "client";
120
+ Object.setPrototypeOf(this, ResourceUnavailableException.prototype);
121
+ this.Message = opts.Message;
122
+ }
123
+ }
124
+ exports.ResourceUnavailableException = ResourceUnavailableException;
125
+ const CapacityUnitsConfigurationFilterSensitiveLog = (obj) => ({
126
+ ...obj,
127
+ });
128
+ exports.CapacityUnitsConfigurationFilterSensitiveLog = CapacityUnitsConfigurationFilterSensitiveLog;
129
+ const TagFilterSensitiveLog = (obj) => ({
130
+ ...obj,
131
+ });
132
+ exports.TagFilterSensitiveLog = TagFilterSensitiveLog;
133
+ const CreateRescoreExecutionPlanRequestFilterSensitiveLog = (obj) => ({
134
+ ...obj,
135
+ });
136
+ exports.CreateRescoreExecutionPlanRequestFilterSensitiveLog = CreateRescoreExecutionPlanRequestFilterSensitiveLog;
137
+ const CreateRescoreExecutionPlanResponseFilterSensitiveLog = (obj) => ({
138
+ ...obj,
139
+ });
140
+ exports.CreateRescoreExecutionPlanResponseFilterSensitiveLog = CreateRescoreExecutionPlanResponseFilterSensitiveLog;
141
+ const DeleteRescoreExecutionPlanRequestFilterSensitiveLog = (obj) => ({
142
+ ...obj,
143
+ });
144
+ exports.DeleteRescoreExecutionPlanRequestFilterSensitiveLog = DeleteRescoreExecutionPlanRequestFilterSensitiveLog;
145
+ const DescribeRescoreExecutionPlanRequestFilterSensitiveLog = (obj) => ({
146
+ ...obj,
147
+ });
148
+ exports.DescribeRescoreExecutionPlanRequestFilterSensitiveLog = DescribeRescoreExecutionPlanRequestFilterSensitiveLog;
149
+ const DescribeRescoreExecutionPlanResponseFilterSensitiveLog = (obj) => ({
150
+ ...obj,
151
+ });
152
+ exports.DescribeRescoreExecutionPlanResponseFilterSensitiveLog = DescribeRescoreExecutionPlanResponseFilterSensitiveLog;
153
+ const ListRescoreExecutionPlansRequestFilterSensitiveLog = (obj) => ({
154
+ ...obj,
155
+ });
156
+ exports.ListRescoreExecutionPlansRequestFilterSensitiveLog = ListRescoreExecutionPlansRequestFilterSensitiveLog;
157
+ const RescoreExecutionPlanSummaryFilterSensitiveLog = (obj) => ({
158
+ ...obj,
159
+ });
160
+ exports.RescoreExecutionPlanSummaryFilterSensitiveLog = RescoreExecutionPlanSummaryFilterSensitiveLog;
161
+ const ListRescoreExecutionPlansResponseFilterSensitiveLog = (obj) => ({
162
+ ...obj,
163
+ });
164
+ exports.ListRescoreExecutionPlansResponseFilterSensitiveLog = ListRescoreExecutionPlansResponseFilterSensitiveLog;
165
+ const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
166
+ ...obj,
167
+ });
168
+ exports.ListTagsForResourceRequestFilterSensitiveLog = ListTagsForResourceRequestFilterSensitiveLog;
169
+ const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
170
+ ...obj,
171
+ });
172
+ exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
173
+ const DocumentFilterSensitiveLog = (obj) => ({
174
+ ...obj,
175
+ });
176
+ exports.DocumentFilterSensitiveLog = DocumentFilterSensitiveLog;
177
+ const RescoreRequestFilterSensitiveLog = (obj) => ({
178
+ ...obj,
179
+ });
180
+ exports.RescoreRequestFilterSensitiveLog = RescoreRequestFilterSensitiveLog;
181
+ const RescoreResultItemFilterSensitiveLog = (obj) => ({
182
+ ...obj,
183
+ });
184
+ exports.RescoreResultItemFilterSensitiveLog = RescoreResultItemFilterSensitiveLog;
185
+ const RescoreResultFilterSensitiveLog = (obj) => ({
186
+ ...obj,
187
+ });
188
+ exports.RescoreResultFilterSensitiveLog = RescoreResultFilterSensitiveLog;
189
+ const TagResourceRequestFilterSensitiveLog = (obj) => ({
190
+ ...obj,
191
+ });
192
+ exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
193
+ const TagResourceResponseFilterSensitiveLog = (obj) => ({
194
+ ...obj,
195
+ });
196
+ exports.TagResourceResponseFilterSensitiveLog = TagResourceResponseFilterSensitiveLog;
197
+ const UntagResourceRequestFilterSensitiveLog = (obj) => ({
198
+ ...obj,
199
+ });
200
+ exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
201
+ const UntagResourceResponseFilterSensitiveLog = (obj) => ({
202
+ ...obj,
203
+ });
204
+ exports.UntagResourceResponseFilterSensitiveLog = UntagResourceResponseFilterSensitiveLog;
205
+ const UpdateRescoreExecutionPlanRequestFilterSensitiveLog = (obj) => ({
206
+ ...obj,
207
+ });
208
+ exports.UpdateRescoreExecutionPlanRequestFilterSensitiveLog = UpdateRescoreExecutionPlanRequestFilterSensitiveLog;