@aws-sdk/client-kafka 3.196.0 → 3.198.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 (32) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/Kafka.js +15 -0
  3. package/dist-cjs/commands/UpdateStorageCommand.js +46 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/models/models_0.js +16 -3
  6. package/dist-cjs/protocols/Aws_restJson1.js +89 -2
  7. package/dist-es/Kafka.js +15 -0
  8. package/dist-es/commands/UpdateStorageCommand.js +42 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/models/models_0.js +11 -0
  11. package/dist-es/protocols/Aws_restJson1.js +85 -0
  12. package/dist-types/Kafka.d.ts +7 -0
  13. package/dist-types/KafkaClient.d.ts +3 -2
  14. package/dist-types/commands/UpdateStorageCommand.d.ts +37 -0
  15. package/dist-types/commands/index.d.ts +1 -0
  16. package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
  17. package/dist-types/models/models_0.d.ts +72 -5
  18. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  19. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  20. package/dist-types/runtimeConfig.d.ts +1 -1
  21. package/dist-types/runtimeConfig.native.d.ts +1 -1
  22. package/dist-types/ts3.4/Kafka.d.ts +17 -0
  23. package/dist-types/ts3.4/KafkaClient.d.ts +8 -2
  24. package/dist-types/ts3.4/commands/UpdateStorageCommand.d.ts +37 -0
  25. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  26. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +9 -1
  27. package/dist-types/ts3.4/models/models_0.d.ts +26 -0
  28. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  29. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +10 -1
  30. package/dist-types/ts3.4/runtimeConfig.d.ts +10 -1
  31. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -8
  32. package/package.json +28 -28
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.198.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.197.0...v3.198.0) (2022-10-27)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-kafka
9
+
10
+
11
+
12
+
13
+
14
+ # [3.197.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.196.0...v3.197.0) (2022-10-26)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **types:** expand custom endpoint type ([#4097](https://github.com/aws/aws-sdk-js-v3/issues/4097)) ([3620ce4](https://github.com/aws/aws-sdk-js-v3/commit/3620ce4162435b9688823162281140f40365b14c))
20
+
21
+
22
+ ### Features
23
+
24
+ * **client-kafka:** This release adds support for Tiered Storage. UpdateStorage allows you to control the Storage Mode for supported storage tiers. ([0fd7c71](https://github.com/aws/aws-sdk-js-v3/commit/0fd7c7128d910cc6efeea874ad69b7b6748b216a))
25
+
26
+
27
+
28
+
29
+
6
30
  # [3.196.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.195.0...v3.196.0) (2022-10-25)
7
31
 
8
32
 
package/dist-cjs/Kafka.js CHANGED
@@ -36,6 +36,7 @@ const UpdateConfigurationCommand_1 = require("./commands/UpdateConfigurationComm
36
36
  const UpdateConnectivityCommand_1 = require("./commands/UpdateConnectivityCommand");
37
37
  const UpdateMonitoringCommand_1 = require("./commands/UpdateMonitoringCommand");
38
38
  const UpdateSecurityCommand_1 = require("./commands/UpdateSecurityCommand");
39
+ const UpdateStorageCommand_1 = require("./commands/UpdateStorageCommand");
39
40
  const KafkaClient_1 = require("./KafkaClient");
40
41
  class Kafka extends KafkaClient_1.KafkaClient {
41
42
  batchAssociateScramSecret(args, optionsOrCb, cb) {
@@ -528,5 +529,19 @@ class Kafka extends KafkaClient_1.KafkaClient {
528
529
  return this.send(command, optionsOrCb);
529
530
  }
530
531
  }
532
+ updateStorage(args, optionsOrCb, cb) {
533
+ const command = new UpdateStorageCommand_1.UpdateStorageCommand(args);
534
+ if (typeof optionsOrCb === "function") {
535
+ this.send(command, optionsOrCb);
536
+ }
537
+ else if (typeof cb === "function") {
538
+ if (typeof optionsOrCb !== "object")
539
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
540
+ this.send(command, optionsOrCb || {}, cb);
541
+ }
542
+ else {
543
+ return this.send(command, optionsOrCb);
544
+ }
545
+ }
531
546
  }
532
547
  exports.Kafka = Kafka;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateStorageCommand = 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_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class UpdateStorageCommand 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
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
20
+ };
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateStorageCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "KafkaClient";
28
+ const commandName = "UpdateStorageCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: models_0_1.UpdateStorageRequestFilterSensitiveLog,
34
+ outputFilterSensitiveLog: models_0_1.UpdateStorageResponseFilterSensitiveLog,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.serializeAws_restJson1UpdateStorageCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateStorageCommand)(output, context);
44
+ }
45
+ }
46
+ exports.UpdateStorageCommand = UpdateStorageCommand;
@@ -36,3 +36,4 @@ tslib_1.__exportStar(require("./UpdateConfigurationCommand"), exports);
36
36
  tslib_1.__exportStar(require("./UpdateConnectivityCommand"), exports);
37
37
  tslib_1.__exportStar(require("./UpdateMonitoringCommand"), exports);
38
38
  tslib_1.__exportStar(require("./UpdateSecurityCommand"), exports);
