@aws-sdk/client-amp 3.183.0 → 3.185.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 (38) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/Amp.js +93 -86
  4. package/dist-es/AmpClient.js +28 -22
  5. package/dist-es/commands/CreateAlertManagerDefinitionCommand.js +28 -21
  6. package/dist-es/commands/CreateLoggingConfigurationCommand.js +28 -21
  7. package/dist-es/commands/CreateRuleGroupsNamespaceCommand.js +28 -21
  8. package/dist-es/commands/CreateWorkspaceCommand.js +28 -21
  9. package/dist-es/commands/DeleteAlertManagerDefinitionCommand.js +29 -22
  10. package/dist-es/commands/DeleteLoggingConfigurationCommand.js +29 -22
  11. package/dist-es/commands/DeleteRuleGroupsNamespaceCommand.js +29 -22
  12. package/dist-es/commands/DeleteWorkspaceCommand.js +29 -22
  13. package/dist-es/commands/DescribeAlertManagerDefinitionCommand.js +28 -21
  14. package/dist-es/commands/DescribeLoggingConfigurationCommand.js +28 -21
  15. package/dist-es/commands/DescribeRuleGroupsNamespaceCommand.js +28 -21
  16. package/dist-es/commands/DescribeWorkspaceCommand.js +28 -21
  17. package/dist-es/commands/ListRuleGroupsNamespacesCommand.js +28 -21
  18. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  19. package/dist-es/commands/ListWorkspacesCommand.js +28 -21
  20. package/dist-es/commands/PutAlertManagerDefinitionCommand.js +28 -21
  21. package/dist-es/commands/PutRuleGroupsNamespaceCommand.js +28 -21
  22. package/dist-es/commands/TagResourceCommand.js +28 -21
  23. package/dist-es/commands/UntagResourceCommand.js +28 -21
  24. package/dist-es/commands/UpdateLoggingConfigurationCommand.js +28 -21
  25. package/dist-es/commands/UpdateWorkspaceAliasCommand.js +29 -22
  26. package/dist-es/endpoints.js +8 -8
  27. package/dist-es/models/AmpServiceException.js +10 -5
  28. package/dist-es/models/models_0.js +142 -237
  29. package/dist-es/pagination/ListRuleGroupsNamespacesPaginator.js +68 -25
  30. package/dist-es/pagination/ListWorkspacesPaginator.js +68 -25
  31. package/dist-es/protocols/Aws_restJson1.js +2255 -1569
  32. package/dist-es/runtimeConfig.browser.js +12 -26
  33. package/dist-es/runtimeConfig.js +12 -30
  34. package/dist-es/runtimeConfig.native.js +5 -8
  35. package/dist-es/runtimeConfig.shared.js +11 -8
  36. package/dist-es/waiters/waitForWorkspaceActive.js +65 -45
  37. package/dist-es/waiters/waitForWorkspaceDeleted.js +50 -30
  38. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
18
 
8
19
  **Note:** Version bump only for package @aws-sdk/client-amp
@@ -1755,10 +1755,10 @@ const deserializeAws_restJson1WorkspaceSummaryList = (output, context) => {
1755
1755
  return retVal;
1756
1756
  };
1757
1757
  const deserializeMetadata = (output) => {
1758
- var _a;
1758
+ var _a, _b;
1759
1759
  return ({
1760
1760
  httpStatusCode: output.statusCode,
1761
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
1761
+ 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"],
1762
1762
  extendedRequestId: output.headers["x-amz-id-2"],
1763
1763
  cfId: output.headers["x-amz-cf-id"],
1764
1764
  });
package/dist-es/Amp.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AmpClient } from "./AmpClient";
2
3
  import { CreateAlertManagerDefinitionCommand, } from "./commands/CreateAlertManagerDefinitionCommand";
3
4
  import { CreateLoggingConfigurationCommand, } from "./commands/CreateLoggingConfigurationCommand";
@@ -20,299 +21,305 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
20
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
21
22
  import { UpdateLoggingConfigurationCommand, } from "./commands/UpdateLoggingConfigurationCommand";
22
23
  import { UpdateWorkspaceAliasCommand, } from "./commands/UpdateWorkspaceAliasCommand";
