@aws-sdk/client-migration-hub-refactor-spaces 3.181.0 → 3.183.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 (41) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/MigrationHubRefactorSpaces.js +98 -105
  3. package/dist-es/MigrationHubRefactorSpacesClient.js +22 -28
  4. package/dist-es/commands/CreateApplicationCommand.js +21 -28
  5. package/dist-es/commands/CreateEnvironmentCommand.js +21 -28
  6. package/dist-es/commands/CreateRouteCommand.js +21 -28
  7. package/dist-es/commands/CreateServiceCommand.js +21 -28
  8. package/dist-es/commands/DeleteApplicationCommand.js +21 -28
  9. package/dist-es/commands/DeleteEnvironmentCommand.js +21 -28
  10. package/dist-es/commands/DeleteResourcePolicyCommand.js +21 -28
  11. package/dist-es/commands/DeleteRouteCommand.js +21 -28
  12. package/dist-es/commands/DeleteServiceCommand.js +21 -28
  13. package/dist-es/commands/GetApplicationCommand.js +21 -28
  14. package/dist-es/commands/GetEnvironmentCommand.js +21 -28
  15. package/dist-es/commands/GetResourcePolicyCommand.js +21 -28
  16. package/dist-es/commands/GetRouteCommand.js +21 -28
  17. package/dist-es/commands/GetServiceCommand.js +21 -28
  18. package/dist-es/commands/ListApplicationsCommand.js +21 -28
  19. package/dist-es/commands/ListEnvironmentVpcsCommand.js +21 -28
  20. package/dist-es/commands/ListEnvironmentsCommand.js +21 -28
  21. package/dist-es/commands/ListRoutesCommand.js +21 -28
  22. package/dist-es/commands/ListServicesCommand.js +21 -28
  23. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  24. package/dist-es/commands/PutResourcePolicyCommand.js +21 -28
  25. package/dist-es/commands/TagResourceCommand.js +21 -28
  26. package/dist-es/commands/UntagResourceCommand.js +21 -28
  27. package/dist-es/commands/UpdateRouteCommand.js +21 -28
  28. package/dist-es/endpoints.js +8 -8
  29. package/dist-es/models/MigrationHubRefactorSpacesServiceException.js +5 -10
  30. package/dist-es/models/models_0.js +333 -181
  31. package/dist-es/pagination/ListApplicationsPaginator.js +25 -68
  32. package/dist-es/pagination/ListEnvironmentVpcsPaginator.js +25 -68
  33. package/dist-es/pagination/ListEnvironmentsPaginator.js +25 -68
  34. package/dist-es/pagination/ListRoutesPaginator.js +25 -68
  35. package/dist-es/pagination/ListServicesPaginator.js +25 -68
  36. package/dist-es/protocols/Aws_restJson1.js +2213 -2978
  37. package/dist-es/runtimeConfig.browser.js +26 -12
  38. package/dist-es/runtimeConfig.js +30 -12
  39. package/dist-es/runtimeConfig.native.js +8 -5
  40. package/dist-es/runtimeConfig.shared.js +8 -11
  41. package/package.json +33 -33
@@ -1,19 +1,18 @@
1
- import { __assign, __extends } from "tslib";
2
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
3
2
  import { MigrationHubRefactorSpacesServiceException as __BaseException } from "./MigrationHubRefactorSpacesServiceException";
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.Message = opts.Message;
12
- return _this;
3
+ export class AccessDeniedException extends __BaseException {
4
+ constructor(opts) {
5
+ super({
6
+ name: "AccessDeniedException",
7
+ $fault: "client",
8
+ ...opts,
9
+ });
10
+ this.name = "AccessDeniedException";
11
+ this.$fault = "client";
12
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
+ this.Message = opts.Message;
13
14
  }
14
- return AccessDeniedException;
15
- }(__BaseException));
16
- export { AccessDeniedException };
15
+ }
17
16
  export var ApiGatewayEndpointType;
