@aws-sdk/client-kafka 3.196.0 → 3.197.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/CHANGELOG.md +16 -0
- package/dist-cjs/Kafka.js +15 -0
- package/dist-cjs/commands/UpdateStorageCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +16 -3
- package/dist-cjs/protocols/Aws_restJson1.js +89 -2
- package/dist-es/Kafka.js +15 -0
- package/dist-es/commands/UpdateStorageCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +11 -0
- package/dist-es/protocols/Aws_restJson1.js +85 -0
- package/dist-types/Kafka.d.ts +7 -0
- package/dist-types/KafkaClient.d.ts +3 -2
- package/dist-types/commands/UpdateStorageCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +72 -5
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/Kafka.d.ts +17 -0
- package/dist-types/ts3.4/KafkaClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/UpdateStorageCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +9 -1
- package/dist-types/ts3.4/models/models_0.d.ts +26 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +10 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +10 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -8
- package/package.json +28 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.197.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.196.0...v3.197.0) (2022-10-26)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **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))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **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))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [3.196.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.195.0...v3.196.0) (2022-10-25)
|
|
7
23
|
|
|
8
24
|
|
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.
|
|
4
|
-
exports.
|
|
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.
|
|
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
|
+
}
|
|
@@ -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
|
};
|
package/dist-types/Kafka.d.ts
CHANGED
|
@@ -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.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { KafkaClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KafkaClient";
|
|
5
|
+
import { UpdateStorageRequest, UpdateStorageResponse } from "../models/models_0";
|
|
6
|
+
export interface UpdateStorageCommandInput extends UpdateStorageRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface UpdateStorageCommandOutput extends UpdateStorageResponse, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Updates cluster broker volume size (or) sets cluster storage mode to TIERED.
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { KafkaClient, UpdateStorageCommand } from "@aws-sdk/client-kafka"; // ES Modules import
|
|
16
|
+
* // const { KafkaClient, UpdateStorageCommand } = require("@aws-sdk/client-kafka"); // CommonJS import
|
|
17
|
+
* const client = new KafkaClient(config);
|
|
18
|
+
* const command = new UpdateStorageCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link UpdateStorageCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link UpdateStorageCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link KafkaClientResolvedConfig | config} for KafkaClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class UpdateStorageCommand extends $Command<UpdateStorageCommandInput, UpdateStorageCommandOutput, KafkaClientResolvedConfig> {
|
|
28
|
+
readonly input: UpdateStorageCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: UpdateStorageCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: KafkaClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateStorageCommandInput, UpdateStorageCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EndpointParameters as __EndpointParameters, Provider } from "@aws-sdk/types";
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@aws-sdk/types";
|
|
2
2
|
export interface ClientInputEndpointParameters {
|
|
3
3
|
region?: string | Provider<string>;
|
|
4
4
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
5
5
|
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
6
|
-
endpoint?: string | Provider<string>;
|
|
6
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
7
7
|
}
|
|
8
8
|
export declare type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
9
9
|
defaultSigningName: string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { KafkaServiceException as __BaseException } from "./KafkaServiceException";
|
|
3
3
|
/**
|
|
4
|
-
* Contains information about provisioned throughput for EBS storage volumes attached to kafka broker nodes
|
|
4
|
+
* <p>Contains information about provisioned throughput for EBS storage volumes attached to kafka broker nodes.</p>
|
|
5
5
|
*/
|
|
6
6
|
export interface ProvisionedThroughput {
|
|
7
7
|
/**
|
|
8
|
-
* Provisioned throughput is enabled or not
|
|
8
|
+
* <p>Provisioned throughput is enabled or not.</p>
|
|
9
9
|
*/
|
|
10
10
|
Enabled?: boolean;
|
|
11
11
|
/**
|
|
12
|
-
* Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second
|
|
12
|
+
* <p>Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.</p>
|
|
13
13
|
*/
|
|
14
14
|
VolumeThroughput?: number;
|
|
15
15
|
}
|
|
@@ -22,7 +22,7 @@ export interface BrokerEBSVolumeInfo {
|
|
|
22
22
|
*/
|
|
23
23
|
KafkaBrokerNodeId: string | undefined;
|
|
24
24
|
/**
|
|
25
|
-
* EBS volume provisioned throughput information
|
|
25
|
+
* <p>EBS volume provisioned throughput information.</p>
|
|
26
26
|
*/
|
|
27
27
|
ProvisionedThroughput?: ProvisionedThroughput;
|
|
28
28
|
/**
|
|
@@ -60,7 +60,7 @@ export interface ConnectivityInfo {
|
|
|
60
60
|
*/
|
|
61
61
|
export interface EBSStorageInfo {
|
|
62
62
|
/**
|
|
63
|
-
* EBS volume provisioned throughput information
|
|
63
|
+
* <p>EBS volume provisioned throughput information.</p>
|
|
64
64
|
*/
|
|
65
65
|
ProvisionedThroughput?: ProvisionedThroughput;
|
|
66
66
|
/**
|
|
@@ -307,6 +307,10 @@ export interface OpenMonitoringInfo {
|
|
|
307
307
|
*/
|
|
308
308
|
Prometheus: PrometheusInfo | undefined;
|
|
309
309
|
}
|
|
310
|
+
export declare enum StorageMode {
|
|
311
|
+
LOCAL = "LOCAL",
|
|
312
|
+
TIERED = "TIERED"
|
|
313
|
+
}
|
|
310
314
|
/**
|
|
311
315
|
* <p>Provisioned cluster.</p>
|
|
312
316
|
*/
|
|
@@ -351,6 +355,10 @@ export interface Provisioned {
|
|
|
351
355
|
* <p>The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.</p>
|
|
352
356
|
*/
|
|
353
357
|
ZookeeperConnectStringTls?: string;
|
|
358
|
+
/**
|
|
359
|
+
* <p>This controls storage mode for supported storage tiers.</p>
|
|
360
|
+
*/
|
|
361
|
+
StorageMode?: StorageMode | string;
|
|
354
362
|
}
|
|
355
363
|
/**
|
|
356
364
|
* <p>Details for client authentication using SASL.</p>
|
|
@@ -569,6 +577,10 @@ export interface ClusterInfo {
|
|
|
569
577
|
* <p>The connection string to use to connect to zookeeper cluster on Tls port.</p>
|
|
570
578
|
*/
|
|
571
579
|
ZookeeperConnectStringTls?: string;
|
|
580
|
+
/**
|
|
581
|
+
* <p>This controls storage mode for supported storage tiers.</p>
|
|
582
|
+
*/
|
|
583
|
+
StorageMode?: StorageMode | string;
|
|
572
584
|
}
|
|
573
585
|
/**
|
|
574
586
|
* <p>Returns information about an error state of the cluster.</p>
|
|
@@ -666,6 +678,10 @@ export interface MutableClusterInfo {
|
|
|
666
678
|
* <p>Information about the broker access configuration.</p>
|
|
667
679
|
*/
|
|
668
680
|
ConnectivityInfo?: ConnectivityInfo;
|
|
681
|
+
/**
|
|
682
|
+
* <p>This controls storage mode for supported storage tiers.</p>
|
|
683
|
+
*/
|
|
684
|
+
StorageMode?: StorageMode | string;
|
|
669
685
|
}
|
|
670
686
|
/**
|
|
671
687
|
* <p>Returns information about a cluster operation.</p>
|
|
@@ -1135,6 +1151,10 @@ export interface CreateClusterRequest {
|
|
|
1135
1151
|
* <p>Create tags when creating the cluster.</p>
|
|
1136
1152
|
*/
|
|
1137
1153
|
Tags?: Record<string, string>;
|
|
1154
|
+
/**
|
|
1155
|
+
* <p>This controls storage mode for supported storage tiers.</p>
|
|
1156
|
+
*/
|
|
1157
|
+
StorageMode?: StorageMode | string;
|
|
1138
1158
|
}
|
|
1139
1159
|
export interface CreateClusterResponse {
|
|
1140
1160
|
/**
|
|
@@ -1190,6 +1210,10 @@ export interface ProvisionedRequest {
|
|
|
1190
1210
|
* <p>The number of broker nodes in the cluster.</p>
|
|
1191
1211
|
*/
|
|
1192
1212
|
NumberOfBrokerNodes: number | undefined;
|
|
1213
|
+
/**
|
|
1214
|
+
* <p>This controls storage mode for supported storage tiers.</p>
|
|
1215
|
+
*/
|
|
1216
|
+
StorageMode?: StorageMode | string;
|
|
1193
1217
|
}
|
|
1194
1218
|
/**
|
|
1195
1219
|
* <p>Serverless cluster request.</p>
|
|
@@ -1972,6 +1996,41 @@ export interface UpdateSecurityResponse {
|
|
|
1972
1996
|
*/
|
|
1973
1997
|
ClusterOperationArn?: string;
|
|
1974
1998
|
}
|
|
1999
|
+
/**
|
|
2000
|
+
* <p>Request object for UpdateStorage api. Its used to update the storage attributes for the cluster.</p>
|
|
2001
|
+
*/
|
|
2002
|
+
export interface UpdateStorageRequest {
|
|
2003
|
+
/**
|
|
2004
|
+
* <p>The Amazon Resource Name (ARN) of the cluster to be updated.</p>
|
|
2005
|
+
*/
|
|
2006
|
+
ClusterArn: string | undefined;
|
|
2007
|
+
/**
|
|
2008
|
+
* <p>The version of cluster to update from. A successful operation will then generate a new version.</p>
|
|
2009
|
+
*/
|
|
2010
|
+
CurrentVersion: string | undefined;
|
|
2011
|
+
/**
|
|
2012
|
+
* <p>EBS volume provisioned throughput information.</p>
|
|
2013
|
+
*/
|
|
2014
|
+
ProvisionedThroughput?: ProvisionedThroughput;
|
|
2015
|
+
/**
|
|
2016
|
+
* <p>Controls storage mode for supported storage tiers.</p>
|
|
2017
|
+
*/
|
|
2018
|
+
StorageMode?: StorageMode | string;
|
|
2019
|
+
/**
|
|
2020
|
+
* <p>size of the EBS volume to update.</p>
|
|
2021
|
+
*/
|
|
2022
|
+
VolumeSizeGB?: number;
|
|
2023
|
+
}
|
|
2024
|
+
export interface UpdateStorageResponse {
|
|
2025
|
+
/**
|
|
2026
|
+
* <p>The Amazon Resource Name (ARN) of the cluster.</p>
|
|
2027
|
+
*/
|
|
2028
|
+
ClusterArn?: string;
|
|
2029
|
+
/**
|
|
2030
|
+
* <p>The Amazon Resource Name (ARN) of the cluster operation.</p>
|
|
2031
|
+
*/
|
|
2032
|
+
ClusterOperationArn?: string;
|
|
2033
|
+
}
|
|
1975
2034
|
/**
|
|
1976
2035
|
* @internal
|
|
1977
2036
|
*/
|
|
@@ -2460,3 +2519,11 @@ export declare const UpdateSecurityRequestFilterSensitiveLog: (obj: UpdateSecuri
|
|
|
2460
2519
|
* @internal
|
|
2461
2520
|
*/
|
|
2462
2521
|
export declare const UpdateSecurityResponseFilterSensitiveLog: (obj: UpdateSecurityResponse) => any;
|
|
2522
|
+
/**
|
|
2523
|
+
* @internal
|
|
2524
|
+
*/
|
|
2525
|
+
export declare const UpdateStorageRequestFilterSensitiveLog: (obj: UpdateStorageRequest) => any;
|
|
2526
|
+
/**
|
|
2527
|
+
* @internal
|
|
2528
|
+
*/
|
|
2529
|
+
export declare const UpdateStorageResponseFilterSensitiveLog: (obj: UpdateStorageResponse) => any;
|
|
@@ -35,6 +35,7 @@ import { UpdateConfigurationCommandInput, UpdateConfigurationCommandOutput } fro
|
|
|
35
35
|
import { UpdateConnectivityCommandInput, UpdateConnectivityCommandOutput } from "../commands/UpdateConnectivityCommand";
|
|
36
36
|
import { UpdateMonitoringCommandInput, UpdateMonitoringCommandOutput } from "../commands/UpdateMonitoringCommand";
|
|
37
37
|
import { UpdateSecurityCommandInput, UpdateSecurityCommandOutput } from "../commands/UpdateSecurityCommand";
|
|
38
|
+
import { UpdateStorageCommandInput, UpdateStorageCommandOutput } from "../commands/UpdateStorageCommand";
|
|
38
39
|
export declare const serializeAws_restJson1BatchAssociateScramSecretCommand: (input: BatchAssociateScramSecretCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
39
40
|
export declare const serializeAws_restJson1BatchDisassociateScramSecretCommand: (input: BatchDisassociateScramSecretCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
40
41
|
export declare const serializeAws_restJson1CreateClusterCommand: (input: CreateClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -70,6 +71,7 @@ export declare const serializeAws_restJson1UpdateConfigurationCommand: (input: U
|
|
|
70
71
|
export declare const serializeAws_restJson1UpdateConnectivityCommand: (input: UpdateConnectivityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
71
72
|
export declare const serializeAws_restJson1UpdateMonitoringCommand: (input: UpdateMonitoringCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
72
73
|
export declare const serializeAws_restJson1UpdateSecurityCommand: (input: UpdateSecurityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
74
|
+
export declare const serializeAws_restJson1UpdateStorageCommand: (input: UpdateStorageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
75
|
export declare const deserializeAws_restJson1BatchAssociateScramSecretCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchAssociateScramSecretCommandOutput>;
|
|
74
76
|
export declare const deserializeAws_restJson1BatchDisassociateScramSecretCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchDisassociateScramSecretCommandOutput>;
|
|
75
77
|
export declare const deserializeAws_restJson1CreateClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateClusterCommandOutput>;
|
|
@@ -105,3 +107,4 @@ export declare const deserializeAws_restJson1UpdateConfigurationCommand: (output
|
|
|
105
107
|
export declare const deserializeAws_restJson1UpdateConnectivityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateConnectivityCommandOutput>;
|
|
106
108
|
export declare const deserializeAws_restJson1UpdateMonitoringCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateMonitoringCommandOutput>;
|
|
107
109
|
export declare const deserializeAws_restJson1UpdateSecurityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSecurityCommandOutput>;
|
|
110
|
+
export declare const deserializeAws_restJson1UpdateStorageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateStorageCommandOutput>;
|
|
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
|
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
logger: import("@aws-sdk/types").Logger;
|
|
28
28
|
serviceId: string;
|
|
29
|
-
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
|
|
29
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
30
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
31
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
32
32
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -26,7 +26,7 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
|
|
|
26
26
|
disableHostPrefix: boolean;
|
|
27
27
|
logger: import("@aws-sdk/types").Logger;
|
|
28
28
|
serviceId: string;
|
|
29
|
-
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string>)) | undefined;
|
|
29
|
+
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
30
30
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
31
31
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
32
32
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -25,7 +25,7 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
|
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
27
27
|
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
28
|
-
endpoint?: string |
|
|
28
|
+
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> | undefined;
|
|
29
29
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
30
30
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
31
31
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
@@ -139,6 +139,10 @@ import {
|
|
|
139
139
|
UpdateSecurityCommandInput,
|
|
140
140
|
UpdateSecurityCommandOutput,
|
|
141
141
|
} from "./commands/UpdateSecurityCommand";
|
|
142
|
+
import {
|
|
143
|
+
UpdateStorageCommandInput,
|
|
144
|
+
UpdateStorageCommandOutput,
|
|
145
|
+
} from "./commands/UpdateStorageCommand";
|
|
142
146
|
import { KafkaClient } from "./KafkaClient";
|
|
143
147
|
export declare class Kafka extends KafkaClient {
|
|
144
148
|
batchAssociateScramSecret(
|
|
@@ -596,4 +600,17 @@ export declare class Kafka extends KafkaClient {
|
|
|
596
600
|
options: __HttpHandlerOptions,
|
|
597
601
|
cb: (err: any, data?: UpdateSecurityCommandOutput) => void
|
|
598
602
|
): void;
|
|
603
|
+
updateStorage(
|
|
604
|
+
args: UpdateStorageCommandInput,
|
|
605
|
+
options?: __HttpHandlerOptions
|
|
606
|
+
): Promise<UpdateStorageCommandOutput>;
|
|
607
|
+
updateStorage(
|
|
608
|
+
args: UpdateStorageCommandInput,
|
|
609
|
+
cb: (err: any, data?: UpdateStorageCommandOutput) => void
|
|
610
|
+
): void;
|
|
611
|
+
updateStorage(
|
|
612
|
+
args: UpdateStorageCommandInput,
|
|
613
|
+
options: __HttpHandlerOptions,
|
|
614
|
+
cb: (err: any, data?: UpdateStorageCommandOutput) => void
|
|
615
|
+
): void;
|
|
599
616
|
}
|
|
@@ -183,6 +183,10 @@ import {
|
|
|
183
183
|
UpdateSecurityCommandInput,
|
|
184
184
|
UpdateSecurityCommandOutput,
|
|
185
185
|
} from "./commands/UpdateSecurityCommand";
|
|
186
|
+
import {
|
|
187
|
+
UpdateStorageCommandInput,
|
|
188
|
+
UpdateStorageCommandOutput,
|
|
189
|
+
} from "./commands/UpdateStorageCommand";
|
|
186
190
|
import {
|
|
187
191
|
ClientInputEndpointParameters,
|
|
188
192
|
ClientResolvedEndpointParameters,
|
|
@@ -223,7 +227,8 @@ export declare type ServiceInputTypes =
|
|
|
223
227
|
| UpdateConfigurationCommandInput
|
|
224
228
|
| UpdateConnectivityCommandInput
|
|
225
229
|
| UpdateMonitoringCommandInput
|
|
226
|
-
| UpdateSecurityCommandInput
|
|
230
|
+
| UpdateSecurityCommandInput
|
|
231
|
+
| UpdateStorageCommandInput;
|
|
227
232
|
export declare type ServiceOutputTypes =
|
|
228
233
|
| BatchAssociateScramSecretCommandOutput
|
|
229
234
|
| BatchDisassociateScramSecretCommandOutput
|
|
@@ -259,7 +264,8 @@ export declare type ServiceOutputTypes =
|
|
|
259
264
|
| UpdateConfigurationCommandOutput
|
|
260
265
|
| UpdateConnectivityCommandOutput
|
|
261
266
|
| UpdateMonitoringCommandOutput
|
|
262
|
-
| UpdateSecurityCommandOutput
|
|
267
|
+
| UpdateSecurityCommandOutput
|
|
268
|
+
| UpdateStorageCommandOutput;
|
|
263
269
|
export interface ClientDefaults
|
|
264
270
|
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
265
271
|
requestHandler?: __HttpHandler;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
KafkaClientResolvedConfig,
|
|
11
|
+
ServiceInputTypes,
|
|
12
|
+
ServiceOutputTypes,
|
|
13
|
+
} from "../KafkaClient";
|
|
14
|
+
import {
|
|
15
|
+
UpdateStorageRequest,
|
|
16
|
+
UpdateStorageResponse,
|
|
17
|
+
} from "../models/models_0";
|
|
18
|
+
export interface UpdateStorageCommandInput extends UpdateStorageRequest {}
|
|
19
|
+
export interface UpdateStorageCommandOutput
|
|
20
|
+
extends UpdateStorageResponse,
|
|
21
|
+
__MetadataBearer {}
|
|
22
|
+
export declare class UpdateStorageCommand extends $Command<
|
|
23
|
+
UpdateStorageCommandInput,
|
|
24
|
+
UpdateStorageCommandOutput,
|
|
25
|
+
KafkaClientResolvedConfig
|
|
26
|
+
> {
|
|
27
|
+
readonly input: UpdateStorageCommandInput;
|
|
28
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
29
|
+
constructor(input: UpdateStorageCommandInput);
|
|
30
|
+
resolveMiddleware(
|
|
31
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
32
|
+
configuration: KafkaClientResolvedConfig,
|
|
33
|
+
options?: __HttpHandlerOptions
|
|
34
|
+
): Handler<UpdateStorageCommandInput, UpdateStorageCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
+
Endpoint,
|
|
2
3
|
EndpointParameters as __EndpointParameters,
|
|
4
|
+
EndpointV2,
|
|
3
5
|
Provider,
|
|
4
6
|
} from "@aws-sdk/types";
|
|
5
7
|
export interface ClientInputEndpointParameters {
|
|
6
8
|
region?: string | Provider<string>;
|
|
7
9
|
useDualstackEndpoint?: boolean | Provider<boolean>;
|
|
8
10
|
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
9
|
-
endpoint?:
|
|
11
|
+
endpoint?:
|
|
12
|
+
| string
|
|
13
|
+
| Provider<string>
|
|
14
|
+
| Endpoint
|
|
15
|
+
| Provider<Endpoint>
|
|
16
|
+
| EndpointV2
|
|
17
|
+
| Provider<EndpointV2>;
|
|
10
18
|
}
|
|
11
19
|
export declare type ClientResolvedEndpointParameters =
|
|
12
20
|
ClientInputEndpointParameters & {
|
|
@@ -120,6 +120,10 @@ export interface PrometheusInfo {
|
|
|
120
120
|
export interface OpenMonitoringInfo {
|
|
121
121
|
Prometheus: PrometheusInfo | undefined;
|
|
122
122
|
}
|
|
123
|
+
export declare enum StorageMode {
|
|
124
|
+
LOCAL = "LOCAL",
|
|
125
|
+
TIERED = "TIERED",
|
|
126
|
+
}
|
|
123
127
|
export interface Provisioned {
|
|
124
128
|
BrokerNodeGroupInfo: BrokerNodeGroupInfo | undefined;
|
|
125
129
|
CurrentBrokerSoftwareInfo?: BrokerSoftwareInfo;
|
|
@@ -131,6 +135,7 @@ export interface Provisioned {
|
|
|
131
135
|
NumberOfBrokerNodes: number | undefined;
|
|
132
136
|
ZookeeperConnectString?: string;
|
|
133
137
|
ZookeeperConnectStringTls?: string;
|
|
138
|
+
StorageMode?: StorageMode | string;
|
|
134
139
|
}
|
|
135
140
|
export interface ServerlessSasl {
|
|
136
141
|
Iam?: Iam;
|
|
@@ -205,6 +210,7 @@ export interface ClusterInfo {
|
|
|
205
210
|
Tags?: Record<string, string>;
|
|
206
211
|
ZookeeperConnectString?: string;
|
|
207
212
|
ZookeeperConnectStringTls?: string;
|
|
213
|
+
StorageMode?: StorageMode | string;
|
|
208
214
|
}
|
|
209
215
|
export interface ErrorInfo {
|
|
210
216
|
ErrorCode?: string;
|
|
@@ -233,6 +239,7 @@ export interface MutableClusterInfo {
|
|
|
233
239
|
ClientAuthentication?: ClientAuthentication;
|
|
234
240
|
EncryptionInfo?: EncryptionInfo;
|
|
235
241
|
ConnectivityInfo?: ConnectivityInfo;
|
|
242
|
+
StorageMode?: StorageMode | string;
|
|
236
243
|
}
|
|
237
244
|
export interface ClusterOperationInfo {
|
|
238
245
|
ClientRequestId?: string;
|
|
@@ -403,6 +410,7 @@ export interface CreateClusterRequest {
|
|
|
403
410
|
LoggingInfo?: LoggingInfo;
|
|
404
411
|
NumberOfBrokerNodes: number | undefined;
|
|
405
412
|
Tags?: Record<string, string>;
|
|
413
|
+
StorageMode?: StorageMode | string;
|
|
406
414
|
}
|
|
407
415
|
export interface CreateClusterResponse {
|
|
408
416
|
ClusterArn?: string;
|
|
@@ -419,6 +427,7 @@ export interface ProvisionedRequest {
|
|
|
419
427
|
KafkaVersion: string | undefined;
|
|
420
428
|
LoggingInfo?: LoggingInfo;
|
|
421
429
|
NumberOfBrokerNodes: number | undefined;
|
|
430
|
+
StorageMode?: StorageMode | string;
|
|
422
431
|
}
|
|
423
432
|
export interface ServerlessRequest {
|
|
424
433
|
VpcConfigs: VpcConfig[] | undefined;
|
|
@@ -701,6 +710,17 @@ export interface UpdateSecurityResponse {
|
|
|
701
710
|
ClusterArn?: string;
|
|
702
711
|
ClusterOperationArn?: string;
|
|
703
712
|
}
|
|
713
|
+
export interface UpdateStorageRequest {
|
|
714
|
+
ClusterArn: string | undefined;
|
|
715
|
+
CurrentVersion: string | undefined;
|
|
716
|
+
ProvisionedThroughput?: ProvisionedThroughput;
|
|
717
|
+
StorageMode?: StorageMode | string;
|
|
718
|
+
VolumeSizeGB?: number;
|
|
719
|
+
}
|
|
720
|
+
export interface UpdateStorageResponse {
|
|
721
|
+
ClusterArn?: string;
|
|
722
|
+
ClusterOperationArn?: string;
|
|
723
|
+
}
|
|
704
724
|
export declare const ProvisionedThroughputFilterSensitiveLog: (
|
|
705
725
|
obj: ProvisionedThroughput
|
|
706
726
|
) => any;
|
|
@@ -1023,3 +1043,9 @@ export declare const UpdateSecurityRequestFilterSensitiveLog: (
|
|
|
1023
1043
|
export declare const UpdateSecurityResponseFilterSensitiveLog: (
|
|
1024
1044
|
obj: UpdateSecurityResponse
|
|
1025
1045
|
) => any;
|
|
1046
|
+
export declare const UpdateStorageRequestFilterSensitiveLog: (
|
|
1047
|
+
obj: UpdateStorageRequest
|
|
1048
|
+
) => any;
|
|
1049
|
+
export declare const UpdateStorageResponseFilterSensitiveLog: (
|
|
1050
|
+
obj: UpdateStorageResponse
|
|
1051
|
+
) => any;
|
|
@@ -143,6 +143,10 @@ import {
|
|
|
143
143
|
UpdateSecurityCommandInput,
|
|
144
144
|
UpdateSecurityCommandOutput,
|
|
145
145
|
} from "../commands/UpdateSecurityCommand";
|
|
146
|
+
import {
|
|
147
|
+
UpdateStorageCommandInput,
|
|
148
|
+
UpdateStorageCommandOutput,
|
|
149
|
+
} from "../commands/UpdateStorageCommand";
|
|
146
150
|
export declare const serializeAws_restJson1BatchAssociateScramSecretCommand: (
|
|
147
151
|
input: BatchAssociateScramSecretCommandInput,
|
|
148
152
|
context: __SerdeContext
|
|
@@ -283,6 +287,10 @@ export declare const serializeAws_restJson1UpdateSecurityCommand: (
|
|
|
283
287
|
input: UpdateSecurityCommandInput,
|
|
284
288
|
context: __SerdeContext
|
|
285
289
|
) => Promise<__HttpRequest>;
|
|
290
|
+
export declare const serializeAws_restJson1UpdateStorageCommand: (
|
|
291
|
+
input: UpdateStorageCommandInput,
|
|
292
|
+
context: __SerdeContext
|
|
293
|
+
) => Promise<__HttpRequest>;
|
|
286
294
|
export declare const deserializeAws_restJson1BatchAssociateScramSecretCommand: (
|
|
287
295
|
output: __HttpResponse,
|
|
288
296
|
context: __SerdeContext
|
|
@@ -423,3 +431,7 @@ export declare const deserializeAws_restJson1UpdateSecurityCommand: (
|
|
|
423
431
|
output: __HttpResponse,
|
|
424
432
|
context: __SerdeContext
|
|
425
433
|
) => Promise<UpdateSecurityCommandOutput>;
|
|
434
|
+
export declare const deserializeAws_restJson1UpdateStorageCommand: (
|
|
435
|
+
output: __HttpResponse,
|
|
436
|
+
context: __SerdeContext
|
|
437
|
+
) => Promise<UpdateStorageCommandOutput>;
|
|
@@ -44,7 +44,16 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
|
|
|
44
44
|
| import("@aws-sdk/types").EndpointV2
|
|
45
45
|
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
|
|
46
46
|
) &
|
|
47
|
-
(
|
|
47
|
+
(
|
|
48
|
+
| string
|
|
49
|
+
| import("@aws-sdk/types").Provider<string>
|
|
50
|
+
| import("@aws-sdk/types").Endpoint
|
|
51
|
+
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
|
|
52
|
+
| import("@aws-sdk/types").EndpointV2
|
|
53
|
+
| import("@aws-sdk/types").Provider<
|
|
54
|
+
import("@aws-sdk/types").EndpointV2
|
|
55
|
+
>
|
|
56
|
+
))
|
|
48
57
|
| undefined;
|
|
49
58
|
endpointProvider: (
|
|
50
59
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
@@ -44,7 +44,16 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
|
|
|
44
44
|
| import("@aws-sdk/types").EndpointV2
|
|
45
45
|
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
|
|
46
46
|
) &
|
|
47
|
-
(
|
|
47
|
+
(
|
|
48
|
+
| string
|
|
49
|
+
| import("@aws-sdk/types").Provider<string>
|
|
50
|
+
| import("@aws-sdk/types").Endpoint
|
|
51
|
+
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
|
|
52
|
+
| import("@aws-sdk/types").EndpointV2
|
|
53
|
+
| import("@aws-sdk/types").Provider<
|
|
54
|
+
import("@aws-sdk/types").EndpointV2
|
|
55
|
+
>
|
|
56
|
+
))
|
|
48
57
|
| undefined;
|
|
49
58
|
endpointProvider: (
|
|
50
59
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
|
@@ -39,14 +39,10 @@ export declare const getRuntimeConfig: (config: KafkaClientConfig) => {
|
|
|
39
39
|
>;
|
|
40
40
|
endpoint?:
|
|
41
41
|
| string
|
|
42
|
-
|
|
|
43
|
-
|
|
44
|
-
|
|
|
45
|
-
|
|
46
|
-
| (import("@aws-sdk/types").EndpointV2 &
|
|
47
|
-
import("@aws-sdk/types").Provider<string>)
|
|
48
|
-
| (import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2> &
|
|
49
|
-
import("@aws-sdk/types").Provider<string>)
|
|
42
|
+
| import("@aws-sdk/types").Endpoint
|
|
43
|
+
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint>
|
|
44
|
+
| import("@aws-sdk/types").EndpointV2
|
|
45
|
+
| import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>
|
|
50
46
|
| undefined;
|
|
51
47
|
endpointProvider: (
|
|
52
48
|
endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kafka",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kafka Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.197.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",
|
|
@@ -19,37 +19,37 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.197.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.197.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.197.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.197.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.197.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.197.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.197.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.197.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.197.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.197.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.197.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.197.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.197.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.197.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.197.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.197.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.197.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.197.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.197.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.197.0",
|
|
42
|
+
"@aws-sdk/types": "3.197.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.197.0",
|
|
44
44
|
"@aws-sdk/util-base64-browser": "3.188.0",
|
|
45
45
|
"@aws-sdk/util-base64-node": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.188.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.197.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.197.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.197.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-browser": "3.197.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-node": "3.197.0",
|
|
53
53
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
54
54
|
"@aws-sdk/util-utf8-node": "3.188.0",
|
|
55
55
|
"tslib": "^2.3.1"
|