39
+ tslib_1.__exportStar(require("./UpdateStorageCommand"), exports);
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JmxExporterFilterSensitiveLog = exports.ClusterFilterSensitiveLog = exports.StateInfoFilterSensitiveLog = exports.ServerlessFilterSensitiveLog = exports.VpcConfigFilterSensitiveLog = exports.ServerlessClientAuthenticationFilterSensitiveLog = exports.ServerlessSaslFilterSensitiveLog = exports.ProvisionedFilterSensitiveLog = exports.OpenMonitoringInfoFilterSensitiveLog = exports.PrometheusInfoFilterSensitiveLog = exports.NodeExporterInfoFilterSensitiveLog = exports.JmxExporterInfoFilterSensitiveLog = exports.LoggingInfoFilterSensitiveLog = exports.BrokerLogsFilterSensitiveLog = exports.S3FilterSensitiveLog = exports.FirehoseFilterSensitiveLog = exports.CloudWatchLogsFilterSensitiveLog = exports.EncryptionInfoFilterSensitiveLog = exports.EncryptionInTransitFilterSensitiveLog = exports.EncryptionAtRestFilterSensitiveLog = exports.BrokerSoftwareInfoFilterSensitiveLog = exports.ClientAuthenticationFilterSensitiveLog = exports.UnauthenticatedFilterSensitiveLog = exports.TlsFilterSensitiveLog = exports.SaslFilterSensitiveLog = exports.ScramFilterSensitiveLog = exports.IamFilterSensitiveLog = exports.BrokerNodeGroupInfoFilterSensitiveLog = exports.StorageInfoFilterSensitiveLog = exports.EBSStorageInfoFilterSensitiveLog = exports.ConnectivityInfoFilterSensitiveLog = exports.PublicAccessFilterSensitiveLog = exports.BrokerEBSVolumeInfoFilterSensitiveLog = exports.ProvisionedThroughputFilterSensitiveLog = exports.ConflictException = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BadRequestException = exports.NodeType = exports.KafkaVersionStatus = exports.ConfigurationState = exports.ClusterState = exports.EnhancedMonitoring = exports.ClientBroker = exports.BrokerAZDistribution = exports.ClusterType = void 0;
4
- exports.ListClusterOperationsResponseFilterSensitiveLog = exports.ListClusterOperationsRequestFilterSensitiveLog = exports.GetCompatibleKafkaVersionsResponseFilterSensitiveLog = exports.GetCompatibleKafkaVersionsRequestFilterSensitiveLog = exports.GetBootstrapBrokersResponseFilterSensitiveLog = exports.GetBootstrapBrokersRequestFilterSensitiveLog = exports.DescribeConfigurationRevisionResponseFilterSensitiveLog = exports.DescribeConfigurationRevisionRequestFilterSensitiveLog = exports.DescribeConfigurationResponseFilterSensitiveLog = exports.DescribeConfigurationRequestFilterSensitiveLog = exports.DescribeClusterV2ResponseFilterSensitiveLog = exports.DescribeClusterV2RequestFilterSensitiveLog = exports.DescribeClusterOperationResponseFilterSensitiveLog = exports.DescribeClusterOperationRequestFilterSensitiveLog = exports.DescribeClusterResponseFilterSensitiveLog = exports.DescribeClusterRequestFilterSensitiveLog = exports.DeleteConfigurationResponseFilterSensitiveLog = exports.DeleteConfigurationRequestFilterSensitiveLog = exports.DeleteClusterResponseFilterSensitiveLog = exports.DeleteClusterRequestFilterSensitiveLog = exports.CreateConfigurationResponseFilterSensitiveLog = exports.CreateConfigurationRequestFilterSensitiveLog = exports.CreateClusterV2ResponseFilterSensitiveLog = exports.CreateClusterV2RequestFilterSensitiveLog = exports.ServerlessRequestFilterSensitiveLog = exports.ProvisionedRequestFilterSensitiveLog = exports.CreateClusterResponseFilterSensitiveLog = exports.CreateClusterRequestFilterSensitiveLog = exports.BatchDisassociateScramSecretResponseFilterSensitiveLog = exports.BatchDisassociateScramSecretRequestFilterSensitiveLog = exports.BatchAssociateScramSecretResponseFilterSensitiveLog = exports.BatchAssociateScramSecretRequestFilterSensitiveLog = exports.UnprocessedScramSecretFilterSensitiveLog = exports.NodeInfoFilterSensitiveLog = exports.ZookeeperNodeInfoFilterSensitiveLog = exports.BrokerNodeInfoFilterSensitiveLog = exports.KafkaVersionFilterSensitiveLog = exports.ConfigurationFilterSensitiveLog = exports.ConfigurationRevisionFilterSensitiveLog = exports.CompatibleKafkaVersionFilterSensitiveLog = exports.ClusterOperationInfoFilterSensitiveLog = exports.MutableClusterInfoFilterSensitiveLog = exports.ConfigurationInfoFilterSensitiveLog = exports.ClusterOperationStepFilterSensitiveLog = exports.ClusterOperationStepInfoFilterSensitiveLog = exports.ErrorInfoFilterSensitiveLog = exports.ClusterInfoFilterSensitiveLog = exports.OpenMonitoringFilterSensitiveLog = exports.PrometheusFilterSensitiveLog = exports.NodeExporterFilterSensitiveLog = void 0;
5
- exports.UpdateSecurityResponseFilterSensitiveLog = exports.UpdateSecurityRequestFilterSensitiveLog = exports.UpdateMonitoringResponseFilterSensitiveLog = exports.UpdateMonitoringRequestFilterSensitiveLog = exports.UpdateConnectivityResponseFilterSensitiveLog = exports.UpdateConnectivityRequestFilterSensitiveLog = exports.UpdateConfigurationResponseFilterSensitiveLog = exports.UpdateConfigurationRequestFilterSensitiveLog = exports.UpdateClusterKafkaVersionResponseFilterSensitiveLog = exports.UpdateClusterKafkaVersionRequestFilterSensitiveLog = exports.UpdateClusterConfigurationResponseFilterSensitiveLog = exports.UpdateClusterConfigurationRequestFilterSensitiveLog = exports.UpdateBrokerTypeResponseFilterSensitiveLog = exports.UpdateBrokerTypeRequestFilterSensitiveLog = exports.UpdateBrokerStorageResponseFilterSensitiveLog = exports.UpdateBrokerStorageRequestFilterSensitiveLog = exports.UpdateBrokerCountResponseFilterSensitiveLog = exports.UpdateBrokerCountRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RebootBrokerResponseFilterSensitiveLog = exports.RebootBrokerRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListScramSecretsResponseFilterSensitiveLog = exports.ListScramSecretsRequestFilterSensitiveLog = exports.ListNodesResponseFilterSensitiveLog = exports.ListNodesRequestFilterSensitiveLog = exports.ListKafkaVersionsResponseFilterSensitiveLog = exports.ListKafkaVersionsRequestFilterSensitiveLog = exports.ListConfigurationsResponseFilterSensitiveLog = exports.ListConfigurationsRequestFilterSensitiveLog = exports.ListConfigurationRevisionsResponseFilterSensitiveLog = exports.ListConfigurationRevisionsRequestFilterSensitiveLog = exports.ListClustersV2ResponseFilterSensitiveLog = exports.ListClustersV2RequestFilterSensitiveLog = exports.ListClustersResponseFilterSensitiveLog = exports.ListClustersRequestFilterSensitiveLog = void 0;
3
+ exports.ClusterFilterSensitiveLog = exports.StateInfoFilterSensitiveLog = exports.ServerlessFilterSensitiveLog = exports.VpcConfigFilterSensitiveLog = exports.ServerlessClientAuthenticationFilterSensitiveLog = exports.ServerlessSaslFilterSensitiveLog = exports.ProvisionedFilterSensitiveLog = exports.OpenMonitoringInfoFilterSensitiveLog = exports.PrometheusInfoFilterSensitiveLog = exports.NodeExporterInfoFilterSensitiveLog = exports.JmxExporterInfoFilterSensitiveLog = exports.LoggingInfoFilterSensitiveLog = exports.BrokerLogsFilterSensitiveLog = exports.S3FilterSensitiveLog = exports.FirehoseFilterSensitiveLog = exports.CloudWatchLogsFilterSensitiveLog = exports.EncryptionInfoFilterSensitiveLog = exports.EncryptionInTransitFilterSensitiveLog = exports.EncryptionAtRestFilterSensitiveLog = exports.BrokerSoftwareInfoFilterSensitiveLog = exports.ClientAuthenticationFilterSensitiveLog = exports.UnauthenticatedFilterSensitiveLog = exports.TlsFilterSensitiveLog = exports.SaslFilterSensitiveLog = exports.ScramFilterSensitiveLog = exports.IamFilterSensitiveLog = exports.BrokerNodeGroupInfoFilterSensitiveLog = exports.StorageInfoFilterSensitiveLog = exports.EBSStorageInfoFilterSensitiveLog = exports.ConnectivityInfoFilterSensitiveLog = exports.PublicAccessFilterSensitiveLog = exports.BrokerEBSVolumeInfoFilterSensitiveLog = exports.ProvisionedThroughputFilterSensitiveLog = exports.ConflictException = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BadRequestException = exports.NodeType = exports.KafkaVersionStatus = exports.ConfigurationState = exports.ClusterState = exports.StorageMode = exports.EnhancedMonitoring = exports.ClientBroker = exports.BrokerAZDistribution = exports.ClusterType = void 0;
4
+ exports.ListClusterOperationsRequestFilterSensitiveLog = exports.GetCompatibleKafkaVersionsResponseFilterSensitiveLog = exports.GetCompatibleKafkaVersionsRequestFilterSensitiveLog = exports.GetBootstrapBrokersResponseFilterSensitiveLog = exports.GetBootstrapBrokersRequestFilterSensitiveLog = exports.DescribeConfigurationRevisionResponseFilterSensitiveLog = exports.DescribeConfigurationRevisionRequestFilterSensitiveLog = exports.DescribeConfigurationResponseFilterSensitiveLog = exports.DescribeConfigurationRequestFilterSensitiveLog = exports.DescribeClusterV2ResponseFilterSensitiveLog = exports.DescribeClusterV2RequestFilterSensitiveLog = exports.DescribeClusterOperationResponseFilterSensitiveLog = exports.DescribeClusterOperationRequestFilterSensitiveLog = exports.DescribeClusterResponseFilterSensitiveLog = exports.DescribeClusterRequestFilterSensitiveLog = exports.DeleteConfigurationResponseFilterSensitiveLog = exports.DeleteConfigurationRequestFilterSensitiveLog = exports.DeleteClusterResponseFilterSensitiveLog = exports.DeleteClusterRequestFilterSensitiveLog = exports.CreateConfigurationResponseFilterSensitiveLog = exports.CreateConfigurationRequestFilterSensitiveLog = exports.CreateClusterV2ResponseFilterSensitiveLog = exports.CreateClusterV2RequestFilterSensitiveLog = exports.ServerlessRequestFilterSensitiveLog = exports.ProvisionedRequestFilterSensitiveLog = exports.CreateClusterResponseFilterSensitiveLog = exports.CreateClusterRequestFilterSensitiveLog = exports.BatchDisassociateScramSecretResponseFilterSensitiveLog = exports.BatchDisassociateScramSecretRequestFilterSensitiveLog = exports.BatchAssociateScramSecretResponseFilterSensitiveLog = exports.BatchAssociateScramSecretRequestFilterSensitiveLog = exports.UnprocessedScramSecretFilterSensitiveLog = exports.NodeInfoFilterSensitiveLog = exports.ZookeeperNodeInfoFilterSensitiveLog = exports.BrokerNodeInfoFilterSensitiveLog = exports.KafkaVersionFilterSensitiveLog = exports.ConfigurationFilterSensitiveLog = exports.ConfigurationRevisionFilterSensitiveLog = exports.CompatibleKafkaVersionFilterSensitiveLog = exports.ClusterOperationInfoFilterSensitiveLog = exports.MutableClusterInfoFilterSensitiveLog = exports.ConfigurationInfoFilterSensitiveLog = exports.ClusterOperationStepFilterSensitiveLog = exports.ClusterOperationStepInfoFilterSensitiveLog = exports.ErrorInfoFilterSensitiveLog = exports.ClusterInfoFilterSensitiveLog = exports.OpenMonitoringFilterSensitiveLog = exports.PrometheusFilterSensitiveLog = exports.NodeExporterFilterSensitiveLog = exports.JmxExporterFilterSensitiveLog = void 0;
5
+ exports.UpdateStorageResponseFilterSensitiveLog = exports.UpdateStorageRequestFilterSensitiveLog = exports.UpdateSecurityResponseFilterSensitiveLog = exports.UpdateSecurityRequestFilterSensitiveLog = exports.UpdateMonitoringResponseFilterSensitiveLog = exports.UpdateMonitoringRequestFilterSensitiveLog = exports.UpdateConnectivityResponseFilterSensitiveLog = exports.UpdateConnectivityRequestFilterSensitiveLog = exports.UpdateConfigurationResponseFilterSensitiveLog = exports.UpdateConfigurationRequestFilterSensitiveLog = exports.UpdateClusterKafkaVersionResponseFilterSensitiveLog = exports.UpdateClusterKafkaVersionRequestFilterSensitiveLog = exports.UpdateClusterConfigurationResponseFilterSensitiveLog = exports.UpdateClusterConfigurationRequestFilterSensitiveLog = exports.UpdateBrokerTypeResponseFilterSensitiveLog = exports.UpdateBrokerTypeRequestFilterSensitiveLog = exports.UpdateBrokerStorageResponseFilterSensitiveLog = exports.UpdateBrokerStorageRequestFilterSensitiveLog = exports.UpdateBrokerCountResponseFilterSensitiveLog = exports.UpdateBrokerCountRequestFilterSensitiveLog = exports.UntagResourceRequestFilterSensitiveLog = exports.TagResourceRequestFilterSensitiveLog = exports.RebootBrokerResponseFilterSensitiveLog = exports.RebootBrokerRequestFilterSensitiveLog = exports.ListTagsForResourceResponseFilterSensitiveLog = exports.ListTagsForResourceRequestFilterSensitiveLog = exports.ListScramSecretsResponseFilterSensitiveLog = exports.ListScramSecretsRequestFilterSensitiveLog = exports.ListNodesResponseFilterSensitiveLog = exports.ListNodesRequestFilterSensitiveLog = exports.ListKafkaVersionsResponseFilterSensitiveLog = exports.ListKafkaVersionsRequestFilterSensitiveLog = exports.ListConfigurationsResponseFilterSensitiveLog = exports.ListConfigurationsRequestFilterSensitiveLog = exports.ListConfigurationRevisionsResponseFilterSensitiveLog = exports.ListConfigurationRevisionsRequestFilterSensitiveLog = exports.ListClustersV2ResponseFilterSensitiveLog = exports.ListClustersV2RequestFilterSensitiveLog = exports.ListClustersResponseFilterSensitiveLog = exports.ListClustersRequestFilterSensitiveLog = exports.ListClusterOperationsResponseFilterSensitiveLog = void 0;
6
6
  const KafkaServiceException_1 = require("./KafkaServiceException");
