@aws-sdk/client-finspace 3.437.0 → 3.439.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/README.md CHANGED
@@ -434,6 +434,14 @@ UpdateEnvironment
434
434
 
435
435
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-finspace/classes/updateenvironmentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-finspace/interfaces/updateenvironmentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-finspace/interfaces/updateenvironmentcommandoutput.html)
436
436
 
437
+ </details>
438
+ <details>
439
+ <summary>
440
+ UpdateKxClusterCodeConfiguration
441
+ </summary>
442
+
443
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-finspace/classes/updatekxclustercodeconfigurationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-finspace/interfaces/updatekxclustercodeconfigurationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-finspace/interfaces/updatekxclustercodeconfigurationcommandoutput.html)
444
+
437
445
  </details>
438
446
  <details>
439
447
  <summary>
@@ -31,6 +31,7 @@ const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceComm
31
31
  const TagResourceCommand_1 = require("./commands/TagResourceCommand");
32
32
  const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
33
33
  const UpdateEnvironmentCommand_1 = require("./commands/UpdateEnvironmentCommand");
34
+ const UpdateKxClusterCodeConfigurationCommand_1 = require("./commands/UpdateKxClusterCodeConfigurationCommand");
34
35
  const UpdateKxClusterDatabasesCommand_1 = require("./commands/UpdateKxClusterDatabasesCommand");
35
36
  const UpdateKxDatabaseCommand_1 = require("./commands/UpdateKxDatabaseCommand");
36
37
  const UpdateKxEnvironmentCommand_1 = require("./commands/UpdateKxEnvironmentCommand");