23
- export class Amp extends AmpClient {
24
- createAlertManagerDefinition(args, optionsOrCb, cb) {
25
- const command = new CreateAlertManagerDefinitionCommand(args);
24
+ var Amp = (function (_super) {
25
+ __extends(Amp, _super);
26
+ function Amp() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ Amp.prototype.createAlertManagerDefinition = function (args, optionsOrCb, cb) {
30
+ var command = new CreateAlertManagerDefinitionCommand(args);
26
31
  if (typeof optionsOrCb === "function") {
27
32
  this.send(command, optionsOrCb);
28
33
  }
29
34
  else if (typeof cb === "function") {
30
35
  if (typeof optionsOrCb !== "object")
31
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
36
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
32
37
  this.send(command, optionsOrCb || {}, cb);
33
38
  }
34
39
  else {
35
40
  return this.send(command, optionsOrCb);
36
41
  }
37
- }
38
- createLoggingConfiguration(args, optionsOrCb, cb) {
39
- const command = new CreateLoggingConfigurationCommand(args);
42
+ };
43
+ Amp.prototype.createLoggingConfiguration = function (args, optionsOrCb, cb) {
44
+ var command = new CreateLoggingConfigurationCommand(args);
40
45
  if (typeof optionsOrCb === "function") {
41
46
  this.send(command, optionsOrCb);
42
47
  }
43
48
  else if (typeof cb === "function") {
44
49
  if (typeof optionsOrCb !== "object")
45
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
50
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
46
51
  this.send(command, optionsOrCb || {}, cb);
47
52
  }
48
53
  else {
49
54
  return this.send(command, optionsOrCb);
50
55
  }
51
- }
52
- createRuleGroupsNamespace(args, optionsOrCb, cb) {
53
- const command = new CreateRuleGroupsNamespaceCommand(args);
56
+ };
57
+ Amp.prototype.createRuleGroupsNamespace = function (args, optionsOrCb, cb) {
58
+ var command = new CreateRuleGroupsNamespaceCommand(args);
54
59
  if (typeof optionsOrCb === "function") {
55
60
  this.send(command, optionsOrCb);
56
61
  }
57
62
  else if (typeof cb === "function") {
58
63
  if (typeof optionsOrCb !== "object")
59
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
64
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
60
65
  this.send(command, optionsOrCb || {}, cb);
61
66
  }
62
67
  else {
63
68
  return this.send(command, optionsOrCb);
64
69
  }
65
- }
66
- createWorkspace(args, optionsOrCb, cb) {
67
- const command = new CreateWorkspaceCommand(args);
70
+ };
71
+ Amp.prototype.createWorkspace = function (args, optionsOrCb, cb) {
72
+ var command = new CreateWorkspaceCommand(args);
68
73
  if (typeof optionsOrCb === "function") {
69
74
  this.send(command, optionsOrCb);
70
75
  }
71
76
  else if (typeof cb === "function") {
72
77
  if (typeof optionsOrCb !== "object")
73
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
78
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
74
79
  this.send(command, optionsOrCb || {}, cb);
75
80
  }
76
81
  else {
77
82
  return this.send(command, optionsOrCb);
78
83
  }
79
- }
80
- deleteAlertManagerDefinition(args, optionsOrCb, cb) {
81
- const command = new DeleteAlertManagerDefinitionCommand(args);
84
+ };
85
+ Amp.prototype.deleteAlertManagerDefinition = function (args, optionsOrCb, cb) {
86
+ var command = new DeleteAlertManagerDefinitionCommand(args);
82
87
  if (typeof optionsOrCb === "function") {
83
88
  this.send(command, optionsOrCb);
84
89
  }
85
90
  else if (typeof cb === "function") {
86
91
  if (typeof optionsOrCb !== "object")
87
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
92
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
88
93
  this.send(command, optionsOrCb || {}, cb);
89
94
  }
90
95
  else {
91
96
  return this.send(command, optionsOrCb);
92
97
  }
93
- }
94
- deleteLoggingConfiguration(args, optionsOrCb, cb) {
95
- const command = new DeleteLoggingConfigurationCommand(args);
98
+ };
99
+ Amp.prototype.deleteLoggingConfiguration = function (args, optionsOrCb, cb) {
100
+ var command = new DeleteLoggingConfigurationCommand(args);
96
101
  if (typeof optionsOrCb === "function") {
97
102
  this.send(command, optionsOrCb);
98
103
  }
99
104
  else if (typeof cb === "function") {
100
105
  if (typeof optionsOrCb !== "object")
101
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
106
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
102
107
  this.send(command, optionsOrCb || {}, cb);
103
108
  }
104
109
  else {
105
110
  return this.send(command, optionsOrCb);
106
111
  }
107
- }
108
- deleteRuleGroupsNamespace(args, optionsOrCb, cb) {
109
- const command = new DeleteRuleGroupsNamespaceCommand(args);
112
+ };
113
+ Amp.prototype.deleteRuleGroupsNamespace = function (args, optionsOrCb, cb) {
114
+ var command = new DeleteRuleGroupsNamespaceCommand(args);
110
115
  if (typeof optionsOrCb === "function") {
111
116
  this.send(command, optionsOrCb);
112
117
  }
113
118
  else if (typeof cb === "function") {
114
119
  if (typeof optionsOrCb !== "object")
115
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
120
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
116
121
  this.send(command, optionsOrCb || {}, cb);
117
122
  }
118
123
  else {
119
124
  return this.send(command, optionsOrCb);
120
125
  }
121
- }
122
- deleteWorkspace(args, optionsOrCb, cb) {
123
- const command = new DeleteWorkspaceCommand(args);
126
+ };
127
+ Amp.prototype.deleteWorkspace = function (args, optionsOrCb, cb) {
128
+ var command = new DeleteWorkspaceCommand(args);
124
129
  if (typeof optionsOrCb === "function") {
125
130
  this.send(command, optionsOrCb);
126
131
  }
127
132
  else if (typeof cb === "function") {
128
133
  if (typeof optionsOrCb !== "object")
129
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
134
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
130
135
  this.send(command, optionsOrCb || {}, cb);
131
136
  }
132
137
  else {
133
138
  return this.send(command, optionsOrCb);
134
139
  }
135
- }
136
- describeAlertManagerDefinition(args, optionsOrCb, cb) {
137
- const command = new DescribeAlertManagerDefinitionCommand(args);
140
+ };
141
+ Amp.prototype.describeAlertManagerDefinition = function (args, optionsOrCb, cb) {
142
+ var command = new DescribeAlertManagerDefinitionCommand(args);
138
143
  if (typeof optionsOrCb === "function") {
139
144
  this.send(command, optionsOrCb);
140
145
  }
141
146
  else if (typeof cb === "function") {
142
147
  if (typeof optionsOrCb !== "object")
143
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
148
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
144
149
  this.send(command, optionsOrCb || {}, cb);
145
150
  }
146
151
  else {
147
152
  return this.send(command, optionsOrCb);
148
153
  }
149
- }
150
- describeLoggingConfiguration(args, optionsOrCb, cb) {
151
- const command = new DescribeLoggingConfigurationCommand(args);
154
+ };
155
+ Amp.prototype.describeLoggingConfiguration = function (args, optionsOrCb, cb) {
156
+ var command = new DescribeLoggingConfigurationCommand(args);
152
157
  if (typeof optionsOrCb === "function") {
153
158
  this.send(command, optionsOrCb);
154
159
  }
155
160
  else if (typeof cb === "function") {
156
161
  if (typeof optionsOrCb !== "object")
157
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
162
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
158
163
  this.send(command, optionsOrCb || {}, cb);
159
164
  }
160
165
  else {
161
166
  return this.send(command, optionsOrCb);
162
167
  }
163
- }
164
- describeRuleGroupsNamespace(args, optionsOrCb, cb) {
165
- const command = new DescribeRuleGroupsNamespaceCommand(args);
168
+ };
169
+ Amp.prototype.describeRuleGroupsNamespace = function (args, optionsOrCb, cb) {
170
+ var command = new DescribeRuleGroupsNamespaceCommand(args);
166
171
  if (typeof optionsOrCb === "function") {
167
172
  this.send(command, optionsOrCb);
168
173
  }
169
174
  else if (typeof cb === "function") {
170
175
  if (typeof optionsOrCb !== "object")
171
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
176
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
172
177
  this.send(command, optionsOrCb || {}, cb);
173
178
  }
174
179
  else {
175
180
  return this.send(command, optionsOrCb);
176
181
  }
177
- }
178
- describeWorkspace(args, optionsOrCb, cb) {
179
- const command = new DescribeWorkspaceCommand(args);
182
+ };
183
+ Amp.prototype.describeWorkspace = function (args, optionsOrCb, cb) {
184
+ var command = new DescribeWorkspaceCommand(args);
180
185
  if (typeof optionsOrCb === "function") {
181
186
  this.send(command, optionsOrCb);
182
187
  }
183
188
  else if (typeof cb === "function") {
184
189
  if (typeof optionsOrCb !== "object")
185
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
190
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
186
191
  this.send(command, optionsOrCb || {}, cb);
187
192
  }
188
193
  else {
189
194
  return this.send(command, optionsOrCb);
190
195
  }
191
- }
192
- listRuleGroupsNamespaces(args, optionsOrCb, cb) {
193
- const command = new ListRuleGroupsNamespacesCommand(args);
196
+ };
197
+ Amp.prototype.listRuleGroupsNamespaces = function (args, optionsOrCb, cb) {
198
+ var command = new ListRuleGroupsNamespacesCommand(args);
194
199
  if (typeof optionsOrCb === "function") {
195
200
  this.send(command, optionsOrCb);
196
201
  }
197
202
  else if (typeof cb === "function") {
198
203
  if (typeof optionsOrCb !== "object")
199
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
204
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
200
205
  this.send(command, optionsOrCb || {}, cb);
201
206
  }
202
207
  else {
203
208
  return this.send(command, optionsOrCb);
204
209
  }
205
- }
206
- listTagsForResource(args, optionsOrCb, cb) {
207
- const command = new ListTagsForResourceCommand(args);
210
+ };
211
+ Amp.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
212
+ var command = new ListTagsForResourceCommand(args);
208
213
  if (typeof optionsOrCb === "function") {
209
214
  this.send(command, optionsOrCb);
210
215
  }
211
216
  else if (typeof cb === "function") {
212
217
  if (typeof optionsOrCb !== "object")
213
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
218
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
214
219
  this.send(command, optionsOrCb || {}, cb);
215
220
  }
216
221
  else {
217
222
  return this.send(command, optionsOrCb);
218
223
  }
219
- }
220
- listWorkspaces(args, optionsOrCb, cb) {
221
- const command = new ListWorkspacesCommand(args);
224
+ };
225
+ Amp.prototype.listWorkspaces = function (args, optionsOrCb, cb) {
226
+ var command = new ListWorkspacesCommand(args);
222
227
  if (typeof optionsOrCb === "function") {
223
228
  this.send(command, optionsOrCb);
224
229
  }
225
230
  else if (typeof cb === "function") {
226
231
  if (typeof optionsOrCb !== "object")
227
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
232
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
228
233
  this.send(command, optionsOrCb || {}, cb);
229
234
  }
230
235
  else {
231
236
  return this.send(command, optionsOrCb);
232
237
  }
233
- }
234
- putAlertManagerDefinition(args, optionsOrCb, cb) {
235
- const command = new PutAlertManagerDefinitionCommand(args);
238
+ };
239
+ Amp.prototype.putAlertManagerDefinition = function (args, optionsOrCb, cb) {
240
+ var command = new PutAlertManagerDefinitionCommand(args);
236
241
  if (typeof optionsOrCb === "function") {
237
242
  this.send(command, optionsOrCb);
238
243
  }
239
244
  else if (typeof cb === "function") {
240
245
  if (typeof optionsOrCb !== "object")
241
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
246
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
242
247
  this.send(command, optionsOrCb || {}, cb);
243
248
  }
244
249
  else {
245
250
  return this.send(command, optionsOrCb);
246
251
  }
247
- }
248
- putRuleGroupsNamespace(args, optionsOrCb, cb) {
249
- const command = new PutRuleGroupsNamespaceCommand(args);
252
+ };
253
+ Amp.prototype.putRuleGroupsNamespace = function (args, optionsOrCb, cb) {
254
+ var command = new PutRuleGroupsNamespaceCommand(args);
250
255
  if (typeof optionsOrCb === "function") {
251
256
  this.send(command, optionsOrCb);
252
257
  }
253
258
  else if (typeof cb === "function") {
254
259
  if (typeof optionsOrCb !== "object")
255
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
260
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
256
261
  this.send(command, optionsOrCb || {}, cb);
257
262
  }
258
263
  else {
259
264
  return this.send(command, optionsOrCb);
260
265
  }
261
- }
262
- tagResource(args, optionsOrCb, cb) {
263
- const command = new TagResourceCommand(args);
266
+ };
267
+ Amp.prototype.tagResource = function (args, optionsOrCb, cb) {
268
+ var command = new TagResourceCommand(args);
264
269
  if (typeof optionsOrCb === "function") {
265
270
  this.send(command, optionsOrCb);
266
271
  }
267
272
  else if (typeof cb === "function") {
268
273
  if (typeof optionsOrCb !== "object")
269
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
274
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
270
275
  this.send(command, optionsOrCb || {}, cb);
271
276
  }
272
277
  else {
273
278
  return this.send(command, optionsOrCb);
274
279
  }
275
- }
276
- untagResource(args, optionsOrCb, cb) {
277
- const command = new UntagResourceCommand(args);
280
+ };
281
+ Amp.prototype.untagResource = function (args, optionsOrCb, cb) {
282
+ var command = new UntagResourceCommand(args);
278
283
  if (typeof optionsOrCb === "function") {
279
284
  this.send(command, optionsOrCb);
280
285
  }
281
286
  else if (typeof cb === "function") {
282
287
  if (typeof optionsOrCb !== "object")
283
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
288
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
284
289
  this.send(command, optionsOrCb || {}, cb);
285
290
  }
286
291
  else {
287
292
  return this.send(command, optionsOrCb);
288
293
  }
289
- }
290
- updateLoggingConfiguration(args, optionsOrCb, cb) {
291
- const command = new UpdateLoggingConfigurationCommand(args);
294
+ };
295
+ Amp.prototype.updateLoggingConfiguration = function (args, optionsOrCb, cb) {
296
+ var command = new UpdateLoggingConfigurationCommand(args);
292
297
  if (typeof optionsOrCb === "function") {
293
298
  this.send(command, optionsOrCb);
294
299
  }
295
300
  else if (typeof cb === "function") {
296
301
  if (typeof optionsOrCb !== "object")
297
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
302
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
298
303
  this.send(command, optionsOrCb || {}, cb);
299
304
  }
300
305
  else {
301
306
  return this.send(command, optionsOrCb);
302
307
  }
303
- }
304
- updateWorkspaceAlias(args, optionsOrCb, cb) {
305
- const command = new UpdateWorkspaceAliasCommand(args);
308
+ };
309
+ Amp.prototype.updateWorkspaceAlias = function (args, optionsOrCb, cb) {
310
+ var command = new UpdateWorkspaceAliasCommand(args);
306
311
  if (typeof optionsOrCb === "function") {
307
312
  this.send(command, optionsOrCb);
308
313
  }
309
314
  else if (typeof cb === "function") {
310
315
  if (typeof optionsOrCb !== "object")
311
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
316
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
312
317
  this.send(command, optionsOrCb || {}, cb);
313
318
  }
314
319
  else {
315
320
  return this.send(command, optionsOrCb);
316
321
  }
317
- }
318
- }
322
+ };
323
+ return Amp;
324
+ }(AmpClient));
325
+ export { Amp };
@@ -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 AmpClient 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 AmpClient = (function (_super) {
13
+ __extends(AmpClient, _super);
14
+ function AmpClient(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
+ AmpClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return AmpClient;
38
+ }(__Client));
39
+ export { AmpClient };
@@ -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 { CreateAlertManagerDefinitionRequestFilterSensitiveLog, CreateAlertManagerDefinitionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateAlertManagerDefinitionCommand, serializeAws_restJson1CreateAlertManagerDefinitionCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateAlertManagerDefinitionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateAlertManagerDefinitionCommand = (function (_super) {
7
+ __extends(CreateAlertManagerDefinitionCommand, _super);
8
+ function CreateAlertManagerDefinitionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateAlertManagerDefinitionCommand.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 = "AmpClient";
15
- const commandName = "CreateAlertManagerDefinitionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AmpClient";
18
+ var commandName = "CreateAlertManagerDefinitionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateAlertManagerDefinitionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateAlertManagerDefinitionResponseFilterSensitiveLog,
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
+ CreateAlertManagerDefinitionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateAlertManagerDefinitionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateAlertManagerDefinitionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateAlertManagerDefinitionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateAlertManagerDefinitionCommand;
38
+ }($Command));
39
+ export { CreateAlertManagerDefinitionCommand };
@@ -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 { CreateLoggingConfigurationRequestFilterSensitiveLog, CreateLoggingConfigurationResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateLoggingConfigurationCommand, serializeAws_restJson1CreateLoggingConfigurationCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateLoggingConfigurationCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateLoggingConfigurationCommand = (function (_super) {
7
+ __extends(CreateLoggingConfigurationCommand, _super);
8
+ function CreateLoggingConfigurationCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateLoggingConfigurationCommand.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 = "AmpClient";
15
- const commandName = "CreateLoggingConfigurationCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AmpClient";
18
+ var commandName = "CreateLoggingConfigurationCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateLoggingConfigurationRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateLoggingConfigurationResponseFilterSensitiveLog,
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
+ CreateLoggingConfigurationCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateLoggingConfigurationCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateLoggingConfigurationCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateLoggingConfigurationCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateLoggingConfigurationCommand;
38
+ }($Command));
39
+ export { CreateLoggingConfigurationCommand };