7
7
  var ClusterType;
8
8
  (function (ClusterType) {
@@ -26,6 +26,11 @@ var EnhancedMonitoring;
26
26
  EnhancedMonitoring["PER_TOPIC_PER_BROKER"] = "PER_TOPIC_PER_BROKER";
27
27
  EnhancedMonitoring["PER_TOPIC_PER_PARTITION"] = "PER_TOPIC_PER_PARTITION";
28
28
  })(EnhancedMonitoring = exports.EnhancedMonitoring || (exports.EnhancedMonitoring = {}));
29
+ var StorageMode;
30
+ (function (StorageMode) {
31
+ StorageMode["LOCAL"] = "LOCAL";
32
+ StorageMode["TIERED"] = "TIERED";
33
+ })(StorageMode = exports.StorageMode || (exports.StorageMode = {}));
29
34
  var ClusterState;
30
35
  (function (ClusterState) {
31
36
  ClusterState["ACTIVE"] = "ACTIVE";
@@ -660,3 +665,11 @@ const UpdateSecurityResponseFilterSensitiveLog = (obj) => ({
660
665
  ...obj,
661
666
  });
662
667
  exports.UpdateSecurityResponseFilterSensitiveLog = UpdateSecurityResponseFilterSensitiveLog;
668
+ const UpdateStorageRequestFilterSensitiveLog = (obj) => ({
669
+ ...obj,
670
+ });
671
+ exports.UpdateStorageRequestFilterSensitiveLog = UpdateStorageRequestFilterSensitiveLog;
672
+ const UpdateStorageResponseFilterSensitiveLog = (obj) => ({
673
+ ...obj,
674
+ });
675
+ exports.UpdateStorageResponseFilterSensitiveLog = UpdateStorageResponseFilterSensitiveLog;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1ListClusterOperationsCommand = exports.deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.deserializeAws_restJson1GetBootstrapBrokersCommand = exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = exports.deserializeAws_restJson1DescribeConfigurationCommand = exports.deserializeAws_restJson1DescribeClusterV2Command = exports.deserializeAws_restJson1DescribeClusterOperationCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DeleteConfigurationCommand = exports.deserializeAws_restJson1DeleteClusterCommand = exports.deserializeAws_restJson1CreateConfigurationCommand = exports.deserializeAws_restJson1CreateClusterV2Command = exports.deserializeAws_restJson1CreateClusterCommand = exports.deserializeAws_restJson1BatchDisassociateScramSecretCommand = exports.deserializeAws_restJson1BatchAssociateScramSecretCommand = exports.serializeAws_restJson1UpdateSecurityCommand = exports.serializeAws_restJson1UpdateMonitoringCommand = exports.serializeAws_restJson1UpdateConnectivityCommand = exports.serializeAws_restJson1UpdateConfigurationCommand = exports.serializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.serializeAws_restJson1UpdateClusterConfigurationCommand = exports.serializeAws_restJson1UpdateBrokerTypeCommand = exports.serializeAws_restJson1UpdateBrokerStorageCommand = exports.serializeAws_restJson1UpdateBrokerCountCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RebootBrokerCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListScramSecretsCommand = exports.serializeAws_restJson1ListNodesCommand = exports.serializeAws_restJson1ListKafkaVersionsCommand = exports.serializeAws_restJson1ListConfigurationsCommand = exports.serializeAws_restJson1ListConfigurationRevisionsCommand = exports.serializeAws_restJson1ListClustersV2Command = exports.serializeAws_restJson1ListClustersCommand = exports.serializeAws_restJson1ListClusterOperationsCommand = exports.serializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.serializeAws_restJson1GetBootstrapBrokersCommand = exports.serializeAws_restJson1DescribeConfigurationRevisionCommand = exports.serializeAws_restJson1DescribeConfigurationCommand = exports.serializeAws_restJson1DescribeClusterV2Command = exports.serializeAws_restJson1DescribeClusterOperationCommand = exports.serializeAws_restJson1DescribeClusterCommand = exports.serializeAws_restJson1DeleteConfigurationCommand = exports.serializeAws_restJson1DeleteClusterCommand = exports.serializeAws_restJson1CreateConfigurationCommand = exports.serializeAws_restJson1CreateClusterV2Command = exports.serializeAws_restJson1CreateClusterCommand = exports.serializeAws_restJson1BatchDisassociateScramSecretCommand = exports.serializeAws_restJson1BatchAssociateScramSecretCommand = void 0;
4
- exports.deserializeAws_restJson1UpdateSecurityCommand = exports.deserializeAws_restJson1UpdateMonitoringCommand = exports.deserializeAws_restJson1UpdateConnectivityCommand = exports.deserializeAws_restJson1UpdateConfigurationCommand = exports.deserializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.deserializeAws_restJson1UpdateClusterConfigurationCommand = exports.deserializeAws_restJson1UpdateBrokerTypeCommand = exports.deserializeAws_restJson1UpdateBrokerStorageCommand = exports.deserializeAws_restJson1UpdateBrokerCountCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RebootBrokerCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListScramSecretsCommand = exports.deserializeAws_restJson1ListNodesCommand = exports.deserializeAws_restJson1ListKafkaVersionsCommand = exports.deserializeAws_restJson1ListConfigurationsCommand = exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = exports.deserializeAws_restJson1ListClustersV2Command = exports.deserializeAws_restJson1ListClustersCommand = void 0;
3
+ exports.deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.deserializeAws_restJson1GetBootstrapBrokersCommand = exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = exports.deserializeAws_restJson1DescribeConfigurationCommand = exports.deserializeAws_restJson1DescribeClusterV2Command = exports.deserializeAws_restJson1DescribeClusterOperationCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DeleteConfigurationCommand = exports.deserializeAws_restJson1DeleteClusterCommand = exports.deserializeAws_restJson1CreateConfigurationCommand = exports.deserializeAws_restJson1CreateClusterV2Command = exports.deserializeAws_restJson1CreateClusterCommand = exports.deserializeAws_restJson1BatchDisassociateScramSecretCommand = exports.deserializeAws_restJson1BatchAssociateScramSecretCommand = exports.serializeAws_restJson1UpdateStorageCommand = exports.serializeAws_restJson1UpdateSecurityCommand = exports.serializeAws_restJson1UpdateMonitoringCommand = exports.serializeAws_restJson1UpdateConnectivityCommand = exports.serializeAws_restJson1UpdateConfigurationCommand = exports.serializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.serializeAws_restJson1UpdateClusterConfigurationCommand = exports.serializeAws_restJson1UpdateBrokerTypeCommand = exports.serializeAws_restJson1UpdateBrokerStorageCommand = exports.serializeAws_restJson1UpdateBrokerCountCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1RebootBrokerCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListScramSecretsCommand = exports.serializeAws_restJson1ListNodesCommand = exports.serializeAws_restJson1ListKafkaVersionsCommand = exports.serializeAws_restJson1ListConfigurationsCommand = exports.serializeAws_restJson1ListConfigurationRevisionsCommand = exports.serializeAws_restJson1ListClustersV2Command = exports.serializeAws_restJson1ListClustersCommand = exports.serializeAws_restJson1ListClusterOperationsCommand = exports.serializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.serializeAws_restJson1GetBootstrapBrokersCommand = exports.serializeAws_restJson1DescribeConfigurationRevisionCommand = exports.serializeAws_restJson1DescribeConfigurationCommand = exports.serializeAws_restJson1DescribeClusterV2Command = exports.serializeAws_restJson1DescribeClusterOperationCommand = exports.serializeAws_restJson1DescribeClusterCommand = exports.serializeAws_restJson1DeleteConfigurationCommand = exports.serializeAws_restJson1DeleteClusterCommand = exports.serializeAws_restJson1CreateConfigurationCommand = exports.serializeAws_restJson1CreateClusterV2Command = exports.serializeAws_restJson1CreateClusterCommand = exports.serializeAws_restJson1BatchDisassociateScramSecretCommand = exports.serializeAws_restJson1BatchAssociateScramSecretCommand = void 0;
4
+ exports.deserializeAws_restJson1UpdateStorageCommand = exports.deserializeAws_restJson1UpdateSecurityCommand = exports.deserializeAws_restJson1UpdateMonitoringCommand = exports.deserializeAws_restJson1UpdateConnectivityCommand = exports.deserializeAws_restJson1UpdateConfigurationCommand = exports.deserializeAws_restJson1UpdateClusterKafkaVersionCommand = exports.deserializeAws_restJson1UpdateClusterConfigurationCommand = exports.deserializeAws_restJson1UpdateBrokerTypeCommand = exports.deserializeAws_restJson1UpdateBrokerStorageCommand = exports.deserializeAws_restJson1UpdateBrokerCountCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1RebootBrokerCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListScramSecretsCommand = exports.deserializeAws_restJson1ListNodesCommand = exports.deserializeAws_restJson1ListKafkaVersionsCommand = exports.deserializeAws_restJson1ListConfigurationsCommand = exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = exports.deserializeAws_restJson1ListClustersV2Command = exports.deserializeAws_restJson1ListClustersCommand = exports.deserializeAws_restJson1ListClusterOperationsCommand = void 0;
5
5
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const KafkaServiceException_1 = require("../models/KafkaServiceException");
@@ -82,6 +82,7 @@ const serializeAws_restJson1CreateClusterCommand = async (input, context) => {
82
82
  ...(input.OpenMonitoring != null && {
83
83
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
84
84
  }),
85
+ ...(input.StorageMode != null && { storageMode: input.StorageMode }),
85
86
  ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
86
87
  });
87
88
  return new protocol_http_1.HttpRequest({
@@ -792,6 +793,33 @@ const serializeAws_restJson1UpdateSecurityCommand = async (input, context) => {
792
793
  });
793
794
  };
794
795
  exports.serializeAws_restJson1UpdateSecurityCommand = serializeAws_restJson1UpdateSecurityCommand;
796
+ const serializeAws_restJson1UpdateStorageCommand = async (input, context) => {
797
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
798
+ const headers = {
799
+ "content-type": "application/json",
800
+ };
801
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/storage";
802
+ resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
803
+ let body;
804
+ body = JSON.stringify({
805
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
806
+ ...(input.ProvisionedThroughput != null && {
807
+ provisionedThroughput: serializeAws_restJson1ProvisionedThroughput(input.ProvisionedThroughput, context),
808
+ }),
809
+ ...(input.StorageMode != null && { storageMode: input.StorageMode }),
810
+ ...(input.VolumeSizeGB != null && { volumeSizeGB: input.VolumeSizeGB }),
811
+ });
812
+ return new protocol_http_1.HttpRequest({
813
+ protocol,
814
+ hostname,
815
+ port,
816
+ method: "PUT",
817
+ headers,
818
+ path: resolvedPath,
819
+ body,
820
+ });
821
+ };
822
+ exports.serializeAws_restJson1UpdateStorageCommand = serializeAws_restJson1UpdateStorageCommand;
795
823
  const deserializeAws_restJson1BatchAssociateScramSecretCommand = async (output, context) => {
796
824
  if (output.statusCode !== 200 && output.statusCode >= 300) {
797
825
  return deserializeAws_restJson1BatchAssociateScramSecretCommandError(output, context);
@@ -2582,6 +2610,61 @@ const deserializeAws_restJson1UpdateSecurityCommandError = async (output, contex
2582
2610
  });
2583
2611
  }
2584
2612
  };