18
17
  (function (ApiGatewayEndpointType) {
19
18
  ApiGatewayEndpointType["PRIVATE"] = "PRIVATE";
@@ -68,95 +67,95 @@ export var ProxyType;
68
67
  (function (ProxyType) {
69
68
  ProxyType["API_GATEWAY"] = "API_GATEWAY";
70
69
  })(ProxyType || (ProxyType = {}));
71
- var ConflictException = (function (_super) {
72
- __extends(ConflictException, _super);
73
- function ConflictException(opts) {
74
- var _this = _super.call(this, __assign({ name: "ConflictException", $fault: "client" }, opts)) || this;
75
- _this.name = "ConflictException";
76
- _this.$fault = "client";
77
- Object.setPrototypeOf(_this, ConflictException.prototype);
78
- _this.Message = opts.Message;
79
- _this.ResourceId = opts.ResourceId;
80
- _this.ResourceType = opts.ResourceType;
81
- return _this;
70
+ export class ConflictException extends __BaseException {
71
+ constructor(opts) {
72
+ super({
73
+ name: "ConflictException",
74
+ $fault: "client",
75
+ ...opts,
76
+ });
77
+ this.name = "ConflictException";
78
+ this.$fault = "client";
79
+ Object.setPrototypeOf(this, ConflictException.prototype);
80
+ this.Message = opts.Message;
81
+ this.ResourceId = opts.ResourceId;
82
+ this.ResourceType = opts.ResourceType;
82
83
  }
83
- return ConflictException;
84
- }(__BaseException));
85
- export { ConflictException };
86
- var InternalServerException = (function (_super) {
87
- __extends(InternalServerException, _super);
88
- function InternalServerException(opts) {
89
- var _this = _super.call(this, __assign({ name: "InternalServerException", $fault: "server" }, opts)) || this;
90
- _this.name = "InternalServerException";
91
- _this.$fault = "server";
92
- Object.setPrototypeOf(_this, InternalServerException.prototype);
93
- _this.Message = opts.Message;
94
- return _this;
84
+ }
85
+ export class InternalServerException extends __BaseException {
86
+ constructor(opts) {
87
+ super({
88
+ name: "InternalServerException",
89
+ $fault: "server",
90
+ ...opts,
91
+ });
92
+ this.name = "InternalServerException";
93
+ this.$fault = "server";
94
+ Object.setPrototypeOf(this, InternalServerException.prototype);
95
+ this.Message = opts.Message;
95
96
  }
96
- return InternalServerException;
97
- }(__BaseException));
98
- export { InternalServerException };
99
- var ResourceNotFoundException = (function (_super) {
100
- __extends(ResourceNotFoundException, _super);
101
- function ResourceNotFoundException(opts) {
102
- var _this = _super.call(this, __assign({ name: "ResourceNotFoundException", $fault: "client" }, opts)) || this;
103
- _this.name = "ResourceNotFoundException";
104
- _this.$fault = "client";
105
- Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
106
- _this.Message = opts.Message;
107
- _this.ResourceId = opts.ResourceId;
108
- _this.ResourceType = opts.ResourceType;
109
- return _this;
97
+ }
98
+ export class ResourceNotFoundException extends __BaseException {
99
+ constructor(opts) {
100
+ super({
101
+ name: "ResourceNotFoundException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ this.name = "ResourceNotFoundException";
106
+ this.$fault = "client";
107
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
108
+ this.Message = opts.Message;
109
+ this.ResourceId = opts.ResourceId;
110
+ this.ResourceType = opts.ResourceType;
110
111
  }
111
- return ResourceNotFoundException;
112
- }(__BaseException));
113
- export { ResourceNotFoundException };
114
- var ServiceQuotaExceededException = (function (_super) {
115
- __extends(ServiceQuotaExceededException, _super);
116
- function ServiceQuotaExceededException(opts) {
117
- var _this = _super.call(this, __assign({ name: "ServiceQuotaExceededException", $fault: "client" }, opts)) || this;
118
- _this.name = "ServiceQuotaExceededException";
119
- _this.$fault = "client";
120
- Object.setPrototypeOf(_this, ServiceQuotaExceededException.prototype);
121
- _this.Message = opts.Message;
122
- _this.ResourceId = opts.ResourceId;
123
- _this.ResourceType = opts.ResourceType;
124
- _this.QuotaCode = opts.QuotaCode;
125
- _this.ServiceCode = opts.ServiceCode;
126
- return _this;
112
+ }
113
+ export class ServiceQuotaExceededException extends __BaseException {
114
+ constructor(opts) {
115
+ super({
116
+ name: "ServiceQuotaExceededException",
117
+ $fault: "client",
118
+ ...opts,
119
+ });
120
+ this.name = "ServiceQuotaExceededException";
121
+ this.$fault = "client";
122
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
123
+ this.Message = opts.Message;
124
+ this.ResourceId = opts.ResourceId;
125
+ this.ResourceType = opts.ResourceType;
126
+ this.QuotaCode = opts.QuotaCode;
127
+ this.ServiceCode = opts.ServiceCode;
127
128
  }
128
- return ServiceQuotaExceededException;
129
- }(__BaseException));
130
- export { ServiceQuotaExceededException };
131
- var ThrottlingException = (function (_super) {
132
- __extends(ThrottlingException, _super);
133
- function ThrottlingException(opts) {
134
- var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "client" }, opts)) || this;
135
- _this.name = "ThrottlingException";
136
- _this.$fault = "client";
137
- Object.setPrototypeOf(_this, ThrottlingException.prototype);
138
- _this.Message = opts.Message;
139
- _this.QuotaCode = opts.QuotaCode;
140
- _this.ServiceCode = opts.ServiceCode;
141
- _this.RetryAfterSeconds = opts.RetryAfterSeconds;
142
- return _this;
129
+ }
130
+ export class ThrottlingException extends __BaseException {
131
+ constructor(opts) {
132
+ super({
133
+ name: "ThrottlingException",
134
+ $fault: "client",
135
+ ...opts,
136
+ });
137
+ this.name = "ThrottlingException";
138
+ this.$fault = "client";
139
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
140
+ this.Message = opts.Message;
141
+ this.QuotaCode = opts.QuotaCode;
142
+ this.ServiceCode = opts.ServiceCode;
143
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
143
144
  }
144
- return ThrottlingException;
145
- }(__BaseException));
146
- export { ThrottlingException };
147
- var ValidationException = (function (_super) {
148
- __extends(ValidationException, _super);
149
- function ValidationException(opts) {
150
- var _this = _super.call(this, __assign({ name: "ValidationException", $fault: "client" }, opts)) || this;
151
- _this.name = "ValidationException";
152
- _this.$fault = "client";
153
- Object.setPrototypeOf(_this, ValidationException.prototype);
154
- _this.Message = opts.Message;
155
- return _this;
145
+ }
146
+ export class ValidationException extends __BaseException {
147
+ constructor(opts) {
148
+ super({
149
+ name: "ValidationException",
150
+ $fault: "client",
151
+ ...opts,
152
+ });
153
+ this.name = "ValidationException";
154
+ this.$fault = "client";
155
+ Object.setPrototypeOf(this, ValidationException.prototype);
156
+ this.Message = opts.Message;
156
157
  }
157
- return ValidationException;
158
- }(__BaseException));
159
- export { ValidationException };
158
+ }
160
159
  export var NetworkFabricType;
161
160
  (function (NetworkFabricType) {
162
161
  NetworkFabricType["TRANSIT_GATEWAY"] = "TRANSIT_GATEWAY";
@@ -209,89 +208,242 @@ export var ServiceState;
209
208
  ServiceState["DELETING"] = "DELETING";
210
209
  ServiceState["FAILED"] = "FAILED";
211
210
  })(ServiceState || (ServiceState = {}));
212
- var InvalidResourcePolicyException = (function (_super) {
213
- __extends(InvalidResourcePolicyException, _super);
214
- function InvalidResourcePolicyException(opts) {
215
- var _this = _super.call(this, __assign({ name: "InvalidResourcePolicyException", $fault: "client" }, opts)) || this;
216
- _this.name = "InvalidResourcePolicyException";
217
- _this.$fault = "client";
218
- Object.setPrototypeOf(_this, InvalidResourcePolicyException.prototype);
219
- _this.Message = opts.Message;
220
- return _this;
211
+ export class InvalidResourcePolicyException extends __BaseException {
212
+ constructor(opts) {
213
+ super({
214
+ name: "InvalidResourcePolicyException",
215
+ $fault: "client",
216
+ ...opts,
217
+ });
218
+ this.name = "InvalidResourcePolicyException";
219
+ this.$fault = "client";
220
+ Object.setPrototypeOf(this, InvalidResourcePolicyException.prototype);
221
+ this.Message = opts.Message;
221
222
  }
222
- return InvalidResourcePolicyException;
223
- }(__BaseException));
224
- export { InvalidResourcePolicyException };
225
- export var ApiGatewayProxyConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
226
- export var ApiGatewayProxyInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
227
- export var ApiGatewayProxySummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
228
- export var ErrorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
229
- export var ApplicationSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
230
- export var CreateApplicationRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
231
- export var CreateApplicationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
232
- export var CreateEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
233
- export var CreateEnvironmentResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
234
- export var DefaultRouteInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
235
- export var UriPathRouteInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
236
- export var CreateRouteRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
237
- export var CreateRouteResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
238
- export var LambdaEndpointInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
239
- export var UrlEndpointInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
240
- export var CreateServiceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
241
- export var CreateServiceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
242
- export var DeleteApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
243
- export var DeleteApplicationResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
244
- export var DeleteEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
245
- export var DeleteEnvironmentResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
246
- export var DeleteResourcePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
247
- export var DeleteResourcePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
248
- export var DeleteRouteRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
249
- export var DeleteRouteResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
250
- export var DeleteServiceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
251
- export var DeleteServiceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
252
- export var EnvironmentSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
253
- export var EnvironmentVpcFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
254
- export var GetApplicationRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
255
- export var GetApplicationResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
256
- export var GetEnvironmentRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
257
- export var GetEnvironmentResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
258
- export var GetResourcePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
- export var GetResourcePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
260
- export var GetRouteRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
261
- export var GetRouteResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
262
- export var GetServiceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
263
- export var LambdaEndpointConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
264
- export var UrlEndpointConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
265
- export var GetServiceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
266
- export var LambdaEndpointSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
267
- export var ListApplicationsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
268
- export var ListApplicationsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ApplicationSummaryList && {
269
- ApplicationSummaryList: obj.ApplicationSummaryList.map(function (item) { return ApplicationSummaryFilterSensitiveLog(item); }),
270
- }))); };
271
- export var ListEnvironmentsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
272
- export var ListEnvironmentsResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.EnvironmentSummaryList && {
273
- EnvironmentSummaryList: obj.EnvironmentSummaryList.map(function (item) { return EnvironmentSummaryFilterSensitiveLog(item); }),
274
- }))); };
275
- export var ListEnvironmentVpcsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
276
- export var ListEnvironmentVpcsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
277
- export var ListRoutesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
278
- export var RouteSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
279
- export var ListRoutesResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.RouteSummaryList && {
280
- RouteSummaryList: obj.RouteSummaryList.map(function (item) { return RouteSummaryFilterSensitiveLog(item); }),
281
- }))); };
282
- export var ListServicesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
283
- export var UrlEndpointSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
284
- export var ServiceSummaryFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
285
- export var ListServicesResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.ServiceSummaryList && {
286
- ServiceSummaryList: obj.ServiceSummaryList.map(function (item) { return ServiceSummaryFilterSensitiveLog(item); }),
287
- }))); };
288
- export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
289
- export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
290
- export var PutResourcePolicyRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
291
- export var PutResourcePolicyResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
292
- export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: SENSITIVE_STRING }))); };
293
- export var TagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
294
- export var UntagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.TagKeys && { TagKeys: SENSITIVE_STRING }))); };
295
- export var UntagResourceResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
296
- export var UpdateRouteRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
297
- export var UpdateRouteResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
223
+ }
224
+ export const ApiGatewayProxyConfigFilterSensitiveLog = (obj) => ({
225
+ ...obj,
226
+ });
227
+ export const ApiGatewayProxyInputFilterSensitiveLog = (obj) => ({
228
+ ...obj,
229
+ });
230
+ export const ApiGatewayProxySummaryFilterSensitiveLog = (obj) => ({
231
+ ...obj,
232
+ });
233
+ export const ErrorResponseFilterSensitiveLog = (obj) => ({
234
+ ...obj,
235
+ });
236
+ export const ApplicationSummaryFilterSensitiveLog = (obj) => ({
237
+ ...obj,
238
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
239
+ });
240
+ export const CreateApplicationRequestFilterSensitiveLog = (obj) => ({
241
+ ...obj,
242
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
243
+ });
244
+ export const CreateApplicationResponseFilterSensitiveLog = (obj) => ({
245
+ ...obj,
246
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
247
+ });
248
+ export const CreateEnvironmentRequestFilterSensitiveLog = (obj) => ({
249
+ ...obj,
250
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
251
+ });
252
+ export const CreateEnvironmentResponseFilterSensitiveLog = (obj) => ({
253
+ ...obj,
254
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
255
+ });
256
+ export const DefaultRouteInputFilterSensitiveLog = (obj) => ({
257
+ ...obj,
258
+ });
259
+ export const UriPathRouteInputFilterSensitiveLog = (obj) => ({
260
+ ...obj,
261
+ });
262
+ export const CreateRouteRequestFilterSensitiveLog = (obj) => ({
263
+ ...obj,
264
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
265
+ });
266
+ export const CreateRouteResponseFilterSensitiveLog = (obj) => ({
267
+ ...obj,
268
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
269
+ });
270
+ export const LambdaEndpointInputFilterSensitiveLog = (obj) => ({
271
+ ...obj,
272
+ });
273
+ export const UrlEndpointInputFilterSensitiveLog = (obj) => ({
274
+ ...obj,
275
+ });
276
+ export const CreateServiceRequestFilterSensitiveLog = (obj) => ({
277
+ ...obj,
278
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
279
+ });
280
+ export const CreateServiceResponseFilterSensitiveLog = (obj) => ({
281
+ ...obj,
282
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
283
+ });
284
+ export const DeleteApplicationRequestFilterSensitiveLog = (obj) => ({
285
+ ...obj,
286
+ });
287
+ export const DeleteApplicationResponseFilterSensitiveLog = (obj) => ({
288
+ ...obj,
289
+ });
290
+ export const DeleteEnvironmentRequestFilterSensitiveLog = (obj) => ({
291
+ ...obj,
292
+ });
293
+ export const DeleteEnvironmentResponseFilterSensitiveLog = (obj) => ({
294
+ ...obj,
295
+ });
296
+ export const DeleteResourcePolicyRequestFilterSensitiveLog = (obj) => ({
297
+ ...obj,
298
+ });
299
+ export const DeleteResourcePolicyResponseFilterSensitiveLog = (obj) => ({
300
+ ...obj,
301
+ });
302
+ export const DeleteRouteRequestFilterSensitiveLog = (obj) => ({
303
+ ...obj,
304
+ });
305
+ export const DeleteRouteResponseFilterSensitiveLog = (obj) => ({
306
+ ...obj,
307
+ });
308
+ export const DeleteServiceRequestFilterSensitiveLog = (obj) => ({
309
+ ...obj,
310
+ });
311
+ export const DeleteServiceResponseFilterSensitiveLog = (obj) => ({
312
+ ...obj,
313
+ });
314
+ export const EnvironmentSummaryFilterSensitiveLog = (obj) => ({
315
+ ...obj,
316
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
317
+ });
318
+ export const EnvironmentVpcFilterSensitiveLog = (obj) => ({
319
+ ...obj,
320
+ });
321
+ export const GetApplicationRequestFilterSensitiveLog = (obj) => ({
322
+ ...obj,
323
+ });
324
+ export const GetApplicationResponseFilterSensitiveLog = (obj) => ({
325
+ ...obj,
326
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
327
+ });
328
+ export const GetEnvironmentRequestFilterSensitiveLog = (obj) => ({
329
+ ...obj,
330
+ });
331
+ export const GetEnvironmentResponseFilterSensitiveLog = (obj) => ({
332
+ ...obj,
333
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
334
+ });
335
+ export const GetResourcePolicyRequestFilterSensitiveLog = (obj) => ({
336
+ ...obj,
337
+ });
338
+ export const GetResourcePolicyResponseFilterSensitiveLog = (obj) => ({
339
+ ...obj,
340
+ });
341
+ export const GetRouteRequestFilterSensitiveLog = (obj) => ({
342
+ ...obj,
343
+ });
344
+ export const GetRouteResponseFilterSensitiveLog = (obj) => ({
345
+ ...obj,
346
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
347
+ });
348
+ export const GetServiceRequestFilterSensitiveLog = (obj) => ({
349
+ ...obj,
350
+ });
351
+ export const LambdaEndpointConfigFilterSensitiveLog = (obj) => ({
352
+ ...obj,
353
+ });
354
+ export const UrlEndpointConfigFilterSensitiveLog = (obj) => ({
355
+ ...obj,
356
+ });
357
+ export const GetServiceResponseFilterSensitiveLog = (obj) => ({
358
+ ...obj,
359
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
360
+ });
361
+ export const LambdaEndpointSummaryFilterSensitiveLog = (obj) => ({
362
+ ...obj,
363
+ });
364
+ export const ListApplicationsRequestFilterSensitiveLog = (obj) => ({
365
+ ...obj,
366
+ });
367
+ export const ListApplicationsResponseFilterSensitiveLog = (obj) => ({
368
+ ...obj,
369
+ ...(obj.ApplicationSummaryList && {
370
+ ApplicationSummaryList: obj.ApplicationSummaryList.map((item) => ApplicationSummaryFilterSensitiveLog(item)),
371
+ }),
372
+ });
373
+ export const ListEnvironmentsRequestFilterSensitiveLog = (obj) => ({
374
+ ...obj,
375
+ });
376
+ export const ListEnvironmentsResponseFilterSensitiveLog = (obj) => ({
377
+ ...obj,
378
+ ...(obj.EnvironmentSummaryList && {
379
+ EnvironmentSummaryList: obj.EnvironmentSummaryList.map((item) => EnvironmentSummaryFilterSensitiveLog(item)),
380
+ }),
381
+ });
382
+ export const ListEnvironmentVpcsRequestFilterSensitiveLog = (obj) => ({
383
+ ...obj,
384
+ });
385
+ export const ListEnvironmentVpcsResponseFilterSensitiveLog = (obj) => ({
386
+ ...obj,
387
+ });
388
+ export const ListRoutesRequestFilterSensitiveLog = (obj) => ({
389
+ ...obj,
390
+ });
391
+ export const RouteSummaryFilterSensitiveLog = (obj) => ({
392
+ ...obj,
393
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
394
+ });
395
+ export const ListRoutesResponseFilterSensitiveLog = (obj) => ({
396
+ ...obj,
397
+ ...(obj.RouteSummaryList && {
398
+ RouteSummaryList: obj.RouteSummaryList.map((item) => RouteSummaryFilterSensitiveLog(item)),
399
+ }),
400
+ });
401
+ export const ListServicesRequestFilterSensitiveLog = (obj) => ({
402
+ ...obj,
403
+ });
404
+ export const UrlEndpointSummaryFilterSensitiveLog = (obj) => ({
405
+ ...obj,
406
+ });
407
+ export const ServiceSummaryFilterSensitiveLog = (obj) => ({
408
+ ...obj,
409
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
410
+ });
411
+ export const ListServicesResponseFilterSensitiveLog = (obj) => ({
412
+ ...obj,
413
+ ...(obj.ServiceSummaryList && {
414
+ ServiceSummaryList: obj.ServiceSummaryList.map((item) => ServiceSummaryFilterSensitiveLog(item)),
415
+ }),
416
+ });
417
+ export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
418
+ ...obj,
419
+ });
420
+ export const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
421
+ ...obj,
422
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
423
+ });
424
+ export const PutResourcePolicyRequestFilterSensitiveLog = (obj) => ({
425
+ ...obj,
426
+ });
427
+ export const PutResourcePolicyResponseFilterSensitiveLog = (obj) => ({
428
+ ...obj,
429
+ });
430
+ export const TagResourceRequestFilterSensitiveLog = (obj) => ({
431
+ ...obj,
432
+ ...(obj.Tags && { Tags: SENSITIVE_STRING }),
433
+ });
434
+ export const TagResourceResponseFilterSensitiveLog = (obj) => ({
435
+ ...obj,
436
+ });
437
+ export const UntagResourceRequestFilterSensitiveLog = (obj) => ({
438
+ ...obj,
439
+ ...(obj.TagKeys && { TagKeys: SENSITIVE_STRING }),
440
+ });
441
+ export const UntagResourceResponseFilterSensitiveLog = (obj) => ({
442
+ ...obj,
443
+ });
444
+ export const UpdateRouteRequestFilterSensitiveLog = (obj) => ({
445
+ ...obj,
446
+ });
447
+ export const UpdateRouteResponseFilterSensitiveLog = (obj) => ({
448
+ ...obj,
449
+ });
@@ -1,75 +1,32 @@
1
- import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
2
1
  import { ListApplicationsCommand, } from "../commands/ListApplicationsCommand";