@@ -67,6 +68,7 @@ const commands = {
67
68
  TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
68
69
  UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
69
70
  UpdateEnvironmentCommand: UpdateEnvironmentCommand_1.UpdateEnvironmentCommand,
71
+ UpdateKxClusterCodeConfigurationCommand: UpdateKxClusterCodeConfigurationCommand_1.UpdateKxClusterCodeConfigurationCommand,
70
72
  UpdateKxClusterDatabasesCommand: UpdateKxClusterDatabasesCommand_1.UpdateKxClusterDatabasesCommand,
71
73
  UpdateKxDatabaseCommand: UpdateKxDatabaseCommand_1.UpdateKxDatabaseCommand,
72
74
  UpdateKxEnvironmentCommand: UpdateKxEnvironmentCommand_1.UpdateKxEnvironmentCommand,
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateKxClusterCodeConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
10
+ class UpdateKxClusterCodeConfigurationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateKxClusterCodeConfigurationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "FinspaceClient";
29
+ const commandName = "UpdateKxClusterCodeConfigurationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "AWSHabaneroManagementService",
38
+ operation: "UpdateKxClusterCodeConfiguration",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_restJson1_1.se_UpdateKxClusterCodeConfigurationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_restJson1_1.de_UpdateKxClusterCodeConfigurationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateKxClusterCodeConfigurationCommand = UpdateKxClusterCodeConfigurationCommand;
@@ -30,6 +30,7 @@ tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
30
30
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
31
31
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
32
32
  tslib_1.__exportStar(require("./UpdateEnvironmentCommand"), exports);
33
+ tslib_1.__exportStar(require("./UpdateKxClusterCodeConfigurationCommand"), exports);
33
34
  tslib_1.__exportStar(require("./UpdateKxClusterDatabasesCommand"), exports);
34
35
  tslib_1.__exportStar(require("./UpdateKxDatabaseCommand"), exports);
35
36
  tslib_1.__exportStar(require("./UpdateKxEnvironmentCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@aws-sdk/util-endpoints");
4
+ const util_endpoints_1 = require("@smithy/util-endpoints");
5
5
  const ruleset_1 = require("./ruleset");
6
6
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
7
  return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
package/dist-cjs/index.js CHANGED
@@ -7,5 +7,6 @@ tslib_1.__exportStar(require("./Finspace"), exports);
7
7
  tslib_1.__exportStar(require("./commands"), exports);
8
8
  tslib_1.__exportStar(require("./pagination"), exports);
9
9
  tslib_1.__exportStar(require("./models"), exports);
10
+ require("@aws-sdk/util-endpoints");
10
11
  var FinspaceServiceException_1 = require("./models/FinspaceServiceException");
11
12
  Object.defineProperty(exports, "FinspaceServiceException", { enumerable: true, get: function () { return FinspaceServiceException_1.FinspaceServiceException; } });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetKxConnectionStringResponseFilterSensitiveLog = exports.CreateEnvironmentRequestFilterSensitiveLog = exports.SuperuserParametersFilterSensitiveLog = exports.KxDeploymentStrategy = exports.InvalidRequestException = exports.RuleAction = exports.TgwStatus = exports.DnsStatus = exports.EnvironmentStatus = exports.ResourceAlreadyExistsException = exports.KxClusterStatus = exports.IPAddressType = exports.KxSavedownStorageType = exports.KxClusterType = exports.KxAzMode = exports.ResourceNotFoundException = exports.ChangesetStatus = exports.ErrorDetails = exports.ChangeType = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.LimitExceededException = exports.InternalServerException = exports.FederationMode = exports.AutoScalingMetric = exports.AccessDeniedException = void 0;
3
+ exports.GetKxConnectionStringResponseFilterSensitiveLog = exports.CreateEnvironmentRequestFilterSensitiveLog = exports.SuperuserParametersFilterSensitiveLog = exports.KxDeploymentStrategy = exports.KxClusterCodeDeploymentStrategy = exports.InvalidRequestException = exports.RuleAction = exports.TgwStatus = exports.DnsStatus = exports.EnvironmentStatus = exports.ResourceAlreadyExistsException = exports.KxClusterStatus = exports.IPAddressType = exports.KxSavedownStorageType = exports.KxClusterType = exports.KxAzMode = exports.ResourceNotFoundException = exports.ChangesetStatus = exports.ErrorDetails = exports.ChangeType = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.LimitExceededException = exports.InternalServerException = exports.FederationMode = exports.AutoScalingMetric = exports.AccessDeniedException = void 0;
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const FinspaceServiceException_1 = require("./FinspaceServiceException");
6
6
  class AccessDeniedException extends FinspaceServiceException_1.FinspaceServiceException {
@@ -219,6 +219,10 @@ class InvalidRequestException extends FinspaceServiceException_1.FinspaceService
219
219
  }
220
220
  }
221
221
  exports.InvalidRequestException = InvalidRequestException;
222
+ exports.KxClusterCodeDeploymentStrategy = {
223
+ FORCE: "FORCE",
224
+ ROLLING: "ROLLING",
225
+ };
222
226
  exports.KxDeploymentStrategy = {
223
227
  NO_RESTART: "NO_RESTART",
224
228
  ROLLING: "ROLLING",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetKxDatabaseCommand = exports.de_GetKxConnectionStringCommand = exports.de_GetKxClusterCommand = exports.de_GetKxChangesetCommand = exports.de_GetEnvironmentCommand = exports.de_DeleteKxUserCommand = exports.de_DeleteKxEnvironmentCommand = exports.de_DeleteKxDatabaseCommand = exports.de_DeleteKxClusterCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateKxUserCommand = exports.de_CreateKxEnvironmentCommand = exports.de_CreateKxDatabaseCommand = exports.de_CreateKxClusterCommand = exports.de_CreateKxChangesetCommand = exports.de_CreateEnvironmentCommand = exports.se_UpdateKxUserCommand = exports.se_UpdateKxEnvironmentNetworkCommand = exports.se_UpdateKxEnvironmentCommand = exports.se_UpdateKxDatabaseCommand = exports.se_UpdateKxClusterDatabasesCommand = exports.se_UpdateEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListKxUsersCommand = exports.se_ListKxEnvironmentsCommand = exports.se_ListKxDatabasesCommand = exports.se_ListKxClustersCommand = exports.se_ListKxClusterNodesCommand = exports.se_ListKxChangesetsCommand = exports.se_ListEnvironmentsCommand = exports.se_GetKxUserCommand = exports.se_GetKxEnvironmentCommand = exports.se_GetKxDatabaseCommand = exports.se_GetKxConnectionStringCommand = exports.se_GetKxClusterCommand = exports.se_GetKxChangesetCommand = exports.se_GetEnvironmentCommand = exports.se_DeleteKxUserCommand = exports.se_DeleteKxEnvironmentCommand = exports.se_DeleteKxDatabaseCommand = exports.se_DeleteKxClusterCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateKxUserCommand = exports.se_CreateKxEnvironmentCommand = exports.se_CreateKxDatabaseCommand = exports.se_CreateKxClusterCommand = exports.se_CreateKxChangesetCommand = exports.se_CreateEnvironmentCommand = void 0;
4
- exports.de_UpdateKxUserCommand = exports.de_UpdateKxEnvironmentNetworkCommand = exports.de_UpdateKxEnvironmentCommand = exports.de_UpdateKxDatabaseCommand = exports.de_UpdateKxClusterDatabasesCommand = exports.de_UpdateEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListKxUsersCommand = exports.de_ListKxEnvironmentsCommand = exports.de_ListKxDatabasesCommand = exports.de_ListKxClustersCommand = exports.de_ListKxClusterNodesCommand = exports.de_ListKxChangesetsCommand = exports.de_ListEnvironmentsCommand = exports.de_GetKxUserCommand = exports.de_GetKxEnvironmentCommand = void 0;
3
+ exports.de_GetKxConnectionStringCommand = exports.de_GetKxClusterCommand = exports.de_GetKxChangesetCommand = exports.de_GetEnvironmentCommand = exports.de_DeleteKxUserCommand = exports.de_DeleteKxEnvironmentCommand = exports.de_DeleteKxDatabaseCommand = exports.de_DeleteKxClusterCommand = exports.de_DeleteEnvironmentCommand = exports.de_CreateKxUserCommand = exports.de_CreateKxEnvironmentCommand = exports.de_CreateKxDatabaseCommand = exports.de_CreateKxClusterCommand = exports.de_CreateKxChangesetCommand = exports.de_CreateEnvironmentCommand = exports.se_UpdateKxUserCommand = exports.se_UpdateKxEnvironmentNetworkCommand = exports.se_UpdateKxEnvironmentCommand = exports.se_UpdateKxDatabaseCommand = exports.se_UpdateKxClusterDatabasesCommand = exports.se_UpdateKxClusterCodeConfigurationCommand = exports.se_UpdateEnvironmentCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListKxUsersCommand = exports.se_ListKxEnvironmentsCommand = exports.se_ListKxDatabasesCommand = exports.se_ListKxClustersCommand = exports.se_ListKxClusterNodesCommand = exports.se_ListKxChangesetsCommand = exports.se_ListEnvironmentsCommand = exports.se_GetKxUserCommand = exports.se_GetKxEnvironmentCommand = exports.se_GetKxDatabaseCommand = exports.se_GetKxConnectionStringCommand = exports.se_GetKxClusterCommand = exports.se_GetKxChangesetCommand = exports.se_GetEnvironmentCommand = exports.se_DeleteKxUserCommand = exports.se_DeleteKxEnvironmentCommand = exports.se_DeleteKxDatabaseCommand = exports.se_DeleteKxClusterCommand = exports.se_DeleteEnvironmentCommand = exports.se_CreateKxUserCommand = exports.se_CreateKxEnvironmentCommand = exports.se_CreateKxDatabaseCommand = exports.se_CreateKxClusterCommand = exports.se_CreateKxChangesetCommand = exports.se_CreateEnvironmentCommand = void 0;
4
+ exports.de_UpdateKxUserCommand = exports.de_UpdateKxEnvironmentNetworkCommand = exports.de_UpdateKxEnvironmentCommand = exports.de_UpdateKxDatabaseCommand = exports.de_UpdateKxClusterDatabasesCommand = exports.de_UpdateKxClusterCodeConfigurationCommand = exports.de_UpdateEnvironmentCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListKxUsersCommand = exports.de_ListKxEnvironmentsCommand = exports.de_ListKxDatabasesCommand = exports.de_ListKxClustersCommand = exports.de_ListKxClusterNodesCommand = exports.de_ListKxChangesetsCommand = exports.de_ListEnvironmentsCommand = exports.de_GetKxUserCommand = exports.de_GetKxEnvironmentCommand = exports.de_GetKxDatabaseCommand = void 0;
5
5
  const protocol_http_1 = require("@smithy/protocol-http");
6
6
  const smithy_client_1 = require("@smithy/smithy-client");
7
7
  const uuid_1 = require("uuid");
@@ -654,6 +654,34 @@ const se_UpdateEnvironmentCommand = async (input, context) => {
654
654
  });
655
655
  };
656
656
  exports.se_UpdateEnvironmentCommand = se_UpdateEnvironmentCommand;
657
+ const se_UpdateKxClusterCodeConfigurationCommand = async (input, context) => {
658
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
659
+ const headers = {
660
+ "content-type": "application/json",
661
+ };
662
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
663
+ "/kx/environments/{environmentId}/clusters/{clusterName}/configuration/code";
664
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
665
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
666
+ let body;
667
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
668
+ clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
669
+ code: (_) => (0, smithy_client_1._json)(_),
670
+ commandLineArguments: (_) => (0, smithy_client_1._json)(_),
671
+ deploymentConfiguration: (_) => (0, smithy_client_1._json)(_),
672
+ initializationScript: [],
673
+ }));
674
+ return new protocol_http_1.HttpRequest({
675
+ protocol,
676
+ hostname,
677
+ port,
678
+ method: "PUT",
679
+ headers,
680
+ path: resolvedPath,
681
+ body,
682
+ });
683
+ };
684
+ exports.se_UpdateKxClusterCodeConfigurationCommand = se_UpdateKxClusterCodeConfigurationCommand;
657
685
  const se_UpdateKxClusterDatabasesCommand = async (input, context) => {
658
686
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
659
687
  const headers = {
@@ -2210,6 +2238,54 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
2210
2238
  });
2211
2239
  }
2212
2240
  };
