@aws-sdk/client-kafka 3.52.0 → 3.54.1

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 CHANGED
@@ -3,6 +3,33 @@
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.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-kafka
9
+
10
+
11
+
12
+
13
+
14
+ # [3.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-kafka
17
+
18
+
19
+
20
+
21
+
22
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** generate service exceptions as classes ([#3267](https://github.com/aws/aws-sdk-js-v3/issues/3267)) ([ca64fee](https://github.com/aws/aws-sdk-js-v3/commit/ca64feed3351c394c07dc26b782a5760a396a074))
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-kafka
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KafkaServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Kafka"), exports);
5
6
  tslib_1.__exportStar(require("./KafkaClient"), exports);
6
7
  tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
10
+ var KafkaServiceException_1 = require("./models/KafkaServiceException");
11
+ Object.defineProperty(exports, "KafkaServiceException", { enumerable: true, get: function () { return KafkaServiceException_1.KafkaServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KafkaServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class KafkaServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, KafkaServiceException.prototype);
9
+ }
10
+ }
11
+ exports.KafkaServiceException = KafkaServiceException;
@@ -1,8 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CompatibleKafkaVersion = exports.ClusterOperationInfo = exports.MutableClusterInfo = exports.ConfigurationInfo = exports.ClusterOperationStep = exports.ClusterOperationStepInfo = exports.ErrorInfo = exports.ClusterInfo = exports.OpenMonitoring = exports.Prometheus = exports.NodeExporter = exports.JmxExporter = exports.Cluster = exports.StateInfo = exports.ClusterState = exports.Serverless = exports.VpcConfig = exports.ServerlessClientAuthentication = exports.ServerlessSasl = exports.Provisioned = exports.OpenMonitoringInfo = exports.PrometheusInfo = exports.NodeExporterInfo = exports.JmxExporterInfo = 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.ClusterType = exports.BrokerEBSVolumeInfo = exports.ProvisionedThroughput = void 0;
4
- exports.ListConfigurationsResponse = exports.ListConfigurationsRequest = exports.ListConfigurationRevisionsResponse = exports.ListConfigurationRevisionsRequest = exports.ListClustersV2Response = exports.ListClustersV2Request = 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.DescribeClusterV2Response = exports.DescribeClusterV2Request = exports.DescribeClusterOperationResponse = exports.DescribeClusterOperationRequest = exports.DescribeClusterResponse = exports.DescribeClusterRequest = exports.DeleteConfigurationResponse = exports.DeleteConfigurationRequest = exports.DeleteClusterResponse = exports.DeleteClusterRequest = exports.CreateConfigurationResponse = exports.CreateConfigurationRequest = exports.CreateClusterV2Response = exports.CreateClusterV2Request = exports.ServerlessRequest = exports.ProvisionedRequest = exports.CreateClusterResponse = exports.CreateClusterRequest = exports.BatchDisassociateScramSecretResponse = exports.BatchDisassociateScramSecretRequest = exports.BatchAssociateScramSecretResponse = exports.BatchAssociateScramSecretRequest = exports.UnprocessedScramSecret = exports.NodeInfo = exports.ZookeeperNodeInfo = exports.NodeType = exports.BrokerNodeInfo = exports.KafkaVersion = exports.KafkaVersionStatus = exports.Configuration = exports.ConfigurationState = exports.ConfigurationRevision = 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 = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListScramSecretsResponse = exports.ListScramSecretsRequest = exports.ListNodesResponse = exports.ListNodesRequest = exports.ListKafkaVersionsResponse = exports.ListKafkaVersionsRequest = void 0;
4
+ exports.ListClusterOperationsResponse = exports.ListClusterOperationsRequest = exports.GetCompatibleKafkaVersionsResponse = exports.GetCompatibleKafkaVersionsRequest = exports.GetBootstrapBrokersResponse = exports.GetBootstrapBrokersRequest = exports.DescribeConfigurationRevisionResponse = exports.DescribeConfigurationRevisionRequest = exports.DescribeConfigurationResponse = exports.DescribeConfigurationRequest = exports.DescribeClusterV2Response = exports.DescribeClusterV2Request = exports.DescribeClusterOperationResponse = exports.DescribeClusterOperationRequest = exports.DescribeClusterResponse = exports.DescribeClusterRequest = exports.DeleteConfigurationResponse = exports.DeleteConfigurationRequest = exports.DeleteClusterResponse = exports.DeleteClusterRequest = exports.CreateConfigurationResponse = exports.CreateConfigurationRequest = exports.CreateClusterV2Response = exports.CreateClusterV2Request = exports.ServerlessRequest = exports.ProvisionedRequest = exports.CreateClusterResponse = exports.CreateClusterRequest = exports.ConflictException = exports.BatchDisassociateScramSecretResponse = exports.BatchDisassociateScramSecretRequest = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ServiceUnavailableException = exports.NotFoundException = exports.InternalServerErrorException = 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 = 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 = 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.ListClustersV2Response = exports.ListClustersV2Request = exports.ListClustersResponse = exports.ListClustersRequest = void 0;
6
+ const KafkaServiceException_1 = require("./KafkaServiceException");
6
7
  var ProvisionedThroughput;
7
8
  (function (ProvisionedThroughput) {
8
9
  ProvisionedThroughput.filterSensitiveLog = (obj) => ({
@@ -363,6 +364,21 @@ var UnprocessedScramSecret;
363
364
  ...obj,
364
365
  });
365
366
  })(UnprocessedScramSecret = exports.UnprocessedScramSecret || (exports.UnprocessedScramSecret = {}));
367
+ class BadRequestException extends KafkaServiceException_1.KafkaServiceException {
368
+ constructor(opts) {
369
+ super({
370
+ name: "BadRequestException",
371
+ $fault: "client",
372
+ ...opts,
373
+ });
374
+ this.name = "BadRequestException";
375
+ this.$fault = "client";
376
+ Object.setPrototypeOf(this, BadRequestException.prototype);
377
+ this.InvalidParameter = opts.InvalidParameter;
378
+ this.Message = opts.Message;
379
+ }
380
+ }
381
+ exports.BadRequestException = BadRequestException;
366
382
  var BatchAssociateScramSecretRequest;
367
383
  (function (BatchAssociateScramSecretRequest) {
368
384
  BatchAssociateScramSecretRequest.filterSensitiveLog = (obj) => ({
@@ -375,6 +391,96 @@ var BatchAssociateScramSecretResponse;
375
391
  ...obj,
376
392
  });
377
393
  })(BatchAssociateScramSecretResponse = exports.BatchAssociateScramSecretResponse || (exports.BatchAssociateScramSecretResponse = {}));
394
+ class ForbiddenException extends KafkaServiceException_1.KafkaServiceException {
395
+ constructor(opts) {
396
+ super({
397
+ name: "ForbiddenException",
398
+ $fault: "client",
399
+ ...opts,
400
+ });
401
+ this.name = "ForbiddenException";
402
+ this.$fault = "client";
403
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
404
+ this.InvalidParameter = opts.InvalidParameter;
405
+ this.Message = opts.Message;
406
+ }
407
+ }
408
+ exports.ForbiddenException = ForbiddenException;
409
+ class InternalServerErrorException extends KafkaServiceException_1.KafkaServiceException {
410
+ constructor(opts) {
411
+ super({
412
+ name: "InternalServerErrorException",
413
+ $fault: "server",
414
+ ...opts,
415
+ });
416
+ this.name = "InternalServerErrorException";
417
+ this.$fault = "server";
418
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
419
+ this.InvalidParameter = opts.InvalidParameter;
420
+ this.Message = opts.Message;
421
+ }
422
+ }
423
+ exports.InternalServerErrorException = InternalServerErrorException;
424
+ class NotFoundException extends KafkaServiceException_1.KafkaServiceException {
425
+ constructor(opts) {
426
+ super({
427
+ name: "NotFoundException",
428
+ $fault: "client",
429
+ ...opts,
430
+ });
431
+ this.name = "NotFoundException";
432
+ this.$fault = "client";
433
+ Object.setPrototypeOf(this, NotFoundException.prototype);
434
+ this.InvalidParameter = opts.InvalidParameter;
435
+ this.Message = opts.Message;
436
+ }
437
+ }
438
+ exports.NotFoundException = NotFoundException;
439
+ class ServiceUnavailableException extends KafkaServiceException_1.KafkaServiceException {
440
+ constructor(opts) {
441
+ super({
442
+ name: "ServiceUnavailableException",
443
+ $fault: "server",
444
+ ...opts,
445
+ });
446
+ this.name = "ServiceUnavailableException";
447
+ this.$fault = "server";
448
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
449
+ this.InvalidParameter = opts.InvalidParameter;
450
+ this.Message = opts.Message;
451
+ }
452
+ }
453
+ exports.ServiceUnavailableException = ServiceUnavailableException;
454
+ class TooManyRequestsException extends KafkaServiceException_1.KafkaServiceException {
455
+ constructor(opts) {
456
+ super({
457
+ name: "TooManyRequestsException",
458
+ $fault: "client",
459
+ ...opts,
460
+ });
461
+ this.name = "TooManyRequestsException";
462
+ this.$fault = "client";
463
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
464
+ this.InvalidParameter = opts.InvalidParameter;
465
+ this.Message = opts.Message;
466
+ }
467
+ }
468
+ exports.TooManyRequestsException = TooManyRequestsException;
469
+ class UnauthorizedException extends KafkaServiceException_1.KafkaServiceException {
470
+ constructor(opts) {
471
+ super({
472
+ name: "UnauthorizedException",
473
+ $fault: "client",
474
+ ...opts,
475
+ });
476
+ this.name = "UnauthorizedException";
477
+ this.$fault = "client";
478
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
479
+ this.InvalidParameter = opts.InvalidParameter;
480
+ this.Message = opts.Message;
481
+ }
482
+ }
483
+ exports.UnauthorizedException = UnauthorizedException;
378
484
  var BatchDisassociateScramSecretRequest;
379
485
  (function (BatchDisassociateScramSecretRequest) {
380
486
  BatchDisassociateScramSecretRequest.filterSensitiveLog = (obj) => ({
@@ -387,6 +493,21 @@ var BatchDisassociateScramSecretResponse;
387
493
  ...obj,
388
494
  });
389
495
  })(BatchDisassociateScramSecretResponse = exports.BatchDisassociateScramSecretResponse || (exports.BatchDisassociateScramSecretResponse = {}));
496
+ class ConflictException extends KafkaServiceException_1.KafkaServiceException {
497
+ constructor(opts) {
498
+ super({
499
+ name: "ConflictException",
500
+ $fault: "client",
501
+ ...opts,
502
+ });
503
+ this.name = "ConflictException";
504
+ this.$fault = "client";
505
+ Object.setPrototypeOf(this, ConflictException.prototype);
506
+ this.InvalidParameter = opts.InvalidParameter;
507
+ this.Message = opts.Message;
508
+ }
509
+ }
510
+ exports.ConflictException = ConflictException;
390
511
  var CreateClusterRequest;
391
512
  (function (CreateClusterRequest) {
392
513
  CreateClusterRequest.filterSensitiveLog = (obj) => ({