@aws-sdk/client-migration-hub-refactor-spaces 3.901.0 → 3.906.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 (2) hide show
  1. package/dist-cjs/index.js +2004 -2221
  2. package/package.json +5 -5
package/dist-cjs/index.js CHANGED
@@ -1,2261 +1,2044 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- AccessDeniedException: () => AccessDeniedException,
25
- ApiGatewayEndpointType: () => ApiGatewayEndpointType,
26
- ApplicationState: () => ApplicationState,
27
- ApplicationSummaryFilterSensitiveLog: () => ApplicationSummaryFilterSensitiveLog,
28
- ConflictException: () => ConflictException,
29
- CreateApplicationCommand: () => CreateApplicationCommand,
30
- CreateApplicationRequestFilterSensitiveLog: () => CreateApplicationRequestFilterSensitiveLog,
31
- CreateApplicationResponseFilterSensitiveLog: () => CreateApplicationResponseFilterSensitiveLog,
32
- CreateEnvironmentCommand: () => CreateEnvironmentCommand,
33
- CreateEnvironmentRequestFilterSensitiveLog: () => CreateEnvironmentRequestFilterSensitiveLog,
34
- CreateEnvironmentResponseFilterSensitiveLog: () => CreateEnvironmentResponseFilterSensitiveLog,
35
- CreateRouteCommand: () => CreateRouteCommand,
36
- CreateRouteRequestFilterSensitiveLog: () => CreateRouteRequestFilterSensitiveLog,
37
- CreateRouteResponseFilterSensitiveLog: () => CreateRouteResponseFilterSensitiveLog,
38
- CreateServiceCommand: () => CreateServiceCommand,
39
- CreateServiceRequestFilterSensitiveLog: () => CreateServiceRequestFilterSensitiveLog,
40
- CreateServiceResponseFilterSensitiveLog: () => CreateServiceResponseFilterSensitiveLog,
41
- DeleteApplicationCommand: () => DeleteApplicationCommand,
42
- DeleteEnvironmentCommand: () => DeleteEnvironmentCommand,
43
- DeleteResourcePolicyCommand: () => DeleteResourcePolicyCommand,
44
- DeleteRouteCommand: () => DeleteRouteCommand,
45
- DeleteServiceCommand: () => DeleteServiceCommand,
46
- EnvironmentState: () => EnvironmentState,
47
- EnvironmentSummaryFilterSensitiveLog: () => EnvironmentSummaryFilterSensitiveLog,
48
- ErrorCode: () => ErrorCode,
49
- ErrorResourceType: () => ErrorResourceType,
50
- GetApplicationCommand: () => GetApplicationCommand,
51
- GetApplicationResponseFilterSensitiveLog: () => GetApplicationResponseFilterSensitiveLog,
52
- GetEnvironmentCommand: () => GetEnvironmentCommand,
53
- GetEnvironmentResponseFilterSensitiveLog: () => GetEnvironmentResponseFilterSensitiveLog,
54
- GetResourcePolicyCommand: () => GetResourcePolicyCommand,
55
- GetRouteCommand: () => GetRouteCommand,
56
- GetRouteResponseFilterSensitiveLog: () => GetRouteResponseFilterSensitiveLog,
57
- GetServiceCommand: () => GetServiceCommand,
58
- GetServiceResponseFilterSensitiveLog: () => GetServiceResponseFilterSensitiveLog,
59
- HttpMethod: () => HttpMethod,
60
- InternalServerException: () => InternalServerException,
61
- InvalidResourcePolicyException: () => InvalidResourcePolicyException,
62
- ListApplicationsCommand: () => ListApplicationsCommand,
63
- ListApplicationsResponseFilterSensitiveLog: () => ListApplicationsResponseFilterSensitiveLog,
64
- ListEnvironmentVpcsCommand: () => ListEnvironmentVpcsCommand,
65
- ListEnvironmentsCommand: () => ListEnvironmentsCommand,
66
- ListEnvironmentsResponseFilterSensitiveLog: () => ListEnvironmentsResponseFilterSensitiveLog,
67
- ListRoutesCommand: () => ListRoutesCommand,
68
- ListRoutesResponseFilterSensitiveLog: () => ListRoutesResponseFilterSensitiveLog,
69
- ListServicesCommand: () => ListServicesCommand,
70
- ListServicesResponseFilterSensitiveLog: () => ListServicesResponseFilterSensitiveLog,
71
- ListTagsForResourceCommand: () => ListTagsForResourceCommand,
72
- ListTagsForResourceResponseFilterSensitiveLog: () => ListTagsForResourceResponseFilterSensitiveLog,
73
- MigrationHubRefactorSpaces: () => MigrationHubRefactorSpaces,
74
- MigrationHubRefactorSpacesClient: () => MigrationHubRefactorSpacesClient,
75
- MigrationHubRefactorSpacesServiceException: () => MigrationHubRefactorSpacesServiceException,
76
- NetworkFabricType: () => NetworkFabricType,
77
- ProxyType: () => ProxyType,
78
- PutResourcePolicyCommand: () => PutResourcePolicyCommand,
79
- ResourceNotFoundException: () => ResourceNotFoundException,
80
- RouteActivationState: () => RouteActivationState,
81
- RouteState: () => RouteState,
82
- RouteSummaryFilterSensitiveLog: () => RouteSummaryFilterSensitiveLog,
83
- RouteType: () => RouteType,
84
- ServiceEndpointType: () => ServiceEndpointType,
85
- ServiceQuotaExceededException: () => ServiceQuotaExceededException,
86
- ServiceState: () => ServiceState,
87
- ServiceSummaryFilterSensitiveLog: () => ServiceSummaryFilterSensitiveLog,
88
- TagResourceCommand: () => TagResourceCommand,
89
- TagResourceRequestFilterSensitiveLog: () => TagResourceRequestFilterSensitiveLog,
90
- ThrottlingException: () => ThrottlingException,
91
- UntagResourceCommand: () => UntagResourceCommand,
92
- UntagResourceRequestFilterSensitiveLog: () => UntagResourceRequestFilterSensitiveLog,
93
- UpdateRouteCommand: () => UpdateRouteCommand,
94
- ValidationException: () => ValidationException,
95
- __Client: () => import_smithy_client.Client,
96
- paginateListApplications: () => paginateListApplications,
97
- paginateListEnvironmentVpcs: () => paginateListEnvironmentVpcs,
98
- paginateListEnvironments: () => paginateListEnvironments,
99
- paginateListRoutes: () => paginateListRoutes,
100
- paginateListServices: () => paginateListServices
101
- });
102
- module.exports = __toCommonJS(index_exports);
103
-
104
- // src/MigrationHubRefactorSpacesClient.ts
105
- var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
106
- var import_middleware_logger = require("@aws-sdk/middleware-logger");
107
- var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
108
- var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
109
- var import_config_resolver = require("@smithy/config-resolver");
110
- var import_core = require("@smithy/core");
111
- var import_middleware_content_length = require("@smithy/middleware-content-length");
112
- var import_middleware_endpoint = require("@smithy/middleware-endpoint");
113
- var import_middleware_retry = require("@smithy/middleware-retry");
114
-
115
- var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
116
-
117
- // src/endpoint/EndpointParameters.ts
118
- var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
119
- return Object.assign(options, {
120
- useDualstackEndpoint: options.useDualstackEndpoint ?? false,
121
- useFipsEndpoint: options.useFipsEndpoint ?? false,
122
- defaultSigningName: "refactor-spaces"
123
- });
124
- }, "resolveClientEndpointParameters");
125
- var commonParams = {
126
- UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
127
- Endpoint: { type: "builtInParams", name: "endpoint" },
128
- Region: { type: "builtInParams", name: "region" },
129
- UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
1
+ 'use strict';
2
+
3
+ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
4
+ var middlewareLogger = require('@aws-sdk/middleware-logger');
5
+ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
6
+ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
7
+ var configResolver = require('@smithy/config-resolver');
8
+ var core = require('@smithy/core');
9
+ var middlewareContentLength = require('@smithy/middleware-content-length');
10
+ var middlewareEndpoint = require('@smithy/middleware-endpoint');
11
+ var middlewareRetry = require('@smithy/middleware-retry');
12
+ var smithyClient = require('@smithy/smithy-client');
13
+ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
14
+ var runtimeConfig = require('./runtimeConfig');
15
+ var regionConfigResolver = require('@aws-sdk/region-config-resolver');
16
+ var protocolHttp = require('@smithy/protocol-http');
17
+ var middlewareSerde = require('@smithy/middleware-serde');
18
+ var core$1 = require('@aws-sdk/core');
19
+ var uuid = require('@smithy/uuid');
20
+
21
+ const resolveClientEndpointParameters = (options) => {
22
+ return Object.assign(options, {
23
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
24
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
25
+ defaultSigningName: "refactor-spaces",
26
+ });
27
+ };
28
+ const commonParams = {
29
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
30
+ Endpoint: { type: "builtInParams", name: "endpoint" },
31
+ Region: { type: "builtInParams", name: "region" },
32
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
130
33
  };
131
34
 
132
- // src/MigrationHubRefactorSpacesClient.ts
133
- var import_runtimeConfig = require("././runtimeConfig");
35
+ const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
36
+ const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
37
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
38
+ let _credentials = runtimeConfig.credentials;
39
+ return {
40
+ setHttpAuthScheme(httpAuthScheme) {
41
+ const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
42
+ if (index === -1) {
43
+ _httpAuthSchemes.push(httpAuthScheme);
44
+ }
45
+ else {
46
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
47
+ }
48
+ },
49
+ httpAuthSchemes() {
50
+ return _httpAuthSchemes;
51
+ },
52
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
53
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
54
+ },
55
+ httpAuthSchemeProvider() {
56
+ return _httpAuthSchemeProvider;
57
+ },
58
+ setCredentials(credentials) {
59
+ _credentials = credentials;
60
+ },
61
+ credentials() {
62
+ return _credentials;
63
+ },
64
+ };
65
+ };
66
+ const resolveHttpAuthRuntimeConfig = (config) => {
67
+ return {
68
+ httpAuthSchemes: config.httpAuthSchemes(),
69
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
70
+ credentials: config.credentials(),
71
+ };
72
+ };
134
73
 
135
- // src/runtimeExtensions.ts
136
- var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
137
- var import_protocol_http = require("@smithy/protocol-http");
138
- var import_smithy_client = require("@smithy/smithy-client");
74
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
75
+ const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
76
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
77
+ return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
78
+ };
139
79
 
140
- // src/auth/httpAuthExtensionConfiguration.ts
141
- var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
142
- const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
143
- let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
144
- let _credentials = runtimeConfig.credentials;
145
- return {
146
- setHttpAuthScheme(httpAuthScheme) {
147
- const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
148
- if (index === -1) {
149
- _httpAuthSchemes.push(httpAuthScheme);
150
- } else {
151
- _httpAuthSchemes.splice(index, 1, httpAuthScheme);
152
- }
153
- },
154
- httpAuthSchemes() {
155
- return _httpAuthSchemes;
156
- },
157
- setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
158
- _httpAuthSchemeProvider = httpAuthSchemeProvider;
159
- },
160
- httpAuthSchemeProvider() {
161
- return _httpAuthSchemeProvider;
162
- },
163
- setCredentials(credentials) {
164
- _credentials = credentials;
165
- },
166
- credentials() {
167
- return _credentials;
80
+ class MigrationHubRefactorSpacesClient extends smithyClient.Client {
81
+ config;
82
+ constructor(...[configuration]) {
83
+ const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
84
+ super(_config_0);
85
+ this.initConfig = _config_0;
86
+ const _config_1 = resolveClientEndpointParameters(_config_0);
87
+ const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
88
+ const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
89
+ const _config_4 = configResolver.resolveRegionConfig(_config_3);
90
+ const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
91
+ const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
92
+ const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
93
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
94
+ this.config = _config_8;
95
+ this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
96
+ this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
97
+ this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
98
+ this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
99
+ this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
100
+ this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
101
+ this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
102
+ httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMigrationHubRefactorSpacesHttpAuthSchemeParametersProvider,
103
+ identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
104
+ "aws.auth#sigv4": config.credentials,
105
+ }),
106
+ }));
107
+ this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
168
108
  }
