@aws-sdk/client-license-manager-user-subscriptions 3.474.0 → 3.477.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,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.de_UpdateIdentityProviderSettingsCommand = exports.de_StopProductSubscriptionCommand = exports.de_StartProductSubscriptionCommand = exports.de_RegisterIdentityProviderCommand = exports.de_ListUserAssociationsCommand = exports.de_ListProductSubscriptionsCommand = exports.de_ListInstancesCommand = exports.de_ListIdentityProvidersCommand = exports.de_DisassociateUserCommand = exports.de_DeregisterIdentityProviderCommand = exports.de_AssociateUserCommand = exports.se_UpdateIdentityProviderSettingsCommand = exports.se_StopProductSubscriptionCommand = exports.se_StartProductSubscriptionCommand = exports.se_RegisterIdentityProviderCommand = exports.se_ListUserAssociationsCommand = exports.se_ListProductSubscriptionsCommand = exports.se_ListInstancesCommand = exports.se_ListIdentityProvidersCommand = exports.se_DisassociateUserCommand = exports.se_DeregisterIdentityProviderCommand = exports.se_AssociateUserCommand = void 0;
4
- const protocol_http_1 = require("@smithy/protocol-http");
4
+ const core_1 = require("@smithy/core");
5
5
  const smithy_client_1 = require("@smithy/smithy-client");
