@aws-sdk/client-migration-hub-refactor-spaces 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-migration-hub-refactor-spaces
package/dist-cjs/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MigrationHubRefactorSpacesServiceException = void 0;
3
4
  const tslib_1 = require("tslib");
4
5
  tslib_1.__exportStar(require("./MigrationHubRefactorSpaces"), exports);
5
6
  tslib_1.__exportStar(require("./MigrationHubRefactorSpacesClient"), 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 MigrationHubRefactorSpacesServiceException_1 = require("./models/MigrationHubRefactorSpacesServiceException");
11
+ Object.defineProperty(exports, "MigrationHubRefactorSpacesServiceException", { enumerable: true, get: function () { return MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException; } });
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MigrationHubRefactorSpacesServiceException = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
5
+ class MigrationHubRefactorSpacesServiceException extends smithy_client_1.ServiceException {
6
+ constructor(options) {
7
+ super(options);
8
+ Object.setPrototypeOf(this, MigrationHubRefactorSpacesServiceException.prototype);
9
+ }
10
+ }
11
+ exports.MigrationHubRefactorSpacesServiceException = MigrationHubRefactorSpacesServiceException;
@@ -1,8 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServiceRequest = exports.GetRouteResponse = exports.GetRouteRequest = exports.GetResourcePolicyResponse = exports.GetResourcePolicyRequest = exports.GetEnvironmentResponse = exports.GetEnvironmentRequest = exports.GetApplicationResponse = exports.GetApplicationRequest = exports.EnvironmentVpc = exports.EnvironmentSummary = exports.DeleteServiceResponse = exports.DeleteServiceRequest = exports.DeleteRouteResponse = exports.DeleteRouteRequest = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteEnvironmentResponse = exports.DeleteEnvironmentRequest = exports.DeleteApplicationResponse = exports.DeleteApplicationRequest = exports.CreateServiceResponse = exports.ServiceState = exports.CreateServiceRequest = exports.UrlEndpointInput = exports.LambdaEndpointInput = exports.ServiceEndpointType = exports.CreateRouteResponse = exports.RouteState = exports.CreateRouteRequest = exports.UriPathRouteInput = exports.HttpMethod = exports.RouteActivationState = exports.RouteType = exports.CreateEnvironmentResponse = exports.EnvironmentState = exports.CreateEnvironmentRequest = exports.NetworkFabricType = exports.CreateApplicationResponse = exports.CreateApplicationRequest = exports.ApplicationSummary = exports.ProxyType = exports.ErrorResponse = exports.ErrorResourceType = exports.ErrorCode = exports.ApplicationState = exports.ApiGatewayProxySummary = exports.ApiGatewayProxyInput = exports.ApiGatewayProxyConfig = exports.ApiGatewayEndpointType = void 0;
4
- exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListServicesResponse = exports.ServiceSummary = exports.UrlEndpointSummary = exports.ListServicesRequest = exports.ListRoutesResponse = exports.RouteSummary = exports.ListRoutesRequest = exports.ListEnvironmentVpcsResponse = exports.ListEnvironmentVpcsRequest = exports.ListEnvironmentsResponse = exports.ListEnvironmentsRequest = exports.ListApplicationsResponse = exports.ListApplicationsRequest = exports.LambdaEndpointSummary = exports.GetServiceResponse = exports.UrlEndpointConfig = exports.LambdaEndpointConfig = void 0;
3
+ exports.GetApplicationResponse = exports.GetApplicationRequest = exports.EnvironmentVpc = exports.EnvironmentSummary = exports.DeleteServiceResponse = exports.DeleteServiceRequest = exports.DeleteRouteResponse = exports.DeleteRouteRequest = exports.DeleteResourcePolicyResponse = exports.DeleteResourcePolicyRequest = exports.DeleteEnvironmentResponse = exports.DeleteEnvironmentRequest = exports.DeleteApplicationResponse = exports.DeleteApplicationRequest = exports.CreateServiceResponse = exports.ServiceState = exports.CreateServiceRequest = exports.UrlEndpointInput = exports.LambdaEndpointInput = exports.ServiceEndpointType = exports.CreateRouteResponse = exports.RouteState = exports.CreateRouteRequest = exports.UriPathRouteInput = exports.HttpMethod = exports.RouteActivationState = exports.RouteType = exports.CreateEnvironmentResponse = exports.EnvironmentState = exports.CreateEnvironmentRequest = exports.NetworkFabricType = exports.ValidationException = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.ResourceNotFoundException = exports.InternalServerException = exports.CreateApplicationResponse = exports.CreateApplicationRequest = exports.ConflictException = exports.ApplicationSummary = exports.ProxyType = exports.ErrorResponse = exports.ErrorResourceType = exports.ErrorCode = exports.ApplicationState = exports.ApiGatewayProxySummary = exports.ApiGatewayProxyInput = exports.ApiGatewayProxyConfig = exports.ApiGatewayEndpointType = exports.AccessDeniedException = void 0;
4
+ exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutResourcePolicyResponse = exports.PutResourcePolicyRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListServicesResponse = exports.ServiceSummary = exports.UrlEndpointSummary = exports.ListServicesRequest = exports.ListRoutesResponse = exports.RouteSummary = exports.ListRoutesRequest = exports.ListEnvironmentVpcsResponse = exports.ListEnvironmentVpcsRequest = exports.ListEnvironmentsResponse = exports.ListEnvironmentsRequest = exports.ListApplicationsResponse = exports.ListApplicationsRequest = exports.LambdaEndpointSummary = exports.InvalidResourcePolicyException = exports.GetServiceResponse = exports.UrlEndpointConfig = exports.LambdaEndpointConfig = exports.GetServiceRequest = exports.GetRouteResponse = exports.GetRouteRequest = exports.GetResourcePolicyResponse = exports.GetResourcePolicyRequest = exports.GetEnvironmentResponse = exports.GetEnvironmentRequest = void 0;
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const MigrationHubRefactorSpacesServiceException_1 = require("./MigrationHubRefactorSpacesServiceException");
7
+ class AccessDeniedException extends MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException {
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ this.name = "AccessDeniedException";
15
+ this.$fault = "client";
16
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
17
+ this.Message = opts.Message;
18
+ }
19
+ }
20
+ exports.AccessDeniedException = AccessDeniedException;
6
21
  var ApiGatewayEndpointType;
