@aws-sdk/client-mwaa-serverless 3.1068.0 → 3.1070.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.
@@ -1,17 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveHttpAuthSchemeConfig = exports.defaultMWAAServerlessHttpAuthSchemeProvider = exports.defaultMWAAServerlessHttpAuthSchemeParametersProvider = void 0;
4
- const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
5
- const client_1 = require("@smithy/core/client");
6
- const defaultMWAAServerlessHttpAuthSchemeParametersProvider = async (config, context, input) => {
1
+ const { resolveAwsSdkSigV4Config } = require("@aws-sdk/core/httpAuthSchemes");
2
+ const { getSmithyContext, normalizeProvider } = require("@smithy/core/client");
3
+ exports.defaultMWAAServerlessHttpAuthSchemeParametersProvider = async (config, context, input) => {
7
4
  return {
8
- operation: (0, client_1.getSmithyContext)(context).operation,
9
- region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
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.defaultMWAAServerlessHttpAuthSchemeParametersProvider = defaultMWAAServerlessHttpAuthSchemeParametersProvider;
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
- const defaultMWAAServerlessHttpAuthSchemeProvider = (authParameters) => {
26
+ exports.defaultMWAAServerlessHttpAuthSchemeProvider = (authParameters) => {
31
27
  const options = [];
32
28
  switch (authParameters.operation) {
33
29
  default: {
@@ -36,11 +32,9 @@ const defaultMWAAServerlessHttpAuthSchemeProvider = (authParameters) => {
36
32
  }
37
33
  return options;
38
34
  };
39
- exports.defaultMWAAServerlessHttpAuthSchemeProvider = defaultMWAAServerlessHttpAuthSchemeProvider;
40
- const resolveHttpAuthSchemeConfig = (config) => {
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: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
38
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
44
39
  });
45
40
  };
46
- exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
@@ -1,7 +1,4 @@
1
- "use strict";
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 a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
6
3
  const _data = {
7
4
  conditions: [
@@ -29,4 +26,4 @@ const nodes = new Int32Array([
29
26
  3, r + 3, r + 4,
30
27
  3, r + 1, r + 2,
31
28
  ]);
32
- exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
29
+ exports.bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
@@ -1,18 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultEndpointResolver = void 0;
4
- const client_1 = require("@aws-sdk/core/client");
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", "UseFIPS"],
10
7
  });
11
- const defaultEndpointResolver = (endpointParams, context = {}) => {
12
- return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
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
- exports.defaultEndpointResolver = defaultEndpointResolver;
18
- endpoints_1.customEndpointFunctions.aws = client_1.awsEndpointFunctions;
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -1,18 +1,21 @@
1
- 'use strict';
2
-
3
- var client$1 = require('@aws-sdk/core/client');
4
- var core = require('@smithy/core');
5
- var client = require('@smithy/core/client');
6
- var config = require('@smithy/core/config');
7
- var endpoints = require('@smithy/core/endpoints');
8
- var protocols = require('@smithy/core/protocols');
9
- var retry = require('@smithy/core/retry');
10
- var schema = require('@smithy/core/schema');
11
- var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
12
- var runtimeConfig = require('./runtimeConfig');
13
- var schemas_0 = require('./schemas/schemas_0');
14
- var errors = require('./models/errors');
15
- var MWAAServerlessServiceException = require('./models/MWAAServerlessServiceException');
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, defaultMWAAServerlessHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
+ const { getRuntimeConfig } = require("./runtimeConfig");
14
+ const { CreateWorkflow$, DeleteWorkflow$, GetTaskInstance$, GetWorkflow$, GetWorkflowRun$, ListTagsForResource$, ListTaskInstances$, ListWorkflowRuns$, ListWorkflows$, ListWorkflowVersions$, StartWorkflowRun$, StopWorkflowRun$, TagResource$, UntagResource$, UpdateWorkflow$ } = require("./schemas/schemas_0");
15
+ __exportStar(require("./schemas/schemas_0"), exports);
16
+ __exportStar(require("./models/errors"), exports);
17
+ const { MWAAServerlessServiceException } = require("./models/MWAAServerlessServiceException");
18
+ exports.MWAAServerlessServiceException = MWAAServerlessServiceException;
16
19
 
17
20
  const resolveClientEndpointParameters = (options) => {
18
21
  return Object.assign(options, {
@@ -66,233 +69,233 @@ const resolveHttpAuthRuntimeConfig = (config) => {
66
69
  };
67
70
 
68
71
  const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
69
- const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
72
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
70
73
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
71
- return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
74
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
72
75
  };
73
76
 
74
- class MWAAServerlessClient extends client.Client {
77
+ class MWAAServerlessClient extends Client {
75
78
  config;
76
79
  constructor(...[configuration]) {
77
- const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
80
+ const _config_0 = getRuntimeConfig(configuration || {});
78
81
  super(_config_0);
79
82
  this.initConfig = _config_0;
80
83
  const _config_1 = resolveClientEndpointParameters(_config_0);
81
- const _config_2 = client$1.resolveUserAgentConfig(_config_1);
82
- const _config_3 = retry.resolveRetryConfig(_config_2);
83
- const _config_4 = config.resolveRegionConfig(_config_3);
84
- const _config_5 = client$1.resolveHostHeaderConfig(_config_4);
85
- const _config_6 = endpoints.resolveEndpointConfig(_config_5);
86
- const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
84
+ const _config_2 = resolveUserAgentConfig(_config_1);
85
+ const _config_3 = resolveRetryConfig(_config_2);
86
+ const _config_4 = resolveRegionConfig(_config_3);
87
+ const _config_5 = resolveHostHeaderConfig(_config_4);
88
+ const _config_6 = resolveEndpointConfig(_config_5);
89
+ const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
87
90
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
88
91
  this.config = _config_8;
89
- this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
90
- this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));
91
- this.middlewareStack.use(retry.getRetryPlugin(this.config));
92
- this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
93
- this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));
94
- this.middlewareStack.use(client$1.getLoggerPlugin(this.config));
95
- this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));
96
- this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
97
- httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultMWAAServerlessHttpAuthSchemeParametersProvider,
98
- identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
92
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
93
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
94
+ this.middlewareStack.use(getRetryPlugin(this.config));
95
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
96
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
97
+ this.middlewareStack.use(getLoggerPlugin(this.config));
98
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
99
+ this.middlewareStack.use(getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
100
+ httpAuthSchemeParametersProvider: defaultMWAAServerlessHttpAuthSchemeParametersProvider,
101
+ identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({
99
102
  "aws.auth#sigv4": config.credentials,
100
103
  }),
101
104
  }));
102
- this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
105
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
103
106
  }
104
107
  destroy() {
105
108
  super.destroy();
106
109
  }
107
110
  }
