@aws-sdk/client-kafka 3.39.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist-cjs/Kafka.js +15 -0
  3. package/dist-cjs/commands/UpdateConnectivityCommand.js +36 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoints.js +74 -5
  6. package/dist-cjs/models/models_0.js +27 -3
  7. package/dist-cjs/protocols/Aws_restJson1.js +175 -2
  8. package/dist-cjs/runtimeConfig.browser.js +6 -3
  9. package/dist-cjs/runtimeConfig.js +5 -3
  10. package/dist-es/Kafka.js +15 -0
  11. package/dist-es/commands/UpdateConnectivityCommand.js +39 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/endpoints.js +74 -5
  14. package/dist-es/models/models_0.js +16 -0
  15. package/dist-es/protocols/Aws_restJson1.js +185 -1
  16. package/dist-es/runtimeConfig.browser.js +3 -2
  17. package/dist-es/runtimeConfig.js +3 -3
  18. package/dist-types/Kafka.d.ts +8 -1
  19. package/dist-types/KafkaClient.d.ts +11 -2
  20. package/dist-types/commands/BatchAssociateScramSecretCommand.d.ts +1 -1
  21. package/dist-types/commands/BatchDisassociateScramSecretCommand.d.ts +1 -1
  22. package/dist-types/commands/CreateClusterCommand.d.ts +1 -1
  23. package/dist-types/commands/CreateConfigurationCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteClusterCommand.d.ts +1 -1
  25. package/dist-types/commands/DeleteConfigurationCommand.d.ts +1 -1
  26. package/dist-types/commands/DescribeClusterCommand.d.ts +1 -1
  27. package/dist-types/commands/DescribeClusterOperationCommand.d.ts +1 -1
  28. package/dist-types/commands/DescribeConfigurationCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeConfigurationRevisionCommand.d.ts +1 -1
  30. package/dist-types/commands/GetBootstrapBrokersCommand.d.ts +1 -1
  31. package/dist-types/commands/GetCompatibleKafkaVersionsCommand.d.ts +1 -1
  32. package/dist-types/commands/ListClusterOperationsCommand.d.ts +1 -1
  33. package/dist-types/commands/ListClustersCommand.d.ts +1 -1
  34. package/dist-types/commands/ListConfigurationRevisionsCommand.d.ts +1 -1
  35. package/dist-types/commands/ListConfigurationsCommand.d.ts +1 -1
  36. package/dist-types/commands/ListKafkaVersionsCommand.d.ts +2 -2
  37. package/dist-types/commands/ListNodesCommand.d.ts +1 -1
  38. package/dist-types/commands/ListScramSecretsCommand.d.ts +1 -1
  39. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  40. package/dist-types/commands/RebootBrokerCommand.d.ts +1 -1
  41. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  42. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  43. package/dist-types/commands/UpdateBrokerCountCommand.d.ts +1 -1
  44. package/dist-types/commands/UpdateBrokerStorageCommand.d.ts +1 -1
  45. package/dist-types/commands/UpdateBrokerTypeCommand.d.ts +1 -1
  46. package/dist-types/commands/UpdateClusterConfigurationCommand.d.ts +1 -1
  47. package/dist-types/commands/UpdateClusterKafkaVersionCommand.d.ts +1 -1
  48. package/dist-types/commands/UpdateConfigurationCommand.d.ts +1 -1
  49. package/dist-types/commands/UpdateConnectivityCommand.d.ts +35 -0
  50. package/dist-types/commands/UpdateMonitoringCommand.d.ts +1 -1
  51. package/dist-types/commands/UpdateSecurityCommand.d.ts +1 -1
  52. package/dist-types/commands/index.d.ts +1 -0
  53. package/dist-types/models/models_0.d.ts +112 -23
  54. package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
  55. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  56. package/dist-types/runtimeConfig.d.ts +2 -0
  57. package/dist-types/runtimeConfig.native.d.ts +2 -0
  58. package/dist-types/ts3.4/Kafka.d.ts +5 -0
  59. package/dist-types/ts3.4/KafkaClient.d.ts +7 -2
  60. package/dist-types/ts3.4/commands/UpdateConnectivityCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +51 -0
  63. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  67. package/package.json +23 -23
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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
+
17
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-kafka
20
+
21
+
22
+
23
+
24
+
25
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
26
+
27
+
28
+ ### Features
29
+
30
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
31
+
32
+
33
+
34
+
35
+
36
+ # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
7
48
 
8
49
  **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);
@@ -29,27 +29,96 @@ const partitionHash = {
29
29
  "us-west-2",
30
30
  ],
