@aws-sdk/client-rbin 3.50.0 → 3.53.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 (37) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/RbinServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +61 -1
  5. package/dist-cjs/protocols/Aws_restJson1.js +88 -258
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/RbinServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +57 -1
  9. package/dist-es/protocols/Aws_restJson1.js +169 -295
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/RbinServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +30 -13
  13. package/dist-types/ts3.4/Rbin.d.ts +45 -0
  14. package/dist-types/ts3.4/RbinClient.d.ts +81 -0
  15. package/dist-types/ts3.4/commands/CreateRuleCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/DeleteRuleCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/GetRuleCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/ListRulesCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  20. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  22. package/dist-types/ts3.4/commands/UpdateRuleCommand.d.ts +17 -0
  23. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  24. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  25. package/dist-types/ts3.4/index.d.ts +6 -0
  26. package/dist-types/ts3.4/models/RbinServiceException.d.ts +6 -0
  27. package/dist-types/ts3.4/models/index.d.ts +1 -0
  28. package/dist-types/ts3.4/models/models_0.d.ts +289 -0
  29. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  30. package/dist-types/ts3.4/pagination/ListRulesPaginator.d.ts +4 -0
  31. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  32. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -0
  33. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  34. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  35. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  36. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  37. package/package.json +33 -33
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.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
18
+
19
+ **Note:** Version bump only for package @aws-sdk/client-rbin
20
+
21
+
22
+
23
+
24
+
25
+ # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-rbin
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.50.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.49.0...v3.50.0) (2022-02-08)
7
34
 
8
35
 
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RbinServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Rbin"), exports);
5
6
  tslib_1.__exportStar(require("./RbinClient"), 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 RbinServiceException_1 = require("./models/RbinServiceException");
11
+ Object.defineProperty(exports, "RbinServiceException", { enumerable: true, get: function () { return RbinServiceException_1.RbinServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RbinServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class RbinServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, RbinServiceException.prototype);
9
+ }
10
+ }
11
+ exports.RbinServiceException = RbinServiceException;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateRuleResponse = exports.UpdateRuleRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRulesResponse = exports.RuleSummary = exports.ListRulesRequest = exports.GetRuleResponse = exports.GetRuleRequest = exports.ResourceNotFoundExceptionReason = exports.DeleteRuleResponse = exports.DeleteRuleRequest = exports.ValidationExceptionReason = exports.ServiceQuotaExceededExceptionReason = exports.CreateRuleResponse = exports.RuleStatus = exports.CreateRuleRequest = exports.Tag = exports.RetentionPeriod = exports.RetentionPeriodUnit = exports.ResourceType = exports.ResourceTag = void 0;
3
+ exports.UpdateRuleResponse = exports.UpdateRuleRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRulesResponse = exports.RuleSummary = exports.ListRulesRequest = exports.GetRuleResponse = exports.GetRuleRequest = exports.ResourceNotFoundException = exports.ResourceNotFoundExceptionReason = exports.DeleteRuleResponse = exports.DeleteRuleRequest = exports.ValidationException = exports.ValidationExceptionReason = exports.ServiceQuotaExceededException = exports.ServiceQuotaExceededExceptionReason = exports.InternalServerException = exports.CreateRuleResponse = exports.RuleStatus = exports.CreateRuleRequest = exports.Tag = exports.RetentionPeriod = exports.RetentionPeriodUnit = exports.ResourceType = exports.ResourceTag = void 0;
4
+ const RbinServiceException_1 = require("./RbinServiceException");
4
5
  var ResourceTag;
5
6
  (function (ResourceTag) {
6
7
  ResourceTag.filterSensitiveLog = (obj) => ({
@@ -45,15 +46,59 @@ var CreateRuleResponse;
45
46
  ...obj,
46
47
  });
47
48
  })(CreateRuleResponse = exports.CreateRuleResponse || (exports.CreateRuleResponse = {}));
49
+ class InternalServerException extends RbinServiceException_1.RbinServiceException {
50
+ constructor(opts) {
51
+ super({
52
+ name: "InternalServerException",
53
+ $fault: "server",
54
+ ...opts,
55
+ });
56
+ this.name = "InternalServerException";
57
+ this.$fault = "server";
58
+ Object.setPrototypeOf(this, InternalServerException.prototype);
59
+ this.Message = opts.Message;
60
+ }
61
+ }
62
+ exports.InternalServerException = InternalServerException;
48
63
  var ServiceQuotaExceededExceptionReason;
49
64
  (function (ServiceQuotaExceededExceptionReason) {
50
65
  ServiceQuotaExceededExceptionReason["SERVICE_QUOTA_EXCEEDED"] = "SERVICE_QUOTA_EXCEEDED";
51
66
  })(ServiceQuotaExceededExceptionReason = exports.ServiceQuotaExceededExceptionReason || (exports.ServiceQuotaExceededExceptionReason = {}));
67
+ class ServiceQuotaExceededException extends RbinServiceException_1.RbinServiceException {
68
+ constructor(opts) {
69
+ super({
70
+ name: "ServiceQuotaExceededException",
71
+ $fault: "client",
72
+ ...opts,
73
+ });
74
+ this.name = "ServiceQuotaExceededException";
75
+ this.$fault = "client";
76
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
77
+ this.Message = opts.Message;
78
+ this.Reason = opts.Reason;
79
+ }
80
+ }
81
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
52
82
  var ValidationExceptionReason;
53
83
  (function (ValidationExceptionReason) {
54
84
  ValidationExceptionReason["INVALID_PAGE_TOKEN"] = "INVALID_PAGE_TOKEN";
55
85
  ValidationExceptionReason["INVALID_PARAMETER_VALUE"] = "INVALID_PARAMETER_VALUE";
56
86
  })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
87
+ class ValidationException extends RbinServiceException_1.RbinServiceException {
88
+ constructor(opts) {
89
+ super({
90
+ name: "ValidationException",
91
+ $fault: "client",
92
+ ...opts,
93
+ });
94
+ this.name = "ValidationException";
95
+ this.$fault = "client";
96
+ Object.setPrototypeOf(this, ValidationException.prototype);
97
+ this.Message = opts.Message;
98
+ this.Reason = opts.Reason;
99
+ }
100
+ }
101
+ exports.ValidationException = ValidationException;
57
102
  var DeleteRuleRequest;
58
103
  (function (DeleteRuleRequest) {
59
104
  DeleteRuleRequest.filterSensitiveLog = (obj) => ({
@@ -70,6 +115,21 @@ var ResourceNotFoundExceptionReason;
70
115
  (function (ResourceNotFoundExceptionReason) {
71
116
  ResourceNotFoundExceptionReason["RULE_NOT_FOUND"] = "RULE_NOT_FOUND";
72
117
  })(ResourceNotFoundExceptionReason = exports.ResourceNotFoundExceptionReason || (exports.ResourceNotFoundExceptionReason = {}));
118
+ class ResourceNotFoundException extends RbinServiceException_1.RbinServiceException {
119
+ constructor(opts) {
120
+ super({
121
+ name: "ResourceNotFoundException",
122
+ $fault: "client",
123
+ ...opts,
124
+ });
125
+ this.name = "ResourceNotFoundException";
126
+ this.$fault = "client";
127
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
128
+ this.Message = opts.Message;
129
+ this.Reason = opts.Reason;
130
+ }
131
+ }
132
+ exports.ResourceNotFoundException = ResourceNotFoundException;
73
133
  var GetRuleRequest;
74
134
  (function (GetRuleRequest) {
75
135
  GetRuleRequest.filterSensitiveLog = (obj) => ({