@aws-sdk/client-license-manager-user-subscriptions 3.180.0 → 3.183.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +16 -10
  3. package/dist-es/LicenseManagerUserSubscriptions.js +42 -49
  4. package/dist-es/LicenseManagerUserSubscriptionsClient.js +22 -28
  5. package/dist-es/commands/AssociateUserCommand.js +21 -28
  6. package/dist-es/commands/DeregisterIdentityProviderCommand.js +21 -28
  7. package/dist-es/commands/DisassociateUserCommand.js +21 -28
  8. package/dist-es/commands/ListIdentityProvidersCommand.js +21 -28
  9. package/dist-es/commands/ListInstancesCommand.js +21 -28
  10. package/dist-es/commands/ListProductSubscriptionsCommand.js +21 -28
  11. package/dist-es/commands/ListUserAssociationsCommand.js +21 -28
  12. package/dist-es/commands/RegisterIdentityProviderCommand.js +21 -28
  13. package/dist-es/commands/StartProductSubscriptionCommand.js +21 -28
  14. package/dist-es/commands/StopProductSubscriptionCommand.js +21 -28
  15. package/dist-es/endpoints.js +8 -8
  16. package/dist-es/models/LicenseManagerUserSubscriptionsServiceException.js +5 -10
  17. package/dist-es/models/models_0.js +191 -123
  18. package/dist-es/pagination/ListIdentityProvidersPaginator.js +25 -68
  19. package/dist-es/pagination/ListInstancesPaginator.js +25 -68
  20. package/dist-es/pagination/ListProductSubscriptionsPaginator.js +25 -68
  21. package/dist-es/pagination/ListUserAssociationsPaginator.js +25 -68
  22. package/dist-es/protocols/Aws_restJson1.js +884 -1189
  23. package/dist-es/runtimeConfig.browser.js +26 -12
  24. package/dist-es/runtimeConfig.js +30 -12
  25. package/dist-es/runtimeConfig.native.js +8 -5
  26. package/dist-es/runtimeConfig.shared.js +8 -11
  27. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,26 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-license-manager-user-subscriptions
9
+
10
+
11
+
12
+
13
+
14
+ # [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
20
+ * **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
21
+
22
+
23
+
24
+
25
+
6
26
  # [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
7
27
 
8
28
  **Note:** Version bump only for package @aws-sdk/client-license-manager-user-subscriptions
