@aws-sdk/client-drs 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/dist-es/index.js CHANGED
@@ -3,3 +3,4 @@ export * from "./DrsClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { DrsServiceException } from "./models/DrsServiceException";
@@ -0,0 +1,12 @@
1
+ import { __extends } from "tslib";
2
+ import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
3
+ var DrsServiceException = (function (_super) {
4
+ __extends(DrsServiceException, _super);
5
+ function DrsServiceException(options) {
6
+ var _this = _super.call(this, options) || this;
7
+ Object.setPrototypeOf(_this, DrsServiceException.prototype);
8
+ return _this;
9
+ }
10
+ return DrsServiceException;
11
+ }(__ServiceException));
12
+ export { DrsServiceException };
@@ -1,5 +1,34 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __extends } from "tslib";
2
2
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
+ import { DrsServiceException as __BaseException } from "./DrsServiceException";
4
+ var AccessDeniedException = (function (_super) {
5
+ __extends(AccessDeniedException, _super);
6
+ function AccessDeniedException(opts) {
7
+ var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
8
+ _this.name = "AccessDeniedException";
9
+ _this.$fault = "client";
10
+ Object.setPrototypeOf(_this, AccessDeniedException.prototype);
11
+ _this.code = opts.code;
12
+ return _this;
13
+ }
14
+ return AccessDeniedException;
15
+ }(__BaseException));
16
+ export { AccessDeniedException };
17
+ var ConflictException = (function (_super) {
18
+ __extends(ConflictException, _super);
19
+ function ConflictException(opts) {
20
+ var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
21
+ _this.name = "ConflictException";
22
+ _this.$fault = "client";
23
+ Object.setPrototypeOf(_this, ConflictException.prototype);
24
+ _this.code = opts.code;
25
+ _this.resourceId = opts.resourceId;
26
+ _this.resourceType = opts.resourceType;
27
+ return _this;
28
+ }
29
+ return ConflictException;
30
+ }(__BaseException));
31
+ export { ConflictException };
3
32
  export var CPU;
4
33
  (function (CPU) {
5
34
  CPU.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -34,10 +63,68 @@ export var CreateReplicationConfigurationTemplateRequest;
34
63
  (function (CreateReplicationConfigurationTemplateRequest) {
35
64
  CreateReplicationConfigurationTemplateRequest.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.stagingAreaTags && { stagingAreaTags: SENSITIVE_STRING })), (obj.tags && { tags: SENSITIVE_STRING }))); };
36
65
  })(CreateReplicationConfigurationTemplateRequest || (CreateReplicationConfigurationTemplateRequest = {}));
66
+ var InternalServerException = (function (_super) {
67
+ __extends(InternalServerException, _super);
68
+ function InternalServerException(opts) {
69
+ var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
70
+ _this.name = "InternalServerException";
71
+ _this.$fault = "server";
72
+ Object.setPrototypeOf(_this, InternalServerException.prototype);
73
+ _this.retryAfterSeconds = opts.retryAfterSeconds;
74
+ return _this;
75
+ }
76
+ return InternalServerException;
77
+ }(__BaseException));
78
+ export { InternalServerException };
37
79
  export var ReplicationConfigurationTemplate;
38
80
  (function (ReplicationConfigurationTemplate) {
39
81
  ReplicationConfigurationTemplate.filterSensitiveLog = function (obj) { return (__assign(__assign(__assign({}, obj), (obj.stagingAreaTags && { stagingAreaTags: SENSITIVE_STRING })), (obj.tags && { tags: SENSITIVE_STRING }))); };
40
82
  })(ReplicationConfigurationTemplate || (ReplicationConfigurationTemplate = {}));
