@aws-sdk/client-health 3.181.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.
Files changed (32) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/Health.js +54 -61
  3. package/dist-es/HealthClient.js +22 -28
  4. package/dist-es/commands/DescribeAffectedAccountsForOrganizationCommand.js +21 -28
  5. package/dist-es/commands/DescribeAffectedEntitiesCommand.js +21 -28
  6. package/dist-es/commands/DescribeAffectedEntitiesForOrganizationCommand.js +21 -28
  7. package/dist-es/commands/DescribeEntityAggregatesCommand.js +21 -28
  8. package/dist-es/commands/DescribeEventAggregatesCommand.js +21 -28
  9. package/dist-es/commands/DescribeEventDetailsCommand.js +21 -28
  10. package/dist-es/commands/DescribeEventDetailsForOrganizationCommand.js +21 -28
  11. package/dist-es/commands/DescribeEventTypesCommand.js +21 -28
  12. package/dist-es/commands/DescribeEventsCommand.js +21 -28
  13. package/dist-es/commands/DescribeEventsForOrganizationCommand.js +21 -28
  14. package/dist-es/commands/DescribeHealthServiceStatusForOrganizationCommand.js +22 -29
  15. package/dist-es/commands/DisableHealthServiceAccessForOrganizationCommand.js +23 -30
  16. package/dist-es/commands/EnableHealthServiceAccessForOrganizationCommand.js +23 -30
  17. package/dist-es/endpoints.js +8 -8
  18. package/dist-es/models/HealthServiceException.js +5 -10
  19. package/dist-es/models/models_0.js +150 -73
  20. package/dist-es/pagination/DescribeAffectedAccountsForOrganizationPaginator.js +25 -68
  21. package/dist-es/pagination/DescribeAffectedEntitiesForOrganizationPaginator.js +25 -68
  22. package/dist-es/pagination/DescribeAffectedEntitiesPaginator.js +25 -68
  23. package/dist-es/pagination/DescribeEventAggregatesPaginator.js +25 -68
  24. package/dist-es/pagination/DescribeEventTypesPaginator.js +25 -68
  25. package/dist-es/pagination/DescribeEventsForOrganizationPaginator.js +25 -68
  26. package/dist-es/pagination/DescribeEventsPaginator.js +25 -68
  27. package/dist-es/protocols/Aws_json1_1.js +908 -1110
  28. package/dist-es/runtimeConfig.browser.js +26 -12
  29. package/dist-es/runtimeConfig.js +30 -12
  30. package/dist-es/runtimeConfig.native.js +8 -5
  31. package/dist-es/runtimeConfig.shared.js +8 -11
  32. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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-health
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
7
15
 
8
16
 
package/dist-es/Health.js CHANGED
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { DescribeAffectedAccountsForOrganizationCommand, } from "./commands/DescribeAffectedAccountsForOrganizationCommand";
3
2
  import { DescribeAffectedEntitiesCommand, } from "./commands/DescribeAffectedEntitiesCommand";
4
3
  import { DescribeAffectedEntitiesForOrganizationCommand, } from "./commands/DescribeAffectedEntitiesForOrganizationCommand";
@@ -13,193 +12,187 @@ import { DescribeHealthServiceStatusForOrganizationCommand, } from "./commands/D
13
12
  import { DisableHealthServiceAccessForOrganizationCommand, } from "./commands/DisableHealthServiceAccessForOrganizationCommand";
14
13
  import { EnableHealthServiceAccessForOrganizationCommand, } from "./commands/EnableHealthServiceAccessForOrganizationCommand";
15
14
  import { HealthClient } from "./HealthClient";