3
2
  import { MigrationHubRefactorSpaces } from "../MigrationHubRefactorSpaces";
4
3
  import { MigrationHubRefactorSpacesClient } from "../MigrationHubRefactorSpacesClient";
5
- var makePagedClientRequest = function (client, input) {
6
- var args = [];
7
- for (var _i = 2; _i < arguments.length; _i++) {
8
- args[_i - 2] = arguments[_i];
9
- }
10
- return __awaiter(void 0, void 0, void 0, function () {
11
- return __generator(this, function (_a) {
12
- switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListApplicationsCommand(input)], __read(args), false))];
14
- case 1: return [2, _a.sent()];
15
- }
16
- });
17
- });
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ListApplicationsCommand(input), ...args);
18
6
  };
19
- var makePagedRequest = function (client, input) {
20
- var args = [];
21
- for (var _i = 2; _i < arguments.length; _i++) {
22
- args[_i - 2] = arguments[_i];
23
- }
24
- return __awaiter(void 0, void 0, void 0, function () {
25
- return __generator(this, function (_a) {
26
- switch (_a.label) {
27
- case 0: return [4, client.listApplications.apply(client, __spreadArray([input], __read(args), false))];
28
- case 1: return [2, _a.sent()];
29
- }
30
- });
31
- });
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.listApplications(input, ...args);
32
9
  };