108
111
 
109
- class CreateWorkflowCommand extends client.Command
112
+ class CreateWorkflowCommand extends Command
110
113
  .classBuilder()
111
114
  .ep(commonParams)
112
115
  .m(function (Command, cs, config, o) {
113
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
116
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
114
117
  })
115
118
  .s("AmazonMWAAServerless", "CreateWorkflow", {})
116
119
  .n("MWAAServerlessClient", "CreateWorkflowCommand")
117
- .sc(schemas_0.CreateWorkflow$)
120
+ .sc(CreateWorkflow$)
118
121
  .build() {
119
122
  }
120
123
 
121
- class DeleteWorkflowCommand extends client.Command
124
+ class DeleteWorkflowCommand extends Command
122
125
  .classBuilder()
123
126
  .ep(commonParams)
124
127
  .m(function (Command, cs, config, o) {
125
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
128
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
126
129
  })
127
130
  .s("AmazonMWAAServerless", "DeleteWorkflow", {})
128
131
  .n("MWAAServerlessClient", "DeleteWorkflowCommand")
129
- .sc(schemas_0.DeleteWorkflow$)
132
+ .sc(DeleteWorkflow$)
130
133
  .build() {
131
134
  }
132
135
 
133
- class GetTaskInstanceCommand extends client.Command
136
+ class GetTaskInstanceCommand extends Command
134
137
  .classBuilder()
135
138
  .ep(commonParams)
136
139
  .m(function (Command, cs, config, o) {
137
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
140
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
138
141
  })
139
142
  .s("AmazonMWAAServerless", "GetTaskInstance", {})
140
143
  .n("MWAAServerlessClient", "GetTaskInstanceCommand")
141
- .sc(schemas_0.GetTaskInstance$)
144
+ .sc(GetTaskInstance$)
142
145
  .build() {
143
146
  }
144
147
 
