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