@aws-sdk/client-ebs 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 (36) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/index.js +3 -0
  3. package/dist-cjs/models/EBSServiceException.js +11 -0
  4. package/dist-cjs/models/models_0.js +119 -1
  5. package/dist-cjs/protocols/Aws_restJson1.js +118 -352
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/EBSServiceException.js +12 -0
  8. package/dist-es/models/models_0.js +111 -1
  9. package/dist-es/protocols/Aws_restJson1.js +189 -385
  10. package/dist-types/index.d.ts +1 -0
  11. package/dist-types/models/EBSServiceException.d.ts +10 -0
  12. package/dist-types/models/models_0.d.ts +58 -25
  13. package/dist-types/ts3.4/EBS.d.ts +35 -0
  14. package/dist-types/ts3.4/EBSClient.d.ts +79 -0
  15. package/dist-types/ts3.4/commands/CompleteSnapshotCommand.d.ts +17 -0
  16. package/dist-types/ts3.4/commands/GetSnapshotBlockCommand.d.ts +17 -0
  17. package/dist-types/ts3.4/commands/ListChangedBlocksCommand.d.ts +17 -0
  18. package/dist-types/ts3.4/commands/ListSnapshotBlocksCommand.d.ts +17 -0
  19. package/dist-types/ts3.4/commands/PutSnapshotBlockCommand.d.ts +24 -0
  20. package/dist-types/ts3.4/commands/StartSnapshotCommand.d.ts +17 -0
  21. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  22. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  23. package/dist-types/ts3.4/index.d.ts +6 -0
  24. package/dist-types/ts3.4/models/EBSServiceException.d.ts +6 -0
  25. package/dist-types/ts3.4/models/index.d.ts +1 -0
  26. package/dist-types/ts3.4/models/models_0.d.ts +342 -0
  27. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  28. package/dist-types/ts3.4/pagination/ListChangedBlocksPaginator.d.ts +4 -0
  29. package/dist-types/ts3.4/pagination/ListSnapshotBlocksPaginator.d.ts +4 -0
  30. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  31. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -0
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  35. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  36. 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-ebs
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-ebs
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
  **Note:** Version bump only for package @aws-sdk/client-ebs
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EBSServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./EBS"), exports);
5
6
  tslib_1.__exportStar(require("./EBSClient"), 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 EBSServiceException_1 = require("./models/EBSServiceException");
11
+ Object.defineProperty(exports, "EBSServiceException", { enumerable: true, get: function () { return EBSServiceException_1.EBSServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EBSServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class EBSServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, EBSServiceException.prototype);
9
+ }
10
+ }
11
+ exports.EBSServiceException = EBSServiceException;
@@ -1,12 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StartSnapshotResponse = exports.StartSnapshotRequest = exports.Tag = exports.PutSnapshotBlockResponse = exports.PutSnapshotBlockRequest = exports.ListSnapshotBlocksResponse = exports.ListSnapshotBlocksRequest = exports.ListChangedBlocksResponse = exports.ListChangedBlocksRequest = exports.GetSnapshotBlockResponse = exports.GetSnapshotBlockRequest = exports.ValidationExceptionReason = exports.ServiceQuotaExceededExceptionReason = exports.ResourceNotFoundExceptionReason = exports.RequestThrottledExceptionReason = exports.CompleteSnapshotResponse = exports.Status = exports.CompleteSnapshotRequest = exports.ChecksumAlgorithm = exports.ChecksumAggregationMethod = exports.ChangedBlock = exports.Block = exports.AccessDeniedExceptionReason = void 0;
3
+ exports.StartSnapshotResponse = exports.StartSnapshotRequest = exports.Tag = exports.PutSnapshotBlockResponse = exports.PutSnapshotBlockRequest = exports.ListSnapshotBlocksResponse = exports.ListSnapshotBlocksRequest = exports.ListChangedBlocksResponse = exports.ListChangedBlocksRequest = exports.GetSnapshotBlockResponse = exports.GetSnapshotBlockRequest = exports.ConflictException = exports.ConcurrentLimitExceededException = exports.ValidationException = exports.ValidationExceptionReason = exports.ServiceQuotaExceededException = exports.ServiceQuotaExceededExceptionReason = exports.ResourceNotFoundException = exports.ResourceNotFoundExceptionReason = exports.RequestThrottledException = exports.RequestThrottledExceptionReason = exports.InternalServerException = exports.CompleteSnapshotResponse = exports.Status = exports.CompleteSnapshotRequest = exports.ChecksumAlgorithm = exports.ChecksumAggregationMethod = exports.ChangedBlock = exports.Block = exports.AccessDeniedException = exports.AccessDeniedExceptionReason = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ const EBSServiceException_1 = require("./EBSServiceException");
5
6
  var AccessDeniedExceptionReason;
6
7
  (function (AccessDeniedExceptionReason) {
7
8
  AccessDeniedExceptionReason["DEPENDENCY_ACCESS_DENIED"] = "DEPENDENCY_ACCESS_DENIED";
8
9
  AccessDeniedExceptionReason["UNAUTHORIZED_ACCOUNT"] = "UNAUTHORIZED_ACCOUNT";
9
10
  })(AccessDeniedExceptionReason = exports.AccessDeniedExceptionReason || (exports.AccessDeniedExceptionReason = {}));
11
+ class AccessDeniedException extends EBSServiceException_1.EBSServiceException {
12
+ constructor(opts) {
13
+ super({
14
+ name: "AccessDeniedException",
15
+ $fault: "client",
16
+ ...opts,
17
+ });
18
+ this.name = "AccessDeniedException";
19
+ this.$fault = "client";
20
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
21
+ this.Message = opts.Message;
22
+ this.Reason = opts.Reason;
23
+ }
24
+ }
25
+ exports.AccessDeniedException = AccessDeniedException;
10
26
  var Block;
11
27
  (function (Block) {
12
28
  Block.filterSensitiveLog = (obj) => ({
@@ -45,20 +61,79 @@ var CompleteSnapshotResponse;
45
61
  ...obj,
46
62
  });
47
63
  })(CompleteSnapshotResponse = exports.CompleteSnapshotResponse || (exports.CompleteSnapshotResponse = {}));
64
+ class InternalServerException extends EBSServiceException_1.EBSServiceException {
65
+ constructor(opts) {
66
+ super({
67
+ name: "InternalServerException",
68
+ $fault: "server",
69
+ ...opts,
70
+ });
71
+ this.name = "InternalServerException";
72
+ this.$fault = "server";
73
+ Object.setPrototypeOf(this, InternalServerException.prototype);
74
+ this.Message = opts.Message;
75
+ }
76
+ }
77
+ exports.InternalServerException = InternalServerException;
48
78
  var RequestThrottledExceptionReason;
49
79
  (function (RequestThrottledExceptionReason) {
50
80
  RequestThrottledExceptionReason["ACCOUNT_THROTTLED"] = "ACCOUNT_THROTTLED";
51
81
  RequestThrottledExceptionReason["DEPENDENCY_REQUEST_THROTTLED"] = "DEPENDENCY_REQUEST_THROTTLED";
52
82
  })(RequestThrottledExceptionReason = exports.RequestThrottledExceptionReason || (exports.RequestThrottledExceptionReason = {}));
83
+ class RequestThrottledException extends EBSServiceException_1.EBSServiceException {
84
+ constructor(opts) {
85
+ super({
86
+ name: "RequestThrottledException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ this.name = "RequestThrottledException";
91
+ this.$fault = "client";
92
+ Object.setPrototypeOf(this, RequestThrottledException.prototype);
93
+ this.Message = opts.Message;
94
+ this.Reason = opts.Reason;
95
+ }
96
+ }
97
+ exports.RequestThrottledException = RequestThrottledException;
53
98
  var ResourceNotFoundExceptionReason;
54
99
  (function (ResourceNotFoundExceptionReason) {
55
100
  ResourceNotFoundExceptionReason["DEPENDENCY_RESOURCE_NOT_FOUND"] = "DEPENDENCY_RESOURCE_NOT_FOUND";
56
101
  ResourceNotFoundExceptionReason["SNAPSHOT_NOT_FOUND"] = "SNAPSHOT_NOT_FOUND";
57
102
  })(ResourceNotFoundExceptionReason = exports.ResourceNotFoundExceptionReason || (exports.ResourceNotFoundExceptionReason = {}));
103
+ class ResourceNotFoundException extends EBSServiceException_1.EBSServiceException {
104
+ constructor(opts) {
105
+ super({
106
+ name: "ResourceNotFoundException",
107
+ $fault: "client",
108
+ ...opts,
109
+ });
110
+ this.name = "ResourceNotFoundException";
111
+ this.$fault = "client";
112
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
113
+ this.Message = opts.Message;
114
+ this.Reason = opts.Reason;
115
+ }
116
+ }
117
+ exports.ResourceNotFoundException = ResourceNotFoundException;
58
118
  var ServiceQuotaExceededExceptionReason;
59
119
  (function (ServiceQuotaExceededExceptionReason) {
60
120
  ServiceQuotaExceededExceptionReason["DEPENDENCY_SERVICE_QUOTA_EXCEEDED"] = "DEPENDENCY_SERVICE_QUOTA_EXCEEDED";
61
121
  })(ServiceQuotaExceededExceptionReason = exports.ServiceQuotaExceededExceptionReason || (exports.ServiceQuotaExceededExceptionReason = {}));
122
+ class ServiceQuotaExceededException extends EBSServiceException_1.EBSServiceException {
123
+ constructor(opts) {
124
+ super({
125
+ name: "ServiceQuotaExceededException",
126
+ $fault: "client",
127
+ ...opts,
128
+ });
129
+ this.name = "ServiceQuotaExceededException";
130
+ this.$fault = "client";
131
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
132
+ this.Message = opts.Message;
133
+ this.Reason = opts.Reason;
134
+ }
135
+ }
136
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
62
137
  var ValidationExceptionReason;
63
138
  (function (ValidationExceptionReason) {
64
139
  ValidationExceptionReason["INVALID_BLOCK"] = "INVALID_BLOCK";
@@ -73,6 +148,49 @@ var ValidationExceptionReason;
73
148
  ValidationExceptionReason["INVALID_VOLUME_SIZE"] = "INVALID_VOLUME_SIZE";
74
149
  ValidationExceptionReason["UNRELATED_SNAPSHOTS"] = "UNRELATED_SNAPSHOTS";
75
150
  })(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
151
+ class ValidationException extends EBSServiceException_1.EBSServiceException {
152
+ constructor(opts) {
153
+ super({
154
+ name: "ValidationException",
155
+ $fault: "client",
156
+ ...opts,
157
+ });
158
+ this.name = "ValidationException";
159
+ this.$fault = "client";
160
+ Object.setPrototypeOf(this, ValidationException.prototype);
161
+ this.Message = opts.Message;
162
+ this.Reason = opts.Reason;
163
+ }
164
+ }
165
+ exports.ValidationException = ValidationException;
166
+ class ConcurrentLimitExceededException extends EBSServiceException_1.EBSServiceException {
167
+ constructor(opts) {
168
+ super({
169
+ name: "ConcurrentLimitExceededException",
170
+ $fault: "client",
171
+ ...opts,
172
+ });
173
+ this.name = "ConcurrentLimitExceededException";
174
+ this.$fault = "client";
175
+ Object.setPrototypeOf(this, ConcurrentLimitExceededException.prototype);
176
+ this.Message = opts.Message;
177
+ }
178
+ }
179
+ exports.ConcurrentLimitExceededException = ConcurrentLimitExceededException;
180
+ class ConflictException extends EBSServiceException_1.EBSServiceException {
181
+ constructor(opts) {
182
+ super({
183
+ name: "ConflictException",
184
+ $fault: "server",
185
+ ...opts,
186
+ });
187
+ this.name = "ConflictException";
188
+ this.$fault = "server";
189
+ Object.setPrototypeOf(this, ConflictException.prototype);
190
+ this.Message = opts.Message;
191
+ }
192
+ }
193
+ exports.ConflictException = ConflictException;
76
194
  var GetSnapshotBlockRequest;
77
195
  (function (GetSnapshotBlockRequest) {
78
196
  GetSnapshotBlockRequest.filterSensitiveLog = (obj) => ({