145
- class GetWorkflowCommand extends client.Command
148
+ class GetWorkflowCommand extends Command
146
149
  .classBuilder()
147
150
  .ep(commonParams)
148
151
  .m(function (Command, cs, config, o) {
149
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
152
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
150
153
  })
151
154
  .s("AmazonMWAAServerless", "GetWorkflow", {})
152
155
  .n("MWAAServerlessClient", "GetWorkflowCommand")
153
- .sc(schemas_0.GetWorkflow$)
156
+ .sc(GetWorkflow$)
154
157
  .build() {
155
158
  }
156
159
 
157
- class GetWorkflowRunCommand extends client.Command
160
+ class GetWorkflowRunCommand extends Command
158
161
  .classBuilder()
159
162
  .ep(commonParams)
160
163
  .m(function (Command, cs, config, o) {
161
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
164
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
162
165
  })
163
166
  .s("AmazonMWAAServerless", "GetWorkflowRun", {})
164
167
  .n("MWAAServerlessClient", "GetWorkflowRunCommand")
165
- .sc(schemas_0.GetWorkflowRun$)
168
+ .sc(GetWorkflowRun$)
166
169
  .build() {
167
170
  }
168
171
 
169
- class ListTagsForResourceCommand extends client.Command
172
+ class ListTagsForResourceCommand extends Command
170
173
  .classBuilder()
171
174
  .ep(commonParams)
172
175
  .m(function (Command, cs, config, o) {
173
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
176
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
174
177
  })
175
178
  .s("AmazonMWAAServerless", "ListTagsForResource", {})
176
179
  .n("MWAAServerlessClient", "ListTagsForResourceCommand")
177
- .sc(schemas_0.ListTagsForResource$)
180
+ .sc(ListTagsForResource$)
178
181
  .build() {
179
182
  }
180
183
 
181
- class ListTaskInstancesCommand extends client.Command
184
+ class ListTaskInstancesCommand extends Command
182
185
  .classBuilder()
183
186
  .ep(commonParams)
184
187
  .m(function (Command, cs, config, o) {
185
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
188
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
186
189
  })
187
190
  .s("AmazonMWAAServerless", "ListTaskInstances", {})
188
191
  .n("MWAAServerlessClient", "ListTaskInstancesCommand")
189
- .sc(schemas_0.ListTaskInstances$)
192
+ .sc(ListTaskInstances$)
190
193
  .build() {
191
194
  }
192
195
 
193
- class ListWorkflowRunsCommand extends client.Command
196
+ class ListWorkflowRunsCommand extends Command
194
197
  .classBuilder()
195
198
  .ep(commonParams)
196
199
  .m(function (Command, cs, config, o) {
197
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
200
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
198
201
  })
199
202
  .s("AmazonMWAAServerless", "ListWorkflowRuns", {})
200
203
  .n("MWAAServerlessClient", "ListWorkflowRunsCommand")
201
- .sc(schemas_0.ListWorkflowRuns$)
204
+ .sc(ListWorkflowRuns$)
202
205
  .build() {
203
206
  }
204
207
 
205
- class ListWorkflowsCommand extends client.Command
208
+ class ListWorkflowsCommand extends Command
206
209
  .classBuilder()
207
210
  .ep(commonParams)
208
211
  .m(function (Command, cs, config, o) {
209
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
212
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
210
213
  })
211
214
  .s("AmazonMWAAServerless", "ListWorkflows", {})
212
215
  .n("MWAAServerlessClient", "ListWorkflowsCommand")
213
- .sc(schemas_0.ListWorkflows$)
216
+ .sc(ListWorkflows$)
214
217
  .build() {
215
218
  }
216
219
 
217
- class ListWorkflowVersionsCommand extends client.Command
220
+ class ListWorkflowVersionsCommand extends Command
218
221
  .classBuilder()
219
222
  .ep(commonParams)
220
223
  .m(function (Command, cs, config, o) {
221
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
224
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
222
225
  })
223
226
  .s("AmazonMWAAServerless", "ListWorkflowVersions", {})
224
227
  .n("MWAAServerlessClient", "ListWorkflowVersionsCommand")
225
- .sc(schemas_0.ListWorkflowVersions$)
228
+ .sc(ListWorkflowVersions$)
226
229
  .build() {
227
230
  }
228
231
 
229
- class StartWorkflowRunCommand extends client.Command
232
+ class StartWorkflowRunCommand extends Command
230
233
  .classBuilder()
