@aws-sdk/client-kafka 3.42.0 → 3.43.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 +11 -0
- package/dist-cjs/Kafka.js +15 -0
- package/dist-cjs/commands/UpdateConnectivityCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +27 -3
- package/dist-cjs/protocols/Aws_restJson1.js +175 -2
- package/dist-es/Kafka.js +15 -0
- package/dist-es/commands/UpdateConnectivityCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/protocols/Aws_restJson1.js +185 -1
- package/dist-types/Kafka.d.ts +8 -1
- package/dist-types/KafkaClient.d.ts +3 -2
- package/dist-types/commands/ListKafkaVersionsCommand.d.ts +1 -1
- package/dist-types/commands/UpdateConnectivityCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +112 -23
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/Kafka.d.ts +5 -0
- package/dist-types/ts3.4/KafkaClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/UpdateConnectivityCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +51 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-kafka
|
package/dist-cjs/Kafka.js
CHANGED
|
@@ -30,6 +30,7 @@ const UpdateBrokerTypeCommand_1 = require("./commands/UpdateBrokerTypeCommand");
|
|
|
30
30
|
const UpdateClusterConfigurationCommand_1 = require("./commands/UpdateClusterConfigurationCommand");
|
|
31
31
|
const UpdateClusterKafkaVersionCommand_1 = require("./commands/UpdateClusterKafkaVersionCommand");
|
|
32
32
|
const UpdateConfigurationCommand_1 = require("./commands/UpdateConfigurationCommand");
|
|
33
|
+
const UpdateConnectivityCommand_1 = require("./commands/UpdateConnectivityCommand");
|
|
33
34
|
const UpdateMonitoringCommand_1 = require("./commands/UpdateMonitoringCommand");
|
|
34
35
|
const UpdateSecurityCommand_1 = require("./commands/UpdateSecurityCommand");
|
|
35
36
|
const KafkaClient_1 = require("./KafkaClient");
|
|
@@ -440,6 +441,20 @@ class Kafka extends KafkaClient_1.KafkaClient {
|
|
|
440
441
|
return this.send(command, optionsOrCb);
|
|
441
442
|
}
|
|
442
443
|
}
|
|
444
|
+
updateConnectivity(args, optionsOrCb, cb) {
|
|
445
|
+
const command = new UpdateConnectivityCommand_1.UpdateConnectivityCommand(args);
|
|
446
|
+
if (typeof optionsOrCb === "function") {
|
|
447
|
+
this.send(command, optionsOrCb);
|
|
448
|
+
}
|
|
449
|
+
else if (typeof cb === "function") {
|
|
450
|
+
if (typeof optionsOrCb !== "object")
|
|
451
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
452
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
return this.send(command, optionsOrCb);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
443
458
|
updateMonitoring(args, optionsOrCb, cb) {
|
|
444
459
|
const command = new UpdateMonitoringCommand_1.UpdateMonitoringCommand(args);
|
|
445
460
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateConnectivityCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateConnectivityCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "KafkaClient";
|
|
18
|
+
const commandName = "UpdateConnectivityCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateConnectivityRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateConnectivityResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1UpdateConnectivityCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1UpdateConnectivityCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateConnectivityCommand = UpdateConnectivityCommand;
|
|
@@ -30,5 +30,6 @@ tslib_1.__exportStar(require("./UpdateBrokerTypeCommand"), exports);
|
|
|
30
30
|
tslib_1.__exportStar(require("./UpdateClusterConfigurationCommand"), exports);
|
|
31
31
|
tslib_1.__exportStar(require("./UpdateClusterKafkaVersionCommand"), exports);
|
|
32
32
|
tslib_1.__exportStar(require("./UpdateConfigurationCommand"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./UpdateConnectivityCommand"), exports);
|
|
33
34
|
tslib_1.__exportStar(require("./UpdateMonitoringCommand"), exports);
|
|
34
35
|
tslib_1.__exportStar(require("./UpdateSecurityCommand"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UpdateSecurityResponse = exports.UpdateSecurityRequest = exports.UpdateMonitoringResponse = exports.UpdateMonitoringRequest = exports.UpdateConfigurationResponse = exports.UpdateConfigurationRequest = exports.UpdateClusterKafkaVersionResponse = exports.UpdateClusterKafkaVersionRequest = exports.UpdateClusterConfigurationResponse = exports.UpdateClusterConfigurationRequest = exports.UpdateBrokerTypeResponse = exports.UpdateBrokerTypeRequest = exports.UpdateBrokerStorageResponse = exports.UpdateBrokerStorageRequest = exports.UpdateBrokerCountResponse = exports.UpdateBrokerCountRequest = exports.UntagResourceRequest = exports.TagResourceRequest = void 0;
|
|
3
|
+
exports.BatchAssociateScramSecretRequest = exports.BadRequestException = exports.UnprocessedScramSecret = exports.NodeInfo = exports.ZookeeperNodeInfo = exports.NodeType = exports.BrokerNodeInfo = exports.KafkaVersion = exports.KafkaVersionStatus = exports.Configuration = exports.ConfigurationState = exports.ConfigurationRevision = exports.CompatibleKafkaVersion = exports.ClusterOperationInfo = exports.MutableClusterInfo = exports.ConfigurationInfo = exports.ClusterOperationStep = exports.ClusterOperationStepInfo = exports.ErrorInfo = exports.ClusterInfo = exports.StateInfo = exports.ClusterState = exports.OpenMonitoring = exports.Prometheus = exports.NodeExporter = exports.JmxExporter = exports.LoggingInfo = exports.BrokerLogs = exports.S3 = exports.Firehose = exports.CloudWatchLogs = exports.EnhancedMonitoring = exports.EncryptionInfo = exports.EncryptionInTransit = exports.ClientBroker = exports.EncryptionAtRest = exports.BrokerSoftwareInfo = exports.ClientAuthentication = exports.Unauthenticated = exports.Tls = exports.Sasl = exports.Scram = exports.Iam = exports.BrokerNodeGroupInfo = exports.StorageInfo = exports.EBSStorageInfo = exports.ConnectivityInfo = exports.PublicAccess = exports.BrokerAZDistribution = exports.BrokerEBSVolumeInfo = void 0;
|
|
4
|
+
exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListScramSecretsResponse = exports.ListScramSecretsRequest = exports.ListNodesResponse = exports.ListNodesRequest = exports.ListKafkaVersionsResponse = exports.ListKafkaVersionsRequest = exports.ListConfigurationsResponse = exports.ListConfigurationsRequest = exports.ListConfigurationRevisionsResponse = exports.ListConfigurationRevisionsRequest = exports.ListClustersResponse = exports.ListClustersRequest = exports.ListClusterOperationsResponse = exports.ListClusterOperationsRequest = exports.GetCompatibleKafkaVersionsResponse = exports.GetCompatibleKafkaVersionsRequest = exports.GetBootstrapBrokersResponse = exports.GetBootstrapBrokersRequest = exports.DescribeConfigurationRevisionResponse = exports.DescribeConfigurationRevisionRequest = exports.DescribeConfigurationResponse = exports.DescribeConfigurationRequest = exports.DescribeClusterOperationResponse = exports.DescribeClusterOperationRequest = exports.DescribeClusterResponse = exports.DescribeClusterRequest = exports.DeleteConfigurationResponse = exports.DeleteConfigurationRequest = exports.DeleteClusterResponse = exports.DeleteClusterRequest = exports.CreateConfigurationResponse = exports.CreateConfigurationRequest = exports.CreateClusterResponse = exports.CreateClusterRequest = exports.OpenMonitoringInfo = exports.PrometheusInfo = exports.NodeExporterInfo = exports.JmxExporterInfo = exports.ConflictException = exports.BatchDisassociateScramSecretResponse = exports.BatchDisassociateScramSecretRequest = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = exports.ForbiddenException = exports.BatchAssociateScramSecretResponse = void 0;
|
|
5
|
+
exports.UpdateSecurityResponse = exports.UpdateSecurityRequest = exports.UpdateMonitoringResponse = exports.UpdateMonitoringRequest = exports.UpdateConnectivityResponse = exports.UpdateConnectivityRequest = exports.UpdateConfigurationResponse = exports.UpdateConfigurationRequest = exports.UpdateClusterKafkaVersionResponse = exports.UpdateClusterKafkaVersionRequest = exports.UpdateClusterConfigurationResponse = exports.UpdateClusterConfigurationRequest = exports.UpdateBrokerTypeResponse = exports.UpdateBrokerTypeRequest = exports.UpdateBrokerStorageResponse = exports.UpdateBrokerStorageRequest = exports.UpdateBrokerCountResponse = exports.UpdateBrokerCountRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.RebootBrokerResponse = exports.RebootBrokerRequest = void 0;
|
|
6
6
|
var BrokerEBSVolumeInfo;
|
|
7
7
|
(function (BrokerEBSVolumeInfo) {
|
|
8
8
|
BrokerEBSVolumeInfo.filterSensitiveLog = (obj) => ({
|
|
@@ -13,6 +13,18 @@ var BrokerAZDistribution;
|
|
|
13
13
|
(function (BrokerAZDistribution) {
|
|
14
14
|
BrokerAZDistribution["DEFAULT"] = "DEFAULT";
|
|
15
15
|
})(BrokerAZDistribution = exports.BrokerAZDistribution || (exports.BrokerAZDistribution = {}));
|
|
16
|
+
var PublicAccess;
|
|
17
|
+
(function (PublicAccess) {
|
|
18
|
+
PublicAccess.filterSensitiveLog = (obj) => ({
|
|
19
|
+
...obj,
|
|
20
|
+
});
|
|
21
|
+
})(PublicAccess = exports.PublicAccess || (exports.PublicAccess = {}));
|
|
22
|
+
var ConnectivityInfo;
|
|
23
|
+
(function (ConnectivityInfo) {
|
|
24
|
+
ConnectivityInfo.filterSensitiveLog = (obj) => ({
|
|
25
|
+
...obj,
|
|
26
|
+
});
|
|
27
|
+
})(ConnectivityInfo = exports.ConnectivityInfo || (exports.ConnectivityInfo = {}));
|
|
16
28
|
var EBSStorageInfo;
|
|
17
29
|
(function (EBSStorageInfo) {
|
|
18
30
|
EBSStorageInfo.filterSensitiveLog = (obj) => ({
|
|
@@ -688,6 +700,18 @@ var UpdateConfigurationResponse;
|
|
|
688
700
|
...obj,
|
|
689
701
|
});
|
|
690
702
|
})(UpdateConfigurationResponse = exports.UpdateConfigurationResponse || (exports.UpdateConfigurationResponse = {}));
|
|
703
|
+
var UpdateConnectivityRequest;
|
|
704
|
+
(function (UpdateConnectivityRequest) {
|
|
705
|
+
UpdateConnectivityRequest.filterSensitiveLog = (obj) => ({
|
|
706
|
+
...obj,
|
|
707
|
+
});
|
|
708
|
+
})(UpdateConnectivityRequest = exports.UpdateConnectivityRequest || (exports.UpdateConnectivityRequest = {}));
|
|
709
|
+
var UpdateConnectivityResponse;
|
|
710
|
+
(function (UpdateConnectivityResponse) {
|
|
711
|
+
UpdateConnectivityResponse.filterSensitiveLog = (obj) => ({
|
|
712
|
+
...obj,
|
|
713
|
+
});
|
|
714
|
+
})(UpdateConnectivityResponse = exports.UpdateConnectivityResponse || (exports.UpdateConnectivityResponse = {}));
|
|
691
715
|
var UpdateMonitoringRequest;
|
|
692
716
|
(function (UpdateMonitoringRequest) {
|
|
693
717
|
UpdateMonitoringRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -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_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 = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1ListNodesCommand = exports.deserializeAws_restJson1ListKafkaVersionsCommand = exports.deserializeAws_restJson1ListConfigurationsCommand = exports.deserializeAws_restJson1ListConfigurationRevisionsCommand = exports.deserializeAws_restJson1ListClustersCommand = exports.deserializeAws_restJson1ListClusterOperationsCommand = exports.deserializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.deserializeAws_restJson1GetBootstrapBrokersCommand = exports.deserializeAws_restJson1DescribeConfigurationRevisionCommand = exports.deserializeAws_restJson1DescribeConfigurationCommand = exports.deserializeAws_restJson1DescribeClusterOperationCommand = exports.deserializeAws_restJson1DescribeClusterCommand = exports.deserializeAws_restJson1DeleteConfigurationCommand = exports.deserializeAws_restJson1DeleteClusterCommand = exports.deserializeAws_restJson1CreateConfigurationCommand = 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_restJson1ListClustersCommand = exports.serializeAws_restJson1ListClusterOperationsCommand = exports.serializeAws_restJson1GetCompatibleKafkaVersionsCommand = exports.serializeAws_restJson1GetBootstrapBrokersCommand = exports.serializeAws_restJson1DescribeConfigurationRevisionCommand = exports.serializeAws_restJson1DescribeConfigurationCommand = exports.serializeAws_restJson1DescribeClusterOperationCommand = exports.serializeAws_restJson1DescribeClusterCommand = exports.serializeAws_restJson1DeleteConfigurationCommand = exports.serializeAws_restJson1DeleteClusterCommand = exports.serializeAws_restJson1CreateConfigurationCommand = 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 = 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 serializeAws_restJson1BatchAssociateScramSecretCommand = async (input, context) => {
|
|
@@ -887,6 +887,42 @@ const serializeAws_restJson1UpdateConfigurationCommand = async (input, context)
|
|
|
887
887
|
});
|
|
888
888
|
};
|
|
889
889
|
exports.serializeAws_restJson1UpdateConfigurationCommand = serializeAws_restJson1UpdateConfigurationCommand;
|
|
890
|
+
const serializeAws_restJson1UpdateConnectivityCommand = async (input, context) => {
|
|
891
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
892
|
+
const headers = {
|
|
893
|
+
"content-type": "application/json",
|
|
894
|
+
};
|
|
895
|
+
let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/v1/clusters/{ClusterArn}/connectivity";
|
|
896
|
+
if (input.ClusterArn !== undefined) {
|
|
897
|
+
const labelValue = input.ClusterArn;
|
|
898
|
+
if (labelValue.length <= 0) {
|
|
899
|
+
throw new Error("Empty value provided for input HTTP label: ClusterArn.");
|
|
900
|
+
}
|
|
901
|
+
resolvedPath = resolvedPath.replace("{ClusterArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
902
|
+
}
|
|
903
|
+
else {
|
|
904
|
+
throw new Error("No value provided for input HTTP label: ClusterArn.");
|
|
905
|
+
}
|
|
906
|
+
let body;
|
|
907
|
+
body = JSON.stringify({
|
|
908
|
+
...(input.ConnectivityInfo !== undefined &&
|
|
909
|
+
input.ConnectivityInfo !== null && {
|
|
910
|
+
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
911
|
+
}),
|
|
912
|
+
...(input.CurrentVersion !== undefined &&
|
|
913
|
+
input.CurrentVersion !== null && { currentVersion: input.CurrentVersion }),
|
|
914
|
+
});
|
|
915
|
+
return new protocol_http_1.HttpRequest({
|
|
916
|
+
protocol,
|
|
917
|
+
hostname,
|
|
918
|
+
port,
|
|
919
|
+
method: "PUT",
|
|
920
|
+
headers,
|
|
921
|
+
path: resolvedPath,
|
|
922
|
+
body,
|
|
923
|
+
});
|
|
924
|
+
};
|
|
925
|
+
exports.serializeAws_restJson1UpdateConnectivityCommand = serializeAws_restJson1UpdateConnectivityCommand;
|
|
890
926
|
const serializeAws_restJson1UpdateMonitoringCommand = async (input, context) => {
|
|
891
927
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
892
928
|
const headers = {
|
|
@@ -1918,6 +1954,9 @@ const deserializeAws_restJson1GetBootstrapBrokersCommand = async (output, contex
|
|
|
1918
1954
|
const contents = {
|
|
1919
1955
|
$metadata: deserializeMetadata(output),
|
|
1920
1956
|
BootstrapBrokerString: undefined,
|
|
1957
|
+
BootstrapBrokerStringPublicSaslIam: undefined,
|
|
1958
|
+
BootstrapBrokerStringPublicSaslScram: undefined,
|
|
1959
|
+
BootstrapBrokerStringPublicTls: undefined,
|
|
1921
1960
|
BootstrapBrokerStringSaslIam: undefined,
|
|
1922
1961
|
BootstrapBrokerStringSaslScram: undefined,
|
|
1923
1962
|
BootstrapBrokerStringTls: undefined,
|
|
@@ -1926,6 +1965,15 @@ const deserializeAws_restJson1GetBootstrapBrokersCommand = async (output, contex
|
|
|
1926
1965
|
if (data.bootstrapBrokerString !== undefined && data.bootstrapBrokerString !== null) {
|
|
1927
1966
|
contents.BootstrapBrokerString = smithy_client_1.expectString(data.bootstrapBrokerString);
|
|
1928
1967
|
}
|
|
1968
|
+
if (data.bootstrapBrokerStringPublicSaslIam !== undefined && data.bootstrapBrokerStringPublicSaslIam !== null) {
|
|
1969
|
+
contents.BootstrapBrokerStringPublicSaslIam = smithy_client_1.expectString(data.bootstrapBrokerStringPublicSaslIam);
|
|
1970
|
+
}
|
|
1971
|
+
if (data.bootstrapBrokerStringPublicSaslScram !== undefined && data.bootstrapBrokerStringPublicSaslScram !== null) {
|
|
1972
|
+
contents.BootstrapBrokerStringPublicSaslScram = smithy_client_1.expectString(data.bootstrapBrokerStringPublicSaslScram);
|
|
1973
|
+
}
|
|
1974
|
+
if (data.bootstrapBrokerStringPublicTls !== undefined && data.bootstrapBrokerStringPublicTls !== null) {
|
|
1975
|
+
contents.BootstrapBrokerStringPublicTls = smithy_client_1.expectString(data.bootstrapBrokerStringPublicTls);
|
|
1976
|
+
}
|
|
1929
1977
|
if (data.bootstrapBrokerStringSaslIam !== undefined && data.bootstrapBrokerStringSaslIam !== null) {
|
|
1930
1978
|
contents.BootstrapBrokerStringSaslIam = smithy_client_1.expectString(data.bootstrapBrokerStringSaslIam);
|
|
1931
1979
|
}
|
|
@@ -3515,6 +3563,98 @@ const deserializeAws_restJson1UpdateConfigurationCommandError = async (output, c
|
|
|
3515
3563
|
delete response.Message;
|
|
3516
3564
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3517
3565
|
};
|
|
3566
|
+
const deserializeAws_restJson1UpdateConnectivityCommand = async (output, context) => {
|
|
3567
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3568
|
+
return deserializeAws_restJson1UpdateConnectivityCommandError(output, context);
|
|
3569
|
+
}
|
|
3570
|
+
const contents = {
|
|
3571
|
+
$metadata: deserializeMetadata(output),
|
|
3572
|
+
ClusterArn: undefined,
|
|
3573
|
+
ClusterOperationArn: undefined,
|
|
3574
|
+
};
|
|
3575
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
3576
|
+
if (data.clusterArn !== undefined && data.clusterArn !== null) {
|
|
3577
|
+
contents.ClusterArn = smithy_client_1.expectString(data.clusterArn);
|
|
3578
|
+
}
|
|
3579
|
+
if (data.clusterOperationArn !== undefined && data.clusterOperationArn !== null) {
|
|
3580
|
+
contents.ClusterOperationArn = smithy_client_1.expectString(data.clusterOperationArn);
|
|
3581
|
+
}
|
|
3582
|
+
return Promise.resolve(contents);
|
|
3583
|
+
};
|
|
3584
|
+
exports.deserializeAws_restJson1UpdateConnectivityCommand = deserializeAws_restJson1UpdateConnectivityCommand;
|
|
3585
|
+
const deserializeAws_restJson1UpdateConnectivityCommandError = async (output, context) => {
|
|
3586
|
+
const parsedOutput = {
|
|
3587
|
+
...output,
|
|
3588
|
+
body: await parseBody(output.body, context),
|
|
3589
|
+
};
|
|
3590
|
+
let response;
|
|
3591
|
+
let errorCode = "UnknownError";
|
|
3592
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3593
|
+
switch (errorCode) {
|
|
3594
|
+
case "BadRequestException":
|
|
3595
|
+
case "com.amazonaws.kafka#BadRequestException":
|
|
3596
|
+
response = {
|
|
3597
|
+
...(await deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)),
|
|
3598
|
+
name: errorCode,
|
|
3599
|
+
$metadata: deserializeMetadata(output),
|
|
3600
|
+
};
|
|
3601
|
+
break;
|
|
3602
|
+
case "ForbiddenException":
|
|
3603
|
+
case "com.amazonaws.kafka#ForbiddenException":
|
|
3604
|
+
response = {
|
|
3605
|
+
...(await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context)),
|
|
3606
|
+
name: errorCode,
|
|
3607
|
+
$metadata: deserializeMetadata(output),
|
|
3608
|
+
};
|
|
3609
|
+
break;
|
|
3610
|
+
case "InternalServerErrorException":
|
|
3611
|
+
case "com.amazonaws.kafka#InternalServerErrorException":
|
|
3612
|
+
response = {
|
|
3613
|
+
...(await deserializeAws_restJson1InternalServerErrorExceptionResponse(parsedOutput, context)),
|
|
3614
|
+
name: errorCode,
|
|
3615
|
+
$metadata: deserializeMetadata(output),
|
|
3616
|
+
};
|
|
3617
|
+
break;
|
|
3618
|
+
case "NotFoundException":
|
|
3619
|
+
case "com.amazonaws.kafka#NotFoundException":
|
|
3620
|
+
response = {
|
|
3621
|
+
...(await deserializeAws_restJson1NotFoundExceptionResponse(parsedOutput, context)),
|
|
3622
|
+
name: errorCode,
|
|
3623
|
+
$metadata: deserializeMetadata(output),
|
|
3624
|
+
};
|
|
3625
|
+
break;
|
|
3626
|
+
case "ServiceUnavailableException":
|
|
3627
|
+
case "com.amazonaws.kafka#ServiceUnavailableException":
|
|
3628
|
+
response = {
|
|
3629
|
+
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3630
|
+
name: errorCode,
|
|
3631
|
+
$metadata: deserializeMetadata(output),
|
|
3632
|
+
};
|
|
3633
|
+
break;
|
|
3634
|
+
case "UnauthorizedException":
|
|
3635
|
+
case "com.amazonaws.kafka#UnauthorizedException":
|
|
3636
|
+
response = {
|
|
3637
|
+
...(await deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)),
|
|
3638
|
+
name: errorCode,
|
|
3639
|
+
$metadata: deserializeMetadata(output),
|
|
3640
|
+
};
|
|
3641
|
+
break;
|
|
3642
|
+
default:
|
|
3643
|
+
const parsedBody = parsedOutput.body;
|
|
3644
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3645
|
+
response = {
|
|
3646
|
+
...parsedBody,
|
|
3647
|
+
name: `${errorCode}`,
|
|
3648
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3649
|
+
$fault: "client",
|
|
3650
|
+
$metadata: deserializeMetadata(output),
|
|
3651
|
+
};
|
|
3652
|
+
}
|
|
3653
|
+
const message = response.message || response.Message || errorCode;
|
|
3654
|
+
response.message = message;
|
|
3655
|
+
delete response.Message;
|
|
3656
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3657
|
+
};
|
|
3518
3658
|
const deserializeAws_restJson1UpdateMonitoringCommand = async (output, context) => {
|
|
3519
3659
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3520
3660
|
return deserializeAws_restJson1UpdateMonitoringCommandError(output, context);
|
|
@@ -3892,6 +4032,10 @@ const serializeAws_restJson1BrokerNodeGroupInfo = (input, context) => {
|
|
|
3892
4032
|
input.ClientSubnets !== null && {
|
|
3893
4033
|
clientSubnets: serializeAws_restJson1__listOf__string(input.ClientSubnets, context),
|
|
3894
4034
|
}),
|
|
4035
|
+
...(input.ConnectivityInfo !== undefined &&
|
|
4036
|
+
input.ConnectivityInfo !== null && {
|
|
4037
|
+
connectivityInfo: serializeAws_restJson1ConnectivityInfo(input.ConnectivityInfo, context),
|
|
4038
|
+
}),
|
|
3895
4039
|
...(input.InstanceType !== undefined && input.InstanceType !== null && { instanceType: input.InstanceType }),
|
|
3896
4040
|
...(input.SecurityGroups !== undefined &&
|
|
3897
4041
|
input.SecurityGroups !== null && {
|
|
@@ -3923,6 +4067,12 @@ const serializeAws_restJson1ConfigurationInfo = (input, context) => {
|
|
|
3923
4067
|
...(input.Revision !== undefined && input.Revision !== null && { revision: input.Revision }),
|
|
3924
4068
|
};
|
|
3925
4069
|
};
|
|
4070
|
+
const serializeAws_restJson1ConnectivityInfo = (input, context) => {
|
|
4071
|
+
return {
|
|
4072
|
+
...(input.PublicAccess !== undefined &&
|
|
4073
|
+
input.PublicAccess !== null && { publicAccess: serializeAws_restJson1PublicAccess(input.PublicAccess, context) }),
|
|
4074
|
+
};
|
|
4075
|
+
};
|
|
3926
4076
|
const serializeAws_restJson1EBSStorageInfo = (input, context) => {
|
|
3927
4077
|
return {
|
|
3928
4078
|
...(input.VolumeSize !== undefined && input.VolumeSize !== null && { volumeSize: input.VolumeSize }),
|
|
@@ -3998,6 +4148,11 @@ const serializeAws_restJson1PrometheusInfo = (input, context) => {
|
|
|
3998
4148
|
}),
|
|
3999
4149
|
};
|
|
4000
4150
|
};
|
|
4151
|
+
const serializeAws_restJson1PublicAccess = (input, context) => {
|
|
4152
|
+
return {
|
|
4153
|
+
...(input.Type !== undefined && input.Type !== null && { type: input.Type }),
|
|
4154
|
+
};
|
|
4155
|
+
};
|
|
4001
4156
|
const serializeAws_restJson1S3 = (input, context) => {
|
|
4002
4157
|
return {
|
|
4003
4158
|
...(input.Bucket !== undefined && input.Bucket !== null && { bucket: input.Bucket }),
|
|
@@ -4183,6 +4338,9 @@ const deserializeAws_restJson1BrokerNodeGroupInfo = (output, context) => {
|
|
|
4183
4338
|
ClientSubnets: output.clientSubnets !== undefined && output.clientSubnets !== null
|
|
4184
4339
|
? deserializeAws_restJson1__listOf__string(output.clientSubnets, context)
|
|
4185
4340
|
: undefined,
|
|
4341
|
+
ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
|
|
4342
|
+
? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
|
|
4343
|
+
: undefined,
|
|
4186
4344
|
InstanceType: smithy_client_1.expectString(output.instanceType),
|
|
4187
4345
|
SecurityGroups: output.securityGroups !== undefined && output.securityGroups !== null
|
|
4188
4346
|
? deserializeAws_restJson1__listOf__string(output.securityGroups, context)
|
|
@@ -4350,6 +4508,13 @@ const deserializeAws_restJson1ConfigurationRevision = (output, context) => {
|
|
|
4350
4508
|
Revision: smithy_client_1.expectLong(output.revision),
|
|
4351
4509
|
};
|
|
4352
4510
|
};
|
|
4511
|
+
const deserializeAws_restJson1ConnectivityInfo = (output, context) => {
|
|
4512
|
+
return {
|
|
4513
|
+
PublicAccess: output.publicAccess !== undefined && output.publicAccess !== null
|
|
4514
|
+
? deserializeAws_restJson1PublicAccess(output.publicAccess, context)
|
|
4515
|
+
: undefined,
|
|
4516
|
+
};
|
|
4517
|
+
};
|
|
4353
4518
|
const deserializeAws_restJson1EBSStorageInfo = (output, context) => {
|
|
4354
4519
|
return {
|
|
4355
4520
|
VolumeSize: smithy_client_1.expectInt32(output.volumeSize),
|
|
@@ -4422,6 +4587,9 @@ const deserializeAws_restJson1MutableClusterInfo = (output, context) => {
|
|
|
4422
4587
|
ConfigurationInfo: output.configurationInfo !== undefined && output.configurationInfo !== null
|
|
4423
4588
|
? deserializeAws_restJson1ConfigurationInfo(output.configurationInfo, context)
|
|
4424
4589
|
: undefined,
|
|
4590
|
+
ConnectivityInfo: output.connectivityInfo !== undefined && output.connectivityInfo !== null
|
|
4591
|
+
? deserializeAws_restJson1ConnectivityInfo(output.connectivityInfo, context)
|
|
4592
|
+
: undefined,
|
|
4425
4593
|
EncryptionInfo: output.encryptionInfo !== undefined && output.encryptionInfo !== null
|
|
4426
4594
|
? deserializeAws_restJson1EncryptionInfo(output.encryptionInfo, context)
|
|
4427
4595
|
: undefined,
|
|
@@ -4473,6 +4641,11 @@ const deserializeAws_restJson1Prometheus = (output, context) => {
|
|
|
4473
4641
|
: undefined,
|
|
4474
4642
|
};
|
|
4475
4643
|
};
|
|
4644
|
+
const deserializeAws_restJson1PublicAccess = (output, context) => {
|
|
4645
|
+
return {
|
|
4646
|
+
Type: smithy_client_1.expectString(output.type),
|
|
4647
|
+
};
|
|
4648
|
+
};
|
|
4476
4649
|
const deserializeAws_restJson1S3 = (output, context) => {
|
|
4477
4650
|
return {
|
|
4478
4651
|
Bucket: smithy_client_1.expectString(output.bucket),
|
package/dist-es/Kafka.js
CHANGED
|
@@ -28,6 +28,7 @@ import { UpdateBrokerTypeCommand, } from "./commands/UpdateBrokerTypeCommand";
|
|
|
28
28
|
import { UpdateClusterConfigurationCommand, } from "./commands/UpdateClusterConfigurationCommand";
|
|
29
29
|
import { UpdateClusterKafkaVersionCommand, } from "./commands/UpdateClusterKafkaVersionCommand";
|
|
30
30
|
import { UpdateConfigurationCommand, } from "./commands/UpdateConfigurationCommand";
|
|
31
|
+
import { UpdateConnectivityCommand, } from "./commands/UpdateConnectivityCommand";
|
|
31
32
|
import { UpdateMonitoringCommand, } from "./commands/UpdateMonitoringCommand";
|
|
32
33
|
import { UpdateSecurityCommand, } from "./commands/UpdateSecurityCommand";
|
|
33
34
|
import { KafkaClient } from "./KafkaClient";
|
|
@@ -442,6 +443,20 @@ var Kafka = (function (_super) {
|
|
|
442
443
|
return this.send(command, optionsOrCb);
|
|
443
444
|
}
|
|
444
445
|
};
|
|
446
|
+
Kafka.prototype.updateConnectivity = function (args, optionsOrCb, cb) {
|
|
447
|
+
var command = new UpdateConnectivityCommand(args);
|
|
448
|
+
if (typeof optionsOrCb === "function") {
|
|
449
|
+
this.send(command, optionsOrCb);
|
|
450
|
+
}
|
|
451
|
+
else if (typeof cb === "function") {
|
|
452
|
+
if (typeof optionsOrCb !== "object")
|
|
453
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
454
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
return this.send(command, optionsOrCb);
|
|
458
|
+
}
|
|
459
|
+
};
|
|
445
460
|
Kafka.prototype.updateMonitoring = function (args, optionsOrCb, cb) {
|
|
446
461
|
var command = new UpdateMonitoringCommand(args);
|
|
447
462
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UpdateConnectivityRequest, UpdateConnectivityResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1UpdateConnectivityCommand, serializeAws_restJson1UpdateConnectivityCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var UpdateConnectivityCommand = (function (_super) {
|
|
7
|
+
__extends(UpdateConnectivityCommand, _super);
|
|
8
|
+
function UpdateConnectivityCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UpdateConnectivityCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "KafkaClient";
|
|
18
|
+
var commandName = "UpdateConnectivityCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UpdateConnectivityRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UpdateConnectivityResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UpdateConnectivityCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1UpdateConnectivityCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UpdateConnectivityCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1UpdateConnectivityCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UpdateConnectivityCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UpdateConnectivityCommand };
|
|
@@ -27,5 +27,6 @@ export * from "./UpdateBrokerTypeCommand";
|
|
|
27
27
|
export * from "./UpdateClusterConfigurationCommand";
|
|
28
28
|
export * from "./UpdateClusterKafkaVersionCommand";
|
|
29
29
|
export * from "./UpdateConfigurationCommand";
|
|
30
|
+
export * from "./UpdateConnectivityCommand";
|
|
30
31
|
export * from "./UpdateMonitoringCommand";
|
|
31
32
|
export * from "./UpdateSecurityCommand";
|
|
@@ -7,6 +7,14 @@ export var BrokerAZDistribution;
|
|
|
7
7
|
(function (BrokerAZDistribution) {
|
|
8
8
|
BrokerAZDistribution["DEFAULT"] = "DEFAULT";
|
|
9
9
|
})(BrokerAZDistribution || (BrokerAZDistribution = {}));
|
|
10
|
+
export var PublicAccess;
|
|
11
|
+
(function (PublicAccess) {
|
|
12
|
+
PublicAccess.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
13
|
+
})(PublicAccess || (PublicAccess = {}));
|
|
14
|
+
export var ConnectivityInfo;
|
|
15
|
+
(function (ConnectivityInfo) {
|
|
16
|
+
ConnectivityInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
17
|
+
})(ConnectivityInfo || (ConnectivityInfo = {}));
|
|
10
18
|
export var EBSStorageInfo;
|
|
11
19
|
(function (EBSStorageInfo) {
|
|
12
20
|
EBSStorageInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -470,6 +478,14 @@ export var UpdateConfigurationResponse;
|
|
|
470
478
|
(function (UpdateConfigurationResponse) {
|
|
471
479
|
UpdateConfigurationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
472
480
|
})(UpdateConfigurationResponse || (UpdateConfigurationResponse = {}));
|
|
481
|
+
export var UpdateConnectivityRequest;
|
|
482
|
+
(function (UpdateConnectivityRequest) {
|
|
483
|
+
UpdateConnectivityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
484
|
+
})(UpdateConnectivityRequest || (UpdateConnectivityRequest = {}));
|
|
485
|
+
export var UpdateConnectivityResponse;
|
|
486
|
+
(function (UpdateConnectivityResponse) {
|
|
487
|
+
UpdateConnectivityResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
488
|
+
})(UpdateConnectivityResponse || (UpdateConnectivityResponse = {}));
|
|
473
489
|
export var UpdateMonitoringRequest;
|
|
474
490
|
(function (UpdateMonitoringRequest) {
|
|
475
491
|
UpdateMonitoringRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|