169
- };
170
- }, "getHttpAuthExtensionConfiguration");
171
- var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
172
- return {
173
- httpAuthSchemes: config.httpAuthSchemes(),
174
- httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
175
- credentials: config.credentials()
176
- };
177
- }, "resolveHttpAuthRuntimeConfig");
178
-
179
- // src/runtimeExtensions.ts
180
- var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
181
- const extensionConfiguration = Object.assign(
182
- (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
183
- (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
184
- (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
185
- getHttpAuthExtensionConfiguration(runtimeConfig)
186
- );
187
- extensions.forEach((extension) => extension.configure(extensionConfiguration));
188
- return Object.assign(
189
- runtimeConfig,
190
- (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
191
- (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
192
- (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
193
- resolveHttpAuthRuntimeConfig(extensionConfiguration)
194
- );
195
- }, "resolveRuntimeExtensions");
109
+ destroy() {
110
+ super.destroy();
111
+ }
112
+ }
196
113
 
197
- // src/MigrationHubRefactorSpacesClient.ts
198
- var MigrationHubRefactorSpacesClient = class extends import_smithy_client.Client {
199
- static {
200
- __name(this, "MigrationHubRefactorSpacesClient");
201
- }
202
- /**
203
- * The resolved configuration of MigrationHubRefactorSpacesClient class. This is resolved and normalized from the {@link MigrationHubRefactorSpacesClientConfig | constructor configuration interface}.
204
- */
205
- config;
206
- constructor(...[configuration]) {
207
- const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
208
- super(_config_0);
209
- this.initConfig = _config_0;
210
- const _config_1 = resolveClientEndpointParameters(_config_0);
211
- const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
212
- const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
213
- const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3);
214
- const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
215
- const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
216
- const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
217
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
218
- this.config = _config_8;
219
- this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
220
- this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
221
- this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
222
- this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
223
- this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
224
- this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
225
- this.middlewareStack.use(
226
- (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
227
- httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultMigrationHubRefactorSpacesHttpAuthSchemeParametersProvider,
228
- identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
229
- "aws.auth#sigv4": config.credentials
230
- }), "identityProviderConfigProvider")
231
- })
232
- );
233
- this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
234
- }
235
- /**
236
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
237
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
238
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
239
- */
240
- destroy() {
241
- super.destroy();
242
- }
114
+ class MigrationHubRefactorSpacesServiceException extends smithyClient.ServiceException {
115
+ constructor(options) {
116
+ super(options);
117
+ Object.setPrototypeOf(this, MigrationHubRefactorSpacesServiceException.prototype);
118
+ }
119
+ }
120
+
121
+ class AccessDeniedException extends MigrationHubRefactorSpacesServiceException {
122
+ name = "AccessDeniedException";
123
+ $fault = "client";
124
+ Message;
125
+ constructor(opts) {
126
+ super({
127
+ name: "AccessDeniedException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
132
+ this.Message = opts.Message;
133
+ }
134
+ }
135
+ const ApiGatewayEndpointType = {
136
+ PRIVATE: "PRIVATE",
137
+ REGIONAL: "REGIONAL",
243
138
  };
244
-
245
- // src/MigrationHubRefactorSpaces.ts
246
-
247
-
248
- // src/commands/CreateApplicationCommand.ts
249
-
250
- var import_middleware_serde = require("@smithy/middleware-serde");
251
-
252
-
253
- // src/models/models_0.ts
254
-
255
-
256
- // src/models/MigrationHubRefactorSpacesServiceException.ts
257
-
258
- var MigrationHubRefactorSpacesServiceException = class _MigrationHubRefactorSpacesServiceException extends import_smithy_client.ServiceException {
259
- static {
260
- __name(this, "MigrationHubRefactorSpacesServiceException");
261
- }
262
- /**
263
- * @internal
264
- */
265
- constructor(options) {
266
- super(options);
267
- Object.setPrototypeOf(this, _MigrationHubRefactorSpacesServiceException.prototype);
268
- }
139
+ const ApplicationState = {
140
+ ACTIVE: "ACTIVE",
141
+ CREATING: "CREATING",
142
+ DELETING: "DELETING",
143
+ FAILED: "FAILED",
144
+ UPDATING: "UPDATING",
269
145
  };
270
-
271
- // src/models/models_0.ts
272
- var AccessDeniedException = class _AccessDeniedException extends MigrationHubRefactorSpacesServiceException {
273
- static {
274
- __name(this, "AccessDeniedException");
275
- }
276
- name = "AccessDeniedException";
277
- $fault = "client";
278
- Message;
279
- /**
280
- * @internal
281
- */
282
- constructor(opts) {
283
- super({
284
- name: "AccessDeniedException",
285
- $fault: "client",
286
- ...opts
287
- });
288
- Object.setPrototypeOf(this, _AccessDeniedException.prototype);
289
- this.Message = opts.Message;
290
- }
291
- };
292
- var ApiGatewayEndpointType = {
293
- PRIVATE: "PRIVATE",
294
- REGIONAL: "REGIONAL"
295
- };
296
- var ApplicationState = {
297
- ACTIVE: "ACTIVE",
298
- CREATING: "CREATING",
299
- DELETING: "DELETING",
300
- FAILED: "FAILED",
301
- UPDATING: "UPDATING"
302
- };
303
- var ErrorCode = {
304
- INVALID_RESOURCE_STATE: "INVALID_RESOURCE_STATE",
305
- NOT_AUTHORIZED: "NOT_AUTHORIZED",
306
- REQUEST_LIMIT_EXCEEDED: "REQUEST_LIMIT_EXCEEDED",
307
- RESOURCE_CREATION_FAILURE: "RESOURCE_CREATION_FAILURE",
308
- RESOURCE_DELETION_FAILURE: "RESOURCE_DELETION_FAILURE",
309
- RESOURCE_IN_USE: "RESOURCE_IN_USE",
310
- RESOURCE_LIMIT_EXCEEDED: "RESOURCE_LIMIT_EXCEEDED",
311
- RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
312
- RESOURCE_RETRIEVAL_FAILURE: "RESOURCE_RETRIEVAL_FAILURE",
313
- RESOURCE_UPDATE_FAILURE: "RESOURCE_UPDATE_FAILURE",
314
- SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE: "SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE",
315
- STATE_TRANSITION_FAILURE: "STATE_TRANSITION_FAILURE"
316
- };
317
- var ErrorResourceType = {
318
- API_GATEWAY: "API_GATEWAY",
319
- APPLICATION: "APPLICATION",
320
- ENVIRONMENT: "ENVIRONMENT",
321
- IAM_ROLE: "IAM_ROLE",
322
- LAMBDA: "LAMBDA",
323
- LOAD_BALANCER_LISTENER: "LOAD_BALANCER_LISTENER",
324
- NLB: "NLB",
325
- RESOURCE_SHARE: "RESOURCE_SHARE",
326
- ROUTE: "ROUTE",
327
- ROUTE_TABLE: "ROUTE_TABLE",
328
- SECURITY_GROUP: "SECURITY_GROUP",
329
- SERVICE: "SERVICE",
330
- SUBNET: "SUBNET",
331
- TARGET_GROUP: "TARGET_GROUP",
332
- TRANSIT_GATEWAY: "TRANSIT_GATEWAY",
333
- TRANSIT_GATEWAY_ATTACHMENT: "TRANSIT_GATEWAY_ATTACHMENT",
334
- VPC: "VPC",
335
- VPC_ENDPOINT_SERVICE_CONFIGURATION: "VPC_ENDPOINT_SERVICE_CONFIGURATION",
336
- VPC_LINK: "VPC_LINK"
337
- };
338
- var ProxyType = {
339
- API_GATEWAY: "API_GATEWAY"
340
- };
341
- var ConflictException = class _ConflictException extends MigrationHubRefactorSpacesServiceException {
342
- static {
343
- __name(this, "ConflictException");
344
- }
345
- name = "ConflictException";
346
- $fault = "client";
347
- Message;
348
- /**
349
- * <p>The ID of the resource. </p>
350
- * @public
351
- */
352
- ResourceId;
353
- /**
354
- * <p>The type of resource. </p>
355
- * @public
356
- */
357
- ResourceType;
358
- /**
359
- * @internal
360
- */
361
- constructor(opts) {
362
- super({
363
- name: "ConflictException",
364
- $fault: "client",
365
- ...opts
366
- });
367
- Object.setPrototypeOf(this, _ConflictException.prototype);
368
- this.Message = opts.Message;
369
- this.ResourceId = opts.ResourceId;
370
- this.ResourceType = opts.ResourceType;
371
- }
372
- };
373
- var InternalServerException = class _InternalServerException extends MigrationHubRefactorSpacesServiceException {
374
- static {
375
- __name(this, "InternalServerException");
376
- }
377
- name = "InternalServerException";
378
- $fault = "server";
379
- Message;
380
- /**
381
- * @internal
382
- */
383
- constructor(opts) {
384
- super({
385
- name: "InternalServerException",
386
- $fault: "server",
387
- ...opts
388
- });
389
- Object.setPrototypeOf(this, _InternalServerException.prototype);
390
- this.Message = opts.Message;
391
- }
392
- };
393
- var ResourceNotFoundException = class _ResourceNotFoundException extends MigrationHubRefactorSpacesServiceException {
394
- static {
395
- __name(this, "ResourceNotFoundException");
396
- }
397
- name = "ResourceNotFoundException";
398
- $fault = "client";
399
- Message;
400
- /**
401
- * <p>The ID of the resource. </p>
402
- * @public
403
- */
404
- ResourceId;
405
- /**
406
- * <p>The type of resource. </p>
407
- * @public
408
- */
409
- ResourceType;
410
- /**
411
- * @internal
412
- */
413
- constructor(opts) {
414
- super({
415
- name: "ResourceNotFoundException",
416
- $fault: "client",
417
- ...opts
418
- });
419
- Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
420
- this.Message = opts.Message;
421
- this.ResourceId = opts.ResourceId;
422
- this.ResourceType = opts.ResourceType;
423
- }
424
- };
425
- var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends MigrationHubRefactorSpacesServiceException {
426
- static {
427
- __name(this, "ServiceQuotaExceededException");
428
- }
429
- name = "ServiceQuotaExceededException";
430
- $fault = "client";
431
- Message;
432
- /**
433
- * <p>The ID of the resource. </p>
434
- * @public
435
- */
436
- ResourceId;
437
- /**
438
- * <p>The type of resource. </p>
439
- * @public
440
- */
441
- ResourceType;
442
- /**
443
- * <p>Service quota requirement to identify originating quota. Reached throttling quota
444
- * exception. </p>
445
- * @public
446
- */
447
- QuotaCode;
448
- /**
449
- * <p>Service quota requirement to identify originating service. Reached throttling quota
450
- * exception service code. </p>
451
- * @public
452
- */
453
- ServiceCode;
454
- /**
455
- * @internal
456
- */
457
- constructor(opts) {
458
- super({
459
- name: "ServiceQuotaExceededException",
460
- $fault: "client",
461
- ...opts
462
- });
463
- Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
464
- this.Message = opts.Message;
465
- this.ResourceId = opts.ResourceId;
466
- this.ResourceType = opts.ResourceType;
467
- this.QuotaCode = opts.QuotaCode;
468
- this.ServiceCode = opts.ServiceCode;
469
- }
470
- };
471
- var ThrottlingException = class _ThrottlingException extends MigrationHubRefactorSpacesServiceException {
472
- static {
473
- __name(this, "ThrottlingException");
474
- }
475
- name = "ThrottlingException";
476
- $fault = "client";
477
- Message;
478
- /**
479
- * <p>Service quota requirement to identify originating quota. Reached throttling quota
480
- * exception. </p>
481
- * @public
482
- */
483
- QuotaCode;
484
- /**
485
- * <p>Service quota requirement to identify originating service. Reached throttling quota
486
- * exception service code. </p>
487
- * @public
488
- */
489
- ServiceCode;
490
- /**
491
- * <p>The number of seconds to wait before retrying. </p>
492
- * @public
493
- */
494
- RetryAfterSeconds;
495
- /**
496
- * @internal
497
- */
498
- constructor(opts) {
499
- super({
500
- name: "ThrottlingException",
501
- $fault: "client",
502
- ...opts
503
- });
504
- Object.setPrototypeOf(this, _ThrottlingException.prototype);
505
- this.Message = opts.Message;
506
- this.QuotaCode = opts.QuotaCode;
507
- this.ServiceCode = opts.ServiceCode;
508
- this.RetryAfterSeconds = opts.RetryAfterSeconds;
509
- }
510
- };
511
- var ValidationException = class _ValidationException extends MigrationHubRefactorSpacesServiceException {
512
- static {
513
- __name(this, "ValidationException");
514
- }
515
- name = "ValidationException";
516
- $fault = "client";
517
- Message;
518
- /**
519
- * @internal
520
- */
521
- constructor(opts) {
522
- super({
523
- name: "ValidationException",
524
- $fault: "client",
525
- ...opts
526
- });
527
- Object.setPrototypeOf(this, _ValidationException.prototype);
528
- this.Message = opts.Message;
529
- }
530
- };
531
- var NetworkFabricType = {
532
- NONE: "NONE",
533
- TRANSIT_GATEWAY: "TRANSIT_GATEWAY"
534
- };
535
- var EnvironmentState = {
536
- ACTIVE: "ACTIVE",
537
- CREATING: "CREATING",
538
- DELETING: "DELETING",
539
- FAILED: "FAILED"
540
- };
541
- var RouteActivationState = {
542
- ACTIVE: "ACTIVE",
543
- INACTIVE: "INACTIVE"
544
- };
545
- var RouteType = {
546
- DEFAULT: "DEFAULT",
547
- URI_PATH: "URI_PATH"
548
- };
549
- var HttpMethod = {
550
- DELETE: "DELETE",
551
- GET: "GET",
552
- HEAD: "HEAD",
553
- OPTIONS: "OPTIONS",
554
- PATCH: "PATCH",
555
- POST: "POST",
556
- PUT: "PUT"
557
- };
558
- var RouteState = {
559
- ACTIVE: "ACTIVE",
560
- CREATING: "CREATING",
561
- DELETING: "DELETING",
562
- FAILED: "FAILED",
563
- INACTIVE: "INACTIVE",
564
- UPDATING: "UPDATING"
565
- };
566
- var ServiceEndpointType = {
567
- LAMBDA: "LAMBDA",
568
- URL: "URL"
569
- };
570
- var ServiceState = {
571
- ACTIVE: "ACTIVE",
572
- CREATING: "CREATING",
573
- DELETING: "DELETING",
574
- FAILED: "FAILED"
575
- };
576
- var InvalidResourcePolicyException = class _InvalidResourcePolicyException extends MigrationHubRefactorSpacesServiceException {
577
- static {
578
- __name(this, "InvalidResourcePolicyException");
579
- }
580
- name = "InvalidResourcePolicyException";
581
- $fault = "client";
582
- Message;
583
- /**
584
- * @internal
585
- */
586
- constructor(opts) {
587
- super({
588
- name: "InvalidResourcePolicyException",
589
- $fault: "client",
590
- ...opts
591
- });
592
- Object.setPrototypeOf(this, _InvalidResourcePolicyException.prototype);
593
- this.Message = opts.Message;
594
- }
595
- };
596
- var ApplicationSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
597
- ...obj,
598
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
599
- }), "ApplicationSummaryFilterSensitiveLog");
600
- var CreateApplicationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
601
- ...obj,
602
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
603
- }), "CreateApplicationRequestFilterSensitiveLog");
604
- var CreateApplicationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
605
- ...obj,
606
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
607
- }), "CreateApplicationResponseFilterSensitiveLog");
608
- var CreateEnvironmentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
609
- ...obj,
610
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
611
- }), "CreateEnvironmentRequestFilterSensitiveLog");
612
- var CreateEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
613
- ...obj,
614
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
615
- }), "CreateEnvironmentResponseFilterSensitiveLog");
616
- var CreateRouteRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
617
- ...obj,
618
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
619
- }), "CreateRouteRequestFilterSensitiveLog");
620
- var CreateRouteResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
621
- ...obj,
622
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
623
- }), "CreateRouteResponseFilterSensitiveLog");
624
- var CreateServiceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
625
- ...obj,
626
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
627
- }), "CreateServiceRequestFilterSensitiveLog");
628
- var CreateServiceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
629
- ...obj,
630
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
631
- }), "CreateServiceResponseFilterSensitiveLog");
632
- var EnvironmentSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
633
- ...obj,
634
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
635
- }), "EnvironmentSummaryFilterSensitiveLog");
636
- var GetApplicationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
637
- ...obj,
638
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
639
- }), "GetApplicationResponseFilterSensitiveLog");
640
- var GetEnvironmentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
641
- ...obj,
642
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
643
- }), "GetEnvironmentResponseFilterSensitiveLog");
644
- var GetRouteResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
645
- ...obj,
646
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
647
- }), "GetRouteResponseFilterSensitiveLog");
648
- var GetServiceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
649
- ...obj,
650
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
651
- }), "GetServiceResponseFilterSensitiveLog");
652
- var ListApplicationsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
653
- ...obj,
654
- ...obj.ApplicationSummaryList && {
655
- ApplicationSummaryList: obj.ApplicationSummaryList.map((item) => ApplicationSummaryFilterSensitiveLog(item))
656
- }
657
- }), "ListApplicationsResponseFilterSensitiveLog");
658
- var ListEnvironmentsResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
659
- ...obj,
660
- ...obj.EnvironmentSummaryList && {
661
- EnvironmentSummaryList: obj.EnvironmentSummaryList.map((item) => EnvironmentSummaryFilterSensitiveLog(item))
662
- }
663
- }), "ListEnvironmentsResponseFilterSensitiveLog");
664
- var RouteSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
665
- ...obj,
666
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
667
- }), "RouteSummaryFilterSensitiveLog");
668
- var ListRoutesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
669
- ...obj,
670
- ...obj.RouteSummaryList && {
671
- RouteSummaryList: obj.RouteSummaryList.map((item) => RouteSummaryFilterSensitiveLog(item))
672
- }
673
- }), "ListRoutesResponseFilterSensitiveLog");
674
- var ServiceSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
675
- ...obj,
676
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
677
- }), "ServiceSummaryFilterSensitiveLog");
678
- var ListServicesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
679
- ...obj,
680
- ...obj.ServiceSummaryList && {
681
- ServiceSummaryList: obj.ServiceSummaryList.map((item) => ServiceSummaryFilterSensitiveLog(item))
682
- }
683
- }), "ListServicesResponseFilterSensitiveLog");
684
- var ListTagsForResourceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
685
- ...obj,
686
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
687
- }), "ListTagsForResourceResponseFilterSensitiveLog");
688
- var TagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
689
- ...obj,
690
- ...obj.Tags && { Tags: import_smithy_client.SENSITIVE_STRING }
691
- }), "TagResourceRequestFilterSensitiveLog");
692
- var UntagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
693
- ...obj,
694
- ...obj.TagKeys && { TagKeys: import_smithy_client.SENSITIVE_STRING }
695
- }), "UntagResourceRequestFilterSensitiveLog");
696
-
697
- // src/protocols/Aws_restJson1.ts
698
- var import_core2 = require("@aws-sdk/core");
699
-
700
-
701
- var import_uuid = require("@smithy/uuid");
702
- var se_CreateApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
703
- const b = (0, import_core.requestBuilder)(input, context);
704
- const headers = {
705
- "content-type": "application/json"
706
- };
707
- b.bp("/environments/{EnvironmentIdentifier}/applications");
708
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
709
- let body;
710
- body = JSON.stringify(
711
- (0, import_smithy_client.take)(input, {
712
- ApiGatewayProxy: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ApiGatewayProxy"),
713
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
714
- Name: [],
715
- ProxyType: [],
716
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
717
- VpcId: []
718
- })
719
- );
720
- b.m("POST").h(headers).b(body);
721
- return b.build();
722
- }, "se_CreateApplicationCommand");
723
- var se_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
724
- const b = (0, import_core.requestBuilder)(input, context);
725
- const headers = {
726
- "content-type": "application/json"
727
- };
728
- b.bp("/environments");
729
- let body;
730
- body = JSON.stringify(
731
- (0, import_smithy_client.take)(input, {
732
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
733
- Description: [],
734
- Name: [],
735
- NetworkFabricType: [],
736
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
737
- })
738
- );
739
- b.m("POST").h(headers).b(body);
740
- return b.build();
741
- }, "se_CreateEnvironmentCommand");
742
- var se_CreateRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
743
- const b = (0, import_core.requestBuilder)(input, context);
744
- const headers = {
745
- "content-type": "application/json"
746
- };
747
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
748
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
749
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
750
- let body;
751
- body = JSON.stringify(
752
- (0, import_smithy_client.take)(input, {
753
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
754
- DefaultRoute: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "DefaultRoute"),
755
- RouteType: [],
756
- ServiceIdentifier: [],
757
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
758
- UriPathRoute: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "UriPathRoute")
759
- })
760
- );
761
- b.m("POST").h(headers).b(body);
762
- return b.build();
763
- }, "se_CreateRouteCommand");
764
- var se_CreateServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
765
- const b = (0, import_core.requestBuilder)(input, context);
766
- const headers = {
767
- "content-type": "application/json"
768
- };
769
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
770
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
771
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
772
- let body;
773
- body = JSON.stringify(
774
- (0, import_smithy_client.take)(input, {
775
- ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
776
- Description: [],
777
- EndpointType: [],
778
- LambdaEndpoint: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LambdaEndpoint"),
779
- Name: [],
780
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
781
- UrlEndpoint: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "UrlEndpoint"),
782
- VpcId: []
783
- })
784
- );
785
- b.m("POST").h(headers).b(body);
786
- return b.build();
787
- }, "se_CreateServiceCommand");
788
- var se_DeleteApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
789
- const b = (0, import_core.requestBuilder)(input, context);
790
- const headers = {};
791
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
792
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
793
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
794
- let body;
795
- b.m("DELETE").h(headers).b(body);
796
- return b.build();
797
- }, "se_DeleteApplicationCommand");
798
- var se_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
799
- const b = (0, import_core.requestBuilder)(input, context);
800
- const headers = {};
801
- b.bp("/environments/{EnvironmentIdentifier}");
802
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
803
- let body;
804
- b.m("DELETE").h(headers).b(body);
805
- return b.build();
806
- }, "se_DeleteEnvironmentCommand");
807
- var se_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
808
- const b = (0, import_core.requestBuilder)(input, context);
809
- const headers = {};
810
- b.bp("/resourcepolicy/{Identifier}");
811
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
812
- let body;
813
- b.m("DELETE").h(headers).b(body);
814
- return b.build();
815
- }, "se_DeleteResourcePolicyCommand");
816
- var se_DeleteRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
817
- const b = (0, import_core.requestBuilder)(input, context);
818
- const headers = {};
819
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
820
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
821
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
822
- b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
823
- let body;
824
- b.m("DELETE").h(headers).b(body);
825
- return b.build();
826
- }, "se_DeleteRouteCommand");
827
- var se_DeleteServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
828
- const b = (0, import_core.requestBuilder)(input, context);
829
- const headers = {};
830
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
831
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
832
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
833
- b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
834
- let body;
835
- b.m("DELETE").h(headers).b(body);
836
- return b.build();
837
- }, "se_DeleteServiceCommand");
838
- var se_GetApplicationCommand = /* @__PURE__ */ __name(async (input, context) => {
839
- const b = (0, import_core.requestBuilder)(input, context);
840
- const headers = {};
841
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
842
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
843
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
844
- let body;
845
- b.m("GET").h(headers).b(body);
846
- return b.build();
847
- }, "se_GetApplicationCommand");
848
- var se_GetEnvironmentCommand = /* @__PURE__ */ __name(async (input, context) => {
849
- const b = (0, import_core.requestBuilder)(input, context);
850
- const headers = {};
851
- b.bp("/environments/{EnvironmentIdentifier}");
852
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
853
- let body;
854
- b.m("GET").h(headers).b(body);
855
- return b.build();
856
- }, "se_GetEnvironmentCommand");
857
- var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
858
- const b = (0, import_core.requestBuilder)(input, context);
859
- const headers = {};
860
- b.bp("/resourcepolicy/{Identifier}");
861
- b.p("Identifier", () => input.Identifier, "{Identifier}", false);
862
- let body;
863
- b.m("GET").h(headers).b(body);
864
- return b.build();
865
- }, "se_GetResourcePolicyCommand");
866
- var se_GetRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
867
- const b = (0, import_core.requestBuilder)(input, context);
868
- const headers = {};
869
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
870
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
871
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
872
- b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
873
- let body;
874
- b.m("GET").h(headers).b(body);
875
- return b.build();
876
- }, "se_GetRouteCommand");
877
- var se_GetServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
878
- const b = (0, import_core.requestBuilder)(input, context);
879
- const headers = {};
880
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
881
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
882
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
883
- b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
884
- let body;
885
- b.m("GET").h(headers).b(body);
886
- return b.build();
887
- }, "se_GetServiceCommand");
888
- var se_ListApplicationsCommand = /* @__PURE__ */ __name(async (input, context) => {
889
- const b = (0, import_core.requestBuilder)(input, context);
890
- const headers = {};
891
- b.bp("/environments/{EnvironmentIdentifier}/applications");
892
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
893
- const query = (0, import_smithy_client.map)({
894
- [_nT]: [, input[_NT]],
895
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
896
- });
897
- let body;
898
- b.m("GET").h(headers).q(query).b(body);
899
- return b.build();
900
- }, "se_ListApplicationsCommand");
901
- var se_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (input, context) => {
902
- const b = (0, import_core.requestBuilder)(input, context);
903
- const headers = {};
904
- b.bp("/environments");
905
- const query = (0, import_smithy_client.map)({
906
- [_nT]: [, input[_NT]],
907
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
908
- });
909
- let body;
910
- b.m("GET").h(headers).q(query).b(body);
911
- return b.build();
912
- }, "se_ListEnvironmentsCommand");
913
- var se_ListEnvironmentVpcsCommand = /* @__PURE__ */ __name(async (input, context) => {
914
- const b = (0, import_core.requestBuilder)(input, context);
915
- const headers = {};
916
- b.bp("/environments/{EnvironmentIdentifier}/vpcs");
917
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
918
- const query = (0, import_smithy_client.map)({
919
- [_nT]: [, input[_NT]],
920
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
921
- });
922
- let body;
923
- b.m("GET").h(headers).q(query).b(body);
924
- return b.build();
925
- }, "se_ListEnvironmentVpcsCommand");
926
- var se_ListRoutesCommand = /* @__PURE__ */ __name(async (input, context) => {
927
- const b = (0, import_core.requestBuilder)(input, context);
928
- const headers = {};
929
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
930
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
931
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
932
- const query = (0, import_smithy_client.map)({
933
- [_nT]: [, input[_NT]],
934
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
935
- });
936
- let body;
937
- b.m("GET").h(headers).q(query).b(body);
938
- return b.build();
939
- }, "se_ListRoutesCommand");
940
- var se_ListServicesCommand = /* @__PURE__ */ __name(async (input, context) => {
941
- const b = (0, import_core.requestBuilder)(input, context);
942
- const headers = {};
943
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
944
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
945
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
946
- const query = (0, import_smithy_client.map)({
947
- [_nT]: [, input[_NT]],
948
- [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
949
- });
950
- let body;
951
- b.m("GET").h(headers).q(query).b(body);
952
- return b.build();
953
- }, "se_ListServicesCommand");
954
- var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
955
- const b = (0, import_core.requestBuilder)(input, context);
956
- const headers = {};
957
- b.bp("/tags/{ResourceArn}");
958
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
959
- let body;
960
- b.m("GET").h(headers).b(body);
961
- return b.build();
962
- }, "se_ListTagsForResourceCommand");
963
- var se_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {
964
- const b = (0, import_core.requestBuilder)(input, context);
965
- const headers = {
966
- "content-type": "application/json"
967
- };
968
- b.bp("/resourcepolicy");
969
- let body;
970
- body = JSON.stringify(
971
- (0, import_smithy_client.take)(input, {
972
- Policy: [],
973
- ResourceArn: []
974
- })
975
- );
976
- b.m("PUT").h(headers).b(body);
977
- return b.build();
978
- }, "se_PutResourcePolicyCommand");
979
- var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
980
- const b = (0, import_core.requestBuilder)(input, context);
981
- const headers = {
982
- "content-type": "application/json"
983
- };
984
- b.bp("/tags/{ResourceArn}");
985
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
986
- let body;
987
- body = JSON.stringify(
988
- (0, import_smithy_client.take)(input, {
989
- Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
990
- })
991
- );
992
- b.m("POST").h(headers).b(body);
993
- return b.build();
994
- }, "se_TagResourceCommand");
995
- var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
996
- const b = (0, import_core.requestBuilder)(input, context);
997
- const headers = {};
998
- b.bp("/tags/{ResourceArn}");
999
- b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
1000
- const query = (0, import_smithy_client.map)({
1001
- [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
1002
- });
1003
- let body;
1004
- b.m("DELETE").h(headers).q(query).b(body);
1005
- return b.build();
1006
- }, "se_UntagResourceCommand");
1007
- var se_UpdateRouteCommand = /* @__PURE__ */ __name(async (input, context) => {
1008
- const b = (0, import_core.requestBuilder)(input, context);
1009
- const headers = {
1010
- "content-type": "application/json"
1011
- };
1012
- b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
1013
- b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
1014
- b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
1015
- b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
1016
- let body;
1017
- body = JSON.stringify(
1018
- (0, import_smithy_client.take)(input, {
1019
- ActivationState: []
1020
- })
1021
- );
1022
- b.m("PATCH").h(headers).b(body);
1023
- return b.build();
1024
- }, "se_UpdateRouteCommand");
1025
- var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1026
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1027
- return de_CommandError(output, context);
1028
- }
1029
- const contents = (0, import_smithy_client.map)({
1030
- $metadata: deserializeMetadata(output)
1031
- });
1032
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1033
- const doc = (0, import_smithy_client.take)(data, {
1034
- ApiGatewayProxy: import_smithy_client._json,
1035
- ApplicationId: import_smithy_client.expectString,
1036
- Arn: import_smithy_client.expectString,
1037
- CreatedByAccountId: import_smithy_client.expectString,
1038
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1039
- EnvironmentId: import_smithy_client.expectString,
1040
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1041
- Name: import_smithy_client.expectString,
1042
- OwnerAccountId: import_smithy_client.expectString,
1043
- ProxyType: import_smithy_client.expectString,
1044
- State: import_smithy_client.expectString,
1045
- Tags: import_smithy_client._json,
1046
- VpcId: import_smithy_client.expectString
1047
- });
1048
- Object.assign(contents, doc);
1049
- return contents;
1050
- }, "de_CreateApplicationCommand");
1051
- var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1052
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1053
- return de_CommandError(output, context);
1054
- }
1055
- const contents = (0, import_smithy_client.map)({
1056
- $metadata: deserializeMetadata(output)
1057
- });
1058
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1059
- const doc = (0, import_smithy_client.take)(data, {
1060
- Arn: import_smithy_client.expectString,
1061
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1062
- Description: import_smithy_client.expectString,
1063
- EnvironmentId: import_smithy_client.expectString,
1064
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1065
- Name: import_smithy_client.expectString,
1066
- NetworkFabricType: import_smithy_client.expectString,
1067
- OwnerAccountId: import_smithy_client.expectString,
1068
- State: import_smithy_client.expectString,
1069
- Tags: import_smithy_client._json
1070
- });
1071
- Object.assign(contents, doc);
1072
- return contents;
1073
- }, "de_CreateEnvironmentCommand");
1074
- var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1075
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1076
- return de_CommandError(output, context);
1077
- }
1078
- const contents = (0, import_smithy_client.map)({
1079
- $metadata: deserializeMetadata(output)
1080
- });
1081
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1082
- const doc = (0, import_smithy_client.take)(data, {
1083
- ApplicationId: import_smithy_client.expectString,
1084
- Arn: import_smithy_client.expectString,
1085
- CreatedByAccountId: import_smithy_client.expectString,
1086
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1087
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1088
- OwnerAccountId: import_smithy_client.expectString,
1089
- RouteId: import_smithy_client.expectString,
1090
- RouteType: import_smithy_client.expectString,
1091
- ServiceId: import_smithy_client.expectString,
1092
- State: import_smithy_client.expectString,
1093
- Tags: import_smithy_client._json,
1094
- UriPathRoute: import_smithy_client._json
1095
- });
1096
- Object.assign(contents, doc);
1097
- return contents;
1098
- }, "de_CreateRouteCommand");
1099
- var de_CreateServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
1100
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1101
- return de_CommandError(output, context);
1102
- }
1103
- const contents = (0, import_smithy_client.map)({
1104
- $metadata: deserializeMetadata(output)
1105
- });
1106
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1107
- const doc = (0, import_smithy_client.take)(data, {
1108
- ApplicationId: import_smithy_client.expectString,
1109
- Arn: import_smithy_client.expectString,
1110
- CreatedByAccountId: import_smithy_client.expectString,
1111
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1112
- Description: import_smithy_client.expectString,
1113
- EndpointType: import_smithy_client.expectString,
1114
- EnvironmentId: import_smithy_client.expectString,
1115
- LambdaEndpoint: import_smithy_client._json,
1116
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1117
- Name: import_smithy_client.expectString,
1118
- OwnerAccountId: import_smithy_client.expectString,
1119
- ServiceId: import_smithy_client.expectString,
1120
- State: import_smithy_client.expectString,
1121
- Tags: import_smithy_client._json,
1122
- UrlEndpoint: import_smithy_client._json,
1123
- VpcId: import_smithy_client.expectString
1124
- });
1125
- Object.assign(contents, doc);
1126
- return contents;
1127
- }, "de_CreateServiceCommand");
1128
- var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1129
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1130
- return de_CommandError(output, context);
1131
- }
1132
- const contents = (0, import_smithy_client.map)({
1133
- $metadata: deserializeMetadata(output)
1134
- });
1135
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1136
- const doc = (0, import_smithy_client.take)(data, {
1137
- ApplicationId: import_smithy_client.expectString,
1138
- Arn: import_smithy_client.expectString,
1139
- EnvironmentId: import_smithy_client.expectString,
1140
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1141
- Name: import_smithy_client.expectString,
1142
- State: import_smithy_client.expectString
1143
- });
1144
- Object.assign(contents, doc);
1145
- return contents;
1146
- }, "de_DeleteApplicationCommand");
1147
- var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1148
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1149
- return de_CommandError(output, context);
1150
- }
1151
- const contents = (0, import_smithy_client.map)({
1152
- $metadata: deserializeMetadata(output)
1153
- });
1154
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1155
- const doc = (0, import_smithy_client.take)(data, {
1156
- Arn: import_smithy_client.expectString,
1157
- EnvironmentId: import_smithy_client.expectString,
1158
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1159
- Name: import_smithy_client.expectString,
1160
- State: import_smithy_client.expectString
1161
- });
1162
- Object.assign(contents, doc);
1163
- return contents;
1164
- }, "de_DeleteEnvironmentCommand");
1165
- var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1166
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1167
- return de_CommandError(output, context);
1168
- }
1169
- const contents = (0, import_smithy_client.map)({
1170
- $metadata: deserializeMetadata(output)
1171
- });
1172
- await (0, import_smithy_client.collectBody)(output.body, context);
1173
- return contents;
1174
- }, "de_DeleteResourcePolicyCommand");
1175
- var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1176
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1177
- return de_CommandError(output, context);
1178
- }
1179
- const contents = (0, import_smithy_client.map)({
1180
- $metadata: deserializeMetadata(output)
1181
- });
1182
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1183
- const doc = (0, import_smithy_client.take)(data, {
1184
- ApplicationId: import_smithy_client.expectString,
1185
- Arn: import_smithy_client.expectString,
1186
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1187
- RouteId: import_smithy_client.expectString,
1188
- ServiceId: import_smithy_client.expectString,
1189
- State: import_smithy_client.expectString
1190
- });
1191
- Object.assign(contents, doc);
1192
- return contents;
1193
- }, "de_DeleteRouteCommand");
1194
- var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
1195
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1196
- return de_CommandError(output, context);
1197
- }
1198
- const contents = (0, import_smithy_client.map)({
1199
- $metadata: deserializeMetadata(output)
1200
- });
1201
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1202
- const doc = (0, import_smithy_client.take)(data, {
1203
- ApplicationId: import_smithy_client.expectString,
1204
- Arn: import_smithy_client.expectString,
1205
- EnvironmentId: import_smithy_client.expectString,
1206
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1207
- Name: import_smithy_client.expectString,
1208
- ServiceId: import_smithy_client.expectString,
1209
- State: import_smithy_client.expectString
1210
- });
1211
- Object.assign(contents, doc);
1212
- return contents;
1213
- }, "de_DeleteServiceCommand");
1214
- var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) => {
1215
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1216
- return de_CommandError(output, context);
1217
- }
1218
- const contents = (0, import_smithy_client.map)({
1219
- $metadata: deserializeMetadata(output)
1220
- });
1221
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1222
- const doc = (0, import_smithy_client.take)(data, {
1223
- ApiGatewayProxy: import_smithy_client._json,
1224
- ApplicationId: import_smithy_client.expectString,
1225
- Arn: import_smithy_client.expectString,
1226
- CreatedByAccountId: import_smithy_client.expectString,
1227
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1228
- EnvironmentId: import_smithy_client.expectString,
1229
- Error: import_smithy_client._json,
1230
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1231
- Name: import_smithy_client.expectString,
1232
- OwnerAccountId: import_smithy_client.expectString,
1233
- ProxyType: import_smithy_client.expectString,
1234
- State: import_smithy_client.expectString,
1235
- Tags: import_smithy_client._json,
1236
- VpcId: import_smithy_client.expectString
1237
- });
1238
- Object.assign(contents, doc);
1239
- return contents;
1240
- }, "de_GetApplicationCommand");
1241
- var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1242
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1243
- return de_CommandError(output, context);
1244
- }
1245
- const contents = (0, import_smithy_client.map)({
1246
- $metadata: deserializeMetadata(output)
1247
- });
1248
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1249
- const doc = (0, import_smithy_client.take)(data, {
1250
- Arn: import_smithy_client.expectString,
1251
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1252
- Description: import_smithy_client.expectString,
1253
- EnvironmentId: import_smithy_client.expectString,
1254
- Error: import_smithy_client._json,
1255
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1256
- Name: import_smithy_client.expectString,
1257
- NetworkFabricType: import_smithy_client.expectString,
1258
- OwnerAccountId: import_smithy_client.expectString,
1259
- State: import_smithy_client.expectString,
1260
- Tags: import_smithy_client._json,
1261
- TransitGatewayId: import_smithy_client.expectString
1262
- });
1263
- Object.assign(contents, doc);
1264
- return contents;
1265
- }, "de_GetEnvironmentCommand");
1266
- var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1267
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1268
- return de_CommandError(output, context);
1269
- }
1270
- const contents = (0, import_smithy_client.map)({
1271
- $metadata: deserializeMetadata(output)
1272
- });
1273
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1274
- const doc = (0, import_smithy_client.take)(data, {
1275
- Policy: import_smithy_client.expectString
1276
- });
1277
- Object.assign(contents, doc);
1278
- return contents;
1279
- }, "de_GetResourcePolicyCommand");
1280
- var de_GetRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1281
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1282
- return de_CommandError(output, context);
1283
- }
1284
- const contents = (0, import_smithy_client.map)({
1285
- $metadata: deserializeMetadata(output)
1286
- });
1287
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1288
- const doc = (0, import_smithy_client.take)(data, {
1289
- AppendSourcePath: import_smithy_client.expectBoolean,
1290
- ApplicationId: import_smithy_client.expectString,
1291
- Arn: import_smithy_client.expectString,
1292
- CreatedByAccountId: import_smithy_client.expectString,
1293
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1294
- EnvironmentId: import_smithy_client.expectString,
1295
- Error: import_smithy_client._json,
1296
- IncludeChildPaths: import_smithy_client.expectBoolean,
1297
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1298
- Methods: import_smithy_client._json,
1299
- OwnerAccountId: import_smithy_client.expectString,
1300
- PathResourceToId: import_smithy_client._json,
1301
- RouteId: import_smithy_client.expectString,
1302
- RouteType: import_smithy_client.expectString,
1303
- ServiceId: import_smithy_client.expectString,
1304
- SourcePath: import_smithy_client.expectString,
1305
- State: import_smithy_client.expectString,
1306
- Tags: import_smithy_client._json
1307
- });
1308
- Object.assign(contents, doc);
1309
- return contents;
1310
- }, "de_GetRouteCommand");
1311
- var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
1312
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1313
- return de_CommandError(output, context);
1314
- }
1315
- const contents = (0, import_smithy_client.map)({
1316
- $metadata: deserializeMetadata(output)
1317
- });
1318
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1319
- const doc = (0, import_smithy_client.take)(data, {
1320
- ApplicationId: import_smithy_client.expectString,
1321
- Arn: import_smithy_client.expectString,
1322
- CreatedByAccountId: import_smithy_client.expectString,
1323
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1324
- Description: import_smithy_client.expectString,
1325
- EndpointType: import_smithy_client.expectString,
1326
- EnvironmentId: import_smithy_client.expectString,
1327
- Error: import_smithy_client._json,
1328
- LambdaEndpoint: import_smithy_client._json,
1329
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1330
- Name: import_smithy_client.expectString,
1331
- OwnerAccountId: import_smithy_client.expectString,
1332
- ServiceId: import_smithy_client.expectString,
1333
- State: import_smithy_client.expectString,
1334
- Tags: import_smithy_client._json,
1335
- UrlEndpoint: import_smithy_client._json,
1336
- VpcId: import_smithy_client.expectString
1337
- });
1338
- Object.assign(contents, doc);
1339
- return contents;
1340
- }, "de_GetServiceCommand");
1341
- var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1342
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1343
- return de_CommandError(output, context);
1344
- }
1345
- const contents = (0, import_smithy_client.map)({
1346
- $metadata: deserializeMetadata(output)
1347
- });
1348
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1349
- const doc = (0, import_smithy_client.take)(data, {
1350
- ApplicationSummaryList: /* @__PURE__ */ __name((_) => de_ApplicationSummaries(_, context), "ApplicationSummaryList"),
1351
- NextToken: import_smithy_client.expectString
1352
- });
1353
- Object.assign(contents, doc);
1354
- return contents;
1355
- }, "de_ListApplicationsCommand");
1356
- var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
1357
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1358
- return de_CommandError(output, context);
1359
- }
1360
- const contents = (0, import_smithy_client.map)({
1361
- $metadata: deserializeMetadata(output)
1362
- });
1363
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1364
- const doc = (0, import_smithy_client.take)(data, {
1365
- EnvironmentSummaryList: /* @__PURE__ */ __name((_) => de_EnvironmentSummaries(_, context), "EnvironmentSummaryList"),
1366
- NextToken: import_smithy_client.expectString
1367
- });
1368
- Object.assign(contents, doc);
1369
- return contents;
1370
- }, "de_ListEnvironmentsCommand");
1371
- var de_ListEnvironmentVpcsCommand = /* @__PURE__ */ __name(async (output, context) => {
1372
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1373
- return de_CommandError(output, context);
1374
- }
1375
- const contents = (0, import_smithy_client.map)({
1376
- $metadata: deserializeMetadata(output)
1377
- });
1378
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1379
- const doc = (0, import_smithy_client.take)(data, {
1380
- EnvironmentVpcList: /* @__PURE__ */ __name((_) => de_EnvironmentVpcs(_, context), "EnvironmentVpcList"),
1381
- NextToken: import_smithy_client.expectString
1382
- });
1383
- Object.assign(contents, doc);
1384
- return contents;
1385
- }, "de_ListEnvironmentVpcsCommand");
1386
- var de_ListRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
1387
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1388
- return de_CommandError(output, context);
1389
- }
1390
- const contents = (0, import_smithy_client.map)({
1391
- $metadata: deserializeMetadata(output)
1392
- });
1393
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1394
- const doc = (0, import_smithy_client.take)(data, {
1395
- NextToken: import_smithy_client.expectString,
1396
- RouteSummaryList: /* @__PURE__ */ __name((_) => de_RouteSummaries(_, context), "RouteSummaryList")
1397
- });
1398
- Object.assign(contents, doc);
1399
- return contents;
1400
- }, "de_ListRoutesCommand");
1401
- var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
1402
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1403
- return de_CommandError(output, context);
1404
- }
1405
- const contents = (0, import_smithy_client.map)({
1406
- $metadata: deserializeMetadata(output)
1407
- });
1408
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1409
- const doc = (0, import_smithy_client.take)(data, {
1410
- NextToken: import_smithy_client.expectString,
1411
- ServiceSummaryList: /* @__PURE__ */ __name((_) => de_ServiceSummaries(_, context), "ServiceSummaryList")
1412
- });
1413
- Object.assign(contents, doc);
1414
- return contents;
1415
- }, "de_ListServicesCommand");
1416
- var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1417
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1418
- return de_CommandError(output, context);
1419
- }
1420
- const contents = (0, import_smithy_client.map)({
1421
- $metadata: deserializeMetadata(output)
1422
- });
1423
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1424
- const doc = (0, import_smithy_client.take)(data, {
1425
- Tags: import_smithy_client._json
1426
- });
1427
- Object.assign(contents, doc);
1428
- return contents;
1429
- }, "de_ListTagsForResourceCommand");
1430
- var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1431
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1432
- return de_CommandError(output, context);
1433
- }
1434
- const contents = (0, import_smithy_client.map)({
1435
- $metadata: deserializeMetadata(output)
1436
- });
1437
- await (0, import_smithy_client.collectBody)(output.body, context);
1438
- return contents;
1439
- }, "de_PutResourcePolicyCommand");
1440
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1441
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
- return de_CommandError(output, context);
1443
- }
1444
- const contents = (0, import_smithy_client.map)({
1445
- $metadata: deserializeMetadata(output)
1446
- });
1447
- await (0, import_smithy_client.collectBody)(output.body, context);
1448
- return contents;
1449
- }, "de_TagResourceCommand");
1450
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1451
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1452
- return de_CommandError(output, context);
1453
- }
1454
- const contents = (0, import_smithy_client.map)({
1455
- $metadata: deserializeMetadata(output)
1456
- });
1457
- await (0, import_smithy_client.collectBody)(output.body, context);
1458
- return contents;
1459
- }, "de_UntagResourceCommand");
1460
- var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1461
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1462
- return de_CommandError(output, context);
1463
- }
1464
- const contents = (0, import_smithy_client.map)({
1465
- $metadata: deserializeMetadata(output)
1466
- });
1467
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1468
- const doc = (0, import_smithy_client.take)(data, {
1469
- ApplicationId: import_smithy_client.expectString,
1470
- Arn: import_smithy_client.expectString,
1471
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1472
- RouteId: import_smithy_client.expectString,
1473
- ServiceId: import_smithy_client.expectString,
1474
- State: import_smithy_client.expectString
1475
- });
1476
- Object.assign(contents, doc);
1477
- return contents;
1478
- }, "de_UpdateRouteCommand");
1479
- var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1480
- const parsedOutput = {
1481
- ...output,
1482
- body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1483
- };
1484
- const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1485
- switch (errorCode) {
1486
- case "AccessDeniedException":
1487
- case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1488
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1489
- case "ConflictException":
1490
- case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1491
- throw await de_ConflictExceptionRes(parsedOutput, context);
1492
- case "InternalServerException":
1493
- case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1494
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1495
- case "ResourceNotFoundException":
1496
- case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1497
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1498
- case "ServiceQuotaExceededException":
1499
- case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
1500
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1501
- case "ThrottlingException":
1502
- case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1503
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1504
- case "ValidationException":
1505
- case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1506
- throw await de_ValidationExceptionRes(parsedOutput, context);
1507
- case "InvalidResourcePolicyException":
1508
- case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
1509
- throw await de_InvalidResourcePolicyExceptionRes(parsedOutput, context);
1510
- default:
1511
- const parsedBody = parsedOutput.body;
1512
- return throwDefaultError({
1513
- output,
1514
- parsedBody,
1515
- errorCode
1516
- });
1517
- }
1518
- }, "de_CommandError");
1519
- var throwDefaultError = (0, import_smithy_client.withBaseException)(MigrationHubRefactorSpacesServiceException);
1520
- var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1521
- const contents = (0, import_smithy_client.map)({});
1522
- const data = parsedOutput.body;
1523
- const doc = (0, import_smithy_client.take)(data, {
1524
- Message: import_smithy_client.expectString
1525
- });
1526
- Object.assign(contents, doc);
1527
- const exception = new AccessDeniedException({
1528
- $metadata: deserializeMetadata(parsedOutput),
1529
- ...contents
1530
- });
1531
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1532
- }, "de_AccessDeniedExceptionRes");
1533
- var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1534
- const contents = (0, import_smithy_client.map)({});
1535
- const data = parsedOutput.body;
1536
- const doc = (0, import_smithy_client.take)(data, {
1537
- Message: import_smithy_client.expectString,
1538
- ResourceId: import_smithy_client.expectString,
1539
- ResourceType: import_smithy_client.expectString
1540
- });
1541
- Object.assign(contents, doc);
1542
- const exception = new ConflictException({
1543
- $metadata: deserializeMetadata(parsedOutput),
1544
- ...contents
1545
- });
1546
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1547
- }, "de_ConflictExceptionRes");
1548
- var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1549
- const contents = (0, import_smithy_client.map)({});
1550
- const data = parsedOutput.body;
1551
- const doc = (0, import_smithy_client.take)(data, {
1552
- Message: import_smithy_client.expectString
1553
- });
1554
- Object.assign(contents, doc);
1555
- const exception = new InternalServerException({
1556
- $metadata: deserializeMetadata(parsedOutput),
1557
- ...contents
1558
- });
1559
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1560
- }, "de_InternalServerExceptionRes");
1561
- var de_InvalidResourcePolicyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1562
- const contents = (0, import_smithy_client.map)({});
1563
- const data = parsedOutput.body;
1564
- const doc = (0, import_smithy_client.take)(data, {
1565
- Message: import_smithy_client.expectString
1566
- });
1567
- Object.assign(contents, doc);
1568
- const exception = new InvalidResourcePolicyException({
1569
- $metadata: deserializeMetadata(parsedOutput),
1570
- ...contents
1571
- });
1572
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1573
- }, "de_InvalidResourcePolicyExceptionRes");
1574
- var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1575
- const contents = (0, import_smithy_client.map)({});
1576
- const data = parsedOutput.body;
1577
- const doc = (0, import_smithy_client.take)(data, {
1578
- Message: import_smithy_client.expectString,
1579
- ResourceId: import_smithy_client.expectString,
1580
- ResourceType: import_smithy_client.expectString
1581
- });
1582
- Object.assign(contents, doc);
1583
- const exception = new ResourceNotFoundException({
1584
- $metadata: deserializeMetadata(parsedOutput),
1585
- ...contents
1586
- });
1587
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1588
- }, "de_ResourceNotFoundExceptionRes");
1589
- var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1590
- const contents = (0, import_smithy_client.map)({});
1591
- const data = parsedOutput.body;
1592
- const doc = (0, import_smithy_client.take)(data, {
1593
- Message: import_smithy_client.expectString,
1594
- QuotaCode: import_smithy_client.expectString,
1595
- ResourceId: import_smithy_client.expectString,
1596
- ResourceType: import_smithy_client.expectString,
1597
- ServiceCode: import_smithy_client.expectString
1598
- });
1599
- Object.assign(contents, doc);
1600
- const exception = new ServiceQuotaExceededException({
1601
- $metadata: deserializeMetadata(parsedOutput),
1602
- ...contents
1603
- });
1604
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1605
- }, "de_ServiceQuotaExceededExceptionRes");
1606
- var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1607
- const contents = (0, import_smithy_client.map)({
1608
- [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
1609
- });
1610
- const data = parsedOutput.body;
1611
- const doc = (0, import_smithy_client.take)(data, {
1612
- Message: import_smithy_client.expectString,
1613
- QuotaCode: import_smithy_client.expectString,
1614
- ServiceCode: import_smithy_client.expectString
1615
- });
1616
- Object.assign(contents, doc);
1617
- const exception = new ThrottlingException({
1618
- $metadata: deserializeMetadata(parsedOutput),
1619
- ...contents
1620
- });
1621
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1622
- }, "de_ThrottlingExceptionRes");
1623
- var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1624
- const contents = (0, import_smithy_client.map)({});
1625
- const data = parsedOutput.body;
1626
- const doc = (0, import_smithy_client.take)(data, {
1627
- Message: import_smithy_client.expectString
1628
- });
1629
- Object.assign(contents, doc);
1630
- const exception = new ValidationException({
1631
- $metadata: deserializeMetadata(parsedOutput),
1632
- ...contents
1633
- });
1634
- return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
1635
- }, "de_ValidationExceptionRes");
1636
- var de_ApplicationSummaries = /* @__PURE__ */ __name((output, context) => {
1637
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1638
- return de_ApplicationSummary(entry, context);
1639
- });
1640
- return retVal;
1641
- }, "de_ApplicationSummaries");
1642
- var de_ApplicationSummary = /* @__PURE__ */ __name((output, context) => {
1643
- return (0, import_smithy_client.take)(output, {
1644
- ApiGatewayProxy: import_smithy_client._json,
1645
- ApplicationId: import_smithy_client.expectString,
1646
- Arn: import_smithy_client.expectString,
1647
- CreatedByAccountId: import_smithy_client.expectString,
1648
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1649
- EnvironmentId: import_smithy_client.expectString,
1650
- Error: import_smithy_client._json,
1651
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1652
- Name: import_smithy_client.expectString,
1653
- OwnerAccountId: import_smithy_client.expectString,
1654
- ProxyType: import_smithy_client.expectString,
1655
- State: import_smithy_client.expectString,
1656
- Tags: import_smithy_client._json,
1657
- VpcId: import_smithy_client.expectString
1658
- });
1659
- }, "de_ApplicationSummary");
1660
- var de_EnvironmentSummaries = /* @__PURE__ */ __name((output, context) => {
1661
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1662
- return de_EnvironmentSummary(entry, context);
1663
- });
1664
- return retVal;
1665
- }, "de_EnvironmentSummaries");
1666
- var de_EnvironmentSummary = /* @__PURE__ */ __name((output, context) => {
1667
- return (0, import_smithy_client.take)(output, {
1668
- Arn: import_smithy_client.expectString,
1669
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1670
- Description: import_smithy_client.expectString,
1671
- EnvironmentId: import_smithy_client.expectString,
1672
- Error: import_smithy_client._json,
1673
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1674
- Name: import_smithy_client.expectString,
1675
- NetworkFabricType: import_smithy_client.expectString,
1676
- OwnerAccountId: import_smithy_client.expectString,
1677
- State: import_smithy_client.expectString,
1678
- Tags: import_smithy_client._json,
1679
- TransitGatewayId: import_smithy_client.expectString
1680
- });
1681
- }, "de_EnvironmentSummary");
1682
- var de_EnvironmentVpc = /* @__PURE__ */ __name((output, context) => {
1683
- return (0, import_smithy_client.take)(output, {
1684
- AccountId: import_smithy_client.expectString,
1685
- CidrBlocks: import_smithy_client._json,
1686
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1687
- EnvironmentId: import_smithy_client.expectString,
1688
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1689
- VpcId: import_smithy_client.expectString,
1690
- VpcName: import_smithy_client.expectString
1691
- });
1692
- }, "de_EnvironmentVpc");
1693
- var de_EnvironmentVpcs = /* @__PURE__ */ __name((output, context) => {
1694
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1695
- return de_EnvironmentVpc(entry, context);
1696
- });
1697
- return retVal;
1698
- }, "de_EnvironmentVpcs");
1699
- var de_RouteSummaries = /* @__PURE__ */ __name((output, context) => {
1700
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1701
- return de_RouteSummary(entry, context);
1702
- });
1703
- return retVal;
1704
- }, "de_RouteSummaries");
1705
- var de_RouteSummary = /* @__PURE__ */ __name((output, context) => {
1706
- return (0, import_smithy_client.take)(output, {
1707
- AppendSourcePath: import_smithy_client.expectBoolean,
1708
- ApplicationId: import_smithy_client.expectString,
1709
- Arn: import_smithy_client.expectString,
1710
- CreatedByAccountId: import_smithy_client.expectString,
1711
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1712
- EnvironmentId: import_smithy_client.expectString,
1713
- Error: import_smithy_client._json,
1714
- IncludeChildPaths: import_smithy_client.expectBoolean,
1715
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1716
- Methods: import_smithy_client._json,
1717
- OwnerAccountId: import_smithy_client.expectString,
1718
- PathResourceToId: import_smithy_client._json,
1719
- RouteId: import_smithy_client.expectString,
1720
- RouteType: import_smithy_client.expectString,
1721
- ServiceId: import_smithy_client.expectString,
1722
- SourcePath: import_smithy_client.expectString,
1723
- State: import_smithy_client.expectString,
1724
- Tags: import_smithy_client._json
1725
- });
1726
- }, "de_RouteSummary");
1727
- var de_ServiceSummaries = /* @__PURE__ */ __name((output, context) => {
1728
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1729
- return de_ServiceSummary(entry, context);
1730
- });
1731
- return retVal;
1732
- }, "de_ServiceSummaries");
1733
- var de_ServiceSummary = /* @__PURE__ */ __name((output, context) => {
1734
- return (0, import_smithy_client.take)(output, {
1735
- ApplicationId: import_smithy_client.expectString,
1736
- Arn: import_smithy_client.expectString,
1737
- CreatedByAccountId: import_smithy_client.expectString,
1738
- CreatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedTime"),
1739
- Description: import_smithy_client.expectString,
1740
- EndpointType: import_smithy_client.expectString,
1741
- EnvironmentId: import_smithy_client.expectString,
1742
- Error: import_smithy_client._json,
1743
- LambdaEndpoint: import_smithy_client._json,
1744
- LastUpdatedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastUpdatedTime"),
1745
- Name: import_smithy_client.expectString,
1746
- OwnerAccountId: import_smithy_client.expectString,
1747
- ServiceId: import_smithy_client.expectString,
1748
- State: import_smithy_client.expectString,
1749
- Tags: import_smithy_client._json,
1750
- UrlEndpoint: import_smithy_client._json,
1751
- VpcId: import_smithy_client.expectString
1752
- });
1753
- }, "de_ServiceSummary");
1754
- var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1755
- httpStatusCode: output.statusCode,
1756
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1757
- extendedRequestId: output.headers["x-amz-id-2"],
1758
- cfId: output.headers["x-amz-cf-id"]
1759
- }), "deserializeMetadata");
1760
- var _MR = "MaxResults";
1761
- var _NT = "NextToken";
1762
- var _RAS = "RetryAfterSeconds";
1763
- var _TK = "TagKeys";
1764
- var _mR = "maxResults";
1765
- var _nT = "nextToken";
1766
- var _ra = "retry-after";
1767
- var _tK = "tagKeys";
1768
-
1769
- // src/commands/CreateApplicationCommand.ts
1770
- var CreateApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1771
- return [
1772
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1773
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1774
- ];
1775
- }).s("RefactorSpaces", "CreateApplication", {}).n("MigrationHubRefactorSpacesClient", "CreateApplicationCommand").f(CreateApplicationRequestFilterSensitiveLog, CreateApplicationResponseFilterSensitiveLog).ser(se_CreateApplicationCommand).de(de_CreateApplicationCommand).build() {
1776
- static {
1777
- __name(this, "CreateApplicationCommand");
1778
- }
146
+ const ErrorCode = {
147
+ INVALID_RESOURCE_STATE: "INVALID_RESOURCE_STATE",
148
+ NOT_AUTHORIZED: "NOT_AUTHORIZED",
149
+ REQUEST_LIMIT_EXCEEDED: "REQUEST_LIMIT_EXCEEDED",
150
+ RESOURCE_CREATION_FAILURE: "RESOURCE_CREATION_FAILURE",
151
+ RESOURCE_DELETION_FAILURE: "RESOURCE_DELETION_FAILURE",
152
+ RESOURCE_IN_USE: "RESOURCE_IN_USE",
153
+ RESOURCE_LIMIT_EXCEEDED: "RESOURCE_LIMIT_EXCEEDED",
154
+ RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",
155
+ RESOURCE_RETRIEVAL_FAILURE: "RESOURCE_RETRIEVAL_FAILURE",
156
+ RESOURCE_UPDATE_FAILURE: "RESOURCE_UPDATE_FAILURE",
157
+ SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE: "SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE",
158
+ STATE_TRANSITION_FAILURE: "STATE_TRANSITION_FAILURE",
1779
159
  };
1780
-
1781
- // src/commands/CreateEnvironmentCommand.ts
1782
-
1783
-
1784
-
1785
- var CreateEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1786
- return [
1787
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1788
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1789
- ];
1790
- }).s("RefactorSpaces", "CreateEnvironment", {}).n("MigrationHubRefactorSpacesClient", "CreateEnvironmentCommand").f(CreateEnvironmentRequestFilterSensitiveLog, CreateEnvironmentResponseFilterSensitiveLog).ser(se_CreateEnvironmentCommand).de(de_CreateEnvironmentCommand).build() {
1791
- static {
1792
- __name(this, "CreateEnvironmentCommand");
1793
- }
160
+ const ErrorResourceType = {
161
+ API_GATEWAY: "API_GATEWAY",
162
+ APPLICATION: "APPLICATION",
163
+ ENVIRONMENT: "ENVIRONMENT",
164
+ IAM_ROLE: "IAM_ROLE",
165
+ LAMBDA: "LAMBDA",
166
+ LOAD_BALANCER_LISTENER: "LOAD_BALANCER_LISTENER",
167
+ NLB: "NLB",
168
+ RESOURCE_SHARE: "RESOURCE_SHARE",
169
+ ROUTE: "ROUTE",
170
+ ROUTE_TABLE: "ROUTE_TABLE",
171
+ SECURITY_GROUP: "SECURITY_GROUP",
172
+ SERVICE: "SERVICE",
173
+ SUBNET: "SUBNET",
174
+ TARGET_GROUP: "TARGET_GROUP",
175
+ TRANSIT_GATEWAY: "TRANSIT_GATEWAY",
176
+ TRANSIT_GATEWAY_ATTACHMENT: "TRANSIT_GATEWAY_ATTACHMENT",
177
+ VPC: "VPC",
178
+ VPC_ENDPOINT_SERVICE_CONFIGURATION: "VPC_ENDPOINT_SERVICE_CONFIGURATION",
179
+ VPC_LINK: "VPC_LINK",
1794
180
  };
1795
-
1796
- // src/commands/CreateRouteCommand.ts
1797
-
1798
-
1799
-
1800
- var CreateRouteCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1801
- return [
1802
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1803
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1804
- ];
1805
- }).s("RefactorSpaces", "CreateRoute", {}).n("MigrationHubRefactorSpacesClient", "CreateRouteCommand").f(CreateRouteRequestFilterSensitiveLog, CreateRouteResponseFilterSensitiveLog).ser(se_CreateRouteCommand).de(de_CreateRouteCommand).build() {
1806
- static {
1807
- __name(this, "CreateRouteCommand");
1808
- }
181
+ const ProxyType = {
182
+ API_GATEWAY: "API_GATEWAY",
1809
183
  };
1810
-
1811
- // src/commands/CreateServiceCommand.ts
1812
-
1813
-
1814
-
1815
- var CreateServiceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1816
- return [
1817
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1818
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1819
- ];
1820
- }).s("RefactorSpaces", "CreateService", {}).n("MigrationHubRefactorSpacesClient", "CreateServiceCommand").f(CreateServiceRequestFilterSensitiveLog, CreateServiceResponseFilterSensitiveLog).ser(se_CreateServiceCommand).de(de_CreateServiceCommand).build() {
1821
- static {
1822
- __name(this, "CreateServiceCommand");
1823
- }
184
+ class ConflictException extends MigrationHubRefactorSpacesServiceException {
185
+ name = "ConflictException";
186
+ $fault = "client";
187
+ Message;
188
+ ResourceId;
189
+ ResourceType;
190
+ constructor(opts) {
191
+ super({
192
+ name: "ConflictException",
193
+ $fault: "client",
194
+ ...opts,
195
+ });
196
+ Object.setPrototypeOf(this, ConflictException.prototype);
197
+ this.Message = opts.Message;
198
+ this.ResourceId = opts.ResourceId;
199
+ this.ResourceType = opts.ResourceType;
200
+ }
201
+ }
202
+ class InternalServerException extends MigrationHubRefactorSpacesServiceException {
203
+ name = "InternalServerException";
204
+ $fault = "server";
205
+ Message;
206
+ constructor(opts) {
207
+ super({
208
+ name: "InternalServerException",
209
+ $fault: "server",
210
+ ...opts,
211
+ });
212
+ Object.setPrototypeOf(this, InternalServerException.prototype);
213
+ this.Message = opts.Message;
214
+ }
215
+ }
216
+ class ResourceNotFoundException extends MigrationHubRefactorSpacesServiceException {
217
+ name = "ResourceNotFoundException";
218
+ $fault = "client";
219
+ Message;
220
+ ResourceId;
221
+ ResourceType;
222
+ constructor(opts) {
223
+ super({
224
+ name: "ResourceNotFoundException",
225
+ $fault: "client",
226
+ ...opts,
227
+ });
228
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
229
+ this.Message = opts.Message;
230
+ this.ResourceId = opts.ResourceId;
231
+ this.ResourceType = opts.ResourceType;
232
+ }
233
+ }
234
+ class ServiceQuotaExceededException extends MigrationHubRefactorSpacesServiceException {
235
+ name = "ServiceQuotaExceededException";
236
+ $fault = "client";
237
+ Message;
238
+ ResourceId;
239
+ ResourceType;
240
+ QuotaCode;
241
+ ServiceCode;
242
+ constructor(opts) {
243
+ super({
244
+ name: "ServiceQuotaExceededException",
245
+ $fault: "client",
246
+ ...opts,
247
+ });
248
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
249
+ this.Message = opts.Message;
250
+ this.ResourceId = opts.ResourceId;
251
+ this.ResourceType = opts.ResourceType;
252
+ this.QuotaCode = opts.QuotaCode;
253
+ this.ServiceCode = opts.ServiceCode;
254
+ }
255
+ }
256
+ class ThrottlingException extends MigrationHubRefactorSpacesServiceException {
257
+ name = "ThrottlingException";
258
+ $fault = "client";
259
+ Message;
260
+ QuotaCode;
261
+ ServiceCode;
262
+ RetryAfterSeconds;
263
+ constructor(opts) {
264
+ super({
265
+ name: "ThrottlingException",
266
+ $fault: "client",
267
+ ...opts,
268
+ });
269
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
270
+ this.Message = opts.Message;
271
+ this.QuotaCode = opts.QuotaCode;
272
+ this.ServiceCode = opts.ServiceCode;
273
+ this.RetryAfterSeconds = opts.RetryAfterSeconds;
274
+ }
275
+ }
276
+ class ValidationException extends MigrationHubRefactorSpacesServiceException {
277
+ name = "ValidationException";
278
+ $fault = "client";
279
+ Message;
280
+ constructor(opts) {
281
+ super({
282
+ name: "ValidationException",
283
+ $fault: "client",
284
+ ...opts,
285
+ });
286
+ Object.setPrototypeOf(this, ValidationException.prototype);
287
+ this.Message = opts.Message;
288
+ }
289
+ }
290
+ const NetworkFabricType = {
291
+ NONE: "NONE",
292
+ TRANSIT_GATEWAY: "TRANSIT_GATEWAY",
1824
293
  };
1825
-
1826
- // src/commands/DeleteApplicationCommand.ts
1827
-
1828
-
1829
-
1830
- var DeleteApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1831
- return [
1832
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1833
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1834
- ];
1835
- }).s("RefactorSpaces", "DeleteApplication", {}).n("MigrationHubRefactorSpacesClient", "DeleteApplicationCommand").f(void 0, void 0).ser(se_DeleteApplicationCommand).de(de_DeleteApplicationCommand).build() {
1836
- static {
1837
- __name(this, "DeleteApplicationCommand");
1838
- }
294
+ const EnvironmentState = {
295
+ ACTIVE: "ACTIVE",
296
+ CREATING: "CREATING",
297
+ DELETING: "DELETING",
298
+ FAILED: "FAILED",
1839
299
  };
1840
-
1841
- // src/commands/DeleteEnvironmentCommand.ts
1842
-
1843
-
1844
-
1845
- var DeleteEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1846
- return [
1847
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1848
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1849
- ];
1850
- }).s("RefactorSpaces", "DeleteEnvironment", {}).n("MigrationHubRefactorSpacesClient", "DeleteEnvironmentCommand").f(void 0, void 0).ser(se_DeleteEnvironmentCommand).de(de_DeleteEnvironmentCommand).build() {
1851
- static {
1852
- __name(this, "DeleteEnvironmentCommand");
1853
- }
300
+ const RouteActivationState = {
301
+ ACTIVE: "ACTIVE",
302
+ INACTIVE: "INACTIVE",
1854
303
  };
1855
-
1856
- // src/commands/DeleteResourcePolicyCommand.ts
1857
-
1858
-
1859
-
1860
- var DeleteResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1861
- return [
1862
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1863
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1864
- ];
1865
- }).s("RefactorSpaces", "DeleteResourcePolicy", {}).n("MigrationHubRefactorSpacesClient", "DeleteResourcePolicyCommand").f(void 0, void 0).ser(se_DeleteResourcePolicyCommand).de(de_DeleteResourcePolicyCommand).build() {
1866
- static {
1867
- __name(this, "DeleteResourcePolicyCommand");
1868
- }
304
+ const RouteType = {
305
+ DEFAULT: "DEFAULT",
306
+ URI_PATH: "URI_PATH",
1869
307
  };
1870
-
1871
- // src/commands/DeleteRouteCommand.ts
1872
-
1873
-
1874
-
1875
- var DeleteRouteCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1876
- return [
1877
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1878
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1879
- ];
1880
- }).s("RefactorSpaces", "DeleteRoute", {}).n("MigrationHubRefactorSpacesClient", "DeleteRouteCommand").f(void 0, void 0).ser(se_DeleteRouteCommand).de(de_DeleteRouteCommand).build() {
1881
- static {
1882
- __name(this, "DeleteRouteCommand");
1883
- }
308
+ const HttpMethod = {
309
+ DELETE: "DELETE",
310
+ GET: "GET",
311
+ HEAD: "HEAD",
312
+ OPTIONS: "OPTIONS",
313
+ PATCH: "PATCH",
314
+ POST: "POST",
315
+ PUT: "PUT",
1884
316
  };
1885
-
1886
- // src/commands/DeleteServiceCommand.ts
1887
-
1888
-
1889
-
1890
- var DeleteServiceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1891
- return [
1892
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1893
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1894
- ];
1895
- }).s("RefactorSpaces", "DeleteService", {}).n("MigrationHubRefactorSpacesClient", "DeleteServiceCommand").f(void 0, void 0).ser(se_DeleteServiceCommand).de(de_DeleteServiceCommand).build() {
1896
- static {
1897
- __name(this, "DeleteServiceCommand");
1898
- }
317
+ const RouteState = {
318
+ ACTIVE: "ACTIVE",
319
+ CREATING: "CREATING",
320
+ DELETING: "DELETING",
321
+ FAILED: "FAILED",
322
+ INACTIVE: "INACTIVE",
323
+ UPDATING: "UPDATING",
1899
324
  };
1900
-
1901
- // src/commands/GetApplicationCommand.ts
1902
-
1903
-
1904
-
1905
- var GetApplicationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1906
- return [
1907
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1908
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1909
- ];
1910
- }).s("RefactorSpaces", "GetApplication", {}).n("MigrationHubRefactorSpacesClient", "GetApplicationCommand").f(void 0, GetApplicationResponseFilterSensitiveLog).ser(se_GetApplicationCommand).de(de_GetApplicationCommand).build() {
1911
- static {
1912
- __name(this, "GetApplicationCommand");
1913
- }
325
+ const ServiceEndpointType = {
326
+ LAMBDA: "LAMBDA",
327
+ URL: "URL",
1914
328
  };
1915
-
1916
- // src/commands/GetEnvironmentCommand.ts
1917
-
1918
-
1919
-
1920
- var GetEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1921
- return [
1922
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1923
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1924
- ];
1925
- }).s("RefactorSpaces", "GetEnvironment", {}).n("MigrationHubRefactorSpacesClient", "GetEnvironmentCommand").f(void 0, GetEnvironmentResponseFilterSensitiveLog).ser(se_GetEnvironmentCommand).de(de_GetEnvironmentCommand).build() {
1926
- static {
1927
- __name(this, "GetEnvironmentCommand");
1928
- }
329
+ const ServiceState = {
330
+ ACTIVE: "ACTIVE",
331
+ CREATING: "CREATING",
332
+ DELETING: "DELETING",
333
+ FAILED: "FAILED",
1929
334
  };
335
+ class InvalidResourcePolicyException extends MigrationHubRefactorSpacesServiceException {
336
+ name = "InvalidResourcePolicyException";
337
+ $fault = "client";
338
+ Message;
339
+ constructor(opts) {
340
+ super({
341
+ name: "InvalidResourcePolicyException",
342
+ $fault: "client",
343
+ ...opts,
344
+ });
345
+ Object.setPrototypeOf(this, InvalidResourcePolicyException.prototype);
346
+ this.Message = opts.Message;
347
+ }
348
+ }
349
+ const ApplicationSummaryFilterSensitiveLog = (obj) => ({
350
+ ...obj,
351
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
352
+ });
353
+ const CreateApplicationRequestFilterSensitiveLog = (obj) => ({
354
+ ...obj,
355
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
356
+ });
357
+ const CreateApplicationResponseFilterSensitiveLog = (obj) => ({
358
+ ...obj,
359
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
360
+ });
361
+ const CreateEnvironmentRequestFilterSensitiveLog = (obj) => ({
362
+ ...obj,
363
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
364
+ });
365
+ const CreateEnvironmentResponseFilterSensitiveLog = (obj) => ({
366
+ ...obj,
367
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
368
+ });
369
+ const CreateRouteRequestFilterSensitiveLog = (obj) => ({
370
+ ...obj,
371
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
372
+ });
373
+ const CreateRouteResponseFilterSensitiveLog = (obj) => ({
374
+ ...obj,
375
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
376
+ });
377
+ const CreateServiceRequestFilterSensitiveLog = (obj) => ({
378
+ ...obj,
379
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
380
+ });
381
+ const CreateServiceResponseFilterSensitiveLog = (obj) => ({
382
+ ...obj,
383
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
384
+ });
385
+ const EnvironmentSummaryFilterSensitiveLog = (obj) => ({
386
+ ...obj,
387
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
388
+ });
389
+ const GetApplicationResponseFilterSensitiveLog = (obj) => ({
390
+ ...obj,
391
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
392
+ });
393
+ const GetEnvironmentResponseFilterSensitiveLog = (obj) => ({
394
+ ...obj,
395
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
396
+ });
397
+ const GetRouteResponseFilterSensitiveLog = (obj) => ({
398
+ ...obj,
399
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
400
+ });
401
+ const GetServiceResponseFilterSensitiveLog = (obj) => ({
402
+ ...obj,
403
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
404
+ });
405
+ const ListApplicationsResponseFilterSensitiveLog = (obj) => ({
406
+ ...obj,
407
+ ...(obj.ApplicationSummaryList && {
408
+ ApplicationSummaryList: obj.ApplicationSummaryList.map((item) => ApplicationSummaryFilterSensitiveLog(item)),
409
+ }),
410
+ });
411
+ const ListEnvironmentsResponseFilterSensitiveLog = (obj) => ({
412
+ ...obj,
413
+ ...(obj.EnvironmentSummaryList && {
414
+ EnvironmentSummaryList: obj.EnvironmentSummaryList.map((item) => EnvironmentSummaryFilterSensitiveLog(item)),
415
+ }),
416
+ });
417
+ const RouteSummaryFilterSensitiveLog = (obj) => ({
418
+ ...obj,
419
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
420
+ });
421
+ const ListRoutesResponseFilterSensitiveLog = (obj) => ({
422
+ ...obj,
423
+ ...(obj.RouteSummaryList && {
424
+ RouteSummaryList: obj.RouteSummaryList.map((item) => RouteSummaryFilterSensitiveLog(item)),
425
+ }),
426
+ });
427
+ const ServiceSummaryFilterSensitiveLog = (obj) => ({
428
+ ...obj,
429
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
430
+ });
431
+ const ListServicesResponseFilterSensitiveLog = (obj) => ({
432
+ ...obj,
433
+ ...(obj.ServiceSummaryList && {
434
+ ServiceSummaryList: obj.ServiceSummaryList.map((item) => ServiceSummaryFilterSensitiveLog(item)),
435
+ }),
436
+ });
437
+ const ListTagsForResourceResponseFilterSensitiveLog = (obj) => ({
438
+ ...obj,
439
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
440
+ });
441
+ const TagResourceRequestFilterSensitiveLog = (obj) => ({
442
+ ...obj,
443
+ ...(obj.Tags && { Tags: smithyClient.SENSITIVE_STRING }),
444
+ });
445
+ const UntagResourceRequestFilterSensitiveLog = (obj) => ({
446
+ ...obj,
447
+ ...(obj.TagKeys && { TagKeys: smithyClient.SENSITIVE_STRING }),
448
+ });
1930
449
 
1931
- // src/commands/GetResourcePolicyCommand.ts
1932
-
1933
-
1934
-
1935
- var GetResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1936
- return [
1937
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1938
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1939
- ];
1940
- }).s("RefactorSpaces", "GetResourcePolicy", {}).n("MigrationHubRefactorSpacesClient", "GetResourcePolicyCommand").f(void 0, void 0).ser(se_GetResourcePolicyCommand).de(de_GetResourcePolicyCommand).build() {
1941
- static {
1942
- __name(this, "GetResourcePolicyCommand");
1943
- }
450
+ const se_CreateApplicationCommand = async (input, context) => {
451
+ const b = core.requestBuilder(input, context);
452
+ const headers = {
453
+ "content-type": "application/json",
454
+ };
455
+ b.bp("/environments/{EnvironmentIdentifier}/applications");
456
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
457
+ let body;
458
+ body = JSON.stringify(smithyClient.take(input, {
459
+ ApiGatewayProxy: (_) => smithyClient._json(_),
460
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
461
+ Name: [],
462
+ ProxyType: [],
463
+ Tags: (_) => smithyClient._json(_),
464
+ VpcId: [],
465
+ }));
466
+ b.m("POST").h(headers).b(body);
467
+ return b.build();
1944
468
  };
1945
-
1946
- // src/commands/GetRouteCommand.ts
1947
-
1948
-
1949
-
1950
- var GetRouteCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1951
- return [
1952
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1953
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1954
- ];
1955
- }).s("RefactorSpaces", "GetRoute", {}).n("MigrationHubRefactorSpacesClient", "GetRouteCommand").f(void 0, GetRouteResponseFilterSensitiveLog).ser(se_GetRouteCommand).de(de_GetRouteCommand).build() {
1956
- static {
1957
- __name(this, "GetRouteCommand");
1958
- }
469
+ const se_CreateEnvironmentCommand = async (input, context) => {
470
+ const b = core.requestBuilder(input, context);
471
+ const headers = {
472
+ "content-type": "application/json",
473
+ };
474
+ b.bp("/environments");
475
+ let body;
476
+ body = JSON.stringify(smithyClient.take(input, {
477
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
478
+ Description: [],
479
+ Name: [],
480
+ NetworkFabricType: [],
481
+ Tags: (_) => smithyClient._json(_),
482
+ }));
483
+ b.m("POST").h(headers).b(body);
484
+ return b.build();
1959
485
  };
1960
-
1961
- // src/commands/GetServiceCommand.ts
1962
-
1963
-
1964
-
1965
- var GetServiceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1966
- return [
1967
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1968
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1969
- ];
1970
- }).s("RefactorSpaces", "GetService", {}).n("MigrationHubRefactorSpacesClient", "GetServiceCommand").f(void 0, GetServiceResponseFilterSensitiveLog).ser(se_GetServiceCommand).de(de_GetServiceCommand).build() {
1971
- static {
1972
- __name(this, "GetServiceCommand");
1973
- }
486
+ const se_CreateRouteCommand = async (input, context) => {
487
+ const b = core.requestBuilder(input, context);
488
+ const headers = {
489
+ "content-type": "application/json",
490
+ };
491
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
492
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
493
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
494
+ let body;
495
+ body = JSON.stringify(smithyClient.take(input, {
496
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
497
+ DefaultRoute: (_) => smithyClient._json(_),
498
+ RouteType: [],
499
+ ServiceIdentifier: [],
500
+ Tags: (_) => smithyClient._json(_),
501
+ UriPathRoute: (_) => smithyClient._json(_),
502
+ }));
503
+ b.m("POST").h(headers).b(body);
504
+ return b.build();
1974
505
  };
1975
-
1976
- // src/commands/ListApplicationsCommand.ts
1977
-
1978
-
1979
-
1980
- var ListApplicationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1981
- return [
1982
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1983
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1984
- ];
1985
- }).s("RefactorSpaces", "ListApplications", {}).n("MigrationHubRefactorSpacesClient", "ListApplicationsCommand").f(void 0, ListApplicationsResponseFilterSensitiveLog).ser(se_ListApplicationsCommand).de(de_ListApplicationsCommand).build() {
1986
- static {
1987
- __name(this, "ListApplicationsCommand");
1988
- }
506
+ const se_CreateServiceCommand = async (input, context) => {
507
+ const b = core.requestBuilder(input, context);
508
+ const headers = {
509
+ "content-type": "application/json",
510
+ };
511
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
512
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
513
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
514
+ let body;
515
+ body = JSON.stringify(smithyClient.take(input, {
516
+ ClientToken: [true, (_) => _ ?? uuid.v4()],
517
+ Description: [],
518
+ EndpointType: [],
519
+ LambdaEndpoint: (_) => smithyClient._json(_),
520
+ Name: [],
521
+ Tags: (_) => smithyClient._json(_),
522
+ UrlEndpoint: (_) => smithyClient._json(_),
523
+ VpcId: [],
524
+ }));
525
+ b.m("POST").h(headers).b(body);
526
+ return b.build();
1989
527
  };
1990
-
1991
- // src/commands/ListEnvironmentsCommand.ts
1992
-
1993
-
1994
-
1995
- var ListEnvironmentsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1996
- return [
1997
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1998
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1999
- ];
2000
- }).s("RefactorSpaces", "ListEnvironments", {}).n("MigrationHubRefactorSpacesClient", "ListEnvironmentsCommand").f(void 0, ListEnvironmentsResponseFilterSensitiveLog).ser(se_ListEnvironmentsCommand).de(de_ListEnvironmentsCommand).build() {
2001
- static {
2002
- __name(this, "ListEnvironmentsCommand");
2003
- }
528
+ const se_DeleteApplicationCommand = async (input, context) => {
529
+ const b = core.requestBuilder(input, context);
530
+ const headers = {};
531
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
532
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
533
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
534
+ let body;
535
+ b.m("DELETE").h(headers).b(body);
536
+ return b.build();
2004
537
  };
2005
-
2006
- // src/commands/ListEnvironmentVpcsCommand.ts
2007
-
2008
-
2009
-
2010
- var ListEnvironmentVpcsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2011
- return [
2012
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2013
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2014
- ];
2015
- }).s("RefactorSpaces", "ListEnvironmentVpcs", {}).n("MigrationHubRefactorSpacesClient", "ListEnvironmentVpcsCommand").f(void 0, void 0).ser(se_ListEnvironmentVpcsCommand).de(de_ListEnvironmentVpcsCommand).build() {
2016
- static {
2017
- __name(this, "ListEnvironmentVpcsCommand");
2018
- }
538
+ const se_DeleteEnvironmentCommand = async (input, context) => {
539
+ const b = core.requestBuilder(input, context);
540
+ const headers = {};
541
+ b.bp("/environments/{EnvironmentIdentifier}");
542
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
543
+ let body;
544
+ b.m("DELETE").h(headers).b(body);
545
+ return b.build();
2019
546
  };
2020
-
2021
- // src/commands/ListRoutesCommand.ts
2022
-
2023
-
2024
-
2025
- var ListRoutesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2026
- return [
2027
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2028
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2029
- ];
2030
- }).s("RefactorSpaces", "ListRoutes", {}).n("MigrationHubRefactorSpacesClient", "ListRoutesCommand").f(void 0, ListRoutesResponseFilterSensitiveLog).ser(se_ListRoutesCommand).de(de_ListRoutesCommand).build() {
2031
- static {
2032
- __name(this, "ListRoutesCommand");
2033
- }
547
+ const se_DeleteResourcePolicyCommand = async (input, context) => {
548
+ const b = core.requestBuilder(input, context);
549
+ const headers = {};
550
+ b.bp("/resourcepolicy/{Identifier}");
551
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
552
+ let body;
553
+ b.m("DELETE").h(headers).b(body);
554
+ return b.build();
2034
555
  };
2035
-
2036
- // src/commands/ListServicesCommand.ts
2037
-
2038
-
2039
-
2040
- var ListServicesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2041
- return [
2042
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2043
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2044
- ];
2045
- }).s("RefactorSpaces", "ListServices", {}).n("MigrationHubRefactorSpacesClient", "ListServicesCommand").f(void 0, ListServicesResponseFilterSensitiveLog).ser(se_ListServicesCommand).de(de_ListServicesCommand).build() {
2046
- static {
2047
- __name(this, "ListServicesCommand");
2048
- }
556
+ const se_DeleteRouteCommand = async (input, context) => {
557
+ const b = core.requestBuilder(input, context);
558
+ const headers = {};
559
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
560
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
561
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
562
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
563
+ let body;
564
+ b.m("DELETE").h(headers).b(body);
565
+ return b.build();
2049
566
  };
2050
-
2051
- // src/commands/ListTagsForResourceCommand.ts
2052
-
2053
-
2054
-
2055
- var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2056
- return [
2057
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2058
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2059
- ];
2060
- }).s("RefactorSpaces", "ListTagsForResource", {}).n("MigrationHubRefactorSpacesClient", "ListTagsForResourceCommand").f(void 0, ListTagsForResourceResponseFilterSensitiveLog).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
2061
- static {
2062
- __name(this, "ListTagsForResourceCommand");
2063
- }
567
+ const se_DeleteServiceCommand = async (input, context) => {
568
+ const b = core.requestBuilder(input, context);
569
+ const headers = {};
570
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
571
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
572
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
573
+ b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
574
+ let body;
575
+ b.m("DELETE").h(headers).b(body);
576
+ return b.build();
2064
577
  };
