@aws-sdk/client-support-app 3.180.0 → 3.183.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,26 @@
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.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-support-app
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-support-app
@@ -229,7 +229,7 @@ exports.deserializeAws_restJson1CreateSlackChannelConfigurationCommand = deseria
229
229
  const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = async (output, context) => {
230
230
  const parsedOutput = {
231
231
  ...output,
232
- body: await parseBody(output.body, context),
232
+ body: await parseErrorBody(output.body, context),
233
233
  };
234
234
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
235
235
  switch (errorCode) {
@@ -272,7 +272,7 @@ exports.deserializeAws_restJson1DeleteAccountAliasCommand = deserializeAws_restJ
272
272
  const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, context) => {
273
273
  const parsedOutput = {
274
274
  ...output,
275
- body: await parseBody(output.body, context),
275
+ body: await parseErrorBody(output.body, context),
276
276
  };
277
277
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
278
278
  switch (errorCode) {
@@ -309,7 +309,7 @@ exports.deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = deseria
309
309
  const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = async (output, context) => {
310
310
  const parsedOutput = {
311
311
  ...output,
312
- body: await parseBody(output.body, context),
312
+ body: await parseErrorBody(output.body, context),
313
313
  };
314
314
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
315
315
  switch (errorCode) {
@@ -352,7 +352,7 @@ exports.deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = deser
352
352
  const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = async (output, context) => {
353
353
  const parsedOutput = {
354
354
  ...output,
355
- body: await parseBody(output.body, context),
355
+ body: await parseErrorBody(output.body, context),
356
356
  };
357
357
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
358
358
  switch (errorCode) {
@@ -398,7 +398,7 @@ exports.deserializeAws_restJson1GetAccountAliasCommand = deserializeAws_restJson
398
398
  const deserializeAws_restJson1GetAccountAliasCommandError = async (output, context) => {
399
399
  const parsedOutput = {
400
400
  ...output,
401
- body: await parseBody(output.body, context),
401
+ body: await parseErrorBody(output.body, context),
402
402
  };
403
403
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
404
404
  switch (errorCode) {
@@ -435,7 +435,7 @@ exports.deserializeAws_restJson1ListSlackChannelConfigurationsCommand = deserial
435
435
  const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async (output, context) => {
436
436
  const parsedOutput = {
437
437
  ...output,
438
- body: await parseBody(output.body, context),
438
+ body: await parseErrorBody(output.body, context),
439
439
  };
440
440
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
441
441
  switch (errorCode) {
@@ -475,7 +475,7 @@ exports.deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = deseri
475
475
  const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = async (output, context) => {
476
476
  const parsedOutput = {
477
477
  ...output,
478
- body: await parseBody(output.body, context),
478
+ body: await parseErrorBody(output.body, context),
479
479
  };
480
480
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
481
481
  switch (errorCode) {
@@ -509,7 +509,7 @@ exports.deserializeAws_restJson1PutAccountAliasCommand = deserializeAws_restJson
509
509
  const deserializeAws_restJson1PutAccountAliasCommandError = async (output, context) => {
510
510
  const parsedOutput = {
511
511
  ...output,
512
- body: await parseBody(output.body, context),
512
+ body: await parseErrorBody(output.body, context),
513
513
  };
514
514
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
515
515
  switch (errorCode) {
@@ -570,7 +570,7 @@ exports.deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = deseria
570
570
  const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = async (output, context) => {
571
571
  const parsedOutput = {
572
572
  ...output,
573
- body: await parseBody(output.body, context),
573
+ body: await parseErrorBody(output.body, context),
574
574
  };
575
575
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
576
576
  switch (errorCode) {
@@ -738,6 +738,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
738
738
  }
739
739
  return {};
740
740
  });
741
+ const parseErrorBody = async (errorBody, context) => {
742
+ var _a;
743
+ const value = await parseBody(errorBody, context);
744
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
745
+ return value;
746
+ };
741
747
  const loadRestJsonErrorCode = (output, data) => {
742
748
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
743
749
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CreateSlackChannelConfigurationCommand, } from "./commands/CreateSlackChannelConfigurationCommand";
3
2
  import { DeleteAccountAliasCommand, } from "./commands/DeleteAccountAliasCommand";
4
3
  import { DeleteSlackChannelConfigurationCommand, } from "./commands/DeleteSlackChannelConfigurationCommand";
@@ -9,137 +8,131 @@ import { ListSlackWorkspaceConfigurationsCommand, } from "./commands/ListSlackWo
9
8
  import { PutAccountAliasCommand, } from "./commands/PutAccountAliasCommand";
10
9
  import { UpdateSlackChannelConfigurationCommand, } from "./commands/UpdateSlackChannelConfigurationCommand";
11
10
  import { SupportAppClient } from "./SupportAppClient";
12
- var SupportApp = (function (_super) {
13
- __extends(SupportApp, _super);
14
- function SupportApp() {
15
- return _super !== null && _super.apply(this, arguments) || this;
16
- }
17
- SupportApp.prototype.createSlackChannelConfiguration = function (args, optionsOrCb, cb) {
18
- var command = new CreateSlackChannelConfigurationCommand(args);
11
+ export class SupportApp extends SupportAppClient {
12
+ createSlackChannelConfiguration(args, optionsOrCb, cb) {
13
+ const command = new CreateSlackChannelConfigurationCommand(args);
19
14
  if (typeof optionsOrCb === "function") {
20
15
  this.send(command, optionsOrCb);
21
16
  }
22
17
  else if (typeof cb === "function") {
23
18
  if (typeof optionsOrCb !== "object")
24
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
19
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
25
20
  this.send(command, optionsOrCb || {}, cb);
26
21
  }
27
22
  else {
28
23
  return this.send(command, optionsOrCb);
29
24
  }
30
- };
31
- SupportApp.prototype.deleteAccountAlias = function (args, optionsOrCb, cb) {
32
- var command = new DeleteAccountAliasCommand(args);
25
+ }
26
+ deleteAccountAlias(args, optionsOrCb, cb) {
27
+ const command = new DeleteAccountAliasCommand(args);
33
28
  if (typeof optionsOrCb === "function") {
34
29
  this.send(command, optionsOrCb);
35
30
  }
36
31
  else if (typeof cb === "function") {
37
32
  if (typeof optionsOrCb !== "object")
38
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
33
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
39
34
  this.send(command, optionsOrCb || {}, cb);
40
35
  }
41
36
  else {
42
37
  return this.send(command, optionsOrCb);
43
38
  }
44
- };
45
- SupportApp.prototype.deleteSlackChannelConfiguration = function (args, optionsOrCb, cb) {
46
- var command = new DeleteSlackChannelConfigurationCommand(args);
39
+ }
40
+ deleteSlackChannelConfiguration(args, optionsOrCb, cb) {
41
+ const command = new DeleteSlackChannelConfigurationCommand(args);
47
42
  if (typeof optionsOrCb === "function") {
48
43
  this.send(command, optionsOrCb);
49
44
  }
50
45
  else if (typeof cb === "function") {
51
46
  if (typeof optionsOrCb !== "object")
52
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
47
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
53
48
  this.send(command, optionsOrCb || {}, cb);
54
49
  }
55
50
  else {
56
51
  return this.send(command, optionsOrCb);
57
52
  }
58
- };
59
- SupportApp.prototype.deleteSlackWorkspaceConfiguration = function (args, optionsOrCb, cb) {
60
- var command = new DeleteSlackWorkspaceConfigurationCommand(args);
53
+ }
54
+ deleteSlackWorkspaceConfiguration(args, optionsOrCb, cb) {
55
+ const command = new DeleteSlackWorkspaceConfigurationCommand(args);
61
56
  if (typeof optionsOrCb === "function") {
62
57
  this.send(command, optionsOrCb);
63
58
  }
64
59
  else if (typeof cb === "function") {
65
60
  if (typeof optionsOrCb !== "object")
66
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
61
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
67
62
  this.send(command, optionsOrCb || {}, cb);
68
63
  }
69
64
  else {
70
65
  return this.send(command, optionsOrCb);
71
66
  }
72
- };
73
- SupportApp.prototype.getAccountAlias = function (args, optionsOrCb, cb) {
74
- var command = new GetAccountAliasCommand(args);
67
+ }
68
+ getAccountAlias(args, optionsOrCb, cb) {
69
+ const command = new GetAccountAliasCommand(args);
75
70
  if (typeof optionsOrCb === "function") {
76
71
  this.send(command, optionsOrCb);
77
72
  }
78
73
  else if (typeof cb === "function") {
79
74
  if (typeof optionsOrCb !== "object")
80
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
75
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
81
76
  this.send(command, optionsOrCb || {}, cb);
82
77
  }
83
78
  else {
84
79
  return this.send(command, optionsOrCb);
85
80
  }
86
- };
87
- SupportApp.prototype.listSlackChannelConfigurations = function (args, optionsOrCb, cb) {
88
- var command = new ListSlackChannelConfigurationsCommand(args);
81
+ }
82
+ listSlackChannelConfigurations(args, optionsOrCb, cb) {
83
+ const command = new ListSlackChannelConfigurationsCommand(args);
89
84
  if (typeof optionsOrCb === "function") {
90
85
  this.send(command, optionsOrCb);
91
86
  }
92
87
  else if (typeof cb === "function") {
93
88
  if (typeof optionsOrCb !== "object")
94
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
89
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
90
  this.send(command, optionsOrCb || {}, cb);
96
91
  }
97
92
  else {
98
93
  return this.send(command, optionsOrCb);
99
94
  }
100
- };
101
- SupportApp.prototype.listSlackWorkspaceConfigurations = function (args, optionsOrCb, cb) {
102
- var command = new ListSlackWorkspaceConfigurationsCommand(args);
95
+ }
96
+ listSlackWorkspaceConfigurations(args, optionsOrCb, cb) {
97
+ const command = new ListSlackWorkspaceConfigurationsCommand(args);
103
98
  if (typeof optionsOrCb === "function") {
104
99
  this.send(command, optionsOrCb);
105
100
  }
106
101
  else if (typeof cb === "function") {
107
102
  if (typeof optionsOrCb !== "object")
108
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
103
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
104
  this.send(command, optionsOrCb || {}, cb);
110
105
  }
111
106
  else {
112
107
  return this.send(command, optionsOrCb);
113
108
  }
114
- };
115
- SupportApp.prototype.putAccountAlias = function (args, optionsOrCb, cb) {
116
- var command = new PutAccountAliasCommand(args);
109
+ }
110
+ putAccountAlias(args, optionsOrCb, cb) {
111
+ const command = new PutAccountAliasCommand(args);
117
112
  if (typeof optionsOrCb === "function") {
118
113
  this.send(command, optionsOrCb);
119
114
  }
120
115
  else if (typeof cb === "function") {
121
116
  if (typeof optionsOrCb !== "object")
122
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
117
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
118
  this.send(command, optionsOrCb || {}, cb);
124
119
  }
125
120
  else {
126
121
  return this.send(command, optionsOrCb);
127
122
  }
128
- };
129
- SupportApp.prototype.updateSlackChannelConfiguration = function (args, optionsOrCb, cb) {
130
- var command = new UpdateSlackChannelConfigurationCommand(args);
123
+ }
124
+ updateSlackChannelConfiguration(args, optionsOrCb, cb) {
125
+ const command = new UpdateSlackChannelConfigurationCommand(args);
131
126
  if (typeof optionsOrCb === "function") {
132
127
  this.send(command, optionsOrCb);
133
128
  }
134
129
  else if (typeof cb === "function") {
135
130
  if (typeof optionsOrCb !== "object")
136
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
131
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
132
  this.send(command, optionsOrCb || {}, cb);
138
133
  }
139
134
  else {
140
135
  return this.send(command, optionsOrCb);
141
136
  }
142
- };
143
- return SupportApp;
144
- }(SupportAppClient));
145
- export { SupportApp };
137
+ }
138
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var SupportAppClient = (function (_super) {
13
- __extends(SupportAppClient, _super);
14
- function SupportAppClient(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;
11
+ export class SupportAppClient 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));
33
29
  }
34
- SupportAppClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return SupportAppClient;
38
- }(__Client));
39
- export { SupportAppClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { CreateSlackChannelConfigurationRequestFilterSensitiveLog, CreateSlackChannelConfigurationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1CreateSlackChannelConfigurationCommand, serializeAws_restJson1CreateSlackChannelConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var CreateSlackChannelConfigurationCommand = (function (_super) {
7
- __extends(CreateSlackChannelConfigurationCommand, _super);
8
- function CreateSlackChannelConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateSlackChannelConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateSlackChannelConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SupportAppClient";
18
- var commandName = "CreateSlackChannelConfigurationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SupportAppClient";
15
+ const commandName = "CreateSlackChannelConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateSlackChannelConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateSlackChannelConfigurationResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateSlackChannelConfigurationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1CreateSlackChannelConfigurationCommand(input, context);
33
- };
34
- CreateSlackChannelConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1CreateSlackChannelConfigurationCommand(output, context);
36
- };
37
- return CreateSlackChannelConfigurationCommand;
38
- }($Command));
39
- export { CreateSlackChannelConfigurationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteAccountAliasRequestFilterSensitiveLog, DeleteAccountAliasResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteAccountAliasCommand, serializeAws_restJson1DeleteAccountAliasCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteAccountAliasCommand = (function (_super) {
7
- __extends(DeleteAccountAliasCommand, _super);
8
- function DeleteAccountAliasCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteAccountAliasCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteAccountAliasCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SupportAppClient";
18
- var commandName = "DeleteAccountAliasCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SupportAppClient";
15
+ const commandName = "DeleteAccountAliasCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteAccountAliasRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteAccountAliasResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteAccountAliasCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteAccountAliasCommand(input, context);
33
- };
34
- DeleteAccountAliasCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteAccountAliasCommand(output, context);
36
- };
37
- return DeleteAccountAliasCommand;
38
- }($Command));
39
- export { DeleteAccountAliasCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteSlackChannelConfigurationRequestFilterSensitiveLog, DeleteSlackChannelConfigurationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteSlackChannelConfigurationCommand, serializeAws_restJson1DeleteSlackChannelConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteSlackChannelConfigurationCommand = (function (_super) {
7
- __extends(DeleteSlackChannelConfigurationCommand, _super);
8
- function DeleteSlackChannelConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSlackChannelConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSlackChannelConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SupportAppClient";
18
- var commandName = "DeleteSlackChannelConfigurationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SupportAppClient";
15
+ const commandName = "DeleteSlackChannelConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSlackChannelConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSlackChannelConfigurationResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSlackChannelConfigurationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteSlackChannelConfigurationCommand(input, context);
33
- };
34
- DeleteSlackChannelConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteSlackChannelConfigurationCommand(output, context);
36
- };
37
- return DeleteSlackChannelConfigurationCommand;
38
- }($Command));
39
- export { DeleteSlackChannelConfigurationCommand };
31
+ }
32
+ }
@@ -1,39 +1,32 @@
1
- import { __extends } from "tslib";
2
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
2
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
3
  import { DeleteSlackWorkspaceConfigurationRequestFilterSensitiveLog, DeleteSlackWorkspaceConfigurationResultFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand, serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand, } from "../protocols/Aws_restJson1";
6
- var DeleteSlackWorkspaceConfigurationCommand = (function (_super) {
7
- __extends(DeleteSlackWorkspaceConfigurationCommand, _super);
8
- function DeleteSlackWorkspaceConfigurationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeleteSlackWorkspaceConfigurationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeleteSlackWorkspaceConfigurationCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
10
+ resolveMiddleware(clientStack, configuration, options) {
14
11
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
- var stack = clientStack.concat(this.middlewareStack);
16
- var logger = configuration.logger;
17
- var clientName = "SupportAppClient";
18
- var commandName = "DeleteSlackWorkspaceConfigurationCommand";
19
- var handlerExecutionContext = {
20
- logger: logger,
21
- clientName: clientName,
22
- commandName: commandName,
12
+ const stack = clientStack.concat(this.middlewareStack);
13
+ const { logger } = configuration;
14
+ const clientName = "SupportAppClient";
15
+ const commandName = "DeleteSlackWorkspaceConfigurationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeleteSlackWorkspaceConfigurationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeleteSlackWorkspaceConfigurationResultFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeleteSlackWorkspaceConfigurationCommand.prototype.serialize = function (input, context) {
23
+ const { requestHandler } = configuration;
24
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
+ }
26
+ serialize(input, context) {
32
27
  return serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand(input, context);
33
- };
34
- DeleteSlackWorkspaceConfigurationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand(output, context);
36
- };
37
- return DeleteSlackWorkspaceConfigurationCommand;
38
- }($Command));
39
- export { DeleteSlackWorkspaceConfigurationCommand };
31
+ }
32
+ }