@aws-sdk/client-license-manager-user-subscriptions 3.312.0 → 3.316.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LicenseManagerUserSubscriptions = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AssociateUserCommand_1 = require("./commands/AssociateUserCommand");
5
6
  const DeregisterIdentityProviderCommand_1 = require("./commands/DeregisterIdentityProviderCommand");
6
7
  const DisassociateUserCommand_1 = require("./commands/DisassociateUserCommand");
@@ -13,160 +14,20 @@ const StartProductSubscriptionCommand_1 = require("./commands/StartProductSubscr
13
14
  const StopProductSubscriptionCommand_1 = require("./commands/StopProductSubscriptionCommand");
14
15
  const UpdateIdentityProviderSettingsCommand_1 = require("./commands/UpdateIdentityProviderSettingsCommand");
15
16
  const LicenseManagerUserSubscriptionsClient_1 = require("./LicenseManagerUserSubscriptionsClient");
17
+ const commands = {
18
+ AssociateUserCommand: AssociateUserCommand_1.AssociateUserCommand,
19
+ DeregisterIdentityProviderCommand: DeregisterIdentityProviderCommand_1.DeregisterIdentityProviderCommand,
20
+ DisassociateUserCommand: DisassociateUserCommand_1.DisassociateUserCommand,
21
+ ListIdentityProvidersCommand: ListIdentityProvidersCommand_1.ListIdentityProvidersCommand,
22
+ ListInstancesCommand: ListInstancesCommand_1.ListInstancesCommand,
23
+ ListProductSubscriptionsCommand: ListProductSubscriptionsCommand_1.ListProductSubscriptionsCommand,
24
+ ListUserAssociationsCommand: ListUserAssociationsCommand_1.ListUserAssociationsCommand,
25
+ RegisterIdentityProviderCommand: RegisterIdentityProviderCommand_1.RegisterIdentityProviderCommand,
26
+ StartProductSubscriptionCommand: StartProductSubscriptionCommand_1.StartProductSubscriptionCommand,
27
+ StopProductSubscriptionCommand: StopProductSubscriptionCommand_1.StopProductSubscriptionCommand,
28
+ UpdateIdentityProviderSettingsCommand: UpdateIdentityProviderSettingsCommand_1.UpdateIdentityProviderSettingsCommand,
29
+ };
16
30
  class LicenseManagerUserSubscriptions extends LicenseManagerUserSubscriptionsClient_1.LicenseManagerUserSubscriptionsClient {
17
- associateUser(args, optionsOrCb, cb) {
18
- const command = new AssociateUserCommand_1.AssociateUserCommand(args);
19
- if (typeof optionsOrCb === "function") {
20
- this.send(command, optionsOrCb);
21
- }
22
- else if (typeof cb === "function") {
23
- if (typeof optionsOrCb !== "object")
24
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
25
- this.send(command, optionsOrCb || {}, cb);
26
- }
27
- else {
28
- return this.send(command, optionsOrCb);
29
- }
30
- }
31
- deregisterIdentityProvider(args, optionsOrCb, cb) {
32
- const command = new DeregisterIdentityProviderCommand_1.DeregisterIdentityProviderCommand(args);
33
- if (typeof optionsOrCb === "function") {
34
- this.send(command, optionsOrCb);
35
- }
36
- else if (typeof cb === "function") {
37
- if (typeof optionsOrCb !== "object")
38
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
39
- this.send(command, optionsOrCb || {}, cb);
40
- }
41
- else {
42
- return this.send(command, optionsOrCb);
43
- }
44
- }
45
- disassociateUser(args, optionsOrCb, cb) {
46
- const command = new DisassociateUserCommand_1.DisassociateUserCommand(args);
47
- if (typeof optionsOrCb === "function") {
48
- this.send(command, optionsOrCb);
49
- }
50
- else if (typeof cb === "function") {
51
- if (typeof optionsOrCb !== "object")
52
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
53
- this.send(command, optionsOrCb || {}, cb);
54
- }
55
- else {
56
- return this.send(command, optionsOrCb);
57
- }
58
- }
59
- listIdentityProviders(args, optionsOrCb, cb) {
60
- const command = new ListIdentityProvidersCommand_1.ListIdentityProvidersCommand(args);
61
- if (typeof optionsOrCb === "function") {
62
- this.send(command, optionsOrCb);
63
- }
64
- else if (typeof cb === "function") {
65
- if (typeof optionsOrCb !== "object")
66
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
67
- this.send(command, optionsOrCb || {}, cb);
68
- }
69
- else {
70
- return this.send(command, optionsOrCb);
71
- }
72
- }
73
- listInstances(args, optionsOrCb, cb) {
74
- const command = new ListInstancesCommand_1.ListInstancesCommand(args);
75
- if (typeof optionsOrCb === "function") {
76
- this.send(command, optionsOrCb);
77
- }
78
- else if (typeof cb === "function") {
79
- if (typeof optionsOrCb !== "object")
80
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
81
- this.send(command, optionsOrCb || {}, cb);
82
- }
83
- else {
84
- return this.send(command, optionsOrCb);
85
- }
86
- }
87
- listProductSubscriptions(args, optionsOrCb, cb) {
88
- const command = new ListProductSubscriptionsCommand_1.ListProductSubscriptionsCommand(args);
89
- if (typeof optionsOrCb === "function") {
90
- this.send(command, optionsOrCb);
91
- }
92
- else if (typeof cb === "function") {
93
- if (typeof optionsOrCb !== "object")
94
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
- this.send(command, optionsOrCb || {}, cb);
96
- }
97
- else {
98
- return this.send(command, optionsOrCb);
99
- }
100
- }
101
- listUserAssociations(args, optionsOrCb, cb) {
102
- const command = new ListUserAssociationsCommand_1.ListUserAssociationsCommand(args);
103
- if (typeof optionsOrCb === "function") {
104
- this.send(command, optionsOrCb);
105
- }
106
- else if (typeof cb === "function") {
107
- if (typeof optionsOrCb !== "object")
108
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
109
- this.send(command, optionsOrCb || {}, cb);
110
- }
111
- else {
112
- return this.send(command, optionsOrCb);
113
- }
114
- }
115
- registerIdentityProvider(args, optionsOrCb, cb) {
116
- const command = new RegisterIdentityProviderCommand_1.RegisterIdentityProviderCommand(args);
117
- if (typeof optionsOrCb === "function") {
118
- this.send(command, optionsOrCb);
119
- }
120
- else if (typeof cb === "function") {
121
- if (typeof optionsOrCb !== "object")
122
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
123
- this.send(command, optionsOrCb || {}, cb);
124
- }
125
- else {
126
- return this.send(command, optionsOrCb);
127
- }
128
- }
129
- startProductSubscription(args, optionsOrCb, cb) {
130
- const command = new StartProductSubscriptionCommand_1.StartProductSubscriptionCommand(args);
131
- if (typeof optionsOrCb === "function") {
132
- this.send(command, optionsOrCb);
133
- }
134
- else if (typeof cb === "function") {
135
- if (typeof optionsOrCb !== "object")
136
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
137
- this.send(command, optionsOrCb || {}, cb);
138
- }
139
- else {
140
- return this.send(command, optionsOrCb);
141
- }
142
- }
143
- stopProductSubscription(args, optionsOrCb, cb) {
144
- const command = new StopProductSubscriptionCommand_1.StopProductSubscriptionCommand(args);
145
- if (typeof optionsOrCb === "function") {
146
- this.send(command, optionsOrCb);
147
- }
148
- else if (typeof cb === "function") {
149
- if (typeof optionsOrCb !== "object")
150
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
151
- this.send(command, optionsOrCb || {}, cb);
152
- }
153
- else {
154
- return this.send(command, optionsOrCb);
155
- }
156
- }
157
- updateIdentityProviderSettings(args, optionsOrCb, cb) {
158
- const command = new UpdateIdentityProviderSettingsCommand_1.UpdateIdentityProviderSettingsCommand(args);
159
- if (typeof optionsOrCb === "function") {
160
- this.send(command, optionsOrCb);
161
- }
162
- else if (typeof cb === "function") {
163
- if (typeof optionsOrCb !== "object")
164
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
165
- this.send(command, optionsOrCb || {}, cb);
166
- }
167
- else {
168
- return this.send(command, optionsOrCb);
169
- }
170
- }
171
31
  }
172
32
  exports.LicenseManagerUserSubscriptions = LicenseManagerUserSubscriptions;
33
+ (0, smithy_client_1.createAggregatedClient)(commands, LicenseManagerUserSubscriptions);