@aws-sdk/client-schemas 3.52.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.
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.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
+
6
17
  # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-schemas
package/dist-cjs/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemasServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Schemas"), exports);
5
6
  tslib_1.__exportStar(require("./SchemasClient"), exports);
@@ -7,3 +8,5 @@ tslib_1.__exportStar(require("./commands"), exports);
7
8
  tslib_1.__exportStar(require("./models"), exports);
8
9
  tslib_1.__exportStar(require("./pagination"), exports);
9
10
  tslib_1.__exportStar(require("./waiters"), exports);
11
+ var SchemasServiceException_1 = require("./models/SchemasServiceException");
12
+ Object.defineProperty(exports, "SchemasServiceException", { enumerable: true, get: function () { return SchemasServiceException_1.SchemasServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SchemasServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class SchemasServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, SchemasServiceException.prototype);
9
+ }
10
+ }
11
+ exports.SchemasServiceException = SchemasServiceException;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PutCodeBindingResponse = exports.PutCodeBindingRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSchemaVersionsResponse = exports.ListSchemaVersionsRequest = exports.ListSchemasResponse = exports.ListSchemasRequest = exports.ListRegistriesResponse = exports.ListRegistriesRequest = exports.ListDiscoverersResponse = exports.ListDiscoverersRequest = exports.GetResourcePolicyResponse = exports.GetResourcePolicyRequest = exports.GetDiscoveredSchemaResponse = exports.GetDiscoveredSchemaRequest = exports.GetCodeBindingSourceResponse = exports.GetCodeBindingSourceRequest = exports.ExportSchemaResponse = exports.ExportSchemaRequest = exports.DescribeSchemaResponse = exports.DescribeSchemaRequest = exports.DescribeRegistryResponse = exports.DescribeRegistryRequest = exports.DescribeDiscovererResponse = exports.DescribeDiscovererRequest = exports.DescribeCodeBindingResponse = exports.DescribeCodeBindingRequest = exports.DeleteSchemaVersionRequest = exports.DeleteSchemaRequest = exports.DeleteResourcePolicyRequest = exports.DeleteRegistryRequest = exports.DeleteDiscovererRequest = exports.CreateSchemaResponse = exports.CreateSchemaRequest = exports.CreateRegistryResponse = exports.CreateRegistryRequest = exports.CreateDiscovererResponse = exports.CreateDiscovererRequest = exports.CodeGenerationStatus = exports.SearchSchemaSummary = exports.SearchSchemaVersionSummary = exports.SchemaVersionSummary = exports.Type = exports.SchemaSummary = exports.RegistrySummary = exports.DiscovererSummary = exports.DiscovererState = void 0;
4
- exports.UpdateSchemaResponse = exports.UpdateSchemaRequest = exports.UpdateRegistryResponse = exports.UpdateRegistryRequest = exports.UpdateDiscovererResponse = exports.UpdateDiscovererRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopDiscovererResponse = exports.StopDiscovererRequest = exports.StartDiscovererResponse = exports.StartDiscovererRequest = exports.SearchSchemasResponse = exports.SearchSchemasRequest = void 0;
3
+ exports.ListSchemasRequest = exports.ListRegistriesResponse = exports.ListRegistriesRequest = exports.ListDiscoverersResponse = exports.ListDiscoverersRequest = exports.GoneException = exports.GetResourcePolicyResponse = exports.GetResourcePolicyRequest = exports.GetDiscoveredSchemaResponse = exports.GetDiscoveredSchemaRequest = exports.GetCodeBindingSourceResponse = exports.GetCodeBindingSourceRequest = exports.ExportSchemaResponse = exports.ExportSchemaRequest = exports.DescribeSchemaResponse = exports.DescribeSchemaRequest = exports.DescribeRegistryResponse = exports.DescribeRegistryRequest = exports.DescribeDiscovererResponse = exports.DescribeDiscovererRequest = exports.TooManyRequestsException = exports.DescribeCodeBindingResponse = exports.DescribeCodeBindingRequest = exports.DeleteSchemaVersionRequest = exports.DeleteSchemaRequest = exports.DeleteResourcePolicyRequest = exports.DeleteRegistryRequest = exports.NotFoundException = exports.DeleteDiscovererRequest = exports.CreateSchemaResponse = exports.CreateSchemaRequest = exports.CreateRegistryResponse = exports.CreateRegistryRequest = exports.UnauthorizedException = exports.ServiceUnavailableException = exports.InternalServerErrorException = exports.ForbiddenException = exports.CreateDiscovererResponse = exports.CreateDiscovererRequest = exports.ConflictException = exports.CodeGenerationStatus = exports.BadRequestException = exports.SearchSchemaSummary = exports.SearchSchemaVersionSummary = exports.SchemaVersionSummary = exports.Type = exports.SchemaSummary = exports.RegistrySummary = exports.DiscovererSummary = exports.DiscovererState = void 0;
4
+ exports.UpdateSchemaResponse = exports.UpdateSchemaRequest = exports.UpdateRegistryResponse = exports.UpdateRegistryRequest = exports.UpdateDiscovererResponse = exports.UpdateDiscovererRequest = exports.UntagResourceRequest = exports.TagResourceRequest = exports.StopDiscovererResponse = exports.StopDiscovererRequest = exports.StartDiscovererResponse = exports.StartDiscovererRequest = exports.SearchSchemasResponse = exports.SearchSchemasRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.PutCodeBindingResponse = exports.PutCodeBindingRequest = exports.PreconditionFailedException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSchemaVersionsResponse = exports.ListSchemaVersionsRequest = exports.ListSchemasResponse = void 0;
5
+ const SchemasServiceException_1 = require("./SchemasServiceException");
5
6
  var DiscovererState;
