@aws-sdk/client-migration-hub 3.51.0 → 3.54.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,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.54.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.53.1...v3.54.0) (2022-03-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-migration-hub
9
+
10
+
11
+
12
+
13
+
14
+ # [3.53.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.52.0...v3.53.0) (2022-02-24)
15
+
16
+
17
+ ### Features
18
+
19
+ * **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))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.52.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.51.0...v3.52.0) (2022-02-18)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-migration-hub
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.51.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.50.0...v3.51.0) (2022-02-12)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-migration-hub
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MigrationHubServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./MigrationHub"), exports);
5
6
  tslib_1.__exportStar(require("./MigrationHubClient"), 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 MigrationHubServiceException_1 = require("./models/MigrationHubServiceException");
11
+ Object.defineProperty(exports, "MigrationHubServiceException", { enumerable: true, get: function () { return MigrationHubServiceException_1.MigrationHubServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MigrationHubServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class MigrationHubServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, MigrationHubServiceException.prototype);
9
+ }
10
+ }
11
+ exports.MigrationHubServiceException = MigrationHubServiceException;
@@ -1,6 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PutResourceAttributesResult = exports.PutResourceAttributesRequest = exports.NotifyMigrationTaskStateResult = exports.NotifyMigrationTaskStateRequest = exports.NotifyApplicationStateResult = exports.NotifyApplicationStateRequest = exports.ListProgressUpdateStreamsResult = exports.ProgressUpdateStreamSummary = exports.ListProgressUpdateStreamsRequest = exports.ListMigrationTasksResult = exports.MigrationTaskSummary = exports.ListMigrationTasksRequest = exports.ListDiscoveredResourcesResult = exports.ListDiscoveredResourcesRequest = exports.ListCreatedArtifactsResult = exports.ListCreatedArtifactsRequest = exports.ListApplicationStatesResult = exports.ListApplicationStatesRequest = exports.ImportMigrationTaskResult = exports.ImportMigrationTaskRequest = exports.DisassociateDiscoveredResourceResult = exports.DisassociateDiscoveredResourceRequest = exports.DisassociateCreatedArtifactResult = exports.DisassociateCreatedArtifactRequest = exports.DescribeMigrationTaskResult = exports.MigrationTask = exports.Task = exports.Status = exports.ResourceAttribute = exports.ResourceAttributeType = exports.DescribeMigrationTaskRequest = exports.DescribeApplicationStateResult = exports.DescribeApplicationStateRequest = exports.DeleteProgressUpdateStreamResult = exports.DeleteProgressUpdateStreamRequest = exports.CreateProgressUpdateStreamResult = exports.CreateProgressUpdateStreamRequest = exports.AssociateDiscoveredResourceResult = exports.AssociateDiscoveredResourceRequest = exports.DiscoveredResource = exports.AssociateCreatedArtifactResult = exports.AssociateCreatedArtifactRequest = exports.CreatedArtifact = exports.ApplicationState = exports.ApplicationStatus = void 0;
3
+ exports.NotifyApplicationStateRequest = exports.ListProgressUpdateStreamsResult = exports.ProgressUpdateStreamSummary = exports.ListProgressUpdateStreamsRequest = exports.ListMigrationTasksResult = exports.MigrationTaskSummary = exports.ListMigrationTasksRequest = exports.ListDiscoveredResourcesResult = exports.ListDiscoveredResourcesRequest = exports.ListCreatedArtifactsResult = exports.ListCreatedArtifactsRequest = exports.ListApplicationStatesResult = exports.ListApplicationStatesRequest = exports.ImportMigrationTaskResult = exports.ImportMigrationTaskRequest = exports.DisassociateDiscoveredResourceResult = exports.DisassociateDiscoveredResourceRequest = exports.DisassociateCreatedArtifactResult = exports.DisassociateCreatedArtifactRequest = exports.DescribeMigrationTaskResult = exports.MigrationTask = exports.Task = exports.Status = exports.ResourceAttribute = exports.ResourceAttributeType = exports.DescribeMigrationTaskRequest = exports.DescribeApplicationStateResult = exports.DescribeApplicationStateRequest = exports.DeleteProgressUpdateStreamResult = exports.DeleteProgressUpdateStreamRequest = exports.CreateProgressUpdateStreamResult = exports.CreateProgressUpdateStreamRequest = exports.PolicyErrorException = exports.AssociateDiscoveredResourceResult = exports.AssociateDiscoveredResourceRequest = exports.DiscoveredResource = exports.UnauthorizedOperation = exports.ThrottlingException = exports.ServiceUnavailableException = exports.ResourceNotFoundException = exports.InvalidInputException = exports.InternalServerError = exports.HomeRegionNotSetException = exports.DryRunOperation = exports.AssociateCreatedArtifactResult = exports.AssociateCreatedArtifactRequest = exports.CreatedArtifact = exports.ApplicationState = exports.ApplicationStatus = exports.AccessDeniedException = void 0;
4
+ exports.PutResourceAttributesResult = exports.PutResourceAttributesRequest = exports.NotifyMigrationTaskStateResult = exports.NotifyMigrationTaskStateRequest = exports.NotifyApplicationStateResult = void 0;
5
+ const MigrationHubServiceException_1 = require("./MigrationHubServiceException");
6
+ class AccessDeniedException extends MigrationHubServiceException_1.MigrationHubServiceException {
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
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
4
20
  var ApplicationStatus;
5
21
  (function (ApplicationStatus) {
6
22
  ApplicationStatus["COMPLETED"] = "COMPLETED";
@@ -31,6 +47,119 @@ var AssociateCreatedArtifactResult;
31
47
  ...obj,
32
48
  });
33
49
  })(AssociateCreatedArtifactResult = exports.AssociateCreatedArtifactResult || (exports.AssociateCreatedArtifactResult = {}));