16
- var Health = (function (_super) {
17
- __extends(Health, _super);
18
- function Health() {
19
- return _super !== null && _super.apply(this, arguments) || this;
20
- }
21
- Health.prototype.describeAffectedAccountsForOrganization = function (args, optionsOrCb, cb) {
22
- var command = new DescribeAffectedAccountsForOrganizationCommand(args);
15
+ export class Health extends HealthClient {
16
+ describeAffectedAccountsForOrganization(args, optionsOrCb, cb) {
17
+ const command = new DescribeAffectedAccountsForOrganizationCommand(args);
23
18
  if (typeof optionsOrCb === "function") {
24
19
  this.send(command, optionsOrCb);
25
20
  }
26
21
  else if (typeof cb === "function") {
27
22
  if (typeof optionsOrCb !== "object")
28
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
23
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
29
24
  this.send(command, optionsOrCb || {}, cb);
30
25
  }
31
26
  else {
32
27
  return this.send(command, optionsOrCb);
33
28
  }
34
- };
35
- Health.prototype.describeAffectedEntities = function (args, optionsOrCb, cb) {
36
- var command = new DescribeAffectedEntitiesCommand(args);
29
+ }
30
+ describeAffectedEntities(args, optionsOrCb, cb) {
31
+ const command = new DescribeAffectedEntitiesCommand(args);
37
32
  if (typeof optionsOrCb === "function") {
38
33
  this.send(command, optionsOrCb);
39
34
  }
40
35
  else if (typeof cb === "function") {
41
36
  if (typeof optionsOrCb !== "object")
42
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
37
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
43
38
  this.send(command, optionsOrCb || {}, cb);
44
39
  }
45
40
  else {
46
41
  return this.send(command, optionsOrCb);
47
42
  }
48
- };
49
- Health.prototype.describeAffectedEntitiesForOrganization = function (args, optionsOrCb, cb) {
50
- var command = new DescribeAffectedEntitiesForOrganizationCommand(args);
43
+ }
44
+ describeAffectedEntitiesForOrganization(args, optionsOrCb, cb) {
45
+ const command = new DescribeAffectedEntitiesForOrganizationCommand(args);
51
46
  if (typeof optionsOrCb === "function") {
52
47
  this.send(command, optionsOrCb);
53
48
  }
54
49
  else if (typeof cb === "function") {
55
50
  if (typeof optionsOrCb !== "object")
56
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
52
  this.send(command, optionsOrCb || {}, cb);
58
53
  }
59
54
  else {
60
55
  return this.send(command, optionsOrCb);
61
56
  }
62
- };
63
- Health.prototype.describeEntityAggregates = function (args, optionsOrCb, cb) {
64
- var command = new DescribeEntityAggregatesCommand(args);
57
+ }
58
+ describeEntityAggregates(args, optionsOrCb, cb) {
59
+ const command = new DescribeEntityAggregatesCommand(args);
65
60
  if (typeof optionsOrCb === "function") {
66
61
  this.send(command, optionsOrCb);
67
62
  }
68
63
  else if (typeof cb === "function") {
69
64
  if (typeof optionsOrCb !== "object")
70
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
71
66
  this.send(command, optionsOrCb || {}, cb);
72
67
  }
73
68
  else {
74
69
  return this.send(command, optionsOrCb);
75
70
  }
76
- };
77
- Health.prototype.describeEventAggregates = function (args, optionsOrCb, cb) {
78
- var command = new DescribeEventAggregatesCommand(args);
71
+ }
72
+ describeEventAggregates(args, optionsOrCb, cb) {
73
+ const command = new DescribeEventAggregatesCommand(args);
79
74
  if (typeof optionsOrCb === "function") {
80
75
  this.send(command, optionsOrCb);
81
76
  }
82
77
  else if (typeof cb === "function") {
83
78
  if (typeof optionsOrCb !== "object")
84
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
80
  this.send(command, optionsOrCb || {}, cb);
86
81
  }
87
82
  else {
88
83
  return this.send(command, optionsOrCb);
89
84
  }
90
- };
91
- Health.prototype.describeEventDetails = function (args, optionsOrCb, cb) {
92
- var command = new DescribeEventDetailsCommand(args);
85
+ }
86
+ describeEventDetails(args, optionsOrCb, cb) {
87
+ const command = new DescribeEventDetailsCommand(args);
93
88
  if (typeof optionsOrCb === "function") {
94
89
  this.send(command, optionsOrCb);
95
90
  }
96
91
  else if (typeof cb === "function") {
97
92
  if (typeof optionsOrCb !== "object")
98
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
94
  this.send(command, optionsOrCb || {}, cb);
100
95
  }
101
96
  else {
102
97
  return this.send(command, optionsOrCb);
103
98
  }
104
- };
105
- Health.prototype.describeEventDetailsForOrganization = function (args, optionsOrCb, cb) {
106
- var command = new DescribeEventDetailsForOrganizationCommand(args);
99
+ }
100
+ describeEventDetailsForOrganization(args, optionsOrCb, cb) {
101
+ const command = new DescribeEventDetailsForOrganizationCommand(args);
107
102
  if (typeof optionsOrCb === "function") {
108
103
  this.send(command, optionsOrCb);
109
104
  }
110
105
  else if (typeof cb === "function") {
111
106
  if (typeof optionsOrCb !== "object")
112
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
108
  this.send(command, optionsOrCb || {}, cb);
114
109
  }
115
110
  else {
116
111
  return this.send(command, optionsOrCb);
117
112
  }
118
- };
119
- Health.prototype.describeEvents = function (args, optionsOrCb, cb) {
120
- var command = new DescribeEventsCommand(args);
113
+ }
114
+ describeEvents(args, optionsOrCb, cb) {
115
+ const command = new DescribeEventsCommand(args);
121
116
  if (typeof optionsOrCb === "function") {
122
117
  this.send(command, optionsOrCb);
123
118
  }
124
119
  else if (typeof cb === "function") {
125
120
  if (typeof optionsOrCb !== "object")
126
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
122
  this.send(command, optionsOrCb || {}, cb);
128
123
  }
129
124
  else {
130
125
  return this.send(command, optionsOrCb);
131
126
  }
132
- };
133
- Health.prototype.describeEventsForOrganization = function (args, optionsOrCb, cb) {
134
- var command = new DescribeEventsForOrganizationCommand(args);
127
+ }
128
+ describeEventsForOrganization(args, optionsOrCb, cb) {
129
+ const command = new DescribeEventsForOrganizationCommand(args);
135
130
  if (typeof optionsOrCb === "function") {
136
131
  this.send(command, optionsOrCb);
137
132
  }
138
133
  else if (typeof cb === "function") {
139
134
  if (typeof optionsOrCb !== "object")
140
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
136
  this.send(command, optionsOrCb || {}, cb);
142
137
  }
143
138
  else {
144
139
  return this.send(command, optionsOrCb);
145
140
  }
146
- };
147
- Health.prototype.describeEventTypes = function (args, optionsOrCb, cb) {
148
- var command = new DescribeEventTypesCommand(args);
141
+ }
142
+ describeEventTypes(args, optionsOrCb, cb) {
143
+ const command = new DescribeEventTypesCommand(args);
149
144
  if (typeof optionsOrCb === "function") {
150
145
  this.send(command, optionsOrCb);
151
146
  }
152
147
  else if (typeof cb === "function") {
153
148
  if (typeof optionsOrCb !== "object")
154
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
150
  this.send(command, optionsOrCb || {}, cb);
156
151
  }
157
152
  else {
158
153
  return this.send(command, optionsOrCb);
159
154
  }
160
- };
161
- Health.prototype.describeHealthServiceStatusForOrganization = function (args, optionsOrCb, cb) {
162
- var command = new DescribeHealthServiceStatusForOrganizationCommand(args);
155
+ }
156
+ describeHealthServiceStatusForOrganization(args, optionsOrCb, cb) {
157
+ const command = new DescribeHealthServiceStatusForOrganizationCommand(args);
163
158
  if (typeof optionsOrCb === "function") {
164
159
  this.send(command, optionsOrCb);
165
160
  }
166
161
  else if (typeof cb === "function") {
167
162
  if (typeof optionsOrCb !== "object")
168
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
164
  this.send(command, optionsOrCb || {}, cb);
170
165
  }
171
166
  else {
172
167
  return this.send(command, optionsOrCb);
173
168
  }
174
- };
175
- Health.prototype.disableHealthServiceAccessForOrganization = function (args, optionsOrCb, cb) {
176
- var command = new DisableHealthServiceAccessForOrganizationCommand(args);
169
+ }
170
+ disableHealthServiceAccessForOrganization(args, optionsOrCb, cb) {
171
+ const command = new DisableHealthServiceAccessForOrganizationCommand(args);
177
172
  if (typeof optionsOrCb === "function") {
178
173
  this.send(command, optionsOrCb);
179
174
  }
180
175
  else if (typeof cb === "function") {
181
176
  if (typeof optionsOrCb !== "object")
182
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
178
  this.send(command, optionsOrCb || {}, cb);
184
179
  }
185
180
  else {
186
181
  return this.send(command, optionsOrCb);
187
182
  }
188
- };
189
- Health.prototype.enableHealthServiceAccessForOrganization = function (args, optionsOrCb, cb) {
190
- var command = new EnableHealthServiceAccessForOrganizationCommand(args);
183
+ }
184
+ enableHealthServiceAccessForOrganization(args, optionsOrCb, cb) {
185
+ const command = new EnableHealthServiceAccessForOrganizationCommand(args);
191
186
  if (typeof optionsOrCb === "function") {
192
187
  this.send(command, optionsOrCb);
193
188
  }
194
189
  else if (typeof cb === "function") {
195
190
  if (typeof optionsOrCb !== "object")
196
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
192
  this.send(command, optionsOrCb || {}, cb);
198
193
  }
199
194
  else {
200
195
  return this.send(command, optionsOrCb);
201
196
  }
202
- };
203
- return Health;
204
- }(HealthClient));
205
- export { Health };
197
+ }
198
+ }
@@ -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 HealthClient = (function (_super) {
13
- __extends(HealthClient, _super);
14
- function HealthClient(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 HealthClient 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
- HealthClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return HealthClient;
38
- }(__Client));
39
- export { HealthClient };
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 { DescribeAffectedAccountsForOrganizationRequestFilterSensitiveLog, DescribeAffectedAccountsForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand, serializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAffectedAccountsForOrganizationCommand = (function (_super) {
7
- __extends(DescribeAffectedAccountsForOrganizationCommand, _super);
8
- function DescribeAffectedAccountsForOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAffectedAccountsForOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAffectedAccountsForOrganizationCommand.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 = "HealthClient";
18
- var commandName = "DescribeAffectedAccountsForOrganizationCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeAffectedAccountsForOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAffectedAccountsForOrganizationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAffectedAccountsForOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAffectedAccountsForOrganizationCommand.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_1DescribeAffectedAccountsForOrganizationCommand(input, context);
33
- };
34
- DescribeAffectedAccountsForOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAffectedAccountsForOrganizationCommand(output, context);
36
- };
37
- return DescribeAffectedAccountsForOrganizationCommand;
38
- }($Command));
39
- export { DescribeAffectedAccountsForOrganizationCommand };
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 { DescribeAffectedEntitiesRequestFilterSensitiveLog, DescribeAffectedEntitiesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAffectedEntitiesCommand, serializeAws_json1_1DescribeAffectedEntitiesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAffectedEntitiesCommand = (function (_super) {
7
- __extends(DescribeAffectedEntitiesCommand, _super);
8
- function DescribeAffectedEntitiesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAffectedEntitiesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAffectedEntitiesCommand.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 = "HealthClient";
18
- var commandName = "DescribeAffectedEntitiesCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeAffectedEntitiesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAffectedEntitiesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAffectedEntitiesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAffectedEntitiesCommand.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_1DescribeAffectedEntitiesCommand(input, context);
33
- };
34
- DescribeAffectedEntitiesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAffectedEntitiesCommand(output, context);
36
- };
37
- return DescribeAffectedEntitiesCommand;
38
- }($Command));
39
- export { DescribeAffectedEntitiesCommand };
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 { DescribeAffectedEntitiesForOrganizationRequestFilterSensitiveLog, DescribeAffectedEntitiesForOrganizationResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand, serializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeAffectedEntitiesForOrganizationCommand = (function (_super) {
7
- __extends(DescribeAffectedEntitiesForOrganizationCommand, _super);
8
- function DescribeAffectedEntitiesForOrganizationCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeAffectedEntitiesForOrganizationCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeAffectedEntitiesForOrganizationCommand.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 = "HealthClient";
18
- var commandName = "DescribeAffectedEntitiesForOrganizationCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeAffectedEntitiesForOrganizationCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeAffectedEntitiesForOrganizationRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeAffectedEntitiesForOrganizationResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeAffectedEntitiesForOrganizationCommand.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_1DescribeAffectedEntitiesForOrganizationCommand(input, context);
33
- };
34
- DescribeAffectedEntitiesForOrganizationCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeAffectedEntitiesForOrganizationCommand(output, context);
36
- };
37
- return DescribeAffectedEntitiesForOrganizationCommand;
38
- }($Command));
39
- export { DescribeAffectedEntitiesForOrganizationCommand };
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 { DescribeEntityAggregatesRequestFilterSensitiveLog, DescribeEntityAggregatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEntityAggregatesCommand, serializeAws_json1_1DescribeEntityAggregatesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEntityAggregatesCommand = (function (_super) {
7
- __extends(DescribeEntityAggregatesCommand, _super);
8
- function DescribeEntityAggregatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEntityAggregatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEntityAggregatesCommand.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 = "HealthClient";
18
- var commandName = "DescribeEntityAggregatesCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEntityAggregatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEntityAggregatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEntityAggregatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEntityAggregatesCommand.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_1DescribeEntityAggregatesCommand(input, context);
33
- };
34
- DescribeEntityAggregatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEntityAggregatesCommand(output, context);
36
- };
37
- return DescribeEntityAggregatesCommand;
38
- }($Command));
39
- export { DescribeEntityAggregatesCommand };
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 { DescribeEventAggregatesRequestFilterSensitiveLog, DescribeEventAggregatesResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_json1_1DescribeEventAggregatesCommand, serializeAws_json1_1DescribeEventAggregatesCommand, } from "../protocols/Aws_json1_1";
6
- var DescribeEventAggregatesCommand = (function (_super) {
7
- __extends(DescribeEventAggregatesCommand, _super);
8
- function DescribeEventAggregatesCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DescribeEventAggregatesCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DescribeEventAggregatesCommand.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 = "HealthClient";
18
- var commandName = "DescribeEventAggregatesCommand";
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 = "HealthClient";
15
+ const commandName = "DescribeEventAggregatesCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DescribeEventAggregatesRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DescribeEventAggregatesResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DescribeEventAggregatesCommand.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_1DescribeEventAggregatesCommand(input, context);
33
- };
34
- DescribeEventAggregatesCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_json1_1DescribeEventAggregatesCommand(output, context);
36
- };
37
- return DescribeEventAggregatesCommand;
38
- }($Command));
39
- export { DescribeEventAggregatesCommand };
31
+ }
32
+ }