6
7
  (function (DiscovererState) {
7
8
  DiscovererState["STARTED"] = "STARTED";
@@ -48,12 +49,42 @@ var SearchSchemaSummary;
48
49
  ...obj,
49
50
  });
50
51
  })(SearchSchemaSummary = exports.SearchSchemaSummary || (exports.SearchSchemaSummary = {}));
52
+ class BadRequestException extends SchemasServiceException_1.SchemasServiceException {
53
+ constructor(opts) {
54
+ super({
55
+ name: "BadRequestException",
56
+ $fault: "client",
57
+ ...opts,
58
+ });
59
+ this.name = "BadRequestException";
60
+ this.$fault = "client";
61
+ Object.setPrototypeOf(this, BadRequestException.prototype);
62
+ this.Code = opts.Code;
63
+ this.Message = opts.Message;
64
+ }
65
+ }
66
+ exports.BadRequestException = BadRequestException;
51
67
  var CodeGenerationStatus;
52
68
  (function (CodeGenerationStatus) {
53
69
  CodeGenerationStatus["CREATE_COMPLETE"] = "CREATE_COMPLETE";
54
70
  CodeGenerationStatus["CREATE_FAILED"] = "CREATE_FAILED";
55
71
  CodeGenerationStatus["CREATE_IN_PROGRESS"] = "CREATE_IN_PROGRESS";
56
72
  })(CodeGenerationStatus = exports.CodeGenerationStatus || (exports.CodeGenerationStatus = {}));