50
+ class DryRunOperation extends MigrationHubServiceException_1.MigrationHubServiceException {
51
+ constructor(opts) {
52
+ super({
53
+ name: "DryRunOperation",
54
+ $fault: "client",
55
+ ...opts,
56
+ });
57
+ this.name = "DryRunOperation";
58
+ this.$fault = "client";
59
+ Object.setPrototypeOf(this, DryRunOperation.prototype);
60
+ this.Message = opts.Message;
61
+ }
62
+ }
63
+ exports.DryRunOperation = DryRunOperation;
64
+ class HomeRegionNotSetException extends MigrationHubServiceException_1.MigrationHubServiceException {
65
+ constructor(opts) {
66
+ super({
67
+ name: "HomeRegionNotSetException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ this.name = "HomeRegionNotSetException";
72
+ this.$fault = "client";
73
+ Object.setPrototypeOf(this, HomeRegionNotSetException.prototype);
74
+ this.Message = opts.Message;
75
+ }
76
+ }
77
+ exports.HomeRegionNotSetException = HomeRegionNotSetException;
78
+ class InternalServerError extends MigrationHubServiceException_1.MigrationHubServiceException {
79
+ constructor(opts) {
80
+ super({
81
+ name: "InternalServerError",
82
+ $fault: "server",
83
+ ...opts,
84
+ });
85
+ this.name = "InternalServerError";
86
+ this.$fault = "server";
87
+ Object.setPrototypeOf(this, InternalServerError.prototype);
88
+ this.Message = opts.Message;
89
+ }
90
+ }
91
+ exports.InternalServerError = InternalServerError;
92
+ class InvalidInputException extends MigrationHubServiceException_1.MigrationHubServiceException {
93
+ constructor(opts) {
94
+ super({
95
+ name: "InvalidInputException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ this.name = "InvalidInputException";
100
+ this.$fault = "client";
101
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
102
+ this.Message = opts.Message;
103
+ }
104
+ }
105
+ exports.InvalidInputException = InvalidInputException;
106
+ class ResourceNotFoundException extends MigrationHubServiceException_1.MigrationHubServiceException {
107
+ constructor(opts) {
108
+ super({
109
+ name: "ResourceNotFoundException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ this.name = "ResourceNotFoundException";
114
+ this.$fault = "client";
115
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
116
+ this.Message = opts.Message;
117
+ }
118
+ }
119
+ exports.ResourceNotFoundException = ResourceNotFoundException;
120
+ class ServiceUnavailableException extends MigrationHubServiceException_1.MigrationHubServiceException {
121
+ constructor(opts) {
122
+ super({
123
+ name: "ServiceUnavailableException",
124
+ $fault: "server",
125
+ ...opts,
126
+ });
127
+ this.name = "ServiceUnavailableException";
128
+ this.$fault = "server";
129
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
130
+ this.Message = opts.Message;
131
+ }
132
+ }
133
+ exports.ServiceUnavailableException = ServiceUnavailableException;
134
+ class ThrottlingException extends MigrationHubServiceException_1.MigrationHubServiceException {
135
+ constructor(opts) {
136
+ super({
137
+ name: "ThrottlingException",
138
+ $fault: "client",
139
+ ...opts,
140
+ });
141
+ this.name = "ThrottlingException";
142
+ this.$fault = "client";
143
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
144
+ this.Message = opts.Message;
145
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
146
+ }
147
+ }
148
+ exports.ThrottlingException = ThrottlingException;
149
+ class UnauthorizedOperation extends MigrationHubServiceException_1.MigrationHubServiceException {
150
+ constructor(opts) {
151
+ super({
152
+ name: "UnauthorizedOperation",
153
+ $fault: "client",
154
+ ...opts,
155
+ });
156
+ this.name = "UnauthorizedOperation";
157
+ this.$fault = "client";
158
+ Object.setPrototypeOf(this, UnauthorizedOperation.prototype);
159
+ this.Message = opts.Message;
160
+ }
161
+ }
162
+ exports.UnauthorizedOperation = UnauthorizedOperation;
34
163
  var DiscoveredResource;
35
164
  (function (DiscoveredResource) {
36
165
  DiscoveredResource.filterSensitiveLog = (obj) => ({
@@ -49,6 +178,20 @@ var AssociateDiscoveredResourceResult;
49
178
  ...obj,
50
179
  });
51
180
  })(AssociateDiscoveredResourceResult = exports.AssociateDiscoveredResourceResult || (exports.AssociateDiscoveredResourceResult = {}));
181
+ class PolicyErrorException extends MigrationHubServiceException_1.MigrationHubServiceException {
182
+ constructor(opts) {
183
+ super({
184
+ name: "PolicyErrorException",
185
+ $fault: "client",
186
+ ...opts,
187
+ });
188
+ this.name = "PolicyErrorException";
189
+ this.$fault = "client";
190
+ Object.setPrototypeOf(this, PolicyErrorException.prototype);
191
+ this.Message = opts.Message;
192
+ }
193
+ }
194
+ exports.PolicyErrorException = PolicyErrorException;
52
195
  var CreateProgressUpdateStreamRequest;
53
196
  (function (CreateProgressUpdateStreamRequest) {
54
197
  CreateProgressUpdateStreamRequest.filterSensitiveLog = (obj) => ({