2613
+ const deserializeAws_restJson1UpdateStorageCommand = async (output, context) => {
2614
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2615
+ return deserializeAws_restJson1UpdateStorageCommandError(output, context);
2616
+ }
2617
+ const contents = map({
2618
+ $metadata: deserializeMetadata(output),
2619
+ });
2620
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2621
+ if (data.clusterArn != null) {
2622
+ contents.ClusterArn = (0, smithy_client_1.expectString)(data.clusterArn);
2623
+ }
2624
+ if (data.clusterOperationArn != null) {
2625
+ contents.ClusterOperationArn = (0, smithy_client_1.expectString)(data.clusterOperationArn);
2626
+ }
2627
+ return contents;
2628
+ };
2629
+ exports.deserializeAws_restJson1UpdateStorageCommand = deserializeAws_restJson1UpdateStorageCommand;
2630
+ const deserializeAws_restJson1UpdateStorageCommandError = async (output, context) => {
2631
+ const parsedOutput = {
2632
+ ...output,
2633
+ body: await parseErrorBody(output.body, context),
2634
+ };
2635
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2636
+ switch (errorCode) {
2637
+ case "BadRequestException":
2638
+ case "com.amazonaws.kafka#BadRequestException":
2639
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2640
+ case "ForbiddenException":
2641
+ case "com.amazonaws.kafka#ForbiddenException":
2642
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2643
+ case "InternalServerErrorException":
2644
+ case "com.amazonaws.kafka#InternalServerErrorException":
2645
+ throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
2646
+ case "NotFoundException":
2647
+ case "com.amazonaws.kafka#NotFoundException":
2648
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2649
+ case "ServiceUnavailableException":
2650
+ case "com.amazonaws.kafka#ServiceUnavailableException":
2651
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2652
+ case "TooManyRequestsException":
2653
+ case "com.amazonaws.kafka#TooManyRequestsException":
2654
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2655
+ case "UnauthorizedException":
2656
+ case "com.amazonaws.kafka#UnauthorizedException":
2657
+ throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2658
+ default:
2659
+ const parsedBody = parsedOutput.body;
2660
+ (0, smithy_client_1.throwDefaultError)({
2661
+ output,
2662
+ parsedBody,
2663
+ exceptionCtor: KafkaServiceException_1.KafkaServiceException,
2664
+ errorCode,
2665
+ });
2666
+ }
2667
+ };
2585
2668
  const map = smithy_client_1.map;
