@aws-sdk/client-support 3.185.0 → 3.188.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.
Files changed (28) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/Support.js +58 -65
  3. package/dist-es/SupportClient.js +22 -28
  4. package/dist-es/commands/AddAttachmentsToSetCommand.js +21 -28
  5. package/dist-es/commands/AddCommunicationToCaseCommand.js +21 -28
  6. package/dist-es/commands/CreateCaseCommand.js +21 -28
  7. package/dist-es/commands/DescribeAttachmentCommand.js +21 -28
  8. package/dist-es/commands/DescribeCasesCommand.js +21 -28
  9. package/dist-es/commands/DescribeCommunicationsCommand.js +21 -28
  10. package/dist-es/commands/DescribeServicesCommand.js +21 -28
  11. package/dist-es/commands/DescribeSeverityLevelsCommand.js +21 -28
  12. package/dist-es/commands/DescribeTrustedAdvisorCheckRefreshStatusesCommand.js +21 -28
  13. package/dist-es/commands/DescribeTrustedAdvisorCheckResultCommand.js +21 -28
  14. package/dist-es/commands/DescribeTrustedAdvisorCheckSummariesCommand.js +21 -28
  15. package/dist-es/commands/DescribeTrustedAdvisorChecksCommand.js +21 -28
  16. package/dist-es/commands/RefreshTrustedAdvisorCheckCommand.js +21 -28
  17. package/dist-es/commands/ResolveCaseCommand.js +21 -28
  18. package/dist-es/endpoints.js +8 -8
  19. package/dist-es/models/SupportServiceException.js +5 -10
  20. package/dist-es/models/models_0.js +231 -144
  21. package/dist-es/pagination/DescribeCasesPaginator.js +25 -68
  22. package/dist-es/pagination/DescribeCommunicationsPaginator.js +25 -68
  23. package/dist-es/protocols/Aws_json1_1.js +950 -1212
  24. package/dist-es/runtimeConfig.browser.js +26 -12
  25. package/dist-es/runtimeConfig.js +30 -12
  26. package/dist-es/runtimeConfig.native.js +8 -5
  27. package/dist-es/runtimeConfig.shared.js +8 -11
  28. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-support
9
+
10
+
11
+
12
+
13
+
14
+ # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-support
17
+
18
+
19
+
20
+
21
+
6
22
  # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
23
 
8
24
 
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AddAttachmentsToSetCommand, } from "./commands/AddAttachmentsToSetCommand";
3
2
  import { AddCommunicationToCaseCommand, } from "./commands/AddCommunicationToCaseCommand";
4
3
  import { CreateCaseCommand } from "./commands/CreateCaseCommand";
@@ -14,207 +13,201 @@ import { DescribeTrustedAdvisorCheckSummariesCommand, } from "./commands/Describ
14
13
  import { RefreshTrustedAdvisorCheckCommand, } from "./commands/RefreshTrustedAdvisorCheckCommand";
15
14
  import { ResolveCaseCommand } from "./commands/ResolveCaseCommand";
16
15
  import { SupportClient } from "./SupportClient";