2241
+ const de_UpdateKxClusterCodeConfigurationCommand = async (output, context) => {
2242
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2243
+ return de_UpdateKxClusterCodeConfigurationCommandError(output, context);
2244
+ }
2245
+ const contents = (0, smithy_client_1.map)({
2246
+ $metadata: deserializeMetadata(output),
2247
+ });
2248
+ await (0, smithy_client_1.collectBody)(output.body, context);
2249
+ return contents;
2250
+ };
2251
+ exports.de_UpdateKxClusterCodeConfigurationCommand = de_UpdateKxClusterCodeConfigurationCommand;
2252
+ const de_UpdateKxClusterCodeConfigurationCommandError = async (output, context) => {
2253
+ const parsedOutput = {
2254
+ ...output,
2255
+ body: await parseErrorBody(output.body, context),
2256
+ };
2257
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2258
+ switch (errorCode) {
2259
+ case "AccessDeniedException":
2260
+ case "com.amazonaws.finspace#AccessDeniedException":
2261
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2262
+ case "ConflictException":
2263
+ case "com.amazonaws.finspace#ConflictException":
2264
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2265
+ case "InternalServerException":
2266
+ case "com.amazonaws.finspace#InternalServerException":
2267
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2268
+ case "LimitExceededException":
2269
+ case "com.amazonaws.finspace#LimitExceededException":
2270
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2271
+ case "ResourceNotFoundException":
2272
+ case "com.amazonaws.finspace#ResourceNotFoundException":
2273
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2274
+ case "ThrottlingException":
2275
+ case "com.amazonaws.finspace#ThrottlingException":
2276
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2277
+ case "ValidationException":
2278
+ case "com.amazonaws.finspace#ValidationException":
2279
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2280
+ default:
2281
+ const parsedBody = parsedOutput.body;
2282
+ return throwDefaultError({
2283
+ output,
2284
+ parsedBody,
2285
+ errorCode,
2286
+ });
2287
+ }
2288
+ };
2213
2289
  const de_UpdateKxClusterDatabasesCommand = async (output, context) => {
2214
2290
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2215
2291
  return de_UpdateKxClusterDatabasesCommandError(output, context);
@@ -28,6 +28,7 @@ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceComma
28
28
  import { TagResourceCommand } from "./commands/TagResourceCommand";
29
29
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
30
30
  import { UpdateEnvironmentCommand, } from "./commands/UpdateEnvironmentCommand";
31
+ import { UpdateKxClusterCodeConfigurationCommand, } from "./commands/UpdateKxClusterCodeConfigurationCommand";
31
32
  import { UpdateKxClusterDatabasesCommand, } from "./commands/UpdateKxClusterDatabasesCommand";
32
33
  import { UpdateKxDatabaseCommand, } from "./commands/UpdateKxDatabaseCommand";
33
34
  import { UpdateKxEnvironmentCommand, } from "./commands/UpdateKxEnvironmentCommand";
@@ -64,6 +65,7 @@ const commands = {
64
65
  TagResourceCommand,
65
66
  UntagResourceCommand,
66
67
  UpdateEnvironmentCommand,
68
+ UpdateKxClusterCodeConfigurationCommand,
67
69
  UpdateKxClusterDatabasesCommand,
68
70
  UpdateKxDatabaseCommand,
69
71
  UpdateKxEnvironmentCommand,
@@ -0,0 +1,47 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_UpdateKxClusterCodeConfigurationCommand, se_UpdateKxClusterCodeConfigurationCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UpdateKxClusterCodeConfigurationCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateKxClusterCodeConfigurationCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "FinspaceClient";
26
+ const commandName = "UpdateKxClusterCodeConfigurationCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "AWSHabaneroManagementService",
35
+ operation: "UpdateKxClusterCodeConfiguration",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_UpdateKxClusterCodeConfigurationCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_UpdateKxClusterCodeConfigurationCommand(output, context);
46
+ }
47
+ }
@@ -27,6 +27,7 @@ export * from "./ListTagsForResourceCommand";
27
27
  export * from "./TagResourceCommand";
28
28
  export * from "./UntagResourceCommand";
29
29
  export * from "./UpdateEnvironmentCommand";
30
+ export * from "./UpdateKxClusterCodeConfigurationCommand";
30
31
  export * from "./UpdateKxClusterDatabasesCommand";
31
32
  export * from "./UpdateKxDatabaseCommand";
32
33
  export * from "./UpdateKxEnvironmentCommand";
@@ -1,4 +1,4 @@
1
- import { resolveEndpoint } from "@aws-sdk/util-endpoints";
1
+ import { resolveEndpoint } from "@smithy/util-endpoints";
2
2
  import { ruleSet } from "./ruleset";
3
3
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
4
  return resolveEndpoint(ruleSet, {
package/dist-es/index.js CHANGED
@@ -3,4 +3,5 @@ export * from "./Finspace";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
+ import "@aws-sdk/util-endpoints";
6
7
  export { FinspaceServiceException } from "./models/FinspaceServiceException";
@@ -206,6 +206,10 @@ export class InvalidRequestException extends __BaseException {
206
206
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
207
207
  }
208
208
  }
209
+ export const KxClusterCodeDeploymentStrategy = {
210
+ FORCE: "FORCE",
211
+ ROLLING: "ROLLING",
212
+ };
209
213
  export const KxDeploymentStrategy = {
210
214
  NO_RESTART: "NO_RESTART",
211
215
  ROLLING: "ROLLING",
@@ -621,6 +621,33 @@ export const se_UpdateEnvironmentCommand = async (input, context) => {
621
621
  body,
622
622
  });
623
623
  };
624
+ export const se_UpdateKxClusterCodeConfigurationCommand = async (input, context) => {
625
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
626
+ const headers = {
627
+ "content-type": "application/json",
628
+ };
629
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
630
+ "/kx/environments/{environmentId}/clusters/{clusterName}/configuration/code";
631
+ resolvedPath = __resolvedPath(resolvedPath, input, "environmentId", () => input.environmentId, "{environmentId}", false);
632
+ resolvedPath = __resolvedPath(resolvedPath, input, "clusterName", () => input.clusterName, "{clusterName}", false);
633
+ let body;
634
+ body = JSON.stringify(take(input, {
635
+ clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
636
+ code: (_) => _json(_),
637
+ commandLineArguments: (_) => _json(_),
638
+ deploymentConfiguration: (_) => _json(_),
639
+ initializationScript: [],
640
+ }));
641
+ return new __HttpRequest({
642
+ protocol,
643
+ hostname,
644
+ port,
645
+ method: "PUT",
646
+ headers,
647
+ path: resolvedPath,
648
+ body,
649
+ });
650
+ };
624
651
  export const se_UpdateKxClusterDatabasesCommand = async (input, context) => {
625
652
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
626
653
  const headers = {
@@ -2143,6 +2170,53 @@ const de_UpdateEnvironmentCommandError = async (output, context) => {
2143
2170
  });
2144
2171
  }
2145
2172
  };