2586
2669
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
2587
2670
  const contents = map({});
@@ -2888,6 +2971,7 @@ const serializeAws_restJson1ProvisionedRequest = (input, context) => {
2888
2971
  ...(input.OpenMonitoring != null && {
2889
2972
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
2890
2973
  }),
2974
+ ...(input.StorageMode != null && { storageMode: input.StorageMode }),
2891
2975
  };
2892
2976
  };
2893
2977
  const serializeAws_restJson1ProvisionedThroughput = (input, context) => {
@@ -3229,6 +3313,7 @@ const deserializeAws_restJson1ClusterInfo = (output, context) => {
3229
3313
  : undefined,
3230
3314
  State: (0, smithy_client_1.expectString)(output.state),
3231
3315
  StateInfo: output.stateInfo != null ? deserializeAws_restJson1StateInfo(output.stateInfo, context) : undefined,
3316
+ StorageMode: (0, smithy_client_1.expectString)(output.storageMode),
3232
3317
  Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
3233
3318
  ZookeeperConnectString: (0, smithy_client_1.expectString)(output.zookeeperConnectString),
3234
3319
  ZookeeperConnectStringTls: (0, smithy_client_1.expectString)(output.zookeeperConnectStringTls),
@@ -3399,6 +3484,7 @@ const deserializeAws_restJson1MutableClusterInfo = (output, context) => {
3399
3484
  OpenMonitoring: output.openMonitoring != null
3400
3485
  ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
3401
3486
  : undefined,
3487
+ StorageMode: (0, smithy_client_1.expectString)(output.storageMode),
3402
3488
  };
3403
3489
  };
3404
3490
  const deserializeAws_restJson1NodeExporter = (output, context) => {
@@ -3467,6 +3553,7 @@ const deserializeAws_restJson1Provisioned = (output, context) => {
3467
3553
  OpenMonitoring: output.openMonitoring != null
3468
3554
  ? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
3469
3555
  : undefined,
3556
+ StorageMode: (0, smithy_client_1.expectString)(output.storageMode),
3470
3557
  ZookeeperConnectString: (0, smithy_client_1.expectString)(output.zookeeperConnectString),
3471
3558
  ZookeeperConnectStringTls: (0, smithy_client_1.expectString)(output.zookeeperConnectStringTls),
3472
3559
  };
package/dist-es/Kafka.js CHANGED
@@ -33,6 +33,7 @@ import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationComma
33
33
  import { UpdateConnectivityCommand, } from "./commands/UpdateConnectivityCommand";
34
34
  import { UpdateMonitoringCommand, } from "./commands/UpdateMonitoringCommand";
35
35
  import { UpdateSecurityCommand, } from "./commands/UpdateSecurityCommand";
36
+ import { UpdateStorageCommand, } from "./commands/UpdateStorageCommand";
36
37
  import { KafkaClient } from "./KafkaClient";
37
38
  export class Kafka extends KafkaClient {
38
39
  batchAssociateScramSecret(args, optionsOrCb, cb) {
@@ -525,4 +526,18 @@ export class Kafka extends KafkaClient {
525
526
  return this.send(command, optionsOrCb);
526
527
  }
527
528
  }
529
+ updateStorage(args, optionsOrCb, cb) {
530
+ const command = new UpdateStorageCommand(args);
531
+ if (typeof optionsOrCb === "function") {
532
+ this.send(command, optionsOrCb);
533
+ }
534
+ else if (typeof cb === "function") {
535
+ if (typeof optionsOrCb !== "object")
536
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
537
+ this.send(command, optionsOrCb || {}, cb);
538
+ }
539
+ else {
540
+ return this.send(command, optionsOrCb);
541
+ }
542
+ }
528
543
  }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdateStorageRequestFilterSensitiveLog, UpdateStorageResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdateStorageCommand, serializeAws_restJson1UpdateStorageCommand, } from "../protocols/Aws_restJson1";
6
+ export class UpdateStorageCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
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
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateStorageCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "KafkaClient";
25
+ const commandName = "UpdateStorageCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdateStorageRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdateStorageResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UpdateStorageCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UpdateStorageCommand(output, context);
41
+ }
42
+ }
@@ -33,3 +33,4 @@ export * from "./UpdateConfigurationCommand";
33
33
  export * from "./UpdateConnectivityCommand";