7
22
  (function (ApiGatewayEndpointType) {
8
23
  ApiGatewayEndpointType["PRIVATE"] = "PRIVATE";
@@ -88,6 +103,22 @@ var ApplicationSummary;
88
103
  ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
89
104
  });
90
105
  })(ApplicationSummary = exports.ApplicationSummary || (exports.ApplicationSummary = {}));
106
+ class ConflictException extends MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException {
107
+ constructor(opts) {
108
+ super({
109
+ name: "ConflictException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ this.name = "ConflictException";
114
+ this.$fault = "client";
115
+ Object.setPrototypeOf(this, ConflictException.prototype);
116
+ this.Message = opts.Message;
117
+ this.ResourceId = opts.ResourceId;
118
+ this.ResourceType = opts.ResourceType;
119
+ }
120
+ }
121
+ exports.ConflictException = ConflictException;
91
122
  var CreateApplicationRequest;
92
123
  (function (CreateApplicationRequest) {
93
124
  CreateApplicationRequest.filterSensitiveLog = (obj) => ({
@@ -102,6 +133,85 @@ var CreateApplicationResponse;
102
133
  ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
103
134
  });
104
135
  })(CreateApplicationResponse = exports.CreateApplicationResponse || (exports.CreateApplicationResponse = {}));
136
+ class InternalServerException extends MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException {
137
+ constructor(opts) {
138
+ super({
139
+ name: "InternalServerException",
140
+ $fault: "server",
141
+ ...opts,
142
+ });
143
+ this.name = "InternalServerException";
144
+ this.$fault = "server";
145
+ Object.setPrototypeOf(this, InternalServerException.prototype);
146
+ this.Message = opts.Message;
147
+ }
148
+ }
149
+ exports.InternalServerException = InternalServerException;
150
+ class ResourceNotFoundException extends MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException {
151
+ constructor(opts) {
152
+ super({
153
+ name: "ResourceNotFoundException",
154
+ $fault: "client",
155
+ ...opts,
156
+ });
157
+ this.name = "ResourceNotFoundException";
158
+ this.$fault = "client";
159
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
160
+ this.Message = opts.Message;
161
+ this.ResourceId = opts.ResourceId;
162
+ this.ResourceType = opts.ResourceType;
163
+ }
164
+ }
165
+ exports.ResourceNotFoundException = ResourceNotFoundException;
166
+ class ServiceQuotaExceededException extends MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException {
167
+ constructor(opts) {
168
+ super({
169
+ name: "ServiceQuotaExceededException",
170
+ $fault: "client",
171
+ ...opts,
172
+ });
173
+ this.name = "ServiceQuotaExceededException";
174
+ this.$fault = "client";
175
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
176
+ this.Message = opts.Message;
177
+ this.ResourceId = opts.ResourceId;
178
+ this.ResourceType = opts.ResourceType;
179
+ this.QuotaCode = opts.QuotaCode;
180
+ this.ServiceCode = opts.ServiceCode;
181
+ }
182
+ }
183
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
184
+ class ThrottlingException extends MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException {
185
+ constructor(opts) {
186
+ super({
187
+ name: "ThrottlingException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ this.name = "ThrottlingException";
192
+ this.$fault = "client";
193
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
194
+ this.Message = opts.Message;
195
+ this.QuotaCode = opts.QuotaCode;
196
+ this.ServiceCode = opts.ServiceCode;
197
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
198
+ }
199
+ }
200
+ exports.ThrottlingException = ThrottlingException;
201
+ class ValidationException extends MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException {
202
+ constructor(opts) {
203
+ super({
204
+ name: "ValidationException",
205
+ $fault: "client",
206
+ ...opts,
207
+ });
208
+ this.name = "ValidationException";
209
+ this.$fault = "client";
210
+ Object.setPrototypeOf(this, ValidationException.prototype);
211
+ this.Message = opts.Message;
212
+ }
213
+ }
214
+ exports.ValidationException = ValidationException;
105
215
  var NetworkFabricType;
106
216
  (function (NetworkFabricType) {
107
217
  NetworkFabricType["TRANSIT_GATEWAY"] = "TRANSIT_GATEWAY";
@@ -362,6 +472,20 @@ var GetServiceResponse;
362
472
  ...(obj.Tags && { Tags: smithy_client_1.SENSITIVE_STRING }),
363
473
  });
364
474
  })(GetServiceResponse = exports.GetServiceResponse || (exports.GetServiceResponse = {}));
475
+ class InvalidResourcePolicyException extends MigrationHubRefactorSpacesServiceException_1.MigrationHubRefactorSpacesServiceException {
476
+ constructor(opts) {
477
+ super({
478
+ name: "InvalidResourcePolicyException",
479
+ $fault: "client",
480
+ ...opts,
481
+ });
482
+ this.name = "InvalidResourcePolicyException";
483
+ this.$fault = "client";
484
+ Object.setPrototypeOf(this, InvalidResourcePolicyException.prototype);
485
+ this.Message = opts.Message;
486
+ }
487
+ }
488
+ exports.InvalidResourcePolicyException = InvalidResourcePolicyException;
365
489
  var LambdaEndpointSummary;
366
490
  (function (LambdaEndpointSummary) {
367
491
  LambdaEndpointSummary.filterSensitiveLog = (obj) => ({