@aws-sdk/client-launch-wizard 3.490.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/LaunchWizard.js +1 -27
- package/dist-cjs/LaunchWizardClient.js +1 -43
- package/dist-cjs/commands/CreateDeploymentCommand.js +1 -29
- package/dist-cjs/commands/DeleteDeploymentCommand.js +1 -28
- package/dist-cjs/commands/GetDeploymentCommand.js +1 -29
- package/dist-cjs/commands/GetWorkloadCommand.js +1 -28
- package/dist-cjs/commands/ListDeploymentEventsCommand.js +1 -28
- package/dist-cjs/commands/ListDeploymentsCommand.js +1 -28
- package/dist-cjs/commands/ListWorkloadDeploymentPatternsCommand.js +1 -28
- package/dist-cjs/commands/ListWorkloadsCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -11
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1074 -11
- package/dist-cjs/models/LaunchWizardServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -109
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDeploymentEventsPaginator.js +1 -7
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkloadDeploymentPatternsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWorkloadsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -605
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1075 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
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 src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
CreateDeploymentCommand: () => CreateDeploymentCommand,
|
|
25
|
+
CreateDeploymentInputFilterSensitiveLog: () => CreateDeploymentInputFilterSensitiveLog,
|
|
26
|
+
DeleteDeploymentCommand: () => DeleteDeploymentCommand,
|
|
27
|
+
DeploymentDataFilterSensitiveLog: () => DeploymentDataFilterSensitiveLog,
|
|
28
|
+
DeploymentFilterKey: () => DeploymentFilterKey,
|
|
29
|
+
DeploymentStatus: () => DeploymentStatus,
|
|
30
|
+
EventStatus: () => EventStatus,
|
|
31
|
+
GetDeploymentCommand: () => GetDeploymentCommand,
|
|
32
|
+
GetDeploymentOutputFilterSensitiveLog: () => GetDeploymentOutputFilterSensitiveLog,
|
|
33
|
+
GetWorkloadCommand: () => GetWorkloadCommand,
|
|
34
|
+
InternalServerException: () => InternalServerException,
|
|
35
|
+
LaunchWizard: () => LaunchWizard,
|
|
36
|
+
LaunchWizardClient: () => LaunchWizardClient,
|
|
37
|
+
LaunchWizardServiceException: () => LaunchWizardServiceException,
|
|
38
|
+
ListDeploymentEventsCommand: () => ListDeploymentEventsCommand,
|
|
39
|
+
ListDeploymentsCommand: () => ListDeploymentsCommand,
|
|
40
|
+
ListWorkloadDeploymentPatternsCommand: () => ListWorkloadDeploymentPatternsCommand,
|
|
41
|
+
ListWorkloadsCommand: () => ListWorkloadsCommand,
|
|
42
|
+
ResourceLimitException: () => ResourceLimitException,
|
|
43
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
44
|
+
ValidationException: () => ValidationException,
|
|
45
|
+
WorkloadDeploymentPatternStatus: () => WorkloadDeploymentPatternStatus,
|
|
46
|
+
WorkloadStatus: () => WorkloadStatus,
|
|
47
|
+
__Client: () => import_smithy_client.Client,
|
|
48
|
+
paginateListDeploymentEvents: () => paginateListDeploymentEvents,
|
|
49
|
+
paginateListDeployments: () => paginateListDeployments,
|
|
50
|
+
paginateListWorkloadDeploymentPatterns: () => paginateListWorkloadDeploymentPatterns,
|
|
51
|
+
paginateListWorkloads: () => paginateListWorkloads
|
|
52
|
+
});
|
|
53
|
+
module.exports = __toCommonJS(src_exports);
|
|
54
|
+
|
|
55
|
+
// src/LaunchWizardClient.ts
|
|
56
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
57
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
58
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
59
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
60
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
61
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
62
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
63
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
64
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
// src/endpoint/EndpointParameters.ts
|
|
68
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
69
|
+
return {
|
|
70
|
+
...options,
|
|
71
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
72
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
73
|
+
defaultSigningName: "launchwizard"
|
|
74
|
+
};
|
|
75
|
+
}, "resolveClientEndpointParameters");
|
|
76
|
+
var commonParams = {
|
|
77
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
78
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
79
|
+
Region: { type: "builtInParams", name: "region" },
|
|
80
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// src/LaunchWizardClient.ts
|
|
84
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
85
|
+
|
|
86
|
+
// src/runtimeExtensions.ts
|
|
87
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
88
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
89
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
90
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
91
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
92
|
+
const extensionConfiguration = {
|
|
93
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
94
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
95
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
96
|
+
};
|
|
97
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
98
|
+
return {
|
|
99
|
+
...runtimeConfig,
|
|
100
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
101
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
102
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
103
|
+
};
|
|
104
|
+
}, "resolveRuntimeExtensions");
|
|
105
|
+
|
|
106
|
+
// src/LaunchWizardClient.ts
|
|
107
|
+
var _LaunchWizardClient = class _LaunchWizardClient extends import_smithy_client.Client {
|
|
108
|
+
constructor(...[configuration]) {
|
|
109
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
110
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
111
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
112
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
113
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
114
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
115
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
116
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
117
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
118
|
+
super(_config_8);
|
|
119
|
+
this.config = _config_8;
|
|
120
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
121
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
122
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
123
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
124
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
125
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
126
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
130
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
131
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
132
|
+
*/
|
|
133
|
+
destroy() {
|
|
134
|
+
super.destroy();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
__name(_LaunchWizardClient, "LaunchWizardClient");
|
|
138
|
+
var LaunchWizardClient = _LaunchWizardClient;
|
|
139
|
+
|
|
140
|
+
// src/LaunchWizard.ts
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
// src/commands/CreateDeploymentCommand.ts
|
|
144
|
+
|
|
145
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
146
|
+
|
|
147
|
+
var import_types = require("@smithy/types");
|
|
148
|
+
|
|
149
|
+
// src/models/models_0.ts
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
// src/models/LaunchWizardServiceException.ts
|
|
153
|
+
|
|
154
|
+
var _LaunchWizardServiceException = class _LaunchWizardServiceException extends import_smithy_client.ServiceException {
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
constructor(options) {
|
|
159
|
+
super(options);
|
|
160
|
+
Object.setPrototypeOf(this, _LaunchWizardServiceException.prototype);
|
|
161
|
+
}
|
|
162
|
+
};
|
|
163
|
+
__name(_LaunchWizardServiceException, "LaunchWizardServiceException");
|
|
164
|
+
var LaunchWizardServiceException = _LaunchWizardServiceException;
|
|
165
|
+
|
|
166
|
+
// src/models/models_0.ts
|
|
167
|
+
var _InternalServerException = class _InternalServerException extends LaunchWizardServiceException {
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
*/
|
|
171
|
+
constructor(opts) {
|
|
172
|
+
super({
|
|
173
|
+
name: "InternalServerException",
|
|
174
|
+
$fault: "server",
|
|
175
|
+
...opts
|
|
176
|
+
});
|
|
177
|
+
this.name = "InternalServerException";
|
|
178
|
+
this.$fault = "server";
|
|
179
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
__name(_InternalServerException, "InternalServerException");
|
|
183
|
+
var InternalServerException = _InternalServerException;
|
|
184
|
+
var _ResourceLimitException = class _ResourceLimitException extends LaunchWizardServiceException {
|
|
185
|
+
/**
|
|
186
|
+
* @internal
|
|
187
|
+
*/
|
|
188
|
+
constructor(opts) {
|
|
189
|
+
super({
|
|
190
|
+
name: "ResourceLimitException",
|
|
191
|
+
$fault: "client",
|
|
192
|
+
...opts
|
|
193
|
+
});
|
|
194
|
+
this.name = "ResourceLimitException";
|
|
195
|
+
this.$fault = "client";
|
|
196
|
+
Object.setPrototypeOf(this, _ResourceLimitException.prototype);
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
__name(_ResourceLimitException, "ResourceLimitException");
|
|
200
|
+
var ResourceLimitException = _ResourceLimitException;
|
|
201
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends LaunchWizardServiceException {
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
205
|
+
constructor(opts) {
|
|
206
|
+
super({
|
|
207
|
+
name: "ResourceNotFoundException",
|
|
208
|
+
$fault: "client",
|
|
209
|
+
...opts
|
|
210
|
+
});
|
|
211
|
+
this.name = "ResourceNotFoundException";
|
|
212
|
+
this.$fault = "client";
|
|
213
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
217
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
218
|
+
var _ValidationException = class _ValidationException extends LaunchWizardServiceException {
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
222
|
+
constructor(opts) {
|
|
223
|
+
super({
|
|
224
|
+
name: "ValidationException",
|
|
225
|
+
$fault: "client",
|
|
226
|
+
...opts
|
|
227
|
+
});
|
|
228
|
+
this.name = "ValidationException";
|
|
229
|
+
this.$fault = "client";
|
|
230
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
__name(_ValidationException, "ValidationException");
|
|
234
|
+
var ValidationException = _ValidationException;
|
|
235
|
+
var DeploymentStatus = {
|
|
236
|
+
COMPLETED: "COMPLETED",
|
|
237
|
+
CREATING: "CREATING",
|
|
238
|
+
DELETED: "DELETED",
|
|
239
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
240
|
+
DELETE_INITIATING: "DELETE_INITIATING",
|
|
241
|
+
DELETE_IN_PROGRESS: "DELETE_IN_PROGRESS",
|
|
242
|
+
FAILED: "FAILED",
|
|
243
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
244
|
+
VALIDATING: "VALIDATING"
|
|
245
|
+
};
|
|
246
|
+
var EventStatus = {
|
|
247
|
+
CANCELED: "CANCELED",
|
|
248
|
+
CANCELING: "CANCELING",
|
|
249
|
+
COMPLETED: "COMPLETED",
|
|
250
|
+
CREATED: "CREATED",
|
|
251
|
+
FAILED: "FAILED",
|
|
252
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
253
|
+
PENDING: "PENDING",
|
|
254
|
+
TIMED_OUT: "TIMED_OUT"
|
|
255
|
+
};
|
|
256
|
+
var DeploymentFilterKey = {
|
|
257
|
+
DEPLOYMENT_STATUS: "DEPLOYMENT_STATUS",
|
|
258
|
+
WORKLOAD_NAME: "WORKLOAD_NAME"
|
|
259
|
+
};
|
|
260
|
+
var WorkloadStatus = {
|
|
261
|
+
ACTIVE: "ACTIVE",
|
|
262
|
+
DELETED: "DELETED",
|
|
263
|
+
DISABLED: "DISABLED",
|
|
264
|
+
INACTIVE: "INACTIVE"
|
|
265
|
+
};
|
|
266
|
+
var WorkloadDeploymentPatternStatus = {
|
|
267
|
+
ACTIVE: "ACTIVE",
|
|
268
|
+
DELETED: "DELETED",
|
|
269
|
+
DISABLED: "DISABLED",
|
|
270
|
+
INACTIVE: "INACTIVE"
|
|
271
|
+
};
|
|
272
|
+
var CreateDeploymentInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
273
|
+
...obj,
|
|
274
|
+
...obj.specifications && { specifications: import_smithy_client.SENSITIVE_STRING }
|
|
275
|
+
}), "CreateDeploymentInputFilterSensitiveLog");
|
|
276
|
+
var DeploymentDataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
277
|
+
...obj,
|
|
278
|
+
...obj.specifications && { specifications: import_smithy_client.SENSITIVE_STRING }
|
|
279
|
+
}), "DeploymentDataFilterSensitiveLog");
|
|
280
|
+
var GetDeploymentOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
281
|
+
...obj,
|
|
282
|
+
...obj.deployment && { deployment: DeploymentDataFilterSensitiveLog(obj.deployment) }
|
|
283
|
+
}), "GetDeploymentOutputFilterSensitiveLog");
|
|
284
|
+
|
|
285
|
+
// src/protocols/Aws_restJson1.ts
|
|
286
|
+
var import_core = require("@smithy/core");
|
|
287
|
+
|
|
288
|
+
var se_CreateDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
289
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
290
|
+
const headers = {
|
|
291
|
+
"content-type": "application/json"
|
|
292
|
+
};
|
|
293
|
+
b.bp("/createDeployment");
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(
|
|
296
|
+
(0, import_smithy_client.take)(input, {
|
|
297
|
+
deploymentPatternName: [],
|
|
298
|
+
dryRun: [],
|
|
299
|
+
name: [],
|
|
300
|
+
specifications: (_) => (0, import_smithy_client._json)(_),
|
|
301
|
+
workloadName: []
|
|
302
|
+
})
|
|
303
|
+
);
|
|
304
|
+
b.m("POST").h(headers).b(body);
|
|
305
|
+
return b.build();
|
|
306
|
+
}, "se_CreateDeploymentCommand");
|
|
307
|
+
var se_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
308
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
309
|
+
const headers = {
|
|
310
|
+
"content-type": "application/json"
|
|
311
|
+
};
|
|
312
|
+
b.bp("/deleteDeployment");
|
|
313
|
+
let body;
|
|
314
|
+
body = JSON.stringify(
|
|
315
|
+
(0, import_smithy_client.take)(input, {
|
|
316
|
+
deploymentId: []
|
|
317
|
+
})
|
|
318
|
+
);
|
|
319
|
+
b.m("POST").h(headers).b(body);
|
|
320
|
+
return b.build();
|
|
321
|
+
}, "se_DeleteDeploymentCommand");
|
|
322
|
+
var se_GetDeploymentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
323
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
324
|
+
const headers = {
|
|
325
|
+
"content-type": "application/json"
|
|
326
|
+
};
|
|
327
|
+
b.bp("/getDeployment");
|
|
328
|
+
let body;
|
|
329
|
+
body = JSON.stringify(
|
|
330
|
+
(0, import_smithy_client.take)(input, {
|
|
331
|
+
deploymentId: []
|
|
332
|
+
})
|
|
333
|
+
);
|
|
334
|
+
b.m("POST").h(headers).b(body);
|
|
335
|
+
return b.build();
|
|
336
|
+
}, "se_GetDeploymentCommand");
|
|
337
|
+
var se_GetWorkloadCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
338
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
339
|
+
const headers = {
|
|
340
|
+
"content-type": "application/json"
|
|
341
|
+
};
|
|
342
|
+
b.bp("/getWorkload");
|
|
343
|
+
let body;
|
|
344
|
+
body = JSON.stringify(
|
|
345
|
+
(0, import_smithy_client.take)(input, {
|
|
346
|
+
workloadName: []
|
|
347
|
+
})
|
|
348
|
+
);
|
|
349
|
+
b.m("POST").h(headers).b(body);
|
|
350
|
+
return b.build();
|
|
351
|
+
}, "se_GetWorkloadCommand");
|
|
352
|
+
var se_ListDeploymentEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
353
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
354
|
+
const headers = {
|
|
355
|
+
"content-type": "application/json"
|
|
356
|
+
};
|
|
357
|
+
b.bp("/listDeploymentEvents");
|
|
358
|
+
let body;
|
|
359
|
+
body = JSON.stringify(
|
|
360
|
+
(0, import_smithy_client.take)(input, {
|
|
361
|
+
deploymentId: [],
|
|
362
|
+
maxResults: [],
|
|
363
|
+
nextToken: []
|
|
364
|
+
})
|
|
365
|
+
);
|
|
366
|
+
b.m("POST").h(headers).b(body);
|
|
367
|
+
return b.build();
|
|
368
|
+
}, "se_ListDeploymentEventsCommand");
|
|
369
|
+
var se_ListDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
370
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
371
|
+
const headers = {
|
|
372
|
+
"content-type": "application/json"
|
|
373
|
+
};
|
|
374
|
+
b.bp("/listDeployments");
|
|
375
|
+
let body;
|
|
376
|
+
body = JSON.stringify(
|
|
377
|
+
(0, import_smithy_client.take)(input, {
|
|
378
|
+
filters: (_) => (0, import_smithy_client._json)(_),
|
|
379
|
+
maxResults: [],
|
|
380
|
+
nextToken: []
|
|
381
|
+
})
|
|
382
|
+
);
|
|
383
|
+
b.m("POST").h(headers).b(body);
|
|
384
|
+
return b.build();
|
|
385
|
+
}, "se_ListDeploymentsCommand");
|
|
386
|
+
var se_ListWorkloadDeploymentPatternsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
387
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
388
|
+
const headers = {
|
|
389
|
+
"content-type": "application/json"
|
|
390
|
+
};
|
|
391
|
+
b.bp("/listWorkloadDeploymentPatterns");
|
|
392
|
+
let body;
|
|
393
|
+
body = JSON.stringify(
|
|
394
|
+
(0, import_smithy_client.take)(input, {
|
|
395
|
+
maxResults: [],
|
|
396
|
+
nextToken: [],
|
|
397
|
+
workloadName: []
|
|
398
|
+
})
|
|
399
|
+
);
|
|
400
|
+
b.m("POST").h(headers).b(body);
|
|
401
|
+
return b.build();
|
|
402
|
+
}, "se_ListWorkloadDeploymentPatternsCommand");
|
|
403
|
+
var se_ListWorkloadsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
404
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
405
|
+
const headers = {
|
|
406
|
+
"content-type": "application/json"
|
|
407
|
+
};
|
|
408
|
+
b.bp("/listWorkloads");
|
|
409
|
+
let body;
|
|
410
|
+
body = JSON.stringify(
|
|
411
|
+
(0, import_smithy_client.take)(input, {
|
|
412
|
+
maxResults: [],
|
|
413
|
+
nextToken: []
|
|
414
|
+
})
|
|
415
|
+
);
|
|
416
|
+
b.m("POST").h(headers).b(body);
|
|
417
|
+
return b.build();
|
|
418
|
+
}, "se_ListWorkloadsCommand");
|
|
419
|
+
var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
420
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
421
|
+
return de_CreateDeploymentCommandError(output, context);
|
|
422
|
+
}
|
|
423
|
+
const contents = (0, import_smithy_client.map)({
|
|
424
|
+
$metadata: deserializeMetadata(output)
|
|
425
|
+
});
|
|
426
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
427
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
428
|
+
deploymentId: import_smithy_client.expectString
|
|
429
|
+
});
|
|
430
|
+
Object.assign(contents, doc);
|
|
431
|
+
return contents;
|
|
432
|
+
}, "de_CreateDeploymentCommand");
|
|
433
|
+
var de_CreateDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
434
|
+
const parsedOutput = {
|
|
435
|
+
...output,
|
|
436
|
+
body: await parseErrorBody(output.body, context)
|
|
437
|
+
};
|
|
438
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
439
|
+
switch (errorCode) {
|
|
440
|
+
case "InternalServerException":
|
|
441
|
+
case "com.amazonaws.launchwizard#InternalServerException":
|
|
442
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
443
|
+
case "ResourceLimitException":
|
|
444
|
+
case "com.amazonaws.launchwizard#ResourceLimitException":
|
|
445
|
+
throw await de_ResourceLimitExceptionRes(parsedOutput, context);
|
|
446
|
+
case "ResourceNotFoundException":
|
|
447
|
+
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
448
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
449
|
+
case "ValidationException":
|
|
450
|
+
case "com.amazonaws.launchwizard#ValidationException":
|
|
451
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
452
|
+
default:
|
|
453
|
+
const parsedBody = parsedOutput.body;
|
|
454
|
+
return throwDefaultError({
|
|
455
|
+
output,
|
|
456
|
+
parsedBody,
|
|
457
|
+
errorCode
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
}, "de_CreateDeploymentCommandError");
|
|
461
|
+
var de_DeleteDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
462
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
463
|
+
return de_DeleteDeploymentCommandError(output, context);
|
|
464
|
+
}
|
|
465
|
+
const contents = (0, import_smithy_client.map)({
|
|
466
|
+
$metadata: deserializeMetadata(output)
|
|
467
|
+
});
|
|
468
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
469
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
470
|
+
status: import_smithy_client.expectString,
|
|
471
|
+
statusReason: import_smithy_client.expectString
|
|
472
|
+
});
|
|
473
|
+
Object.assign(contents, doc);
|
|
474
|
+
return contents;
|
|
475
|
+
}, "de_DeleteDeploymentCommand");
|
|
476
|
+
var de_DeleteDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
477
|
+
const parsedOutput = {
|
|
478
|
+
...output,
|
|
479
|
+
body: await parseErrorBody(output.body, context)
|
|
480
|
+
};
|
|
481
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
482
|
+
switch (errorCode) {
|
|
483
|
+
case "InternalServerException":
|
|
484
|
+
case "com.amazonaws.launchwizard#InternalServerException":
|
|
485
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
486
|
+
case "ResourceNotFoundException":
|
|
487
|
+
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
488
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
489
|
+
case "ValidationException":
|
|
490
|
+
case "com.amazonaws.launchwizard#ValidationException":
|
|
491
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
492
|
+
default:
|
|
493
|
+
const parsedBody = parsedOutput.body;
|
|
494
|
+
return throwDefaultError({
|
|
495
|
+
output,
|
|
496
|
+
parsedBody,
|
|
497
|
+
errorCode
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
}, "de_DeleteDeploymentCommandError");
|
|
501
|
+
var de_GetDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
502
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
+
return de_GetDeploymentCommandError(output, context);
|
|
504
|
+
}
|
|
505
|
+
const contents = (0, import_smithy_client.map)({
|
|
506
|
+
$metadata: deserializeMetadata(output)
|
|
507
|
+
});
|
|
508
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
509
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
510
|
+
deployment: (_) => de_DeploymentData(_, context)
|
|
511
|
+
});
|
|
512
|
+
Object.assign(contents, doc);
|
|
513
|
+
return contents;
|
|
514
|
+
}, "de_GetDeploymentCommand");
|
|
515
|
+
var de_GetDeploymentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
516
|
+
const parsedOutput = {
|
|
517
|
+
...output,
|
|
518
|
+
body: await parseErrorBody(output.body, context)
|
|
519
|
+
};
|
|
520
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
521
|
+
switch (errorCode) {
|
|
522
|
+
case "InternalServerException":
|
|
523
|
+
case "com.amazonaws.launchwizard#InternalServerException":
|
|
524
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
525
|
+
case "ResourceNotFoundException":
|
|
526
|
+
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
527
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
528
|
+
case "ValidationException":
|
|
529
|
+
case "com.amazonaws.launchwizard#ValidationException":
|
|
530
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
531
|
+
default:
|
|
532
|
+
const parsedBody = parsedOutput.body;
|
|
533
|
+
return throwDefaultError({
|
|
534
|
+
output,
|
|
535
|
+
parsedBody,
|
|
536
|
+
errorCode
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
}, "de_GetDeploymentCommandError");
|
|
540
|
+
var de_GetWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
541
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
+
return de_GetWorkloadCommandError(output, context);
|
|
543
|
+
}
|
|
544
|
+
const contents = (0, import_smithy_client.map)({
|
|
545
|
+
$metadata: deserializeMetadata(output)
|
|
546
|
+
});
|
|
547
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
548
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
549
|
+
workload: import_smithy_client._json
|
|
550
|
+
});
|
|
551
|
+
Object.assign(contents, doc);
|
|
552
|
+
return contents;
|
|
553
|
+
}, "de_GetWorkloadCommand");
|
|
554
|
+
var de_GetWorkloadCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
555
|
+
const parsedOutput = {
|
|
556
|
+
...output,
|
|
557
|
+
body: await parseErrorBody(output.body, context)
|
|
558
|
+
};
|
|
559
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
560
|
+
switch (errorCode) {
|
|
561
|
+
case "InternalServerException":
|
|
562
|
+
case "com.amazonaws.launchwizard#InternalServerException":
|
|
563
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
564
|
+
case "ResourceNotFoundException":
|
|
565
|
+
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
566
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
567
|
+
case "ValidationException":
|
|
568
|
+
case "com.amazonaws.launchwizard#ValidationException":
|
|
569
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
570
|
+
default:
|
|
571
|
+
const parsedBody = parsedOutput.body;
|
|
572
|
+
return throwDefaultError({
|
|
573
|
+
output,
|
|
574
|
+
parsedBody,
|
|
575
|
+
errorCode
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
}, "de_GetWorkloadCommandError");
|
|
579
|
+
var de_ListDeploymentEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
580
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
581
|
+
return de_ListDeploymentEventsCommandError(output, context);
|
|
582
|
+
}
|
|
583
|
+
const contents = (0, import_smithy_client.map)({
|
|
584
|
+
$metadata: deserializeMetadata(output)
|
|
585
|
+
});
|
|
586
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
587
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
588
|
+
deploymentEvents: (_) => de_DeploymentEventDataSummaryList(_, context),
|
|
589
|
+
nextToken: import_smithy_client.expectString
|
|
590
|
+
});
|
|
591
|
+
Object.assign(contents, doc);
|
|
592
|
+
return contents;
|
|
593
|
+
}, "de_ListDeploymentEventsCommand");
|
|
594
|
+
var de_ListDeploymentEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
595
|
+
const parsedOutput = {
|
|
596
|
+
...output,
|
|
597
|
+
body: await parseErrorBody(output.body, context)
|
|
598
|
+
};
|
|
599
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
600
|
+
switch (errorCode) {
|
|
601
|
+
case "InternalServerException":
|
|
602
|
+
case "com.amazonaws.launchwizard#InternalServerException":
|
|
603
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
604
|
+
case "ResourceNotFoundException":
|
|
605
|
+
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
606
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
607
|
+
case "ValidationException":
|
|
608
|
+
case "com.amazonaws.launchwizard#ValidationException":
|
|
609
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
610
|
+
default:
|
|
611
|
+
const parsedBody = parsedOutput.body;
|
|
612
|
+
return throwDefaultError({
|
|
613
|
+
output,
|
|
614
|
+
parsedBody,
|
|
615
|
+
errorCode
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
}, "de_ListDeploymentEventsCommandError");
|
|
619
|
+
var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
620
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
621
|
+
return de_ListDeploymentsCommandError(output, context);
|
|
622
|
+
}
|
|
623
|
+
const contents = (0, import_smithy_client.map)({
|
|
624
|
+
$metadata: deserializeMetadata(output)
|
|
625
|
+
});
|
|
626
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
627
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
628
|
+
deployments: (_) => de_DeploymentDataSummaryList(_, context),
|
|
629
|
+
nextToken: import_smithy_client.expectString
|
|
630
|
+
});
|
|
631
|
+
Object.assign(contents, doc);
|
|
632
|
+
return contents;
|
|
633
|
+
}, "de_ListDeploymentsCommand");
|
|
634
|
+
var de_ListDeploymentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
635
|
+
const parsedOutput = {
|
|
636
|
+
...output,
|
|
637
|
+
body: await parseErrorBody(output.body, context)
|
|
638
|
+
};
|
|
639
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
+
switch (errorCode) {
|
|
641
|
+
case "InternalServerException":
|
|
642
|
+
case "com.amazonaws.launchwizard#InternalServerException":
|
|
643
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
644
|
+
case "ValidationException":
|
|
645
|
+
case "com.amazonaws.launchwizard#ValidationException":
|
|
646
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
647
|
+
default:
|
|
648
|
+
const parsedBody = parsedOutput.body;
|
|
649
|
+
return throwDefaultError({
|
|
650
|
+
output,
|
|
651
|
+
parsedBody,
|
|
652
|
+
errorCode
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
}, "de_ListDeploymentsCommandError");
|
|
656
|
+
var de_ListWorkloadDeploymentPatternsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
657
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
658
|
+
return de_ListWorkloadDeploymentPatternsCommandError(output, context);
|
|
659
|
+
}
|
|
660
|
+
const contents = (0, import_smithy_client.map)({
|
|
661
|
+
$metadata: deserializeMetadata(output)
|
|
662
|
+
});
|
|
663
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
664
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
665
|
+
nextToken: import_smithy_client.expectString,
|
|
666
|
+
workloadDeploymentPatterns: import_smithy_client._json
|
|
667
|
+
});
|
|
668
|
+
Object.assign(contents, doc);
|
|
669
|
+
return contents;
|
|
670
|
+
}, "de_ListWorkloadDeploymentPatternsCommand");
|
|
671
|
+
var de_ListWorkloadDeploymentPatternsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
672
|
+
const parsedOutput = {
|
|
673
|
+
...output,
|
|
674
|
+
body: await parseErrorBody(output.body, context)
|
|
675
|
+
};
|
|
676
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
677
|
+
switch (errorCode) {
|
|
678
|
+
case "InternalServerException":
|
|
679
|
+
case "com.amazonaws.launchwizard#InternalServerException":
|
|
680
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
681
|
+
case "ResourceNotFoundException":
|
|
682
|
+
case "com.amazonaws.launchwizard#ResourceNotFoundException":
|
|
683
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
684
|
+
case "ValidationException":
|
|
685
|
+
case "com.amazonaws.launchwizard#ValidationException":
|
|
686
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
687
|
+
default:
|
|
688
|
+
const parsedBody = parsedOutput.body;
|
|
689
|
+
return throwDefaultError({
|
|
690
|
+
output,
|
|
691
|
+
parsedBody,
|
|
692
|
+
errorCode
|
|
693
|
+
});
|
|
694
|
+
}
|
|
695
|
+
}, "de_ListWorkloadDeploymentPatternsCommandError");
|
|
696
|
+
var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
697
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
698
|
+
return de_ListWorkloadsCommandError(output, context);
|
|
699
|
+
}
|
|
700
|
+
const contents = (0, import_smithy_client.map)({
|
|
701
|
+
$metadata: deserializeMetadata(output)
|
|
702
|
+
});
|
|
703
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
704
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
705
|
+
nextToken: import_smithy_client.expectString,
|
|
706
|
+
workloads: import_smithy_client._json
|
|
707
|
+
});
|
|
708
|
+
Object.assign(contents, doc);
|
|
709
|
+
return contents;
|
|
710
|
+
}, "de_ListWorkloadsCommand");
|
|
711
|
+
var de_ListWorkloadsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
712
|
+
const parsedOutput = {
|
|
713
|
+
...output,
|
|
714
|
+
body: await parseErrorBody(output.body, context)
|
|
715
|
+
};
|
|
716
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
717
|
+
switch (errorCode) {
|
|
718
|
+
case "InternalServerException":
|
|
719
|
+
case "com.amazonaws.launchwizard#InternalServerException":
|
|
720
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
721
|
+
case "ValidationException":
|
|
722
|
+
case "com.amazonaws.launchwizard#ValidationException":
|
|
723
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
724
|
+
default:
|
|
725
|
+
const parsedBody = parsedOutput.body;
|
|
726
|
+
return throwDefaultError({
|
|
727
|
+
output,
|
|
728
|
+
parsedBody,
|
|
729
|
+
errorCode
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
}, "de_ListWorkloadsCommandError");
|
|
733
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(LaunchWizardServiceException);
|
|
734
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
735
|
+
const contents = (0, import_smithy_client.map)({});
|
|
736
|
+
const data = parsedOutput.body;
|
|
737
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
738
|
+
message: import_smithy_client.expectString
|
|
739
|
+
});
|
|
740
|
+
Object.assign(contents, doc);
|
|
741
|
+
const exception = new InternalServerException({
|
|
742
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
743
|
+
...contents
|
|
744
|
+
});
|
|
745
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
746
|
+
}, "de_InternalServerExceptionRes");
|
|
747
|
+
var de_ResourceLimitExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
748
|
+
const contents = (0, import_smithy_client.map)({});
|
|
749
|
+
const data = parsedOutput.body;
|
|
750
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
751
|
+
message: import_smithy_client.expectString
|
|
752
|
+
});
|
|
753
|
+
Object.assign(contents, doc);
|
|
754
|
+
const exception = new ResourceLimitException({
|
|
755
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
756
|
+
...contents
|
|
757
|
+
});
|
|
758
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
759
|
+
}, "de_ResourceLimitExceptionRes");
|
|
760
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
761
|
+
const contents = (0, import_smithy_client.map)({});
|
|
762
|
+
const data = parsedOutput.body;
|
|
763
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
764
|
+
message: import_smithy_client.expectString
|
|
765
|
+
});
|
|
766
|
+
Object.assign(contents, doc);
|
|
767
|
+
const exception = new ResourceNotFoundException({
|
|
768
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
769
|
+
...contents
|
|
770
|
+
});
|
|
771
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
772
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
773
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
774
|
+
const contents = (0, import_smithy_client.map)({});
|
|
775
|
+
const data = parsedOutput.body;
|
|
776
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
777
|
+
message: import_smithy_client.expectString
|
|
778
|
+
});
|
|
779
|
+
Object.assign(contents, doc);
|
|
780
|
+
const exception = new ValidationException({
|
|
781
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
782
|
+
...contents
|
|
783
|
+
});
|
|
784
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
785
|
+
}, "de_ValidationExceptionRes");
|
|
786
|
+
var de_DeploymentData = /* @__PURE__ */ __name((output, context) => {
|
|
787
|
+
return (0, import_smithy_client.take)(output, {
|
|
788
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
789
|
+
deletedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
790
|
+
id: import_smithy_client.expectString,
|
|
791
|
+
name: import_smithy_client.expectString,
|
|
792
|
+
patternName: import_smithy_client.expectString,
|
|
793
|
+
resourceGroup: import_smithy_client.expectString,
|
|
794
|
+
specifications: import_smithy_client._json,
|
|
795
|
+
status: import_smithy_client.expectString,
|
|
796
|
+
workloadName: import_smithy_client.expectString
|
|
797
|
+
});
|
|
798
|
+
}, "de_DeploymentData");
|
|
799
|
+
var de_DeploymentDataSummary = /* @__PURE__ */ __name((output, context) => {
|
|
800
|
+
return (0, import_smithy_client.take)(output, {
|
|
801
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
802
|
+
id: import_smithy_client.expectString,
|
|
803
|
+
name: import_smithy_client.expectString,
|
|
804
|
+
patternName: import_smithy_client.expectString,
|
|
805
|
+
status: import_smithy_client.expectString,
|
|
806
|
+
workloadName: import_smithy_client.expectString
|
|
807
|
+
});
|
|
808
|
+
}, "de_DeploymentDataSummary");
|
|
809
|
+
var de_DeploymentDataSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
810
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
811
|
+
return de_DeploymentDataSummary(entry, context);
|
|
812
|
+
});
|
|
813
|
+
return retVal;
|
|
814
|
+
}, "de_DeploymentDataSummaryList");
|
|
815
|
+
var de_DeploymentEventDataSummary = /* @__PURE__ */ __name((output, context) => {
|
|
816
|
+
return (0, import_smithy_client.take)(output, {
|
|
817
|
+
description: import_smithy_client.expectString,
|
|
818
|
+
name: import_smithy_client.expectString,
|
|
819
|
+
status: import_smithy_client.expectString,
|
|
820
|
+
statusReason: import_smithy_client.expectString,
|
|
821
|
+
timestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
822
|
+
});
|
|
823
|
+
}, "de_DeploymentEventDataSummary");
|
|
824
|
+
var de_DeploymentEventDataSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
825
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
826
|
+
return de_DeploymentEventDataSummary(entry, context);
|
|
827
|
+
});
|
|
828
|
+
return retVal;
|
|
829
|
+
}, "de_DeploymentEventDataSummaryList");
|
|
830
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
831
|
+
httpStatusCode: output.statusCode,
|
|
832
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
833
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
834
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
835
|
+
}), "deserializeMetadata");
|
|
836
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
837
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
838
|
+
if (encoded.length) {
|
|
839
|
+
return JSON.parse(encoded);
|
|
840
|
+
}
|
|
841
|
+
return {};
|
|
842
|
+
}), "parseBody");
|
|
843
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
844
|
+
const value = await parseBody(errorBody, context);
|
|
845
|
+
value.message = value.message ?? value.Message;
|
|
846
|
+
return value;
|
|
847
|
+
}, "parseErrorBody");
|
|
848
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
849
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
850
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
851
|
+
let cleanValue = rawValue;
|
|
852
|
+
if (typeof cleanValue === "number") {
|
|
853
|
+
cleanValue = cleanValue.toString();
|
|
854
|
+
}
|
|
855
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
856
|
+
cleanValue = cleanValue.split(",")[0];
|
|
857
|
+
}
|
|
858
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
859
|
+
cleanValue = cleanValue.split(":")[0];
|
|
860
|
+
}
|
|
861
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
862
|
+
cleanValue = cleanValue.split("#")[1];
|
|
863
|
+
}
|
|
864
|
+
return cleanValue;
|
|
865
|
+
}, "sanitizeErrorCode");
|
|
866
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
867
|
+
if (headerKey !== void 0) {
|
|
868
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
869
|
+
}
|
|
870
|
+
if (data.code !== void 0) {
|
|
871
|
+
return sanitizeErrorCode(data.code);
|
|
872
|
+
}
|
|
873
|
+
if (data["__type"] !== void 0) {
|
|
874
|
+
return sanitizeErrorCode(data["__type"]);
|
|
875
|
+
}
|
|
876
|
+
}, "loadRestJsonErrorCode");
|
|
877
|
+
|
|
878
|
+
// src/commands/CreateDeploymentCommand.ts
|
|
879
|
+
var _CreateDeploymentCommand = class _CreateDeploymentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
880
|
+
...commonParams
|
|
881
|
+
}).m(function(Command, cs, config, o) {
|
|
882
|
+
return [
|
|
883
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
884
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
885
|
+
];
|
|
886
|
+
}).s("LaunchWizard", "CreateDeployment", {}).n("LaunchWizardClient", "CreateDeploymentCommand").f(CreateDeploymentInputFilterSensitiveLog, void 0).ser(se_CreateDeploymentCommand).de(de_CreateDeploymentCommand).build() {
|
|
887
|
+
};
|
|
888
|
+
__name(_CreateDeploymentCommand, "CreateDeploymentCommand");
|
|
889
|
+
var CreateDeploymentCommand = _CreateDeploymentCommand;
|
|
890
|
+
|
|
891
|
+
// src/commands/DeleteDeploymentCommand.ts
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
|
|
896
|
+
var _DeleteDeploymentCommand = class _DeleteDeploymentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
897
|
+
...commonParams
|
|
898
|
+
}).m(function(Command, cs, config, o) {
|
|
899
|
+
return [
|
|
900
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
901
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
902
|
+
];
|
|
903
|
+
}).s("LaunchWizard", "DeleteDeployment", {}).n("LaunchWizardClient", "DeleteDeploymentCommand").f(void 0, void 0).ser(se_DeleteDeploymentCommand).de(de_DeleteDeploymentCommand).build() {
|
|
904
|
+
};
|
|
905
|
+
__name(_DeleteDeploymentCommand, "DeleteDeploymentCommand");
|
|
906
|
+
var DeleteDeploymentCommand = _DeleteDeploymentCommand;
|
|
907
|
+
|
|
908
|
+
// src/commands/GetDeploymentCommand.ts
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
var _GetDeploymentCommand = class _GetDeploymentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
914
|
+
...commonParams
|
|
915
|
+
}).m(function(Command, cs, config, o) {
|
|
916
|
+
return [
|
|
917
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
918
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
919
|
+
];
|
|
920
|
+
}).s("LaunchWizard", "GetDeployment", {}).n("LaunchWizardClient", "GetDeploymentCommand").f(void 0, GetDeploymentOutputFilterSensitiveLog).ser(se_GetDeploymentCommand).de(de_GetDeploymentCommand).build() {
|
|
921
|
+
};
|
|
922
|
+
__name(_GetDeploymentCommand, "GetDeploymentCommand");
|
|
923
|
+
var GetDeploymentCommand = _GetDeploymentCommand;
|
|
924
|
+
|
|
925
|
+
// src/commands/GetWorkloadCommand.ts
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
var _GetWorkloadCommand = class _GetWorkloadCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
931
|
+
...commonParams
|
|
932
|
+
}).m(function(Command, cs, config, o) {
|
|
933
|
+
return [
|
|
934
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
935
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
936
|
+
];
|
|
937
|
+
}).s("LaunchWizard", "GetWorkload", {}).n("LaunchWizardClient", "GetWorkloadCommand").f(void 0, void 0).ser(se_GetWorkloadCommand).de(de_GetWorkloadCommand).build() {
|
|
938
|
+
};
|
|
939
|
+
__name(_GetWorkloadCommand, "GetWorkloadCommand");
|
|
940
|
+
var GetWorkloadCommand = _GetWorkloadCommand;
|
|
941
|
+
|
|
942
|
+
// src/commands/ListDeploymentEventsCommand.ts
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
|
|
947
|
+
var _ListDeploymentEventsCommand = class _ListDeploymentEventsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
948
|
+
...commonParams
|
|
949
|
+
}).m(function(Command, cs, config, o) {
|
|
950
|
+
return [
|
|
951
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
952
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
953
|
+
];
|
|
954
|
+
}).s("LaunchWizard", "ListDeploymentEvents", {}).n("LaunchWizardClient", "ListDeploymentEventsCommand").f(void 0, void 0).ser(se_ListDeploymentEventsCommand).de(de_ListDeploymentEventsCommand).build() {
|
|
955
|
+
};
|
|
956
|
+
__name(_ListDeploymentEventsCommand, "ListDeploymentEventsCommand");
|
|
957
|
+
var ListDeploymentEventsCommand = _ListDeploymentEventsCommand;
|
|
958
|
+
|
|
959
|
+
// src/commands/ListDeploymentsCommand.ts
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
var _ListDeploymentsCommand = class _ListDeploymentsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
965
|
+
...commonParams
|
|
966
|
+
}).m(function(Command, cs, config, o) {
|
|
967
|
+
return [
|
|
968
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
969
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
970
|
+
];
|
|
971
|
+
}).s("LaunchWizard", "ListDeployments", {}).n("LaunchWizardClient", "ListDeploymentsCommand").f(void 0, void 0).ser(se_ListDeploymentsCommand).de(de_ListDeploymentsCommand).build() {
|
|
972
|
+
};
|
|
973
|
+
__name(_ListDeploymentsCommand, "ListDeploymentsCommand");
|
|
974
|
+
var ListDeploymentsCommand = _ListDeploymentsCommand;
|
|
975
|
+
|
|
976
|
+
// src/commands/ListWorkloadDeploymentPatternsCommand.ts
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
|
|
981
|
+
var _ListWorkloadDeploymentPatternsCommand = class _ListWorkloadDeploymentPatternsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
982
|
+
...commonParams
|
|
983
|
+
}).m(function(Command, cs, config, o) {
|
|
984
|
+
return [
|
|
985
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
986
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
987
|
+
];
|
|
988
|
+
}).s("LaunchWizard", "ListWorkloadDeploymentPatterns", {}).n("LaunchWizardClient", "ListWorkloadDeploymentPatternsCommand").f(void 0, void 0).ser(se_ListWorkloadDeploymentPatternsCommand).de(de_ListWorkloadDeploymentPatternsCommand).build() {
|
|
989
|
+
};
|
|
990
|
+
__name(_ListWorkloadDeploymentPatternsCommand, "ListWorkloadDeploymentPatternsCommand");
|
|
991
|
+
var ListWorkloadDeploymentPatternsCommand = _ListWorkloadDeploymentPatternsCommand;
|
|
992
|
+
|
|
993
|
+
// src/commands/ListWorkloadsCommand.ts
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
|
|
998
|
+
var _ListWorkloadsCommand = class _ListWorkloadsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
999
|
+
...commonParams
|
|
1000
|
+
}).m(function(Command, cs, config, o) {
|
|
1001
|
+
return [
|
|
1002
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1003
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1004
|
+
];
|
|
1005
|
+
}).s("LaunchWizard", "ListWorkloads", {}).n("LaunchWizardClient", "ListWorkloadsCommand").f(void 0, void 0).ser(se_ListWorkloadsCommand).de(de_ListWorkloadsCommand).build() {
|
|
1006
|
+
};
|
|
1007
|
+
__name(_ListWorkloadsCommand, "ListWorkloadsCommand");
|
|
1008
|
+
var ListWorkloadsCommand = _ListWorkloadsCommand;
|
|
1009
|
+
|
|
1010
|
+
// src/LaunchWizard.ts
|
|
1011
|
+
var commands = {
|
|
1012
|
+
CreateDeploymentCommand,
|
|
1013
|
+
DeleteDeploymentCommand,
|
|
1014
|
+
GetDeploymentCommand,
|
|
1015
|
+
GetWorkloadCommand,
|
|
1016
|
+
ListDeploymentEventsCommand,
|
|
1017
|
+
ListDeploymentsCommand,
|
|
1018
|
+
ListWorkloadDeploymentPatternsCommand,
|
|
1019
|
+
ListWorkloadsCommand
|
|
1020
|
+
};
|
|
1021
|
+
var _LaunchWizard = class _LaunchWizard extends LaunchWizardClient {
|
|
1022
|
+
};
|
|
1023
|
+
__name(_LaunchWizard, "LaunchWizard");
|
|
1024
|
+
var LaunchWizard = _LaunchWizard;
|
|
1025
|
+
(0, import_smithy_client.createAggregatedClient)(commands, LaunchWizard);
|
|
1026
|
+
|
|
1027
|
+
// src/pagination/ListDeploymentEventsPaginator.ts
|
|
1028
|
+
|
|
1029
|
+
var paginateListDeploymentEvents = (0, import_core.createPaginator)(LaunchWizardClient, ListDeploymentEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
1030
|
+
|
|
1031
|
+
// src/pagination/ListDeploymentsPaginator.ts
|
|
1032
|
+
|
|
1033
|
+
var paginateListDeployments = (0, import_core.createPaginator)(LaunchWizardClient, ListDeploymentsCommand, "nextToken", "nextToken", "maxResults");
|
|
1034
|
+
|
|
1035
|
+
// src/pagination/ListWorkloadDeploymentPatternsPaginator.ts
|
|
1036
|
+
|
|
1037
|
+
var paginateListWorkloadDeploymentPatterns = (0, import_core.createPaginator)(LaunchWizardClient, ListWorkloadDeploymentPatternsCommand, "nextToken", "nextToken", "maxResults");
|
|
1038
|
+
|
|
1039
|
+
// src/pagination/ListWorkloadsPaginator.ts
|
|
1040
|
+
|
|
1041
|
+
var paginateListWorkloads = (0, import_core.createPaginator)(LaunchWizardClient, ListWorkloadsCommand, "nextToken", "nextToken", "maxResults");
|
|
1042
|
+
|
|
1043
|
+
// src/index.ts
|
|
1044
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1045
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1046
|
+
0 && (module.exports = {
|
|
1047
|
+
CreateDeploymentCommand,
|
|
1048
|
+
CreateDeploymentInputFilterSensitiveLog,
|
|
1049
|
+
DeleteDeploymentCommand,
|
|
1050
|
+
DeploymentDataFilterSensitiveLog,
|
|
1051
|
+
DeploymentFilterKey,
|
|
1052
|
+
DeploymentStatus,
|
|
1053
|
+
EventStatus,
|
|
1054
|
+
GetDeploymentCommand,
|
|
1055
|
+
GetDeploymentOutputFilterSensitiveLog,
|
|
1056
|
+
GetWorkloadCommand,
|
|
1057
|
+
InternalServerException,
|
|
1058
|
+
LaunchWizard,
|
|
1059
|
+
LaunchWizardClient,
|
|
1060
|
+
LaunchWizardServiceException,
|
|
1061
|
+
ListDeploymentEventsCommand,
|
|
1062
|
+
ListDeploymentsCommand,
|
|
1063
|
+
ListWorkloadDeploymentPatternsCommand,
|
|
1064
|
+
ListWorkloadsCommand,
|
|
1065
|
+
ResourceLimitException,
|
|
1066
|
+
ResourceNotFoundException,
|
|
1067
|
+
ValidationException,
|
|
1068
|
+
WorkloadDeploymentPatternStatus,
|
|
1069
|
+
WorkloadStatus,
|
|
1070
|
+
__Client,
|
|
1071
|
+
paginateListDeploymentEvents,
|
|
1072
|
+
paginateListDeployments,
|
|
1073
|
+
paginateListWorkloadDeploymentPatterns,
|
|
1074
|
+
paginateListWorkloads
|
|
1075
|
+
});
|