34
34
  export * from "./UpdateMonitoringCommand";
35
35
  export * from "./UpdateSecurityCommand";
36
+ export * from "./UpdateStorageCommand";
@@ -21,6 +21,11 @@ export var EnhancedMonitoring;
21
21
  EnhancedMonitoring["PER_TOPIC_PER_BROKER"] = "PER_TOPIC_PER_BROKER";
22
22
  EnhancedMonitoring["PER_TOPIC_PER_PARTITION"] = "PER_TOPIC_PER_PARTITION";
23
23
  })(EnhancedMonitoring || (EnhancedMonitoring = {}));
24
+ export var StorageMode;
25
+ (function (StorageMode) {
26
+ StorageMode["LOCAL"] = "LOCAL";
27
+ StorageMode["TIERED"] = "TIERED";
28
+ })(StorageMode || (StorageMode = {}));
24
29
  export var ClusterState;
25
30
  (function (ClusterState) {
26
31
  ClusterState["ACTIVE"] = "ACTIVE";
@@ -525,3 +530,9 @@ export const UpdateSecurityRequestFilterSensitiveLog = (obj) => ({
525
530
  export const UpdateSecurityResponseFilterSensitiveLog = (obj) => ({
526
531
  ...obj,
527
532
  });
533
+ export const UpdateStorageRequestFilterSensitiveLog = (obj) => ({
534
+ ...obj,
535
+ });
536
+ export const UpdateStorageResponseFilterSensitiveLog = (obj) => ({
537
+ ...obj,
538
+ });
@@ -76,6 +76,7 @@ export const serializeAws_restJson1CreateClusterCommand = async (input, context)
76
76
  ...(input.OpenMonitoring != null && {
77
77
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
78
78
  }),
79
+ ...(input.StorageMode != null && { storageMode: input.StorageMode }),
79
80
  ...(input.Tags != null && { tags: serializeAws_restJson1__mapOf__string(input.Tags, context) }),
80
81
  });
81
82
  return new __HttpRequest({
@@ -753,6 +754,32 @@ export const serializeAws_restJson1UpdateSecurityCommand = async (input, context
753
754
  body,
754
755
  });
755
756
  };
757
+ export const serializeAws_restJson1UpdateStorageCommand = async (input, context) => {
758
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
759
+ const headers = {
760
+ "content-type": "application/json",
761
+ };
762
+ let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/storage";
763
+ resolvedPath = __resolvedPath(resolvedPath, input, "ClusterArn", () => input.ClusterArn, "{ClusterArn}", false);
764
+ let body;
765
+ body = JSON.stringify({
766
+ ...(input.CurrentVersion != null && { currentVersion: input.CurrentVersion }),
767
+ ...(input.ProvisionedThroughput != null && {
768
+ provisionedThroughput: serializeAws_restJson1ProvisionedThroughput(input.ProvisionedThroughput, context),
769
+ }),
770
+ ...(input.StorageMode != null && { storageMode: input.StorageMode }),
771
+ ...(input.VolumeSizeGB != null && { volumeSizeGB: input.VolumeSizeGB }),
772
+ });
773
+ return new __HttpRequest({
774
+ protocol,
775
+ hostname,
776
+ port,
777
+ method: "PUT",
778
+ headers,
779
+ path: resolvedPath,
780
+ body,
781
+ });
782
+ };
756
783
  export const deserializeAws_restJson1BatchAssociateScramSecretCommand = async (output, context) => {
757
784
  if (output.statusCode !== 200 && output.statusCode >= 300) {
758
785
  return deserializeAws_restJson1BatchAssociateScramSecretCommandError(output, context);
@@ -2508,6 +2535,60 @@ const deserializeAws_restJson1UpdateSecurityCommandError = async (output, contex
2508
2535
  });
2509
2536
  }
2510
2537
  };
2538
+ export const deserializeAws_restJson1UpdateStorageCommand = async (output, context) => {
2539
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2540
+ return deserializeAws_restJson1UpdateStorageCommandError(output, context);
2541
+ }
2542
+ const contents = map({
2543
+ $metadata: deserializeMetadata(output),
2544
+ });
2545
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2546
+ if (data.clusterArn != null) {
2547
+ contents.ClusterArn = __expectString(data.clusterArn);
2548
+ }
2549
+ if (data.clusterOperationArn != null) {
2550
+ contents.ClusterOperationArn = __expectString(data.clusterOperationArn);
2551
+ }
2552
+ return contents;
2553
+ };
2554
+ const deserializeAws_restJson1UpdateStorageCommandError = async (output, context) => {
2555
+ const parsedOutput = {
2556
+ ...output,
2557
+ body: await parseErrorBody(output.body, context),
2558
+ };
2559
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2560
+ switch (errorCode) {
2561
+ case "BadRequestException":
2562
+ case "com.amazonaws.kafka#BadRequestException":
2563
+ throw await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context);
2564
+ case "ForbiddenException":
2565
+ case "com.amazonaws.kafka#ForbiddenException":
2566
+ throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
2567
+ case "InternalServerErrorException":
2568
+ case "com.amazonaws.kafka#InternalServerErrorException":
2569
+ throw await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context);
2570
+ case "NotFoundException":
2571
+ case "com.amazonaws.kafka#NotFoundException":
2572
+ throw await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context);
2573
+ case "ServiceUnavailableException":
2574
+ case "com.amazonaws.kafka#ServiceUnavailableException":
2575
+ throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
2576
+ case "TooManyRequestsException":
2577
+ case "com.amazonaws.kafka#TooManyRequestsException":
2578
+ throw await deserializeAws_restJson1TooManyRequestsExceptionResponse(parsedOutput, context);
2579
+ case "UnauthorizedException":
2580
+ case "com.amazonaws.kafka#UnauthorizedException":
2581
+ throw await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context);
2582
+ default:
2583
+ const parsedBody = parsedOutput.body;
2584
+ throwDefaultError({
2585
+ output,
2586
+ parsedBody,
2587
+ exceptionCtor: __BaseException,
2588
+ errorCode,
2589
+ });
2590
+ }
2591
+ };
2511
2592
  const map = __map;
