@aws-sdk/client-braket 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-braket
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BraketServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./Braket"), exports);
5
6
  tslib_1.__exportStar(require("./BraketClient"), 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 BraketServiceException_1 = require("./models/BraketServiceException");
11
+ Object.defineProperty(exports, "BraketServiceException", { enumerable: true, get: function () { return BraketServiceException_1.BraketServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BraketServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class BraketServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, BraketServiceException.prototype);
9
+ }
10
+ }
11
+ exports.BraketServiceException = BraketServiceException;
@@ -1,7 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchQuantumTasksResponse = exports.QuantumTaskSummary = exports.SearchQuantumTasksRequest = exports.SearchQuantumTasksFilter = exports.SearchQuantumTasksFilterOperator = exports.GetQuantumTaskResponse = exports.QuantumTaskStatus = exports.GetQuantumTaskRequest = exports.CreateQuantumTaskResponse = exports.CreateQuantumTaskRequest = exports.CancelQuantumTaskResponse = exports.CancelQuantumTaskRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.SearchJobsResponse = exports.JobSummary = exports.SearchJobsRequest = exports.SearchJobsFilter = exports.SearchJobsFilterOperator = exports.GetJobResponse = exports.JobPrimaryStatus = exports.JobEventDetails = exports.JobEventType = exports.GetJobRequest = exports.CreateJobResponse = exports.CreateJobRequest = exports.JobStoppingCondition = exports.JobOutputDataConfig = exports.InstanceConfig = exports._InstanceType = exports.InputFileConfig = exports.DataSource = exports.S3DataSource = exports.DeviceConfig = exports.JobCheckpointConfig = exports.CancelJobResponse = exports.CancellationStatus = exports.CancelJobRequest = exports.SearchDevicesResponse = exports.DeviceSummary = exports.SearchDevicesRequest = exports.SearchDevicesFilter = exports.GetDeviceResponse = exports.DeviceType = exports.DeviceStatus = exports.GetDeviceRequest = exports.AlgorithmSpecification = exports.ScriptModeConfig = exports.CompressionType = exports.ContainerImage = void 0;
4
- exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = void 0;
3
+ exports.CreateQuantumTaskResponse = exports.CreateQuantumTaskRequest = exports.CancelQuantumTaskResponse = exports.CancelQuantumTaskRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.SearchJobsResponse = exports.JobSummary = exports.SearchJobsRequest = exports.SearchJobsFilter = exports.SearchJobsFilterOperator = exports.GetJobResponse = exports.JobPrimaryStatus = exports.JobEventDetails = exports.JobEventType = exports.GetJobRequest = exports.ServiceQuotaExceededException = exports.DeviceRetiredException = exports.CreateJobResponse = exports.CreateJobRequest = exports.JobStoppingCondition = exports.JobOutputDataConfig = exports.InstanceConfig = exports._InstanceType = exports.InputFileConfig = exports.DataSource = exports.S3DataSource = exports.DeviceConfig = exports.JobCheckpointConfig = exports.ConflictException = exports.CancelJobResponse = exports.CancellationStatus = exports.CancelJobRequest = exports.SearchDevicesResponse = exports.DeviceSummary = exports.SearchDevicesRequest = exports.SearchDevicesFilter = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServiceException = exports.GetDeviceResponse = exports.DeviceType = exports.DeviceStatus = exports.GetDeviceRequest = exports.AlgorithmSpecification = exports.ScriptModeConfig = exports.CompressionType = exports.ContainerImage = exports.AccessDeniedException = void 0;
4
+ exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.SearchQuantumTasksResponse = exports.QuantumTaskSummary = exports.SearchQuantumTasksRequest = exports.SearchQuantumTasksFilter = exports.SearchQuantumTasksFilterOperator = exports.GetQuantumTaskResponse = exports.QuantumTaskStatus = exports.GetQuantumTaskRequest = exports.DeviceOfflineException = void 0;
5
+ const BraketServiceException_1 = require("./BraketServiceException");
6
+ class AccessDeniedException extends BraketServiceException_1.BraketServiceException {
7
+ constructor(opts) {
8
+ super({
9
+ name: "AccessDeniedException",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ this.name = "AccessDeniedException";
14
+ this.$fault = "client";
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
5
19
  var ContainerImage;
6
20
  (function (ContainerImage) {
7
21
  ContainerImage.filterSensitiveLog = (obj) => ({
@@ -48,6 +62,58 @@ var GetDeviceResponse;
48
62
  ...obj,
49
63
  });
50
64
  })(GetDeviceResponse = exports.GetDeviceResponse || (exports.GetDeviceResponse = {}));
65
+ class InternalServiceException extends BraketServiceException_1.BraketServiceException {
66
+ constructor(opts) {
67
+ super({
68
+ name: "InternalServiceException",
69
+ $fault: "server",
70
+ ...opts,
71
+ });
72
+ this.name = "InternalServiceException";
73
+ this.$fault = "server";
74
+ Object.setPrototypeOf(this, InternalServiceException.prototype);
75
+ }
76
+ }
77
+ exports.InternalServiceException = InternalServiceException;
78
+ class ResourceNotFoundException extends BraketServiceException_1.BraketServiceException {
79
+ constructor(opts) {
80
+ super({
81
+ name: "ResourceNotFoundException",
82
+ $fault: "client",
83
+ ...opts,
84
+ });
85
+ this.name = "ResourceNotFoundException";
86
+ this.$fault = "client";
87
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
88
+ }
89
+ }
90
+ exports.ResourceNotFoundException = ResourceNotFoundException;
91
+ class ThrottlingException extends BraketServiceException_1.BraketServiceException {
92
+ constructor(opts) {
93
+ super({
94
+ name: "ThrottlingException",
95
+ $fault: "client",
96
+ ...opts,
97
+ });
98
+ this.name = "ThrottlingException";
99
+ this.$fault = "client";
100
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
101
+ }
102
+ }
103
+ exports.ThrottlingException = ThrottlingException;
104
+ class ValidationException extends BraketServiceException_1.BraketServiceException {
105
+ constructor(opts) {
106
+ super({
107
+ name: "ValidationException",
108
+ $fault: "client",
109
+ ...opts,
110
+ });
111
+ this.name = "ValidationException";
112
+ this.$fault = "client";
113
+ Object.setPrototypeOf(this, ValidationException.prototype);
114
+ }
115
+ }
116
+ exports.ValidationException = ValidationException;
51
117
  var SearchDevicesFilter;
52
118
  (function (SearchDevicesFilter) {
53
119
  SearchDevicesFilter.filterSensitiveLog = (obj) => ({
@@ -89,6 +155,19 @@ var CancelJobResponse;
89
155
  ...obj,
90
156
  });
91
157
  })(CancelJobResponse = exports.CancelJobResponse || (exports.CancelJobResponse = {}));
158
+ class ConflictException extends BraketServiceException_1.BraketServiceException {
159
+ constructor(opts) {
160
+ super({
161
+ name: "ConflictException",
162
+ $fault: "client",
163
+ ...opts,
164
+ });
165
+ this.name = "ConflictException";
166
+ this.$fault = "client";
167
+ Object.setPrototypeOf(this, ConflictException.prototype);
168
+ }
169
+ }
170
+ exports.ConflictException = ConflictException;
92
171
  var JobCheckpointConfig;
93
172
  (function (JobCheckpointConfig) {
94
173
  JobCheckpointConfig.filterSensitiveLog = (obj) => ({
@@ -191,6 +270,32 @@ var CreateJobResponse;
191
270
  ...obj,
192
271
  });
193
272
  })(CreateJobResponse = exports.CreateJobResponse || (exports.CreateJobResponse = {}));
273
+ class DeviceRetiredException extends BraketServiceException_1.BraketServiceException {
274
+ constructor(opts) {
275
+ super({
276
+ name: "DeviceRetiredException",
277
+ $fault: "client",
278
+ ...opts,
279
+ });
280
+ this.name = "DeviceRetiredException";
281
+ this.$fault = "client";
282
+ Object.setPrototypeOf(this, DeviceRetiredException.prototype);
283
+ }
284
+ }
285
+ exports.DeviceRetiredException = DeviceRetiredException;
286
+ class ServiceQuotaExceededException extends BraketServiceException_1.BraketServiceException {
287
+ constructor(opts) {
288
+ super({
289
+ name: "ServiceQuotaExceededException",
290
+ $fault: "client",
291
+ ...opts,
292
+ });
293
+ this.name = "ServiceQuotaExceededException";
294
+ this.$fault = "client";
295
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
296
+ }
297
+ }
298
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
194
299
  var GetJobRequest;
195
300
  (function (GetJobRequest) {
196
301
  GetJobRequest.filterSensitiveLog = (obj) => ({
@@ -302,6 +407,19 @@ var CreateQuantumTaskResponse;
302
407
  ...obj,
303
408
  });
304
409
  })(CreateQuantumTaskResponse = exports.CreateQuantumTaskResponse || (exports.CreateQuantumTaskResponse = {}));
410
+ class DeviceOfflineException extends BraketServiceException_1.BraketServiceException {
411
+ constructor(opts) {
412
+ super({
413
+ name: "DeviceOfflineException",
414
+ $fault: "client",
415
+ ...opts,
416
+ });
417
+ this.name = "DeviceOfflineException";
418
+ this.$fault = "client";
419
+ Object.setPrototypeOf(this, DeviceOfflineException.prototype);
420
+ }
421
+ }
422
+ exports.DeviceOfflineException = DeviceOfflineException;
305
423
  var GetQuantumTaskRequest;
306
424
  (function (GetQuantumTaskRequest) {
307
425
  GetQuantumTaskRequest.filterSensitiveLog = (obj) => ({