31
31
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
32
- hostname: "kafka.{region}.amazonaws.com",
32
+ variants: [
33
+ {
34
+ hostname: "kafka.{region}.amazonaws.com",
35
+ tags: [],
36
+ },
37
+ {
38
+ hostname: "kafka-fips.{region}.amazonaws.com",
39
+ tags: ["fips"],
40
+ },
41
+ {
42
+ hostname: "kafka-fips.{region}.api.aws",
43
+ tags: ["dualstack", "fips"],
44
+ },
45
+ {
46
+ hostname: "kafka.{region}.api.aws",
47
+ tags: ["dualstack"],
48
+ },
49
+ ],
33
50
  },
34
51
  "aws-cn": {
35
52
  regions: ["cn-north-1", "cn-northwest-1"],
36
53
  regionRegex: "^cn\\-\\w+\\-\\d+$",
37
- hostname: "kafka.{region}.amazonaws.com.cn",
54
+ variants: [
55
+ {
56
+ hostname: "kafka.{region}.amazonaws.com.cn",
57
+ tags: [],
58
+ },
59
+ {
60
+ hostname: "kafka-fips.{region}.amazonaws.com.cn",
61
+ tags: ["fips"],
62
+ },
63
+ {
64
+ hostname: "kafka-fips.{region}.api.amazonwebservices.com.cn",
65
+ tags: ["dualstack", "fips"],
66
+ },
67
+ {
68
+ hostname: "kafka.{region}.api.amazonwebservices.com.cn",
69
+ tags: ["dualstack"],
70
+ },
71
+ ],
38
72
  },
39
73
  "aws-iso": {
40
74
  regions: ["us-iso-east-1", "us-iso-west-1"],
41
75
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
42
- hostname: "kafka.{region}.c2s.ic.gov",
76
+ variants: [
77
+ {
78
+ hostname: "kafka.{region}.c2s.ic.gov",
79
+ tags: [],
80
+ },
81
+ {
82
+ hostname: "kafka-fips.{region}.c2s.ic.gov",
83
+ tags: ["fips"],
84
+ },
85
+ ],
43
86
  },
44
87
  "aws-iso-b": {
45
88
  regions: ["us-isob-east-1"],
46
89
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
47
- hostname: "kafka.{region}.sc2s.sgov.gov",
90
+ variants: [
91
+ {
92
+ hostname: "kafka.{region}.sc2s.sgov.gov",
93
+ tags: [],
94
+ },
95
+ {
96
+ hostname: "kafka-fips.{region}.sc2s.sgov.gov",
97
+ tags: ["fips"],
98
+ },
99
+ ],
48
100
  },
49
101
  "aws-us-gov": {
50
102
  regions: ["us-gov-east-1", "us-gov-west-1"],
51
103
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
52
- hostname: "kafka.{region}.amazonaws.com",
104
+ variants: [
105
+ {
106
+ hostname: "kafka.{region}.amazonaws.com",
107
+ tags: [],
108
+ },
109
+ {
110
+ hostname: "kafka-fips.{region}.amazonaws.com",
111
+ tags: ["fips"],
112
+ },
113
+ {
114
+ hostname: "kafka-fips.{region}.api.aws",
115
+ tags: ["dualstack", "fips"],
116
+ },
117
+ {
118
+ hostname: "kafka.{region}.api.aws",
119
+ tags: ["dualstack"],
120
+ },
121
+ ],
53
122
  },
54
123
  };
55
124
  const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ForbiddenException = exports.BatchAssociateScramSecretResponse = 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.BrokerAZDistribution = exports.BrokerEBSVolumeInfo = void 0;
4
- exports.RebootBrokerResponse = exports.RebootBrokerRequest = 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 = void 0;
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.deserializeAws_restJson1ListScramSecretsCommand = 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_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_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),
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
6
  const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const config_resolver_1 = require("@aws-sdk/config-resolver");
7
8
  const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
8
9
  const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
9
10
  const middleware_retry_1 = require("@aws-sdk/middleware-retry");
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
16
  const getRuntimeConfig = (config) => {
16
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
18
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
18
19
  return {
19
20
  ...clientSharedValues,
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
30
31
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
31
32
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
32
33
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
33
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
34
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
34
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
35
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
36
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
37
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
35
38
  };
36
39
  };
37
40
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const getRuntimeConfig = (config) => {
20
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
20
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
21
  smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
23
  return {
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
35
35
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
36
36
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
37
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
- utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
39
- utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
38
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
39
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
40
+ utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
41
+ utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
40
42
  };
41
43
  };
42
44
  exports.getRuntimeConfig = getRuntimeConfig;
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") {