@aws-sdk/client-support 3.312.0 → 3.316.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,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Support = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AddAttachmentsToSetCommand_1 = require("./commands/AddAttachmentsToSetCommand");
5
6
  const AddCommunicationToCaseCommand_1 = require("./commands/AddCommunicationToCaseCommand");
6
7
  const CreateCaseCommand_1 = require("./commands/CreateCaseCommand");
@@ -16,202 +17,23 @@ const DescribeTrustedAdvisorCheckSummariesCommand_1 = require("./commands/Descri
16
17
  const RefreshTrustedAdvisorCheckCommand_1 = require("./commands/RefreshTrustedAdvisorCheckCommand");
17
18
  const ResolveCaseCommand_1 = require("./commands/ResolveCaseCommand");
18
19
  const SupportClient_1 = require("./SupportClient");
20
+ const commands = {
21
+ AddAttachmentsToSetCommand: AddAttachmentsToSetCommand_1.AddAttachmentsToSetCommand,
22
+ AddCommunicationToCaseCommand: AddCommunicationToCaseCommand_1.AddCommunicationToCaseCommand,
23
+ CreateCaseCommand: CreateCaseCommand_1.CreateCaseCommand,
24
+ DescribeAttachmentCommand: DescribeAttachmentCommand_1.DescribeAttachmentCommand,
25
+ DescribeCasesCommand: DescribeCasesCommand_1.DescribeCasesCommand,
26
+ DescribeCommunicationsCommand: DescribeCommunicationsCommand_1.DescribeCommunicationsCommand,
27
+ DescribeServicesCommand: DescribeServicesCommand_1.DescribeServicesCommand,
28
+ DescribeSeverityLevelsCommand: DescribeSeverityLevelsCommand_1.DescribeSeverityLevelsCommand,
29
+ DescribeTrustedAdvisorCheckRefreshStatusesCommand: DescribeTrustedAdvisorCheckRefreshStatusesCommand_1.DescribeTrustedAdvisorCheckRefreshStatusesCommand,
30
+ DescribeTrustedAdvisorCheckResultCommand: DescribeTrustedAdvisorCheckResultCommand_1.DescribeTrustedAdvisorCheckResultCommand,
31
+ DescribeTrustedAdvisorChecksCommand: DescribeTrustedAdvisorChecksCommand_1.DescribeTrustedAdvisorChecksCommand,
32
+ DescribeTrustedAdvisorCheckSummariesCommand: DescribeTrustedAdvisorCheckSummariesCommand_1.DescribeTrustedAdvisorCheckSummariesCommand,
33
+ RefreshTrustedAdvisorCheckCommand: RefreshTrustedAdvisorCheckCommand_1.RefreshTrustedAdvisorCheckCommand,
34
+ ResolveCaseCommand: ResolveCaseCommand_1.ResolveCaseCommand,
35
+ };
19
36
  class Support extends SupportClient_1.SupportClient {
20
- addAttachmentsToSet(args, optionsOrCb, cb) {
21
- const command = new AddAttachmentsToSetCommand_1.AddAttachmentsToSetCommand(args);
22
- if (typeof optionsOrCb === "function") {
23
- this.send(command, optionsOrCb);
24
- }
25
- else if (typeof cb === "function") {
26
- if (typeof optionsOrCb !== "object")
27
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
28
- this.send(command, optionsOrCb || {}, cb);
29
- }
30
- else {
31
- return this.send(command, optionsOrCb);
32
- }
33
- }
34
- addCommunicationToCase(args, optionsOrCb, cb) {
35
- const command = new AddCommunicationToCaseCommand_1.AddCommunicationToCaseCommand(args);
36
- if (typeof optionsOrCb === "function") {
37
- this.send(command, optionsOrCb);
38
- }
39
- else if (typeof cb === "function") {
40
- if (typeof optionsOrCb !== "object")
41
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
42
- this.send(command, optionsOrCb || {}, cb);
43
- }
44
- else {
45
- return this.send(command, optionsOrCb);
46
- }
47
- }
48
- createCase(args, optionsOrCb, cb) {
49
- const command = new CreateCaseCommand_1.CreateCaseCommand(args);
50
- if (typeof optionsOrCb === "function") {
51
- this.send(command, optionsOrCb);
52
- }
53
- else if (typeof cb === "function") {
54
- if (typeof optionsOrCb !== "object")
55
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
56
- this.send(command, optionsOrCb || {}, cb);
57
- }
58
- else {
59
- return this.send(command, optionsOrCb);
60
- }
61
- }
62
- describeAttachment(args, optionsOrCb, cb) {
63
- const command = new DescribeAttachmentCommand_1.DescribeAttachmentCommand(args);
64
- if (typeof optionsOrCb === "function") {
65
- this.send(command, optionsOrCb);
66
- }
67
- else if (typeof cb === "function") {
68
- if (typeof optionsOrCb !== "object")
69
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
70
- this.send(command, optionsOrCb || {}, cb);
71
- }
72
- else {
73
- return this.send(command, optionsOrCb);
74
- }
75
- }
76
- describeCases(args, optionsOrCb, cb) {
77
- const command = new DescribeCasesCommand_1.DescribeCasesCommand(args);
78
- if (typeof optionsOrCb === "function") {
79
- this.send(command, optionsOrCb);
80
- }
81
- else if (typeof cb === "function") {
82
- if (typeof optionsOrCb !== "object")
83
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
84
- this.send(command, optionsOrCb || {}, cb);
85
- }
86
- else {
87
- return this.send(command, optionsOrCb);
88
- }
89
- }
90
- describeCommunications(args, optionsOrCb, cb) {
91
- const command = new DescribeCommunicationsCommand_1.DescribeCommunicationsCommand(args);
92
- if (typeof optionsOrCb === "function") {
93
- this.send(command, optionsOrCb);
94
- }
95
- else if (typeof cb === "function") {
96
- if (typeof optionsOrCb !== "object")
97
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
98
- this.send(command, optionsOrCb || {}, cb);
99
- }
100
- else {
101
- return this.send(command, optionsOrCb);
102
- }
103
- }
104
- describeServices(args, optionsOrCb, cb) {
105
- const command = new DescribeServicesCommand_1.DescribeServicesCommand(args);
106
- if (typeof optionsOrCb === "function") {
107
- this.send(command, optionsOrCb);
108
- }
109
- else if (typeof cb === "function") {
110
- if (typeof optionsOrCb !== "object")
111
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
112
- this.send(command, optionsOrCb || {}, cb);
113
- }
114
- else {
115
- return this.send(command, optionsOrCb);
116
- }
117
- }
118
- describeSeverityLevels(args, optionsOrCb, cb) {
119
- const command = new DescribeSeverityLevelsCommand_1.DescribeSeverityLevelsCommand(args);
120
- if (typeof optionsOrCb === "function") {
121
- this.send(command, optionsOrCb);
122
- }
123
- else if (typeof cb === "function") {
124
- if (typeof optionsOrCb !== "object")
125
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
126
- this.send(command, optionsOrCb || {}, cb);
127
- }
128
- else {
129
- return this.send(command, optionsOrCb);
130
- }
131
- }
132
- describeTrustedAdvisorCheckRefreshStatuses(args, optionsOrCb, cb) {
133
- const command = new DescribeTrustedAdvisorCheckRefreshStatusesCommand_1.DescribeTrustedAdvisorCheckRefreshStatusesCommand(args);
134
- if (typeof optionsOrCb === "function") {
135
- this.send(command, optionsOrCb);
136
- }
137
- else if (typeof cb === "function") {
138
- if (typeof optionsOrCb !== "object")
139
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
140
- this.send(command, optionsOrCb || {}, cb);
141
- }
142
- else {
143
- return this.send(command, optionsOrCb);
144
- }
145
- }
146
- describeTrustedAdvisorCheckResult(args, optionsOrCb, cb) {
147
- const command = new DescribeTrustedAdvisorCheckResultCommand_1.DescribeTrustedAdvisorCheckResultCommand(args);
148
- if (typeof optionsOrCb === "function") {
149
- this.send(command, optionsOrCb);
150
- }
151
- else if (typeof cb === "function") {
152
- if (typeof optionsOrCb !== "object")
153
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
154
- this.send(command, optionsOrCb || {}, cb);
155
- }
156
- else {
157
- return this.send(command, optionsOrCb);
158
- }
159
- }
160
- describeTrustedAdvisorChecks(args, optionsOrCb, cb) {
161
- const command = new DescribeTrustedAdvisorChecksCommand_1.DescribeTrustedAdvisorChecksCommand(args);
162
- if (typeof optionsOrCb === "function") {
163
- this.send(command, optionsOrCb);
164
- }
165
- else if (typeof cb === "function") {
166
- if (typeof optionsOrCb !== "object")
167
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
168
- this.send(command, optionsOrCb || {}, cb);
169
- }
170
- else {
171
- return this.send(command, optionsOrCb);
172
- }
173
- }
174
- describeTrustedAdvisorCheckSummaries(args, optionsOrCb, cb) {
175
- const command = new DescribeTrustedAdvisorCheckSummariesCommand_1.DescribeTrustedAdvisorCheckSummariesCommand(args);
176
- if (typeof optionsOrCb === "function") {
177
- this.send(command, optionsOrCb);
178
- }
179
- else if (typeof cb === "function") {
180
- if (typeof optionsOrCb !== "object")
181
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
182
- this.send(command, optionsOrCb || {}, cb);
183
- }
184
- else {
185
- return this.send(command, optionsOrCb);
186
- }
187
- }
188
- refreshTrustedAdvisorCheck(args, optionsOrCb, cb) {
189
- const command = new RefreshTrustedAdvisorCheckCommand_1.RefreshTrustedAdvisorCheckCommand(args);
190
- if (typeof optionsOrCb === "function") {
191
- this.send(command, optionsOrCb);
192
- }
193
- else if (typeof cb === "function") {
194
- if (typeof optionsOrCb !== "object")
195
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
196
- this.send(command, optionsOrCb || {}, cb);
197
- }
198
- else {
199
- return this.send(command, optionsOrCb);
200
- }
201
- }
202
- resolveCase(args, optionsOrCb, cb) {
203
- const command = new ResolveCaseCommand_1.ResolveCaseCommand(args);
204
- if (typeof optionsOrCb === "function") {
205
- this.send(command, optionsOrCb);
206
- }
207
- else if (typeof cb === "function") {
208
- if (typeof optionsOrCb !== "object")
209
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
210
- this.send(command, optionsOrCb || {}, cb);
211
- }
212
- else {
213
- return this.send(command, optionsOrCb);
214
- }
215
- }
216
37
  }
217
38
  exports.Support = Support;
39
+ (0, smithy_client_1.createAggregatedClient)(commands, Support);