@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/CHANGELOG.md +11 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/DrsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +128 -3
- package/dist-cjs/protocols/Aws_restJson1.js +351 -1245
- package/dist-es/index.js +1 -0
- package/dist-es/models/DrsServiceException.js +12 -0
- package/dist-es/models/models_0.js +118 -1
- package/dist-es/protocols/Aws_restJson1.js +711 -1370
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/DrsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +58 -33
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/DrsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -33
- package/package.json +25 -25
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-drs
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrsServiceException = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
tslib_1.__exportStar(require("./Drs"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./DrsClient"), 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 DrsServiceException_1 = require("./models/DrsServiceException");
|
|
11
|
+
Object.defineProperty(exports, "DrsServiceException", { enumerable: true, get: function () { return DrsServiceException_1.DrsServiceException; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DrsServiceException = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
|
+
class DrsServiceException extends smithy_client_1.ServiceException {
|
|
6
|
+
constructor(options) {
|
|
7
|
+
super(options);
|
|
8
|
+
Object.setPrototypeOf(this, DrsServiceException.prototype);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.DrsServiceException = DrsServiceException;
|
|
@@ -1,9 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.UntagResourceRequest = exports.TagResourceRequest = exports.UpdateReplicationConfigurationRequest = exports.UpdateLaunchConfigurationRequest = exports.StartRecoveryResponse = exports.StartRecoveryRequest = exports.StartRecoveryRequestSourceServer = exports.RetryDataReplicationRequest = exports.ReplicationConfiguration = exports.ReplicationConfigurationReplicatedDisk = exports.ReplicationConfigurationReplicatedDiskStagingDiskType = void 0;
|
|
3
|
+
exports.DescribeRecoveryInstancesRequest = exports.DescribeRecoveryInstancesRequestFilters = exports.DescribeJobsResponse = exports.Job = exports.JobType = exports.JobStatus = exports.ParticipatingServer = exports.LaunchStatus = exports.InitiatedBy = exports.DescribeJobsRequest = exports.DescribeJobsRequestFilters = exports.DescribeJobLogItemsResponse = exports.JobLog = exports.JobLogEventData = exports.JobLogEvent = exports.DescribeJobLogItemsRequest = exports.DeleteSourceServerResponse = exports.DeleteSourceServerRequest = exports.DeleteReplicationConfigurationTemplateResponse = exports.DeleteReplicationConfigurationTemplateRequest = exports.DeleteRecoveryInstanceRequest = exports.ResourceNotFoundException = exports.DeleteJobResponse = exports.DeleteJobRequest = exports.DataReplicationInfo = exports.DataReplicationInfoReplicatedDisk = exports.DataReplicationState = exports.DataReplicationInitiation = exports.DataReplicationInitiationStep = exports.DataReplicationInitiationStepStatus = exports.DataReplicationInitiationStepName = exports.DataReplicationError = exports.DataReplicationErrorString = exports.ValidationException = exports.ValidationExceptionReason = exports.ValidationExceptionField = exports.UninitializedAccountException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ReplicationConfigurationTemplate = exports.InternalServerException = exports.CreateReplicationConfigurationTemplateRequest = exports.PITPolicyRule = exports.PITPolicyRuleUnits = exports.ReplicationConfigurationEbsEncryption = exports.ReplicationConfigurationDefaultLargeStagingDiskType = exports.ReplicationConfigurationDataPlaneRouting = exports.CPU = exports.ConflictException = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.TerminateRecoveryInstancesResponse = exports.TerminateRecoveryInstancesRequest = exports.StopFailbackRequest = exports.StartFailbackLaunchResponse = exports.StartFailbackLaunchRequest = exports.GetFailbackReplicationConfigurationResponse = exports.GetFailbackReplicationConfigurationRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.InitializeServiceResponse = exports.InitializeServiceRequest = exports.DisconnectSourceServerRequest = exports.DisconnectRecoveryInstanceRequest = exports.DescribeSourceServersResponse = exports.SourceServer = exports.SourceProperties = exports.Disk = exports.LifeCycle = exports.LifeCycleLastLaunch = exports.LifeCycleLastLaunchInitiated = exports.LastLaunchType = exports.LastLaunchResult = exports.DescribeSourceServersRequest = exports.DescribeSourceServersRequestFilters = exports.DescribeReplicationConfigurationTemplatesResponse = exports.DescribeReplicationConfigurationTemplatesRequest = exports.DescribeRecoverySnapshotsResponse = exports.RecoverySnapshot = exports.DescribeRecoverySnapshotsRequest = exports.RecoverySnapshotsOrder = exports.DescribeRecoverySnapshotsRequestFilters = exports.DescribeRecoveryInstancesResponse = exports.RecoveryInstance = exports.RecoveryInstanceProperties = exports.OS = exports.NetworkInterface = exports.IdentificationHints = exports.RecoveryInstanceDisk = exports.RecoveryInstanceFailback = exports.FailbackState = exports.EC2InstanceState = exports.RecoveryInstanceDataReplicationInfo = exports.RecoveryInstanceDataReplicationInfoReplicatedDisk = exports.RecoveryInstanceDataReplicationState = exports.RecoveryInstanceDataReplicationInitiation = exports.RecoveryInstanceDataReplicationInitiationStep = exports.RecoveryInstanceDataReplicationInitiationStepStatus = exports.RecoveryInstanceDataReplicationInitiationStepName = exports.RecoveryInstanceDataReplicationError = exports.FailbackReplicationError = void 0;
|
|
5
|
+
exports.UntagResourceRequest = exports.TagResourceRequest = exports.UpdateReplicationConfigurationRequest = exports.UpdateLaunchConfigurationRequest = exports.StartRecoveryResponse = exports.StartRecoveryRequest = exports.StartRecoveryRequestSourceServer = exports.RetryDataReplicationRequest = exports.ReplicationConfiguration = exports.ReplicationConfigurationReplicatedDisk = exports.ReplicationConfigurationReplicatedDiskStagingDiskType = exports.GetReplicationConfigurationRequest = exports.LaunchConfiguration = exports.TargetInstanceTypeRightSizingMethod = exports.Licensing = exports.LaunchDisposition = exports.GetLaunchConfigurationRequest = exports.UpdateReplicationConfigurationTemplateRequest = exports.UpdateFailbackReplicationConfigurationRequest = void 0;
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const DrsServiceException_1 = require("./DrsServiceException");
|
|
8
|
+
class AccessDeniedException extends DrsServiceException_1.DrsServiceException {
|
|
9
|
+
constructor(opts) {
|
|
10
|
+
super({
|
|
11
|
+
name: "AccessDeniedException",
|
|
12
|
+
$fault: "client",
|
|
13
|
+
...opts,
|
|
14
|
+
});
|
|
15
|
+
this.name = "AccessDeniedException";
|
|
16
|
+
this.$fault = "client";
|
|
17
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
18
|
+
this.code = opts.code;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
22
|
+
class ConflictException extends DrsServiceException_1.DrsServiceException {
|
|
23
|
+
constructor(opts) {
|
|
24
|
+
super({
|
|
25
|
+
name: "ConflictException",
|
|
26
|
+
$fault: "client",
|
|
27
|
+
...opts,
|
|
28
|
+
});
|
|
29
|
+
this.name = "ConflictException";
|
|
30
|
+
this.$fault = "client";
|
|
31
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
32
|
+
this.code = opts.code;
|
|
33
|
+
this.resourceId = opts.resourceId;
|
|
34
|
+
this.resourceType = opts.resourceType;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.ConflictException = ConflictException;
|
|
7
38
|
var CPU;
|
|
8
39
|
(function (CPU) {
|
|
9
40
|
CPU.filterSensitiveLog = (obj) => ({
|
|
@@ -46,6 +77,20 @@ var CreateReplicationConfigurationTemplateRequest;
|
|
|
46
77
|
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
47
78
|
});
|
|
48
79
|
})(CreateReplicationConfigurationTemplateRequest = exports.CreateReplicationConfigurationTemplateRequest || (exports.CreateReplicationConfigurationTemplateRequest = {}));
|
|
80
|
+
class InternalServerException extends DrsServiceException_1.DrsServiceException {
|
|
81
|
+
constructor(opts) {
|
|
82
|
+
super({
|
|
83
|
+
name: "InternalServerException",
|
|
84
|
+
$fault: "server",
|
|
85
|
+
...opts,
|
|
86
|
+
});
|
|
87
|
+
this.name = "InternalServerException";
|
|
88
|
+
this.$fault = "server";
|
|
89
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
90
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.InternalServerException = InternalServerException;
|
|
49
94
|
var ReplicationConfigurationTemplate;
|
|
50
95
|
(function (ReplicationConfigurationTemplate) {
|
|
51
96
|
ReplicationConfigurationTemplate.filterSensitiveLog = (obj) => ({
|
|
@@ -54,6 +99,54 @@ var ReplicationConfigurationTemplate;
|
|
|
54
99
|
...(obj.tags && { tags: smithy_client_1.SENSITIVE_STRING }),
|
|
55
100
|
});
|
|
56
101
|
})(ReplicationConfigurationTemplate = exports.ReplicationConfigurationTemplate || (exports.ReplicationConfigurationTemplate = {}));
|
|
102
|
+
class ServiceQuotaExceededException extends DrsServiceException_1.DrsServiceException {
|
|
103
|
+
constructor(opts) {
|
|
104
|
+
super({
|
|
105
|
+
name: "ServiceQuotaExceededException",
|
|
106
|
+
$fault: "client",
|
|
107
|
+
...opts,
|
|
108
|
+
});
|
|
109
|
+
this.name = "ServiceQuotaExceededException";
|
|
110
|
+
this.$fault = "client";
|
|
111
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
112
|
+
this.code = opts.code;
|
|
113
|
+
this.resourceId = opts.resourceId;
|
|
114
|
+
this.resourceType = opts.resourceType;
|
|
115
|
+
this.serviceCode = opts.serviceCode;
|
|
116
|
+
this.quotaCode = opts.quotaCode;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
120
|
+
class ThrottlingException extends DrsServiceException_1.DrsServiceException {
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "ThrottlingException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
this.name = "ThrottlingException";
|
|
128
|
+
this.$fault = "client";
|
|
129
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
130
|
+
this.serviceCode = opts.serviceCode;
|
|
131
|
+
this.quotaCode = opts.quotaCode;
|
|
132
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
exports.ThrottlingException = ThrottlingException;
|
|
136
|
+
class UninitializedAccountException extends DrsServiceException_1.DrsServiceException {
|
|
137
|
+
constructor(opts) {
|
|
138
|
+
super({
|
|
139
|
+
name: "UninitializedAccountException",
|
|
140
|
+
$fault: "client",
|
|
141
|
+
...opts,
|
|
142
|
+
});
|
|
143
|
+
this.name = "UninitializedAccountException";
|
|
144
|
+
this.$fault = "client";
|
|
145
|
+
Object.setPrototypeOf(this, UninitializedAccountException.prototype);
|
|
146
|
+
this.code = opts.code;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.UninitializedAccountException = UninitializedAccountException;
|
|
57
150
|
var ValidationExceptionField;
|
|
58
151
|
(function (ValidationExceptionField) {
|
|
59
152
|
ValidationExceptionField.filterSensitiveLog = (obj) => ({
|
|
@@ -67,6 +160,22 @@ var ValidationExceptionReason;
|
|
|
67
160
|
ValidationExceptionReason["OTHER"] = "other";
|
|
68
161
|
ValidationExceptionReason["UNKNOWN_OPERATION"] = "unknownOperation";
|
|
69
162
|
})(ValidationExceptionReason = exports.ValidationExceptionReason || (exports.ValidationExceptionReason = {}));
|
|
163
|
+
class ValidationException extends DrsServiceException_1.DrsServiceException {
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "ValidationException",
|
|
167
|
+
$fault: "client",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
this.name = "ValidationException";
|
|
171
|
+
this.$fault = "client";
|
|
172
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
173
|
+
this.code = opts.code;
|
|
174
|
+
this.reason = opts.reason;
|
|
175
|
+
this.fieldList = opts.fieldList;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
exports.ValidationException = ValidationException;
|
|
70
179
|
var DataReplicationErrorString;
|
|
71
180
|
(function (DataReplicationErrorString) {
|
|
72
181
|
DataReplicationErrorString["AGENT_NOT_SEEN"] = "AGENT_NOT_SEEN";
|
|
@@ -161,6 +270,22 @@ var DeleteJobResponse;
|
|
|
161
270
|
...obj,
|
|
162
271
|
});
|
|
163
272
|
})(DeleteJobResponse = exports.DeleteJobResponse || (exports.DeleteJobResponse = {}));
|
|
273
|
+
class ResourceNotFoundException extends DrsServiceException_1.DrsServiceException {
|
|
274
|
+
constructor(opts) {
|
|
275
|
+
super({
|
|
276
|
+
name: "ResourceNotFoundException",
|
|
277
|
+
$fault: "client",
|
|
278
|
+
...opts,
|
|
279
|
+
});
|
|
280
|
+
this.name = "ResourceNotFoundException";
|
|
281
|
+
this.$fault = "client";
|
|
282
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
283
|
+
this.code = opts.code;
|
|
284
|
+
this.resourceId = opts.resourceId;
|
|
285
|
+
this.resourceType = opts.resourceType;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
164
289
|
var DeleteRecoveryInstanceRequest;
|
|
165
290
|
(function (DeleteRecoveryInstanceRequest) {
|
|
166
291
|
DeleteRecoveryInstanceRequest.filterSensitiveLog = (obj) => ({
|