83
+ var ServiceQuotaExceededException = (function (_super) {
84
+ __extends(ServiceQuotaExceededException, _super);
85
+ function ServiceQuotaExceededException(opts) {
86
+ var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
87
+ _this.name = "ServiceQuotaExceededException";
88
+ _this.$fault = "client";
89
+ Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
90
+ _this.code = opts.code;
91
+ _this.resourceId = opts.resourceId;
92
+ _this.resourceType = opts.resourceType;
93
+ _this.serviceCode = opts.serviceCode;
94
+ _this.quotaCode = opts.quotaCode;
95
+ return _this;
96
+ }
97
+ return ServiceQuotaExceededException;
98
+ }(__BaseException));
99
+ export { ServiceQuotaExceededException };
100
+ var ThrottlingException = (function (_super) {
101
+ __extends(ThrottlingException, _super);
102
+ function ThrottlingException(opts) {
103
+ var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
104
+ _this.name = "ThrottlingException";
105
+ _this.$fault = "client";
106
+ Object.setPrototypeOf(_this, ThrottlingException.prototype);
107
+ _this.serviceCode = opts.serviceCode;
108
+ _this.quotaCode = opts.quotaCode;
109
+ _this.retryAfterSeconds = opts.retryAfterSeconds;
110
+ return _this;
111
+ }
112
+ return ThrottlingException;
113
+ }(__BaseException));
114
+ export { ThrottlingException };
115
+ var UninitializedAccountException = (function (_super) {
116
+ __extends(UninitializedAccountException, _super);
117
+ function UninitializedAccountException(opts) {
118
+ var _this = _super.call(this, __assign({ name: "UninitializedAccountException", $fault: "client" }, opts)) || this;
119
+ _this.name = "UninitializedAccountException";
120
+ _this.$fault = "client";
121
+ Object.setPrototypeOf(_this, UninitializedAccountException.prototype);
122
+ _this.code = opts.code;
123
+ return _this;
124
+ }
125
+ return UninitializedAccountException;
126
+ }(__BaseException));
127
+ export { UninitializedAccountException };
41
128
  export var ValidationExceptionField;
42
129
  (function (ValidationExceptionField) {
43
130
  ValidationExceptionField.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -49,6 +136,21 @@ export var ValidationExceptionReason;
49
136
  ValidationExceptionReason["OTHER"] = "other";
50
137
  ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
51
138
  })(ValidationExceptionReason || (ValidationExceptionReason = {}));
139
+ var ValidationException = (function (_super) {
140
+ __extends(ValidationException, _super);
141
+ function ValidationException(opts) {
142
+ var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
143
+ _this.name = "ValidationException";
144
+ _this.$fault = "client";
145
+ Object.setPrototypeOf(_this, ValidationException.prototype);
146
+ _this.code = opts.code;
147
+ _this.reason = opts.reason;
148
+ _this.fieldList = opts.fieldList;
149
+ return _this;
150
+ }
151
+ return ValidationException;
152
+ }(__BaseException));
153
+ export { ValidationException };
52
154
  export var DataReplicationErrorString;
53
155
  (function (DataReplicationErrorString) {
54
156
  DataReplicationErrorString["AGENT_NOT_SEEN"] = "AGENT_NOT_SEEN";
@@ -129,6 +231,21 @@ export var DeleteJobResponse;
129
231
  (function (DeleteJobResponse) {
130
232
  DeleteJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
233
  })(DeleteJobResponse || (DeleteJobResponse = {}));
234
+ var ResourceNotFoundException = (function (_super) {
235
+ __extends(ResourceNotFoundException, _super);
236
+ function ResourceNotFoundException(opts) {
237
+ var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
238
+ _this.name = "ResourceNotFoundException";
239
+ _this.$fault = "client";
240
+ Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
241
+ _this.code = opts.code;
242
+ _this.resourceId = opts.resourceId;
243
+ _this.resourceType = opts.resourceType;
244
+ return _this;
245
+ }
246
+ return ResourceNotFoundException;
247
+ }(__BaseException));
248
+ export { ResourceNotFoundException };
132
249
  export var DeleteRecoveryInstanceRequest;
133
250
  (function (DeleteRecoveryInstanceRequest) {
134
251
  DeleteRecoveryInstanceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };