@aws-sdk/client-mwaa 3.183.0 → 3.186.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/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-mwaa
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-mwaa
@@ -1081,10 +1081,10 @@ const deserializeAws_restJson1UpdateError = (output, context) => {
1081
1081
  };
1082
1082
  };
1083
1083
  const deserializeMetadata = (output) => {
1084
- var _a;
1084
+ var _a, _b;
1085
1085
  return ({
1086
1086
  httpStatusCode: output.statusCode,
1087
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1087
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
1088
1088
  extendedRequestId: output.headers["x-amz-id-2"],
1089
1089
  cfId: output.headers["x-amz-cf-id"],
1090
1090
  });
package/dist-es/MWAA.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { CreateCliTokenCommand, } from "./commands/CreateCliTokenCommand";
2
3
  import { CreateEnvironmentCommand, } from "./commands/CreateEnvironmentCommand";
3
4
  import { CreateWebLoginTokenCommand, } from "./commands/CreateWebLoginTokenCommand";
@@ -10,159 +11,165 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
10
11
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
11
12
  import { UpdateEnvironmentCommand, } from "./commands/UpdateEnvironmentCommand";
12
13
  import { MWAAClient } from "./MWAAClient";
13
- export class MWAA extends MWAAClient {
14
- createCliToken(args, optionsOrCb, cb) {
15
- const command = new CreateCliTokenCommand(args);
14
+ var MWAA = (function (_super) {
15
+ __extends(MWAA, _super);
16
+ function MWAA() {
17
+ return _super !== null && _super.apply(this, arguments) || this;
18
+ }
19
+ MWAA.prototype.createCliToken = function (args, optionsOrCb, cb) {
20
+ var command = new CreateCliTokenCommand(args);
16
21
  if (typeof optionsOrCb === "function") {
17
22
  this.send(command, optionsOrCb);
18
23
  }
19
24
  else if (typeof cb === "function") {
20
25
  if (typeof optionsOrCb !== "object")
21
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
22
27
  this.send(command, optionsOrCb || {}, cb);
23
28
  }
24
29
  else {
25
30
  return this.send(command, optionsOrCb);
26
31
  }
27
- }
28
- createEnvironment(args, optionsOrCb, cb) {
29
- const command = new CreateEnvironmentCommand(args);
32
+ };
33
+ MWAA.prototype.createEnvironment = function (args, optionsOrCb, cb) {
34
+ var command = new CreateEnvironmentCommand(args);
30
35
  if (typeof optionsOrCb === "function") {
31
36
  this.send(command, optionsOrCb);
32
37
  }
33
38
  else if (typeof cb === "function") {
34
39
  if (typeof optionsOrCb !== "object")
35
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
36
41
  this.send(command, optionsOrCb || {}, cb);
37
42
  }
38
43
  else {
39
44
  return this.send(command, optionsOrCb);
40
45
  }
41
- }
42
- createWebLoginToken(args, optionsOrCb, cb) {
43
- const command = new CreateWebLoginTokenCommand(args);
46
+ };
47
+ MWAA.prototype.createWebLoginToken = function (args, optionsOrCb, cb) {
48
+ var command = new CreateWebLoginTokenCommand(args);
44
49
  if (typeof optionsOrCb === "function") {
45
50
  this.send(command, optionsOrCb);
46
51
  }
47
52
  else if (typeof cb === "function") {
48
53
  if (typeof optionsOrCb !== "object")
49
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
50
55
  this.send(command, optionsOrCb || {}, cb);
51
56
  }
52
57
  else {
53
58
  return this.send(command, optionsOrCb);
54
59
  }
55
- }
56
- deleteEnvironment(args, optionsOrCb, cb) {
57
- const command = new DeleteEnvironmentCommand(args);
60
+ };
61
+ MWAA.prototype.deleteEnvironment = function (args, optionsOrCb, cb) {
62
+ var command = new DeleteEnvironmentCommand(args);
58
63
  if (typeof optionsOrCb === "function") {
59
64
  this.send(command, optionsOrCb);
60
65
  }
61
66
  else if (typeof cb === "function") {
62
67
  if (typeof optionsOrCb !== "object")
63
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
64
69
  this.send(command, optionsOrCb || {}, cb);
65
70
  }
66
71
  else {
67
72
  return this.send(command, optionsOrCb);
68
73
  }
69
- }
70
- getEnvironment(args, optionsOrCb, cb) {
71
- const command = new GetEnvironmentCommand(args);
74
+ };
75
+ MWAA.prototype.getEnvironment = function (args, optionsOrCb, cb) {
76
+ var command = new GetEnvironmentCommand(args);
72
77
  if (typeof optionsOrCb === "function") {
73
78
  this.send(command, optionsOrCb);
74
79
  }
75
80
  else if (typeof cb === "function") {
76
81
  if (typeof optionsOrCb !== "object")
77
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
78
83
  this.send(command, optionsOrCb || {}, cb);
79
84
  }
80
85
  else {
81
86
  return this.send(command, optionsOrCb);
82
87
  }
83
- }
84
- listEnvironments(args, optionsOrCb, cb) {
85
- const command = new ListEnvironmentsCommand(args);
88
+ };
89
+ MWAA.prototype.listEnvironments = function (args, optionsOrCb, cb) {
90
+ var command = new ListEnvironmentsCommand(args);
86
91
  if (typeof optionsOrCb === "function") {
87
92
  this.send(command, optionsOrCb);
88
93
  }
89
94
  else if (typeof cb === "function") {
90
95
  if (typeof optionsOrCb !== "object")
91
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
92
97
  this.send(command, optionsOrCb || {}, cb);
93
98
  }
94
99
  else {
95
100
  return this.send(command, optionsOrCb);
96
101
  }
97
- }
98
- listTagsForResource(args, optionsOrCb, cb) {
99
- const command = new ListTagsForResourceCommand(args);
102
+ };
103
+ MWAA.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
104
+ var command = new ListTagsForResourceCommand(args);
100
105
  if (typeof optionsOrCb === "function") {
101
106
  this.send(command, optionsOrCb);
102
107
  }
103
108
  else if (typeof cb === "function") {
104
109
  if (typeof optionsOrCb !== "object")
105
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
106
111
  this.send(command, optionsOrCb || {}, cb);
107
112
  }
108
113
  else {
109
114
  return this.send(command, optionsOrCb);
110
115
  }
111
- }
112
- publishMetrics(args, optionsOrCb, cb) {
113
- const command = new PublishMetricsCommand(args);
116
+ };
117
+ MWAA.prototype.publishMetrics = function (args, optionsOrCb, cb) {
118
+ var command = new PublishMetricsCommand(args);
114
119
  if (typeof optionsOrCb === "function") {
115
120
  this.send(command, optionsOrCb);
116
121
  }
117
122
  else if (typeof cb === "function") {
118
123
  if (typeof optionsOrCb !== "object")
119
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
120
125
  this.send(command, optionsOrCb || {}, cb);
121
126
  }
122
127
  else {
123
128
  return this.send(command, optionsOrCb);
124
129
  }
125
- }
126
- tagResource(args, optionsOrCb, cb) {
127
- const command = new TagResourceCommand(args);
130
+ };
131
+ MWAA.prototype.tagResource = function (args, optionsOrCb, cb) {
132
+ var command = new TagResourceCommand(args);
128
133
  if (typeof optionsOrCb === "function") {
129
134
  this.send(command, optionsOrCb);
130
135
  }
131
136
  else if (typeof cb === "function") {
132
137
  if (typeof optionsOrCb !== "object")
133
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
134
139
  this.send(command, optionsOrCb || {}, cb);
135
140
  }
136
141
  else {
137
142
  return this.send(command, optionsOrCb);
138
143
  }
139
- }
140
- untagResource(args, optionsOrCb, cb) {
141
- const command = new UntagResourceCommand(args);
144
+ };
145
+ MWAA.prototype.untagResource = function (args, optionsOrCb, cb) {
146
+ var command = new UntagResourceCommand(args);
142
147
  if (typeof optionsOrCb === "function") {
143
148
  this.send(command, optionsOrCb);
144
149
  }
145
150
  else if (typeof cb === "function") {
146
151
  if (typeof optionsOrCb !== "object")
147
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
148
153
  this.send(command, optionsOrCb || {}, cb);
149
154
  }
150
155
  else {
151
156
  return this.send(command, optionsOrCb);
152
157
  }
153
- }
154
- updateEnvironment(args, optionsOrCb, cb) {
155
- const command = new UpdateEnvironmentCommand(args);
158
+ };
159
+ MWAA.prototype.updateEnvironment = function (args, optionsOrCb, cb) {
160
+ var command = new UpdateEnvironmentCommand(args);
156
161
  if (typeof optionsOrCb === "function") {
157
162
  this.send(command, optionsOrCb);
158
163
  }
159
164
  else if (typeof cb === "function") {
160
165
  if (typeof optionsOrCb !== "object")
161
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
162
167
  this.send(command, optionsOrCb || {}, cb);
163
168
  }
164
169
  else {
165
170
  return this.send(command, optionsOrCb);
166
171
  }
167
- }
168
- }
172
+ };
173
+ return MWAA;
174
+ }(MWAAClient));
175
+ export { MWAA };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class MWAAClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var MWAAClient = (function (_super) {
13
+ __extends(MWAAClient, _super);
14
+ function MWAAClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ MWAAClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return MWAAClient;
38
+ }(__Client));
39
+ export { MWAAClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateCliTokenRequestFilterSensitiveLog, CreateCliTokenResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateCliTokenCommand, serializeAws_restJson1CreateCliTokenCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateCliTokenCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateCliTokenCommand = (function (_super) {
7
+ __extends(CreateCliTokenCommand, _super);
8
+ function CreateCliTokenCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateCliTokenCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MWAAClient";
15
- const commandName = "CreateCliTokenCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MWAAClient";
18
+ var commandName = "CreateCliTokenCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateCliTokenRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateCliTokenResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateCliTokenCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateCliTokenCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateCliTokenCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateCliTokenCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateCliTokenCommand;
38
+ }($Command));
39
+ export { CreateCliTokenCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateEnvironmentInputFilterSensitiveLog, CreateEnvironmentOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateEnvironmentCommand, serializeAws_restJson1CreateEnvironmentCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateEnvironmentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateEnvironmentCommand = (function (_super) {
7
+ __extends(CreateEnvironmentCommand, _super);
8
+ function CreateEnvironmentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateEnvironmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MWAAClient";
15
- const commandName = "CreateEnvironmentCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MWAAClient";
18
+ var commandName = "CreateEnvironmentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateEnvironmentInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateEnvironmentOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateEnvironmentCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateEnvironmentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateEnvironmentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateEnvironmentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateEnvironmentCommand;
38
+ }($Command));
39
+ export { CreateEnvironmentCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateWebLoginTokenRequestFilterSensitiveLog, CreateWebLoginTokenResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateWebLoginTokenCommand, serializeAws_restJson1CreateWebLoginTokenCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateWebLoginTokenCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateWebLoginTokenCommand = (function (_super) {
7
+ __extends(CreateWebLoginTokenCommand, _super);
8
+ function CreateWebLoginTokenCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateWebLoginTokenCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MWAAClient";
15
- const commandName = "CreateWebLoginTokenCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MWAAClient";
18
+ var commandName = "CreateWebLoginTokenCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateWebLoginTokenRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateWebLoginTokenResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateWebLoginTokenCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateWebLoginTokenCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateWebLoginTokenCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateWebLoginTokenCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateWebLoginTokenCommand;
38
+ }($Command));
39
+ export { CreateWebLoginTokenCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteEnvironmentInputFilterSensitiveLog, DeleteEnvironmentOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1DeleteEnvironmentCommand, serializeAws_restJson1DeleteEnvironmentCommand, } from "../protocols/Aws_restJson1";
5
- export class DeleteEnvironmentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteEnvironmentCommand = (function (_super) {
7
+ __extends(DeleteEnvironmentCommand, _super);
8
+ function DeleteEnvironmentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteEnvironmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MWAAClient";
15
- const commandName = "DeleteEnvironmentCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MWAAClient";
18
+ var commandName = "DeleteEnvironmentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteEnvironmentInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteEnvironmentOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteEnvironmentCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1DeleteEnvironmentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteEnvironmentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1DeleteEnvironmentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteEnvironmentCommand;
38
+ }($Command));
39
+ export { DeleteEnvironmentCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetEnvironmentInputFilterSensitiveLog, GetEnvironmentOutputFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1GetEnvironmentCommand, serializeAws_restJson1GetEnvironmentCommand, } from "../protocols/Aws_restJson1";
5
- export class GetEnvironmentCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetEnvironmentCommand = (function (_super) {
7
+ __extends(GetEnvironmentCommand, _super);
8
+ function GetEnvironmentCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetEnvironmentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "MWAAClient";
15
- const commandName = "GetEnvironmentCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "MWAAClient";
18
+ var commandName = "GetEnvironmentCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetEnvironmentInputFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetEnvironmentOutputFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetEnvironmentCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1GetEnvironmentCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetEnvironmentCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1GetEnvironmentCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetEnvironmentCommand;
38
+ }($Command));
39
+ export { GetEnvironmentCommand };