231
234
  .ep(commonParams)
232
235
  .m(function (Command, cs, config, o) {
233
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
236
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
234
237
  })
235
238
  .s("AmazonMWAAServerless", "StartWorkflowRun", {})
236
239
  .n("MWAAServerlessClient", "StartWorkflowRunCommand")
237
- .sc(schemas_0.StartWorkflowRun$)
240
+ .sc(StartWorkflowRun$)
238
241
  .build() {
239
242
  }
240
243
 
241
- class StopWorkflowRunCommand extends client.Command
244
+ class StopWorkflowRunCommand extends Command
242
245
  .classBuilder()
243
246
  .ep(commonParams)
244
247
  .m(function (Command, cs, config, o) {
245
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
248
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
246
249
  })
247
250
  .s("AmazonMWAAServerless", "StopWorkflowRun", {})
248
251
  .n("MWAAServerlessClient", "StopWorkflowRunCommand")
249
- .sc(schemas_0.StopWorkflowRun$)
252
+ .sc(StopWorkflowRun$)
250
253
  .build() {
251
254
  }
252
255
 
253
- class TagResourceCommand extends client.Command
256
+ class TagResourceCommand extends Command
254
257
  .classBuilder()
255
258
  .ep(commonParams)
256
259
  .m(function (Command, cs, config, o) {
257
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
260
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
258
261
  })
259
262
  .s("AmazonMWAAServerless", "TagResource", {})
260
263
  .n("MWAAServerlessClient", "TagResourceCommand")
261
- .sc(schemas_0.TagResource$)
264
+ .sc(TagResource$)
262
265
  .build() {
263
266
  }
264
267
 
265
- class UntagResourceCommand extends client.Command
268
+ class UntagResourceCommand extends Command
266
269
  .classBuilder()
267
270
  .ep(commonParams)
268
271
  .m(function (Command, cs, config, o) {
269
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
272
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
270
273
  })
271
274
  .s("AmazonMWAAServerless", "UntagResource", {})
272
275
  .n("MWAAServerlessClient", "UntagResourceCommand")
273
- .sc(schemas_0.UntagResource$)
276
+ .sc(UntagResource$)
274
277
  .build() {
275
278
  }
276
279
 
277
- class UpdateWorkflowCommand extends client.Command
280
+ class UpdateWorkflowCommand extends Command
278
281
  .classBuilder()
279
282
  .ep(commonParams)
280
283
  .m(function (Command, cs, config, o) {
281
- return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
284
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
282
285
  })
283
286
  .s("AmazonMWAAServerless", "UpdateWorkflow", {})
284
287
  .n("MWAAServerlessClient", "UpdateWorkflowCommand")
285
- .sc(schemas_0.UpdateWorkflow$)
288
+ .sc(UpdateWorkflow$)
286
289
  .build() {
287
290
  }
288
291
 
289
- const paginateListTaskInstances = core.createPaginator(MWAAServerlessClient, ListTaskInstancesCommand, "NextToken", "NextToken", "MaxResults");
292
+ const paginateListTaskInstances = createPaginator(MWAAServerlessClient, ListTaskInstancesCommand, "NextToken", "NextToken", "MaxResults");
290
293
 
291
- const paginateListWorkflowRuns = core.createPaginator(MWAAServerlessClient, ListWorkflowRunsCommand, "NextToken", "NextToken", "MaxResults");
294
+ const paginateListWorkflowRuns = createPaginator(MWAAServerlessClient, ListWorkflowRunsCommand, "NextToken", "NextToken", "MaxResults");
292
295
 
293
- const paginateListWorkflows = core.createPaginator(MWAAServerlessClient, ListWorkflowsCommand, "NextToken", "NextToken", "MaxResults");
296
+ const paginateListWorkflows = createPaginator(MWAAServerlessClient, ListWorkflowsCommand, "NextToken", "NextToken", "MaxResults");
294
297
 
295
- const paginateListWorkflowVersions = core.createPaginator(MWAAServerlessClient, ListWorkflowVersionsCommand, "NextToken", "NextToken", "MaxResults");
298
+ const paginateListWorkflowVersions = createPaginator(MWAAServerlessClient, ListWorkflowVersionsCommand, "NextToken", "NextToken", "MaxResults");
296
299
 