2173
+ export const de_UpdateKxClusterCodeConfigurationCommand = async (output, context) => {
2174
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2175
+ return de_UpdateKxClusterCodeConfigurationCommandError(output, context);
2176
+ }
2177
+ const contents = map({
2178
+ $metadata: deserializeMetadata(output),
2179
+ });
2180
+ await collectBody(output.body, context);
2181
+ return contents;
2182
+ };
2183
+ const de_UpdateKxClusterCodeConfigurationCommandError = async (output, context) => {
2184
+ const parsedOutput = {
2185
+ ...output,
2186
+ body: await parseErrorBody(output.body, context),
2187
+ };
2188
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2189
+ switch (errorCode) {
2190
+ case "AccessDeniedException":
2191
+ case "com.amazonaws.finspace#AccessDeniedException":
2192
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2193
+ case "ConflictException":
2194
+ case "com.amazonaws.finspace#ConflictException":
2195
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2196
+ case "InternalServerException":
2197
+ case "com.amazonaws.finspace#InternalServerException":
2198
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2199
+ case "LimitExceededException":
2200
+ case "com.amazonaws.finspace#LimitExceededException":
2201
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
2202
+ case "ResourceNotFoundException":
2203
+ case "com.amazonaws.finspace#ResourceNotFoundException":
2204
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2205
+ case "ThrottlingException":
2206
+ case "com.amazonaws.finspace#ThrottlingException":
2207
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2208
+ case "ValidationException":
2209
+ case "com.amazonaws.finspace#ValidationException":
2210
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2211
+ default:
2212
+ const parsedBody = parsedOutput.body;
2213
+ return throwDefaultError({
2214
+ output,
2215
+ parsedBody,
2216
+ errorCode,
2217
+ });
2218
+ }
2219
+ };
2146
2220
  export const de_UpdateKxClusterDatabasesCommand = async (output, context) => {
2147
2221
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2148
2222
  return de_UpdateKxClusterDatabasesCommandError(output, context);
@@ -28,6 +28,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
28
28
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
29
29
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
30
30
  import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
31
+ import { UpdateKxClusterCodeConfigurationCommandInput, UpdateKxClusterCodeConfigurationCommandOutput } from "./commands/UpdateKxClusterCodeConfigurationCommand";
31
32
  import { UpdateKxClusterDatabasesCommandInput, UpdateKxClusterDatabasesCommandOutput } from "./commands/UpdateKxClusterDatabasesCommand";
32
33
  import { UpdateKxDatabaseCommandInput, UpdateKxDatabaseCommandOutput } from "./commands/UpdateKxDatabaseCommand";
33
34
  import { UpdateKxEnvironmentCommandInput, UpdateKxEnvironmentCommandOutput } from "./commands/UpdateKxEnvironmentCommand";
@@ -209,6 +210,12 @@ export interface Finspace {
209
210
  updateEnvironment(args: UpdateEnvironmentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnvironmentCommandOutput>;
210
211
  updateEnvironment(args: UpdateEnvironmentCommandInput, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
211
212
  updateEnvironment(args: UpdateEnvironmentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void): void;
213
+ /**
214
+ * @see {@link UpdateKxClusterCodeConfigurationCommand}
215
+ */
216
+ updateKxClusterCodeConfiguration(args: UpdateKxClusterCodeConfigurationCommandInput, options?: __HttpHandlerOptions): Promise<UpdateKxClusterCodeConfigurationCommandOutput>;
217
+ updateKxClusterCodeConfiguration(args: UpdateKxClusterCodeConfigurationCommandInput, cb: (err: any, data?: UpdateKxClusterCodeConfigurationCommandOutput) => void): void;
218
+ updateKxClusterCodeConfiguration(args: UpdateKxClusterCodeConfigurationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateKxClusterCodeConfigurationCommandOutput) => void): void;
212
219
  /**
213
220
  * @see {@link UpdateKxClusterDatabasesCommand}
214
221
  */
@@ -37,6 +37,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
37
37
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
38
38
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
39
39
  import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "./commands/UpdateEnvironmentCommand";
40
+ import { UpdateKxClusterCodeConfigurationCommandInput, UpdateKxClusterCodeConfigurationCommandOutput } from "./commands/UpdateKxClusterCodeConfigurationCommand";
40
41
  import { UpdateKxClusterDatabasesCommandInput, UpdateKxClusterDatabasesCommandOutput } from "./commands/UpdateKxClusterDatabasesCommand";
41
42
  import { UpdateKxDatabaseCommandInput, UpdateKxDatabaseCommandOutput } from "./commands/UpdateKxDatabaseCommand";
42
43
  import { UpdateKxEnvironmentCommandInput, UpdateKxEnvironmentCommandOutput } from "./commands/UpdateKxEnvironmentCommand";
@@ -48,11 +49,11 @@ export { __Client };
48
49
  /**
49
50
  * @public
50
51
  */
51
- export type ServiceInputTypes = CreateEnvironmentCommandInput | CreateKxChangesetCommandInput | CreateKxClusterCommandInput | CreateKxDatabaseCommandInput | CreateKxEnvironmentCommandInput | CreateKxUserCommandInput | DeleteEnvironmentCommandInput | DeleteKxClusterCommandInput | DeleteKxDatabaseCommandInput | DeleteKxEnvironmentCommandInput | DeleteKxUserCommandInput | GetEnvironmentCommandInput | GetKxChangesetCommandInput | GetKxClusterCommandInput | GetKxConnectionStringCommandInput | GetKxDatabaseCommandInput | GetKxEnvironmentCommandInput | GetKxUserCommandInput | ListEnvironmentsCommandInput | ListKxChangesetsCommandInput | ListKxClusterNodesCommandInput | ListKxClustersCommandInput | ListKxDatabasesCommandInput | ListKxEnvironmentsCommandInput | ListKxUsersCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEnvironmentCommandInput | UpdateKxClusterDatabasesCommandInput | UpdateKxDatabaseCommandInput | UpdateKxEnvironmentCommandInput | UpdateKxEnvironmentNetworkCommandInput | UpdateKxUserCommandInput;
52
+ export type ServiceInputTypes = CreateEnvironmentCommandInput | CreateKxChangesetCommandInput | CreateKxClusterCommandInput | CreateKxDatabaseCommandInput | CreateKxEnvironmentCommandInput | CreateKxUserCommandInput | DeleteEnvironmentCommandInput | DeleteKxClusterCommandInput | DeleteKxDatabaseCommandInput | DeleteKxEnvironmentCommandInput | DeleteKxUserCommandInput | GetEnvironmentCommandInput | GetKxChangesetCommandInput | GetKxClusterCommandInput | GetKxConnectionStringCommandInput | GetKxDatabaseCommandInput | GetKxEnvironmentCommandInput | GetKxUserCommandInput | ListEnvironmentsCommandInput | ListKxChangesetsCommandInput | ListKxClusterNodesCommandInput | ListKxClustersCommandInput | ListKxDatabasesCommandInput | ListKxEnvironmentsCommandInput | ListKxUsersCommandInput | ListTagsForResourceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEnvironmentCommandInput | UpdateKxClusterCodeConfigurationCommandInput | UpdateKxClusterDatabasesCommandInput | UpdateKxDatabaseCommandInput | UpdateKxEnvironmentCommandInput | UpdateKxEnvironmentNetworkCommandInput | UpdateKxUserCommandInput;
52
53
  /**
53
54
  * @public
54
55
  */
55
- export type ServiceOutputTypes = CreateEnvironmentCommandOutput | CreateKxChangesetCommandOutput | CreateKxClusterCommandOutput | CreateKxDatabaseCommandOutput | CreateKxEnvironmentCommandOutput | CreateKxUserCommandOutput | DeleteEnvironmentCommandOutput | DeleteKxClusterCommandOutput | DeleteKxDatabaseCommandOutput | DeleteKxEnvironmentCommandOutput | DeleteKxUserCommandOutput | GetEnvironmentCommandOutput | GetKxChangesetCommandOutput | GetKxClusterCommandOutput | GetKxConnectionStringCommandOutput | GetKxDatabaseCommandOutput | GetKxEnvironmentCommandOutput | GetKxUserCommandOutput | ListEnvironmentsCommandOutput | ListKxChangesetsCommandOutput | ListKxClusterNodesCommandOutput | ListKxClustersCommandOutput | ListKxDatabasesCommandOutput | ListKxEnvironmentsCommandOutput | ListKxUsersCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEnvironmentCommandOutput | UpdateKxClusterDatabasesCommandOutput | UpdateKxDatabaseCommandOutput | UpdateKxEnvironmentCommandOutput | UpdateKxEnvironmentNetworkCommandOutput | UpdateKxUserCommandOutput;
56
+ export type ServiceOutputTypes = CreateEnvironmentCommandOutput | CreateKxChangesetCommandOutput | CreateKxClusterCommandOutput | CreateKxDatabaseCommandOutput | CreateKxEnvironmentCommandOutput | CreateKxUserCommandOutput | DeleteEnvironmentCommandOutput | DeleteKxClusterCommandOutput | DeleteKxDatabaseCommandOutput | DeleteKxEnvironmentCommandOutput | DeleteKxUserCommandOutput | GetEnvironmentCommandOutput | GetKxChangesetCommandOutput | GetKxClusterCommandOutput | GetKxConnectionStringCommandOutput | GetKxDatabaseCommandOutput | GetKxEnvironmentCommandOutput | GetKxUserCommandOutput | ListEnvironmentsCommandOutput | ListKxChangesetsCommandOutput | ListKxClusterNodesCommandOutput | ListKxClustersCommandOutput | ListKxDatabasesCommandOutput | ListKxEnvironmentsCommandOutput | ListKxUsersCommandOutput | ListTagsForResourceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEnvironmentCommandOutput | UpdateKxClusterCodeConfigurationCommandOutput | UpdateKxClusterDatabasesCommandOutput | UpdateKxDatabaseCommandOutput | UpdateKxEnvironmentCommandOutput | UpdateKxEnvironmentNetworkCommandOutput | UpdateKxUserCommandOutput;
56
57
  /**
57
58
  * @public
58
59
  */
@@ -0,0 +1,113 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { FinspaceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../FinspaceClient";
5
+ import { UpdateKxClusterCodeConfigurationRequest, UpdateKxClusterCodeConfigurationResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateKxClusterCodeConfigurationCommand}.
14
+ */
15
+ export interface UpdateKxClusterCodeConfigurationCommandInput extends UpdateKxClusterCodeConfigurationRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateKxClusterCodeConfigurationCommand}.
21
+ */
22
+ export interface UpdateKxClusterCodeConfigurationCommandOutput extends UpdateKxClusterCodeConfigurationResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>
27
+ * Allows you to update code configuration on a running cluster. By using this API you can update the code, the initialization script path, and the command line arguments for a specific cluster.
28
+ * The configuration that you want to update will override any existing configurations on the cluster.
29
+ * </p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { FinspaceClient, UpdateKxClusterCodeConfigurationCommand } from "@aws-sdk/client-finspace"; // ES Modules import
34
+ * // const { FinspaceClient, UpdateKxClusterCodeConfigurationCommand } = require("@aws-sdk/client-finspace"); // CommonJS import
35
+ * const client = new FinspaceClient(config);
36
+ * const input = { // UpdateKxClusterCodeConfigurationRequest
37
+ * environmentId: "STRING_VALUE", // required
38
+ * clusterName: "STRING_VALUE", // required
39
+ * clientToken: "STRING_VALUE",
40
+ * code: { // CodeConfiguration
41
+ * s3Bucket: "STRING_VALUE",
42
+ * s3Key: "STRING_VALUE",
43
+ * s3ObjectVersion: "STRING_VALUE",
44
+ * },
45
+ * initializationScript: "STRING_VALUE",
46
+ * commandLineArguments: [ // KxCommandLineArguments
47
+ * { // KxCommandLineArgument
48
+ * key: "STRING_VALUE",
49
+ * value: "STRING_VALUE",
50
+ * },
51
+ * ],
52
+ * deploymentConfiguration: { // KxClusterCodeDeploymentConfiguration
53
+ * deploymentStrategy: "ROLLING" || "FORCE", // required
54
+ * },
55
+ * };
56
+ * const command = new UpdateKxClusterCodeConfigurationCommand(input);
57
+ * const response = await client.send(command);
58
+ * // {};
59
+ *
60
+ * ```
61
+ *
62
+ * @param UpdateKxClusterCodeConfigurationCommandInput - {@link UpdateKxClusterCodeConfigurationCommandInput}
63
+ * @returns {@link UpdateKxClusterCodeConfigurationCommandOutput}
64
+ * @see {@link UpdateKxClusterCodeConfigurationCommandInput} for command's `input` shape.
65
+ * @see {@link UpdateKxClusterCodeConfigurationCommandOutput} for command's `response` shape.
66
+ * @see {@link FinspaceClientResolvedConfig | config} for FinspaceClient's `config` shape.
67
+ *
68
+ * @throws {@link AccessDeniedException} (client fault)
69
+ * <p>You do not have sufficient access to perform this action.</p>
70
+ *
71
+ * @throws {@link ConflictException} (client fault)
72
+ * <p>There was a conflict with this action, and it could not be completed.</p>
73
+ *
74
+ * @throws {@link InternalServerException} (server fault)
75
+ * <p>The request processing has failed because of an unknown error, exception or
76
+ * failure.</p>
77
+ *
78
+ * @throws {@link LimitExceededException} (client fault)
79
+ * <p>A service limit or quota is exceeded.</p>
80
+ *
81
+ * @throws {@link ResourceNotFoundException} (client fault)
82
+ * <p>One or more resources can't be found.</p>
83
+ *
84
+ * @throws {@link ThrottlingException} (client fault)
85
+ * <p>The request was denied due to request throttling.</p>
86
+ *
87
+ * @throws {@link ValidationException} (client fault)
88
+ * <p>The input fails to satisfy the constraints specified by an AWS service.</p>
89
+ *
90
+ * @throws {@link FinspaceServiceException}
91
+ * <p>Base exception class for all service exceptions from Finspace service.</p>
92
+ *
93
+ */
94
+ export declare class UpdateKxClusterCodeConfigurationCommand extends $Command<UpdateKxClusterCodeConfigurationCommandInput, UpdateKxClusterCodeConfigurationCommandOutput, FinspaceClientResolvedConfig> {
95
+ readonly input: UpdateKxClusterCodeConfigurationCommandInput;
96
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
97
+ /**
98
+ * @public
99
+ */
100
+ constructor(input: UpdateKxClusterCodeConfigurationCommandInput);
101
+ /**
102
+ * @internal
103
+ */
104
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: FinspaceClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateKxClusterCodeConfigurationCommandInput, UpdateKxClusterCodeConfigurationCommandOutput>;
105
+ /**
106
+ * @internal
107
+ */
108
+ private serialize;
109
+ /**
110
+ * @internal
111
+ */
112
+ private deserialize;
113
+ }
@@ -27,6 +27,7 @@ export * from "./ListTagsForResourceCommand";
27
27
  export * from "./TagResourceCommand";
28
28
  export * from "./UntagResourceCommand";
29
29
  export * from "./UpdateEnvironmentCommand";
30
+ export * from "./UpdateKxClusterCodeConfigurationCommand";
30
31
  export * from "./UpdateKxClusterDatabasesCommand";
31
32
  export * from "./UpdateKxDatabaseCommand";
32
33
  export * from "./UpdateKxEnvironmentCommand";
@@ -9,4 +9,5 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export * from "./commands";
10
10
  export * from "./pagination";
11
11
  export * from "./models";
12
+ import "@aws-sdk/util-endpoints";
12
13
  export { FinspaceServiceException } from "./models/FinspaceServiceException";
@@ -527,12 +527,19 @@ export type KxAzMode = (typeof KxAzMode)[keyof typeof KxAzMode];
527
527
  export interface KxCacheStorageConfiguration {
528
528
  /**
529
529
  * @public
530
- * <p>The type of cache storage . The valid values are: </p>
530
+ * <p>The type of cache storage. The valid values are: </p>
531
531
  * <ul>
532
532
  * <li>
533
533
  * <p>CACHE_1000 – This type provides at least 1000 MB/s disk access throughput. </p>
534
534
  * </li>
535
+ * <li>
536
+ * <p>CACHE_250 – This type provides at least 250 MB/s disk access throughput. </p>
537
+ * </li>
538
+ * <li>
539
+ * <p>CACHE_12 – This type provides at least 12 MB/s disk access throughput. </p>
540
+ * </li>
535
541
  * </ul>
542
+ * <p>For cache type <code>CACHE_1000</code> and <code>CACHE_250</code> you can select cache size as 1200 GB or increments of 2400 GB. For cache type <code>CACHE_12</code> you can select the cache size in increments of 6000 GB.</p>
536
543
  */
537
544
  type: string | undefined;
538
545
  /**
@@ -2905,6 +2912,94 @@ export interface UpdateEnvironmentResponse {
2905
2912
  */
2906
2913
  environment?: Environment;
2907
2914
  }
2915
+ /**
2916
+ * @public
2917
+ * @enum
2918
+ */
2919
+ export declare const KxClusterCodeDeploymentStrategy: {
2920
+ readonly FORCE: "FORCE";
2921
+ readonly ROLLING: "ROLLING";
2922
+ };
2923
+ /**
2924
+ * @public
2925
+ */
2926
+ export type KxClusterCodeDeploymentStrategy = (typeof KxClusterCodeDeploymentStrategy)[keyof typeof KxClusterCodeDeploymentStrategy];
2927
+ /**
2928
+ * @public
2929
+ * <p>
2930
+ * The configuration that allows you to choose how you want to update code on a cluster. Depending on the option you choose, you can reduce the time it takes to update the cluster.
2931
+ * </p>
2932
+ */
2933
+ export interface KxClusterCodeDeploymentConfiguration {
2934
+ /**
2935
+ * @public
2936
+ * <p>
2937
+ * The type of deployment that you want on a cluster.
2938
+ *
2939
+ * </p>
2940
+ * <ul>
2941
+ * <li>
2942
+ * <p>ROLLING – This options updates the cluster by stopping the exiting q process and starting a new q process with updated configuration.</p>
2943
+ * </li>
2944
+ * <li>
2945
+ * <p>FORCE – This option updates the cluster by immediately stopping all the running processes before starting up new ones with the updated configuration. </p>
2946
+ * </li>
2947
+ * </ul>
2948
+ */
2949
+ deploymentStrategy: KxClusterCodeDeploymentStrategy | undefined;
2950
+ }
2951
+ /**
2952
+ * @public
2953
+ */
2954
+ export interface UpdateKxClusterCodeConfigurationRequest {
2955
+ /**
2956
+ * @public
2957
+ * <p>
2958
+ * A unique identifier of the kdb environment.
2959
+ * </p>
2960
+ */
2961
+ environmentId: string | undefined;
2962
+ /**
2963
+ * @public
2964
+ * <p>The name of the cluster.</p>
2965
+ */
2966
+ clusterName: string | undefined;
2967
+ /**
2968
+ * @public
2969
+ * <p>A token that ensures idempotency. This token expires in 10 minutes.</p>
2970
+ */
2971
+ clientToken?: string;
2972
+ /**
2973
+ * @public
2974
+ * <p>The structure of the customer code available within the running cluster.</p>
2975
+ */
2976
+ code: CodeConfiguration | undefined;
2977
+ /**
2978
+ * @public
2979
+ * <p>Specifies a Q program that will be run at launch of a cluster. It is a relative path within
2980
+ * <i>.zip</i> file that contains the custom code, which will be loaded on
2981
+ * the cluster. It must include the file name itself. For example,
2982
+ * <code>somedir/init.q</code>.</p>
2983
+ */
2984
+ initializationScript?: string;
2985
+ /**
2986
+ * @public
2987
+ * <p>Specifies the key-value pairs to make them available inside the cluster.</p>
2988
+ */
2989
+ commandLineArguments?: KxCommandLineArgument[];
2990
+ /**
2991
+ * @public
2992
+ * <p>
2993
+ * The configuration that allows you to choose how you want to update the code on a cluster.
2994
+ * </p>
2995
+ */
2996
+ deploymentConfiguration?: KxClusterCodeDeploymentConfiguration;
2997
+ }
2998
+ /**
2999
+ * @public
3000
+ */
3001
+ export interface UpdateKxClusterCodeConfigurationResponse {
3002
+ }
2908
3003
  /**
2909
3004
  * @public
2910
3005
  * @enum
@@ -2920,22 +3015,23 @@ export type KxDeploymentStrategy = (typeof KxDeploymentStrategy)[keyof typeof Kx
2920
3015
  /**
2921
3016
  * @public
2922
3017
  * <p>
2923
- * The configuration that allows you to choose how you want to update the databases on a cluster. Depending on the option you choose, you can reduce the time it takes to update the database changesets on to a cluster.
3018
+ * The configuration that allows you to choose how you want to update the databases on a cluster. Depending on the option you choose, you can reduce the time it takes to update the cluster.
2924
3019
  * </p>
2925
3020
  */
2926
3021
  export interface KxDeploymentConfiguration {
2927
3022
  /**
2928
3023
  * @public
2929
3024
  * <p>
2930
- * The type of deployment that you want on a cluster.
3025
+ * The type of deployment that you want on a cluster.
2931
3026
  *
2932
3027
  * </p>
2933
3028
  * <ul>
2934
3029
  * <li>
2935
- * <p>ROLLING – This options loads the updated database by stopping the exiting q process and starting a new q process with updated configuration.</p>
3030
+ * <p>ROLLING – This options updates the cluster by stopping the exiting q process and starting a new q process with updated configuration.</p>
2936
3031
  * </li>
2937
3032
  * <li>
2938
- * <p>NO_RESTART – This option loads the updated database on the running q process without stopping it. This option is quicker as it reduces the turn around time to update a kdb database changeset configuration on a cluster.</p>
3033
+ * <p>NO_RESTART – This option updates the cluster without stopping the running q process. It is only available for <code>HDB</code> type cluster. This option is quicker as it reduces the turn around time to update configuration on a cluster. </p>
3034
+ * <p>With this deployment mode, you cannot update the <code>initializationScript</code> and <code>commandLineArguments</code> parameters.</p>
2939
3035
  * </li>
2940
3036
  * </ul>
2941
3037
  */
@@ -29,6 +29,7 @@ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } fro
29
29
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
30
30
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
31
31
  import { UpdateEnvironmentCommandInput, UpdateEnvironmentCommandOutput } from "../commands/UpdateEnvironmentCommand";
32
+ import { UpdateKxClusterCodeConfigurationCommandInput, UpdateKxClusterCodeConfigurationCommandOutput } from "../commands/UpdateKxClusterCodeConfigurationCommand";
32
33
  import { UpdateKxClusterDatabasesCommandInput, UpdateKxClusterDatabasesCommandOutput } from "../commands/UpdateKxClusterDatabasesCommand";
33
34
  import { UpdateKxDatabaseCommandInput, UpdateKxDatabaseCommandOutput } from "../commands/UpdateKxDatabaseCommand";
34
35
  import { UpdateKxEnvironmentCommandInput, UpdateKxEnvironmentCommandOutput } from "../commands/UpdateKxEnvironmentCommand";
@@ -150,6 +151,10 @@ export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput,
150
151
  * serializeAws_restJson1UpdateEnvironmentCommand
151
152
  */
152
153
  export declare const se_UpdateEnvironmentCommand: (input: UpdateEnvironmentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
154
+ /**
155
+ * serializeAws_restJson1UpdateKxClusterCodeConfigurationCommand
156
+ */
157
+ export declare const se_UpdateKxClusterCodeConfigurationCommand: (input: UpdateKxClusterCodeConfigurationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
153
158
  /**
154
159
  * serializeAws_restJson1UpdateKxClusterDatabasesCommand
155
160
  */
@@ -286,6 +291,10 @@ export declare const de_UntagResourceCommand: (output: __HttpResponse, context:
286
291
  * deserializeAws_restJson1UpdateEnvironmentCommand
287
292
  */
288
293
  export declare const de_UpdateEnvironmentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateEnvironmentCommandOutput>;
294
+ /**
295
+ * deserializeAws_restJson1UpdateKxClusterCodeConfigurationCommand
296
+ */
297
+ export declare const de_UpdateKxClusterCodeConfigurationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateKxClusterCodeConfigurationCommandOutput>;
289
298
  /**
290
299
  * deserializeAws_restJson1UpdateKxClusterDatabasesCommand
291
300
  */
@@ -115,6 +115,10 @@ import {
115
115
  UpdateEnvironmentCommandInput,
116
116
  UpdateEnvironmentCommandOutput,
117
117
  } from "./commands/UpdateEnvironmentCommand";
118
+ import {
119
+ UpdateKxClusterCodeConfigurationCommandInput,
120
+ UpdateKxClusterCodeConfigurationCommandOutput,
121
+ } from "./commands/UpdateKxClusterCodeConfigurationCommand";
118
122
  import {
119
123
  UpdateKxClusterDatabasesCommandInput,
120
124
  UpdateKxClusterDatabasesCommandOutput,
@@ -514,6 +518,19 @@ export interface Finspace {
514
518
  options: __HttpHandlerOptions,
515
519
  cb: (err: any, data?: UpdateEnvironmentCommandOutput) => void
516
520
  ): void;
521
+ updateKxClusterCodeConfiguration(
522
+ args: UpdateKxClusterCodeConfigurationCommandInput,
523
+ options?: __HttpHandlerOptions
524
+ ): Promise<UpdateKxClusterCodeConfigurationCommandOutput>;
525
+ updateKxClusterCodeConfiguration(
526
+ args: UpdateKxClusterCodeConfigurationCommandInput,
527
+ cb: (err: any, data?: UpdateKxClusterCodeConfigurationCommandOutput) => void
528
+ ): void;
529
+ updateKxClusterCodeConfiguration(
530
+ args: UpdateKxClusterCodeConfigurationCommandInput,
531
+ options: __HttpHandlerOptions,
532
+ cb: (err: any, data?: UpdateKxClusterCodeConfigurationCommandOutput) => void
533
+ ): void;
517
534
  updateKxClusterDatabases(
518
535
  args: UpdateKxClusterDatabasesCommandInput,
519
536
  options?: __HttpHandlerOptions
@@ -161,6 +161,10 @@ import {
161
161
  UpdateEnvironmentCommandInput,
162
162
  UpdateEnvironmentCommandOutput,
163
163
  } from "./commands/UpdateEnvironmentCommand";
164
+ import {
165
+ UpdateKxClusterCodeConfigurationCommandInput,
166
+ UpdateKxClusterCodeConfigurationCommandOutput,
167
+ } from "./commands/UpdateKxClusterCodeConfigurationCommand";
164
168
  import {
165
169
  UpdateKxClusterDatabasesCommandInput,
166
170
  UpdateKxClusterDatabasesCommandOutput,
@@ -218,6 +222,7 @@ export type ServiceInputTypes =
218
222
  | TagResourceCommandInput
219
223
  | UntagResourceCommandInput
220
224
  | UpdateEnvironmentCommandInput
225
+ | UpdateKxClusterCodeConfigurationCommandInput
221
226
  | UpdateKxClusterDatabasesCommandInput
222
227
  | UpdateKxDatabaseCommandInput
223
228
  | UpdateKxEnvironmentCommandInput
@@ -253,6 +258,7 @@ export type ServiceOutputTypes =
253
258
  | TagResourceCommandOutput
254
259
  | UntagResourceCommandOutput
255
260
  | UpdateEnvironmentCommandOutput
261
+ | UpdateKxClusterCodeConfigurationCommandOutput
256
262
  | UpdateKxClusterDatabasesCommandOutput
257
263
  | UpdateKxDatabaseCommandOutput
258
264
  | UpdateKxEnvironmentCommandOutput
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ FinspaceClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../FinspaceClient";
14
+ import {
15
+ UpdateKxClusterCodeConfigurationRequest,
16
+ UpdateKxClusterCodeConfigurationResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface UpdateKxClusterCodeConfigurationCommandInput
20
+ extends UpdateKxClusterCodeConfigurationRequest {}
21
+ export interface UpdateKxClusterCodeConfigurationCommandOutput
22
+ extends UpdateKxClusterCodeConfigurationResponse,
23
+ __MetadataBearer {}
24
+ export declare class UpdateKxClusterCodeConfigurationCommand extends $Command<
25
+ UpdateKxClusterCodeConfigurationCommandInput,
26
+ UpdateKxClusterCodeConfigurationCommandOutput,
27
+ FinspaceClientResolvedConfig
28
+ > {
29
+ readonly input: UpdateKxClusterCodeConfigurationCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: UpdateKxClusterCodeConfigurationCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: FinspaceClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ UpdateKxClusterCodeConfigurationCommandInput,
38
+ UpdateKxClusterCodeConfigurationCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -27,6 +27,7 @@ export * from "./ListTagsForResourceCommand";
27
27
  export * from "./TagResourceCommand";
28
28
  export * from "./UntagResourceCommand";
29
29
  export * from "./UpdateEnvironmentCommand";
30
+ export * from "./UpdateKxClusterCodeConfigurationCommand";
30
31
  export * from "./UpdateKxClusterDatabasesCommand";
31
32
  export * from "./UpdateKxDatabaseCommand";
32
33
  export * from "./UpdateKxEnvironmentCommand";
@@ -4,4 +4,5 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export * from "./commands";
5
5
  export * from "./pagination";
6
6
  export * from "./models";
7
+ import "@aws-sdk/util-endpoints";
7
8
  export { FinspaceServiceException } from "./models/FinspaceServiceException";
@@ -674,6 +674,25 @@ export interface UpdateEnvironmentRequest {
674
674
  export interface UpdateEnvironmentResponse {
675
675
  environment?: Environment;
676
676
  }
677
+ export declare const KxClusterCodeDeploymentStrategy: {
678
+ readonly FORCE: "FORCE";
679
+ readonly ROLLING: "ROLLING";
680
+ };
681
+ export type KxClusterCodeDeploymentStrategy =
682
+ (typeof KxClusterCodeDeploymentStrategy)[keyof typeof KxClusterCodeDeploymentStrategy];
683
+ export interface KxClusterCodeDeploymentConfiguration {
684
+ deploymentStrategy: KxClusterCodeDeploymentStrategy | undefined;
685
+ }
686
+ export interface UpdateKxClusterCodeConfigurationRequest {
687
+ environmentId: string | undefined;
688
+ clusterName: string | undefined;
689
+ clientToken?: string;
690
+ code: CodeConfiguration | undefined;
691
+ initializationScript?: string;
692
+ commandLineArguments?: KxCommandLineArgument[];
693
+ deploymentConfiguration?: KxClusterCodeDeploymentConfiguration;
694
+ }
695
+ export interface UpdateKxClusterCodeConfigurationResponse {}
677
696
  export declare const KxDeploymentStrategy: {
678
697
  readonly NO_RESTART: "NO_RESTART";
679
698
  readonly ROLLING: "ROLLING";
@@ -119,6 +119,10 @@ import {
119
119
  UpdateEnvironmentCommandInput,
120
120
  UpdateEnvironmentCommandOutput,
121
121
  } from "../commands/UpdateEnvironmentCommand";
122
+ import {
123
+ UpdateKxClusterCodeConfigurationCommandInput,
124
+ UpdateKxClusterCodeConfigurationCommandOutput,
125
+ } from "../commands/UpdateKxClusterCodeConfigurationCommand";
122
126
  import {
123
127
  UpdateKxClusterDatabasesCommandInput,
124
128
  UpdateKxClusterDatabasesCommandOutput,
@@ -255,6 +259,10 @@ export declare const se_UpdateEnvironmentCommand: (
255
259
  input: UpdateEnvironmentCommandInput,
256
260
  context: __SerdeContext
257
261
  ) => Promise<__HttpRequest>;
262
+ export declare const se_UpdateKxClusterCodeConfigurationCommand: (
263
+ input: UpdateKxClusterCodeConfigurationCommandInput,
264
+ context: __SerdeContext
265
+ ) => Promise<__HttpRequest>;
258
266
  export declare const se_UpdateKxClusterDatabasesCommand: (
259
267
  input: UpdateKxClusterDatabasesCommandInput,
260
268
  context: __SerdeContext
@@ -391,6 +399,10 @@ export declare const de_UpdateEnvironmentCommand: (
391
399
  output: __HttpResponse,
392
400
  context: __SerdeContext
393
401
  ) => Promise<UpdateEnvironmentCommandOutput>;
402
+ export declare const de_UpdateKxClusterCodeConfigurationCommand: (
403
+ output: __HttpResponse,
404
+ context: __SerdeContext
405
+ ) => Promise<UpdateKxClusterCodeConfigurationCommandOutput>;
394
406
  export declare const de_UpdateKxClusterDatabasesCommand: (
395
407
  output: __HttpResponse,
396
408
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-finspace",
3
3
  "description": "AWS SDK for JavaScript Finspace Client for Node.js, Browser and React Native",
4
- "version": "3.437.0",
4
+ "version": "3.439.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,17 +21,17 @@
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.437.0",
24
+ "@aws-sdk/client-sts": "3.438.0",
25
25
  "@aws-sdk/core": "3.436.0",
26
- "@aws-sdk/credential-provider-node": "3.437.0",
26
+ "@aws-sdk/credential-provider-node": "3.438.0",
27
27
  "@aws-sdk/middleware-host-header": "3.433.0",
28
28
  "@aws-sdk/middleware-logger": "3.433.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.433.0",
30
30
  "@aws-sdk/middleware-signing": "3.433.0",
31
- "@aws-sdk/middleware-user-agent": "3.433.0",
31
+ "@aws-sdk/middleware-user-agent": "3.438.0",
32
32
  "@aws-sdk/region-config-resolver": "3.433.0",
33
33
  "@aws-sdk/types": "3.433.0",
34
- "@aws-sdk/util-endpoints": "3.433.0",
34
+ "@aws-sdk/util-endpoints": "3.438.0",
35
35
  "@aws-sdk/util-user-agent-browser": "3.433.0",
36
36
  "@aws-sdk/util-user-agent-node": "3.437.0",
37
37
  "@smithy/config-resolver": "^2.0.16",
@@ -54,6 +54,7 @@
54
54
  "@smithy/util-body-length-node": "^2.1.0",
55
55
  "@smithy/util-defaults-mode-browser": "^2.0.16",
56
56
  "@smithy/util-defaults-mode-node": "^2.0.21",
57
+ "@smithy/util-endpoints": "^1.0.2",
57
58
  "@smithy/util-retry": "^2.0.5",
58
59
  "@smithy/util-utf8": "^2.0.0",
59
60
  "tslib": "^2.5.0",