@@ -275,7 +275,7 @@ exports.deserializeAws_restJson1AssociateUserCommand = deserializeAws_restJson1A
275
275
  const deserializeAws_restJson1AssociateUserCommandError = async (output, context) => {
276
276
  const parsedOutput = {
277
277
  ...output,
278
- body: await parseBody(output.body, context),
278
+ body: await parseErrorBody(output.body, context),
279
279
  };
280
280
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
281
281
  switch (errorCode) {
@@ -327,7 +327,7 @@ exports.deserializeAws_restJson1DeregisterIdentityProviderCommand = deserializeA
327
327
  const deserializeAws_restJson1DeregisterIdentityProviderCommandError = async (output, context) => {
328
328
  const parsedOutput = {
329
329
  ...output,
330
- body: await parseBody(output.body, context),
330
+ body: await parseErrorBody(output.body, context),
331
331
  };
332
332
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
333
333
  switch (errorCode) {
@@ -379,7 +379,7 @@ exports.deserializeAws_restJson1DisassociateUserCommand = deserializeAws_restJso
379
379
  const deserializeAws_restJson1DisassociateUserCommandError = async (output, context) => {
380
380
  const parsedOutput = {
381
381
  ...output,
382
- body: await parseBody(output.body, context),
382
+ body: await parseErrorBody(output.body, context),
383
383
  };
384
384
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
385
385
  switch (errorCode) {
@@ -434,7 +434,7 @@ exports.deserializeAws_restJson1ListIdentityProvidersCommand = deserializeAws_re
434
434
  const deserializeAws_restJson1ListIdentityProvidersCommandError = async (output, context) => {
435
435
  const parsedOutput = {
436
436
  ...output,
437
- body: await parseBody(output.body, context),
437
+ body: await parseErrorBody(output.body, context),
438
438
  };
439
439
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
440
440
  switch (errorCode) {
@@ -489,7 +489,7 @@ exports.deserializeAws_restJson1ListInstancesCommand = deserializeAws_restJson1L
489
489
  const deserializeAws_restJson1ListInstancesCommandError = async (output, context) => {
490
490
  const parsedOutput = {
491
491
  ...output,
492
- body: await parseBody(output.body, context),
492
+ body: await parseErrorBody(output.body, context),
493
493
  };
494
494
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
495
495
  switch (errorCode) {
@@ -544,7 +544,7 @@ exports.deserializeAws_restJson1ListProductSubscriptionsCommand = deserializeAws
544
544
  const deserializeAws_restJson1ListProductSubscriptionsCommandError = async (output, context) => {
545
545
  const parsedOutput = {
546
546
  ...output,
547
- body: await parseBody(output.body, context),
547
+ body: await parseErrorBody(output.body, context),
548
548
  };
549
549
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
550
550
  switch (errorCode) {
@@ -599,7 +599,7 @@ exports.deserializeAws_restJson1ListUserAssociationsCommand = deserializeAws_res
599
599
  const deserializeAws_restJson1ListUserAssociationsCommandError = async (output, context) => {
600
600
  const parsedOutput = {
601
601
  ...output,
602
- body: await parseBody(output.body, context),
602
+ body: await parseErrorBody(output.body, context),
603
603
  };
604
604
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
605
605
  switch (errorCode) {
@@ -651,7 +651,7 @@ exports.deserializeAws_restJson1RegisterIdentityProviderCommand = deserializeAws
651
651
  const deserializeAws_restJson1RegisterIdentityProviderCommandError = async (output, context) => {
652
652
  const parsedOutput = {
653
653
  ...output,
654
- body: await parseBody(output.body, context),
654
+ body: await parseErrorBody(output.body, context),
655
655
  };
656
656
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
657
657
  switch (errorCode) {
@@ -703,7 +703,7 @@ exports.deserializeAws_restJson1StartProductSubscriptionCommand = deserializeAws
703
703
  const deserializeAws_restJson1StartProductSubscriptionCommandError = async (output, context) => {
704
704
  const parsedOutput = {
705
705
  ...output,
706
- body: await parseBody(output.body, context),
706
+ body: await parseErrorBody(output.body, context),
707
707
  };
708
708
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
709
709
  switch (errorCode) {
@@ -755,7 +755,7 @@ exports.deserializeAws_restJson1StopProductSubscriptionCommand = deserializeAws_
755
755
  const deserializeAws_restJson1StopProductSubscriptionCommandError = async (output, context) => {
756
756
  const parsedOutput = {
757
757
  ...output,
758
- body: await parseBody(output.body, context),
758
+ body: await parseErrorBody(output.body, context),
759
759
  };
760
760
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
761
761
  switch (errorCode) {
@@ -1044,6 +1044,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1044
1044
  }
1045
1045
  return {};
1046
1046
  });
1047
+ const parseErrorBody = async (errorBody, context) => {
1048
+ var _a;
1049
+ const value = await parseBody(errorBody, context);
1050
+ value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
1051
+ return value;
1052
+ };
1047
1053
  const loadRestJsonErrorCode = (output, data) => {
1048
1054
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
1049
1055
  const sanitizeErrorCode = (rawValue) => {
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateUserCommand, } from "./commands/AssociateUserCommand";
3
2
  import { DeregisterIdentityProviderCommand, } from "./commands/DeregisterIdentityProviderCommand";
4
3
  import { DisassociateUserCommand, } from "./commands/DisassociateUserCommand";
@@ -10,151 +9,145 @@ import { RegisterIdentityProviderCommand, } from "./commands/RegisterIdentityPro
10
9
  import { StartProductSubscriptionCommand, } from "./commands/StartProductSubscriptionCommand";
11
10
  import { StopProductSubscriptionCommand, } from "./commands/StopProductSubscriptionCommand";
12
11
  import { LicenseManagerUserSubscriptionsClient } from "./LicenseManagerUserSubscriptionsClient";
13
- var LicenseManagerUserSubscriptions = (function (_super) {
14
- __extends(LicenseManagerUserSubscriptions, _super);
15
- function LicenseManagerUserSubscriptions() {
16
- return _super !== null && _super.apply(this, arguments) || this;
17
- }
18
- LicenseManagerUserSubscriptions.prototype.associateUser = function (args, optionsOrCb, cb) {
19
- var command = new AssociateUserCommand(args);
12
+ export class LicenseManagerUserSubscriptions extends LicenseManagerUserSubscriptionsClient {
13
+ associateUser(args, optionsOrCb, cb) {
14
+ const command = new AssociateUserCommand(args);
20
15
  if (typeof optionsOrCb === "function") {
21
16
  this.send(command, optionsOrCb);
22
17
  }
23
18
  else if (typeof cb === "function") {
24
19
  if (typeof optionsOrCb !== "object")
25
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
20
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
26
21
  this.send(command, optionsOrCb || {}, cb);
27
22
  }
28
23
  else {
29
24
  return this.send(command, optionsOrCb);
30
25
  }
31
- };
32
- LicenseManagerUserSubscriptions.prototype.deregisterIdentityProvider = function (args, optionsOrCb, cb) {
33
- var command = new DeregisterIdentityProviderCommand(args);
26
+ }
27
+ deregisterIdentityProvider(args, optionsOrCb, cb) {
28
+ const command = new DeregisterIdentityProviderCommand(args);
34
29
  if (typeof optionsOrCb === "function") {
35
30
  this.send(command, optionsOrCb);
36
31
  }
37
32
  else if (typeof cb === "function") {
38
33
  if (typeof optionsOrCb !== "object")
39
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
34
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
40
35
  this.send(command, optionsOrCb || {}, cb);
41
36
  }
42
37
  else {
43
38
  return this.send(command, optionsOrCb);
44
39
  }
45
- };
46
- LicenseManagerUserSubscriptions.prototype.disassociateUser = function (args, optionsOrCb, cb) {
47
- var command = new DisassociateUserCommand(args);
40
+ }
41
+ disassociateUser(args, optionsOrCb, cb) {
42
+ const command = new DisassociateUserCommand(args);
48
43
  if (typeof optionsOrCb === "function") {
49
44
  this.send(command, optionsOrCb);
50
45
  }
51
46
  else if (typeof cb === "function") {
52
47
  if (typeof optionsOrCb !== "object")
53
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
48
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
54
49
  this.send(command, optionsOrCb || {}, cb);
55
50
  }
56
51
  else {
57
52
  return this.send(command, optionsOrCb);
58
53
  }
59
- };
60
- LicenseManagerUserSubscriptions.prototype.listIdentityProviders = function (args, optionsOrCb, cb) {
61
- var command = new ListIdentityProvidersCommand(args);
54
+ }
55
+ listIdentityProviders(args, optionsOrCb, cb) {
56
+ const command = new ListIdentityProvidersCommand(args);
62
57
  if (typeof optionsOrCb === "function") {
63
58
  this.send(command, optionsOrCb);
64
59
  }
65
60
  else if (typeof cb === "function") {
66
61
  if (typeof optionsOrCb !== "object")
67
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
62
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
68
63
  this.send(command, optionsOrCb || {}, cb);
69
64
  }
70
65
  else {
71
66
  return this.send(command, optionsOrCb);
72
67
  }
73
- };
74
- LicenseManagerUserSubscriptions.prototype.listInstances = function (args, optionsOrCb, cb) {
75
- var command = new ListInstancesCommand(args);
68
+ }
69
+ listInstances(args, optionsOrCb, cb) {
70
+ const command = new ListInstancesCommand(args);
76
71
  if (typeof optionsOrCb === "function") {
77
72
  this.send(command, optionsOrCb);
78
73
  }
79
74
  else if (typeof cb === "function") {
80
75
  if (typeof optionsOrCb !== "object")
81
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
76
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
82
77
  this.send(command, optionsOrCb || {}, cb);
83
78
  }
84
79
  else {
85
80
  return this.send(command, optionsOrCb);
86
81
  }
87
- };
88
- LicenseManagerUserSubscriptions.prototype.listProductSubscriptions = function (args, optionsOrCb, cb) {
89
- var command = new ListProductSubscriptionsCommand(args);
82
+ }
83
+ listProductSubscriptions(args, optionsOrCb, cb) {
84
+ const command = new ListProductSubscriptionsCommand(args);
90
85
  if (typeof optionsOrCb === "function") {
91
86
  this.send(command, optionsOrCb);
92
87
  }
93
88
  else if (typeof cb === "function") {
94
89
  if (typeof optionsOrCb !== "object")
95
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
90
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
96
91
  this.send(command, optionsOrCb || {}, cb);
97
92
  }
98
93
  else {
99
94
  return this.send(command, optionsOrCb);
100
95
  }
101
- };
102
- LicenseManagerUserSubscriptions.prototype.listUserAssociations = function (args, optionsOrCb, cb) {
103
- var command = new ListUserAssociationsCommand(args);
96
+ }
97
+ listUserAssociations(args, optionsOrCb, cb) {
98
+ const command = new ListUserAssociationsCommand(args);
104
99
  if (typeof optionsOrCb === "function") {
105
100
  this.send(command, optionsOrCb);
106
101
  }
107
102
  else if (typeof cb === "function") {
108
103
  if (typeof optionsOrCb !== "object")
109
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
104
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
110
105
  this.send(command, optionsOrCb || {}, cb);
111
106
  }
112
107
  else {
113
108
  return this.send(command, optionsOrCb);
114
109
  }
115
- };
116
- LicenseManagerUserSubscriptions.prototype.registerIdentityProvider = function (args, optionsOrCb, cb) {
117
- var command = new RegisterIdentityProviderCommand(args);
110
+ }
111
+ registerIdentityProvider(args, optionsOrCb, cb) {
112
+ const command = new RegisterIdentityProviderCommand(args);
118
113
  if (typeof optionsOrCb === "function") {
119
114
  this.send(command, optionsOrCb);
120
115
  }
121
116
  else if (typeof cb === "function") {
122
117
  if (typeof optionsOrCb !== "object")
123
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
118
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
124
119
  this.send(command, optionsOrCb || {}, cb);
125
120
  }
126
121
  else {
127
122
  return this.send(command, optionsOrCb);
128
123
  }
129
- };
130
- LicenseManagerUserSubscriptions.prototype.startProductSubscription = function (args, optionsOrCb, cb) {
131
- var command = new StartProductSubscriptionCommand(args);
124
+ }
125
+ startProductSubscription(args, optionsOrCb, cb) {
126
+ const command = new StartProductSubscriptionCommand(args);
132
127
  if (typeof optionsOrCb === "function") {
133
128
  this.send(command, optionsOrCb);
134
129
  }
135
130
  else if (typeof cb === "function") {
136
131
  if (typeof optionsOrCb !== "object")
137
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
132
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
138
133
  this.send(command, optionsOrCb || {}, cb);
139
134
  }
140
135
  else {
141
136
  return this.send(command, optionsOrCb);
142
137
  }
143
- };
144
- LicenseManagerUserSubscriptions.prototype.stopProductSubscription = function (args, optionsOrCb, cb) {
145
- var command = new StopProductSubscriptionCommand(args);
138
+ }
139
+ stopProductSubscription(args, optionsOrCb, cb) {
140
+ const command = new StopProductSubscriptionCommand(args);
146
141
  if (typeof optionsOrCb === "function") {
147
142
  this.send(command, optionsOrCb);
148
143
  }
149
144
  else if (typeof cb === "function") {
150
145
  if (typeof optionsOrCb !== "object")
151
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
146
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
152
147
  this.send(command, optionsOrCb || {}, cb);
153
148
  }
154
149
  else {
155
150
  return this.send(command, optionsOrCb);
156
151
  }
157
- };
158
- return LicenseManagerUserSubscriptions;
159
- }(LicenseManagerUserSubscriptionsClient));
160
- export { LicenseManagerUserSubscriptions };
152
+ }
153
+ }
@@ -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 LicenseManagerUserSubscriptionsClient = (function (_super) {
13
- __extends(LicenseManagerUserSubscriptionsClient, _super);
14
- function LicenseManagerUserSubscriptionsClient(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 LicenseManagerUserSubscriptionsClient 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
- LicenseManagerUserSubscriptionsClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return LicenseManagerUserSubscriptionsClient;
38
- }(__Client));
39
- export { LicenseManagerUserSubscriptionsClient };
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 { AssociateUserRequestFilterSensitiveLog, AssociateUserResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1AssociateUserCommand, serializeAws_restJson1AssociateUserCommand, } from "../protocols/Aws_restJson1";
6
- var AssociateUserCommand = (function (_super) {
7
- __extends(AssociateUserCommand, _super);
8
- function AssociateUserCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class AssociateUserCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- AssociateUserCommand.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 = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "AssociateUserCommand";
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 = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "AssociateUserCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: AssociateUserRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: AssociateUserResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- AssociateUserCommand.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_restJson1AssociateUserCommand(input, context);
33
- };
34
- AssociateUserCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1AssociateUserCommand(output, context);
36
- };
37
- return AssociateUserCommand;
38
- }($Command));
39
- export { AssociateUserCommand };
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 { DeregisterIdentityProviderRequestFilterSensitiveLog, DeregisterIdentityProviderResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DeregisterIdentityProviderCommand, serializeAws_restJson1DeregisterIdentityProviderCommand, } from "../protocols/Aws_restJson1";
6
- var DeregisterIdentityProviderCommand = (function (_super) {
7
- __extends(DeregisterIdentityProviderCommand, _super);
8
- function DeregisterIdentityProviderCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DeregisterIdentityProviderCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DeregisterIdentityProviderCommand.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 = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "DeregisterIdentityProviderCommand";
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 = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "DeregisterIdentityProviderCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DeregisterIdentityProviderRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DeregisterIdentityProviderResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DeregisterIdentityProviderCommand.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_restJson1DeregisterIdentityProviderCommand(input, context);
33
- };
34
- DeregisterIdentityProviderCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DeregisterIdentityProviderCommand(output, context);
36
- };
37
- return DeregisterIdentityProviderCommand;
38
- }($Command));
39
- export { DeregisterIdentityProviderCommand };
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 { DisassociateUserRequestFilterSensitiveLog, DisassociateUserResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1DisassociateUserCommand, serializeAws_restJson1DisassociateUserCommand, } from "../protocols/Aws_restJson1";
6
- var DisassociateUserCommand = (function (_super) {
7
- __extends(DisassociateUserCommand, _super);
8
- function DisassociateUserCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class DisassociateUserCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- DisassociateUserCommand.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 = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "DisassociateUserCommand";
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 = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "DisassociateUserCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: DisassociateUserRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: DisassociateUserResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- DisassociateUserCommand.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_restJson1DisassociateUserCommand(input, context);
33
- };
34
- DisassociateUserCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1DisassociateUserCommand(output, context);
36
- };
37
- return DisassociateUserCommand;
38
- }($Command));
39
- export { DisassociateUserCommand };
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 { ListIdentityProvidersRequestFilterSensitiveLog, ListIdentityProvidersResponseFilterSensitiveLog, } from "../models/models_0";
5
4
  import { deserializeAws_restJson1ListIdentityProvidersCommand, serializeAws_restJson1ListIdentityProvidersCommand, } from "../protocols/Aws_restJson1";
6
- var ListIdentityProvidersCommand = (function (_super) {
7
- __extends(ListIdentityProvidersCommand, _super);
8
- function ListIdentityProvidersCommand(input) {
9
- var _this = _super.call(this) || this;
10
- _this.input = input;
11
- return _this;
5
+ export class ListIdentityProvidersCommand extends $Command {
6
+ constructor(input) {
7
+ super();
8
+ this.input = input;
12
9
  }
13
- ListIdentityProvidersCommand.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 = "LicenseManagerUserSubscriptionsClient";
18
- var commandName = "ListIdentityProvidersCommand";
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 = "LicenseManagerUserSubscriptionsClient";
15
+ const commandName = "ListIdentityProvidersCommand";
16
+ const handlerExecutionContext = {
17
+ logger,
18
+ clientName,
19
+ commandName,
23
20
  inputFilterSensitiveLog: ListIdentityProvidersRequestFilterSensitiveLog,
24
21
  outputFilterSensitiveLog: ListIdentityProvidersResponseFilterSensitiveLog,
25
22
  };
26
- var requestHandler = configuration.requestHandler;
27
- return stack.resolve(function (request) {
28
- return requestHandler.handle(request.request, options || {});
29
- }, handlerExecutionContext);
30
- };
31
- ListIdentityProvidersCommand.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_restJson1ListIdentityProvidersCommand(input, context);
33
- };
34
- ListIdentityProvidersCommand.prototype.deserialize = function (output, context) {
28
+ }
29
+ deserialize(output, context) {
35
30
  return deserializeAws_restJson1ListIdentityProvidersCommand(output, context);
36
- };
37
- return ListIdentityProvidersCommand;
38
- }($Command));
39
- export { ListIdentityProvidersCommand };
31
+ }
32
+ }