2065
-
2066
- // src/commands/PutResourcePolicyCommand.ts
2067
-
2068
-
2069
-
2070
- var PutResourcePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2071
- return [
2072
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2073
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2074
- ];
2075
- }).s("RefactorSpaces", "PutResourcePolicy", {}).n("MigrationHubRefactorSpacesClient", "PutResourcePolicyCommand").f(void 0, void 0).ser(se_PutResourcePolicyCommand).de(de_PutResourcePolicyCommand).build() {
2076
- static {
2077
- __name(this, "PutResourcePolicyCommand");
2078
- }
578
+ const se_GetApplicationCommand = async (input, context) => {
579
+ const b = core.requestBuilder(input, context);
580
+ const headers = {};
581
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}");
582
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
583
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
584
+ let body;
585
+ b.m("GET").h(headers).b(body);
586
+ return b.build();
2079
587
  };
2080
-
2081
- // src/commands/TagResourceCommand.ts
2082
-
2083
-
2084
-
2085
- var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2086
- return [
2087
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2088
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2089
- ];
2090
- }).s("RefactorSpaces", "TagResource", {}).n("MigrationHubRefactorSpacesClient", "TagResourceCommand").f(TagResourceRequestFilterSensitiveLog, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
2091
- static {
2092
- __name(this, "TagResourceCommand");
2093
- }
588
+ const se_GetEnvironmentCommand = async (input, context) => {
589
+ const b = core.requestBuilder(input, context);
590
+ const headers = {};
591
+ b.bp("/environments/{EnvironmentIdentifier}");
592
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
593
+ let body;
594
+ b.m("GET").h(headers).b(body);
595
+ return b.build();
2094
596
  };
2095
-
2096
- // src/commands/UntagResourceCommand.ts
2097
-
2098
-
2099
-
2100
- var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2101
- return [
2102
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2103
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2104
- ];
2105
- }).s("RefactorSpaces", "UntagResource", {}).n("MigrationHubRefactorSpacesClient", "UntagResourceCommand").f(UntagResourceRequestFilterSensitiveLog, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
2106
- static {
2107
- __name(this, "UntagResourceCommand");
2108
- }
597
+ const se_GetResourcePolicyCommand = async (input, context) => {
598
+ const b = core.requestBuilder(input, context);
599
+ const headers = {};
600
+ b.bp("/resourcepolicy/{Identifier}");
601
+ b.p("Identifier", () => input.Identifier, "{Identifier}", false);
602
+ let body;
603
+ b.m("GET").h(headers).b(body);
604
+ return b.build();
2109
605
  };
2110
-
2111
- // src/commands/UpdateRouteCommand.ts
2112
-
2113
-
2114
-
2115
- var UpdateRouteCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2116
- return [
2117
- (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2118
- (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2119
- ];
2120
- }).s("RefactorSpaces", "UpdateRoute", {}).n("MigrationHubRefactorSpacesClient", "UpdateRouteCommand").f(void 0, void 0).ser(se_UpdateRouteCommand).de(de_UpdateRouteCommand).build() {
2121
- static {
2122
- __name(this, "UpdateRouteCommand");
2123
- }
606
+ const se_GetRouteCommand = async (input, context) => {
607
+ const b = core.requestBuilder(input, context);
608
+ const headers = {};
609
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
610
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
611
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
612
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
613
+ let body;
614
+ b.m("GET").h(headers).b(body);
615
+ return b.build();
2124
616
  };
617
+ const se_GetServiceCommand = async (input, context) => {
618
+ const b = core.requestBuilder(input, context);
619
+ const headers = {};
620
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services/{ServiceIdentifier}");
621
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
622
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
623
+ b.p("ServiceIdentifier", () => input.ServiceIdentifier, "{ServiceIdentifier}", false);
624
+ let body;
625
+ b.m("GET").h(headers).b(body);
626
+ return b.build();
627
+ };
628
+ const se_ListApplicationsCommand = async (input, context) => {
629
+ const b = core.requestBuilder(input, context);
630
+ const headers = {};
631
+ b.bp("/environments/{EnvironmentIdentifier}/applications");
632
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
633
+ const query = smithyClient.map({
634
+ [_nT]: [, input[_NT]],
635
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
636
+ });
637
+ let body;
638
+ b.m("GET").h(headers).q(query).b(body);
639
+ return b.build();
640
+ };
641
+ const se_ListEnvironmentsCommand = async (input, context) => {
642
+ const b = core.requestBuilder(input, context);
643
+ const headers = {};
644
+ b.bp("/environments");
645
+ const query = smithyClient.map({
646
+ [_nT]: [, input[_NT]],
647
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
648
+ });
649
+ let body;
650
+ b.m("GET").h(headers).q(query).b(body);
651
+ return b.build();
652
+ };
653
+ const se_ListEnvironmentVpcsCommand = async (input, context) => {
654
+ const b = core.requestBuilder(input, context);
655
+ const headers = {};
656
+ b.bp("/environments/{EnvironmentIdentifier}/vpcs");
657
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
658
+ const query = smithyClient.map({
659
+ [_nT]: [, input[_NT]],
660
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
661
+ });
662
+ let body;
663
+ b.m("GET").h(headers).q(query).b(body);
664
+ return b.build();
665
+ };
666
+ const se_ListRoutesCommand = async (input, context) => {
667
+ const b = core.requestBuilder(input, context);
668
+ const headers = {};
669
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes");
670
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
671
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
672
+ const query = smithyClient.map({
673
+ [_nT]: [, input[_NT]],
674
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
675
+ });
676
+ let body;
677
+ b.m("GET").h(headers).q(query).b(body);
678
+ return b.build();
679
+ };
680
+ const se_ListServicesCommand = async (input, context) => {
681
+ const b = core.requestBuilder(input, context);
682
+ const headers = {};
683
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/services");
684
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
685
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
686
+ const query = smithyClient.map({
687
+ [_nT]: [, input[_NT]],
688
+ [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
689
+ });
690
+ let body;
691
+ b.m("GET").h(headers).q(query).b(body);
692
+ return b.build();
693
+ };
694
+ const se_ListTagsForResourceCommand = async (input, context) => {
695
+ const b = core.requestBuilder(input, context);
696
+ const headers = {};
697
+ b.bp("/tags/{ResourceArn}");
698
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
699
+ let body;
700
+ b.m("GET").h(headers).b(body);
701
+ return b.build();
702
+ };
703
+ const se_PutResourcePolicyCommand = async (input, context) => {
704
+ const b = core.requestBuilder(input, context);
705
+ const headers = {
706
+ "content-type": "application/json",
707
+ };
708
+ b.bp("/resourcepolicy");
709
+ let body;
710
+ body = JSON.stringify(smithyClient.take(input, {
711
+ Policy: [],
712
+ ResourceArn: [],
713
+ }));
714
+ b.m("PUT").h(headers).b(body);
715
+ return b.build();
716
+ };
717
+ const se_TagResourceCommand = async (input, context) => {
718
+ const b = core.requestBuilder(input, context);
719
+ const headers = {
720
+ "content-type": "application/json",
721
+ };
722
+ b.bp("/tags/{ResourceArn}");
723
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
724
+ let body;
725
+ body = JSON.stringify(smithyClient.take(input, {
726
+ Tags: (_) => smithyClient._json(_),
727
+ }));
728
+ b.m("POST").h(headers).b(body);
729
+ return b.build();
730
+ };
731
+ const se_UntagResourceCommand = async (input, context) => {
732
+ const b = core.requestBuilder(input, context);
733
+ const headers = {};
734
+ b.bp("/tags/{ResourceArn}");
735
+ b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
736
+ const query = smithyClient.map({
737
+ [_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
738
+ });
739
+ let body;
740
+ b.m("DELETE").h(headers).q(query).b(body);
741
+ return b.build();
742
+ };
743
+ const se_UpdateRouteCommand = async (input, context) => {
744
+ const b = core.requestBuilder(input, context);
745
+ const headers = {
746
+ "content-type": "application/json",
747
+ };
748
+ b.bp("/environments/{EnvironmentIdentifier}/applications/{ApplicationIdentifier}/routes/{RouteIdentifier}");
749
+ b.p("EnvironmentIdentifier", () => input.EnvironmentIdentifier, "{EnvironmentIdentifier}", false);
750
+ b.p("ApplicationIdentifier", () => input.ApplicationIdentifier, "{ApplicationIdentifier}", false);
751
+ b.p("RouteIdentifier", () => input.RouteIdentifier, "{RouteIdentifier}", false);
752
+ let body;
753
+ body = JSON.stringify(smithyClient.take(input, {
754
+ ActivationState: [],
755
+ }));
756
+ b.m("PATCH").h(headers).b(body);
757
+ return b.build();
758
+ };
759
+ const de_CreateApplicationCommand = async (output, context) => {
760
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
761
+ return de_CommandError(output, context);
762
+ }
763
+ const contents = smithyClient.map({
764
+ $metadata: deserializeMetadata(output),
765
+ });
766
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
767
+ const doc = smithyClient.take(data, {
768
+ ApiGatewayProxy: smithyClient._json,
769
+ ApplicationId: smithyClient.expectString,
770
+ Arn: smithyClient.expectString,
771
+ CreatedByAccountId: smithyClient.expectString,
772
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
773
+ EnvironmentId: smithyClient.expectString,
774
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
775
+ Name: smithyClient.expectString,
776
+ OwnerAccountId: smithyClient.expectString,
777
+ ProxyType: smithyClient.expectString,
778
+ State: smithyClient.expectString,
779
+ Tags: smithyClient._json,
780
+ VpcId: smithyClient.expectString,
781
+ });
782
+ Object.assign(contents, doc);
783
+ return contents;
784
+ };
785
+ const de_CreateEnvironmentCommand = async (output, context) => {
786
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
787
+ return de_CommandError(output, context);
788
+ }
789
+ const contents = smithyClient.map({
790
+ $metadata: deserializeMetadata(output),
791
+ });
792
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
793
+ const doc = smithyClient.take(data, {
794
+ Arn: smithyClient.expectString,
795
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
796
+ Description: smithyClient.expectString,
797
+ EnvironmentId: smithyClient.expectString,
798
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
799
+ Name: smithyClient.expectString,
800
+ NetworkFabricType: smithyClient.expectString,
801
+ OwnerAccountId: smithyClient.expectString,
802
+ State: smithyClient.expectString,
803
+ Tags: smithyClient._json,
804
+ });
805
+ Object.assign(contents, doc);
806
+ return contents;
807
+ };
808
+ const de_CreateRouteCommand = async (output, context) => {
809
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
810
+ return de_CommandError(output, context);
811
+ }
812
+ const contents = smithyClient.map({
813
+ $metadata: deserializeMetadata(output),
814
+ });
815
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
816
+ const doc = smithyClient.take(data, {
817
+ ApplicationId: smithyClient.expectString,
818
+ Arn: smithyClient.expectString,
819
+ CreatedByAccountId: smithyClient.expectString,
820
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
821
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
822
+ OwnerAccountId: smithyClient.expectString,
823
+ RouteId: smithyClient.expectString,
824
+ RouteType: smithyClient.expectString,
825
+ ServiceId: smithyClient.expectString,
826
+ State: smithyClient.expectString,
827
+ Tags: smithyClient._json,
828
+ UriPathRoute: smithyClient._json,
829
+ });
830
+ Object.assign(contents, doc);
831
+ return contents;
832
+ };
833
+ const de_CreateServiceCommand = async (output, context) => {
834
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
835
+ return de_CommandError(output, context);
836
+ }
837
+ const contents = smithyClient.map({
838
+ $metadata: deserializeMetadata(output),
839
+ });
840
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
841
+ const doc = smithyClient.take(data, {
842
+ ApplicationId: smithyClient.expectString,
843
+ Arn: smithyClient.expectString,
844
+ CreatedByAccountId: smithyClient.expectString,
845
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
846
+ Description: smithyClient.expectString,
847
+ EndpointType: smithyClient.expectString,
848
+ EnvironmentId: smithyClient.expectString,
849
+ LambdaEndpoint: smithyClient._json,
850
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
851
+ Name: smithyClient.expectString,
852
+ OwnerAccountId: smithyClient.expectString,
853
+ ServiceId: smithyClient.expectString,
854
+ State: smithyClient.expectString,
855
+ Tags: smithyClient._json,
856
+ UrlEndpoint: smithyClient._json,
857
+ VpcId: smithyClient.expectString,
858
+ });
859
+ Object.assign(contents, doc);
860
+ return contents;
861
+ };
862
+ const de_DeleteApplicationCommand = async (output, context) => {
863
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
864
+ return de_CommandError(output, context);
865
+ }
866
+ const contents = smithyClient.map({
867
+ $metadata: deserializeMetadata(output),
868
+ });
869
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
870
+ const doc = smithyClient.take(data, {
871
+ ApplicationId: smithyClient.expectString,
872
+ Arn: smithyClient.expectString,
873
+ EnvironmentId: smithyClient.expectString,
874
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
875
+ Name: smithyClient.expectString,
876
+ State: smithyClient.expectString,
877
+ });
878
+ Object.assign(contents, doc);
879
+ return contents;
880
+ };
881
+ const de_DeleteEnvironmentCommand = async (output, context) => {
882
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
883
+ return de_CommandError(output, context);
884
+ }
885
+ const contents = smithyClient.map({
886
+ $metadata: deserializeMetadata(output),
887
+ });
888
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
889
+ const doc = smithyClient.take(data, {
890
+ Arn: smithyClient.expectString,
891
+ EnvironmentId: smithyClient.expectString,
892
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
893
+ Name: smithyClient.expectString,
894
+ State: smithyClient.expectString,
895
+ });
896
+ Object.assign(contents, doc);
897
+ return contents;
898
+ };
899
+ const de_DeleteResourcePolicyCommand = async (output, context) => {
900
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
901
+ return de_CommandError(output, context);
902
+ }
903
+ const contents = smithyClient.map({
904
+ $metadata: deserializeMetadata(output),
905
+ });
906
+ await smithyClient.collectBody(output.body, context);
907
+ return contents;
908
+ };
909
+ const de_DeleteRouteCommand = async (output, context) => {
910
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
911
+ return de_CommandError(output, context);
912
+ }
913
+ const contents = smithyClient.map({
914
+ $metadata: deserializeMetadata(output),
915
+ });
916
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
917
+ const doc = smithyClient.take(data, {
918
+ ApplicationId: smithyClient.expectString,
919
+ Arn: smithyClient.expectString,
920
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
921
+ RouteId: smithyClient.expectString,
922
+ ServiceId: smithyClient.expectString,
923
+ State: smithyClient.expectString,
924
+ });
925
+ Object.assign(contents, doc);
926
+ return contents;
927
+ };
928
+ const de_DeleteServiceCommand = async (output, context) => {
929
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
930
+ return de_CommandError(output, context);
931
+ }
932
+ const contents = smithyClient.map({
933
+ $metadata: deserializeMetadata(output),
934
+ });
935
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
936
+ const doc = smithyClient.take(data, {
937
+ ApplicationId: smithyClient.expectString,
938
+ Arn: smithyClient.expectString,
939
+ EnvironmentId: smithyClient.expectString,
940
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
941
+ Name: smithyClient.expectString,
942
+ ServiceId: smithyClient.expectString,
943
+ State: smithyClient.expectString,
944
+ });
945
+ Object.assign(contents, doc);
946
+ return contents;
947
+ };
948
+ const de_GetApplicationCommand = async (output, context) => {
949
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
950
+ return de_CommandError(output, context);
951
+ }
952
+ const contents = smithyClient.map({
953
+ $metadata: deserializeMetadata(output),
954
+ });
955
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
956
+ const doc = smithyClient.take(data, {
957
+ ApiGatewayProxy: smithyClient._json,
958
+ ApplicationId: smithyClient.expectString,
959
+ Arn: smithyClient.expectString,
960
+ CreatedByAccountId: smithyClient.expectString,
961
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
962
+ EnvironmentId: smithyClient.expectString,
963
+ Error: smithyClient._json,
964
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
965
+ Name: smithyClient.expectString,
966
+ OwnerAccountId: smithyClient.expectString,
967
+ ProxyType: smithyClient.expectString,
968
+ State: smithyClient.expectString,
969
+ Tags: smithyClient._json,
970
+ VpcId: smithyClient.expectString,
971
+ });
972
+ Object.assign(contents, doc);
973
+ return contents;
974
+ };
975
+ const de_GetEnvironmentCommand = async (output, context) => {
976
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
977
+ return de_CommandError(output, context);
978
+ }
979
+ const contents = smithyClient.map({
980
+ $metadata: deserializeMetadata(output),
981
+ });
982
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
983
+ const doc = smithyClient.take(data, {
984
+ Arn: smithyClient.expectString,
985
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
986
+ Description: smithyClient.expectString,
987
+ EnvironmentId: smithyClient.expectString,
988
+ Error: smithyClient._json,
989
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
990
+ Name: smithyClient.expectString,
991
+ NetworkFabricType: smithyClient.expectString,
992
+ OwnerAccountId: smithyClient.expectString,
993
+ State: smithyClient.expectString,
994
+ Tags: smithyClient._json,
995
+ TransitGatewayId: smithyClient.expectString,
996
+ });
997
+ Object.assign(contents, doc);
998
+ return contents;
999
+ };
1000
+ const de_GetResourcePolicyCommand = async (output, context) => {
1001
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1002
+ return de_CommandError(output, context);
1003
+ }
1004
+ const contents = smithyClient.map({
1005
+ $metadata: deserializeMetadata(output),
1006
+ });
1007
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1008
+ const doc = smithyClient.take(data, {
1009
+ Policy: smithyClient.expectString,
1010
+ });
1011
+ Object.assign(contents, doc);
1012
+ return contents;
1013
+ };
1014
+ const de_GetRouteCommand = async (output, context) => {
1015
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1016
+ return de_CommandError(output, context);
1017
+ }
1018
+ const contents = smithyClient.map({
1019
+ $metadata: deserializeMetadata(output),
1020
+ });
1021
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1022
+ const doc = smithyClient.take(data, {
1023
+ AppendSourcePath: smithyClient.expectBoolean,
1024
+ ApplicationId: smithyClient.expectString,
1025
+ Arn: smithyClient.expectString,
1026
+ CreatedByAccountId: smithyClient.expectString,
1027
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1028
+ EnvironmentId: smithyClient.expectString,
1029
+ Error: smithyClient._json,
1030
+ IncludeChildPaths: smithyClient.expectBoolean,
1031
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1032
+ Methods: smithyClient._json,
1033
+ OwnerAccountId: smithyClient.expectString,
1034
+ PathResourceToId: smithyClient._json,
1035
+ RouteId: smithyClient.expectString,
1036
+ RouteType: smithyClient.expectString,
1037
+ ServiceId: smithyClient.expectString,
1038
+ SourcePath: smithyClient.expectString,
1039
+ State: smithyClient.expectString,
1040
+ Tags: smithyClient._json,
1041
+ });
1042
+ Object.assign(contents, doc);
1043
+ return contents;
1044
+ };
1045
+ const de_GetServiceCommand = async (output, context) => {
1046
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1047
+ return de_CommandError(output, context);
1048
+ }
1049
+ const contents = smithyClient.map({
1050
+ $metadata: deserializeMetadata(output),
1051
+ });
1052
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1053
+ const doc = smithyClient.take(data, {
1054
+ ApplicationId: smithyClient.expectString,
1055
+ Arn: smithyClient.expectString,
1056
+ CreatedByAccountId: smithyClient.expectString,
1057
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1058
+ Description: smithyClient.expectString,
1059
+ EndpointType: smithyClient.expectString,
1060
+ EnvironmentId: smithyClient.expectString,
1061
+ Error: smithyClient._json,
1062
+ LambdaEndpoint: smithyClient._json,
1063
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1064
+ Name: smithyClient.expectString,
1065
+ OwnerAccountId: smithyClient.expectString,
1066
+ ServiceId: smithyClient.expectString,
1067
+ State: smithyClient.expectString,
1068
+ Tags: smithyClient._json,
1069
+ UrlEndpoint: smithyClient._json,
1070
+ VpcId: smithyClient.expectString,
1071
+ });
1072
+ Object.assign(contents, doc);
1073
+ return contents;
1074
+ };
1075
+ const de_ListApplicationsCommand = async (output, context) => {
1076
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1077
+ return de_CommandError(output, context);
1078
+ }
1079
+ const contents = smithyClient.map({
1080
+ $metadata: deserializeMetadata(output),
1081
+ });
1082
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1083
+ const doc = smithyClient.take(data, {
1084
+ ApplicationSummaryList: (_) => de_ApplicationSummaries(_),
1085
+ NextToken: smithyClient.expectString,
1086
+ });
1087
+ Object.assign(contents, doc);
1088
+ return contents;
1089
+ };
1090
+ const de_ListEnvironmentsCommand = async (output, context) => {
1091
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1092
+ return de_CommandError(output, context);
1093
+ }
1094
+ const contents = smithyClient.map({
1095
+ $metadata: deserializeMetadata(output),
1096
+ });
1097
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1098
+ const doc = smithyClient.take(data, {
1099
+ EnvironmentSummaryList: (_) => de_EnvironmentSummaries(_),
1100
+ NextToken: smithyClient.expectString,
1101
+ });
1102
+ Object.assign(contents, doc);
1103
+ return contents;
1104
+ };
1105
+ const de_ListEnvironmentVpcsCommand = async (output, context) => {
1106
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1107
+ return de_CommandError(output, context);
1108
+ }
1109
+ const contents = smithyClient.map({
1110
+ $metadata: deserializeMetadata(output),
1111
+ });
1112
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1113
+ const doc = smithyClient.take(data, {
1114
+ EnvironmentVpcList: (_) => de_EnvironmentVpcs(_),
1115
+ NextToken: smithyClient.expectString,
1116
+ });
1117
+ Object.assign(contents, doc);
1118
+ return contents;
1119
+ };
1120
+ const de_ListRoutesCommand = async (output, context) => {
1121
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1122
+ return de_CommandError(output, context);
1123
+ }
1124
+ const contents = smithyClient.map({
1125
+ $metadata: deserializeMetadata(output),
1126
+ });
1127
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1128
+ const doc = smithyClient.take(data, {
1129
+ NextToken: smithyClient.expectString,
1130
+ RouteSummaryList: (_) => de_RouteSummaries(_),
1131
+ });
1132
+ Object.assign(contents, doc);
1133
+ return contents;
1134
+ };
1135
+ const de_ListServicesCommand = async (output, context) => {
1136
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1137
+ return de_CommandError(output, context);
1138
+ }
1139
+ const contents = smithyClient.map({
1140
+ $metadata: deserializeMetadata(output),
1141
+ });
1142
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1143
+ const doc = smithyClient.take(data, {
1144
+ NextToken: smithyClient.expectString,
1145
+ ServiceSummaryList: (_) => de_ServiceSummaries(_),
1146
+ });
1147
+ Object.assign(contents, doc);
1148
+ return contents;
1149
+ };
1150
+ const de_ListTagsForResourceCommand = async (output, context) => {
1151
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1152
+ return de_CommandError(output, context);
1153
+ }
1154
+ const contents = smithyClient.map({
1155
+ $metadata: deserializeMetadata(output),
1156
+ });
1157
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1158
+ const doc = smithyClient.take(data, {
1159
+ Tags: smithyClient._json,
1160
+ });
1161
+ Object.assign(contents, doc);
1162
+ return contents;
1163
+ };
1164
+ const de_PutResourcePolicyCommand = async (output, context) => {
1165
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1166
+ return de_CommandError(output, context);
1167
+ }
1168
+ const contents = smithyClient.map({
1169
+ $metadata: deserializeMetadata(output),
1170
+ });
1171
+ await smithyClient.collectBody(output.body, context);
1172
+ return contents;
1173
+ };
1174
+ const de_TagResourceCommand = async (output, context) => {
1175
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1176
+ return de_CommandError(output, context);
1177
+ }
1178
+ const contents = smithyClient.map({
1179
+ $metadata: deserializeMetadata(output),
1180
+ });
1181
+ await smithyClient.collectBody(output.body, context);
1182
+ return contents;
1183
+ };
1184
+ const de_UntagResourceCommand = async (output, context) => {
1185
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1186
+ return de_CommandError(output, context);
1187
+ }
1188
+ const contents = smithyClient.map({
1189
+ $metadata: deserializeMetadata(output),
1190
+ });
1191
+ await smithyClient.collectBody(output.body, context);
1192
+ return contents;
1193
+ };
1194
+ const de_UpdateRouteCommand = async (output, context) => {
1195
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1196
+ return de_CommandError(output, context);
1197
+ }
1198
+ const contents = smithyClient.map({
1199
+ $metadata: deserializeMetadata(output),
1200
+ });
1201
+ const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
1202
+ const doc = smithyClient.take(data, {
1203
+ ApplicationId: smithyClient.expectString,
1204
+ Arn: smithyClient.expectString,
1205
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1206
+ RouteId: smithyClient.expectString,
1207
+ ServiceId: smithyClient.expectString,
1208
+ State: smithyClient.expectString,
1209
+ });
1210
+ Object.assign(contents, doc);
1211
+ return contents;
1212
+ };
1213
+ const de_CommandError = async (output, context) => {
1214
+ const parsedOutput = {
1215
+ ...output,
1216
+ body: await core$1.parseJsonErrorBody(output.body, context),
1217
+ };
1218
+ const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
1219
+ switch (errorCode) {
1220
+ case "AccessDeniedException":
1221
+ case "com.amazonaws.migrationhubrefactorspaces#AccessDeniedException":
1222
+ throw await de_AccessDeniedExceptionRes(parsedOutput);
1223
+ case "ConflictException":
1224
+ case "com.amazonaws.migrationhubrefactorspaces#ConflictException":
1225
+ throw await de_ConflictExceptionRes(parsedOutput);
1226
+ case "InternalServerException":
1227
+ case "com.amazonaws.migrationhubrefactorspaces#InternalServerException":
1228
+ throw await de_InternalServerExceptionRes(parsedOutput);
1229
+ case "ResourceNotFoundException":
1230
+ case "com.amazonaws.migrationhubrefactorspaces#ResourceNotFoundException":
1231
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput);
1232
+ case "ServiceQuotaExceededException":
1233
+ case "com.amazonaws.migrationhubrefactorspaces#ServiceQuotaExceededException":
1234
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
1235
+ case "ThrottlingException":
1236
+ case "com.amazonaws.migrationhubrefactorspaces#ThrottlingException":
1237
+ throw await de_ThrottlingExceptionRes(parsedOutput);
1238
+ case "ValidationException":
1239
+ case "com.amazonaws.migrationhubrefactorspaces#ValidationException":
1240
+ throw await de_ValidationExceptionRes(parsedOutput);
1241
+ case "InvalidResourcePolicyException":
1242
+ case "com.amazonaws.migrationhubrefactorspaces#InvalidResourcePolicyException":
1243
+ throw await de_InvalidResourcePolicyExceptionRes(parsedOutput);
1244
+ default:
1245
+ const parsedBody = parsedOutput.body;
1246
+ return throwDefaultError({
1247
+ output,
1248
+ parsedBody,
1249
+ errorCode,
1250
+ });
1251
+ }
1252
+ };
1253
+ const throwDefaultError = smithyClient.withBaseException(MigrationHubRefactorSpacesServiceException);
1254
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1255
+ const contents = smithyClient.map({});
1256
+ const data = parsedOutput.body;
1257
+ const doc = smithyClient.take(data, {
1258
+ Message: smithyClient.expectString,
1259
+ });
1260
+ Object.assign(contents, doc);
1261
+ const exception = new AccessDeniedException({
1262
+ $metadata: deserializeMetadata(parsedOutput),
1263
+ ...contents,
1264
+ });
1265
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1266
+ };
1267
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1268
+ const contents = smithyClient.map({});
1269
+ const data = parsedOutput.body;
1270
+ const doc = smithyClient.take(data, {
1271
+ Message: smithyClient.expectString,
1272
+ ResourceId: smithyClient.expectString,
1273
+ ResourceType: smithyClient.expectString,
1274
+ });
1275
+ Object.assign(contents, doc);
1276
+ const exception = new ConflictException({
1277
+ $metadata: deserializeMetadata(parsedOutput),
1278
+ ...contents,
1279
+ });
1280
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1281
+ };
1282
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1283
+ const contents = smithyClient.map({});
1284
+ const data = parsedOutput.body;
1285
+ const doc = smithyClient.take(data, {
1286
+ Message: smithyClient.expectString,
1287
+ });
1288
+ Object.assign(contents, doc);
1289
+ const exception = new InternalServerException({
1290
+ $metadata: deserializeMetadata(parsedOutput),
1291
+ ...contents,
1292
+ });
1293
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1294
+ };
1295
+ const de_InvalidResourcePolicyExceptionRes = async (parsedOutput, context) => {
1296
+ const contents = smithyClient.map({});
1297
+ const data = parsedOutput.body;
1298
+ const doc = smithyClient.take(data, {
1299
+ Message: smithyClient.expectString,
1300
+ });
1301
+ Object.assign(contents, doc);
1302
+ const exception = new InvalidResourcePolicyException({
1303
+ $metadata: deserializeMetadata(parsedOutput),
1304
+ ...contents,
1305
+ });
1306
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1307
+ };
1308
+ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1309
+ const contents = smithyClient.map({});
1310
+ const data = parsedOutput.body;
1311
+ const doc = smithyClient.take(data, {
1312
+ Message: smithyClient.expectString,
1313
+ ResourceId: smithyClient.expectString,
1314
+ ResourceType: smithyClient.expectString,
1315
+ });
1316
+ Object.assign(contents, doc);
1317
+ const exception = new ResourceNotFoundException({
1318
+ $metadata: deserializeMetadata(parsedOutput),
1319
+ ...contents,
1320
+ });
1321
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1322
+ };
1323
+ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1324
+ const contents = smithyClient.map({});
1325
+ const data = parsedOutput.body;
1326
+ const doc = smithyClient.take(data, {
1327
+ Message: smithyClient.expectString,
1328
+ QuotaCode: smithyClient.expectString,
1329
+ ResourceId: smithyClient.expectString,
1330
+ ResourceType: smithyClient.expectString,
1331
+ ServiceCode: smithyClient.expectString,
1332
+ });
1333
+ Object.assign(contents, doc);
1334
+ const exception = new ServiceQuotaExceededException({
1335
+ $metadata: deserializeMetadata(parsedOutput),
1336
+ ...contents,
1337
+ });
1338
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1339
+ };
1340
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1341
+ const contents = smithyClient.map({
1342
+ [_RAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
1343
+ });
1344
+ const data = parsedOutput.body;
1345
+ const doc = smithyClient.take(data, {
1346
+ Message: smithyClient.expectString,
1347
+ QuotaCode: smithyClient.expectString,
1348
+ ServiceCode: smithyClient.expectString,
1349
+ });
1350
+ Object.assign(contents, doc);
1351
+ const exception = new ThrottlingException({
1352
+ $metadata: deserializeMetadata(parsedOutput),
1353
+ ...contents,
1354
+ });
1355
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1356
+ };
1357
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1358
+ const contents = smithyClient.map({});
1359
+ const data = parsedOutput.body;
1360
+ const doc = smithyClient.take(data, {
1361
+ Message: smithyClient.expectString,
1362
+ });
1363
+ Object.assign(contents, doc);
1364
+ const exception = new ValidationException({
1365
+ $metadata: deserializeMetadata(parsedOutput),
1366
+ ...contents,
1367
+ });
1368
+ return smithyClient.decorateServiceException(exception, parsedOutput.body);
1369
+ };
1370
+ const de_ApplicationSummaries = (output, context) => {
1371
+ const retVal = (output || [])
1372
+ .filter((e) => e != null)
1373
+ .map((entry) => {
1374
+ return de_ApplicationSummary(entry);
1375
+ });
1376
+ return retVal;
1377
+ };
1378
+ const de_ApplicationSummary = (output, context) => {
1379
+ return smithyClient.take(output, {
1380
+ ApiGatewayProxy: smithyClient._json,
1381
+ ApplicationId: smithyClient.expectString,
1382
+ Arn: smithyClient.expectString,
1383
+ CreatedByAccountId: smithyClient.expectString,
1384
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1385
+ EnvironmentId: smithyClient.expectString,
1386
+ Error: smithyClient._json,
1387
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1388
+ Name: smithyClient.expectString,
1389
+ OwnerAccountId: smithyClient.expectString,
1390
+ ProxyType: smithyClient.expectString,
1391
+ State: smithyClient.expectString,
1392
+ Tags: smithyClient._json,
1393
+ VpcId: smithyClient.expectString,
1394
+ });
1395
+ };
1396
+ const de_EnvironmentSummaries = (output, context) => {
1397
+ const retVal = (output || [])
1398
+ .filter((e) => e != null)
1399
+ .map((entry) => {
1400
+ return de_EnvironmentSummary(entry);
1401
+ });
1402
+ return retVal;
1403
+ };
1404
+ const de_EnvironmentSummary = (output, context) => {
1405
+ return smithyClient.take(output, {
1406
+ Arn: smithyClient.expectString,
1407
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1408
+ Description: smithyClient.expectString,
1409
+ EnvironmentId: smithyClient.expectString,
1410
+ Error: smithyClient._json,
1411
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1412
+ Name: smithyClient.expectString,
1413
+ NetworkFabricType: smithyClient.expectString,
1414
+ OwnerAccountId: smithyClient.expectString,
1415
+ State: smithyClient.expectString,
1416
+ Tags: smithyClient._json,
1417
+ TransitGatewayId: smithyClient.expectString,
1418
+ });
1419
+ };
1420
+ const de_EnvironmentVpc = (output, context) => {
1421
+ return smithyClient.take(output, {
1422
+ AccountId: smithyClient.expectString,
1423
+ CidrBlocks: smithyClient._json,
1424
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1425
+ EnvironmentId: smithyClient.expectString,
1426
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1427
+ VpcId: smithyClient.expectString,
1428
+ VpcName: smithyClient.expectString,
1429
+ });
1430
+ };
1431
+ const de_EnvironmentVpcs = (output, context) => {
1432
+ const retVal = (output || [])
1433
+ .filter((e) => e != null)
1434
+ .map((entry) => {
1435
+ return de_EnvironmentVpc(entry);
1436
+ });
1437
+ return retVal;
1438
+ };
1439
+ const de_RouteSummaries = (output, context) => {
1440
+ const retVal = (output || [])
1441
+ .filter((e) => e != null)
1442
+ .map((entry) => {
1443
+ return de_RouteSummary(entry);
1444
+ });
1445
+ return retVal;
1446
+ };
1447
+ const de_RouteSummary = (output, context) => {
1448
+ return smithyClient.take(output, {
1449
+ AppendSourcePath: smithyClient.expectBoolean,
1450
+ ApplicationId: smithyClient.expectString,
1451
+ Arn: smithyClient.expectString,
1452
+ CreatedByAccountId: smithyClient.expectString,
1453
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1454
+ EnvironmentId: smithyClient.expectString,
1455
+ Error: smithyClient._json,
1456
+ IncludeChildPaths: smithyClient.expectBoolean,
1457
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1458
+ Methods: smithyClient._json,
1459
+ OwnerAccountId: smithyClient.expectString,
1460
+ PathResourceToId: smithyClient._json,
1461
+ RouteId: smithyClient.expectString,
1462
+ RouteType: smithyClient.expectString,
1463
+ ServiceId: smithyClient.expectString,
1464
+ SourcePath: smithyClient.expectString,
1465
+ State: smithyClient.expectString,
1466
+ Tags: smithyClient._json,
1467
+ });
1468
+ };
1469
+ const de_ServiceSummaries = (output, context) => {
1470
+ const retVal = (output || [])
1471
+ .filter((e) => e != null)
1472
+ .map((entry) => {
1473
+ return de_ServiceSummary(entry);
1474
+ });
1475
+ return retVal;
1476
+ };
1477
+ const de_ServiceSummary = (output, context) => {
1478
+ return smithyClient.take(output, {
1479
+ ApplicationId: smithyClient.expectString,
1480
+ Arn: smithyClient.expectString,
1481
+ CreatedByAccountId: smithyClient.expectString,
1482
+ CreatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1483
+ Description: smithyClient.expectString,
1484
+ EndpointType: smithyClient.expectString,
1485
+ EnvironmentId: smithyClient.expectString,
1486
+ Error: smithyClient._json,
1487
+ LambdaEndpoint: smithyClient._json,
1488
+ LastUpdatedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
1489
+ Name: smithyClient.expectString,
1490
+ OwnerAccountId: smithyClient.expectString,
1491
+ ServiceId: smithyClient.expectString,
1492
+ State: smithyClient.expectString,
1493
+ Tags: smithyClient._json,
1494
+ UrlEndpoint: smithyClient._json,
1495
+ VpcId: smithyClient.expectString,
1496
+ });
1497
+ };
1498
+ const deserializeMetadata = (output) => ({
1499
+ httpStatusCode: output.statusCode,
1500
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
1501
+ extendedRequestId: output.headers["x-amz-id-2"],
1502
+ cfId: output.headers["x-amz-cf-id"],
1503
+ });
1504
+ const _MR = "MaxResults";
1505
+ const _NT = "NextToken";
1506
+ const _RAS = "RetryAfterSeconds";
1507
+ const _TK = "TagKeys";
1508
+ const _mR = "maxResults";
1509
+ const _nT = "nextToken";
1510
+ const _ra = "retry-after";
1511
+ const _tK = "tagKeys";
1512
+
1513
+ class CreateApplicationCommand extends smithyClient.Command
1514
+ .classBuilder()
1515
+ .ep(commonParams)
1516
+ .m(function (Command, cs, config, o) {
1517
+ return [
1518
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1519
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1520
+ ];
1521
+ })
1522
+ .s("RefactorSpaces", "CreateApplication", {})
1523
+ .n("MigrationHubRefactorSpacesClient", "CreateApplicationCommand")
1524
+ .f(CreateApplicationRequestFilterSensitiveLog, CreateApplicationResponseFilterSensitiveLog)
1525
+ .ser(se_CreateApplicationCommand)
1526
+ .de(de_CreateApplicationCommand)
1527
+ .build() {
1528
+ }
1529
+
1530
+ class CreateEnvironmentCommand extends smithyClient.Command
1531
+ .classBuilder()
1532
+ .ep(commonParams)
1533
+ .m(function (Command, cs, config, o) {
1534
+ return [
1535
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1536
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1537
+ ];
1538
+ })
1539
+ .s("RefactorSpaces", "CreateEnvironment", {})
1540
+ .n("MigrationHubRefactorSpacesClient", "CreateEnvironmentCommand")
1541
+ .f(CreateEnvironmentRequestFilterSensitiveLog, CreateEnvironmentResponseFilterSensitiveLog)
1542
+ .ser(se_CreateEnvironmentCommand)
1543
+ .de(de_CreateEnvironmentCommand)
1544
+ .build() {
1545
+ }
1546
+
1547
+ class CreateRouteCommand extends smithyClient.Command
1548
+ .classBuilder()
1549
+ .ep(commonParams)
1550
+ .m(function (Command, cs, config, o) {
1551
+ return [
1552
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1553
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1554
+ ];
1555
+ })
1556
+ .s("RefactorSpaces", "CreateRoute", {})
1557
+ .n("MigrationHubRefactorSpacesClient", "CreateRouteCommand")
1558
+ .f(CreateRouteRequestFilterSensitiveLog, CreateRouteResponseFilterSensitiveLog)
1559
+ .ser(se_CreateRouteCommand)
1560
+ .de(de_CreateRouteCommand)
1561
+ .build() {
1562
+ }
1563
+
1564
+ class CreateServiceCommand extends smithyClient.Command
1565
+ .classBuilder()
1566
+ .ep(commonParams)
1567
+ .m(function (Command, cs, config, o) {
1568
+ return [
1569
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1570
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1571
+ ];
1572
+ })
1573
+ .s("RefactorSpaces", "CreateService", {})
1574
+ .n("MigrationHubRefactorSpacesClient", "CreateServiceCommand")
1575
+ .f(CreateServiceRequestFilterSensitiveLog, CreateServiceResponseFilterSensitiveLog)
1576
+ .ser(se_CreateServiceCommand)
1577
+ .de(de_CreateServiceCommand)
1578
+ .build() {
1579
+ }
1580
+
1581
+ class DeleteApplicationCommand extends smithyClient.Command
1582
+ .classBuilder()
1583
+ .ep(commonParams)
1584
+ .m(function (Command, cs, config, o) {
1585
+ return [
1586
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1587
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1588
+ ];
1589
+ })
1590
+ .s("RefactorSpaces", "DeleteApplication", {})
1591
+ .n("MigrationHubRefactorSpacesClient", "DeleteApplicationCommand")
1592
+ .f(void 0, void 0)
1593
+ .ser(se_DeleteApplicationCommand)
1594
+ .de(de_DeleteApplicationCommand)
1595
+ .build() {
1596
+ }
1597
+
1598
+ class DeleteEnvironmentCommand extends smithyClient.Command
1599
+ .classBuilder()
1600
+ .ep(commonParams)
1601
+ .m(function (Command, cs, config, o) {
1602
+ return [
1603
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1604
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1605
+ ];
1606
+ })
1607
+ .s("RefactorSpaces", "DeleteEnvironment", {})
1608
+ .n("MigrationHubRefactorSpacesClient", "DeleteEnvironmentCommand")
1609
+ .f(void 0, void 0)
1610
+ .ser(se_DeleteEnvironmentCommand)
1611
+ .de(de_DeleteEnvironmentCommand)
1612
+ .build() {
1613
+ }
1614
+
1615
+ class DeleteResourcePolicyCommand extends smithyClient.Command
1616
+ .classBuilder()
1617
+ .ep(commonParams)
1618
+ .m(function (Command, cs, config, o) {
1619
+ return [
1620
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1621
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1622
+ ];
1623
+ })
1624
+ .s("RefactorSpaces", "DeleteResourcePolicy", {})
1625
+ .n("MigrationHubRefactorSpacesClient", "DeleteResourcePolicyCommand")
1626
+ .f(void 0, void 0)
1627
+ .ser(se_DeleteResourcePolicyCommand)
1628
+ .de(de_DeleteResourcePolicyCommand)
1629
+ .build() {
1630
+ }
1631
+
1632
+ class DeleteRouteCommand extends smithyClient.Command
1633
+ .classBuilder()
1634
+ .ep(commonParams)
1635
+ .m(function (Command, cs, config, o) {
1636
+ return [
1637
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1638
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1639
+ ];
1640
+ })
1641
+ .s("RefactorSpaces", "DeleteRoute", {})
1642
+ .n("MigrationHubRefactorSpacesClient", "DeleteRouteCommand")
1643
+ .f(void 0, void 0)
1644
+ .ser(se_DeleteRouteCommand)
1645
+ .de(de_DeleteRouteCommand)
1646
+ .build() {
1647
+ }
1648
+
1649
+ class DeleteServiceCommand extends smithyClient.Command
1650
+ .classBuilder()
1651
+ .ep(commonParams)
1652
+ .m(function (Command, cs, config, o) {
1653
+ return [
1654
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1655
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1656
+ ];
1657
+ })
1658
+ .s("RefactorSpaces", "DeleteService", {})
1659
+ .n("MigrationHubRefactorSpacesClient", "DeleteServiceCommand")
1660
+ .f(void 0, void 0)
1661
+ .ser(se_DeleteServiceCommand)
1662
+ .de(de_DeleteServiceCommand)
1663
+ .build() {
1664
+ }
1665
+
1666
+ class GetApplicationCommand extends smithyClient.Command
1667
+ .classBuilder()
1668
+ .ep(commonParams)
1669
+ .m(function (Command, cs, config, o) {
1670
+ return [
1671
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1672
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1673
+ ];
1674
+ })
1675
+ .s("RefactorSpaces", "GetApplication", {})
1676
+ .n("MigrationHubRefactorSpacesClient", "GetApplicationCommand")
1677
+ .f(void 0, GetApplicationResponseFilterSensitiveLog)
1678
+ .ser(se_GetApplicationCommand)
1679
+ .de(de_GetApplicationCommand)
1680
+ .build() {
1681
+ }
1682
+
1683
+ class GetEnvironmentCommand extends smithyClient.Command
1684
+ .classBuilder()
1685
+ .ep(commonParams)
1686
+ .m(function (Command, cs, config, o) {
1687
+ return [
1688
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1689
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1690
+ ];
1691
+ })
1692
+ .s("RefactorSpaces", "GetEnvironment", {})
1693
+ .n("MigrationHubRefactorSpacesClient", "GetEnvironmentCommand")
1694
+ .f(void 0, GetEnvironmentResponseFilterSensitiveLog)
1695
+ .ser(se_GetEnvironmentCommand)
1696
+ .de(de_GetEnvironmentCommand)
1697
+ .build() {
1698
+ }
1699
+
1700
+ class GetResourcePolicyCommand extends smithyClient.Command
1701
+ .classBuilder()
1702
+ .ep(commonParams)
1703
+ .m(function (Command, cs, config, o) {
1704
+ return [
1705
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1706
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1707
+ ];
1708
+ })
1709
+ .s("RefactorSpaces", "GetResourcePolicy", {})
1710
+ .n("MigrationHubRefactorSpacesClient", "GetResourcePolicyCommand")
1711
+ .f(void 0, void 0)
1712
+ .ser(se_GetResourcePolicyCommand)
1713
+ .de(de_GetResourcePolicyCommand)
1714
+ .build() {
1715
+ }
1716
+
1717
+ class GetRouteCommand extends smithyClient.Command
1718
+ .classBuilder()
1719
+ .ep(commonParams)
1720
+ .m(function (Command, cs, config, o) {
1721
+ return [
1722
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1723
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1724
+ ];
1725
+ })
1726
+ .s("RefactorSpaces", "GetRoute", {})
1727
+ .n("MigrationHubRefactorSpacesClient", "GetRouteCommand")
1728
+ .f(void 0, GetRouteResponseFilterSensitiveLog)
1729
+ .ser(se_GetRouteCommand)
1730
+ .de(de_GetRouteCommand)
1731
+ .build() {
1732
+ }
1733
+
1734
+ class GetServiceCommand extends smithyClient.Command
1735
+ .classBuilder()
1736
+ .ep(commonParams)
1737
+ .m(function (Command, cs, config, o) {
1738
+ return [
1739
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1740
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1741
+ ];
1742
+ })
1743
+ .s("RefactorSpaces", "GetService", {})
1744
+ .n("MigrationHubRefactorSpacesClient", "GetServiceCommand")
1745
+ .f(void 0, GetServiceResponseFilterSensitiveLog)
1746
+ .ser(se_GetServiceCommand)
1747
+ .de(de_GetServiceCommand)
1748
+ .build() {
1749
+ }
1750
+
1751
+ class ListApplicationsCommand extends smithyClient.Command
1752
+ .classBuilder()
1753
+ .ep(commonParams)
1754
+ .m(function (Command, cs, config, o) {
1755
+ return [
1756
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1757
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1758
+ ];
1759
+ })
1760
+ .s("RefactorSpaces", "ListApplications", {})
1761
+ .n("MigrationHubRefactorSpacesClient", "ListApplicationsCommand")
1762
+ .f(void 0, ListApplicationsResponseFilterSensitiveLog)
1763
+ .ser(se_ListApplicationsCommand)
1764
+ .de(de_ListApplicationsCommand)
1765
+ .build() {
1766
+ }
1767
+
1768
+ class ListEnvironmentsCommand extends smithyClient.Command
1769
+ .classBuilder()
1770
+ .ep(commonParams)
1771
+ .m(function (Command, cs, config, o) {
1772
+ return [
1773
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1774
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1775
+ ];
1776
+ })
1777
+ .s("RefactorSpaces", "ListEnvironments", {})
1778
+ .n("MigrationHubRefactorSpacesClient", "ListEnvironmentsCommand")
1779
+ .f(void 0, ListEnvironmentsResponseFilterSensitiveLog)
1780
+ .ser(se_ListEnvironmentsCommand)
1781
+ .de(de_ListEnvironmentsCommand)
1782
+ .build() {
1783
+ }
1784
+
1785
+ class ListEnvironmentVpcsCommand extends smithyClient.Command
1786
+ .classBuilder()
1787
+ .ep(commonParams)
1788
+ .m(function (Command, cs, config, o) {
1789
+ return [
1790
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1791
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1792
+ ];
1793
+ })
1794
+ .s("RefactorSpaces", "ListEnvironmentVpcs", {})
1795
+ .n("MigrationHubRefactorSpacesClient", "ListEnvironmentVpcsCommand")
1796
+ .f(void 0, void 0)
1797
+ .ser(se_ListEnvironmentVpcsCommand)
1798
+ .de(de_ListEnvironmentVpcsCommand)
1799
+ .build() {
1800
+ }
1801
+
1802
+ class ListRoutesCommand extends smithyClient.Command
1803
+ .classBuilder()
1804
+ .ep(commonParams)
1805
+ .m(function (Command, cs, config, o) {
1806
+ return [
1807
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1808
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1809
+ ];
1810
+ })
1811
+ .s("RefactorSpaces", "ListRoutes", {})
1812
+ .n("MigrationHubRefactorSpacesClient", "ListRoutesCommand")
1813
+ .f(void 0, ListRoutesResponseFilterSensitiveLog)
1814
+ .ser(se_ListRoutesCommand)
1815
+ .de(de_ListRoutesCommand)
1816
+ .build() {
1817
+ }
1818
+
1819
+ class ListServicesCommand extends smithyClient.Command
1820
+ .classBuilder()
1821
+ .ep(commonParams)
1822
+ .m(function (Command, cs, config, o) {
1823
+ return [
1824
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1825
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1826
+ ];
1827
+ })
1828
+ .s("RefactorSpaces", "ListServices", {})
1829
+ .n("MigrationHubRefactorSpacesClient", "ListServicesCommand")
1830
+ .f(void 0, ListServicesResponseFilterSensitiveLog)
1831
+ .ser(se_ListServicesCommand)
1832
+ .de(de_ListServicesCommand)
1833
+ .build() {
1834
+ }
1835
+
1836
+ class ListTagsForResourceCommand extends smithyClient.Command
1837
+ .classBuilder()
1838
+ .ep(commonParams)
1839
+ .m(function (Command, cs, config, o) {
1840
+ return [
1841
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1842
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1843
+ ];
1844
+ })
1845
+ .s("RefactorSpaces", "ListTagsForResource", {})
1846
+ .n("MigrationHubRefactorSpacesClient", "ListTagsForResourceCommand")
1847
+ .f(void 0, ListTagsForResourceResponseFilterSensitiveLog)
1848
+ .ser(se_ListTagsForResourceCommand)
1849
+ .de(de_ListTagsForResourceCommand)
1850
+ .build() {
1851
+ }
1852
+
1853
+ class PutResourcePolicyCommand extends smithyClient.Command
1854
+ .classBuilder()
1855
+ .ep(commonParams)
1856
+ .m(function (Command, cs, config, o) {
1857
+ return [
1858
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1859
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1860
+ ];
1861
+ })
1862
+ .s("RefactorSpaces", "PutResourcePolicy", {})
1863
+ .n("MigrationHubRefactorSpacesClient", "PutResourcePolicyCommand")
1864
+ .f(void 0, void 0)
1865
+ .ser(se_PutResourcePolicyCommand)
1866
+ .de(de_PutResourcePolicyCommand)
1867
+ .build() {
1868
+ }
1869
+
1870
+ class TagResourceCommand extends smithyClient.Command
1871
+ .classBuilder()
1872
+ .ep(commonParams)
1873
+ .m(function (Command, cs, config, o) {
1874
+ return [
1875
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1876
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1877
+ ];
1878
+ })
1879
+ .s("RefactorSpaces", "TagResource", {})
1880
+ .n("MigrationHubRefactorSpacesClient", "TagResourceCommand")
1881
+ .f(TagResourceRequestFilterSensitiveLog, void 0)
1882
+ .ser(se_TagResourceCommand)
1883
+ .de(de_TagResourceCommand)
1884
+ .build() {
1885
+ }
1886
+
1887
+ class UntagResourceCommand extends smithyClient.Command
1888
+ .classBuilder()
1889
+ .ep(commonParams)
1890
+ .m(function (Command, cs, config, o) {
1891
+ return [
1892
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1893
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1894
+ ];
1895
+ })
1896
+ .s("RefactorSpaces", "UntagResource", {})
1897
+ .n("MigrationHubRefactorSpacesClient", "UntagResourceCommand")
1898
+ .f(UntagResourceRequestFilterSensitiveLog, void 0)
1899
+ .ser(se_UntagResourceCommand)
1900
+ .de(de_UntagResourceCommand)
1901
+ .build() {
1902
+ }
1903
+
1904
+ class UpdateRouteCommand extends smithyClient.Command
1905
+ .classBuilder()
1906
+ .ep(commonParams)
1907
+ .m(function (Command, cs, config, o) {
1908
+ return [
1909
+ middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
1910
+ middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
1911
+ ];
1912
+ })
1913
+ .s("RefactorSpaces", "UpdateRoute", {})
1914
+ .n("MigrationHubRefactorSpacesClient", "UpdateRouteCommand")
1915
+ .f(void 0, void 0)
1916
+ .ser(se_UpdateRouteCommand)
1917
+ .de(de_UpdateRouteCommand)
1918
+ .build() {
1919
+ }
1920
+
1921
+ const commands = {
1922
+ CreateApplicationCommand,
1923
+ CreateEnvironmentCommand,
1924
+ CreateRouteCommand,
1925
+ CreateServiceCommand,
1926
+ DeleteApplicationCommand,
1927
+ DeleteEnvironmentCommand,
1928
+ DeleteResourcePolicyCommand,
1929
+ DeleteRouteCommand,
1930
+ DeleteServiceCommand,
1931
+ GetApplicationCommand,
1932
+ GetEnvironmentCommand,
1933
+ GetResourcePolicyCommand,
1934
+ GetRouteCommand,
1935
+ GetServiceCommand,
1936
+ ListApplicationsCommand,
1937
+ ListEnvironmentsCommand,
1938
+ ListEnvironmentVpcsCommand,
1939
+ ListRoutesCommand,
1940
+ ListServicesCommand,
1941
+ ListTagsForResourceCommand,
1942
+ PutResourcePolicyCommand,
1943
+ TagResourceCommand,
1944
+ UntagResourceCommand,
1945
+ UpdateRouteCommand,
1946
+ };
1947
+ class MigrationHubRefactorSpaces extends MigrationHubRefactorSpacesClient {
1948
+ }
1949
+ smithyClient.createAggregatedClient(commands, MigrationHubRefactorSpaces);
2125
1950
 