73
+ class ConflictException extends SchemasServiceException_1.SchemasServiceException {
74
+ constructor(opts) {
75
+ super({
76
+ name: "ConflictException",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ this.name = "ConflictException";
81
+ this.$fault = "client";
82
+ Object.setPrototypeOf(this, ConflictException.prototype);
83
+ this.Code = opts.Code;
84
+ this.Message = opts.Message;
85
+ }
86
+ }
87
+ exports.ConflictException = ConflictException;
57
88
  var CreateDiscovererRequest;
58
89
  (function (CreateDiscovererRequest) {
59
90
  CreateDiscovererRequest.filterSensitiveLog = (obj) => ({
@@ -66,6 +97,66 @@ var CreateDiscovererResponse;
66
97
  ...obj,
67
98
  });
68
99
  })(CreateDiscovererResponse = exports.CreateDiscovererResponse || (exports.CreateDiscovererResponse = {}));
100
+ class ForbiddenException extends SchemasServiceException_1.SchemasServiceException {
101
+ constructor(opts) {
102
+ super({
103
+ name: "ForbiddenException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ this.name = "ForbiddenException";
108
+ this.$fault = "client";
109
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
110
+ this.Code = opts.Code;
111
+ this.Message = opts.Message;
112
+ }
113
+ }
114
+ exports.ForbiddenException = ForbiddenException;
115
+ class InternalServerErrorException extends SchemasServiceException_1.SchemasServiceException {
116
+ constructor(opts) {
117
+ super({
118
+ name: "InternalServerErrorException",
119
+ $fault: "server",
120
+ ...opts,
121
+ });
122
+ this.name = "InternalServerErrorException";
123
+ this.$fault = "server";
124
+ Object.setPrototypeOf(this, InternalServerErrorException.prototype);
125
+ this.Code = opts.Code;
126
+ this.Message = opts.Message;
127
+ }
128
+ }
129
+ exports.InternalServerErrorException = InternalServerErrorException;
130
+ class ServiceUnavailableException extends SchemasServiceException_1.SchemasServiceException {
131
+ constructor(opts) {
132
+ super({
133
+ name: "ServiceUnavailableException",
134
+ $fault: "server",
135
+ ...opts,
136
+ });
137
+ this.name = "ServiceUnavailableException";
138
+ this.$fault = "server";
139
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
140
+ this.Code = opts.Code;
141
+ this.Message = opts.Message;
142
+ }
143
+ }
144
+ exports.ServiceUnavailableException = ServiceUnavailableException;
145
+ class UnauthorizedException extends SchemasServiceException_1.SchemasServiceException {
146
+ constructor(opts) {
147
+ super({
148
+ name: "UnauthorizedException",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ this.name = "UnauthorizedException";
153
+ this.$fault = "client";
154
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
155
+ this.Code = opts.Code;
156
+ this.Message = opts.Message;
157
+ }
158
+ }
159
+ exports.UnauthorizedException = UnauthorizedException;
69
160
  var CreateRegistryRequest;
70
161
  (function (CreateRegistryRequest) {
71
162
  CreateRegistryRequest.filterSensitiveLog = (obj) => ({
@@ -96,6 +187,21 @@ var DeleteDiscovererRequest;
96
187
  ...obj,
97
188
  });
98
189
  })(DeleteDiscovererRequest = exports.DeleteDiscovererRequest || (exports.DeleteDiscovererRequest = {}));
190
+ class NotFoundException extends SchemasServiceException_1.SchemasServiceException {
191
+ constructor(opts) {
192
+ super({
193
+ name: "NotFoundException",
194
+ $fault: "client",
195
+ ...opts,
196
+ });
197
+ this.name = "NotFoundException";
198
+ this.$fault = "client";
199
+ Object.setPrototypeOf(this, NotFoundException.prototype);
200
+ this.Code = opts.Code;
201
+ this.Message = opts.Message;
202
+ }
203
+ }
204
+ exports.NotFoundException = NotFoundException;
99
205
  var DeleteRegistryRequest;
100
206
  (function (DeleteRegistryRequest) {
101
207
  DeleteRegistryRequest.filterSensitiveLog = (obj) => ({
@@ -132,6 +238,21 @@ var DescribeCodeBindingResponse;
132
238
  ...obj,
133
239
  });
134
240
  })(DescribeCodeBindingResponse = exports.DescribeCodeBindingResponse || (exports.DescribeCodeBindingResponse = {}));
241
+ class TooManyRequestsException extends SchemasServiceException_1.SchemasServiceException {
242
+ constructor(opts) {
243
+ super({
244
+ name: "TooManyRequestsException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ this.name = "TooManyRequestsException";
249
+ this.$fault = "client";
250
+ Object.setPrototypeOf(this, TooManyRequestsException.prototype);
251
+ this.Code = opts.Code;
252
+ this.Message = opts.Message;
253
+ }
254
+ }
255
+ exports.TooManyRequestsException = TooManyRequestsException;
135
256
  var DescribeDiscovererRequest;
136
257
  (function (DescribeDiscovererRequest) {
137
258
  DescribeDiscovererRequest.filterSensitiveLog = (obj) => ({
@@ -216,6 +337,21 @@ var GetResourcePolicyResponse;
216
337
  ...obj,
217
338
  });
218
339
  })(GetResourcePolicyResponse = exports.GetResourcePolicyResponse || (exports.GetResourcePolicyResponse = {}));
340
+ class GoneException extends SchemasServiceException_1.SchemasServiceException {
341
+ constructor(opts) {
342
+ super({
343
+ name: "GoneException",
344
+ $fault: "client",
345
+ ...opts,
346
+ });
347
+ this.name = "GoneException";
348
+ this.$fault = "client";
349
+ Object.setPrototypeOf(this, GoneException.prototype);
350
+ this.Code = opts.Code;
351
+ this.Message = opts.Message;
352
+ }
353
+ }
354
+ exports.GoneException = GoneException;
219
355
  var ListDiscoverersRequest;
220
356
  (function (ListDiscoverersRequest) {
221
357
  ListDiscoverersRequest.filterSensitiveLog = (obj) => ({
@@ -276,6 +412,21 @@ var ListTagsForResourceResponse;
276
412
  ...obj,
277
413
  });
278
414
  })(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
415
+ class PreconditionFailedException extends SchemasServiceException_1.SchemasServiceException {
416
+ constructor(opts) {
417
+ super({
418
+ name: "PreconditionFailedException",
419
+ $fault: "client",
420
+ ...opts,
421
+ });
422
+ this.name = "PreconditionFailedException";
423
+ this.$fault = "client";
424
+ Object.setPrototypeOf(this, PreconditionFailedException.prototype);
425
+ this.Code = opts.Code;
426
+ this.Message = opts.Message;
427
+ }
428
+ }
429
+ exports.PreconditionFailedException = PreconditionFailedException;
279
430
  var PutCodeBindingRequest;
280
431
  (function (PutCodeBindingRequest) {
281
432
  PutCodeBindingRequest.filterSensitiveLog = (obj) => ({