@aws-sdk/client-mwaa 3.901.0 → 3.906.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1169 -1327
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -1,1382 +1,1224 @@
|
|
|
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: "airflow",
|
|
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
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
-
CreateCliTokenCommand: () => CreateCliTokenCommand,
|
|
26
|
-
CreateCliTokenResponseFilterSensitiveLog: () => CreateCliTokenResponseFilterSensitiveLog,
|
|
27
|
-
CreateEnvironmentCommand: () => CreateEnvironmentCommand,
|
|
28
|
-
CreateEnvironmentInputFilterSensitiveLog: () => CreateEnvironmentInputFilterSensitiveLog,
|
|
29
|
-
CreateWebLoginTokenCommand: () => CreateWebLoginTokenCommand,
|
|
30
|
-
CreateWebLoginTokenResponseFilterSensitiveLog: () => CreateWebLoginTokenResponseFilterSensitiveLog,
|
|
31
|
-
DeleteEnvironmentCommand: () => DeleteEnvironmentCommand,
|
|
32
|
-
EndpointManagement: () => EndpointManagement,
|
|
33
|
-
EnvironmentFilterSensitiveLog: () => EnvironmentFilterSensitiveLog,
|
|
34
|
-
EnvironmentStatus: () => EnvironmentStatus,
|
|
35
|
-
GetEnvironmentCommand: () => GetEnvironmentCommand,
|
|
36
|
-
GetEnvironmentOutputFilterSensitiveLog: () => GetEnvironmentOutputFilterSensitiveLog,
|
|
37
|
-
InternalServerException: () => InternalServerException,
|
|
38
|
-
InvokeRestApiCommand: () => InvokeRestApiCommand,
|
|
39
|
-
InvokeRestApiRequestFilterSensitiveLog: () => InvokeRestApiRequestFilterSensitiveLog,
|
|
40
|
-
InvokeRestApiResponseFilterSensitiveLog: () => InvokeRestApiResponseFilterSensitiveLog,
|
|
41
|
-
ListEnvironmentsCommand: () => ListEnvironmentsCommand,
|
|
42
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
43
|
-
LoggingLevel: () => LoggingLevel,
|
|
44
|
-
MWAA: () => MWAA,
|
|
45
|
-
MWAAClient: () => MWAAClient,
|
|
46
|
-
MWAAServiceException: () => MWAAServiceException,
|
|
47
|
-
PublishMetricsCommand: () => PublishMetricsCommand,
|
|
48
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
49
|
-
RestApiClientException: () => RestApiClientException,
|
|
50
|
-
RestApiMethod: () => RestApiMethod,
|
|
51
|
-
RestApiServerException: () => RestApiServerException,
|
|
52
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
53
|
-
Unit: () => Unit,
|
|
54
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
55
|
-
UpdateEnvironmentCommand: () => UpdateEnvironmentCommand,
|
|
56
|
-
UpdateEnvironmentInputFilterSensitiveLog: () => UpdateEnvironmentInputFilterSensitiveLog,
|
|
57
|
-
UpdateStatus: () => UpdateStatus,
|
|
58
|
-
ValidationException: () => ValidationException,
|
|
59
|
-
WebserverAccessMode: () => WebserverAccessMode,
|
|
60
|
-
WorkerReplacementStrategy: () => WorkerReplacementStrategy,
|
|
61
|
-
__Client: () => import_smithy_client.Client,
|
|
62
|
-
paginateListEnvironments: () => paginateListEnvironments
|
|
63
|
-
});
|
|
64
|
-
module.exports = __toCommonJS(index_exports);
|
|
65
33
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
+
};
|
|
92
71
|
};
|
|
93
72
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
100
|
-
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
|
+
};
|
|
101
78
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
79
|
+
class MWAAClient 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.defaultMWAAHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
130
107
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
136
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
137
|
-
credentials: config.credentials()
|
|
138
|
-
};
|
|
139
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
140
|
-
|
|
141
|
-
// src/runtimeExtensions.ts
|
|
142
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
143
|
-
const extensionConfiguration = Object.assign(
|
|
144
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
145
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
146
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
147
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
148
|
-
);
|
|
149
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
150
|
-
return Object.assign(
|
|
151
|
-
runtimeConfig,
|
|
152
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
153
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
154
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
155
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
156
|
-
);
|
|
157
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
158
112
|
|
|
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
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
199
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
200
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
201
|
-
*/
|
|
202
|
-
destroy() {
|
|
203
|
-
super.destroy();
|
|
204
|
-
}
|
|
113
|
+
class MWAAServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, MWAAServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends MWAAServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
Message;
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
this.Message = opts.Message;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
class ResourceNotFoundException extends MWAAServiceException {
|
|
135
|
+
name = "ResourceNotFoundException";
|
|
136
|
+
$fault = "client";
|
|
137
|
+
constructor(opts) {
|
|
138
|
+
super({
|
|
139
|
+
name: "ResourceNotFoundException",
|
|
140
|
+
$fault: "client",
|
|
141
|
+
...opts,
|
|
142
|
+
});
|
|
143
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const EndpointManagement = {
|
|
147
|
+
CUSTOMER: "CUSTOMER",
|
|
148
|
+
SERVICE: "SERVICE",
|
|
205
149
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
// src/models/models_0.ts
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
// src/models/MWAAServiceException.ts
|
|
219
|
-
|
|
220
|
-
var MWAAServiceException = class _MWAAServiceException extends import_smithy_client.ServiceException {
|
|
221
|
-
static {
|
|
222
|
-
__name(this, "MWAAServiceException");
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @internal
|
|
226
|
-
*/
|
|
227
|
-
constructor(options) {
|
|
228
|
-
super(options);
|
|
229
|
-
Object.setPrototypeOf(this, _MWAAServiceException.prototype);
|
|
230
|
-
}
|
|
150
|
+
const LoggingLevel = {
|
|
151
|
+
CRITICAL: "CRITICAL",
|
|
152
|
+
DEBUG: "DEBUG",
|
|
153
|
+
ERROR: "ERROR",
|
|
154
|
+
INFO: "INFO",
|
|
155
|
+
WARNING: "WARNING",
|
|
231
156
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
static {
|
|
236
|
-
__name(this, "AccessDeniedException");
|
|
237
|
-
}
|
|
238
|
-
name = "AccessDeniedException";
|
|
239
|
-
$fault = "client";
|
|
240
|
-
Message;
|
|
241
|
-
/**
|
|
242
|
-
* @internal
|
|
243
|
-
*/
|
|
244
|
-
constructor(opts) {
|
|
245
|
-
super({
|
|
246
|
-
name: "AccessDeniedException",
|
|
247
|
-
$fault: "client",
|
|
248
|
-
...opts
|
|
249
|
-
});
|
|
250
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
251
|
-
this.Message = opts.Message;
|
|
252
|
-
}
|
|
157
|
+
const WebserverAccessMode = {
|
|
158
|
+
PRIVATE_ONLY: "PRIVATE_ONLY",
|
|
159
|
+
PUBLIC_ONLY: "PUBLIC_ONLY",
|
|
253
160
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
161
|
+
class InternalServerException extends MWAAServiceException {
|
|
162
|
+
name = "InternalServerException";
|
|
163
|
+
$fault = "server";
|
|
164
|
+
constructor(opts) {
|
|
165
|
+
super({
|
|
166
|
+
name: "InternalServerException",
|
|
167
|
+
$fault: "server",
|
|
168
|
+
...opts,
|
|
169
|
+
});
|
|
170
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
class ValidationException extends MWAAServiceException {
|
|
174
|
+
name = "ValidationException";
|
|
175
|
+
$fault = "client";
|
|
176
|
+
constructor(opts) {
|
|
177
|
+
super({
|
|
178
|
+
name: "ValidationException",
|
|
179
|
+
$fault: "client",
|
|
180
|
+
...opts,
|
|
181
|
+
});
|
|
182
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
const UpdateStatus = {
|
|
186
|
+
FAILED: "FAILED",
|
|
187
|
+
PENDING: "PENDING",
|
|
188
|
+
SUCCESS: "SUCCESS",
|
|
271
189
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
190
|
+
const WorkerReplacementStrategy = {
|
|
191
|
+
FORCED: "FORCED",
|
|
192
|
+
GRACEFUL: "GRACEFUL",
|
|
275
193
|
};
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
194
|
+
const EnvironmentStatus = {
|
|
195
|
+
AVAILABLE: "AVAILABLE",
|
|
196
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
197
|
+
CREATING: "CREATING",
|
|
198
|
+
CREATING_SNAPSHOT: "CREATING_SNAPSHOT",
|
|
199
|
+
DELETED: "DELETED",
|
|
200
|
+
DELETING: "DELETING",
|
|
201
|
+
MAINTENANCE: "MAINTENANCE",
|
|
202
|
+
PENDING: "PENDING",
|
|
203
|
+
ROLLING_BACK: "ROLLING_BACK",
|
|
204
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
205
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
206
|
+
UPDATING: "UPDATING",
|
|
282
207
|
};
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
208
|
+
const RestApiMethod = {
|
|
209
|
+
DELETE: "DELETE",
|
|
210
|
+
GET: "GET",
|
|
211
|
+
PATCH: "PATCH",
|
|
212
|
+
POST: "POST",
|
|
213
|
+
PUT: "PUT",
|
|
286
214
|
};
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
215
|
+
class RestApiClientException extends MWAAServiceException {
|
|
216
|
+
name = "RestApiClientException";
|
|
217
|
+
$fault = "client";
|
|
218
|
+
RestApiStatusCode;
|
|
219
|
+
RestApiResponse;
|
|
220
|
+
constructor(opts) {
|
|
221
|
+
super({
|
|
222
|
+
name: "RestApiClientException",
|
|
223
|
+
$fault: "client",
|
|
224
|
+
...opts,
|
|
225
|
+
});
|
|
226
|
+
Object.setPrototypeOf(this, RestApiClientException.prototype);
|
|
227
|
+
this.RestApiStatusCode = opts.RestApiStatusCode;
|
|
228
|
+
this.RestApiResponse = opts.RestApiResponse;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
class RestApiServerException extends MWAAServiceException {
|
|
232
|
+
name = "RestApiServerException";
|
|
233
|
+
$fault = "client";
|
|
234
|
+
RestApiStatusCode;
|
|
235
|
+
RestApiResponse;
|
|
236
|
+
constructor(opts) {
|
|
237
|
+
super({
|
|
238
|
+
name: "RestApiServerException",
|
|
239
|
+
$fault: "client",
|
|
240
|
+
...opts,
|
|
241
|
+
});
|
|
242
|
+
Object.setPrototypeOf(this, RestApiServerException.prototype);
|
|
243
|
+
this.RestApiStatusCode = opts.RestApiStatusCode;
|
|
244
|
+
this.RestApiResponse = opts.RestApiResponse;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
const Unit = {
|
|
248
|
+
BITS: "Bits",
|
|
249
|
+
BITS_PER_SECOND: "Bits/Second",
|
|
250
|
+
BYTES: "Bytes",
|
|
251
|
+
BYTES_PER_SECOND: "Bytes/Second",
|
|
252
|
+
COUNT: "Count",
|
|
253
|
+
COUNT_PER_SECOND: "Count/Second",
|
|
254
|
+
GIGABITS: "Gigabits",
|
|
255
|
+
GIGABITS_PER_SECOND: "Gigabits/Second",
|
|
256
|
+
GIGABYTES: "Gigabytes",
|
|
257
|
+
GIGABYTES_PER_SECOND: "Gigabytes/Second",
|
|
258
|
+
KILOBITS: "Kilobits",
|
|
259
|
+
KILOBITS_PER_SECOND: "Kilobits/Second",
|
|
260
|
+
KILOBYTES: "Kilobytes",
|
|
261
|
+
KILOBYTES_PER_SECOND: "Kilobytes/Second",
|
|
262
|
+
MEGABITS: "Megabits",
|
|
263
|
+
MEGABITS_PER_SECOND: "Megabits/Second",
|
|
264
|
+
MEGABYTES: "Megabytes",
|
|
265
|
+
MEGABYTES_PER_SECOND: "Megabytes/Second",
|
|
266
|
+
MICROSECONDS: "Microseconds",
|
|
267
|
+
MILLISECONDS: "Milliseconds",
|
|
268
|
+
NONE: "None",
|
|
269
|
+
PERCENT: "Percent",
|
|
270
|
+
SECONDS: "Seconds",
|
|
271
|
+
TERABITS: "Terabits",
|
|
272
|
+
TERABITS_PER_SECOND: "Terabits/Second",
|
|
273
|
+
TERABYTES: "Terabytes",
|
|
274
|
+
TERABYTES_PER_SECOND: "Terabytes/Second",
|
|
304
275
|
};
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
})
|
|
320
|
-
|
|
321
|
-
|
|
276
|
+
const CreateCliTokenResponseFilterSensitiveLog = (obj) => ({
|
|
277
|
+
...obj,
|
|
278
|
+
...(obj.CliToken && { CliToken: smithyClient.SENSITIVE_STRING }),
|
|
279
|
+
});
|
|
280
|
+
const CreateEnvironmentInputFilterSensitiveLog = (obj) => ({
|
|
281
|
+
...obj,
|
|
282
|
+
...(obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: smithyClient.SENSITIVE_STRING }),
|
|
283
|
+
});
|
|
284
|
+
const CreateWebLoginTokenResponseFilterSensitiveLog = (obj) => ({
|
|
285
|
+
...obj,
|
|
286
|
+
...(obj.WebToken && { WebToken: smithyClient.SENSITIVE_STRING }),
|
|
287
|
+
});
|
|
288
|
+
const EnvironmentFilterSensitiveLog = (obj) => ({
|
|
289
|
+
...obj,
|
|
290
|
+
...(obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: smithyClient.SENSITIVE_STRING }),
|
|
291
|
+
});
|
|
292
|
+
const GetEnvironmentOutputFilterSensitiveLog = (obj) => ({
|
|
293
|
+
...obj,
|
|
294
|
+
...(obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }),
|
|
295
|
+
});
|
|
296
|
+
const InvokeRestApiRequestFilterSensitiveLog = (obj) => ({
|
|
297
|
+
...obj,
|
|
298
|
+
...(obj.Body && { Body: smithyClient.SENSITIVE_STRING }),
|
|
299
|
+
});
|
|
300
|
+
const InvokeRestApiResponseFilterSensitiveLog = (obj) => ({
|
|
301
|
+
...obj,
|
|
302
|
+
...(obj.RestApiResponse && { RestApiResponse: smithyClient.SENSITIVE_STRING }),
|
|
303
|
+
});
|
|
304
|
+
const UpdateEnvironmentInputFilterSensitiveLog = (obj) => ({
|
|
305
|
+
...obj,
|
|
306
|
+
...(obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: smithyClient.SENSITIVE_STRING }),
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
const se_CreateCliTokenCommand = async (input, context) => {
|
|
310
|
+
const b = core.requestBuilder(input, context);
|
|
311
|
+
const headers = {};
|
|
312
|
+
b.bp("/clitoken/{Name}");
|
|
313
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
314
|
+
let body;
|
|
315
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
316
|
+
if (context.disableHostPrefix !== true) {
|
|
317
|
+
resolvedHostname = "env." + resolvedHostname;
|
|
318
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
319
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
b.hn(resolvedHostname);
|
|
323
|
+
b.m("POST").h(headers).b(body);
|
|
324
|
+
return b.build();
|
|
322
325
|
};
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
326
|
+
const se_CreateEnvironmentCommand = async (input, context) => {
|
|
327
|
+
const b = core.requestBuilder(input, context);
|
|
328
|
+
const headers = {
|
|
329
|
+
"content-type": "application/json",
|
|
330
|
+
};
|
|
331
|
+
b.bp("/environments/{Name}");
|
|
332
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
333
|
+
let body;
|
|
334
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
335
|
+
AirflowConfigurationOptions: (_) => smithyClient._json(_),
|
|
336
|
+
AirflowVersion: [],
|
|
337
|
+
DagS3Path: [],
|
|
338
|
+
EndpointManagement: [],
|
|
339
|
+
EnvironmentClass: [],
|
|
340
|
+
ExecutionRoleArn: [],
|
|
341
|
+
KmsKey: [],
|
|
342
|
+
LoggingConfiguration: (_) => smithyClient._json(_),
|
|
343
|
+
MaxWebservers: [],
|
|
344
|
+
MaxWorkers: [],
|
|
345
|
+
MinWebservers: [],
|
|
346
|
+
MinWorkers: [],
|
|
347
|
+
NetworkConfiguration: (_) => smithyClient._json(_),
|
|
348
|
+
PluginsS3ObjectVersion: [],
|
|
349
|
+
PluginsS3Path: [],
|
|
350
|
+
RequirementsS3ObjectVersion: [],
|
|
351
|
+
RequirementsS3Path: [],
|
|
352
|
+
Schedulers: [],
|
|
353
|
+
SourceBucketArn: [],
|
|
354
|
+
StartupScriptS3ObjectVersion: [],
|
|
355
|
+
StartupScriptS3Path: [],
|
|
356
|
+
Tags: (_) => smithyClient._json(_),
|
|
357
|
+
WebserverAccessMode: [],
|
|
358
|
+
WeeklyMaintenanceWindowStart: [],
|
|
359
|
+
}));
|
|
360
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
361
|
+
if (context.disableHostPrefix !== true) {
|
|
362
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
363
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
364
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
b.hn(resolvedHostname);
|
|
368
|
+
b.m("PUT").h(headers).b(body);
|
|
369
|
+
return b.build();
|
|
327
370
|
};
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
371
|
+
const se_CreateWebLoginTokenCommand = async (input, context) => {
|
|
372
|
+
const b = core.requestBuilder(input, context);
|
|
373
|
+
const headers = {};
|
|
374
|
+
b.bp("/webtoken/{Name}");
|
|
375
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
376
|
+
let body;
|
|
377
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
378
|
+
if (context.disableHostPrefix !== true) {
|
|
379
|
+
resolvedHostname = "env." + resolvedHostname;
|
|
380
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
381
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
b.hn(resolvedHostname);
|
|
385
|
+
b.m("POST").h(headers).b(body);
|
|
386
|
+
return b.build();
|
|
331
387
|
};
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
388
|
+
const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
389
|
+
const b = core.requestBuilder(input, context);
|
|
390
|
+
const headers = {};
|
|
391
|
+
b.bp("/environments/{Name}");
|
|
392
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
393
|
+
let body;
|
|
394
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
395
|
+
if (context.disableHostPrefix !== true) {
|
|
396
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
397
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
398
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
b.hn(resolvedHostname);
|
|
402
|
+
b.m("DELETE").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
404
|
+
};
|
|
405
|
+
const se_GetEnvironmentCommand = async (input, context) => {
|
|
406
|
+
const b = core.requestBuilder(input, context);
|
|
407
|
+
const headers = {};
|
|
408
|
+
b.bp("/environments/{Name}");
|
|
409
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
410
|
+
let body;
|
|
411
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
412
|
+
if (context.disableHostPrefix !== true) {
|
|
413
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
414
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
415
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
b.hn(resolvedHostname);
|
|
419
|
+
b.m("GET").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
345
421
|
};
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
422
|
+
const se_InvokeRestApiCommand = async (input, context) => {
|
|
423
|
+
const b = core.requestBuilder(input, context);
|
|
424
|
+
const headers = {
|
|
425
|
+
"content-type": "application/json",
|
|
426
|
+
};
|
|
427
|
+
b.bp("/restapi/{Name}");
|
|
428
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
429
|
+
let body;
|
|
430
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
431
|
+
Body: (_) => se_RestApiRequestBody(_),
|
|
432
|
+
Method: [],
|
|
433
|
+
Path: [],
|
|
434
|
+
QueryParameters: (_) => se_Document(_),
|
|
435
|
+
}));
|
|
436
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
437
|
+
if (context.disableHostPrefix !== true) {
|
|
438
|
+
resolvedHostname = "env." + resolvedHostname;
|
|
439
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
440
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
b.hn(resolvedHostname);
|
|
444
|
+
b.m("POST").h(headers).b(body);
|
|
445
|
+
return b.build();
|
|
352
446
|
};
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
* <p>The HTTP status code returned by the Apache Airflow REST API call.</p>
|
|
361
|
-
* @public
|
|
362
|
-
*/
|
|
363
|
-
RestApiStatusCode;
|
|
364
|
-
/**
|
|
365
|
-
* <p>The error response data from the Apache Airflow REST API call, provided as a JSON
|
|
366
|
-
* object.</p>
|
|
367
|
-
* @public
|
|
368
|
-
*/
|
|
369
|
-
RestApiResponse;
|
|
370
|
-
/**
|
|
371
|
-
* @internal
|
|
372
|
-
*/
|
|
373
|
-
constructor(opts) {
|
|
374
|
-
super({
|
|
375
|
-
name: "RestApiClientException",
|
|
376
|
-
$fault: "client",
|
|
377
|
-
...opts
|
|
447
|
+
const se_ListEnvironmentsCommand = async (input, context) => {
|
|
448
|
+
const b = core.requestBuilder(input, context);
|
|
449
|
+
const headers = {};
|
|
450
|
+
b.bp("/environments");
|
|
451
|
+
const query = smithyClient.map({
|
|
452
|
+
[_NT]: [, input[_NT]],
|
|
453
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
378
454
|
});
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
455
|
+
let body;
|
|
456
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
457
|
+
if (context.disableHostPrefix !== true) {
|
|
458
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
459
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
460
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
b.hn(resolvedHostname);
|
|
464
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
465
|
+
return b.build();
|
|
466
|
+
};
|
|
467
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
468
|
+
const b = core.requestBuilder(input, context);
|
|
469
|
+
const headers = {};
|
|
470
|
+
b.bp("/tags/{ResourceArn}");
|
|
471
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
472
|
+
let body;
|
|
473
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
474
|
+
if (context.disableHostPrefix !== true) {
|
|
475
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
476
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
477
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
b.hn(resolvedHostname);
|
|
481
|
+
b.m("GET").h(headers).b(body);
|
|
482
|
+
return b.build();
|
|
483
|
+
};
|
|
484
|
+
const se_PublishMetricsCommand = async (input, context) => {
|
|
485
|
+
const b = core.requestBuilder(input, context);
|
|
486
|
+
const headers = {
|
|
487
|
+
"content-type": "application/json",
|
|
488
|
+
};
|
|
489
|
+
b.bp("/metrics/environments/{EnvironmentName}");
|
|
490
|
+
b.p("EnvironmentName", () => input.EnvironmentName, "{EnvironmentName}", false);
|
|
491
|
+
let body;
|
|
492
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
493
|
+
MetricData: (_) => se_MetricData(_),
|
|
494
|
+
}));
|
|
495
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
496
|
+
if (context.disableHostPrefix !== true) {
|
|
497
|
+
resolvedHostname = "ops." + resolvedHostname;
|
|
498
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
499
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
b.hn(resolvedHostname);
|
|
503
|
+
b.m("POST").h(headers).b(body);
|
|
504
|
+
return b.build();
|
|
505
|
+
};
|
|
506
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
507
|
+
const b = core.requestBuilder(input, context);
|
|
508
|
+
const headers = {
|
|
509
|
+
"content-type": "application/json",
|
|
510
|
+
};
|
|
511
|
+
b.bp("/tags/{ResourceArn}");
|
|
512
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
513
|
+
let body;
|
|
514
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
515
|
+
Tags: (_) => smithyClient._json(_),
|
|
516
|
+
}));
|
|
517
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
518
|
+
if (context.disableHostPrefix !== true) {
|
|
519
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
520
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
521
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
b.hn(resolvedHostname);
|
|
525
|
+
b.m("POST").h(headers).b(body);
|
|
526
|
+
return b.build();
|
|
383
527
|
};
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
* <p>The HTTP status code returned by the Apache Airflow REST API call.</p>
|
|
392
|
-
* @public
|
|
393
|
-
*/
|
|
394
|
-
RestApiStatusCode;
|
|
395
|
-
/**
|
|
396
|
-
* <p>The error response data from the Apache Airflow REST API call, provided as a JSON
|
|
397
|
-
* object.</p>
|
|
398
|
-
* @public
|
|
399
|
-
*/
|
|
400
|
-
RestApiResponse;
|
|
401
|
-
/**
|
|
402
|
-
* @internal
|
|
403
|
-
*/
|
|
404
|
-
constructor(opts) {
|
|
405
|
-
super({
|
|
406
|
-
name: "RestApiServerException",
|
|
407
|
-
$fault: "client",
|
|
408
|
-
...opts
|
|
528
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
529
|
+
const b = core.requestBuilder(input, context);
|
|
530
|
+
const headers = {};
|
|
531
|
+
b.bp("/tags/{ResourceArn}");
|
|
532
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
533
|
+
const query = smithyClient.map({
|
|
534
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
409
535
|
});
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
536
|
+
let body;
|
|
537
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
538
|
+
if (context.disableHostPrefix !== true) {
|
|
539
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
540
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
541
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
b.hn(resolvedHostname);
|
|
545
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
546
|
+
return b.build();
|
|
414
547
|
};
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
548
|
+
const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
549
|
+
const b = core.requestBuilder(input, context);
|
|
550
|
+
const headers = {
|
|
551
|
+
"content-type": "application/json",
|
|
552
|
+
};
|
|
553
|
+
b.bp("/environments/{Name}");
|
|
554
|
+
b.p("Name", () => input.Name, "{Name}", false);
|
|
555
|
+
let body;
|
|
556
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
557
|
+
AirflowConfigurationOptions: (_) => smithyClient._json(_),
|
|
558
|
+
AirflowVersion: [],
|
|
559
|
+
DagS3Path: [],
|
|
560
|
+
EnvironmentClass: [],
|
|
561
|
+
ExecutionRoleArn: [],
|
|
562
|
+
LoggingConfiguration: (_) => smithyClient._json(_),
|
|
563
|
+
MaxWebservers: [],
|
|
564
|
+
MaxWorkers: [],
|
|
565
|
+
MinWebservers: [],
|
|
566
|
+
MinWorkers: [],
|
|
567
|
+
NetworkConfiguration: (_) => smithyClient._json(_),
|
|
568
|
+
PluginsS3ObjectVersion: [],
|
|
569
|
+
PluginsS3Path: [],
|
|
570
|
+
RequirementsS3ObjectVersion: [],
|
|
571
|
+
RequirementsS3Path: [],
|
|
572
|
+
Schedulers: [],
|
|
573
|
+
SourceBucketArn: [],
|
|
574
|
+
StartupScriptS3ObjectVersion: [],
|
|
575
|
+
StartupScriptS3Path: [],
|
|
576
|
+
WebserverAccessMode: [],
|
|
577
|
+
WeeklyMaintenanceWindowStart: [],
|
|
578
|
+
WorkerReplacementStrategy: [],
|
|
579
|
+
}));
|
|
580
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
581
|
+
if (context.disableHostPrefix !== true) {
|
|
582
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
583
|
+
if (!protocolHttp.isValidHostname(resolvedHostname)) {
|
|
584
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
b.hn(resolvedHostname);
|
|
588
|
+
b.m("PATCH").h(headers).b(body);
|
|
589
|
+
return b.build();
|
|
443
590
|
};
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
})
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
...obj.Environment && { Environment: EnvironmentFilterSensitiveLog(obj.Environment) }
|
|
463
|
-
}), "GetEnvironmentOutputFilterSensitiveLog");
|
|
464
|
-
var InvokeRestApiRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
465
|
-
...obj,
|
|
466
|
-
...obj.Body && { Body: import_smithy_client.SENSITIVE_STRING }
|
|
467
|
-
}), "InvokeRestApiRequestFilterSensitiveLog");
|
|
468
|
-
var InvokeRestApiResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
469
|
-
...obj,
|
|
470
|
-
...obj.RestApiResponse && { RestApiResponse: import_smithy_client.SENSITIVE_STRING }
|
|
471
|
-
}), "InvokeRestApiResponseFilterSensitiveLog");
|
|
472
|
-
var UpdateEnvironmentInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
473
|
-
...obj,
|
|
474
|
-
...obj.AirflowConfigurationOptions && { AirflowConfigurationOptions: import_smithy_client.SENSITIVE_STRING }
|
|
475
|
-
}), "UpdateEnvironmentInputFilterSensitiveLog");
|
|
476
|
-
|
|
477
|
-
// src/protocols/Aws_restJson1.ts
|
|
478
|
-
var import_core2 = require("@aws-sdk/core");
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
var se_CreateCliTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
483
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
484
|
-
const headers = {};
|
|
485
|
-
b.bp("/clitoken/{Name}");
|
|
486
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
487
|
-
let body;
|
|
488
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
489
|
-
if (context.disableHostPrefix !== true) {
|
|
490
|
-
resolvedHostname = "env." + resolvedHostname;
|
|
491
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
492
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
591
|
+
const de_CreateCliTokenCommand = async (output, context) => {
|
|
592
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
593
|
+
return de_CommandError(output, context);
|
|
594
|
+
}
|
|
595
|
+
const contents = smithyClient.map({
|
|
596
|
+
$metadata: deserializeMetadata(output),
|
|
597
|
+
});
|
|
598
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
599
|
+
const doc = smithyClient.take(data, {
|
|
600
|
+
CliToken: smithyClient.expectString,
|
|
601
|
+
WebServerHostname: smithyClient.expectString,
|
|
602
|
+
});
|
|
603
|
+
Object.assign(contents, doc);
|
|
604
|
+
return contents;
|
|
605
|
+
};
|
|
606
|
+
const de_CreateEnvironmentCommand = async (output, context) => {
|
|
607
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
+
return de_CommandError(output, context);
|
|
493
609
|
}
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
body = JSON.stringify(
|
|
508
|
-
(0, import_smithy_client.take)(input, {
|
|
509
|
-
AirflowConfigurationOptions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "AirflowConfigurationOptions"),
|
|
510
|
-
AirflowVersion: [],
|
|
511
|
-
DagS3Path: [],
|
|
512
|
-
EndpointManagement: [],
|
|
513
|
-
EnvironmentClass: [],
|
|
514
|
-
ExecutionRoleArn: [],
|
|
515
|
-
KmsKey: [],
|
|
516
|
-
LoggingConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "LoggingConfiguration"),
|
|
517
|
-
MaxWebservers: [],
|
|
518
|
-
MaxWorkers: [],
|
|
519
|
-
MinWebservers: [],
|
|
520
|
-
MinWorkers: [],
|
|
521
|
-
NetworkConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "NetworkConfiguration"),
|
|
522
|
-
PluginsS3ObjectVersion: [],
|
|
523
|
-
PluginsS3Path: [],
|
|
524
|
-
RequirementsS3ObjectVersion: [],
|
|
525
|
-
RequirementsS3Path: [],
|
|
526
|
-
Schedulers: [],
|
|
527
|
-
SourceBucketArn: [],
|
|
528
|
-
StartupScriptS3ObjectVersion: [],
|
|
529
|
-
StartupScriptS3Path: [],
|
|
530
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags"),
|
|
531
|
-
WebserverAccessMode: [],
|
|
532
|
-
WeeklyMaintenanceWindowStart: []
|
|
533
|
-
})
|
|
534
|
-
);
|
|
535
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
536
|
-
if (context.disableHostPrefix !== true) {
|
|
537
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
538
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
539
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
610
|
+
const contents = smithyClient.map({
|
|
611
|
+
$metadata: deserializeMetadata(output),
|
|
612
|
+
});
|
|
613
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
614
|
+
const doc = smithyClient.take(data, {
|
|
615
|
+
Arn: smithyClient.expectString,
|
|
616
|
+
});
|
|
617
|
+
Object.assign(contents, doc);
|
|
618
|
+
return contents;
|
|
619
|
+
};
|
|
620
|
+
const de_CreateWebLoginTokenCommand = async (output, context) => {
|
|
621
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
+
return de_CommandError(output, context);
|
|
540
623
|
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
if (
|
|
556
|
-
|
|
624
|
+
const contents = smithyClient.map({
|
|
625
|
+
$metadata: deserializeMetadata(output),
|
|
626
|
+
});
|
|
627
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
628
|
+
const doc = smithyClient.take(data, {
|
|
629
|
+
AirflowIdentity: smithyClient.expectString,
|
|
630
|
+
IamIdentity: smithyClient.expectString,
|
|
631
|
+
WebServerHostname: smithyClient.expectString,
|
|
632
|
+
WebToken: smithyClient.expectString,
|
|
633
|
+
});
|
|
634
|
+
Object.assign(contents, doc);
|
|
635
|
+
return contents;
|
|
636
|
+
};
|
|
637
|
+
const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
638
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
639
|
+
return de_CommandError(output, context);
|
|
557
640
|
}
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
568
|
-
let body;
|
|
569
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
570
|
-
if (context.disableHostPrefix !== true) {
|
|
571
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
572
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
573
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
641
|
+
const contents = smithyClient.map({
|
|
642
|
+
$metadata: deserializeMetadata(output),
|
|
643
|
+
});
|
|
644
|
+
await smithyClient.collectBody(output.body, context);
|
|
645
|
+
return contents;
|
|
646
|
+
};
|
|
647
|
+
const de_GetEnvironmentCommand = async (output, context) => {
|
|
648
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
+
return de_CommandError(output, context);
|
|
574
650
|
}
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
589
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
590
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
651
|
+
const contents = smithyClient.map({
|
|
652
|
+
$metadata: deserializeMetadata(output),
|
|
653
|
+
});
|
|
654
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
655
|
+
const doc = smithyClient.take(data, {
|
|
656
|
+
Environment: (_) => de_Environment(_),
|
|
657
|
+
});
|
|
658
|
+
Object.assign(contents, doc);
|
|
659
|
+
return contents;
|
|
660
|
+
};
|
|
661
|
+
const de_InvokeRestApiCommand = async (output, context) => {
|
|
662
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
663
|
+
return de_CommandError(output, context);
|
|
591
664
|
}
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
(0, import_smithy_client.take)(input, {
|
|
607
|
-
Body: /* @__PURE__ */ __name((_) => se_RestApiRequestBody(_, context), "Body"),
|
|
608
|
-
Method: [],
|
|
609
|
-
Path: [],
|
|
610
|
-
QueryParameters: /* @__PURE__ */ __name((_) => se_Document(_, context), "QueryParameters")
|
|
611
|
-
})
|
|
612
|
-
);
|
|
613
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
614
|
-
if (context.disableHostPrefix !== true) {
|
|
615
|
-
resolvedHostname = "env." + resolvedHostname;
|
|
616
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
617
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
665
|
+
const contents = smithyClient.map({
|
|
666
|
+
$metadata: deserializeMetadata(output),
|
|
667
|
+
});
|
|
668
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
669
|
+
const doc = smithyClient.take(data, {
|
|
670
|
+
RestApiResponse: (_) => de_RestApiResponse(_),
|
|
671
|
+
RestApiStatusCode: smithyClient.expectInt32,
|
|
672
|
+
});
|
|
673
|
+
Object.assign(contents, doc);
|
|
674
|
+
return contents;
|
|
675
|
+
};
|
|
676
|
+
const de_ListEnvironmentsCommand = async (output, context) => {
|
|
677
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
678
|
+
return de_CommandError(output, context);
|
|
618
679
|
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
634
|
-
if (context.disableHostPrefix !== true) {
|
|
635
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
636
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
637
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
680
|
+
const contents = smithyClient.map({
|
|
681
|
+
$metadata: deserializeMetadata(output),
|
|
682
|
+
});
|
|
683
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
684
|
+
const doc = smithyClient.take(data, {
|
|
685
|
+
Environments: smithyClient._json,
|
|
686
|
+
NextToken: smithyClient.expectString,
|
|
687
|
+
});
|
|
688
|
+
Object.assign(contents, doc);
|
|
689
|
+
return contents;
|
|
690
|
+
};
|
|
691
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
692
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
+
return de_CommandError(output, context);
|
|
638
694
|
}
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
653
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
654
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
695
|
+
const contents = smithyClient.map({
|
|
696
|
+
$metadata: deserializeMetadata(output),
|
|
697
|
+
});
|
|
698
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
699
|
+
const doc = smithyClient.take(data, {
|
|
700
|
+
Tags: smithyClient._json,
|
|
701
|
+
});
|
|
702
|
+
Object.assign(contents, doc);
|
|
703
|
+
return contents;
|
|
704
|
+
};
|
|
705
|
+
const de_PublishMetricsCommand = async (output, context) => {
|
|
706
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
707
|
+
return de_CommandError(output, context);
|
|
655
708
|
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
};
|
|
666
|
-
b.bp("/metrics/environments/{EnvironmentName}");
|
|
667
|
-
b.p("EnvironmentName", () => input.EnvironmentName, "{EnvironmentName}", false);
|
|
668
|
-
let body;
|
|
669
|
-
body = JSON.stringify(
|
|
670
|
-
(0, import_smithy_client.take)(input, {
|
|
671
|
-
MetricData: /* @__PURE__ */ __name((_) => se_MetricData(_, context), "MetricData")
|
|
672
|
-
})
|
|
673
|
-
);
|
|
674
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
675
|
-
if (context.disableHostPrefix !== true) {
|
|
676
|
-
resolvedHostname = "ops." + resolvedHostname;
|
|
677
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
678
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
709
|
+
const contents = smithyClient.map({
|
|
710
|
+
$metadata: deserializeMetadata(output),
|
|
711
|
+
});
|
|
712
|
+
await smithyClient.collectBody(output.body, context);
|
|
713
|
+
return contents;
|
|
714
|
+
};
|
|
715
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
716
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
+
return de_CommandError(output, context);
|
|
679
718
|
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
};
|
|
690
|
-
b.bp("/tags/{ResourceArn}");
|
|
691
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
692
|
-
let body;
|
|
693
|
-
body = JSON.stringify(
|
|
694
|
-
(0, import_smithy_client.take)(input, {
|
|
695
|
-
Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags")
|
|
696
|
-
})
|
|
697
|
-
);
|
|
698
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
699
|
-
if (context.disableHostPrefix !== true) {
|
|
700
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
701
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
702
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
719
|
+
const contents = smithyClient.map({
|
|
720
|
+
$metadata: deserializeMetadata(output),
|
|
721
|
+
});
|
|
722
|
+
await smithyClient.collectBody(output.body, context);
|
|
723
|
+
return contents;
|
|
724
|
+
};
|
|
725
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
726
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
+
return de_CommandError(output, context);
|
|
703
728
|
}
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
714
|
-
const query = (0, import_smithy_client.map)({
|
|
715
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
716
|
-
});
|
|
717
|
-
let body;
|
|
718
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
719
|
-
if (context.disableHostPrefix !== true) {
|
|
720
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
721
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
722
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
729
|
+
const contents = smithyClient.map({
|
|
730
|
+
$metadata: deserializeMetadata(output),
|
|
731
|
+
});
|
|
732
|
+
await smithyClient.collectBody(output.body, context);
|
|
733
|
+
return contents;
|
|
734
|
+
};
|
|
735
|
+
const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
736
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
737
|
+
return de_CommandError(output, context);
|
|
723
738
|
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
if (!(0, import_protocol_http.isValidHostname)(resolvedHostname)) {
|
|
767
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
739
|
+
const contents = smithyClient.map({
|
|
740
|
+
$metadata: deserializeMetadata(output),
|
|
741
|
+
});
|
|
742
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
743
|
+
const doc = smithyClient.take(data, {
|
|
744
|
+
Arn: smithyClient.expectString,
|
|
745
|
+
});
|
|
746
|
+
Object.assign(contents, doc);
|
|
747
|
+
return contents;
|
|
748
|
+
};
|
|
749
|
+
const de_CommandError = async (output, context) => {
|
|
750
|
+
const parsedOutput = {
|
|
751
|
+
...output,
|
|
752
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
753
|
+
};
|
|
754
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
+
switch (errorCode) {
|
|
756
|
+
case "ResourceNotFoundException":
|
|
757
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
758
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
759
|
+
case "InternalServerException":
|
|
760
|
+
case "com.amazonaws.mwaa#InternalServerException":
|
|
761
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
762
|
+
case "ValidationException":
|
|
763
|
+
case "com.amazonaws.mwaa#ValidationException":
|
|
764
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
765
|
+
case "AccessDeniedException":
|
|
766
|
+
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
767
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
768
|
+
case "RestApiClientException":
|
|
769
|
+
case "com.amazonaws.mwaa#RestApiClientException":
|
|
770
|
+
throw await de_RestApiClientExceptionRes(parsedOutput);
|
|
771
|
+
case "RestApiServerException":
|
|
772
|
+
case "com.amazonaws.mwaa#RestApiServerException":
|
|
773
|
+
throw await de_RestApiServerExceptionRes(parsedOutput);
|
|
774
|
+
default:
|
|
775
|
+
const parsedBody = parsedOutput.body;
|
|
776
|
+
return throwDefaultError({
|
|
777
|
+
output,
|
|
778
|
+
parsedBody,
|
|
779
|
+
errorCode,
|
|
780
|
+
});
|
|
768
781
|
}
|
|
769
|
-
}
|
|
770
|
-
b.hn(resolvedHostname);
|
|
771
|
-
b.m("PATCH").h(headers).b(body);
|
|
772
|
-
return b.build();
|
|
773
|
-
}, "se_UpdateEnvironmentCommand");
|
|
774
|
-
var de_CreateCliTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
775
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
776
|
-
return de_CommandError(output, context);
|
|
777
|
-
}
|
|
778
|
-
const contents = (0, import_smithy_client.map)({
|
|
779
|
-
$metadata: deserializeMetadata(output)
|
|
780
|
-
});
|
|
781
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
782
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
783
|
-
CliToken: import_smithy_client.expectString,
|
|
784
|
-
WebServerHostname: import_smithy_client.expectString
|
|
785
|
-
});
|
|
786
|
-
Object.assign(contents, doc);
|
|
787
|
-
return contents;
|
|
788
|
-
}, "de_CreateCliTokenCommand");
|
|
789
|
-
var de_CreateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
790
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
791
|
-
return de_CommandError(output, context);
|
|
792
|
-
}
|
|
793
|
-
const contents = (0, import_smithy_client.map)({
|
|
794
|
-
$metadata: deserializeMetadata(output)
|
|
795
|
-
});
|
|
796
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
797
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
798
|
-
Arn: import_smithy_client.expectString
|
|
799
|
-
});
|
|
800
|
-
Object.assign(contents, doc);
|
|
801
|
-
return contents;
|
|
802
|
-
}, "de_CreateEnvironmentCommand");
|
|
803
|
-
var de_CreateWebLoginTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
804
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
805
|
-
return de_CommandError(output, context);
|
|
806
|
-
}
|
|
807
|
-
const contents = (0, import_smithy_client.map)({
|
|
808
|
-
$metadata: deserializeMetadata(output)
|
|
809
|
-
});
|
|
810
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
811
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
812
|
-
AirflowIdentity: import_smithy_client.expectString,
|
|
813
|
-
IamIdentity: import_smithy_client.expectString,
|
|
814
|
-
WebServerHostname: import_smithy_client.expectString,
|
|
815
|
-
WebToken: import_smithy_client.expectString
|
|
816
|
-
});
|
|
817
|
-
Object.assign(contents, doc);
|
|
818
|
-
return contents;
|
|
819
|
-
}, "de_CreateWebLoginTokenCommand");
|
|
820
|
-
var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
822
|
-
return de_CommandError(output, context);
|
|
823
|
-
}
|
|
824
|
-
const contents = (0, import_smithy_client.map)({
|
|
825
|
-
$metadata: deserializeMetadata(output)
|
|
826
|
-
});
|
|
827
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
828
|
-
return contents;
|
|
829
|
-
}, "de_DeleteEnvironmentCommand");
|
|
830
|
-
var de_GetEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
831
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
832
|
-
return de_CommandError(output, context);
|
|
833
|
-
}
|
|
834
|
-
const contents = (0, import_smithy_client.map)({
|
|
835
|
-
$metadata: deserializeMetadata(output)
|
|
836
|
-
});
|
|
837
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
838
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
839
|
-
Environment: /* @__PURE__ */ __name((_) => de_Environment(_, context), "Environment")
|
|
840
|
-
});
|
|
841
|
-
Object.assign(contents, doc);
|
|
842
|
-
return contents;
|
|
843
|
-
}, "de_GetEnvironmentCommand");
|
|
844
|
-
var de_InvokeRestApiCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
846
|
-
return de_CommandError(output, context);
|
|
847
|
-
}
|
|
848
|
-
const contents = (0, import_smithy_client.map)({
|
|
849
|
-
$metadata: deserializeMetadata(output)
|
|
850
|
-
});
|
|
851
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
852
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
853
|
-
RestApiResponse: /* @__PURE__ */ __name((_) => de_RestApiResponse(_, context), "RestApiResponse"),
|
|
854
|
-
RestApiStatusCode: import_smithy_client.expectInt32
|
|
855
|
-
});
|
|
856
|
-
Object.assign(contents, doc);
|
|
857
|
-
return contents;
|
|
858
|
-
}, "de_InvokeRestApiCommand");
|
|
859
|
-
var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
860
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
861
|
-
return de_CommandError(output, context);
|
|
862
|
-
}
|
|
863
|
-
const contents = (0, import_smithy_client.map)({
|
|
864
|
-
$metadata: deserializeMetadata(output)
|
|
865
|
-
});
|
|
866
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
867
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
868
|
-
Environments: import_smithy_client._json,
|
|
869
|
-
NextToken: import_smithy_client.expectString
|
|
870
|
-
});
|
|
871
|
-
Object.assign(contents, doc);
|
|
872
|
-
return contents;
|
|
873
|
-
}, "de_ListEnvironmentsCommand");
|
|
874
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
875
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
-
return de_CommandError(output, context);
|
|
877
|
-
}
|
|
878
|
-
const contents = (0, import_smithy_client.map)({
|
|
879
|
-
$metadata: deserializeMetadata(output)
|
|
880
|
-
});
|
|
881
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
882
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
883
|
-
Tags: import_smithy_client._json
|
|
884
|
-
});
|
|
885
|
-
Object.assign(contents, doc);
|
|
886
|
-
return contents;
|
|
887
|
-
}, "de_ListTagsForResourceCommand");
|
|
888
|
-
var de_PublishMetricsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
889
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
890
|
-
return de_CommandError(output, context);
|
|
891
|
-
}
|
|
892
|
-
const contents = (0, import_smithy_client.map)({
|
|
893
|
-
$metadata: deserializeMetadata(output)
|
|
894
|
-
});
|
|
895
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
896
|
-
return contents;
|
|
897
|
-
}, "de_PublishMetricsCommand");
|
|
898
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
899
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
900
|
-
return de_CommandError(output, context);
|
|
901
|
-
}
|
|
902
|
-
const contents = (0, import_smithy_client.map)({
|
|
903
|
-
$metadata: deserializeMetadata(output)
|
|
904
|
-
});
|
|
905
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
906
|
-
return contents;
|
|
907
|
-
}, "de_TagResourceCommand");
|
|
908
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
909
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
|
-
return de_CommandError(output, context);
|
|
911
|
-
}
|
|
912
|
-
const contents = (0, import_smithy_client.map)({
|
|
913
|
-
$metadata: deserializeMetadata(output)
|
|
914
|
-
});
|
|
915
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
916
|
-
return contents;
|
|
917
|
-
}, "de_UntagResourceCommand");
|
|
918
|
-
var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
919
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
920
|
-
return de_CommandError(output, context);
|
|
921
|
-
}
|
|
922
|
-
const contents = (0, import_smithy_client.map)({
|
|
923
|
-
$metadata: deserializeMetadata(output)
|
|
924
|
-
});
|
|
925
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
926
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
927
|
-
Arn: import_smithy_client.expectString
|
|
928
|
-
});
|
|
929
|
-
Object.assign(contents, doc);
|
|
930
|
-
return contents;
|
|
931
|
-
}, "de_UpdateEnvironmentCommand");
|
|
932
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
933
|
-
const parsedOutput = {
|
|
934
|
-
...output,
|
|
935
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
936
|
-
};
|
|
937
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
938
|
-
switch (errorCode) {
|
|
939
|
-
case "ResourceNotFoundException":
|
|
940
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException":
|
|
941
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
942
|
-
case "InternalServerException":
|
|
943
|
-
case "com.amazonaws.mwaa#InternalServerException":
|
|
944
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
945
|
-
case "ValidationException":
|
|
946
|
-
case "com.amazonaws.mwaa#ValidationException":
|
|
947
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
948
|
-
case "AccessDeniedException":
|
|
949
|
-
case "com.amazonaws.mwaa#AccessDeniedException":
|
|
950
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
951
|
-
case "RestApiClientException":
|
|
952
|
-
case "com.amazonaws.mwaa#RestApiClientException":
|
|
953
|
-
throw await de_RestApiClientExceptionRes(parsedOutput, context);
|
|
954
|
-
case "RestApiServerException":
|
|
955
|
-
case "com.amazonaws.mwaa#RestApiServerException":
|
|
956
|
-
throw await de_RestApiServerExceptionRes(parsedOutput, context);
|
|
957
|
-
default:
|
|
958
|
-
const parsedBody = parsedOutput.body;
|
|
959
|
-
return throwDefaultError({
|
|
960
|
-
output,
|
|
961
|
-
parsedBody,
|
|
962
|
-
errorCode
|
|
963
|
-
});
|
|
964
|
-
}
|
|
965
|
-
}, "de_CommandError");
|
|
966
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(MWAAServiceException);
|
|
967
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
968
|
-
const contents = (0, import_smithy_client.map)({});
|
|
969
|
-
const data = parsedOutput.body;
|
|
970
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
971
|
-
Message: import_smithy_client.expectString
|
|
972
|
-
});
|
|
973
|
-
Object.assign(contents, doc);
|
|
974
|
-
const exception = new AccessDeniedException({
|
|
975
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
976
|
-
...contents
|
|
977
|
-
});
|
|
978
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
979
|
-
}, "de_AccessDeniedExceptionRes");
|
|
980
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
981
|
-
const contents = (0, import_smithy_client.map)({});
|
|
982
|
-
const data = parsedOutput.body;
|
|
983
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
984
|
-
message: import_smithy_client.expectString
|
|
985
|
-
});
|
|
986
|
-
Object.assign(contents, doc);
|
|
987
|
-
const exception = new InternalServerException({
|
|
988
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
989
|
-
...contents
|
|
990
|
-
});
|
|
991
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
992
|
-
}, "de_InternalServerExceptionRes");
|
|
993
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
994
|
-
const contents = (0, import_smithy_client.map)({});
|
|
995
|
-
const data = parsedOutput.body;
|
|
996
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
997
|
-
message: import_smithy_client.expectString
|
|
998
|
-
});
|
|
999
|
-
Object.assign(contents, doc);
|
|
1000
|
-
const exception = new ResourceNotFoundException({
|
|
1001
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1002
|
-
...contents
|
|
1003
|
-
});
|
|
1004
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1005
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1006
|
-
var de_RestApiClientExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1007
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1008
|
-
const data = parsedOutput.body;
|
|
1009
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1010
|
-
RestApiResponse: /* @__PURE__ */ __name((_) => de_RestApiResponse(_, context), "RestApiResponse"),
|
|
1011
|
-
RestApiStatusCode: import_smithy_client.expectInt32
|
|
1012
|
-
});
|
|
1013
|
-
Object.assign(contents, doc);
|
|
1014
|
-
const exception = new RestApiClientException({
|
|
1015
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1016
|
-
...contents
|
|
1017
|
-
});
|
|
1018
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1019
|
-
}, "de_RestApiClientExceptionRes");
|
|
1020
|
-
var de_RestApiServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1021
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1022
|
-
const data = parsedOutput.body;
|
|
1023
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1024
|
-
RestApiResponse: /* @__PURE__ */ __name((_) => de_RestApiResponse(_, context), "RestApiResponse"),
|
|
1025
|
-
RestApiStatusCode: import_smithy_client.expectInt32
|
|
1026
|
-
});
|
|
1027
|
-
Object.assign(contents, doc);
|
|
1028
|
-
const exception = new RestApiServerException({
|
|
1029
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1030
|
-
...contents
|
|
1031
|
-
});
|
|
1032
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1033
|
-
}, "de_RestApiServerExceptionRes");
|
|
1034
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1035
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1036
|
-
const data = parsedOutput.body;
|
|
1037
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1038
|
-
message: import_smithy_client.expectString
|
|
1039
|
-
});
|
|
1040
|
-
Object.assign(contents, doc);
|
|
1041
|
-
const exception = new ValidationException({
|
|
1042
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1043
|
-
...contents
|
|
1044
|
-
});
|
|
1045
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1046
|
-
}, "de_ValidationExceptionRes");
|
|
1047
|
-
var se_MetricData = /* @__PURE__ */ __name((input, context) => {
|
|
1048
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1049
|
-
return se_MetricDatum(entry, context);
|
|
1050
|
-
});
|
|
1051
|
-
}, "se_MetricData");
|
|
1052
|
-
var se_MetricDatum = /* @__PURE__ */ __name((input, context) => {
|
|
1053
|
-
return (0, import_smithy_client.take)(input, {
|
|
1054
|
-
Dimensions: import_smithy_client._json,
|
|
1055
|
-
MetricName: [],
|
|
1056
|
-
StatisticValues: /* @__PURE__ */ __name((_) => se_StatisticSet(_, context), "StatisticValues"),
|
|
1057
|
-
Timestamp: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Timestamp"),
|
|
1058
|
-
Unit: [],
|
|
1059
|
-
Value: import_smithy_client.serializeFloat
|
|
1060
|
-
});
|
|
1061
|
-
}, "se_MetricDatum");
|
|
1062
|
-
var se_RestApiRequestBody = /* @__PURE__ */ __name((input, context) => {
|
|
1063
|
-
return input;
|
|
1064
|
-
}, "se_RestApiRequestBody");
|
|
1065
|
-
var se_StatisticSet = /* @__PURE__ */ __name((input, context) => {
|
|
1066
|
-
return (0, import_smithy_client.take)(input, {
|
|
1067
|
-
Maximum: import_smithy_client.serializeFloat,
|
|
1068
|
-
Minimum: import_smithy_client.serializeFloat,
|
|
1069
|
-
SampleCount: [],
|
|
1070
|
-
Sum: import_smithy_client.serializeFloat
|
|
1071
|
-
});
|
|
1072
|
-
}, "se_StatisticSet");
|
|
1073
|
-
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
1074
|
-
return input;
|
|
1075
|
-
}, "se_Document");
|
|
1076
|
-
var de_Environment = /* @__PURE__ */ __name((output, context) => {
|
|
1077
|
-
return (0, import_smithy_client.take)(output, {
|
|
1078
|
-
AirflowConfigurationOptions: import_smithy_client._json,
|
|
1079
|
-
AirflowVersion: import_smithy_client.expectString,
|
|
1080
|
-
Arn: import_smithy_client.expectString,
|
|
1081
|
-
CeleryExecutorQueue: import_smithy_client.expectString,
|
|
1082
|
-
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
1083
|
-
DagS3Path: import_smithy_client.expectString,
|
|
1084
|
-
DatabaseVpcEndpointService: import_smithy_client.expectString,
|
|
1085
|
-
EndpointManagement: import_smithy_client.expectString,
|
|
1086
|
-
EnvironmentClass: import_smithy_client.expectString,
|
|
1087
|
-
ExecutionRoleArn: import_smithy_client.expectString,
|
|
1088
|
-
KmsKey: import_smithy_client.expectString,
|
|
1089
|
-
LastUpdate: /* @__PURE__ */ __name((_) => de_LastUpdate(_, context), "LastUpdate"),
|
|
1090
|
-
LoggingConfiguration: import_smithy_client._json,
|
|
1091
|
-
MaxWebservers: import_smithy_client.expectInt32,
|
|
1092
|
-
MaxWorkers: import_smithy_client.expectInt32,
|
|
1093
|
-
MinWebservers: import_smithy_client.expectInt32,
|
|
1094
|
-
MinWorkers: import_smithy_client.expectInt32,
|
|
1095
|
-
Name: import_smithy_client.expectString,
|
|
1096
|
-
NetworkConfiguration: import_smithy_client._json,
|
|
1097
|
-
PluginsS3ObjectVersion: import_smithy_client.expectString,
|
|
1098
|
-
PluginsS3Path: import_smithy_client.expectString,
|
|
1099
|
-
RequirementsS3ObjectVersion: import_smithy_client.expectString,
|
|
1100
|
-
RequirementsS3Path: import_smithy_client.expectString,
|
|
1101
|
-
Schedulers: import_smithy_client.expectInt32,
|
|
1102
|
-
ServiceRoleArn: import_smithy_client.expectString,
|
|
1103
|
-
SourceBucketArn: import_smithy_client.expectString,
|
|
1104
|
-
StartupScriptS3ObjectVersion: import_smithy_client.expectString,
|
|
1105
|
-
StartupScriptS3Path: import_smithy_client.expectString,
|
|
1106
|
-
Status: import_smithy_client.expectString,
|
|
1107
|
-
Tags: import_smithy_client._json,
|
|
1108
|
-
WebserverAccessMode: import_smithy_client.expectString,
|
|
1109
|
-
WebserverUrl: import_smithy_client.expectString,
|
|
1110
|
-
WebserverVpcEndpointService: import_smithy_client.expectString,
|
|
1111
|
-
WeeklyMaintenanceWindowStart: import_smithy_client.expectString
|
|
1112
|
-
});
|
|
1113
|
-
}, "de_Environment");
|
|
1114
|
-
var de_LastUpdate = /* @__PURE__ */ __name((output, context) => {
|
|
1115
|
-
return (0, import_smithy_client.take)(output, {
|
|
1116
|
-
CreatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAt"),
|
|
1117
|
-
Error: import_smithy_client._json,
|
|
1118
|
-
Source: import_smithy_client.expectString,
|
|
1119
|
-
Status: import_smithy_client.expectString,
|
|
1120
|
-
WorkerReplacementStrategy: import_smithy_client.expectString
|
|
1121
|
-
});
|
|
1122
|
-
}, "de_LastUpdate");
|
|
1123
|
-
var de_RestApiResponse = /* @__PURE__ */ __name((output, context) => {
|
|
1124
|
-
return output;
|
|
1125
|
-
}, "de_RestApiResponse");
|
|
1126
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1127
|
-
httpStatusCode: output.statusCode,
|
|
1128
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1129
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1130
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1131
|
-
}), "deserializeMetadata");
|
|
1132
|
-
var _MR = "MaxResults";
|
|
1133
|
-
var _NT = "NextToken";
|
|
1134
|
-
var _tK = "tagKeys";
|
|
1135
|
-
|
|
1136
|
-
// src/commands/CreateCliTokenCommand.ts
|
|
1137
|
-
var CreateCliTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1138
|
-
return [
|
|
1139
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1140
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1141
|
-
];
|
|
1142
|
-
}).s("AmazonMWAA", "CreateCliToken", {}).n("MWAAClient", "CreateCliTokenCommand").f(void 0, CreateCliTokenResponseFilterSensitiveLog).ser(se_CreateCliTokenCommand).de(de_CreateCliTokenCommand).build() {
|
|
1143
|
-
static {
|
|
1144
|
-
__name(this, "CreateCliTokenCommand");
|
|
1145
|
-
}
|
|
1146
782
|
};
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
}
|
|
783
|
+
const throwDefaultError = smithyClient.withBaseException(MWAAServiceException);
|
|
784
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
785
|
+
const contents = smithyClient.map({});
|
|
786
|
+
const data = parsedOutput.body;
|
|
787
|
+
const doc = smithyClient.take(data, {
|
|
788
|
+
Message: smithyClient.expectString,
|
|
789
|
+
});
|
|
790
|
+
Object.assign(contents, doc);
|
|
791
|
+
const exception = new AccessDeniedException({
|
|
792
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
793
|
+
...contents,
|
|
794
|
+
});
|
|
795
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1161
796
|
};
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
})
|
|
1173
|
-
|
|
1174
|
-
__name(this, "CreateWebLoginTokenCommand");
|
|
1175
|
-
}
|
|
797
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
798
|
+
const contents = smithyClient.map({});
|
|
799
|
+
const data = parsedOutput.body;
|
|
800
|
+
const doc = smithyClient.take(data, {
|
|
801
|
+
message: smithyClient.expectString,
|
|
802
|
+
});
|
|
803
|
+
Object.assign(contents, doc);
|
|
804
|
+
const exception = new InternalServerException({
|
|
805
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
806
|
+
...contents,
|
|
807
|
+
});
|
|
808
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1176
809
|
};
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
})
|
|
1188
|
-
|
|
1189
|
-
__name(this, "DeleteEnvironmentCommand");
|
|
1190
|
-
}
|
|
810
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
811
|
+
const contents = smithyClient.map({});
|
|
812
|
+
const data = parsedOutput.body;
|
|
813
|
+
const doc = smithyClient.take(data, {
|
|
814
|
+
message: smithyClient.expectString,
|
|
815
|
+
});
|
|
816
|
+
Object.assign(contents, doc);
|
|
817
|
+
const exception = new ResourceNotFoundException({
|
|
818
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
819
|
+
...contents,
|
|
820
|
+
});
|
|
821
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1191
822
|
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
}
|
|
823
|
+
const de_RestApiClientExceptionRes = async (parsedOutput, context) => {
|
|
824
|
+
const contents = smithyClient.map({});
|
|
825
|
+
const data = parsedOutput.body;
|
|
826
|
+
const doc = smithyClient.take(data, {
|
|
827
|
+
RestApiResponse: (_) => de_RestApiResponse(_),
|
|
828
|
+
RestApiStatusCode: smithyClient.expectInt32,
|
|
829
|
+
});
|
|
830
|
+
Object.assign(contents, doc);
|
|
831
|
+
const exception = new RestApiClientException({
|
|
832
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
833
|
+
...contents,
|
|
834
|
+
});
|
|
835
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1206
836
|
};
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
}
|
|
837
|
+
const de_RestApiServerExceptionRes = async (parsedOutput, context) => {
|
|
838
|
+
const contents = smithyClient.map({});
|
|
839
|
+
const data = parsedOutput.body;
|
|
840
|
+
const doc = smithyClient.take(data, {
|
|
841
|
+
RestApiResponse: (_) => de_RestApiResponse(_),
|
|
842
|
+
RestApiStatusCode: smithyClient.expectInt32,
|
|
843
|
+
});
|
|
844
|
+
Object.assign(contents, doc);
|
|
845
|
+
const exception = new RestApiServerException({
|
|
846
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
847
|
+
...contents,
|
|
848
|
+
});
|
|
849
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1221
850
|
};
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
})
|
|
1233
|
-
|
|
1234
|
-
__name(this, "ListEnvironmentsCommand");
|
|
1235
|
-
}
|
|
851
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
852
|
+
const contents = smithyClient.map({});
|
|
853
|
+
const data = parsedOutput.body;
|
|
854
|
+
const doc = smithyClient.take(data, {
|
|
855
|
+
message: smithyClient.expectString,
|
|
856
|
+
});
|
|
857
|
+
Object.assign(contents, doc);
|
|
858
|
+
const exception = new ValidationException({
|
|
859
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
860
|
+
...contents,
|
|
861
|
+
});
|
|
862
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1236
863
|
};
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
return [
|
|
1244
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1245
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1246
|
-
];
|
|
1247
|
-
}).s("AmazonMWAA", "ListTagsForResource", {}).n("MWAAClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
1248
|
-
static {
|
|
1249
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1250
|
-
}
|
|
864
|
+
const se_MetricData = (input, context) => {
|
|
865
|
+
return input
|
|
866
|
+
.filter((e) => e != null)
|
|
867
|
+
.map((entry) => {
|
|
868
|
+
return se_MetricDatum(entry);
|
|
869
|
+
});
|
|
1251
870
|
};
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
];
|
|
1262
|
-
}).s("AmazonMWAA", "PublishMetrics", {}).n("MWAAClient", "PublishMetricsCommand").f(void 0, void 0).ser(se_PublishMetricsCommand).de(de_PublishMetricsCommand).build() {
|
|
1263
|
-
static {
|
|
1264
|
-
__name(this, "PublishMetricsCommand");
|
|
1265
|
-
}
|
|
871
|
+
const se_MetricDatum = (input, context) => {
|
|
872
|
+
return smithyClient.take(input, {
|
|
873
|
+
Dimensions: smithyClient._json,
|
|
874
|
+
MetricName: [],
|
|
875
|
+
StatisticValues: (_) => se_StatisticSet(_),
|
|
876
|
+
Timestamp: (_) => _.getTime() / 1_000,
|
|
877
|
+
Unit: [],
|
|
878
|
+
Value: smithyClient.serializeFloat,
|
|
879
|
+
});
|
|
1266
880
|
};
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1273
|
-
return [
|
|
1274
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1275
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1276
|
-
];
|
|
1277
|
-
}).s("AmazonMWAA", "TagResource", {}).n("MWAAClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
1278
|
-
static {
|
|
1279
|
-
__name(this, "TagResourceCommand");
|
|
1280
|
-
}
|
|
881
|
+
const se_RestApiRequestBody = (input, context) => {
|
|
882
|
+
return input;
|
|
1281
883
|
};
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1290
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1291
|
-
];
|
|
1292
|
-
}).s("AmazonMWAA", "UntagResource", {}).n("MWAAClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1293
|
-
static {
|
|
1294
|
-
__name(this, "UntagResourceCommand");
|
|
1295
|
-
}
|
|
884
|
+
const se_StatisticSet = (input, context) => {
|
|
885
|
+
return smithyClient.take(input, {
|
|
886
|
+
Maximum: smithyClient.serializeFloat,
|
|
887
|
+
Minimum: smithyClient.serializeFloat,
|
|
888
|
+
SampleCount: [],
|
|
889
|
+
Sum: smithyClient.serializeFloat,
|
|
890
|
+
});
|
|
1296
891
|
};
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
var UpdateEnvironmentCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1303
|
-
return [
|
|
1304
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1305
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1306
|
-
];
|
|
1307
|
-
}).s("AmazonMWAA", "UpdateEnvironment", {}).n("MWAAClient", "UpdateEnvironmentCommand").f(UpdateEnvironmentInputFilterSensitiveLog, void 0).ser(se_UpdateEnvironmentCommand).de(de_UpdateEnvironmentCommand).build() {
|
|
1308
|
-
static {
|
|
1309
|
-
__name(this, "UpdateEnvironmentCommand");
|
|
1310
|
-
}
|
|
892
|
+
const se_Document = (input, context) => {
|
|
893
|
+
return input;
|
|
1311
894
|
};
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
895
|
+
const de_Environment = (output, context) => {
|
|
896
|
+
return smithyClient.take(output, {
|
|
897
|
+
AirflowConfigurationOptions: smithyClient._json,
|
|
898
|
+
AirflowVersion: smithyClient.expectString,
|
|
899
|
+
Arn: smithyClient.expectString,
|
|
900
|
+
CeleryExecutorQueue: smithyClient.expectString,
|
|
901
|
+
CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
902
|
+
DagS3Path: smithyClient.expectString,
|
|
903
|
+
DatabaseVpcEndpointService: smithyClient.expectString,
|
|
904
|
+
EndpointManagement: smithyClient.expectString,
|
|
905
|
+
EnvironmentClass: smithyClient.expectString,
|
|
906
|
+
ExecutionRoleArn: smithyClient.expectString,
|
|
907
|
+
KmsKey: smithyClient.expectString,
|
|
908
|
+
LastUpdate: (_) => de_LastUpdate(_),
|
|
909
|
+
LoggingConfiguration: smithyClient._json,
|
|
910
|
+
MaxWebservers: smithyClient.expectInt32,
|
|
911
|
+
MaxWorkers: smithyClient.expectInt32,
|
|
912
|
+
MinWebservers: smithyClient.expectInt32,
|
|
913
|
+
MinWorkers: smithyClient.expectInt32,
|
|
914
|
+
Name: smithyClient.expectString,
|
|
915
|
+
NetworkConfiguration: smithyClient._json,
|
|
916
|
+
PluginsS3ObjectVersion: smithyClient.expectString,
|
|
917
|
+
PluginsS3Path: smithyClient.expectString,
|
|
918
|
+
RequirementsS3ObjectVersion: smithyClient.expectString,
|
|
919
|
+
RequirementsS3Path: smithyClient.expectString,
|
|
920
|
+
Schedulers: smithyClient.expectInt32,
|
|
921
|
+
ServiceRoleArn: smithyClient.expectString,
|
|
922
|
+
SourceBucketArn: smithyClient.expectString,
|
|
923
|
+
StartupScriptS3ObjectVersion: smithyClient.expectString,
|
|
924
|
+
StartupScriptS3Path: smithyClient.expectString,
|
|
925
|
+
Status: smithyClient.expectString,
|
|
926
|
+
Tags: smithyClient._json,
|
|
927
|
+
WebserverAccessMode: smithyClient.expectString,
|
|
928
|
+
WebserverUrl: smithyClient.expectString,
|
|
929
|
+
WebserverVpcEndpointService: smithyClient.expectString,
|
|
930
|
+
WeeklyMaintenanceWindowStart: smithyClient.expectString,
|
|
931
|
+
});
|
|
1327
932
|
};
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
933
|
+
const de_LastUpdate = (output, context) => {
|
|
934
|
+
return smithyClient.take(output, {
|
|
935
|
+
CreatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
936
|
+
Error: smithyClient._json,
|
|
937
|
+
Source: smithyClient.expectString,
|
|
938
|
+
Status: smithyClient.expectString,
|
|
939
|
+
WorkerReplacementStrategy: smithyClient.expectString,
|
|
940
|
+
});
|
|
1332
941
|
};
|
|
1333
|
-
(
|
|
1334
|
-
|
|
1335
|
-
|
|
942
|
+
const de_RestApiResponse = (output, context) => {
|
|
943
|
+
return output;
|
|
944
|
+
};
|
|
945
|
+
const deserializeMetadata = (output) => ({
|
|
946
|
+
httpStatusCode: output.statusCode,
|
|
947
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
948
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
949
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
950
|
+
});
|
|
951
|
+
const _MR = "MaxResults";
|
|
952
|
+
const _NT = "NextToken";
|
|
953
|
+
const _tK = "tagKeys";
|
|
954
|
+
|
|
955
|
+
class CreateCliTokenCommand extends smithyClient.Command
|
|
956
|
+
.classBuilder()
|
|
957
|
+
.ep(commonParams)
|
|
958
|
+
.m(function (Command, cs, config, o) {
|
|
959
|
+
return [
|
|
960
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
961
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
962
|
+
];
|
|
963
|
+
})
|
|
964
|
+
.s("AmazonMWAA", "CreateCliToken", {})
|
|
965
|
+
.n("MWAAClient", "CreateCliTokenCommand")
|
|
966
|
+
.f(void 0, CreateCliTokenResponseFilterSensitiveLog)
|
|
967
|
+
.ser(se_CreateCliTokenCommand)
|
|
968
|
+
.de(de_CreateCliTokenCommand)
|
|
969
|
+
.build() {
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
class CreateEnvironmentCommand extends smithyClient.Command
|
|
973
|
+
.classBuilder()
|
|
974
|
+
.ep(commonParams)
|
|
975
|
+
.m(function (Command, cs, config, o) {
|
|
976
|
+
return [
|
|
977
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
978
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
979
|
+
];
|
|
980
|
+
})
|
|
981
|
+
.s("AmazonMWAA", "CreateEnvironment", {})
|
|
982
|
+
.n("MWAAClient", "CreateEnvironmentCommand")
|
|
983
|
+
.f(CreateEnvironmentInputFilterSensitiveLog, void 0)
|
|
984
|
+
.ser(se_CreateEnvironmentCommand)
|
|
985
|
+
.de(de_CreateEnvironmentCommand)
|
|
986
|
+
.build() {
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
class CreateWebLoginTokenCommand extends smithyClient.Command
|
|
990
|
+
.classBuilder()
|
|
991
|
+
.ep(commonParams)
|
|
992
|
+
.m(function (Command, cs, config, o) {
|
|
993
|
+
return [
|
|
994
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
995
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
996
|
+
];
|
|
997
|
+
})
|
|
998
|
+
.s("AmazonMWAA", "CreateWebLoginToken", {})
|
|
999
|
+
.n("MWAAClient", "CreateWebLoginTokenCommand")
|
|
1000
|
+
.f(void 0, CreateWebLoginTokenResponseFilterSensitiveLog)
|
|
1001
|
+
.ser(se_CreateWebLoginTokenCommand)
|
|
1002
|
+
.de(de_CreateWebLoginTokenCommand)
|
|
1003
|
+
.build() {
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
class DeleteEnvironmentCommand extends smithyClient.Command
|
|
1007
|
+
.classBuilder()
|
|
1008
|
+
.ep(commonParams)
|
|
1009
|
+
.m(function (Command, cs, config, o) {
|
|
1010
|
+
return [
|
|
1011
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1012
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1013
|
+
];
|
|
1014
|
+
})
|
|
1015
|
+
.s("AmazonMWAA", "DeleteEnvironment", {})
|
|
1016
|
+
.n("MWAAClient", "DeleteEnvironmentCommand")
|
|
1017
|
+
.f(void 0, void 0)
|
|
1018
|
+
.ser(se_DeleteEnvironmentCommand)
|
|
1019
|
+
.de(de_DeleteEnvironmentCommand)
|
|
1020
|
+
.build() {
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
class GetEnvironmentCommand extends smithyClient.Command
|
|
1024
|
+
.classBuilder()
|
|
1025
|
+
.ep(commonParams)
|
|
1026
|
+
.m(function (Command, cs, config, o) {
|
|
1027
|
+
return [
|
|
1028
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1029
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1030
|
+
];
|
|
1031
|
+
})
|
|
1032
|
+
.s("AmazonMWAA", "GetEnvironment", {})
|
|
1033
|
+
.n("MWAAClient", "GetEnvironmentCommand")
|
|
1034
|
+
.f(void 0, GetEnvironmentOutputFilterSensitiveLog)
|
|
1035
|
+
.ser(se_GetEnvironmentCommand)
|
|
1036
|
+
.de(de_GetEnvironmentCommand)
|
|
1037
|
+
.build() {
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
class InvokeRestApiCommand extends smithyClient.Command
|
|
1041
|
+
.classBuilder()
|
|
1042
|
+
.ep(commonParams)
|
|
1043
|
+
.m(function (Command, cs, config, o) {
|
|
1044
|
+
return [
|
|
1045
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1046
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1047
|
+
];
|
|
1048
|
+
})
|
|
1049
|
+
.s("AmazonMWAA", "InvokeRestApi", {})
|
|
1050
|
+
.n("MWAAClient", "InvokeRestApiCommand")
|
|
1051
|
+
.f(InvokeRestApiRequestFilterSensitiveLog, InvokeRestApiResponseFilterSensitiveLog)
|
|
1052
|
+
.ser(se_InvokeRestApiCommand)
|
|
1053
|
+
.de(de_InvokeRestApiCommand)
|
|
1054
|
+
.build() {
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
class ListEnvironmentsCommand extends smithyClient.Command
|
|
1058
|
+
.classBuilder()
|
|
1059
|
+
.ep(commonParams)
|
|
1060
|
+
.m(function (Command, cs, config, o) {
|
|
1061
|
+
return [
|
|
1062
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1063
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1064
|
+
];
|
|
1065
|
+
})
|
|
1066
|
+
.s("AmazonMWAA", "ListEnvironments", {})
|
|
1067
|
+
.n("MWAAClient", "ListEnvironmentsCommand")
|
|
1068
|
+
.f(void 0, void 0)
|
|
1069
|
+
.ser(se_ListEnvironmentsCommand)
|
|
1070
|
+
.de(de_ListEnvironmentsCommand)
|
|
1071
|
+
.build() {
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1075
|
+
.classBuilder()
|
|
1076
|
+
.ep(commonParams)
|
|
1077
|
+
.m(function (Command, cs, config, o) {
|
|
1078
|
+
return [
|
|
1079
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1080
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1081
|
+
];
|
|
1082
|
+
})
|
|
1083
|
+
.s("AmazonMWAA", "ListTagsForResource", {})
|
|
1084
|
+
.n("MWAAClient", "ListTagsForResourceCommand")
|
|
1085
|
+
.f(void 0, void 0)
|
|
1086
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1087
|
+
.de(de_ListTagsForResourceCommand)
|
|
1088
|
+
.build() {
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
|
+
class PublishMetricsCommand extends smithyClient.Command
|
|
1092
|
+
.classBuilder()
|
|
1093
|
+
.ep(commonParams)
|
|
1094
|
+
.m(function (Command, cs, config, o) {
|
|
1095
|
+
return [
|
|
1096
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1097
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1098
|
+
];
|
|
1099
|
+
})
|
|
1100
|
+
.s("AmazonMWAA", "PublishMetrics", {})
|
|
1101
|
+
.n("MWAAClient", "PublishMetricsCommand")
|
|
1102
|
+
.f(void 0, void 0)
|
|
1103
|
+
.ser(se_PublishMetricsCommand)
|
|
1104
|
+
.de(de_PublishMetricsCommand)
|
|
1105
|
+
.build() {
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1109
|
+
.classBuilder()
|
|
1110
|
+
.ep(commonParams)
|
|
1111
|
+
.m(function (Command, cs, config, o) {
|
|
1112
|
+
return [
|
|
1113
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1114
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1115
|
+
];
|
|
1116
|
+
})
|
|
1117
|
+
.s("AmazonMWAA", "TagResource", {})
|
|
1118
|
+
.n("MWAAClient", "TagResourceCommand")
|
|
1119
|
+
.f(void 0, void 0)
|
|
1120
|
+
.ser(se_TagResourceCommand)
|
|
1121
|
+
.de(de_TagResourceCommand)
|
|
1122
|
+
.build() {
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1126
|
+
.classBuilder()
|
|
1127
|
+
.ep(commonParams)
|
|
1128
|
+
.m(function (Command, cs, config, o) {
|
|
1129
|
+
return [
|
|
1130
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1131
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1132
|
+
];
|
|
1133
|
+
})
|
|
1134
|
+
.s("AmazonMWAA", "UntagResource", {})
|
|
1135
|
+
.n("MWAAClient", "UntagResourceCommand")
|
|
1136
|
+
.f(void 0, void 0)
|
|
1137
|
+
.ser(se_UntagResourceCommand)
|
|
1138
|
+
.de(de_UntagResourceCommand)
|
|
1139
|
+
.build() {
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
class UpdateEnvironmentCommand extends smithyClient.Command
|
|
1143
|
+
.classBuilder()
|
|
1144
|
+
.ep(commonParams)
|
|
1145
|
+
.m(function (Command, cs, config, o) {
|
|
1146
|
+
return [
|
|
1147
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1148
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1149
|
+
];
|
|
1150
|
+
})
|
|
1151
|
+
.s("AmazonMWAA", "UpdateEnvironment", {})
|
|
1152
|
+
.n("MWAAClient", "UpdateEnvironmentCommand")
|
|
1153
|
+
.f(UpdateEnvironmentInputFilterSensitiveLog, void 0)
|
|
1154
|
+
.ser(se_UpdateEnvironmentCommand)
|
|
1155
|
+
.de(de_UpdateEnvironmentCommand)
|
|
1156
|
+
.build() {
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
const commands = {
|
|
1160
|
+
CreateCliTokenCommand,
|
|
1161
|
+
CreateEnvironmentCommand,
|
|
1162
|
+
CreateWebLoginTokenCommand,
|
|
1163
|
+
DeleteEnvironmentCommand,
|
|
1164
|
+
GetEnvironmentCommand,
|
|
1165
|
+
InvokeRestApiCommand,
|
|
1166
|
+
ListEnvironmentsCommand,
|
|
1167
|
+
ListTagsForResourceCommand,
|
|
1168
|
+
PublishMetricsCommand,
|
|
1169
|
+
TagResourceCommand,
|
|
1170
|
+
UntagResourceCommand,
|
|
1171
|
+
UpdateEnvironmentCommand,
|
|
1172
|
+
};
|
|
1173
|
+
class MWAA extends MWAAClient {
|
|
1174
|
+
}
|
|
1175
|
+
smithyClient.createAggregatedClient(commands, MWAA);
|
|
1336
1176
|
|
|
1337
|
-
|
|
1338
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1177
|
+
const paginateListEnvironments = core.createPaginator(MWAAClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1339
1178
|
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
MWAAClient,
|
|
1344
|
-
MWAA,
|
|
1345
|
-
$Command,
|
|
1346
|
-
CreateCliTokenCommand,
|
|
1347
|
-
CreateEnvironmentCommand,
|
|
1348
|
-
CreateWebLoginTokenCommand,
|
|
1349
|
-
DeleteEnvironmentCommand,
|
|
1350
|
-
GetEnvironmentCommand,
|
|
1351
|
-
InvokeRestApiCommand,
|
|
1352
|
-
ListEnvironmentsCommand,
|
|
1353
|
-
ListTagsForResourceCommand,
|
|
1354
|
-
PublishMetricsCommand,
|
|
1355
|
-
TagResourceCommand,
|
|
1356
|
-
UntagResourceCommand,
|
|
1357
|
-
UpdateEnvironmentCommand,
|
|
1358
|
-
paginateListEnvironments,
|
|
1359
|
-
AccessDeniedException,
|
|
1360
|
-
ResourceNotFoundException,
|
|
1361
|
-
EndpointManagement,
|
|
1362
|
-
LoggingLevel,
|
|
1363
|
-
WebserverAccessMode,
|
|
1364
|
-
InternalServerException,
|
|
1365
|
-
ValidationException,
|
|
1366
|
-
UpdateStatus,
|
|
1367
|
-
WorkerReplacementStrategy,
|
|
1368
|
-
EnvironmentStatus,
|
|
1369
|
-
RestApiMethod,
|
|
1370
|
-
RestApiClientException,
|
|
1371
|
-
RestApiServerException,
|
|
1372
|
-
Unit,
|
|
1373
|
-
CreateCliTokenResponseFilterSensitiveLog,
|
|
1374
|
-
CreateEnvironmentInputFilterSensitiveLog,
|
|
1375
|
-
CreateWebLoginTokenResponseFilterSensitiveLog,
|
|
1376
|
-
EnvironmentFilterSensitiveLog,
|
|
1377
|
-
GetEnvironmentOutputFilterSensitiveLog,
|
|
1378
|
-
InvokeRestApiRequestFilterSensitiveLog,
|
|
1379
|
-
InvokeRestApiResponseFilterSensitiveLog,
|
|
1380
|
-
UpdateEnvironmentInputFilterSensitiveLog
|
|
1179
|
+
Object.defineProperty(exports, "$Command", {
|
|
1180
|
+
enumerable: true,
|
|
1181
|
+
get: function () { return smithyClient.Command; }
|
|
1381
1182
|
});
|
|
1382
|
-
|
|
1183
|
+
Object.defineProperty(exports, "__Client", {
|
|
1184
|
+
enumerable: true,
|
|
1185
|
+
get: function () { return smithyClient.Client; }
|
|
1186
|
+
});
|
|
1187
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1188
|
+
exports.CreateCliTokenCommand = CreateCliTokenCommand;
|
|
1189
|
+
exports.CreateCliTokenResponseFilterSensitiveLog = CreateCliTokenResponseFilterSensitiveLog;
|
|
1190
|
+
exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
|
|
1191
|
+
exports.CreateEnvironmentInputFilterSensitiveLog = CreateEnvironmentInputFilterSensitiveLog;
|
|
1192
|
+
exports.CreateWebLoginTokenCommand = CreateWebLoginTokenCommand;
|
|
1193
|
+
exports.CreateWebLoginTokenResponseFilterSensitiveLog = CreateWebLoginTokenResponseFilterSensitiveLog;
|
|
1194
|
+
exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;
|
|
1195
|
+
exports.EndpointManagement = EndpointManagement;
|
|
1196
|
+
exports.EnvironmentFilterSensitiveLog = EnvironmentFilterSensitiveLog;
|
|
1197
|
+
exports.EnvironmentStatus = EnvironmentStatus;
|
|
1198
|
+
exports.GetEnvironmentCommand = GetEnvironmentCommand;
|
|
1199
|
+
exports.GetEnvironmentOutputFilterSensitiveLog = GetEnvironmentOutputFilterSensitiveLog;
|
|
1200
|
+
exports.InternalServerException = InternalServerException;
|
|
1201
|
+
exports.InvokeRestApiCommand = InvokeRestApiCommand;
|
|
1202
|
+
exports.InvokeRestApiRequestFilterSensitiveLog = InvokeRestApiRequestFilterSensitiveLog;
|
|
1203
|
+
exports.InvokeRestApiResponseFilterSensitiveLog = InvokeRestApiResponseFilterSensitiveLog;
|
|
1204
|
+
exports.ListEnvironmentsCommand = ListEnvironmentsCommand;
|
|
1205
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1206
|
+
exports.LoggingLevel = LoggingLevel;
|
|
1207
|
+
exports.MWAA = MWAA;
|
|
1208
|
+
exports.MWAAClient = MWAAClient;
|
|
1209
|
+
exports.MWAAServiceException = MWAAServiceException;
|
|
1210
|
+
exports.PublishMetricsCommand = PublishMetricsCommand;
|
|
1211
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1212
|
+
exports.RestApiClientException = RestApiClientException;
|
|
1213
|
+
exports.RestApiMethod = RestApiMethod;
|
|
1214
|
+
exports.RestApiServerException = RestApiServerException;
|
|
1215
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1216
|
+
exports.Unit = Unit;
|
|
1217
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1218
|
+
exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;
|
|
1219
|
+
exports.UpdateEnvironmentInputFilterSensitiveLog = UpdateEnvironmentInputFilterSensitiveLog;
|
|
1220
|
+
exports.UpdateStatus = UpdateStatus;
|
|
1221
|
+
exports.ValidationException = ValidationException;
|
|
1222
|
+
exports.WebserverAccessMode = WebserverAccessMode;
|
|
1223
|
+
exports.WorkerReplacementStrategy = WorkerReplacementStrategy;
|
|
1224
|
+
exports.paginateListEnvironments = paginateListEnvironments;
|