2126
- // src/MigrationHubRefactorSpaces.ts
2127
- var commands = {
2128
- CreateApplicationCommand,
2129
- CreateEnvironmentCommand,
2130
- CreateRouteCommand,
2131
- CreateServiceCommand,
2132
- DeleteApplicationCommand,
2133
- DeleteEnvironmentCommand,
2134
- DeleteResourcePolicyCommand,
2135
- DeleteRouteCommand,
2136
- DeleteServiceCommand,
2137
- GetApplicationCommand,
2138
- GetEnvironmentCommand,
2139
- GetResourcePolicyCommand,
2140
- GetRouteCommand,
2141
- GetServiceCommand,
2142
- ListApplicationsCommand,
2143
- ListEnvironmentsCommand,
2144
- ListEnvironmentVpcsCommand,
2145
- ListRoutesCommand,
2146
- ListServicesCommand,
2147
- ListTagsForResourceCommand,
2148
- PutResourcePolicyCommand,
2149
- TagResourceCommand,
2150
- UntagResourceCommand,
2151
- UpdateRouteCommand
2152
- };
2153
- var MigrationHubRefactorSpaces = class extends MigrationHubRefactorSpacesClient {
2154
- static {
2155
- __name(this, "MigrationHubRefactorSpaces");
2156
- }
2157
- };
2158
- (0, import_smithy_client.createAggregatedClient)(commands, MigrationHubRefactorSpaces);
2159
-
2160
- // src/pagination/ListApplicationsPaginator.ts
2161
-
2162
- var paginateListApplications = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
2163
-
2164
- // src/pagination/ListEnvironmentVpcsPaginator.ts
2165
-
2166
- var paginateListEnvironmentVpcs = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListEnvironmentVpcsCommand, "NextToken", "NextToken", "MaxResults");
2167
-
2168
- // src/pagination/ListEnvironmentsPaginator.ts
2169
-
2170
- var paginateListEnvironments = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults");
1951
+ const paginateListApplications = core.createPaginator(MigrationHubRefactorSpacesClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults");
2171
1952
 
2172
- // src/pagination/ListRoutesPaginator.ts
1953
+ const paginateListEnvironmentVpcs = core.createPaginator(MigrationHubRefactorSpacesClient, ListEnvironmentVpcsCommand, "NextToken", "NextToken", "MaxResults");
2173
1954
 
2174
- var paginateListRoutes = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListRoutesCommand, "NextToken", "NextToken", "MaxResults");
1955
+ const paginateListEnvironments = core.createPaginator(MigrationHubRefactorSpacesClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults");
2175
1956
 
2176
- // src/pagination/ListServicesPaginator.ts
1957
+ const paginateListRoutes = core.createPaginator(MigrationHubRefactorSpacesClient, ListRoutesCommand, "NextToken", "NextToken", "MaxResults");
2177
1958
 
2178
- var paginateListServices = (0, import_core.createPaginator)(MigrationHubRefactorSpacesClient, ListServicesCommand, "NextToken", "NextToken", "MaxResults");
2179
- // Annotate the CommonJS export names for ESM import in node:
1959
+ const paginateListServices = core.createPaginator(MigrationHubRefactorSpacesClient, ListServicesCommand, "NextToken", "NextToken", "MaxResults");
2180
1960
 
2181
- 0 && (module.exports = {
2182
- MigrationHubRefactorSpacesServiceException,
2183
- __Client,
2184
- MigrationHubRefactorSpacesClient,
2185
- MigrationHubRefactorSpaces,
2186
- $Command,
2187
- CreateApplicationCommand,
2188
- CreateEnvironmentCommand,
2189
- CreateRouteCommand,
2190
- CreateServiceCommand,
2191
- DeleteApplicationCommand,
2192
- DeleteEnvironmentCommand,
2193
- DeleteResourcePolicyCommand,
2194
- DeleteRouteCommand,
2195
- DeleteServiceCommand,
2196
- GetApplicationCommand,
2197
- GetEnvironmentCommand,
2198
- GetResourcePolicyCommand,
2199
- GetRouteCommand,
2200
- GetServiceCommand,
2201
- ListApplicationsCommand,
2202
- ListEnvironmentVpcsCommand,
2203
- ListEnvironmentsCommand,
2204
- ListRoutesCommand,
2205
- ListServicesCommand,
2206
- ListTagsForResourceCommand,
2207
- PutResourcePolicyCommand,
2208
- TagResourceCommand,
2209
- UntagResourceCommand,
2210
- UpdateRouteCommand,
2211
- paginateListApplications,
2212
- paginateListEnvironmentVpcs,
2213
- paginateListEnvironments,
2214
- paginateListRoutes,
2215
- paginateListServices,
2216
- AccessDeniedException,
2217
- ApiGatewayEndpointType,
2218
- ApplicationState,
2219
- ErrorCode,
2220
- ErrorResourceType,
2221
- ProxyType,
2222
- ConflictException,
2223
- InternalServerException,
2224
- ResourceNotFoundException,
2225
- ServiceQuotaExceededException,
2226
- ThrottlingException,
2227
- ValidationException,
2228
- NetworkFabricType,
2229
- EnvironmentState,
2230
- RouteActivationState,
2231
- RouteType,
2232
- HttpMethod,
2233
- RouteState,
2234
- ServiceEndpointType,
2235
- ServiceState,
2236
- InvalidResourcePolicyException,
2237
- ApplicationSummaryFilterSensitiveLog,
2238
- CreateApplicationRequestFilterSensitiveLog,
2239
- CreateApplicationResponseFilterSensitiveLog,
2240
- CreateEnvironmentRequestFilterSensitiveLog,
2241
- CreateEnvironmentResponseFilterSensitiveLog,
2242
- CreateRouteRequestFilterSensitiveLog,
2243
- CreateRouteResponseFilterSensitiveLog,
2244
- CreateServiceRequestFilterSensitiveLog,
2245
- CreateServiceResponseFilterSensitiveLog,
2246
- EnvironmentSummaryFilterSensitiveLog,
2247
- GetApplicationResponseFilterSensitiveLog,
2248
- GetEnvironmentResponseFilterSensitiveLog,
2249
- GetRouteResponseFilterSensitiveLog,
2250
- GetServiceResponseFilterSensitiveLog,
2251
- ListApplicationsResponseFilterSensitiveLog,
2252
- ListEnvironmentsResponseFilterSensitiveLog,
2253
- RouteSummaryFilterSensitiveLog,
2254
- ListRoutesResponseFilterSensitiveLog,
2255
- ServiceSummaryFilterSensitiveLog,
2256
- ListServicesResponseFilterSensitiveLog,
2257
- ListTagsForResourceResponseFilterSensitiveLog,
2258
- TagResourceRequestFilterSensitiveLog,
2259
- UntagResourceRequestFilterSensitiveLog
1961
+ Object.defineProperty(exports, "$Command", {
1962
+ enumerable: true,
1963
+ get: function () { return smithyClient.Command; }
2260
1964
  });
2261
-
1965
+ Object.defineProperty(exports, "__Client", {
1966
+ enumerable: true,
1967
+ get: function () { return smithyClient.Client; }
1968
+ });
1969
+ exports.AccessDeniedException = AccessDeniedException;
1970
+ exports.ApiGatewayEndpointType = ApiGatewayEndpointType;
1971
+ exports.ApplicationState = ApplicationState;
1972
+ exports.ApplicationSummaryFilterSensitiveLog = ApplicationSummaryFilterSensitiveLog;
1973
+ exports.ConflictException = ConflictException;
1974
+ exports.CreateApplicationCommand = CreateApplicationCommand;
1975
+ exports.CreateApplicationRequestFilterSensitiveLog = CreateApplicationRequestFilterSensitiveLog;
1976
+ exports.CreateApplicationResponseFilterSensitiveLog = CreateApplicationResponseFilterSensitiveLog;
1977
+ exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
1978
+ exports.CreateEnvironmentRequestFilterSensitiveLog = CreateEnvironmentRequestFilterSensitiveLog;
1979
+ exports.CreateEnvironmentResponseFilterSensitiveLog = CreateEnvironmentResponseFilterSensitiveLog;
1980
+ exports.CreateRouteCommand = CreateRouteCommand;
1981
+ exports.CreateRouteRequestFilterSensitiveLog = CreateRouteRequestFilterSensitiveLog;
1982
+ exports.CreateRouteResponseFilterSensitiveLog = CreateRouteResponseFilterSensitiveLog;
1983
+ exports.CreateServiceCommand = CreateServiceCommand;
1984
+ exports.CreateServiceRequestFilterSensitiveLog = CreateServiceRequestFilterSensitiveLog;
1985
+ exports.CreateServiceResponseFilterSensitiveLog = CreateServiceResponseFilterSensitiveLog;
1986
+ exports.DeleteApplicationCommand = DeleteApplicationCommand;
1987
+ exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;
1988
+ exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;
1989
+ exports.DeleteRouteCommand = DeleteRouteCommand;
1990
+ exports.DeleteServiceCommand = DeleteServiceCommand;
1991
+ exports.EnvironmentState = EnvironmentState;
1992
+ exports.EnvironmentSummaryFilterSensitiveLog = EnvironmentSummaryFilterSensitiveLog;
1993
+ exports.ErrorCode = ErrorCode;
1994
+ exports.ErrorResourceType = ErrorResourceType;
1995
+ exports.GetApplicationCommand = GetApplicationCommand;
1996
+ exports.GetApplicationResponseFilterSensitiveLog = GetApplicationResponseFilterSensitiveLog;
1997
+ exports.GetEnvironmentCommand = GetEnvironmentCommand;
1998
+ exports.GetEnvironmentResponseFilterSensitiveLog = GetEnvironmentResponseFilterSensitiveLog;
1999
+ exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
2000
+ exports.GetRouteCommand = GetRouteCommand;
2001
+ exports.GetRouteResponseFilterSensitiveLog = GetRouteResponseFilterSensitiveLog;
2002
+ exports.GetServiceCommand = GetServiceCommand;
2003
+ exports.GetServiceResponseFilterSensitiveLog = GetServiceResponseFilterSensitiveLog;
2004
+ exports.HttpMethod = HttpMethod;
2005
+ exports.InternalServerException = InternalServerException;
2006
+ exports.InvalidResourcePolicyException = InvalidResourcePolicyException;
2007
+ exports.ListApplicationsCommand = ListApplicationsCommand;
2008
+ exports.ListApplicationsResponseFilterSensitiveLog = ListApplicationsResponseFilterSensitiveLog;
2009
+ exports.ListEnvironmentVpcsCommand = ListEnvironmentVpcsCommand;
2010
+ exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
2011
+ exports.ListEnvironmentsResponseFilterSensitiveLog = ListEnvironmentsResponseFilterSensitiveLog;
2012
+ exports.ListRoutesCommand = ListRoutesCommand;
2013
+ exports.ListRoutesResponseFilterSensitiveLog = ListRoutesResponseFilterSensitiveLog;
2014
+ exports.ListServicesCommand = ListServicesCommand;
2015
+ exports.ListServicesResponseFilterSensitiveLog = ListServicesResponseFilterSensitiveLog;
2016
+ exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
2017
+ exports.ListTagsForResourceResponseFilterSensitiveLog = ListTagsForResourceResponseFilterSensitiveLog;
2018
+ exports.MigrationHubRefactorSpaces = MigrationHubRefactorSpaces;
2019
+ exports.MigrationHubRefactorSpacesClient = MigrationHubRefactorSpacesClient;
2020
+ exports.MigrationHubRefactorSpacesServiceException = MigrationHubRefactorSpacesServiceException;
2021
+ exports.NetworkFabricType = NetworkFabricType;
2022
+ exports.ProxyType = ProxyType;
2023
+ exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
2024
+ exports.ResourceNotFoundException = ResourceNotFoundException;
2025
+ exports.RouteActivationState = RouteActivationState;
2026
+ exports.RouteState = RouteState;
2027
+ exports.RouteSummaryFilterSensitiveLog = RouteSummaryFilterSensitiveLog;
2028
+ exports.RouteType = RouteType;
2029
+ exports.ServiceEndpointType = ServiceEndpointType;
2030
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
2031
+ exports.ServiceState = ServiceState;
2032
+ exports.ServiceSummaryFilterSensitiveLog = ServiceSummaryFilterSensitiveLog;
2033
+ exports.TagResourceCommand = TagResourceCommand;
2034
+ exports.TagResourceRequestFilterSensitiveLog = TagResourceRequestFilterSensitiveLog;
2035
+ exports.ThrottlingException = ThrottlingException;
2036
+ exports.UntagResourceCommand = UntagResourceCommand;
2037
+ exports.UntagResourceRequestFilterSensitiveLog = UntagResourceRequestFilterSensitiveLog;
2038
+ exports.UpdateRouteCommand = UpdateRouteCommand;
2039
+ exports.ValidationException = ValidationException;
2040
+ exports.paginateListApplications = paginateListApplications;
2041
+ exports.paginateListEnvironmentVpcs = paginateListEnvironmentVpcs;
2042
+ exports.paginateListEnvironments = paginateListEnvironments;
2043
+ exports.paginateListRoutes = paginateListRoutes;
2044
+ exports.paginateListServices = paginateListServices;