297
300
  const commands = {
298
301
  CreateWorkflowCommand,
@@ -319,7 +322,7 @@ const paginators = {
319
322
  };
320
323
  class MWAAServerless extends MWAAServerlessClient {
321
324
  }
322
- client.createAggregatedClient(commands, MWAAServerless, { paginators });
325
+ createAggregatedClient(commands, MWAAServerless, { paginators });
323
326
 
324
327
  const ValidationExceptionReason = {
325
328
  CANNOT_PARSE: "cannotParse",
@@ -347,10 +350,10 @@ const EncryptionType = {
347
350
  AWS_MANAGED_KEY: "AWS_MANAGED_KEY",
348
351
  CUSTOMER_MANAGED_KEY: "CUSTOMER_MANAGED_KEY",
349
352
  };
350
- exports.EngineVersion = void 0;
353
+ var EngineVersion;
351
354
  (function (EngineVersion) {
352
355
  EngineVersion[EngineVersion["ONE"] = 1] = "ONE";
353
- })(exports.EngineVersion || (exports.EngineVersion = {}));
356
+ })(EngineVersion || (EngineVersion = {}));
354
357
  const WorkflowStatus = {
355
358
  DELETING: "DELETING",
356
359
  READY: "READY",
@@ -370,12 +373,10 @@ const RunType = {
370
373
  SCHEDULED: "SCHEDULED",
371
374
  };
372
375
 
373
- exports.$Command = client.Command;
374
- exports.__Client = client.Client;
375
- exports.MWAAServerlessServiceException = MWAAServerlessServiceException.MWAAServerlessServiceException;
376
376
  exports.CreateWorkflowCommand = CreateWorkflowCommand;
377
377
  exports.DeleteWorkflowCommand = DeleteWorkflowCommand;
378
378
  exports.EncryptionType = EncryptionType;
379
+ exports.EngineVersion = EngineVersion;
379
380
  exports.GetTaskInstanceCommand = GetTaskInstanceCommand;
380
381
  exports.GetWorkflowCommand = GetWorkflowCommand;
381
382
  exports.GetWorkflowRunCommand = GetWorkflowRunCommand;
@@ -400,23 +401,3 @@ exports.paginateListTaskInstances = paginateListTaskInstances;
400
401
  exports.paginateListWorkflowRuns = paginateListWorkflowRuns;
401
402
  exports.paginateListWorkflowVersions = paginateListWorkflowVersions;
402
403
  exports.paginateListWorkflows = paginateListWorkflows;
403
- Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
404
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
405
- Object.defineProperty(exports, '__proto__', {
406
- enumerable: true,
407
- value: schemas_0['__proto__']
408
- });
409
-
410
- Object.keys(schemas_0).forEach(function (k) {
411
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];
412
- });
413
- Object.prototype.hasOwnProperty.call(errors, '__proto__') &&
414
- !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
415
- Object.defineProperty(exports, '__proto__', {
416
- enumerable: true,
417
- value: errors['__proto__']
418
- });
419
-
420
- Object.keys(errors).forEach(function (k) {
421
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];
422
- });
@@ -1,12 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MWAAServerlessServiceException = exports.__ServiceException = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
6
- class MWAAServerlessServiceException extends client_1.ServiceException {
1
+ const { ServiceException: __ServiceException } = require("@smithy/core/client");
2
+ exports.__ServiceException = __ServiceException;
3
+ exports.MWAAServerlessServiceException = class MWAAServerlessServiceException extends __ServiceException {
7
4
  constructor(options) {
8
5
  super(options);
9
6
  Object.setPrototypeOf(this, MWAAServerlessServiceException.prototype);
10
7
  }
11
- }
12
- exports.MWAAServerlessServiceException = MWAAServerlessServiceException;
8
+ };
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceQuotaExceededException = exports.ConflictException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.OperationTimeoutException = exports.InternalServerException = exports.AccessDeniedException = void 0;
4
- const MWAAServerlessServiceException_1 = require("./MWAAServerlessServiceException");
5
- class AccessDeniedException extends MWAAServerlessServiceException_1.MWAAServerlessServiceException {
1
+ const { MWAAServerlessServiceException: __BaseException } = require("./MWAAServerlessServiceException");
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 MWAAServerlessServiceException_1.MWAAServerl
15
12
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
13
  this.Message = opts.Message;
17
14
  }