2512
2593
  const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput, context) => {
2513
2594
  const contents = map({});
@@ -2814,6 +2895,7 @@ const serializeAws_restJson1ProvisionedRequest = (input, context) => {
2814
2895
  ...(input.OpenMonitoring != null && {
2815
2896
  openMonitoring: serializeAws_restJson1OpenMonitoringInfo(input.OpenMonitoring, context),
2816
2897
  }),
2898
+ ...(input.StorageMode != null && { storageMode: input.StorageMode }),
2817
2899
  };
2818
2900
  };
2819
2901
  const serializeAws_restJson1ProvisionedThroughput = (input, context) => {
@@ -3155,6 +3237,7 @@ const deserializeAws_restJson1ClusterInfo = (output, context) => {
3155
3237
  : undefined,
3156
3238
  State: __expectString(output.state),
3157
3239
  StateInfo: output.stateInfo != null ? deserializeAws_restJson1StateInfo(output.stateInfo, context) : undefined,
3240
+ StorageMode: __expectString(output.storageMode),
3158
3241
  Tags: output.tags != null ? deserializeAws_restJson1__mapOf__string(output.tags, context) : undefined,
3159
3242
  ZookeeperConnectString: __expectString(output.zookeeperConnectString),
3160
3243
  ZookeeperConnectStringTls: __expectString(output.zookeeperConnectStringTls),
@@ -3325,6 +3408,7 @@ const deserializeAws_restJson1MutableClusterInfo = (output, context) => {
3325
3408
  OpenMonitoring: output.openMonitoring != null
3326
3409
  ? deserializeAws_restJson1OpenMonitoring(output.openMonitoring, context)
3327
3410
  : undefined,
3411
+ StorageMode: __expectString(output.storageMode),
3328
3412
  };
3329
3413
  };
3330
3414
  const deserializeAws_restJson1NodeExporter = (output, context) => {
@@ -3393,6 +3477,7 @@ const deserializeAws_restJson1Provisioned = (output, context) => {
3393
3477
  OpenMonitoring: output.openMonitoring != null
3394
3478
  ? deserializeAws_restJson1OpenMonitoringInfo(output.openMonitoring, context)
3395
3479
  : undefined,
3480
+ StorageMode: __expectString(output.storageMode),
3396
3481
  ZookeeperConnectString: __expectString(output.zookeeperConnectString),
3397
3482
  ZookeeperConnectStringTls: __expectString(output.zookeeperConnectStringTls),
3398
3483
  };
@@ -34,6 +34,7 @@ import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } fro
34
34
  import { UpdateConnectivityCommandInput, UpdateConnectivityCommandOutput } from "./commands/UpdateConnectivityCommand";
35
35
  import { UpdateMonitoringCommandInput, UpdateMonitoringCommandOutput } from "./commands/UpdateMonitoringCommand";
36
36
  import { UpdateSecurityCommandInput, UpdateSecurityCommandOutput } from "./commands/UpdateSecurityCommand";
37
+ import { UpdateStorageCommandInput, UpdateStorageCommandOutput } from "./commands/UpdateStorageCommand";
37
38
  import { KafkaClient } from "./KafkaClient";
38
39
  /**
39
40
  * <p>The operations for managing an Amazon MSK cluster.</p>
@@ -249,4 +250,10 @@ export declare class Kafka extends KafkaClient {
249
250
  updateSecurity(args: UpdateSecurityCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSecurityCommandOutput>;
250
251
  updateSecurity(args: UpdateSecurityCommandInput, cb: (err: any, data?: UpdateSecurityCommandOutput) => void): void;
251
252
  updateSecurity(args: UpdateSecurityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSecurityCommandOutput) => void): void;
253
+ /**
254
+ * Updates cluster broker volume size (or) sets cluster storage mode to TIERED.
255
+ */
256
+ updateStorage(args: UpdateStorageCommandInput, options?: __HttpHandlerOptions): Promise<UpdateStorageCommandOutput>;
257
+ updateStorage(args: UpdateStorageCommandInput, cb: (err: any, data?: UpdateStorageCommandOutput) => void): void;
258
+ updateStorage(args: UpdateStorageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateStorageCommandOutput) => void): void;
252
259
  }