6
6
  const LicenseManagerUserSubscriptionsServiceException_1 = require("../models/LicenseManagerUserSubscriptionsServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const se_AssociateUserCommand = async (input, context) => {
9
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
9
+ const b = (0, core_1.requestBuilder)(input, context);
10
10
  const headers = {
11
11
  "content-type": "application/json",
12
12
  };
13
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/AssociateUser";
13
+ b.bp("/user/AssociateUser");
14
14
  let body;
15
15
  body = JSON.stringify((0, smithy_client_1.take)(input, {
16
16
  Domain: [],
@@ -18,46 +18,31 @@ const se_AssociateUserCommand = async (input, context) => {
18
18
  InstanceId: [],
19
19
  Username: [],
20
20
  }));
21
- return new protocol_http_1.HttpRequest({
22
- protocol,
23
- hostname,
24
- port,
25
- method: "POST",
26
- headers,
27
- path: resolvedPath,
28
- body,
29
- });
21
+ b.m("POST").h(headers).b(body);
22
+ return b.build();
30
23
  };
31
24
  exports.se_AssociateUserCommand = se_AssociateUserCommand;
32
25
  const se_DeregisterIdentityProviderCommand = async (input, context) => {
33
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
26
+ const b = (0, core_1.requestBuilder)(input, context);
34
27
  const headers = {
35
28
  "content-type": "application/json",
36
29
  };
37
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
38
- "/identity-provider/DeregisterIdentityProvider";
30
+ b.bp("/identity-provider/DeregisterIdentityProvider");
39
31
  let body;
40
32
  body = JSON.stringify((0, smithy_client_1.take)(input, {
41
33
  IdentityProvider: (_) => (0, smithy_client_1._json)(_),
42
34
  Product: [],
43
35
  }));
44
- return new protocol_http_1.HttpRequest({
45
- protocol,
46
- hostname,
47
- port,
48
- method: "POST",
49
- headers,
50
- path: resolvedPath,
51
- body,
52
- });
36
+ b.m("POST").h(headers).b(body);
37
+ return b.build();
53
38
  };
54
39
  exports.se_DeregisterIdentityProviderCommand = se_DeregisterIdentityProviderCommand;
55
40
  const se_DisassociateUserCommand = async (input, context) => {
56
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
41
+ const b = (0, core_1.requestBuilder)(input, context);
57
42
  const headers = {
58
43
  "content-type": "application/json",
59
44
  };
60
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/DisassociateUser";
45
+ b.bp("/user/DisassociateUser");
61
46
  let body;
62
47
  body = JSON.stringify((0, smithy_client_1.take)(input, {
63
48
  Domain: [],
@@ -65,68 +50,47 @@ const se_DisassociateUserCommand = async (input, context) => {
65
50
  InstanceId: [],
66
51
  Username: [],
67
52
  }));
68
- return new protocol_http_1.HttpRequest({
69
- protocol,
70
- hostname,
71
- port,
72
- method: "POST",
73
- headers,
74
- path: resolvedPath,
75
- body,
76
- });
53
+ b.m("POST").h(headers).b(body);
54
+ return b.build();
77
55
  };
78
56
  exports.se_DisassociateUserCommand = se_DisassociateUserCommand;
79
57
  const se_ListIdentityProvidersCommand = async (input, context) => {
80
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
58
+ const b = (0, core_1.requestBuilder)(input, context);
81
59
  const headers = {
82
60
  "content-type": "application/json",
83
61
  };
84
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identity-provider/ListIdentityProviders";
62
+ b.bp("/identity-provider/ListIdentityProviders");
85
63
  let body;
86
64
  body = JSON.stringify((0, smithy_client_1.take)(input, {
87
65
  MaxResults: [],
88
66
  NextToken: [],
89
67
  }));
90
- return new protocol_http_1.HttpRequest({
91
- protocol,
92
- hostname,
93
- port,
94
- method: "POST",
95
- headers,
96
- path: resolvedPath,
97
- body,
98
- });
68
+ b.m("POST").h(headers).b(body);
69
+ return b.build();
99
70
  };
100
71
  exports.se_ListIdentityProvidersCommand = se_ListIdentityProvidersCommand;
101
72
  const se_ListInstancesCommand = async (input, context) => {
102
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
73
+ const b = (0, core_1.requestBuilder)(input, context);
103
74
  const headers = {
104
75
  "content-type": "application/json",
105
76
  };
106
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/ListInstances";
77
+ b.bp("/instance/ListInstances");
107
78
  let body;
108
79
  body = JSON.stringify((0, smithy_client_1.take)(input, {
109
80
  Filters: (_) => (0, smithy_client_1._json)(_),
110
81
  MaxResults: [],
111
82
  NextToken: [],
112
83
  }));
113
- return new protocol_http_1.HttpRequest({
114
- protocol,
115
- hostname,
116
- port,
117
- method: "POST",
118
- headers,
119
- path: resolvedPath,
120
- body,
121
- });
84
+ b.m("POST").h(headers).b(body);
85
+ return b.build();
122
86
  };
123
87
  exports.se_ListInstancesCommand = se_ListInstancesCommand;
124
88
  const se_ListProductSubscriptionsCommand = async (input, context) => {
125
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
89
+ const b = (0, core_1.requestBuilder)(input, context);
126
90
  const headers = {
127
91
  "content-type": "application/json",
128
92
  };
129
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListProductSubscriptions";
93
+ b.bp("/user/ListProductSubscriptions");
130
94
  let body;
131
95
  body = JSON.stringify((0, smithy_client_1.take)(input, {
132
96
  Filters: (_) => (0, smithy_client_1._json)(_),
@@ -135,23 +99,16 @@ const se_ListProductSubscriptionsCommand = async (input, context) => {
135
99
  NextToken: [],
136
100
  Product: [],
137
101
  }));
138
- return new protocol_http_1.HttpRequest({
139
- protocol,
140
- hostname,
141
- port,
142
- method: "POST",
143
- headers,
144
- path: resolvedPath,
145
- body,
146
- });
102
+ b.m("POST").h(headers).b(body);
103
+ return b.build();
147
104
  };
148
105
  exports.se_ListProductSubscriptionsCommand = se_ListProductSubscriptionsCommand;
149
106
  const se_ListUserAssociationsCommand = async (input, context) => {
150
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
107
+ const b = (0, core_1.requestBuilder)(input, context);
151
108
  const headers = {
152
109
  "content-type": "application/json",
153
110
  };
154
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListUserAssociations";
111
+ b.bp("/user/ListUserAssociations");
155
112
  let body;
156
113
  body = JSON.stringify((0, smithy_client_1.take)(input, {
157
114
  Filters: (_) => (0, smithy_client_1._json)(_),
@@ -160,47 +117,32 @@ const se_ListUserAssociationsCommand = async (input, context) => {
160
117
  MaxResults: [],
161
118
  NextToken: [],
162
119
  }));
163
- return new protocol_http_1.HttpRequest({
164
- protocol,
165
- hostname,
166
- port,
167
- method: "POST",
168
- headers,
169
- path: resolvedPath,
170
- body,
171
- });
120
+ b.m("POST").h(headers).b(body);
121
+ return b.build();
172
122
  };
173
123
  exports.se_ListUserAssociationsCommand = se_ListUserAssociationsCommand;
174
124
  const se_RegisterIdentityProviderCommand = async (input, context) => {
175
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
125
+ const b = (0, core_1.requestBuilder)(input, context);
176
126
  const headers = {
177
127
  "content-type": "application/json",
178
128
  };
179
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
180
- "/identity-provider/RegisterIdentityProvider";
129
+ b.bp("/identity-provider/RegisterIdentityProvider");
181
130
  let body;
182
131
  body = JSON.stringify((0, smithy_client_1.take)(input, {
183
132
  IdentityProvider: (_) => (0, smithy_client_1._json)(_),
184
133
  Product: [],
185
134
  Settings: (_) => (0, smithy_client_1._json)(_),
186
135
  }));
187
- return new protocol_http_1.HttpRequest({
188
- protocol,
189
- hostname,
190
- port,
191
- method: "POST",
192
- headers,
193
- path: resolvedPath,
194
- body,
195
- });
136
+ b.m("POST").h(headers).b(body);
137
+ return b.build();
196
138
  };
197
139
  exports.se_RegisterIdentityProviderCommand = se_RegisterIdentityProviderCommand;
198
140
  const se_StartProductSubscriptionCommand = async (input, context) => {
199
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
141
+ const b = (0, core_1.requestBuilder)(input, context);
200
142
  const headers = {
201
143
  "content-type": "application/json",
202
144
  };
203
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StartProductSubscription";
145
+ b.bp("/user/StartProductSubscription");
204
146
  let body;
205
147
  body = JSON.stringify((0, smithy_client_1.take)(input, {
206
148
  Domain: [],
@@ -208,23 +150,16 @@ const se_StartProductSubscriptionCommand = async (input, context) => {
208
150
  Product: [],
209
151
  Username: [],
210
152
  }));
211
- return new protocol_http_1.HttpRequest({
212
- protocol,
213
- hostname,
214
- port,
215
- method: "POST",
216
- headers,
217
- path: resolvedPath,
218
- body,
219
- });
153
+ b.m("POST").h(headers).b(body);
154
+ return b.build();
220
155
  };
221
156
  exports.se_StartProductSubscriptionCommand = se_StartProductSubscriptionCommand;
222
157
  const se_StopProductSubscriptionCommand = async (input, context) => {
223
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
158
+ const b = (0, core_1.requestBuilder)(input, context);
224
159
  const headers = {
225
160
  "content-type": "application/json",
226
161
  };
227
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StopProductSubscription";
162
+ b.bp("/user/StopProductSubscription");
228
163
  let body;
229
164
  body = JSON.stringify((0, smithy_client_1.take)(input, {
230
165
  Domain: [],
@@ -232,39 +167,24 @@ const se_StopProductSubscriptionCommand = async (input, context) => {
232
167
  Product: [],
233
168
  Username: [],
234
169
  }));
235
- return new protocol_http_1.HttpRequest({
236
- protocol,
237
- hostname,
238
- port,
239
- method: "POST",
240
- headers,
241
- path: resolvedPath,
242
- body,
243
- });
170
+ b.m("POST").h(headers).b(body);
171
+ return b.build();
244
172
  };
245
173
  exports.se_StopProductSubscriptionCommand = se_StopProductSubscriptionCommand;
246
174
  const se_UpdateIdentityProviderSettingsCommand = async (input, context) => {
247
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
175
+ const b = (0, core_1.requestBuilder)(input, context);
248
176
  const headers = {
249
177
  "content-type": "application/json",
250
178
  };
251
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
252
- "/identity-provider/UpdateIdentityProviderSettings";
179
+ b.bp("/identity-provider/UpdateIdentityProviderSettings");
253
180
  let body;
254
181
  body = JSON.stringify((0, smithy_client_1.take)(input, {
255
182
  IdentityProvider: (_) => (0, smithy_client_1._json)(_),
256
183
  Product: [],
257
184
  UpdateSettings: (_) => (0, smithy_client_1._json)(_),
258
185
  }));
259
- return new protocol_http_1.HttpRequest({
260
- protocol,
261
- hostname,
262
- port,
263
- method: "POST",
264
- headers,
265
- path: resolvedPath,
266
- body,
267
- });
186
+ b.m("POST").h(headers).b(body);
187
+ return b.build();
268
188
  };
269
189
  exports.se_UpdateIdentityProviderSettingsCommand = se_UpdateIdentityProviderSettingsCommand;
270
190
  const de_AssociateUserCommand = async (output, context) => {
@@ -1,13 +1,13 @@
1
- import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
1
+ import { requestBuilder as rb } from "@smithy/core";
2
2
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { LicenseManagerUserSubscriptionsServiceException as __BaseException } from "../models/LicenseManagerUserSubscriptionsServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
5
  export const se_AssociateUserCommand = async (input, context) => {
6
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
6
+ const b = rb(input, context);
7
7
  const headers = {
8
8
  "content-type": "application/json",
9
9
  };
10
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/AssociateUser";
10
+ b.bp("/user/AssociateUser");
11
11
  let body;
12
12
  body = JSON.stringify(take(input, {
13
13
  Domain: [],
@@ -15,44 +15,29 @@ export const se_AssociateUserCommand = async (input, context) => {
15
15
  InstanceId: [],
16
16
  Username: [],
17
17
  }));
18
- return new __HttpRequest({
19
- protocol,
20
- hostname,
21
- port,
22
- method: "POST",
23
- headers,
24
- path: resolvedPath,
25
- body,
26
- });
18
+ b.m("POST").h(headers).b(body);
19
+ return b.build();
27
20
  };
28
21
  export const se_DeregisterIdentityProviderCommand = async (input, context) => {
29
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
22
+ const b = rb(input, context);
30
23
  const headers = {
31
24
  "content-type": "application/json",
32
25
  };
33
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
34
- "/identity-provider/DeregisterIdentityProvider";
26
+ b.bp("/identity-provider/DeregisterIdentityProvider");
35
27
  let body;
36
28
  body = JSON.stringify(take(input, {
37
29
  IdentityProvider: (_) => _json(_),
38
30
  Product: [],
39
31
  }));
40
- return new __HttpRequest({
41
- protocol,
42
- hostname,
43
- port,
44
- method: "POST",
45
- headers,
46
- path: resolvedPath,
47
- body,
48
- });
32
+ b.m("POST").h(headers).b(body);
33
+ return b.build();
49
34
  };
50
35
  export const se_DisassociateUserCommand = async (input, context) => {
51
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
36
+ const b = rb(input, context);
52
37
  const headers = {
53
38
  "content-type": "application/json",
54
39
  };
55
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/DisassociateUser";
40
+ b.bp("/user/DisassociateUser");
56
41
  let body;
57
42
  body = JSON.stringify(take(input, {
58
43
  Domain: [],
@@ -60,65 +45,44 @@ export const se_DisassociateUserCommand = async (input, context) => {
60
45
  InstanceId: [],
61
46
  Username: [],
62
47
  }));
63
- return new __HttpRequest({
64
- protocol,
65
- hostname,
66
- port,
67
- method: "POST",
68
- headers,
69
- path: resolvedPath,
70
- body,
71
- });
48
+ b.m("POST").h(headers).b(body);
49
+ return b.build();
72
50
  };
73
51
  export const se_ListIdentityProvidersCommand = async (input, context) => {
74
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
52
+ const b = rb(input, context);
75
53
  const headers = {
76
54
  "content-type": "application/json",
77
55
  };
78
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/identity-provider/ListIdentityProviders";
56
+ b.bp("/identity-provider/ListIdentityProviders");
79
57
  let body;
80
58
  body = JSON.stringify(take(input, {
81
59
  MaxResults: [],
82
60
  NextToken: [],
83
61
  }));
84
- return new __HttpRequest({
85
- protocol,
86
- hostname,
87
- port,
88
- method: "POST",
89
- headers,
90
- path: resolvedPath,
91
- body,
92
- });
62
+ b.m("POST").h(headers).b(body);
63
+ return b.build();
93
64
  };
94
65
  export const se_ListInstancesCommand = async (input, context) => {
95
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
66
+ const b = rb(input, context);
96
67
  const headers = {
97
68
  "content-type": "application/json",
98
69
  };
99
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/instance/ListInstances";
70
+ b.bp("/instance/ListInstances");
100
71
  let body;
101
72
  body = JSON.stringify(take(input, {
102
73
  Filters: (_) => _json(_),
103
74
  MaxResults: [],
104
75
  NextToken: [],
105
76
  }));
106
- return new __HttpRequest({
107
- protocol,
108
- hostname,
109
- port,
110
- method: "POST",
111
- headers,
112
- path: resolvedPath,
113
- body,
114
- });
77
+ b.m("POST").h(headers).b(body);
78
+ return b.build();
115
79
  };
116
80
  export const se_ListProductSubscriptionsCommand = async (input, context) => {
117
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
81
+ const b = rb(input, context);
118
82
  const headers = {
119
83
  "content-type": "application/json",
120
84
  };
121
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListProductSubscriptions";
85
+ b.bp("/user/ListProductSubscriptions");
122
86
  let body;
123
87
  body = JSON.stringify(take(input, {
124
88
  Filters: (_) => _json(_),
@@ -127,22 +91,15 @@ export const se_ListProductSubscriptionsCommand = async (input, context) => {
127
91
  NextToken: [],
128
92
  Product: [],
129
93
  }));
130
- return new __HttpRequest({
131
- protocol,
132
- hostname,
133
- port,
134
- method: "POST",
135
- headers,
136
- path: resolvedPath,
137
- body,
138
- });
94
+ b.m("POST").h(headers).b(body);
95
+ return b.build();
139
96
  };
140
97
  export const se_ListUserAssociationsCommand = async (input, context) => {
141
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
98
+ const b = rb(input, context);
142
99
  const headers = {
143
100
  "content-type": "application/json",
144
101
  };
145
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/ListUserAssociations";
102
+ b.bp("/user/ListUserAssociations");
146
103
  let body;
147
104
  body = JSON.stringify(take(input, {
148
105
  Filters: (_) => _json(_),
@@ -151,45 +108,30 @@ export const se_ListUserAssociationsCommand = async (input, context) => {
151
108
  MaxResults: [],
152
109
  NextToken: [],
153
110
  }));
154
- return new __HttpRequest({
155
- protocol,
156
- hostname,
157
- port,
158
- method: "POST",
159
- headers,
160
- path: resolvedPath,
161
- body,
162
- });
111
+ b.m("POST").h(headers).b(body);
112
+ return b.build();
163
113
  };
164
114
  export const se_RegisterIdentityProviderCommand = async (input, context) => {
165
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
115
+ const b = rb(input, context);
166
116
  const headers = {
167
117
  "content-type": "application/json",
168
118
  };
169
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
170
- "/identity-provider/RegisterIdentityProvider";
119
+ b.bp("/identity-provider/RegisterIdentityProvider");
171
120
  let body;
172
121
  body = JSON.stringify(take(input, {
173
122
  IdentityProvider: (_) => _json(_),
174
123
  Product: [],
175
124
  Settings: (_) => _json(_),
176
125
  }));
177
- return new __HttpRequest({
178
- protocol,
179
- hostname,
180
- port,
181
- method: "POST",
182
- headers,
183
- path: resolvedPath,
184
- body,
185
- });
126
+ b.m("POST").h(headers).b(body);
127
+ return b.build();
186
128
  };
187
129
  export const se_StartProductSubscriptionCommand = async (input, context) => {
188
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
130
+ const b = rb(input, context);
189
131
  const headers = {
190
132
  "content-type": "application/json",
191
133
  };
192
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StartProductSubscription";
134
+ b.bp("/user/StartProductSubscription");
193
135
  let body;
194
136
  body = JSON.stringify(take(input, {
195
137
  Domain: [],
@@ -197,22 +139,15 @@ export const se_StartProductSubscriptionCommand = async (input, context) => {
197
139
  Product: [],
198
140
  Username: [],
199
141
  }));
200
- return new __HttpRequest({
201
- protocol,
202
- hostname,
203
- port,
204
- method: "POST",
205
- headers,
206
- path: resolvedPath,
207
- body,
208
- });
142
+ b.m("POST").h(headers).b(body);
143
+ return b.build();
209
144
  };
210
145
  export const se_StopProductSubscriptionCommand = async (input, context) => {
211
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
146
+ const b = rb(input, context);
212
147
  const headers = {
213
148
  "content-type": "application/json",
214
149
  };
215
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/user/StopProductSubscription";
150
+ b.bp("/user/StopProductSubscription");
216
151
  let body;
217
152
  body = JSON.stringify(take(input, {
218
153
  Domain: [],
@@ -220,38 +155,23 @@ export const se_StopProductSubscriptionCommand = async (input, context) => {
220
155
  Product: [],
221
156
  Username: [],
222
157
  }));
223
- return new __HttpRequest({
224
- protocol,
225
- hostname,
226
- port,
227
- method: "POST",
228
- headers,
229
- path: resolvedPath,
230
- body,
231
- });
158
+ b.m("POST").h(headers).b(body);
159
+ return b.build();
232
160
  };
233
161
  export const se_UpdateIdentityProviderSettingsCommand = async (input, context) => {
234
- const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
162
+ const b = rb(input, context);
235
163
  const headers = {
236
164
  "content-type": "application/json",
237
165
  };
238
- const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
239
- "/identity-provider/UpdateIdentityProviderSettings";
166
+ b.bp("/identity-provider/UpdateIdentityProviderSettings");
240
167
  let body;
241
168
  body = JSON.stringify(take(input, {
242
169
  IdentityProvider: (_) => _json(_),
243
170
  Product: [],
244
171
  UpdateSettings: (_) => _json(_),
245
172
  }));
246
- return new __HttpRequest({
247
- protocol,
248
- hostname,
249
- port,
250
- method: "POST",
251
- headers,
252
- path: resolvedPath,
253
- body,
254
- });
173
+ b.m("POST").h(headers).b(body);
174
+ return b.build();
255
175
  };
256
176
  export const de_AssociateUserCommand = async (output, context) => {
257
177
  if (output.statusCode !== 200 && output.statusCode >= 300) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-license-manager-user-subscriptions",
3
3
  "description": "AWS SDK for JavaScript License Manager User Subscriptions Client for Node.js, Browser and React Native",
4
- "version": "3.474.0",
4
+ "version": "3.477.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.474.0",
24
- "@aws-sdk/core": "3.474.0",
25
- "@aws-sdk/credential-provider-node": "3.474.0",
23
+ "@aws-sdk/client-sts": "3.477.0",
24
+ "@aws-sdk/core": "3.477.0",
25
+ "@aws-sdk/credential-provider-node": "3.477.0",
26
26
  "@aws-sdk/middleware-host-header": "3.468.0",
27
27
  "@aws-sdk/middleware-logger": "3.468.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
@@ -34,6 +34,7 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.468.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.470.0",
36
36
  "@smithy/config-resolver": "^2.0.21",
37
+ "@smithy/core": "^1.2.0",
37
38
  "@smithy/fetch-http-handler": "^2.3.1",
38
39
  "@smithy/hash-node": "^2.0.17",
39
40
  "@smithy/invalid-dependency": "^2.0.15",