17
- var Support = (function (_super) {
18
- __extends(Support, _super);
19
- function Support() {
20
- return _super !== null && _super.apply(this, arguments) || this;
21
- }
22
- Support.prototype.addAttachmentsToSet = function (args, optionsOrCb, cb) {
23
- var command = new AddAttachmentsToSetCommand(args);
16
+ export class Support extends SupportClient {
17
+ addAttachmentsToSet(args, optionsOrCb, cb) {
18
+ const command = new AddAttachmentsToSetCommand(args);
24
19
  if (typeof optionsOrCb === "function") {
25
20
  this.send(command, optionsOrCb);
26
21
  }
27
22
  else if (typeof cb === "function") {
28
23
  if (typeof optionsOrCb !== "object")
29
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
24
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
30
25
  this.send(command, optionsOrCb || {}, cb);
31
26
  }
32
27
  else {
33
28
  return this.send(command, optionsOrCb);
34
29
  }
35
- };
36
- Support.prototype.addCommunicationToCase = function (args, optionsOrCb, cb) {
37
- var command = new AddCommunicationToCaseCommand(args);
30
+ }
31
+ addCommunicationToCase(args, optionsOrCb, cb) {
32
+ const command = new AddCommunicationToCaseCommand(args);
38
33
  if (typeof optionsOrCb === "function") {
39
34
  this.send(command, optionsOrCb);
40
35
  }
41
36
  else if (typeof cb === "function") {
42
37
  if (typeof optionsOrCb !== "object")
43
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
38
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
44
39
  this.send(command, optionsOrCb || {}, cb);
45
40
  }
46
41
  else {
47
42
  return this.send(command, optionsOrCb);
48
43
  }
49
- };
50
- Support.prototype.createCase = function (args, optionsOrCb, cb) {
51
- var command = new CreateCaseCommand(args);
44
+ }
45
+ createCase(args, optionsOrCb, cb) {
46
+ const command = new CreateCaseCommand(args);
52
47
  if (typeof optionsOrCb === "function") {
53
48
  this.send(command, optionsOrCb);
54
49
  }
55
50
  else if (typeof cb === "function") {
56
51
  if (typeof optionsOrCb !== "object")
57
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
52
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
58
53
  this.send(command, optionsOrCb || {}, cb);
59
54
  }
60
55
  else {
61
56
  return this.send(command, optionsOrCb);
62
57
  }
63
- };
64
- Support.prototype.describeAttachment = function (args, optionsOrCb, cb) {
65
- var command = new DescribeAttachmentCommand(args);
58
+ }
59
+ describeAttachment(args, optionsOrCb, cb) {
60
+ const command = new DescribeAttachmentCommand(args);
66
61
  if (typeof optionsOrCb === "function") {
67
62
  this.send(command, optionsOrCb);
68
63
  }
69
64
  else if (typeof cb === "function") {
70
65
  if (typeof optionsOrCb !== "object")
71
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
66
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
72
67
  this.send(command, optionsOrCb || {}, cb);
73
68
  }
74
69
  else {
75
70
  return this.send(command, optionsOrCb);
76
71
  }
77
- };
78
- Support.prototype.describeCases = function (args, optionsOrCb, cb) {
79
- var command = new DescribeCasesCommand(args);
72
+ }
73
+ describeCases(args, optionsOrCb, cb) {
74
+ const command = new DescribeCasesCommand(args);
80
75
  if (typeof optionsOrCb === "function") {
81
76
  this.send(command, optionsOrCb);
82
77
  }
83
78
  else if (typeof cb === "function") {
84
79
  if (typeof optionsOrCb !== "object")
85
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
80
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
86
81
  this.send(command, optionsOrCb || {}, cb);
87
82
  }
88
83
  else {
89
84
  return this.send(command, optionsOrCb);
90
85
  }
91
- };
92
- Support.prototype.describeCommunications = function (args, optionsOrCb, cb) {
93
- var command = new DescribeCommunicationsCommand(args);
86
+ }
87
+ describeCommunications(args, optionsOrCb, cb) {
88
+ const command = new DescribeCommunicationsCommand(args);
94
89
  if (typeof optionsOrCb === "function") {
95
90
  this.send(command, optionsOrCb);
96
91
  }
97
92
  else if (typeof cb === "function") {
98
93
  if (typeof optionsOrCb !== "object")
99
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
94
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
100
95
  this.send(command, optionsOrCb || {}, cb);
101
96
  }
102
97
  else {
103
98
  return this.send(command, optionsOrCb);
104
99
  }
105
- };
106
- Support.prototype.describeServices = function (args, optionsOrCb, cb) {
107
- var command = new DescribeServicesCommand(args);
100
+ }
101
+ describeServices(args, optionsOrCb, cb) {
102
+ const command = new DescribeServicesCommand(args);
108
103
  if (typeof optionsOrCb === "function") {
109
104
  this.send(command, optionsOrCb);
110
105
  }
111
106
  else if (typeof cb === "function") {
112
107
  if (typeof optionsOrCb !== "object")
113
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
108
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
114
109
  this.send(command, optionsOrCb || {}, cb);
115
110
  }
116
111
  else {
117
112
  return this.send(command, optionsOrCb);
118
113
  }
119
- };
120
- Support.prototype.describeSeverityLevels = function (args, optionsOrCb, cb) {
121
- var command = new DescribeSeverityLevelsCommand(args);
114
+ }
115
+ describeSeverityLevels(args, optionsOrCb, cb) {
116
+ const command = new DescribeSeverityLevelsCommand(args);
122
117
  if (typeof optionsOrCb === "function") {
123
118
  this.send(command, optionsOrCb);
124
119
  }
125
120
  else if (typeof cb === "function") {
126
121
  if (typeof optionsOrCb !== "object")
127
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
122
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
128
123
  this.send(command, optionsOrCb || {}, cb);
129
124
  }
130
125
  else {
131
126
  return this.send(command, optionsOrCb);
132
127
  }
133
- };
134
- Support.prototype.describeTrustedAdvisorCheckRefreshStatuses = function (args, optionsOrCb, cb) {
135
- var command = new DescribeTrustedAdvisorCheckRefreshStatusesCommand(args);
128
+ }
129
+ describeTrustedAdvisorCheckRefreshStatuses(args, optionsOrCb, cb) {
130
+ const command = new DescribeTrustedAdvisorCheckRefreshStatusesCommand(args);
136
131
  if (typeof optionsOrCb === "function") {
137
132
  this.send(command, optionsOrCb);
138
133
  }
139
134
  else if (typeof cb === "function") {
140
135
  if (typeof optionsOrCb !== "object")
141
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
136
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
142
137
  this.send(command, optionsOrCb || {}, cb);
143
138
  }
144
139
  else {
145
140
  return this.send(command, optionsOrCb);
146
141
  }
147
- };
148
- Support.prototype.describeTrustedAdvisorCheckResult = function (args, optionsOrCb, cb) {
149
- var command = new DescribeTrustedAdvisorCheckResultCommand(args);
142
+ }
143
+ describeTrustedAdvisorCheckResult(args, optionsOrCb, cb) {
144
+ const command = new DescribeTrustedAdvisorCheckResultCommand(args);
150
145
  if (typeof optionsOrCb === "function") {
151
146
  this.send(command, optionsOrCb);
152
147
  }
153
148
  else if (typeof cb === "function") {
154
149
  if (typeof optionsOrCb !== "object")
155
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
150
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
156
151
  this.send(command, optionsOrCb || {}, cb);
157
152
  }
158
153
  else {
159
154
  return this.send(command, optionsOrCb);
160
155
  }
161
- };
162
- Support.prototype.describeTrustedAdvisorChecks = function (args, optionsOrCb, cb) {
163
- var command = new DescribeTrustedAdvisorChecksCommand(args);
156
+ }
157
+ describeTrustedAdvisorChecks(args, optionsOrCb, cb) {
158
+ const command = new DescribeTrustedAdvisorChecksCommand(args);
164
159
  if (typeof optionsOrCb === "function") {
165
160
  this.send(command, optionsOrCb);
166
161
  }
167
162
  else if (typeof cb === "function") {
168
163
  if (typeof optionsOrCb !== "object")
169
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
164
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
170
165
  this.send(command, optionsOrCb || {}, cb);
171
166
  }
172
167
  else {
173
168
  return this.send(command, optionsOrCb);
174
169
  }
175
- };
176
- Support.prototype.describeTrustedAdvisorCheckSummaries = function (args, optionsOrCb, cb) {
177
- var command = new DescribeTrustedAdvisorCheckSummariesCommand(args);
170
+ }
171
+ describeTrustedAdvisorCheckSummaries(args, optionsOrCb, cb) {
172
+ const command = new DescribeTrustedAdvisorCheckSummariesCommand(args);
178
173
  if (typeof optionsOrCb === "function") {
179
174
  this.send(command, optionsOrCb);
180
175
  }
181
176
  else if (typeof cb === "function") {
182
177
  if (typeof optionsOrCb !== "object")
183
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
178
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
184
179
  this.send(command, optionsOrCb || {}, cb);
185
180
  }
186
181
  else {
187
182
  return this.send(command, optionsOrCb);
188
183
  }
189
- };
190
- Support.prototype.refreshTrustedAdvisorCheck = function (args, optionsOrCb, cb) {
191
- var command = new RefreshTrustedAdvisorCheckCommand(args);
184
+ }
185
+ refreshTrustedAdvisorCheck(args, optionsOrCb, cb) {
186
+ const command = new RefreshTrustedAdvisorCheckCommand(args);
192
187
  if (typeof optionsOrCb === "function") {
193
188
  this.send(command, optionsOrCb);
194
189
  }
195
190
  else if (typeof cb === "function") {
196
191
  if (typeof optionsOrCb !== "object")
197
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
192
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
198
193
  this.send(command, optionsOrCb || {}, cb);
199
194
  }
200
195
  else {
201
196
  return this.send(command, optionsOrCb);
202
197
  }
203
- };
204
- Support.prototype.resolveCase = function (args, optionsOrCb, cb) {
205
- var command = new ResolveCaseCommand(args);
198
+ }
199
+ resolveCase(args, optionsOrCb, cb) {
200
+ const command = new ResolveCaseCommand(args);
206
201
  if (typeof optionsOrCb === "function") {
207
202
  this.send(command, optionsOrCb);
208
203
  }
209
204
  else if (typeof cb === "function") {
210
205
  if (typeof optionsOrCb !== "object")
211
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
206
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
212
207
  this.send(command, optionsOrCb || {}, cb);
213
208
  }
214
209
  else {
215
210
  return this.send(command, optionsOrCb);
216
211
  }
217
- };
218
- return Support;
219
- }(SupportClient));
220
- export { Support };
212
+ }
213
+ }
@@ -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 SupportClient = (function (_super) {
13
- __extends(SupportClient, _super);
14
- function SupportClient(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 SupportClient 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
- SupportClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return SupportClient;
38
- }(__Client));
39
- export { SupportClient };
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 { AddAttachmentsToSetRequestFilterSensitiveLog, AddAttachmentsToSetResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AddAttachmentsToSetCommand, serializeAws_json1_1AddAttachmentsToSetCommand, } from "../protocols/Aws_json1_1";
6
- var AddAttachmentsToSetCommand = (function (_super) {
7
- __extends(AddAttachmentsToSetCommand, _super);
8
- function AddAttachmentsToSetCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AddAttachmentsToSetCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AddAttachmentsToSetCommand.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 = "SupportClient";
18
- var commandName = "AddAttachmentsToSetCommand";
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 = "SupportClient";
15
+ const commandName = "AddAttachmentsToSetCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AddAttachmentsToSetRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AddAttachmentsToSetResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AddAttachmentsToSetCommand.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_json1_1AddAttachmentsToSetCommand(input, context);
33
- };
34
- AddAttachmentsToSetCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AddAttachmentsToSetCommand(output, context);
36
- };
37
- return AddAttachmentsToSetCommand;
38
- }($Command));
39
- export { AddAttachmentsToSetCommand };
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 { AddCommunicationToCaseRequestFilterSensitiveLog, AddCommunicationToCaseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1AddCommunicationToCaseCommand, serializeAws_json1_1AddCommunicationToCaseCommand, } from "../protocols/Aws_json1_1";
6
- var AddCommunicationToCaseCommand = (function (_super) {
7
- __extends(AddCommunicationToCaseCommand, _super);
8
- function AddCommunicationToCaseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AddCommunicationToCaseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AddCommunicationToCaseCommand.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 = "SupportClient";
18
- var commandName = "AddCommunicationToCaseCommand";
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 = "SupportClient";
15
+ const commandName = "AddCommunicationToCaseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AddCommunicationToCaseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AddCommunicationToCaseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AddCommunicationToCaseCommand.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_json1_1AddCommunicationToCaseCommand(input, context);
33
- };
34
- AddCommunicationToCaseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1AddCommunicationToCaseCommand(output, context);
36
- };
37
- return AddCommunicationToCaseCommand;
38
- }($Command));
39
- export { AddCommunicationToCaseCommand };
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 { CreateCaseRequestFilterSensitiveLog, CreateCaseResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1CreateCaseCommand, serializeAws_json1_1CreateCaseCommand, } from "../protocols/Aws_json1_1";
6
- var CreateCaseCommand = (function (_super) {
7
- __extends(CreateCaseCommand, _super);
8
- function CreateCaseCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class CreateCaseCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- CreateCaseCommand.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 = "SupportClient";
18
- var commandName = "CreateCaseCommand";
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 = "SupportClient";
15
+ const commandName = "CreateCaseCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: CreateCaseRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: CreateCaseResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- CreateCaseCommand.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_json1_1CreateCaseCommand(input, context);
33
- };
34
- CreateCaseCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1CreateCaseCommand(output, context);
36
- };
37
- return CreateCaseCommand;
38
- }($Command));
39
- export { CreateCaseCommand };
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 { DescribeAttachmentRequestFilterSensitiveLog, DescribeAttachmentResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAttachmentCommand, serializeAws_json1_1DescribeAttachmentCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAttachmentCommand = (function (_super) {
7
- __extends(DescribeAttachmentCommand, _super);
8
- function DescribeAttachmentCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAttachmentCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAttachmentCommand.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 = "SupportClient";
18
- var commandName = "DescribeAttachmentCommand";
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 = "SupportClient";
15
+ const commandName = "DescribeAttachmentCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAttachmentRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAttachmentResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAttachmentCommand.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_json1_1DescribeAttachmentCommand(input, context);
33
- };
34
- DescribeAttachmentCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAttachmentCommand(output, context);
36
- };
37
- return DescribeAttachmentCommand;
38
- }($Command));
39
- export { DescribeAttachmentCommand };
31
+ }
32
+ }