@@ -42,9 +42,10 @@ import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } fro
42
42
  import { UpdateConnectivityCommandInput, UpdateConnectivityCommandOutput } from "./commands/UpdateConnectivityCommand";
43
43
  import { UpdateMonitoringCommandInput, UpdateMonitoringCommandOutput } from "./commands/UpdateMonitoringCommand";
44
44
  import { UpdateSecurityCommandInput, UpdateSecurityCommandOutput } from "./commands/UpdateSecurityCommand";
45
+ import { UpdateStorageCommandInput, UpdateStorageCommandOutput } from "./commands/UpdateStorageCommand";
45
46
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
46
- export declare type ServiceInputTypes = BatchAssociateScramSecretCommandInput | BatchDisassociateScramSecretCommandInput | CreateClusterCommandInput | CreateClusterV2CommandInput | CreateConfigurationCommandInput | DeleteClusterCommandInput | DeleteConfigurationCommandInput | DescribeClusterCommandInput | DescribeClusterOperationCommandInput | DescribeClusterV2CommandInput | DescribeConfigurationCommandInput | DescribeConfigurationRevisionCommandInput | GetBootstrapBrokersCommandInput | GetCompatibleKafkaVersionsCommandInput | ListClusterOperationsCommandInput | ListClustersCommandInput | ListClustersV2CommandInput | ListConfigurationRevisionsCommandInput | ListConfigurationsCommandInput | ListKafkaVersionsCommandInput | ListNodesCommandInput | ListScramSecretsCommandInput | ListTagsForResourceCommandInput | RebootBrokerCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBrokerCountCommandInput | UpdateBrokerStorageCommandInput | UpdateBrokerTypeCommandInput | UpdateClusterConfigurationCommandInput | UpdateClusterKafkaVersionCommandInput | UpdateConfigurationCommandInput | UpdateConnectivityCommandInput | UpdateMonitoringCommandInput | UpdateSecurityCommandInput;
47
- export declare type ServiceOutputTypes = BatchAssociateScramSecretCommandOutput | BatchDisassociateScramSecretCommandOutput | CreateClusterCommandOutput | CreateClusterV2CommandOutput | CreateConfigurationCommandOutput | DeleteClusterCommandOutput | DeleteConfigurationCommandOutput | DescribeClusterCommandOutput | DescribeClusterOperationCommandOutput | DescribeClusterV2CommandOutput | DescribeConfigurationCommandOutput | DescribeConfigurationRevisionCommandOutput | GetBootstrapBrokersCommandOutput | GetCompatibleKafkaVersionsCommandOutput | ListClusterOperationsCommandOutput | ListClustersCommandOutput | ListClustersV2CommandOutput | ListConfigurationRevisionsCommandOutput | ListConfigurationsCommandOutput | ListKafkaVersionsCommandOutput | ListNodesCommandOutput | ListScramSecretsCommandOutput | ListTagsForResourceCommandOutput | RebootBrokerCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBrokerCountCommandOutput | UpdateBrokerStorageCommandOutput | UpdateBrokerTypeCommandOutput | UpdateClusterConfigurationCommandOutput | UpdateClusterKafkaVersionCommandOutput | UpdateConfigurationCommandOutput | UpdateConnectivityCommandOutput | UpdateMonitoringCommandOutput | UpdateSecurityCommandOutput;
47
+ export declare type ServiceInputTypes = BatchAssociateScramSecretCommandInput | BatchDisassociateScramSecretCommandInput | CreateClusterCommandInput | CreateClusterV2CommandInput | CreateConfigurationCommandInput | DeleteClusterCommandInput | DeleteConfigurationCommandInput | DescribeClusterCommandInput | DescribeClusterOperationCommandInput | DescribeClusterV2CommandInput | DescribeConfigurationCommandInput | DescribeConfigurationRevisionCommandInput | GetBootstrapBrokersCommandInput | GetCompatibleKafkaVersionsCommandInput | ListClusterOperationsCommandInput | ListClustersCommandInput | ListClustersV2CommandInput | ListConfigurationRevisionsCommandInput | ListConfigurationsCommandInput | ListKafkaVersionsCommandInput | ListNodesCommandInput | ListScramSecretsCommandInput | ListTagsForResourceCommandInput | RebootBrokerCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateBrokerCountCommandInput | UpdateBrokerStorageCommandInput | UpdateBrokerTypeCommandInput | UpdateClusterConfigurationCommandInput | UpdateClusterKafkaVersionCommandInput | UpdateConfigurationCommandInput | UpdateConnectivityCommandInput | UpdateMonitoringCommandInput | UpdateSecurityCommandInput | UpdateStorageCommandInput;
48
+ export declare type ServiceOutputTypes = BatchAssociateScramSecretCommandOutput | BatchDisassociateScramSecretCommandOutput | CreateClusterCommandOutput | CreateClusterV2CommandOutput | CreateConfigurationCommandOutput | DeleteClusterCommandOutput | DeleteConfigurationCommandOutput | DescribeClusterCommandOutput | DescribeClusterOperationCommandOutput | DescribeClusterV2CommandOutput | DescribeConfigurationCommandOutput | DescribeConfigurationRevisionCommandOutput | GetBootstrapBrokersCommandOutput | GetCompatibleKafkaVersionsCommandOutput | ListClusterOperationsCommandOutput | ListClustersCommandOutput | ListClustersV2CommandOutput | ListConfigurationRevisionsCommandOutput | ListConfigurationsCommandOutput | ListKafkaVersionsCommandOutput | ListNodesCommandOutput | ListScramSecretsCommandOutput | ListTagsForResourceCommandOutput | RebootBrokerCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateBrokerCountCommandOutput | UpdateBrokerStorageCommandOutput | UpdateBrokerTypeCommandOutput | UpdateClusterConfigurationCommandOutput | UpdateClusterKafkaVersionCommandOutput | UpdateConfigurationCommandOutput | UpdateConnectivityCommandOutput | UpdateMonitoringCommandOutput | UpdateSecurityCommandOutput | UpdateStorageCommandOutput;
48
49
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
49
50
  /**
50
51
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.