@aws-sdk/client-mwaa 3.1067.0 → 3.1069.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/auth/httpAuthSchemeProvider.js +9 -15
- package/dist-cjs/endpoint/bdd.js +2 -5
- package/dist-cjs/endpoint/endpointResolver.js +7 -11
- package/dist-cjs/index.js +77 -97
- package/dist-cjs/models/MWAAServiceException.js +4 -8
- package/dist-cjs/models/errors.js +15 -25
- package/dist-cjs/runtimeConfig.browser.js +22 -26
- package/dist-cjs/runtimeConfig.js +30 -34
- package/dist-cjs/runtimeConfig.native.js +4 -7
- package/dist-cjs/runtimeConfig.shared.js +20 -24
- package/dist-cjs/schemas/schemas_0.js +123 -83
- package/package.json +8 -8
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.
|
|
4
|
-
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const client_1 = require("@smithy/core/client");
|
|
6
|
-
const defaultMWAAHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
1
|
+
const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
|
|
3
|
+
exports.defaultMWAAHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
4
|
return {
|
|
8
|
-
operation:
|
|
9
|
-
region: await
|
|
5
|
+
operation: getSmithyContext(context).operation,
|
|
6
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
10
7
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
8
|
})(),
|
|
12
9
|
};
|
|
13
10
|
};
|
|
14
|
-
exports.defaultMWAAHttpAuthSchemeParametersProvider = defaultMWAAHttpAuthSchemeParametersProvider;
|
|
15
11
|
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
16
12
|
return {
|
|
17
13
|
schemeId: "aws.auth#sigv4",
|
|
@@ -27,7 +23,7 @@ function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
|
27
23
|
}),
|
|
28
24
|
};
|
|
29
25
|
}
|
|
30
|
-
|
|
26
|
+
exports.defaultMWAAHttpAuthSchemeProvider = (authParameters) => {
|
|
31
27
|
const options = [];
|
|
32
28
|
switch (authParameters.operation) {
|
|
33
29
|
default: {
|
|
@@ -36,11 +32,9 @@ const defaultMWAAHttpAuthSchemeProvider = (authParameters) => {
|
|
|
36
32
|
}
|
|
37
33
|
return options;
|
|
38
34
|
};
|
|
39
|
-
exports.
|
|
40
|
-
const
|
|
41
|
-
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
35
|
+
exports.resolveHttpAuthSchemeConfig = (config) => {
|
|
36
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
42
37
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference:
|
|
38
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
44
39
|
});
|
|
45
40
|
};
|
|
46
|
-
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bdd = void 0;
|
|
4
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
1
|
+
const { BinaryDecisionDiagram } = require("@smithy/core/endpoints");
|
|
5
2
|
const k = "ref";
|
|
6
3
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
4
|
const _data = {
|
|
@@ -46,4 +43,4 @@ const nodes = new Int32Array([
|
|
|
46
43
|
3, r + 1, 13,
|
|
47
44
|
4, r + 2, r + 3,
|
|
48
45
|
]);
|
|
49
|
-
exports.bdd =
|
|
46
|
+
exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
|
-
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new endpoints_1.EndpointCache({
|
|
1
|
+
const { awsEndpointFunctions } = require("@aws-sdk/core/client");
|
|
2
|
+
const { customEndpointFunctions, decideEndpoint, EndpointCache } = require("@smithy/core/endpoints");
|
|
3
|
+
const { bdd } = require("./bdd");
|
|
4
|
+
const cache = new EndpointCache({
|
|
8
5
|
size: 50,
|
|
9
6
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
7
|
});
|
|
11
|
-
|
|
12
|
-
return cache.get(endpointParams, () =>
|
|
8
|
+
exports.defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
9
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
13
10
|
endpointParams: endpointParams,
|
|
14
11
|
logger: context.logger,
|
|
15
12
|
}));
|
|
16
13
|
};
|
|
17
|
-
|
|
18
|
-
endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
|
|
14
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
var __exportStar = (m, e) => { Object.assign(e, m); };
|
|
2
|
+
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
|
+
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
+
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
|
+
exports.$Command = Command;
|
|
6
|
+
exports.__Client = Client;
|
|
7
|
+
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
+
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
+
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
+
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
+
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
+
const { resolveHttpAuthSchemeConfig, defaultMWAAHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
|
|
13
|
+
const { getRuntimeConfig } = require("./runtimeConfig");
|
|
14
|
+
const { CreateCliToken$, CreateEnvironment$, CreateWebLoginToken$, DeleteEnvironment$, GetEnvironment$, InvokeRestApi$, ListEnvironments$, ListTagsForResource$, PublishMetrics$, TagResource$, UntagResource$, UpdateEnvironment$ } = require("./schemas/schemas_0");
|
|
15
|
+
__exportStar(require("./schemas/schemas_0"), exports);
|
|
16
|
+
__exportStar(require("./models/errors"), exports);
|
|
17
|
+
const { MWAAServiceException } = require("./models/MWAAServiceException");
|
|
18
|
+
exports.MWAAServiceException = MWAAServiceException;
|
|
16
19
|
|
|
17
20
|
const resolveClientEndpointParameters = (options) => {
|
|
18
21
|
return Object.assign(options, {
|
|
@@ -68,191 +71,191 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
68
71
|
};
|
|
69
72
|
|
|
70
73
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
71
|
-
const extensionConfiguration = Object.assign(
|
|
74
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
72
75
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
73
|
-
return Object.assign(runtimeConfig,
|
|
76
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
74
77
|
};
|
|
75
78
|
|
|
76
|
-
class MWAAClient extends
|
|
79
|
+
class MWAAClient extends Client {
|
|
77
80
|
config;
|
|
78
81
|
constructor(...[configuration]) {
|
|
79
|
-
const _config_0 =
|
|
82
|
+
const _config_0 = getRuntimeConfig(configuration || {});
|
|
80
83
|
super(_config_0);
|
|
81
84
|
this.initConfig = _config_0;
|
|
82
85
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
83
|
-
const _config_2 =
|
|
84
|
-
const _config_3 =
|
|
85
|
-
const _config_4 =
|
|
86
|
-
const _config_5 =
|
|
87
|
-
const _config_6 =
|
|
88
|
-
const _config_7 =
|
|
86
|
+
const _config_2 = resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
|
|
89
92
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
90
93
|
this.config = _config_8;
|
|
91
|
-
this.middlewareStack.use(
|
|
92
|
-
this.middlewareStack.use(
|
|
93
|
-
this.middlewareStack.use(
|
|
94
|
-
this.middlewareStack.use(
|
|
95
|
-
this.middlewareStack.use(
|
|
96
|
-
this.middlewareStack.use(
|
|
97
|
-
this.middlewareStack.use(
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
httpAuthSchemeParametersProvider:
|
|
100
|
-
identityProviderConfigProvider: async (config) => new
|
|
94
|
+
this.middlewareStack.use(getSchemaSerdePlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: defaultMWAAHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
|
|
101
104
|
"aws.auth#sigv4": config.credentials,
|
|
102
105
|
}),
|
|
103
106
|
}));
|
|
104
|
-
this.middlewareStack.use(
|
|
107
|
+
this.middlewareStack.use(getHttpSigningPlugin(this.config));
|
|
105
108
|
}
|
|
106
109
|
destroy() {
|
|
107
110
|
super.destroy();
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
class CreateCliTokenCommand extends
|
|
114
|
+
class CreateCliTokenCommand extends Command
|
|
112
115
|
.classBuilder()
|
|
113
116
|
.ep(commonParams)
|
|
114
117
|
.m(function (Command, cs, config, o) {
|
|
115
|
-
return [
|
|
118
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
116
119
|
})
|
|
117
120
|
.s("AmazonMWAA", "CreateCliToken", {})
|
|
118
121
|
.n("MWAAClient", "CreateCliTokenCommand")
|
|
119
|
-
.sc(
|
|
122
|
+
.sc(CreateCliToken$)
|
|
120
123
|
.build() {
|
|
121
124
|
}
|
|
122
125
|
|
|
123
|
-
class CreateEnvironmentCommand extends
|
|
126
|
+
class CreateEnvironmentCommand extends Command
|
|
124
127
|
.classBuilder()
|
|
125
128
|
.ep(commonParams)
|
|
126
129
|
.m(function (Command, cs, config, o) {
|
|
127
|
-
return [
|
|
130
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
128
131
|
})
|
|
129
132
|
.s("AmazonMWAA", "CreateEnvironment", {})
|
|
130
133
|
.n("MWAAClient", "CreateEnvironmentCommand")
|
|
131
|
-
.sc(
|
|
134
|
+
.sc(CreateEnvironment$)
|
|
132
135
|
.build() {
|
|
133
136
|
}
|
|
134
137
|
|
|
135
|
-
class CreateWebLoginTokenCommand extends
|
|
138
|
+
class CreateWebLoginTokenCommand extends Command
|
|
136
139
|
.classBuilder()
|
|
137
140
|
.ep(commonParams)
|
|
138
141
|
.m(function (Command, cs, config, o) {
|
|
139
|
-
return [
|
|
142
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
143
|
})
|
|
141
144
|
.s("AmazonMWAA", "CreateWebLoginToken", {})
|
|
142
145
|
.n("MWAAClient", "CreateWebLoginTokenCommand")
|
|
143
|
-
.sc(
|
|
146
|
+
.sc(CreateWebLoginToken$)
|
|
144
147
|
.build() {
|
|
145
148
|
}
|
|
146
149
|
|
|
147
|
-
class DeleteEnvironmentCommand extends
|
|
150
|
+
class DeleteEnvironmentCommand extends Command
|
|
148
151
|
.classBuilder()
|
|
149
152
|
.ep(commonParams)
|
|
150
153
|
.m(function (Command, cs, config, o) {
|
|
151
|
-
return [
|
|
154
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
152
155
|
})
|
|
153
156
|
.s("AmazonMWAA", "DeleteEnvironment", {})
|
|
154
157
|
.n("MWAAClient", "DeleteEnvironmentCommand")
|
|
155
|
-
.sc(
|
|
158
|
+
.sc(DeleteEnvironment$)
|
|
156
159
|
.build() {
|
|
157
160
|
}
|
|
158
161
|
|
|
159
|
-
class GetEnvironmentCommand extends
|
|
162
|
+
class GetEnvironmentCommand extends Command
|
|
160
163
|
.classBuilder()
|
|
161
164
|
.ep(commonParams)
|
|
162
165
|
.m(function (Command, cs, config, o) {
|
|
163
|
-
return [
|
|
166
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
164
167
|
})
|
|
165
168
|
.s("AmazonMWAA", "GetEnvironment", {})
|
|
166
169
|
.n("MWAAClient", "GetEnvironmentCommand")
|
|
167
|
-
.sc(
|
|
170
|
+
.sc(GetEnvironment$)
|
|
168
171
|
.build() {
|
|
169
172
|
}
|
|
170
173
|
|
|
171
|
-
class InvokeRestApiCommand extends
|
|
174
|
+
class InvokeRestApiCommand extends Command
|
|
172
175
|
.classBuilder()
|
|
173
176
|
.ep(commonParams)
|
|
174
177
|
.m(function (Command, cs, config, o) {
|
|
175
|
-
return [
|
|
178
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
176
179
|
})
|
|
177
180
|
.s("AmazonMWAA", "InvokeRestApi", {})
|
|
178
181
|
.n("MWAAClient", "InvokeRestApiCommand")
|
|
179
|
-
.sc(
|
|
182
|
+
.sc(InvokeRestApi$)
|
|
180
183
|
.build() {
|
|
181
184
|
}
|
|
182
185
|
|
|
183
|
-
class ListEnvironmentsCommand extends
|
|
186
|
+
class ListEnvironmentsCommand extends Command
|
|
184
187
|
.classBuilder()
|
|
185
188
|
.ep(commonParams)
|
|
186
189
|
.m(function (Command, cs, config, o) {
|
|
187
|
-
return [
|
|
190
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
188
191
|
})
|
|
189
192
|
.s("AmazonMWAA", "ListEnvironments", {})
|
|
190
193
|
.n("MWAAClient", "ListEnvironmentsCommand")
|
|
191
|
-
.sc(
|
|
194
|
+
.sc(ListEnvironments$)
|
|
192
195
|
.build() {
|
|
193
196
|
}
|
|
194
197
|
|
|
195
|
-
class ListTagsForResourceCommand extends
|
|
198
|
+
class ListTagsForResourceCommand extends Command
|
|
196
199
|
.classBuilder()
|
|
197
200
|
.ep(commonParams)
|
|
198
201
|
.m(function (Command, cs, config, o) {
|
|
199
|
-
return [
|
|
202
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
200
203
|
})
|
|
201
204
|
.s("AmazonMWAA", "ListTagsForResource", {})
|
|
202
205
|
.n("MWAAClient", "ListTagsForResourceCommand")
|
|
203
|
-
.sc(
|
|
206
|
+
.sc(ListTagsForResource$)
|
|
204
207
|
.build() {
|
|
205
208
|
}
|
|
206
209
|
|
|
207
|
-
class PublishMetricsCommand extends
|
|
210
|
+
class PublishMetricsCommand extends Command
|
|
208
211
|
.classBuilder()
|
|
209
212
|
.ep(commonParams)
|
|
210
213
|
.m(function (Command, cs, config, o) {
|
|
211
|
-
return [
|
|
214
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
212
215
|
})
|
|
213
216
|
.s("AmazonMWAA", "PublishMetrics", {})
|
|
214
217
|
.n("MWAAClient", "PublishMetricsCommand")
|
|
215
|
-
.sc(
|
|
218
|
+
.sc(PublishMetrics$)
|
|
216
219
|
.build() {
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
class TagResourceCommand extends
|
|
222
|
+
class TagResourceCommand extends Command
|
|
220
223
|
.classBuilder()
|
|
221
224
|
.ep(commonParams)
|
|
222
225
|
.m(function (Command, cs, config, o) {
|
|
223
|
-
return [
|
|
226
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
227
|
})
|
|
225
228
|
.s("AmazonMWAA", "TagResource", {})
|
|
226
229
|
.n("MWAAClient", "TagResourceCommand")
|
|
227
|
-
.sc(
|
|
230
|
+
.sc(TagResource$)
|
|
228
231
|
.build() {
|
|
229
232
|
}
|
|
230
233
|
|
|
231
|
-
class UntagResourceCommand extends
|
|
234
|
+
class UntagResourceCommand extends Command
|
|
232
235
|
.classBuilder()
|
|
233
236
|
.ep(commonParams)
|
|
234
237
|
.m(function (Command, cs, config, o) {
|
|
235
|
-
return [
|
|
238
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
236
239
|
})
|
|
237
240
|
.s("AmazonMWAA", "UntagResource", {})
|
|
238
241
|
.n("MWAAClient", "UntagResourceCommand")
|
|
239
|
-
.sc(
|
|
242
|
+
.sc(UntagResource$)
|
|
240
243
|
.build() {
|
|
241
244
|
}
|
|
242
245
|
|
|
243
|
-
class UpdateEnvironmentCommand extends
|
|
246
|
+
class UpdateEnvironmentCommand extends Command
|
|
244
247
|
.classBuilder()
|
|
245
248
|
.ep(commonParams)
|
|
246
249
|
.m(function (Command, cs, config, o) {
|
|
247
|
-
return [
|
|
250
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
248
251
|
})
|
|
249
252
|
.s("AmazonMWAA", "UpdateEnvironment", {})
|
|
250
253
|
.n("MWAAClient", "UpdateEnvironmentCommand")
|
|
251
|
-
.sc(
|
|
254
|
+
.sc(UpdateEnvironment$)
|
|
252
255
|
.build() {
|
|
253
256
|
}
|
|
254
257
|
|
|
255
|
-
const paginateListEnvironments =
|
|
258
|
+
const paginateListEnvironments = createPaginator(MWAAClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults");
|
|
256
259
|
|
|
257
260
|
const commands = {
|
|
258
261
|
CreateCliTokenCommand,
|
|
@@ -273,7 +276,7 @@ const paginators = {
|
|
|
273
276
|
};
|
|
274
277
|
class MWAA extends MWAAClient {
|
|
275
278
|
}
|
|
276
|
-
|
|
279
|
+
createAggregatedClient(commands, MWAA, { paginators });
|
|
277
280
|
|
|
278
281
|
const EndpointManagement = {
|
|
279
282
|
CUSTOMER: "CUSTOMER",
|
|
@@ -351,9 +354,6 @@ const Unit = {
|
|
|
351
354
|
TERABYTES_PER_SECOND: "Terabytes/Second",
|
|
352
355
|
};
|
|
353
356
|
|
|
354
|
-
exports.$Command = client.Command;
|
|
355
|
-
exports.__Client = client.Client;
|
|
356
|
-
exports.MWAAServiceException = MWAAServiceException.MWAAServiceException;
|
|
357
357
|
exports.CreateCliTokenCommand = CreateCliTokenCommand;
|
|
358
358
|
exports.CreateEnvironmentCommand = CreateEnvironmentCommand;
|
|
359
359
|
exports.CreateWebLoginTokenCommand = CreateWebLoginTokenCommand;
|
|
@@ -377,23 +377,3 @@ exports.UpdateStatus = UpdateStatus;
|
|
|
377
377
|
exports.WebserverAccessMode = WebserverAccessMode;
|
|
378
378
|
exports.WorkerReplacementStrategy = WorkerReplacementStrategy;
|
|
379
379
|
exports.paginateListEnvironments = paginateListEnvironments;
|
|
380
|
-
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
381
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
382
|
-
Object.defineProperty(exports, '__proto__', {
|
|
383
|
-
enumerable: true,
|
|
384
|
-
value: schemas_0['__proto__']
|
|
385
|
-
});
|
|
386
|
-
|
|
387
|
-
Object.keys(schemas_0).forEach(function (k) {
|
|
388
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
|
|
389
|
-
});
|
|
390
|
-
Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
|
|
391
|
-
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
392
|
-
Object.defineProperty(exports, '__proto__', {
|
|
393
|
-
enumerable: true,
|
|
394
|
-
value: errors['__proto__']
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
Object.keys(errors).forEach(function (k) {
|
|
398
|
-
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
|
|
399
|
-
});
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.MWAAServiceException =
|
|
4
|
-
const client_1 = require("@smithy/core/client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
-
class MWAAServiceException extends client_1.ServiceException {
|
|
1
|
+
const { ServiceException: __ServiceException } = require("@smithy/core/client");
|
|
2
|
+
exports.__ServiceException = __ServiceException;
|
|
3
|
+
exports.MWAAServiceException = class MWAAServiceException extends __ServiceException {
|
|
7
4
|
constructor(options) {
|
|
8
5
|
super(options);
|
|
9
6
|
Object.setPrototypeOf(this, MWAAServiceException.prototype);
|
|
10
7
|
}
|
|
11
|
-
}
|
|
12
|
-
exports.MWAAServiceException = MWAAServiceException;
|
|
8
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.RestApiServerException = exports.RestApiClientException = exports.ValidationException = exports.ServiceUnavailableException = exports.InternalServerException = exports.ResourceNotFoundException = exports.AccessDeniedException = void 0;
|
|
4
|
-
const MWAAServiceException_1 = require("./MWAAServiceException");
|
|
5
|
-
class AccessDeniedException extends MWAAServiceException_1.MWAAServiceException {
|
|
1
|
+
const { MWAAServiceException: __BaseException } = require("./MWAAServiceException");
|
|
2
|
+
exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
|
|
6
3
|
name = "AccessDeniedException";
|
|
7
4
|
$fault = "client";
|
|
8
5
|
Message;
|
|
@@ -15,9 +12,8 @@ class AccessDeniedException extends MWAAServiceException_1.MWAAServiceException
|
|
|
15
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
16
13
|
this.Message = opts.Message;
|
|
17
14
|
}
|
|
18
|
-
}
|
|
19
|
-
exports.
|
|
20
|
-
class ResourceNotFoundException extends MWAAServiceException_1.MWAAServiceException {
|
|
15
|
+
};
|
|
16
|
+
exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
|
|
21
17
|
name = "ResourceNotFoundException";
|
|
22
18
|
$fault = "client";
|
|
23
19
|
constructor(opts) {
|
|
@@ -28,9 +24,8 @@ class ResourceNotFoundException extends MWAAServiceException_1.MWAAServiceExcept
|
|
|
28
24
|
});
|
|
29
25
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
30
26
|
}
|
|
31
|
-
}
|
|
32
|
-
exports.
|
|
33
|
-
class InternalServerException extends MWAAServiceException_1.MWAAServiceException {
|
|
27
|
+
};
|
|
28
|
+
exports.InternalServerException = class InternalServerException extends __BaseException {
|
|
34
29
|
name = "InternalServerException";
|
|
35
30
|
$fault = "server";
|
|
36
31
|
constructor(opts) {
|
|
@@ -41,9 +36,8 @@ class InternalServerException extends MWAAServiceException_1.MWAAServiceExceptio
|
|
|
41
36
|
});
|
|
42
37
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
43
38
|
}
|
|
44
|
-
}
|
|
45
|
-
exports.
|
|
46
|
-
class ServiceUnavailableException extends MWAAServiceException_1.MWAAServiceException {
|
|
39
|
+
};
|
|
40
|
+
exports.ServiceUnavailableException = class ServiceUnavailableException extends __BaseException {
|
|
47
41
|
name = "ServiceUnavailableException";
|
|
48
42
|
$fault = "server";
|
|
49
43
|
constructor(opts) {
|
|
@@ -54,9 +48,8 @@ class ServiceUnavailableException extends MWAAServiceException_1.MWAAServiceExce
|
|
|
54
48
|
});
|
|
55
49
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
56
50
|
}
|
|
57
|
-
}
|
|
58
|
-
exports.
|
|
59
|
-
class ValidationException extends MWAAServiceException_1.MWAAServiceException {
|
|
51
|
+
};
|
|
52
|
+
exports.ValidationException = class ValidationException extends __BaseException {
|
|
60
53
|
name = "ValidationException";
|
|
61
54
|
$fault = "client";
|
|
62
55
|
constructor(opts) {
|
|
@@ -67,9 +60,8 @@ class ValidationException extends MWAAServiceException_1.MWAAServiceException {
|
|
|
67
60
|
});
|
|
68
61
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
69
62
|
}
|
|
70
|
-
}
|
|
71
|
-
exports.
|
|
72
|
-
class RestApiClientException extends MWAAServiceException_1.MWAAServiceException {
|
|
63
|
+
};
|
|
64
|
+
exports.RestApiClientException = class RestApiClientException extends __BaseException {
|
|
73
65
|
name = "RestApiClientException";
|
|
74
66
|
$fault = "client";
|
|
75
67
|
RestApiStatusCode;
|
|
@@ -84,9 +76,8 @@ class RestApiClientException extends MWAAServiceException_1.MWAAServiceException
|
|
|
84
76
|
this.RestApiStatusCode = opts.RestApiStatusCode;
|
|
85
77
|
this.RestApiResponse = opts.RestApiResponse;
|
|
86
78
|
}
|
|
87
|
-
}
|
|
88
|
-
exports.
|
|
89
|
-
class RestApiServerException extends MWAAServiceException_1.MWAAServiceException {
|
|
79
|
+
};
|
|
80
|
+
exports.RestApiServerException = class RestApiServerException extends __BaseException {
|
|
90
81
|
name = "RestApiServerException";
|
|
91
82
|
$fault = "client";
|
|
92
83
|
RestApiStatusCode;
|
|
@@ -101,5 +92,4 @@ class RestApiServerException extends MWAAServiceException_1.MWAAServiceException
|
|
|
101
92
|
this.RestApiStatusCode = opts.RestApiStatusCode;
|
|
102
93
|
this.RestApiResponse = opts.RestApiResponse;
|
|
103
94
|
}
|
|
104
|
-
}
|
|
105
|
-
exports.RestApiServerException = RestApiServerException;
|
|
95
|
+
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const retry_1 = require("@smithy/core/retry");
|
|
11
|
-
const serde_1 = require("@smithy/core/serde");
|
|
12
|
-
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
13
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { Sha256 } = require("@aws-crypto/sha256-browser");
|
|
3
|
+
const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
|
|
4
|
+
const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
5
|
+
const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
6
|
+
const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
|
|
7
|
+
const { calculateBodyLength } = require("@smithy/core/serde");
|
|
8
|
+
const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
|
|
9
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
14
10
|
const getRuntimeConfig = (config) => {
|
|
15
|
-
const defaultsMode =
|
|
16
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
17
|
-
const clientSharedValues = (
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
14
|
return {
|
|
19
15
|
...clientSharedValues,
|
|
20
16
|
...config,
|
|
21
17
|
runtime: "browser",
|
|
22
18
|
defaultsMode,
|
|
23
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
20
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
25
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
26
|
-
maxAttempts: config?.maxAttempts ??
|
|
27
|
-
region: config?.region ??
|
|
28
|
-
requestHandler:
|
|
29
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
30
|
-
sha256: config?.sha256 ??
|
|
31
|
-
streamCollector: config?.streamCollector ??
|
|
32
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
33
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
21
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
22
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
23
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
24
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
25
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
26
|
+
sha256: config?.sha256 ?? Sha256,
|
|
27
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
28
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
29
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
30
|
};
|
|
35
31
|
};
|
|
36
32
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,23 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const retry_1 = require("@smithy/core/retry");
|
|
12
|
-
const serde_1 = require("@smithy/core/serde");
|
|
13
|
-
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
-
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
1
|
+
const packageInfo = require("../package.json");
|
|
2
|
+
const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
|
|
3
|
+
const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
4
|
+
const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
5
|
+
const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
|
|
6
|
+
const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
|
|
7
|
+
const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
|
|
8
|
+
const { calculateBodyLength, Hash } = require("@smithy/core/serde");
|
|
9
|
+
const { NodeHttpHandler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
|
|
10
|
+
const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
|
|
15
11
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
|
|
17
|
-
const defaultsMode =
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
19
|
-
const clientSharedValues = (
|
|
20
|
-
(
|
|
12
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
13
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
15
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
16
|
+
awsCheckVersion(process.version);
|
|
21
17
|
const loaderConfig = {
|
|
22
18
|
profile: config?.profile,
|
|
23
19
|
logger: clientSharedValues.logger,
|
|
@@ -27,23 +23,23 @@ const getRuntimeConfig = (config) => {
|
|
|
27
23
|
...config,
|
|
28
24
|
runtime: "node",
|
|
29
25
|
defaultsMode,
|
|
30
|
-
authSchemePreference: config?.authSchemePreference ?? (
|
|
31
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
32
|
-
credentialDefaultProvider: config?.credentialDefaultProvider ??
|
|
33
|
-
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
34
|
-
maxAttempts: config?.maxAttempts ?? (
|
|
35
|
-
region: config?.region ?? (
|
|
36
|
-
requestHandler:
|
|
26
|
+
authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
32
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
37
33
|
retryMode: config?.retryMode ??
|
|
38
|
-
(
|
|
39
|
-
...
|
|
40
|
-
default: async () => (await defaultConfigProvider()).retryMode ||
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
41
37
|
}, config),
|
|
42
|
-
sha256: config?.sha256 ??
|
|
43
|
-
streamCollector: config?.streamCollector ??
|
|
44
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (
|
|
45
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (
|
|
46
|
-
userAgentAppId: config?.userAgentAppId ?? (
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
42
|
+
userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
47
43
|
};
|
|
48
44
|
};
|
|
49
45
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
5
|
-
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
1
|
+
const { Sha256 } = require("@aws-crypto/sha256-js");
|
|
2
|
+
const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
|
|
6
3
|
const getRuntimeConfig = (config) => {
|
|
7
|
-
const browserDefaults = (
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
8
5
|
return {
|
|
9
6
|
...browserDefaults,
|
|
10
7
|
...config,
|
|
11
8
|
runtime: "react-native",
|
|
12
|
-
sha256: config?.sha256 ??
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
13
10
|
};
|
|
14
11
|
};
|
|
15
12
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,42 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
11
|
-
const schemas_0_1 = require("./schemas/schemas_0");
|
|
12
|
-
const getRuntimeConfig = (config) => {
|
|
1
|
+
const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
|
|
2
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
3
|
+
const { NoOpLogger } = require("@smithy/core/client");
|
|
4
|
+
const { parseUrl } = require("@smithy/core/protocols");
|
|
5
|
+
const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
|
|
6
|
+
const { defaultMWAAHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
|
|
7
|
+
const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
|
|
8
|
+
const { errorTypeRegistries } = require("./schemas/schemas_0");
|
|
9
|
+
exports.getRuntimeConfig = (config) => {
|
|
13
10
|
return {
|
|
14
11
|
apiVersion: "2020-07-01",
|
|
15
|
-
base64Decoder: config?.base64Decoder ??
|
|
16
|
-
base64Encoder: config?.base64Encoder ??
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
17
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
18
|
-
endpointProvider: config?.endpointProvider ??
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
19
16
|
extensions: config?.extensions ?? [],
|
|
20
|
-
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ??
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultMWAAHttpAuthSchemeProvider,
|
|
21
18
|
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
22
19
|
{
|
|
23
20
|
schemeId: "aws.auth#sigv4",
|
|
24
21
|
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
25
|
-
signer: new
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
26
23
|
},
|
|
27
24
|
],
|
|
28
|
-
logger: config?.logger ?? new
|
|
29
|
-
protocol: config?.protocol ??
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
30
27
|
protocolSettings: config?.protocolSettings ?? {
|
|
31
28
|
defaultNamespace: "com.amazonaws.mwaa",
|
|
32
|
-
errorTypeRegistries
|
|
29
|
+
errorTypeRegistries,
|
|
33
30
|
version: "2020-07-01",
|
|
34
31
|
serviceTarget: "AmazonMWAA",
|
|
35
32
|
},
|
|
36
33
|
serviceId: config?.serviceId ?? "MWAA",
|
|
37
|
-
urlParser: config?.urlParser ??
|
|
38
|
-
utf8Decoder: config?.utf8Decoder ??
|
|
39
|
-
utf8Encoder: config?.utf8Encoder ??
|
|
34
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
35
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
36
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
40
37
|
};
|
|
41
38
|
};
|
|
42
|
-
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetEnvironment$ = exports.DeleteEnvironment$ = exports.CreateWebLoginToken$ = exports.CreateEnvironment$ = exports.CreateCliToken$ = exports.UpdateNetworkConfigurationInput$ = exports.UpdateError$ = exports.UpdateEnvironmentOutput$ = exports.UpdateEnvironmentInput$ = exports.UntagResourceOutput$ = exports.UntagResourceInput$ = exports.TagResourceOutput$ = exports.TagResourceInput$ = exports.StatisticSet$ = exports.PublishMetricsOutput$ = exports.PublishMetricsInput$ = exports.NetworkConfiguration$ = exports.ModuleLoggingConfigurationInput$ = exports.ModuleLoggingConfiguration$ = exports.MetricDatum$ = exports.LoggingConfigurationInput$ = exports.LoggingConfiguration$ = exports.ListTagsForResourceOutput$ = exports.ListTagsForResourceInput$ = exports.ListEnvironmentsOutput$ = exports.ListEnvironmentsInput$ = exports.LastUpdate$ = exports.InvokeRestApiResponse$ = exports.InvokeRestApiRequest$ = exports.GetEnvironmentOutput$ = exports.GetEnvironmentInput$ = exports.Environment$ = exports.Dimension$ = exports.DeleteEnvironmentOutput$ = exports.DeleteEnvironmentInput$ = exports.CreateWebLoginTokenResponse$ = exports.CreateWebLoginTokenRequest$ = exports.CreateEnvironmentOutput$ = exports.CreateEnvironmentInput$ = exports.CreateCliTokenResponse$ = exports.CreateCliTokenRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ServiceUnavailableException$ = exports.RestApiServerException$ = exports.RestApiClientException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.AccessDeniedException$ = exports.MWAAServiceException$ = void 0;
|
|
4
|
-
exports.UpdateEnvironment$ = exports.UntagResource$ = exports.TagResource$ = exports.PublishMetrics$ = exports.ListTagsForResource$ = exports.ListEnvironments$ = exports.InvokeRestApi$ = void 0;
|
|
5
1
|
const _A = "Arn";
|
|
6
2
|
const _ACO = "AirflowConfigurationOptions";
|
|
7
3
|
const _ADE = "AccessDeniedException";
|
|
@@ -145,55 +141,63 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.mwaa";
|
|
|
145
141
|
const _se = "server";
|
|
146
142
|
const _tK = "tagKeys";
|
|
147
143
|
const n0 = "com.amazonaws.mwaa";
|
|
148
|
-
const
|
|
149
|
-
const
|
|
150
|
-
const
|
|
151
|
-
const _s_registry =
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
144
|
+
const { TypeRegistry } = require("@smithy/core/schema");
|
|
145
|
+
const { AccessDeniedException, InternalServerException, ResourceNotFoundException, RestApiClientException, RestApiServerException, ServiceUnavailableException, ValidationException } = require("../models/errors");
|
|
146
|
+
const { MWAAServiceException } = require("../models/MWAAServiceException");
|
|
147
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
148
|
+
const MWAAServiceException$ = [-3, _s, "MWAAServiceException", 0, [], []];
|
|
149
|
+
exports.MWAAServiceException$ = MWAAServiceException$;
|
|
150
|
+
_s_registry.registerError(MWAAServiceException$, MWAAServiceException);
|
|
151
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
152
|
+
const AccessDeniedException$ = [-3, n0, _ADE,
|
|
156
153
|
{ [_e]: _c, [_hE]: 403 },
|
|
157
154
|
[_M],
|
|
158
155
|
[0]
|
|
159
156
|
];
|
|
160
|
-
|
|
161
|
-
|
|
157
|
+
exports.AccessDeniedException$ = AccessDeniedException$;
|
|
158
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
159
|
+
const InternalServerException$ = [-3, n0, _ISE,
|
|
162
160
|
{ [_e]: _se, [_hE]: 500 },
|
|
163
161
|
[_m],
|
|
164
162
|
[0]
|
|
165
163
|
];
|
|
166
|
-
|
|
167
|
-
|
|
164
|
+
exports.InternalServerException$ = InternalServerException$;
|
|
165
|
+
n0_registry.registerError(InternalServerException$, InternalServerException);
|
|
166
|
+
const ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
168
167
|
{ [_e]: _c, [_hE]: 404 },
|
|
169
168
|
[_m],
|
|
170
169
|
[0]
|
|
171
170
|
];
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
172
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
173
|
+
const RestApiClientException$ = [-3, n0, _RACE,
|
|
174
174
|
{ [_e]: _c, [_hE]: 400 },
|
|
175
175
|
[_RASC, _RAR],
|
|
176
176
|
[1, [() => RestApiResponse, 0]]
|
|
177
177
|
];
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
exports.RestApiClientException$ = RestApiClientException$;
|
|
179
|
+
n0_registry.registerError(RestApiClientException$, RestApiClientException);
|
|
180
|
+
const RestApiServerException$ = [-3, n0, _RASE,
|
|
180
181
|
{ [_e]: _c, [_hE]: 400 },
|
|
181
182
|
[_RASC, _RAR],
|
|
182
183
|
[1, [() => RestApiResponse, 0]]
|
|
183
184
|
];
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
exports.RestApiServerException$ = RestApiServerException$;
|
|
186
|
+
n0_registry.registerError(RestApiServerException$, RestApiServerException);
|
|
187
|
+
const ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
186
188
|
{ [_e]: _se, [_hE]: 503 },
|
|
187
189
|
[_m],
|
|
188
190
|
[0]
|
|
189
191
|
];
|
|
190
|
-
|
|
191
|
-
|
|
192
|
+
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
193
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
194
|
+
const ValidationException$ = [-3, n0, _VE,
|
|
192
195
|
{ [_e]: _c, [_hE]: 400 },
|
|
193
196
|
[_m],
|
|
194
197
|
[0]
|
|
195
198
|
];
|
|
196
|
-
|
|
199
|
+
exports.ValidationException$ = ValidationException$;
|
|
200
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
197
201
|
exports.errorTypeRegistries = [
|
|
198
202
|
_s_registry,
|
|
199
203
|
n0_registry,
|
|
@@ -202,192 +206,228 @@ var ConfigValue = [0, n0, _CV, 8, 0];
|
|
|
202
206
|
var RestApiRequestBody = [0, n0, _RARB, 8, 15];
|
|
203
207
|
var RestApiResponse = [0, n0, _RAR, 8, 15];
|
|
204
208
|
var Token = [0, n0, _T, 8, 0];
|
|
205
|
-
|
|
209
|
+
const CreateCliTokenRequest$ = [3, n0, _CCTR,
|
|
206
210
|
0,
|
|
207
211
|
[_N],
|
|
208
212
|
[[0, 1]], 1
|
|
209
213
|
];
|
|
210
|
-
exports.
|
|
214
|
+
exports.CreateCliTokenRequest$ = CreateCliTokenRequest$;
|
|
215
|
+
const CreateCliTokenResponse$ = [3, n0, _CCTRr,
|
|
211
216
|
0,
|
|
212
217
|
[_CT, _WSH],
|
|
213
218
|
[[() => Token, 0], 0]
|
|
214
219
|
];
|
|
215
|
-
exports.
|
|
220
|
+
exports.CreateCliTokenResponse$ = CreateCliTokenResponse$;
|
|
221
|
+
const CreateEnvironmentInput$ = [3, n0, _CEI,
|
|
216
222
|
0,
|
|
217
223
|
[_N, _ERA, _SBA, _DSP, _NC, _PSP, _PSOV, _RSP, _RSOV, _SSSP, _SSSOV, _ACO, _EC, _MW, _KK, _AV, _LC, _WMWS, _Ta, _WAM, _MWi, _S, _EM, _MWin, _MWa],
|
|
218
|
-
[[0, 1], 0, 0, 0, () =>
|
|
224
|
+
[[0, 1], 0, 0, 0, () => NetworkConfiguration$, 0, 0, 0, 0, 0, 0, [() => AirflowConfigurationOptions, 0], 0, 1, 0, 0, () => LoggingConfigurationInput$, 0, 128 | 0, 0, 1, 1, 0, 1, 1], 5
|
|
219
225
|
];
|
|
220
|
-
exports.
|
|
226
|
+
exports.CreateEnvironmentInput$ = CreateEnvironmentInput$;
|
|
227
|
+
const CreateEnvironmentOutput$ = [3, n0, _CEO,
|
|
221
228
|
0,
|
|
222
229
|
[_A],
|
|
223
230
|
[0]
|
|
224
231
|
];
|
|
225
|
-
exports.
|
|
232
|
+
exports.CreateEnvironmentOutput$ = CreateEnvironmentOutput$;
|
|
233
|
+
const CreateWebLoginTokenRequest$ = [3, n0, _CWLTR,
|
|
226
234
|
0,
|
|
227
235
|
[_N],
|
|
228
236
|
[[0, 1]], 1
|
|
229
237
|
];
|
|
230
|
-
exports.
|
|
238
|
+
exports.CreateWebLoginTokenRequest$ = CreateWebLoginTokenRequest$;
|
|
239
|
+
const CreateWebLoginTokenResponse$ = [3, n0, _CWLTRr,
|
|
231
240
|
0,
|
|
232
241
|
[_WT, _WSH, _II, _AI],
|
|
233
242
|
[[() => Token, 0], 0, 0, 0]
|
|
234
243
|
];
|
|
235
|
-
exports.
|
|
244
|
+
exports.CreateWebLoginTokenResponse$ = CreateWebLoginTokenResponse$;
|
|
245
|
+
const DeleteEnvironmentInput$ = [3, n0, _DEI,
|
|
236
246
|
0,
|
|
237
247
|
[_N],
|
|
238
248
|
[[0, 1]], 1
|
|
239
249
|
];
|
|
240
|
-
exports.
|
|
250
|
+
exports.DeleteEnvironmentInput$ = DeleteEnvironmentInput$;
|
|
251
|
+
const DeleteEnvironmentOutput$ = [3, n0, _DEO,
|
|
241
252
|
0,
|
|
242
253
|
[],
|
|
243
254
|
[]
|
|
244
255
|
];
|
|
245
|
-
exports.
|
|
256
|
+
exports.DeleteEnvironmentOutput$ = DeleteEnvironmentOutput$;
|
|
257
|
+
const Dimension$ = [3, n0, _D,
|
|
246
258
|
0,
|
|
247
259
|
[_N, _V],
|
|
248
260
|
[0, 0], 2
|
|
249
261
|
];
|
|
250
|
-
exports.
|
|
262
|
+
exports.Dimension$ = Dimension$;
|
|
263
|
+
const Environment$ = [3, n0, _E,
|
|
251
264
|
0,
|
|
252
265
|
[_N, _St, _A, _CA, _WU, _ERA, _SRA, _KK, _AV, _SBA, _DSP, _PSP, _PSOV, _RSP, _RSOV, _SSSP, _SSSOV, _ACO, _EC, _MW, _NC, _LC, _LU, _WMWS, _Ta, _WAM, _MWi, _S, _WVES, _DVES, _CEQ, _EM, _MWin, _MWa],
|
|
253
|
-
[0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [() => AirflowConfigurationOptions, 0], 0, 1, () =>
|
|
266
|
+
[0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, [() => AirflowConfigurationOptions, 0], 0, 1, () => NetworkConfiguration$, () => LoggingConfiguration$, () => LastUpdate$, 0, 128 | 0, 0, 1, 1, 0, 0, 0, 0, 1, 1]
|
|
254
267
|
];
|
|
255
|
-
exports.
|
|
268
|
+
exports.Environment$ = Environment$;
|
|
269
|
+
const GetEnvironmentInput$ = [3, n0, _GEI,
|
|
256
270
|
0,
|
|
257
271
|
[_N],
|
|
258
272
|
[[0, 1]], 1
|
|
259
273
|
];
|
|
260
|
-
exports.
|
|
274
|
+
exports.GetEnvironmentInput$ = GetEnvironmentInput$;
|
|
275
|
+
const GetEnvironmentOutput$ = [3, n0, _GEO,
|
|
261
276
|
0,
|
|
262
277
|
[_E],
|
|
263
|
-
[[() =>
|
|
278
|
+
[[() => Environment$, 0]]
|
|
264
279
|
];
|
|
265
|
-
exports.
|
|
280
|
+
exports.GetEnvironmentOutput$ = GetEnvironmentOutput$;
|
|
281
|
+
const InvokeRestApiRequest$ = [3, n0, _IRAR,
|
|
266
282
|
0,
|
|
267
283
|
[_N, _P, _Me, _QP, _B],
|
|
268
284
|
[[0, 1], 0, 0, 15, [() => RestApiRequestBody, 0]], 3
|
|
269
285
|
];
|
|
270
|
-
exports.
|
|
286
|
+
exports.InvokeRestApiRequest$ = InvokeRestApiRequest$;
|
|
287
|
+
const InvokeRestApiResponse$ = [3, n0, _IRARn,
|
|
271
288
|
0,
|
|
272
289
|
[_RASC, _RAR],
|
|
273
290
|
[1, [() => RestApiResponse, 0]]
|
|
274
291
|
];
|
|
275
|
-
exports.
|
|
292
|
+
exports.InvokeRestApiResponse$ = InvokeRestApiResponse$;
|
|
293
|
+
const LastUpdate$ = [3, n0, _LU,
|
|
276
294
|
0,
|
|
277
295
|
[_St, _CA, _Er, _So, _WRS],
|
|
278
|
-
[0, 4, () =>
|
|
296
|
+
[0, 4, () => UpdateError$, 0, 0]
|
|
279
297
|
];
|
|
280
|
-
exports.
|
|
298
|
+
exports.LastUpdate$ = LastUpdate$;
|
|
299
|
+
const ListEnvironmentsInput$ = [3, n0, _LEI,
|
|
281
300
|
0,
|
|
282
301
|
[_NT, _MR],
|
|
283
302
|
[[0, { [_hQ]: _NT }], [1, { [_hQ]: _MR }]]
|
|
284
303
|
];
|
|
285
|
-
exports.
|
|
304
|
+
exports.ListEnvironmentsInput$ = ListEnvironmentsInput$;
|
|
305
|
+
const ListEnvironmentsOutput$ = [3, n0, _LEO,
|
|
286
306
|
0,
|
|
287
307
|
[_En, _NT],
|
|
288
308
|
[64 | 0, 0], 1
|
|
289
309
|
];
|
|
290
|
-
exports.
|
|
310
|
+
exports.ListEnvironmentsOutput$ = ListEnvironmentsOutput$;
|
|
311
|
+
const ListTagsForResourceInput$ = [3, n0, _LTFRI,
|
|
291
312
|
0,
|
|
292
313
|
[_RA],
|
|
293
314
|
[[0, 1]], 1
|
|
294
315
|
];
|
|
295
|
-
exports.
|
|
316
|
+
exports.ListTagsForResourceInput$ = ListTagsForResourceInput$;
|
|
317
|
+
const ListTagsForResourceOutput$ = [3, n0, _LTFRO,
|
|
296
318
|
0,
|
|
297
319
|
[_Ta],
|
|
298
320
|
[128 | 0]
|
|
299
321
|
];
|
|
300
|
-
exports.
|
|
322
|
+
exports.ListTagsForResourceOutput$ = ListTagsForResourceOutput$;
|
|
323
|
+
const LoggingConfiguration$ = [3, n0, _LC,
|
|
301
324
|
0,
|
|
302
325
|
[_DPL, _SL, _WL, _WLo, _TL],
|
|
303
|
-
[() =>
|
|
326
|
+
[() => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$, () => ModuleLoggingConfiguration$]
|
|
304
327
|
];
|
|
305
|
-
exports.
|
|
328
|
+
exports.LoggingConfiguration$ = LoggingConfiguration$;
|
|
329
|
+
const LoggingConfigurationInput$ = [3, n0, _LCI,
|
|
306
330
|
0,
|
|
307
331
|
[_DPL, _SL, _WL, _WLo, _TL],
|
|
308
|
-
[() =>
|
|
332
|
+
[() => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$, () => ModuleLoggingConfigurationInput$]
|
|
309
333
|
];
|
|
310
|
-
exports.
|
|
334
|
+
exports.LoggingConfigurationInput$ = LoggingConfigurationInput$;
|
|
335
|
+
const MetricDatum$ = [3, n0, _MD,
|
|
311
336
|
0,
|
|
312
337
|
[_MN, _Ti, _Di, _V, _U, _SV],
|
|
313
|
-
[0, 4, () => Dimensions, 1, 0, () =>
|
|
338
|
+
[0, 4, () => Dimensions, 1, 0, () => StatisticSet$], 2
|
|
314
339
|
];
|
|
315
|
-
exports.
|
|
340
|
+
exports.MetricDatum$ = MetricDatum$;
|
|
341
|
+
const ModuleLoggingConfiguration$ = [3, n0, _MLC,
|
|
316
342
|
0,
|
|
317
343
|
[_Ena, _LL, _CWLGA],
|
|
318
344
|
[2, 0, 0]
|
|
319
345
|
];
|
|
320
|
-
exports.
|
|
346
|
+
exports.ModuleLoggingConfiguration$ = ModuleLoggingConfiguration$;
|
|
347
|
+
const ModuleLoggingConfigurationInput$ = [3, n0, _MLCI,
|
|
321
348
|
0,
|
|
322
349
|
[_Ena, _LL],
|
|
323
350
|
[2, 0], 2
|
|
324
351
|
];
|
|
325
|
-
exports.
|
|
352
|
+
exports.ModuleLoggingConfigurationInput$ = ModuleLoggingConfigurationInput$;
|
|
353
|
+
const NetworkConfiguration$ = [3, n0, _NC,
|
|
326
354
|
0,
|
|
327
355
|
[_SI, _SGI],
|
|
328
356
|
[64 | 0, 64 | 0]
|
|
329
357
|
];
|
|
330
|
-
exports.
|
|
358
|
+
exports.NetworkConfiguration$ = NetworkConfiguration$;
|
|
359
|
+
const PublishMetricsInput$ = [3, n0, _PMI,
|
|
331
360
|
0,
|
|
332
361
|
[_EN, _MDe],
|
|
333
362
|
[[0, 1], () => MetricData], 2
|
|
334
363
|
];
|
|
335
|
-
exports.
|
|
364
|
+
exports.PublishMetricsInput$ = PublishMetricsInput$;
|
|
365
|
+
const PublishMetricsOutput$ = [3, n0, _PMO,
|
|
336
366
|
0,
|
|
337
367
|
[],
|
|
338
368
|
[]
|
|
339
369
|
];
|
|
340
|
-
exports.
|
|
370
|
+
exports.PublishMetricsOutput$ = PublishMetricsOutput$;
|
|
371
|
+
const StatisticSet$ = [3, n0, _SS,
|
|
341
372
|
0,
|
|
342
373
|
[_SC, _Su, _Mi, _Ma],
|
|
343
374
|
[1, 1, 1, 1]
|
|
344
375
|
];
|
|
345
|
-
exports.
|
|
376
|
+
exports.StatisticSet$ = StatisticSet$;
|
|
377
|
+
const TagResourceInput$ = [3, n0, _TRI,
|
|
346
378
|
0,
|
|
347
379
|
[_RA, _Ta],
|
|
348
380
|
[[0, 1], 128 | 0], 2
|
|
349
381
|
];
|
|
350
|
-
exports.
|
|
382
|
+
exports.TagResourceInput$ = TagResourceInput$;
|
|
383
|
+
const TagResourceOutput$ = [3, n0, _TRO,
|
|
351
384
|
0,
|
|
352
385
|
[],
|
|
353
386
|
[]
|
|
354
387
|
];
|
|
355
|
-
exports.
|
|
388
|
+
exports.TagResourceOutput$ = TagResourceOutput$;
|
|
389
|
+
const UntagResourceInput$ = [3, n0, _URI,
|
|
356
390
|
0,
|
|
357
391
|
[_RA, _tK],
|
|
358
392
|
[[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
|
|
359
393
|
];
|
|
360
|
-
exports.
|
|
394
|
+
exports.UntagResourceInput$ = UntagResourceInput$;
|
|
395
|
+
const UntagResourceOutput$ = [3, n0, _URO,
|
|
361
396
|
0,
|
|
362
397
|
[],
|
|
363
398
|
[]
|
|
364
399
|
];
|
|
365
|
-
exports.
|
|
400
|
+
exports.UntagResourceOutput$ = UntagResourceOutput$;
|
|
401
|
+
const UpdateEnvironmentInput$ = [3, n0, _UEI,
|
|
366
402
|
0,
|
|
367
403
|
[_N, _ERA, _ACO, _AV, _DSP, _EC, _LC, _MW, _MWi, _MWa, _MWin, _WRS, _NC, _PSP, _PSOV, _RSP, _RSOV, _S, _SBA, _SSSP, _SSSOV, _WAM, _WMWS],
|
|
368
|
-
[[0, 1], 0, [() => AirflowConfigurationOptions, 0], 0, 0, 0, () =>
|
|
404
|
+
[[0, 1], 0, [() => AirflowConfigurationOptions, 0], 0, 0, 0, () => LoggingConfigurationInput$, 1, 1, 1, 1, 0, () => UpdateNetworkConfigurationInput$, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0], 1
|
|
369
405
|
];
|
|
370
|
-
exports.
|
|
406
|
+
exports.UpdateEnvironmentInput$ = UpdateEnvironmentInput$;
|
|
407
|
+
const UpdateEnvironmentOutput$ = [3, n0, _UEO,
|
|
371
408
|
0,
|
|
372
409
|
[_A],
|
|
373
410
|
[0]
|
|
374
411
|
];
|
|
375
|
-
exports.
|
|
412
|
+
exports.UpdateEnvironmentOutput$ = UpdateEnvironmentOutput$;
|
|
413
|
+
const UpdateError$ = [3, n0, _UE,
|
|
376
414
|
0,
|
|
377
415
|
[_ECr, _EMr],
|
|
378
416
|
[0, 0]
|
|
379
417
|
];
|
|
380
|
-
exports.
|
|
418
|
+
exports.UpdateError$ = UpdateError$;
|
|
419
|
+
const UpdateNetworkConfigurationInput$ = [3, n0, _UNCI,
|
|
381
420
|
0,
|
|
382
421
|
[_SGI],
|
|
383
422
|
[64 | 0], 1
|
|
384
423
|
];
|
|
424
|
+
exports.UpdateNetworkConfigurationInput$ = UpdateNetworkConfigurationInput$;
|
|
385
425
|
var Dimensions = [1, n0, _Di,
|
|
386
|
-
0, () =>
|
|
426
|
+
0, () => Dimension$
|
|
387
427
|
];
|
|
388
428
|
var EnvironmentList = 64 | 0;
|
|
389
429
|
var MetricData = [1, n0, _MDe,
|
|
390
|
-
0, () =>
|
|
430
|
+
0, () => MetricDatum$
|
|
391
431
|
];
|
|
392
432
|
var SecurityGroupList = 64 | 0;
|
|
393
433
|
var SubnetList = 64 | 0;
|
|
@@ -400,38 +440,38 @@ var AirflowConfigurationOptions = [2, n0, _ACO,
|
|
|
400
440
|
];
|
|
401
441
|
var TagMap = 128 | 0;
|
|
402
442
|
exports.CreateCliToken$ = [9, n0, _CCT,
|
|
403
|
-
{ [_en]: ["env."], [_h]: ["POST", "/clitoken/{Name}", 200] }, () =>
|
|
443
|
+
{ [_en]: ["env."], [_h]: ["POST", "/clitoken/{Name}", 200] }, () => CreateCliTokenRequest$, () => CreateCliTokenResponse$
|
|
404
444
|
];
|
|
405
445
|
exports.CreateEnvironment$ = [9, n0, _CE,
|
|
406
|
-
{ [_en]: ["api."], [_h]: ["PUT", "/environments/{Name}", 200] }, () =>
|
|
446
|
+
{ [_en]: ["api."], [_h]: ["PUT", "/environments/{Name}", 200] }, () => CreateEnvironmentInput$, () => CreateEnvironmentOutput$
|
|
407
447
|
];
|
|
408
448
|
exports.CreateWebLoginToken$ = [9, n0, _CWLT,
|
|
409
|
-
{ [_en]: ["env."], [_h]: ["POST", "/webtoken/{Name}", 200] }, () =>
|
|
449
|
+
{ [_en]: ["env."], [_h]: ["POST", "/webtoken/{Name}", 200] }, () => CreateWebLoginTokenRequest$, () => CreateWebLoginTokenResponse$
|
|
410
450
|
];
|
|
411
451
|
exports.DeleteEnvironment$ = [9, n0, _DE,
|
|
412
|
-
{ [_en]: ["api."], [_h]: ["DELETE", "/environments/{Name}", 200] }, () =>
|
|
452
|
+
{ [_en]: ["api."], [_h]: ["DELETE", "/environments/{Name}", 200] }, () => DeleteEnvironmentInput$, () => DeleteEnvironmentOutput$
|
|
413
453
|
];
|
|
414
454
|
exports.GetEnvironment$ = [9, n0, _GE,
|
|
415
|
-
{ [_en]: ["api."], [_h]: ["GET", "/environments/{Name}", 200] }, () =>
|
|
455
|
+
{ [_en]: ["api."], [_h]: ["GET", "/environments/{Name}", 200] }, () => GetEnvironmentInput$, () => GetEnvironmentOutput$
|
|
416
456
|
];
|
|
417
457
|
exports.InvokeRestApi$ = [9, n0, _IRA,
|
|
418
|
-
{ [_en]: ["env."], [_h]: ["POST", "/restapi/{Name}", 200] }, () =>
|
|
458
|
+
{ [_en]: ["env."], [_h]: ["POST", "/restapi/{Name}", 200] }, () => InvokeRestApiRequest$, () => InvokeRestApiResponse$
|
|
419
459
|
];
|
|
420
460
|
exports.ListEnvironments$ = [9, n0, _LE,
|
|
421
|
-
{ [_en]: ["api."], [_h]: ["GET", "/environments", 200] }, () =>
|
|
461
|
+
{ [_en]: ["api."], [_h]: ["GET", "/environments", 200] }, () => ListEnvironmentsInput$, () => ListEnvironmentsOutput$
|
|
422
462
|
];
|
|
423
463
|
exports.ListTagsForResource$ = [9, n0, _LTFR,
|
|
424
|
-
{ [_en]: ["api."], [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () =>
|
|
464
|
+
{ [_en]: ["api."], [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
|
|
425
465
|
];
|
|
426
466
|
exports.PublishMetrics$ = [9, n0, _PM,
|
|
427
|
-
{ [_en]: ["ops."], [_h]: ["POST", "/metrics/environments/{EnvironmentName}", 200] }, () =>
|
|
467
|
+
{ [_en]: ["ops."], [_h]: ["POST", "/metrics/environments/{EnvironmentName}", 200] }, () => PublishMetricsInput$, () => PublishMetricsOutput$
|
|
428
468
|
];
|
|
429
469
|
exports.TagResource$ = [9, n0, _TR,
|
|
430
|
-
{ [_en]: ["api."], [_h]: ["POST", "/tags/{ResourceArn}", 200] }, () =>
|
|
470
|
+
{ [_en]: ["api."], [_h]: ["POST", "/tags/{ResourceArn}", 200] }, () => TagResourceInput$, () => TagResourceOutput$
|
|
431
471
|
];
|
|
432
472
|
exports.UntagResource$ = [9, n0, _UR,
|
|
433
|
-
{ [_en]: ["api."], [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () =>
|
|
473
|
+
{ [_en]: ["api."], [_h]: ["DELETE", "/tags/{ResourceArn}", 200] }, () => UntagResourceInput$, () => UntagResourceOutput$
|
|
434
474
|
];
|
|
435
475
|
exports.UpdateEnvironment$ = [9, n0, _UEp,
|
|
436
|
-
{ [_en]: ["api."], [_h]: ["PATCH", "/environments/{Name}", 200] }, () =>
|
|
476
|
+
{ [_en]: ["api."], [_h]: ["PATCH", "/environments/{Name}", 200] }, () => UpdateEnvironmentInput$, () => UpdateEnvironmentOutput$
|
|
437
477
|
];
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mwaa",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mwaa Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1069.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline",
|
|
8
|
-
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:es": "premove dist-es && tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "yarn g:turbo run build -F=\"$npm_package_name\"",
|
|
10
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
10
|
+
"build:types": "premove dist-types && tsc -p tsconfig.types.json",
|
|
11
11
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
12
|
-
"clean": "premove dist-cjs dist-es dist-types
|
|
12
|
+
"clean": "premove dist-cjs dist-es dist-types",
|
|
13
13
|
"extract:docs": "api-extractor run --local",
|
|
14
|
-
"generate:client": "node ../../scripts/generate-clients/single-service
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service",
|
|
15
15
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
16
16
|
},
|
|
17
17
|
"main": "./dist-cjs/index.js",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
|
-
"@aws-sdk/core": "^3.974.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
26
|
-
"@aws-sdk/types": "^3.973.
|
|
24
|
+
"@aws-sdk/core": "^3.974.21",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "^3.972.56",
|
|
26
|
+
"@aws-sdk/types": "^3.973.13",
|
|
27
27
|
"@smithy/core": "^3.24.6",
|
|
28
28
|
"@smithy/fetch-http-handler": "^5.4.6",
|
|
29
29
|
"@smithy/node-http-handler": "^4.7.6",
|