18
- }
19
- exports.AccessDeniedException = AccessDeniedException;
20
- class InternalServerException extends MWAAServerlessServiceException_1.MWAAServerlessServiceException {
15
+ };
16
+ exports.InternalServerException = class InternalServerException extends __BaseException {
21
17
  name = "InternalServerException";
22
18
  $fault = "server";
23
19
  $retryable = {};
@@ -33,9 +29,8 @@ class InternalServerException extends MWAAServerlessServiceException_1.MWAAServe
33
29
  this.Message = opts.Message;
34
30
  this.RetryAfterSeconds = opts.RetryAfterSeconds;
35
31
  }
36
- }
37
- exports.InternalServerException = InternalServerException;
38
- class OperationTimeoutException extends MWAAServerlessServiceException_1.MWAAServerlessServiceException {
32
+ };
33
+ exports.OperationTimeoutException = class OperationTimeoutException extends __BaseException {
39
34
  name = "OperationTimeoutException";
40
35
  $fault = "server";
41
36
  Message;
@@ -48,9 +43,8 @@ class OperationTimeoutException extends MWAAServerlessServiceException_1.MWAASer
48
43
  Object.setPrototypeOf(this, OperationTimeoutException.prototype);
49
44
  this.Message = opts.Message;
50
45
  }
51
- }
52
- exports.OperationTimeoutException = OperationTimeoutException;
53
- class ResourceNotFoundException extends MWAAServerlessServiceException_1.MWAAServerlessServiceException {
46
+ };
47
+ exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
54
48
  name = "ResourceNotFoundException";
55
49
  $fault = "client";
56
50
  Message;
@@ -67,9 +61,8 @@ class ResourceNotFoundException extends MWAAServerlessServiceException_1.MWAASer
67
61
  this.ResourceId = opts.ResourceId;
68
62
  this.ResourceType = opts.ResourceType;
69
63
  }
70
- }
71
- exports.ResourceNotFoundException = ResourceNotFoundException;
72
- class ThrottlingException extends MWAAServerlessServiceException_1.MWAAServerlessServiceException {
64
+ };
65
+ exports.ThrottlingException = class ThrottlingException extends __BaseException {
73
66
  name = "ThrottlingException";
74
67
  $fault = "client";
75
68
  $retryable = {
@@ -91,9 +84,8 @@ class ThrottlingException extends MWAAServerlessServiceException_1.MWAAServerles
91
84
  this.QuotaCode = opts.QuotaCode;
92
85
  this.RetryAfterSeconds = opts.RetryAfterSeconds;
93
86
  }
94
- }
95
- exports.ThrottlingException = ThrottlingException;
96
- class ValidationException extends MWAAServerlessServiceException_1.MWAAServerlessServiceException {
87
+ };
88
+ exports.ValidationException = class ValidationException extends __BaseException {
97
89
  name = "ValidationException";
98
90
  $fault = "client";
99
91
  Message;
@@ -110,9 +102,8 @@ class ValidationException extends MWAAServerlessServiceException_1.MWAAServerles
110
102
  this.Reason = opts.Reason;
111
103
  this.FieldList = opts.FieldList;
112
104
  }
113
- }
114
- exports.ValidationException = ValidationException;
115
- class ConflictException extends MWAAServerlessServiceException_1.MWAAServerlessServiceException {
105
+ };
106
+ exports.ConflictException = class ConflictException extends __BaseException {
116
107
  name = "ConflictException";
117
108
  $fault = "client";
118
109
  Message;
@@ -129,9 +120,8 @@ class ConflictException extends MWAAServerlessServiceException_1.MWAAServerlessS
129
120
  this.ResourceId = opts.ResourceId;
130
121
  this.ResourceType = opts.ResourceType;
131
122
  }
132
- }
133
- exports.ConflictException = ConflictException;
134
- class ServiceQuotaExceededException extends MWAAServerlessServiceException_1.MWAAServerlessServiceException {
123
+ };
124
+ exports.ServiceQuotaExceededException = class ServiceQuotaExceededException extends __BaseException {
135
125
  name = "ServiceQuotaExceededException";
136
126
  $fault = "client";
137
127
  Message;
@@ -152,5 +142,4 @@ class ServiceQuotaExceededException extends MWAAServerlessServiceException_1.MWA
152
142
  this.ServiceCode = opts.ServiceCode;
153
143
  this.QuotaCode = opts.QuotaCode;
154
144
  }
155
- }
156
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
145
+ };