33
- export function paginateListApplications(config, input) {
34
- var additionalArguments = [];
35
- for (var _i = 2; _i < arguments.length; _i++) {
36
- additionalArguments[_i - 2] = arguments[_i];
10
+ export async function* paginateListApplications(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.NextToken = token;
16
+ input["MaxResults"] = config.pageSize;
17
+ if (config.client instanceof MigrationHubRefactorSpaces) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof MigrationHubRefactorSpacesClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected MigrationHubRefactorSpaces | MigrationHubRefactorSpacesClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.NextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
37
30
  }
38
- return __asyncGenerator(this, arguments, function paginateListApplications_1() {
39
- var token, hasNext, page, prevToken;
40
- return __generator(this, function (_a) {
41
- switch (_a.label) {
42
- case 0:
43
- token = config.startingToken || undefined;
44
- hasNext = true;
45
- _a.label = 1;
46
- case 1:
47
- if (!hasNext) return [3, 9];
48
- input.NextToken = token;
49
- input["MaxResults"] = config.pageSize;
50
- if (!(config.client instanceof MigrationHubRefactorSpaces)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
- case 2:
53
- page = _a.sent();
54
- return [3, 6];
55
- case 3:
56
- if (!(config.client instanceof MigrationHubRefactorSpacesClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
- case 4:
59
- page = _a.sent();
60
- return [3, 6];
61
- case 5: throw new Error("Invalid client, expected MigrationHubRefactorSpaces | MigrationHubRefactorSpacesClient");
62
- case 6: return [4, __await(page)];
63
- case 7: return [4, _a.sent()];
64
- case 8:
65
- _a.sent();
66
- prevToken = token;
67
- token = page.NextToken;
68
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
69
- return [3, 1];
70
- case 9: return [4, __await(undefined)];
71
- case 10: return [2, _a.sent()];
72
- }
73
- });
74
- });
31
+ return undefined;
75
32
  }