@aws-sdk/client-license-manager 3.312.0 → 3.315.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.
@@ -9,350 +9,350 @@ const models_0_1 = require("../models/models_0");
9
9
  const se_AcceptGrantCommand = async (input, context) => {
10
10
  const headers = sharedHeaders("AcceptGrant");
11
11
  let body;
12
- body = JSON.stringify(se_AcceptGrantRequest(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
13
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
14
  };
15
15
  exports.se_AcceptGrantCommand = se_AcceptGrantCommand;
16
16
  const se_CheckInLicenseCommand = async (input, context) => {
17
17
  const headers = sharedHeaders("CheckInLicense");
18
18
  let body;
19
- body = JSON.stringify(se_CheckInLicenseRequest(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
20
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
21
  };
22
22
  exports.se_CheckInLicenseCommand = se_CheckInLicenseCommand;
23
23
  const se_CheckoutBorrowLicenseCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CheckoutBorrowLicense");
25
25
  let body;
26
- body = JSON.stringify(se_CheckoutBorrowLicenseRequest(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  exports.se_CheckoutBorrowLicenseCommand = se_CheckoutBorrowLicenseCommand;
30
30
  const se_CheckoutLicenseCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("CheckoutLicense");
32
32
  let body;
33
- body = JSON.stringify(se_CheckoutLicenseRequest(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  exports.se_CheckoutLicenseCommand = se_CheckoutLicenseCommand;
37
37
  const se_CreateGrantCommand = async (input, context) => {
38
38
  const headers = sharedHeaders("CreateGrant");
39
39
  let body;
40
- body = JSON.stringify(se_CreateGrantRequest(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
41
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
42
  };
43
43
  exports.se_CreateGrantCommand = se_CreateGrantCommand;
44
44
  const se_CreateGrantVersionCommand = async (input, context) => {
45
45
  const headers = sharedHeaders("CreateGrantVersion");
46
46
  let body;
47
- body = JSON.stringify(se_CreateGrantVersionRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
50
  exports.se_CreateGrantVersionCommand = se_CreateGrantVersionCommand;
51
51
  const se_CreateLicenseCommand = async (input, context) => {
52
52
  const headers = sharedHeaders("CreateLicense");
53
53
  let body;
54
- body = JSON.stringify(se_CreateLicenseRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
57
  exports.se_CreateLicenseCommand = se_CreateLicenseCommand;
58
58
  const se_CreateLicenseConfigurationCommand = async (input, context) => {
59
59
  const headers = sharedHeaders("CreateLicenseConfiguration");
60
60
  let body;
61
- body = JSON.stringify(se_CreateLicenseConfigurationRequest(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
62
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
63
63
  };
64
64
  exports.se_CreateLicenseConfigurationCommand = se_CreateLicenseConfigurationCommand;
65
65
  const se_CreateLicenseConversionTaskForResourceCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("CreateLicenseConversionTaskForResource");
67
67
  let body;
68
- body = JSON.stringify(se_CreateLicenseConversionTaskForResourceRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  exports.se_CreateLicenseConversionTaskForResourceCommand = se_CreateLicenseConversionTaskForResourceCommand;
72
72
  const se_CreateLicenseManagerReportGeneratorCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("CreateLicenseManagerReportGenerator");
74
74
  let body;
75
- body = JSON.stringify(se_CreateLicenseManagerReportGeneratorRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  exports.se_CreateLicenseManagerReportGeneratorCommand = se_CreateLicenseManagerReportGeneratorCommand;
79
79
  const se_CreateLicenseVersionCommand = async (input, context) => {
80
80
  const headers = sharedHeaders("CreateLicenseVersion");
81
81
  let body;
82
- body = JSON.stringify(se_CreateLicenseVersionRequest(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
83
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
84
  };
85
85
  exports.se_CreateLicenseVersionCommand = se_CreateLicenseVersionCommand;
86
86
  const se_CreateTokenCommand = async (input, context) => {
87
87
  const headers = sharedHeaders("CreateToken");
88
88
  let body;
89
- body = JSON.stringify(se_CreateTokenRequest(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
90
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
91
  };
92
92
  exports.se_CreateTokenCommand = se_CreateTokenCommand;
93
93
  const se_DeleteGrantCommand = async (input, context) => {
94
94
  const headers = sharedHeaders("DeleteGrant");
95
95
  let body;
96
- body = JSON.stringify(se_DeleteGrantRequest(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
98
  };
99
99
  exports.se_DeleteGrantCommand = se_DeleteGrantCommand;
100
100
  const se_DeleteLicenseCommand = async (input, context) => {
101
101
  const headers = sharedHeaders("DeleteLicense");
102
102
  let body;
103
- body = JSON.stringify(se_DeleteLicenseRequest(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
104
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
105
  };
106
106
  exports.se_DeleteLicenseCommand = se_DeleteLicenseCommand;
107
107
  const se_DeleteLicenseConfigurationCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("DeleteLicenseConfiguration");
109
109
  let body;
110
- body = JSON.stringify(se_DeleteLicenseConfigurationRequest(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  exports.se_DeleteLicenseConfigurationCommand = se_DeleteLicenseConfigurationCommand;
114
114
  const se_DeleteLicenseManagerReportGeneratorCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("DeleteLicenseManagerReportGenerator");
116
116
  let body;
117
- body = JSON.stringify(se_DeleteLicenseManagerReportGeneratorRequest(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  exports.se_DeleteLicenseManagerReportGeneratorCommand = se_DeleteLicenseManagerReportGeneratorCommand;
121
121
  const se_DeleteTokenCommand = async (input, context) => {
122
122
  const headers = sharedHeaders("DeleteToken");
123
123
  let body;
124
- body = JSON.stringify(se_DeleteTokenRequest(input, context));
124
+ body = JSON.stringify((0, smithy_client_1._json)(input));
125
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
126
  };
127
127
  exports.se_DeleteTokenCommand = se_DeleteTokenCommand;
128
128
  const se_ExtendLicenseConsumptionCommand = async (input, context) => {
129
129
  const headers = sharedHeaders("ExtendLicenseConsumption");
130
130
  let body;
131
- body = JSON.stringify(se_ExtendLicenseConsumptionRequest(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
132
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
133
  };
134
134
  exports.se_ExtendLicenseConsumptionCommand = se_ExtendLicenseConsumptionCommand;
135
135
  const se_GetAccessTokenCommand = async (input, context) => {
136
136
  const headers = sharedHeaders("GetAccessToken");
137
137
  let body;
138
- body = JSON.stringify(se_GetAccessTokenRequest(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
139
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
140
  };
141
141
  exports.se_GetAccessTokenCommand = se_GetAccessTokenCommand;
142
142
  const se_GetGrantCommand = async (input, context) => {
143
143
  const headers = sharedHeaders("GetGrant");
144
144
  let body;
145
- body = JSON.stringify(se_GetGrantRequest(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
147
  };
148
148
  exports.se_GetGrantCommand = se_GetGrantCommand;
149
149
  const se_GetLicenseCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("GetLicense");
151
151
  let body;
152
- body = JSON.stringify(se_GetLicenseRequest(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  exports.se_GetLicenseCommand = se_GetLicenseCommand;
156
156
  const se_GetLicenseConfigurationCommand = async (input, context) => {
157
157
  const headers = sharedHeaders("GetLicenseConfiguration");
158
158
  let body;
159
- body = JSON.stringify(se_GetLicenseConfigurationRequest(input, context));
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
160
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
161
  };
162
162
  exports.se_GetLicenseConfigurationCommand = se_GetLicenseConfigurationCommand;
163
163
  const se_GetLicenseConversionTaskCommand = async (input, context) => {
164
164
  const headers = sharedHeaders("GetLicenseConversionTask");
165
165
  let body;
166
- body = JSON.stringify(se_GetLicenseConversionTaskRequest(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
168
  };
169
169
  exports.se_GetLicenseConversionTaskCommand = se_GetLicenseConversionTaskCommand;
170
170
  const se_GetLicenseManagerReportGeneratorCommand = async (input, context) => {
171
171
  const headers = sharedHeaders("GetLicenseManagerReportGenerator");
172
172
  let body;
173
- body = JSON.stringify(se_GetLicenseManagerReportGeneratorRequest(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
174
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
175
  };
176
176
  exports.se_GetLicenseManagerReportGeneratorCommand = se_GetLicenseManagerReportGeneratorCommand;
177
177
  const se_GetLicenseUsageCommand = async (input, context) => {
178
178
  const headers = sharedHeaders("GetLicenseUsage");
179
179
  let body;
180
- body = JSON.stringify(se_GetLicenseUsageRequest(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
181
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
182
  };
183
183
  exports.se_GetLicenseUsageCommand = se_GetLicenseUsageCommand;
184
184
  const se_GetServiceSettingsCommand = async (input, context) => {
185
185
  const headers = sharedHeaders("GetServiceSettings");
186
186
  let body;
187
- body = JSON.stringify(se_GetServiceSettingsRequest(input, context));
187
+ body = JSON.stringify((0, smithy_client_1._json)(input));
188
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
189
189
  };
190
190
  exports.se_GetServiceSettingsCommand = se_GetServiceSettingsCommand;
191
191
  const se_ListAssociationsForLicenseConfigurationCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("ListAssociationsForLicenseConfiguration");
193
193
  let body;
194
- body = JSON.stringify(se_ListAssociationsForLicenseConfigurationRequest(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  exports.se_ListAssociationsForLicenseConfigurationCommand = se_ListAssociationsForLicenseConfigurationCommand;
198
198
  const se_ListDistributedGrantsCommand = async (input, context) => {
199
199
  const headers = sharedHeaders("ListDistributedGrants");
200
200
  let body;
201
- body = JSON.stringify(se_ListDistributedGrantsRequest(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
204
  exports.se_ListDistributedGrantsCommand = se_ListDistributedGrantsCommand;
205
205
  const se_ListFailuresForLicenseConfigurationOperationsCommand = async (input, context) => {
206
206
  const headers = sharedHeaders("ListFailuresForLicenseConfigurationOperations");
207
207
  let body;
208
- body = JSON.stringify(se_ListFailuresForLicenseConfigurationOperationsRequest(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
209
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
210
  };
211
211
  exports.se_ListFailuresForLicenseConfigurationOperationsCommand = se_ListFailuresForLicenseConfigurationOperationsCommand;
212
212
  const se_ListLicenseConfigurationsCommand = async (input, context) => {
213
213
  const headers = sharedHeaders("ListLicenseConfigurations");
214
214
  let body;
215
- body = JSON.stringify(se_ListLicenseConfigurationsRequest(input, context));
215
+ body = JSON.stringify((0, smithy_client_1._json)(input));
216
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
217
  };
218
218
  exports.se_ListLicenseConfigurationsCommand = se_ListLicenseConfigurationsCommand;
219
219
  const se_ListLicenseConversionTasksCommand = async (input, context) => {
220
220
  const headers = sharedHeaders("ListLicenseConversionTasks");
221
221
  let body;
222
- body = JSON.stringify(se_ListLicenseConversionTasksRequest(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
223
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
224
  };
225
225
  exports.se_ListLicenseConversionTasksCommand = se_ListLicenseConversionTasksCommand;
226
226
  const se_ListLicenseManagerReportGeneratorsCommand = async (input, context) => {
227
227
  const headers = sharedHeaders("ListLicenseManagerReportGenerators");
228
228
  let body;
229
- body = JSON.stringify(se_ListLicenseManagerReportGeneratorsRequest(input, context));
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
230
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
231
  };
232
232
  exports.se_ListLicenseManagerReportGeneratorsCommand = se_ListLicenseManagerReportGeneratorsCommand;
233
233
  const se_ListLicensesCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("ListLicenses");
235
235
  let body;
236
- body = JSON.stringify(se_ListLicensesRequest(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  exports.se_ListLicensesCommand = se_ListLicensesCommand;
240
240
  const se_ListLicenseSpecificationsForResourceCommand = async (input, context) => {
241
241
  const headers = sharedHeaders("ListLicenseSpecificationsForResource");
242
242
  let body;
243
- body = JSON.stringify(se_ListLicenseSpecificationsForResourceRequest(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
244
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
245
  };
246
246
  exports.se_ListLicenseSpecificationsForResourceCommand = se_ListLicenseSpecificationsForResourceCommand;
247
247
  const se_ListLicenseVersionsCommand = async (input, context) => {
248
248
  const headers = sharedHeaders("ListLicenseVersions");
249
249
  let body;
250
- body = JSON.stringify(se_ListLicenseVersionsRequest(input, context));
250
+ body = JSON.stringify((0, smithy_client_1._json)(input));
251
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
252
  };
253
253
  exports.se_ListLicenseVersionsCommand = se_ListLicenseVersionsCommand;
254
254
  const se_ListReceivedGrantsCommand = async (input, context) => {
255
255
  const headers = sharedHeaders("ListReceivedGrants");
256
256
  let body;
257
- body = JSON.stringify(se_ListReceivedGrantsRequest(input, context));
257
+ body = JSON.stringify((0, smithy_client_1._json)(input));
258
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
259
  };
260
260
  exports.se_ListReceivedGrantsCommand = se_ListReceivedGrantsCommand;
261
261
  const se_ListReceivedGrantsForOrganizationCommand = async (input, context) => {
262
262
  const headers = sharedHeaders("ListReceivedGrantsForOrganization");
263
263
  let body;
264
- body = JSON.stringify(se_ListReceivedGrantsForOrganizationRequest(input, context));
264
+ body = JSON.stringify((0, smithy_client_1._json)(input));
265
265
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
266
266
  };
267
267
  exports.se_ListReceivedGrantsForOrganizationCommand = se_ListReceivedGrantsForOrganizationCommand;
268
268
  const se_ListReceivedLicensesCommand = async (input, context) => {
269
269
  const headers = sharedHeaders("ListReceivedLicenses");
270
270
  let body;
271
- body = JSON.stringify(se_ListReceivedLicensesRequest(input, context));
271
+ body = JSON.stringify((0, smithy_client_1._json)(input));
272
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
273
  };
274
274
  exports.se_ListReceivedLicensesCommand = se_ListReceivedLicensesCommand;
275
275
  const se_ListReceivedLicensesForOrganizationCommand = async (input, context) => {
276
276
  const headers = sharedHeaders("ListReceivedLicensesForOrganization");
277
277
  let body;
278
- body = JSON.stringify(se_ListReceivedLicensesForOrganizationRequest(input, context));
278
+ body = JSON.stringify((0, smithy_client_1._json)(input));
279
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
280
  };
281
281
  exports.se_ListReceivedLicensesForOrganizationCommand = se_ListReceivedLicensesForOrganizationCommand;
282
282
  const se_ListResourceInventoryCommand = async (input, context) => {
283
283
  const headers = sharedHeaders("ListResourceInventory");
284
284
  let body;
285
- body = JSON.stringify(se_ListResourceInventoryRequest(input, context));
285
+ body = JSON.stringify((0, smithy_client_1._json)(input));
286
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
287
  };
288
288
  exports.se_ListResourceInventoryCommand = se_ListResourceInventoryCommand;
289
289
  const se_ListTagsForResourceCommand = async (input, context) => {
290
290
  const headers = sharedHeaders("ListTagsForResource");
291
291
  let body;
292
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
292
+ body = JSON.stringify((0, smithy_client_1._json)(input));
293
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
294
  };
295
295
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
296
296
  const se_ListTokensCommand = async (input, context) => {
297
297
  const headers = sharedHeaders("ListTokens");
298
298
  let body;
299
- body = JSON.stringify(se_ListTokensRequest(input, context));
299
+ body = JSON.stringify((0, smithy_client_1._json)(input));
300
300
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
301
  };
302
302
  exports.se_ListTokensCommand = se_ListTokensCommand;
303
303
  const se_ListUsageForLicenseConfigurationCommand = async (input, context) => {
304
304
  const headers = sharedHeaders("ListUsageForLicenseConfiguration");
305
305
  let body;
306
- body = JSON.stringify(se_ListUsageForLicenseConfigurationRequest(input, context));
306
+ body = JSON.stringify((0, smithy_client_1._json)(input));
307
307
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
308
  };
309
309
  exports.se_ListUsageForLicenseConfigurationCommand = se_ListUsageForLicenseConfigurationCommand;
310
310
  const se_RejectGrantCommand = async (input, context) => {
311
311
  const headers = sharedHeaders("RejectGrant");
312
312
  let body;
313
- body = JSON.stringify(se_RejectGrantRequest(input, context));
313
+ body = JSON.stringify((0, smithy_client_1._json)(input));
314
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
315
  };
316
316
  exports.se_RejectGrantCommand = se_RejectGrantCommand;
317
317
  const se_TagResourceCommand = async (input, context) => {
318
318
  const headers = sharedHeaders("TagResource");
319
319
  let body;
320
- body = JSON.stringify(se_TagResourceRequest(input, context));
320
+ body = JSON.stringify((0, smithy_client_1._json)(input));
321
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
322
322
  };
323
323
  exports.se_TagResourceCommand = se_TagResourceCommand;
324
324
  const se_UntagResourceCommand = async (input, context) => {
325
325
  const headers = sharedHeaders("UntagResource");
326
326
  let body;
327
- body = JSON.stringify(se_UntagResourceRequest(input, context));
327
+ body = JSON.stringify((0, smithy_client_1._json)(input));
328
328
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
329
  };
330
330
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
331
331
  const se_UpdateLicenseConfigurationCommand = async (input, context) => {
332
332
  const headers = sharedHeaders("UpdateLicenseConfiguration");
333
333
  let body;
334
- body = JSON.stringify(se_UpdateLicenseConfigurationRequest(input, context));
334
+ body = JSON.stringify((0, smithy_client_1._json)(input));
335
335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
336
  };
337
337
  exports.se_UpdateLicenseConfigurationCommand = se_UpdateLicenseConfigurationCommand;
338
338
  const se_UpdateLicenseManagerReportGeneratorCommand = async (input, context) => {
339
339
  const headers = sharedHeaders("UpdateLicenseManagerReportGenerator");
340
340
  let body;
341
- body = JSON.stringify(se_UpdateLicenseManagerReportGeneratorRequest(input, context));
341
+ body = JSON.stringify((0, smithy_client_1._json)(input));
342
342
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
343
343
  };
344
344
  exports.se_UpdateLicenseManagerReportGeneratorCommand = se_UpdateLicenseManagerReportGeneratorCommand;
345
345
  const se_UpdateLicenseSpecificationsForResourceCommand = async (input, context) => {
346
346
  const headers = sharedHeaders("UpdateLicenseSpecificationsForResource");
347
347
  let body;
348
- body = JSON.stringify(se_UpdateLicenseSpecificationsForResourceRequest(input, context));
348
+ body = JSON.stringify((0, smithy_client_1._json)(input));
349
349
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
350
350
  };
351
351
  exports.se_UpdateLicenseSpecificationsForResourceCommand = se_UpdateLicenseSpecificationsForResourceCommand;
352
352
  const se_UpdateServiceSettingsCommand = async (input, context) => {
353
353
  const headers = sharedHeaders("UpdateServiceSettings");
354
354
  let body;
355
- body = JSON.stringify(se_UpdateServiceSettingsRequest(input, context));
355
+ body = JSON.stringify((0, smithy_client_1._json)(input));
356
356
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
357
357
  };
358
358
  exports.se_UpdateServiceSettingsCommand = se_UpdateServiceSettingsCommand;
@@ -362,12 +362,12 @@ const de_AcceptGrantCommand = async (output, context) => {
362
362
  }
363
363
  const data = await parseBody(output.body, context);
364
364
  let contents = {};
365
- contents = de_AcceptGrantResponse(data, context);
365
+ contents = (0, smithy_client_1._json)(data);
366
366
  const response = {
367
367
  $metadata: deserializeMetadata(output),
368
368
  ...contents,
369
369
  };
370
- return Promise.resolve(response);
370
+ return response;
371
371
  };
372
372
  exports.de_AcceptGrantCommand = de_AcceptGrantCommand;
373
373
  const de_AcceptGrantCommandError = async (output, context) => {
@@ -400,10 +400,9 @@ const de_AcceptGrantCommandError = async (output, context) => {
400
400
  throw await de_ValidationExceptionRes(parsedOutput, context);
401
401
  default:
402
402
  const parsedBody = parsedOutput.body;
403
- (0, smithy_client_1.throwDefaultError)({
403
+ return throwDefaultError({
404
404
  output,
405
405
  parsedBody,
406
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
407
406
  errorCode,
408
407
  });
409
408
  }
@@ -414,12 +413,12 @@ const de_CheckInLicenseCommand = async (output, context) => {
414
413
  }
415
414
  const data = await parseBody(output.body, context);
416
415
  let contents = {};
417
- contents = de_CheckInLicenseResponse(data, context);
416
+ contents = (0, smithy_client_1._json)(data);
418
417
  const response = {
419
418
  $metadata: deserializeMetadata(output),
420
419
  ...contents,
421
420
  };
422
- return Promise.resolve(response);
421
+ return response;
423
422
  };
424
423
  exports.de_CheckInLicenseCommand = de_CheckInLicenseCommand;
425
424
  const de_CheckInLicenseCommandError = async (output, context) => {
@@ -455,10 +454,9 @@ const de_CheckInLicenseCommandError = async (output, context) => {
455
454
  throw await de_ValidationExceptionRes(parsedOutput, context);
456
455
  default:
457
456
  const parsedBody = parsedOutput.body;
458
- (0, smithy_client_1.throwDefaultError)({
457
+ return throwDefaultError({
459
458
  output,
460
459
  parsedBody,
461
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
462
460
  errorCode,
463
461
  });
464
462
  }
@@ -469,12 +467,12 @@ const de_CheckoutBorrowLicenseCommand = async (output, context) => {
469
467
  }
470
468
  const data = await parseBody(output.body, context);
471
469
  let contents = {};
472
- contents = de_CheckoutBorrowLicenseResponse(data, context);
470
+ contents = (0, smithy_client_1._json)(data);
473
471
  const response = {
474
472
  $metadata: deserializeMetadata(output),
475
473
  ...contents,
476
474
  };
477
- return Promise.resolve(response);
475
+ return response;
478
476
  };
479
477
  exports.de_CheckoutBorrowLicenseCommand = de_CheckoutBorrowLicenseCommand;
480
478
  const de_CheckoutBorrowLicenseCommandError = async (output, context) => {
@@ -519,10 +517,9 @@ const de_CheckoutBorrowLicenseCommandError = async (output, context) => {
519
517
  throw await de_ValidationExceptionRes(parsedOutput, context);
520
518
  default:
521
519
  const parsedBody = parsedOutput.body;
522
- (0, smithy_client_1.throwDefaultError)({
520
+ return throwDefaultError({
523
521
  output,
524
522
  parsedBody,
525
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
526
523
  errorCode,
527
524
  });
528
525
  }
@@ -533,12 +530,12 @@ const de_CheckoutLicenseCommand = async (output, context) => {
533
530
  }
534
531
  const data = await parseBody(output.body, context);
535
532
  let contents = {};
536
- contents = de_CheckoutLicenseResponse(data, context);
533
+ contents = (0, smithy_client_1._json)(data);
537
534
  const response = {
538
535
  $metadata: deserializeMetadata(output),
539
536
  ...contents,
540
537
  };
541
- return Promise.resolve(response);
538
+ return response;
542
539
  };
543
540
  exports.de_CheckoutLicenseCommand = de_CheckoutLicenseCommand;
544
541
  const de_CheckoutLicenseCommandError = async (output, context) => {
@@ -580,10 +577,9 @@ const de_CheckoutLicenseCommandError = async (output, context) => {
580
577
  throw await de_ValidationExceptionRes(parsedOutput, context);
581
578
  default:
582
579
  const parsedBody = parsedOutput.body;
583
- (0, smithy_client_1.throwDefaultError)({
580
+ return throwDefaultError({
584
581
  output,
585
582
  parsedBody,
586
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
587
583
  errorCode,
588
584
  });
589
585
  }
@@ -594,12 +590,12 @@ const de_CreateGrantCommand = async (output, context) => {
594
590
  }
595
591
  const data = await parseBody(output.body, context);
596
592
  let contents = {};
597
- contents = de_CreateGrantResponse(data, context);
593
+ contents = (0, smithy_client_1._json)(data);
598
594
  const response = {
599
595
  $metadata: deserializeMetadata(output),
600
596
  ...contents,
601
597
  };
602
- return Promise.resolve(response);
598
+ return response;
603
599
  };
604
600
  exports.de_CreateGrantCommand = de_CreateGrantCommand;
605
601
  const de_CreateGrantCommandError = async (output, context) => {
@@ -632,10 +628,9 @@ const de_CreateGrantCommandError = async (output, context) => {
632
628
  throw await de_ValidationExceptionRes(parsedOutput, context);
633
629
  default:
634
630
  const parsedBody = parsedOutput.body;
635
- (0, smithy_client_1.throwDefaultError)({
631
+ return throwDefaultError({
636
632
  output,
637
633
  parsedBody,
638
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
639
634
  errorCode,
640
635
  });
641
636
  }
@@ -646,12 +641,12 @@ const de_CreateGrantVersionCommand = async (output, context) => {
646
641
  }
647
642
  const data = await parseBody(output.body, context);
648
643
  let contents = {};
649
- contents = de_CreateGrantVersionResponse(data, context);
644
+ contents = (0, smithy_client_1._json)(data);
650
645
  const response = {
651
646
  $metadata: deserializeMetadata(output),
652
647
  ...contents,
653
648
  };
654
- return Promise.resolve(response);
649
+ return response;
655
650
  };
656
651
  exports.de_CreateGrantVersionCommand = de_CreateGrantVersionCommand;
657
652
  const de_CreateGrantVersionCommandError = async (output, context) => {
@@ -684,10 +679,9 @@ const de_CreateGrantVersionCommandError = async (output, context) => {
684
679
  throw await de_ValidationExceptionRes(parsedOutput, context);
685
680
  default:
686
681
  const parsedBody = parsedOutput.body;
687
- (0, smithy_client_1.throwDefaultError)({
682
+ return throwDefaultError({
688
683
  output,
689
684
  parsedBody,
690
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
691
685
  errorCode,
692
686
  });
693
687
  }
@@ -698,12 +692,12 @@ const de_CreateLicenseCommand = async (output, context) => {
698
692
  }
699
693
  const data = await parseBody(output.body, context);
700
694
  let contents = {};
701
- contents = de_CreateLicenseResponse(data, context);
695
+ contents = (0, smithy_client_1._json)(data);
702
696
  const response = {
703
697
  $metadata: deserializeMetadata(output),
704
698
  ...contents,
705
699
  };
706
- return Promise.resolve(response);
700
+ return response;
707
701
  };
708
702
  exports.de_CreateLicenseCommand = de_CreateLicenseCommand;
709
703
  const de_CreateLicenseCommandError = async (output, context) => {
@@ -736,10 +730,9 @@ const de_CreateLicenseCommandError = async (output, context) => {
736
730
  throw await de_ValidationExceptionRes(parsedOutput, context);
737
731
  default:
738
732
  const parsedBody = parsedOutput.body;
739
- (0, smithy_client_1.throwDefaultError)({
733
+ return throwDefaultError({
740
734
  output,
741
735
  parsedBody,
742
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
743
736
  errorCode,
744
737
  });
745
738
  }
@@ -750,12 +743,12 @@ const de_CreateLicenseConfigurationCommand = async (output, context) => {
750
743
  }
751
744
  const data = await parseBody(output.body, context);
752
745
  let contents = {};
753
- contents = de_CreateLicenseConfigurationResponse(data, context);
746
+ contents = (0, smithy_client_1._json)(data);
754
747
  const response = {
755
748
  $metadata: deserializeMetadata(output),
756
749
  ...contents,
757
750
  };
758
- return Promise.resolve(response);
751
+ return response;
759
752
  };
760
753
  exports.de_CreateLicenseConfigurationCommand = de_CreateLicenseConfigurationCommand;
761
754
  const de_CreateLicenseConfigurationCommandError = async (output, context) => {
@@ -785,10 +778,9 @@ const de_CreateLicenseConfigurationCommandError = async (output, context) => {
785
778
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
786
779
  default:
787
780
  const parsedBody = parsedOutput.body;
788
- (0, smithy_client_1.throwDefaultError)({
781
+ return throwDefaultError({
789
782
  output,
790
783
  parsedBody,
791
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
792
784
  errorCode,
793
785
  });
794
786
  }
@@ -799,12 +791,12 @@ const de_CreateLicenseConversionTaskForResourceCommand = async (output, context)
799
791
  }
800
792
  const data = await parseBody(output.body, context);
801
793
  let contents = {};
802
- contents = de_CreateLicenseConversionTaskForResourceResponse(data, context);
794
+ contents = (0, smithy_client_1._json)(data);
803
795
  const response = {
804
796
  $metadata: deserializeMetadata(output),
805
797
  ...contents,
806
798
  };
807
- return Promise.resolve(response);
799
+ return response;
808
800
  };
809
801
  exports.de_CreateLicenseConversionTaskForResourceCommand = de_CreateLicenseConversionTaskForResourceCommand;
810
802
  const de_CreateLicenseConversionTaskForResourceCommandError = async (output, context) => {
@@ -834,10 +826,9 @@ const de_CreateLicenseConversionTaskForResourceCommandError = async (output, con
834
826
  throw await de_ValidationExceptionRes(parsedOutput, context);
835
827
  default:
836
828
  const parsedBody = parsedOutput.body;
837
- (0, smithy_client_1.throwDefaultError)({
829
+ return throwDefaultError({
838
830
  output,
839
831
  parsedBody,
840
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
841
832
  errorCode,
842
833
  });
843
834
  }
@@ -848,12 +839,12 @@ const de_CreateLicenseManagerReportGeneratorCommand = async (output, context) =>
848
839
  }
849
840
  const data = await parseBody(output.body, context);
850
841
  let contents = {};
851
- contents = de_CreateLicenseManagerReportGeneratorResponse(data, context);
842
+ contents = (0, smithy_client_1._json)(data);
852
843
  const response = {
853
844
  $metadata: deserializeMetadata(output),
854
845
  ...contents,
855
846
  };
856
- return Promise.resolve(response);
847
+ return response;
857
848
  };
858
849
  exports.de_CreateLicenseManagerReportGeneratorCommand = de_CreateLicenseManagerReportGeneratorCommand;
859
850
  const de_CreateLicenseManagerReportGeneratorCommandError = async (output, context) => {
@@ -889,10 +880,9 @@ const de_CreateLicenseManagerReportGeneratorCommandError = async (output, contex
889
880
  throw await de_ValidationExceptionRes(parsedOutput, context);
890
881
  default:
891
882
  const parsedBody = parsedOutput.body;
892
- (0, smithy_client_1.throwDefaultError)({
883
+ return throwDefaultError({
893
884
  output,
894
885
  parsedBody,
895
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
896
886
  errorCode,
897
887
  });
898
888
  }
@@ -903,12 +893,12 @@ const de_CreateLicenseVersionCommand = async (output, context) => {
903
893
  }
904
894
  const data = await parseBody(output.body, context);
905
895
  let contents = {};
906
- contents = de_CreateLicenseVersionResponse(data, context);
896
+ contents = (0, smithy_client_1._json)(data);
907
897
  const response = {
908
898
  $metadata: deserializeMetadata(output),
909
899
  ...contents,
910
900
  };
911
- return Promise.resolve(response);
901
+ return response;
912
902
  };
913
903
  exports.de_CreateLicenseVersionCommand = de_CreateLicenseVersionCommand;
914
904
  const de_CreateLicenseVersionCommandError = async (output, context) => {
@@ -944,10 +934,9 @@ const de_CreateLicenseVersionCommandError = async (output, context) => {
944
934
  throw await de_ValidationExceptionRes(parsedOutput, context);
945
935
  default:
946
936
  const parsedBody = parsedOutput.body;
947
- (0, smithy_client_1.throwDefaultError)({
937
+ return throwDefaultError({
948
938
  output,
949
939
  parsedBody,
950
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
951
940
  errorCode,
952
941
  });
953
942
  }
@@ -958,12 +947,12 @@ const de_CreateTokenCommand = async (output, context) => {
958
947
  }
959
948
  const data = await parseBody(output.body, context);
960
949
  let contents = {};
961
- contents = de_CreateTokenResponse(data, context);
950
+ contents = (0, smithy_client_1._json)(data);
962
951
  const response = {
963
952
  $metadata: deserializeMetadata(output),
964
953
  ...contents,
965
954
  };
966
- return Promise.resolve(response);
955
+ return response;
967
956
  };
968
957
  exports.de_CreateTokenCommand = de_CreateTokenCommand;
969
958
  const de_CreateTokenCommandError = async (output, context) => {
@@ -999,10 +988,9 @@ const de_CreateTokenCommandError = async (output, context) => {
999
988
  throw await de_ValidationExceptionRes(parsedOutput, context);
1000
989
  default:
1001
990
  const parsedBody = parsedOutput.body;
1002
- (0, smithy_client_1.throwDefaultError)({
991
+ return throwDefaultError({
1003
992
  output,
1004
993
  parsedBody,
1005
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1006
994
  errorCode,
1007
995
  });
1008
996
  }
@@ -1013,12 +1001,12 @@ const de_DeleteGrantCommand = async (output, context) => {
1013
1001
  }
1014
1002
  const data = await parseBody(output.body, context);
1015
1003
  let contents = {};
1016
- contents = de_DeleteGrantResponse(data, context);
1004
+ contents = (0, smithy_client_1._json)(data);
1017
1005
  const response = {
1018
1006
  $metadata: deserializeMetadata(output),
1019
1007
  ...contents,
1020
1008
  };
1021
- return Promise.resolve(response);
1009
+ return response;
1022
1010
  };
1023
1011
  exports.de_DeleteGrantCommand = de_DeleteGrantCommand;
1024
1012
  const de_DeleteGrantCommandError = async (output, context) => {
@@ -1051,10 +1039,9 @@ const de_DeleteGrantCommandError = async (output, context) => {
1051
1039
  throw await de_ValidationExceptionRes(parsedOutput, context);
1052
1040
  default:
1053
1041
  const parsedBody = parsedOutput.body;
1054
- (0, smithy_client_1.throwDefaultError)({
1042
+ return throwDefaultError({
1055
1043
  output,
1056
1044
  parsedBody,
1057
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1058
1045
  errorCode,
1059
1046
  });
1060
1047
  }
@@ -1065,12 +1052,12 @@ const de_DeleteLicenseCommand = async (output, context) => {
1065
1052
  }
1066
1053
  const data = await parseBody(output.body, context);
1067
1054
  let contents = {};
1068
- contents = de_DeleteLicenseResponse(data, context);
1055
+ contents = (0, smithy_client_1._json)(data);
1069
1056
  const response = {
1070
1057
  $metadata: deserializeMetadata(output),
1071
1058
  ...contents,
1072
1059
  };
1073
- return Promise.resolve(response);
1060
+ return response;
1074
1061
  };
1075
1062
  exports.de_DeleteLicenseCommand = de_DeleteLicenseCommand;
1076
1063
  const de_DeleteLicenseCommandError = async (output, context) => {
@@ -1106,10 +1093,9 @@ const de_DeleteLicenseCommandError = async (output, context) => {
1106
1093
  throw await de_ValidationExceptionRes(parsedOutput, context);
1107
1094
  default:
1108
1095
  const parsedBody = parsedOutput.body;
1109
- (0, smithy_client_1.throwDefaultError)({
1096
+ return throwDefaultError({
1110
1097
  output,
1111
1098
  parsedBody,
1112
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1113
1099
  errorCode,
1114
1100
  });
1115
1101
  }
@@ -1120,12 +1106,12 @@ const de_DeleteLicenseConfigurationCommand = async (output, context) => {
1120
1106
  }
1121
1107
  const data = await parseBody(output.body, context);
1122
1108
  let contents = {};
1123
- contents = de_DeleteLicenseConfigurationResponse(data, context);
1109
+ contents = (0, smithy_client_1._json)(data);
1124
1110
  const response = {
1125
1111
  $metadata: deserializeMetadata(output),
1126
1112
  ...contents,
1127
1113
  };
1128
- return Promise.resolve(response);
1114
+ return response;
1129
1115
  };
1130
1116
  exports.de_DeleteLicenseConfigurationCommand = de_DeleteLicenseConfigurationCommand;
1131
1117
  const de_DeleteLicenseConfigurationCommandError = async (output, context) => {
@@ -1152,10 +1138,9 @@ const de_DeleteLicenseConfigurationCommandError = async (output, context) => {
1152
1138
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
1153
1139
  default:
1154
1140
  const parsedBody = parsedOutput.body;
1155
- (0, smithy_client_1.throwDefaultError)({
1141
+ return throwDefaultError({
1156
1142
  output,
1157
1143
  parsedBody,
1158
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1159
1144
  errorCode,
1160
1145
  });
1161
1146
  }
@@ -1166,12 +1151,12 @@ const de_DeleteLicenseManagerReportGeneratorCommand = async (output, context) =>
1166
1151
  }
1167
1152
  const data = await parseBody(output.body, context);
1168
1153
  let contents = {};
1169
- contents = de_DeleteLicenseManagerReportGeneratorResponse(data, context);
1154
+ contents = (0, smithy_client_1._json)(data);
1170
1155
  const response = {
1171
1156
  $metadata: deserializeMetadata(output),
1172
1157
  ...contents,
1173
1158
  };
1174
- return Promise.resolve(response);
1159
+ return response;
1175
1160
  };
1176
1161
  exports.de_DeleteLicenseManagerReportGeneratorCommand = de_DeleteLicenseManagerReportGeneratorCommand;
1177
1162
  const de_DeleteLicenseManagerReportGeneratorCommandError = async (output, context) => {
@@ -1207,10 +1192,9 @@ const de_DeleteLicenseManagerReportGeneratorCommandError = async (output, contex
1207
1192
  throw await de_ValidationExceptionRes(parsedOutput, context);
1208
1193
  default:
1209
1194
  const parsedBody = parsedOutput.body;
1210
- (0, smithy_client_1.throwDefaultError)({
1195
+ return throwDefaultError({
1211
1196
  output,
1212
1197
  parsedBody,
1213
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1214
1198
  errorCode,
1215
1199
  });
1216
1200
  }
@@ -1221,12 +1205,12 @@ const de_DeleteTokenCommand = async (output, context) => {
1221
1205
  }
1222
1206
  const data = await parseBody(output.body, context);
1223
1207
  let contents = {};
1224
- contents = de_DeleteTokenResponse(data, context);
1208
+ contents = (0, smithy_client_1._json)(data);
1225
1209
  const response = {
1226
1210
  $metadata: deserializeMetadata(output),
1227
1211
  ...contents,
1228
1212
  };
1229
- return Promise.resolve(response);
1213
+ return response;
1230
1214
  };
1231
1215
  exports.de_DeleteTokenCommand = de_DeleteTokenCommand;
1232
1216
  const de_DeleteTokenCommandError = async (output, context) => {
@@ -1259,10 +1243,9 @@ const de_DeleteTokenCommandError = async (output, context) => {
1259
1243
  throw await de_ValidationExceptionRes(parsedOutput, context);
1260
1244
  default:
1261
1245
  const parsedBody = parsedOutput.body;
1262
- (0, smithy_client_1.throwDefaultError)({
1246
+ return throwDefaultError({
1263
1247
  output,
1264
1248
  parsedBody,
1265
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1266
1249
  errorCode,
1267
1250
  });
1268
1251
  }
@@ -1273,12 +1256,12 @@ const de_ExtendLicenseConsumptionCommand = async (output, context) => {
1273
1256
  }
1274
1257
  const data = await parseBody(output.body, context);
1275
1258
  let contents = {};
1276
- contents = de_ExtendLicenseConsumptionResponse(data, context);
1259
+ contents = (0, smithy_client_1._json)(data);
1277
1260
  const response = {
1278
1261
  $metadata: deserializeMetadata(output),
1279
1262
  ...contents,
1280
1263
  };
1281
- return Promise.resolve(response);
1264
+ return response;
1282
1265
  };
1283
1266
  exports.de_ExtendLicenseConsumptionCommand = de_ExtendLicenseConsumptionCommand;
1284
1267
  const de_ExtendLicenseConsumptionCommandError = async (output, context) => {
@@ -1311,10 +1294,9 @@ const de_ExtendLicenseConsumptionCommandError = async (output, context) => {
1311
1294
  throw await de_ValidationExceptionRes(parsedOutput, context);
1312
1295
  default:
1313
1296
  const parsedBody = parsedOutput.body;
1314
- (0, smithy_client_1.throwDefaultError)({
1297
+ return throwDefaultError({
1315
1298
  output,
1316
1299
  parsedBody,
1317
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1318
1300
  errorCode,
1319
1301
  });
1320
1302
  }
@@ -1325,12 +1307,12 @@ const de_GetAccessTokenCommand = async (output, context) => {
1325
1307
  }
1326
1308
  const data = await parseBody(output.body, context);
1327
1309
  let contents = {};
1328
- contents = de_GetAccessTokenResponse(data, context);
1310
+ contents = (0, smithy_client_1._json)(data);
1329
1311
  const response = {
1330
1312
  $metadata: deserializeMetadata(output),
1331
1313
  ...contents,
1332
1314
  };
1333
- return Promise.resolve(response);
1315
+ return response;
1334
1316
  };
1335
1317
  exports.de_GetAccessTokenCommand = de_GetAccessTokenCommand;
1336
1318
  const de_GetAccessTokenCommandError = async (output, context) => {
@@ -1357,10 +1339,9 @@ const de_GetAccessTokenCommandError = async (output, context) => {
1357
1339
  throw await de_ValidationExceptionRes(parsedOutput, context);
1358
1340
  default:
1359
1341
  const parsedBody = parsedOutput.body;
1360
- (0, smithy_client_1.throwDefaultError)({
1342
+ return throwDefaultError({
1361
1343
  output,
1362
1344
  parsedBody,
1363
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1364
1345
  errorCode,
1365
1346
  });
1366
1347
  }
@@ -1371,12 +1352,12 @@ const de_GetGrantCommand = async (output, context) => {
1371
1352
  }
1372
1353
  const data = await parseBody(output.body, context);
1373
1354
  let contents = {};
1374
- contents = de_GetGrantResponse(data, context);
1355
+ contents = (0, smithy_client_1._json)(data);
1375
1356
  const response = {
1376
1357
  $metadata: deserializeMetadata(output),
1377
1358
  ...contents,
1378
1359
  };
1379
- return Promise.resolve(response);
1360
+ return response;
1380
1361
  };
1381
1362
  exports.de_GetGrantCommand = de_GetGrantCommand;
1382
1363
  const de_GetGrantCommandError = async (output, context) => {
@@ -1409,10 +1390,9 @@ const de_GetGrantCommandError = async (output, context) => {
1409
1390
  throw await de_ValidationExceptionRes(parsedOutput, context);
1410
1391
  default:
1411
1392
  const parsedBody = parsedOutput.body;
1412
- (0, smithy_client_1.throwDefaultError)({
1393
+ return throwDefaultError({
1413
1394
  output,
1414
1395
  parsedBody,
1415
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1416
1396
  errorCode,
1417
1397
  });
1418
1398
  }
@@ -1423,12 +1403,12 @@ const de_GetLicenseCommand = async (output, context) => {
1423
1403
  }
1424
1404
  const data = await parseBody(output.body, context);
1425
1405
  let contents = {};
1426
- contents = de_GetLicenseResponse(data, context);
1406
+ contents = (0, smithy_client_1._json)(data);
1427
1407
  const response = {
1428
1408
  $metadata: deserializeMetadata(output),
1429
1409
  ...contents,
1430
1410
  };
1431
- return Promise.resolve(response);
1411
+ return response;
1432
1412
  };
1433
1413
  exports.de_GetLicenseCommand = de_GetLicenseCommand;
1434
1414
  const de_GetLicenseCommandError = async (output, context) => {
@@ -1458,10 +1438,9 @@ const de_GetLicenseCommandError = async (output, context) => {
1458
1438
  throw await de_ValidationExceptionRes(parsedOutput, context);
1459
1439
  default:
1460
1440
  const parsedBody = parsedOutput.body;
1461
- (0, smithy_client_1.throwDefaultError)({
1441
+ return throwDefaultError({
1462
1442
  output,
1463
1443
  parsedBody,
1464
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1465
1444
  errorCode,
1466
1445
  });
1467
1446
  }
@@ -1477,7 +1456,7 @@ const de_GetLicenseConfigurationCommand = async (output, context) => {
1477
1456
  $metadata: deserializeMetadata(output),
1478
1457
  ...contents,
1479
1458
  };
1480
- return Promise.resolve(response);
1459
+ return response;
1481
1460
  };
1482
1461
  exports.de_GetLicenseConfigurationCommand = de_GetLicenseConfigurationCommand;
1483
1462
  const de_GetLicenseConfigurationCommandError = async (output, context) => {
@@ -1504,10 +1483,9 @@ const de_GetLicenseConfigurationCommandError = async (output, context) => {
1504
1483
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
1505
1484
  default:
1506
1485
  const parsedBody = parsedOutput.body;
1507
- (0, smithy_client_1.throwDefaultError)({
1486
+ return throwDefaultError({
1508
1487
  output,
1509
1488
  parsedBody,
1510
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1511
1489
  errorCode,
1512
1490
  });
1513
1491
  }
@@ -1523,7 +1501,7 @@ const de_GetLicenseConversionTaskCommand = async (output, context) => {
1523
1501
  $metadata: deserializeMetadata(output),
1524
1502
  ...contents,
1525
1503
  };
1526
- return Promise.resolve(response);
1504
+ return response;
1527
1505
  };
1528
1506
  exports.de_GetLicenseConversionTaskCommand = de_GetLicenseConversionTaskCommand;
1529
1507
  const de_GetLicenseConversionTaskCommandError = async (output, context) => {
@@ -1550,10 +1528,9 @@ const de_GetLicenseConversionTaskCommandError = async (output, context) => {
1550
1528
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
1551
1529
  default:
1552
1530
  const parsedBody = parsedOutput.body;
1553
- (0, smithy_client_1.throwDefaultError)({
1531
+ return throwDefaultError({
1554
1532
  output,
1555
1533
  parsedBody,
1556
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1557
1534
  errorCode,
1558
1535
  });
1559
1536
  }
@@ -1564,12 +1541,12 @@ const de_GetLicenseManagerReportGeneratorCommand = async (output, context) => {
1564
1541
  }
1565
1542
  const data = await parseBody(output.body, context);
1566
1543
  let contents = {};
1567
- contents = de_GetLicenseManagerReportGeneratorResponse(data, context);
1544
+ contents = (0, smithy_client_1._json)(data);
1568
1545
  const response = {
1569
1546
  $metadata: deserializeMetadata(output),
1570
1547
  ...contents,
1571
1548
  };
1572
- return Promise.resolve(response);
1549
+ return response;
1573
1550
  };
1574
1551
  exports.de_GetLicenseManagerReportGeneratorCommand = de_GetLicenseManagerReportGeneratorCommand;
1575
1552
  const de_GetLicenseManagerReportGeneratorCommandError = async (output, context) => {
@@ -1605,10 +1582,9 @@ const de_GetLicenseManagerReportGeneratorCommandError = async (output, context)
1605
1582
  throw await de_ValidationExceptionRes(parsedOutput, context);
1606
1583
  default:
1607
1584
  const parsedBody = parsedOutput.body;
1608
- (0, smithy_client_1.throwDefaultError)({
1585
+ return throwDefaultError({
1609
1586
  output,
1610
1587
  parsedBody,
1611
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1612
1588
  errorCode,
1613
1589
  });
1614
1590
  }
@@ -1619,12 +1595,12 @@ const de_GetLicenseUsageCommand = async (output, context) => {
1619
1595
  }
1620
1596
  const data = await parseBody(output.body, context);
1621
1597
  let contents = {};
1622
- contents = de_GetLicenseUsageResponse(data, context);
1598
+ contents = (0, smithy_client_1._json)(data);
1623
1599
  const response = {
1624
1600
  $metadata: deserializeMetadata(output),
1625
1601
  ...contents,
1626
1602
  };
1627
- return Promise.resolve(response);
1603
+ return response;
1628
1604
  };
1629
1605
  exports.de_GetLicenseUsageCommand = de_GetLicenseUsageCommand;
1630
1606
  const de_GetLicenseUsageCommandError = async (output, context) => {
@@ -1654,10 +1630,9 @@ const de_GetLicenseUsageCommandError = async (output, context) => {
1654
1630
  throw await de_ValidationExceptionRes(parsedOutput, context);
1655
1631
  default:
1656
1632
  const parsedBody = parsedOutput.body;
1657
- (0, smithy_client_1.throwDefaultError)({
1633
+ return throwDefaultError({
1658
1634
  output,
1659
1635
  parsedBody,
1660
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1661
1636
  errorCode,
1662
1637
  });
1663
1638
  }
@@ -1668,12 +1643,12 @@ const de_GetServiceSettingsCommand = async (output, context) => {
1668
1643
  }
1669
1644
  const data = await parseBody(output.body, context);
1670
1645
  let contents = {};
1671
- contents = de_GetServiceSettingsResponse(data, context);
1646
+ contents = (0, smithy_client_1._json)(data);
1672
1647
  const response = {
1673
1648
  $metadata: deserializeMetadata(output),
1674
1649
  ...contents,
1675
1650
  };
1676
- return Promise.resolve(response);
1651
+ return response;
1677
1652
  };
1678
1653
  exports.de_GetServiceSettingsCommand = de_GetServiceSettingsCommand;
1679
1654
  const de_GetServiceSettingsCommandError = async (output, context) => {
@@ -1697,10 +1672,9 @@ const de_GetServiceSettingsCommandError = async (output, context) => {
1697
1672
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
1698
1673
  default:
1699
1674
  const parsedBody = parsedOutput.body;
1700
- (0, smithy_client_1.throwDefaultError)({
1675
+ return throwDefaultError({
1701
1676
  output,
1702
1677
  parsedBody,
1703
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1704
1678
  errorCode,
1705
1679
  });
1706
1680
  }
@@ -1716,7 +1690,7 @@ const de_ListAssociationsForLicenseConfigurationCommand = async (output, context
1716
1690
  $metadata: deserializeMetadata(output),
1717
1691
  ...contents,
1718
1692
  };
1719
- return Promise.resolve(response);
1693
+ return response;
1720
1694
  };
1721
1695
  exports.de_ListAssociationsForLicenseConfigurationCommand = de_ListAssociationsForLicenseConfigurationCommand;
1722
1696
  const de_ListAssociationsForLicenseConfigurationCommandError = async (output, context) => {
@@ -1746,10 +1720,9 @@ const de_ListAssociationsForLicenseConfigurationCommandError = async (output, co
1746
1720
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
1747
1721
  default:
1748
1722
  const parsedBody = parsedOutput.body;
1749
- (0, smithy_client_1.throwDefaultError)({
1723
+ return throwDefaultError({
1750
1724
  output,
1751
1725
  parsedBody,
1752
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1753
1726
  errorCode,
1754
1727
  });
1755
1728
  }
@@ -1760,12 +1733,12 @@ const de_ListDistributedGrantsCommand = async (output, context) => {
1760
1733
  }
1761
1734
  const data = await parseBody(output.body, context);
1762
1735
  let contents = {};
1763
- contents = de_ListDistributedGrantsResponse(data, context);
1736
+ contents = (0, smithy_client_1._json)(data);
1764
1737
  const response = {
1765
1738
  $metadata: deserializeMetadata(output),
1766
1739
  ...contents,
1767
1740
  };
1768
- return Promise.resolve(response);
1741
+ return response;
1769
1742
  };
1770
1743
  exports.de_ListDistributedGrantsCommand = de_ListDistributedGrantsCommand;
1771
1744
  const de_ListDistributedGrantsCommandError = async (output, context) => {
@@ -1798,10 +1771,9 @@ const de_ListDistributedGrantsCommandError = async (output, context) => {
1798
1771
  throw await de_ValidationExceptionRes(parsedOutput, context);
1799
1772
  default:
1800
1773
  const parsedBody = parsedOutput.body;
1801
- (0, smithy_client_1.throwDefaultError)({
1774
+ return throwDefaultError({
1802
1775
  output,
1803
1776
  parsedBody,
1804
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1805
1777
  errorCode,
1806
1778
  });
1807
1779
  }
@@ -1817,7 +1789,7 @@ const de_ListFailuresForLicenseConfigurationOperationsCommand = async (output, c
1817
1789
  $metadata: deserializeMetadata(output),
1818
1790
  ...contents,
1819
1791
  };
1820
- return Promise.resolve(response);
1792
+ return response;
1821
1793
  };
1822
1794
  exports.de_ListFailuresForLicenseConfigurationOperationsCommand = de_ListFailuresForLicenseConfigurationOperationsCommand;
1823
1795
  const de_ListFailuresForLicenseConfigurationOperationsCommandError = async (output, context) => {
@@ -1844,10 +1816,9 @@ const de_ListFailuresForLicenseConfigurationOperationsCommandError = async (outp
1844
1816
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
1845
1817
  default:
1846
1818
  const parsedBody = parsedOutput.body;
1847
- (0, smithy_client_1.throwDefaultError)({
1819
+ return throwDefaultError({
1848
1820
  output,
1849
1821
  parsedBody,
1850
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1851
1822
  errorCode,
1852
1823
  });
1853
1824
  }
@@ -1863,7 +1834,7 @@ const de_ListLicenseConfigurationsCommand = async (output, context) => {
1863
1834
  $metadata: deserializeMetadata(output),
1864
1835
  ...contents,
1865
1836
  };
1866
- return Promise.resolve(response);
1837
+ return response;
1867
1838
  };
1868
1839
  exports.de_ListLicenseConfigurationsCommand = de_ListLicenseConfigurationsCommand;
1869
1840
  const de_ListLicenseConfigurationsCommandError = async (output, context) => {
@@ -1893,10 +1864,9 @@ const de_ListLicenseConfigurationsCommandError = async (output, context) => {
1893
1864
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
1894
1865
  default:
1895
1866
  const parsedBody = parsedOutput.body;
1896
- (0, smithy_client_1.throwDefaultError)({
1867
+ return throwDefaultError({
1897
1868
  output,
1898
1869
  parsedBody,
1899
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1900
1870
  errorCode,
1901
1871
  });
1902
1872
  }
@@ -1912,7 +1882,7 @@ const de_ListLicenseConversionTasksCommand = async (output, context) => {
1912
1882
  $metadata: deserializeMetadata(output),
1913
1883
  ...contents,
1914
1884
  };
1915
- return Promise.resolve(response);
1885
+ return response;
1916
1886
  };
1917
1887
  exports.de_ListLicenseConversionTasksCommand = de_ListLicenseConversionTasksCommand;
1918
1888
  const de_ListLicenseConversionTasksCommandError = async (output, context) => {
@@ -1939,10 +1909,9 @@ const de_ListLicenseConversionTasksCommandError = async (output, context) => {
1939
1909
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
1940
1910
  default:
1941
1911
  const parsedBody = parsedOutput.body;
1942
- (0, smithy_client_1.throwDefaultError)({
1912
+ return throwDefaultError({
1943
1913
  output,
1944
1914
  parsedBody,
1945
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
1946
1915
  errorCode,
1947
1916
  });
1948
1917
  }
@@ -1953,12 +1922,12 @@ const de_ListLicenseManagerReportGeneratorsCommand = async (output, context) =>
1953
1922
  }
1954
1923
  const data = await parseBody(output.body, context);
1955
1924
  let contents = {};
1956
- contents = de_ListLicenseManagerReportGeneratorsResponse(data, context);
1925
+ contents = (0, smithy_client_1._json)(data);
1957
1926
  const response = {
1958
1927
  $metadata: deserializeMetadata(output),
1959
1928
  ...contents,
1960
1929
  };
1961
- return Promise.resolve(response);
1930
+ return response;
1962
1931
  };
1963
1932
  exports.de_ListLicenseManagerReportGeneratorsCommand = de_ListLicenseManagerReportGeneratorsCommand;
1964
1933
  const de_ListLicenseManagerReportGeneratorsCommandError = async (output, context) => {
@@ -1994,10 +1963,9 @@ const de_ListLicenseManagerReportGeneratorsCommandError = async (output, context
1994
1963
  throw await de_ValidationExceptionRes(parsedOutput, context);
1995
1964
  default:
1996
1965
  const parsedBody = parsedOutput.body;
1997
- (0, smithy_client_1.throwDefaultError)({
1966
+ return throwDefaultError({
1998
1967
  output,
1999
1968
  parsedBody,
2000
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2001
1969
  errorCode,
2002
1970
  });
2003
1971
  }
@@ -2008,12 +1976,12 @@ const de_ListLicensesCommand = async (output, context) => {
2008
1976
  }
2009
1977
  const data = await parseBody(output.body, context);
2010
1978
  let contents = {};
2011
- contents = de_ListLicensesResponse(data, context);
1979
+ contents = (0, smithy_client_1._json)(data);
2012
1980
  const response = {
2013
1981
  $metadata: deserializeMetadata(output),
2014
1982
  ...contents,
2015
1983
  };
2016
- return Promise.resolve(response);
1984
+ return response;
2017
1985
  };
2018
1986
  exports.de_ListLicensesCommand = de_ListLicensesCommand;
2019
1987
  const de_ListLicensesCommandError = async (output, context) => {
@@ -2043,10 +2011,9 @@ const de_ListLicensesCommandError = async (output, context) => {
2043
2011
  throw await de_ValidationExceptionRes(parsedOutput, context);
2044
2012
  default:
2045
2013
  const parsedBody = parsedOutput.body;
2046
- (0, smithy_client_1.throwDefaultError)({
2014
+ return throwDefaultError({
2047
2015
  output,
2048
2016
  parsedBody,
2049
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2050
2017
  errorCode,
2051
2018
  });
2052
2019
  }
@@ -2057,12 +2024,12 @@ const de_ListLicenseSpecificationsForResourceCommand = async (output, context) =
2057
2024
  }
2058
2025
  const data = await parseBody(output.body, context);
2059
2026
  let contents = {};
2060
- contents = de_ListLicenseSpecificationsForResourceResponse(data, context);
2027
+ contents = (0, smithy_client_1._json)(data);
2061
2028
  const response = {
2062
2029
  $metadata: deserializeMetadata(output),
2063
2030
  ...contents,
2064
2031
  };
2065
- return Promise.resolve(response);
2032
+ return response;
2066
2033
  };
2067
2034
  exports.de_ListLicenseSpecificationsForResourceCommand = de_ListLicenseSpecificationsForResourceCommand;
2068
2035
  const de_ListLicenseSpecificationsForResourceCommandError = async (output, context) => {
@@ -2089,10 +2056,9 @@ const de_ListLicenseSpecificationsForResourceCommandError = async (output, conte
2089
2056
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2090
2057
  default:
2091
2058
  const parsedBody = parsedOutput.body;
2092
- (0, smithy_client_1.throwDefaultError)({
2059
+ return throwDefaultError({
2093
2060
  output,
2094
2061
  parsedBody,
2095
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2096
2062
  errorCode,
2097
2063
  });
2098
2064
  }
@@ -2103,12 +2069,12 @@ const de_ListLicenseVersionsCommand = async (output, context) => {
2103
2069
  }
2104
2070
  const data = await parseBody(output.body, context);
2105
2071
  let contents = {};
2106
- contents = de_ListLicenseVersionsResponse(data, context);
2072
+ contents = (0, smithy_client_1._json)(data);
2107
2073
  const response = {
2108
2074
  $metadata: deserializeMetadata(output),
2109
2075
  ...contents,
2110
2076
  };
2111
- return Promise.resolve(response);
2077
+ return response;
2112
2078
  };
2113
2079
  exports.de_ListLicenseVersionsCommand = de_ListLicenseVersionsCommand;
2114
2080
  const de_ListLicenseVersionsCommandError = async (output, context) => {
@@ -2135,10 +2101,9 @@ const de_ListLicenseVersionsCommandError = async (output, context) => {
2135
2101
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2136
2102
  default:
2137
2103
  const parsedBody = parsedOutput.body;
2138
- (0, smithy_client_1.throwDefaultError)({
2104
+ return throwDefaultError({
2139
2105
  output,
2140
2106
  parsedBody,
2141
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2142
2107
  errorCode,
2143
2108
  });
2144
2109
  }
@@ -2149,12 +2114,12 @@ const de_ListReceivedGrantsCommand = async (output, context) => {
2149
2114
  }
2150
2115
  const data = await parseBody(output.body, context);
2151
2116
  let contents = {};
2152
- contents = de_ListReceivedGrantsResponse(data, context);
2117
+ contents = (0, smithy_client_1._json)(data);
2153
2118
  const response = {
2154
2119
  $metadata: deserializeMetadata(output),
2155
2120
  ...contents,
2156
2121
  };
2157
- return Promise.resolve(response);
2122
+ return response;
2158
2123
  };
2159
2124
  exports.de_ListReceivedGrantsCommand = de_ListReceivedGrantsCommand;
2160
2125
  const de_ListReceivedGrantsCommandError = async (output, context) => {
@@ -2187,10 +2152,9 @@ const de_ListReceivedGrantsCommandError = async (output, context) => {
2187
2152
  throw await de_ValidationExceptionRes(parsedOutput, context);
2188
2153
  default:
2189
2154
  const parsedBody = parsedOutput.body;
2190
- (0, smithy_client_1.throwDefaultError)({
2155
+ return throwDefaultError({
2191
2156
  output,
2192
2157
  parsedBody,
2193
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2194
2158
  errorCode,
2195
2159
  });
2196
2160
  }
@@ -2201,12 +2165,12 @@ const de_ListReceivedGrantsForOrganizationCommand = async (output, context) => {
2201
2165
  }
2202
2166
  const data = await parseBody(output.body, context);
2203
2167
  let contents = {};
2204
- contents = de_ListReceivedGrantsForOrganizationResponse(data, context);
2168
+ contents = (0, smithy_client_1._json)(data);
2205
2169
  const response = {
2206
2170
  $metadata: deserializeMetadata(output),
2207
2171
  ...contents,
2208
2172
  };
2209
- return Promise.resolve(response);
2173
+ return response;
2210
2174
  };
2211
2175
  exports.de_ListReceivedGrantsForOrganizationCommand = de_ListReceivedGrantsForOrganizationCommand;
2212
2176
  const de_ListReceivedGrantsForOrganizationCommandError = async (output, context) => {
@@ -2239,10 +2203,9 @@ const de_ListReceivedGrantsForOrganizationCommandError = async (output, context)
2239
2203
  throw await de_ValidationExceptionRes(parsedOutput, context);
2240
2204
  default:
2241
2205
  const parsedBody = parsedOutput.body;
2242
- (0, smithy_client_1.throwDefaultError)({
2206
+ return throwDefaultError({
2243
2207
  output,
2244
2208
  parsedBody,
2245
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2246
2209
  errorCode,
2247
2210
  });
2248
2211
  }
@@ -2253,12 +2216,12 @@ const de_ListReceivedLicensesCommand = async (output, context) => {
2253
2216
  }
2254
2217
  const data = await parseBody(output.body, context);
2255
2218
  let contents = {};
2256
- contents = de_ListReceivedLicensesResponse(data, context);
2219
+ contents = (0, smithy_client_1._json)(data);
2257
2220
  const response = {
2258
2221
  $metadata: deserializeMetadata(output),
2259
2222
  ...contents,
2260
2223
  };
2261
- return Promise.resolve(response);
2224
+ return response;
2262
2225
  };
2263
2226
  exports.de_ListReceivedLicensesCommand = de_ListReceivedLicensesCommand;
2264
2227
  const de_ListReceivedLicensesCommandError = async (output, context) => {
@@ -2291,10 +2254,9 @@ const de_ListReceivedLicensesCommandError = async (output, context) => {
2291
2254
  throw await de_ValidationExceptionRes(parsedOutput, context);
2292
2255
  default:
2293
2256
  const parsedBody = parsedOutput.body;
2294
- (0, smithy_client_1.throwDefaultError)({
2257
+ return throwDefaultError({
2295
2258
  output,
2296
2259
  parsedBody,
2297
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2298
2260
  errorCode,
2299
2261
  });
2300
2262
  }
@@ -2305,12 +2267,12 @@ const de_ListReceivedLicensesForOrganizationCommand = async (output, context) =>
2305
2267
  }
2306
2268
  const data = await parseBody(output.body, context);
2307
2269
  let contents = {};
2308
- contents = de_ListReceivedLicensesForOrganizationResponse(data, context);
2270
+ contents = (0, smithy_client_1._json)(data);
2309
2271
  const response = {
2310
2272
  $metadata: deserializeMetadata(output),
2311
2273
  ...contents,
2312
2274
  };
2313
- return Promise.resolve(response);
2275
+ return response;
2314
2276
  };
2315
2277
  exports.de_ListReceivedLicensesForOrganizationCommand = de_ListReceivedLicensesForOrganizationCommand;
2316
2278
  const de_ListReceivedLicensesForOrganizationCommandError = async (output, context) => {
@@ -2343,10 +2305,9 @@ const de_ListReceivedLicensesForOrganizationCommandError = async (output, contex
2343
2305
  throw await de_ValidationExceptionRes(parsedOutput, context);
2344
2306
  default:
2345
2307
  const parsedBody = parsedOutput.body;
2346
- (0, smithy_client_1.throwDefaultError)({
2308
+ return throwDefaultError({
2347
2309
  output,
2348
2310
  parsedBody,
2349
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2350
2311
  errorCode,
2351
2312
  });
2352
2313
  }
@@ -2357,12 +2318,12 @@ const de_ListResourceInventoryCommand = async (output, context) => {
2357
2318
  }
2358
2319
  const data = await parseBody(output.body, context);
2359
2320
  let contents = {};
2360
- contents = de_ListResourceInventoryResponse(data, context);
2321
+ contents = (0, smithy_client_1._json)(data);
2361
2322
  const response = {
2362
2323
  $metadata: deserializeMetadata(output),
2363
2324
  ...contents,
2364
2325
  };
2365
- return Promise.resolve(response);
2326
+ return response;
2366
2327
  };
2367
2328
  exports.de_ListResourceInventoryCommand = de_ListResourceInventoryCommand;
2368
2329
  const de_ListResourceInventoryCommandError = async (output, context) => {
@@ -2395,10 +2356,9 @@ const de_ListResourceInventoryCommandError = async (output, context) => {
2395
2356
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2396
2357
  default:
2397
2358
  const parsedBody = parsedOutput.body;
2398
- (0, smithy_client_1.throwDefaultError)({
2359
+ return throwDefaultError({
2399
2360
  output,
2400
2361
  parsedBody,
2401
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2402
2362
  errorCode,
2403
2363
  });
2404
2364
  }
@@ -2409,12 +2369,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
2409
2369
  }
2410
2370
  const data = await parseBody(output.body, context);
2411
2371
  let contents = {};
2412
- contents = de_ListTagsForResourceResponse(data, context);
2372
+ contents = (0, smithy_client_1._json)(data);
2413
2373
  const response = {
2414
2374
  $metadata: deserializeMetadata(output),
2415
2375
  ...contents,
2416
2376
  };
2417
- return Promise.resolve(response);
2377
+ return response;
2418
2378
  };
2419
2379
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
2420
2380
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -2441,10 +2401,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2441
2401
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2442
2402
  default:
2443
2403
  const parsedBody = parsedOutput.body;
2444
- (0, smithy_client_1.throwDefaultError)({
2404
+ return throwDefaultError({
2445
2405
  output,
2446
2406
  parsedBody,
2447
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2448
2407
  errorCode,
2449
2408
  });
2450
2409
  }
@@ -2455,12 +2414,12 @@ const de_ListTokensCommand = async (output, context) => {
2455
2414
  }
2456
2415
  const data = await parseBody(output.body, context);
2457
2416
  let contents = {};
2458
- contents = de_ListTokensResponse(data, context);
2417
+ contents = (0, smithy_client_1._json)(data);
2459
2418
  const response = {
2460
2419
  $metadata: deserializeMetadata(output),
2461
2420
  ...contents,
2462
2421
  };
2463
- return Promise.resolve(response);
2422
+ return response;
2464
2423
  };
2465
2424
  exports.de_ListTokensCommand = de_ListTokensCommand;
2466
2425
  const de_ListTokensCommandError = async (output, context) => {
@@ -2487,10 +2446,9 @@ const de_ListTokensCommandError = async (output, context) => {
2487
2446
  throw await de_ValidationExceptionRes(parsedOutput, context);
2488
2447
  default:
2489
2448
  const parsedBody = parsedOutput.body;
2490
- (0, smithy_client_1.throwDefaultError)({
2449
+ return throwDefaultError({
2491
2450
  output,
2492
2451
  parsedBody,
2493
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2494
2452
  errorCode,
2495
2453
  });
2496
2454
  }
@@ -2506,7 +2464,7 @@ const de_ListUsageForLicenseConfigurationCommand = async (output, context) => {
2506
2464
  $metadata: deserializeMetadata(output),
2507
2465
  ...contents,
2508
2466
  };
2509
- return Promise.resolve(response);
2467
+ return response;
2510
2468
  };
2511
2469
  exports.de_ListUsageForLicenseConfigurationCommand = de_ListUsageForLicenseConfigurationCommand;
2512
2470
  const de_ListUsageForLicenseConfigurationCommandError = async (output, context) => {
@@ -2536,10 +2494,9 @@ const de_ListUsageForLicenseConfigurationCommandError = async (output, context)
2536
2494
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2537
2495
  default:
2538
2496
  const parsedBody = parsedOutput.body;
2539
- (0, smithy_client_1.throwDefaultError)({
2497
+ return throwDefaultError({
2540
2498
  output,
2541
2499
  parsedBody,
2542
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2543
2500
  errorCode,
2544
2501
  });
2545
2502
  }
@@ -2550,12 +2507,12 @@ const de_RejectGrantCommand = async (output, context) => {
2550
2507
  }
2551
2508
  const data = await parseBody(output.body, context);
2552
2509
  let contents = {};
2553
- contents = de_RejectGrantResponse(data, context);
2510
+ contents = (0, smithy_client_1._json)(data);
2554
2511
  const response = {
2555
2512
  $metadata: deserializeMetadata(output),
2556
2513
  ...contents,
2557
2514
  };
2558
- return Promise.resolve(response);
2515
+ return response;
2559
2516
  };
2560
2517
  exports.de_RejectGrantCommand = de_RejectGrantCommand;
2561
2518
  const de_RejectGrantCommandError = async (output, context) => {
@@ -2588,10 +2545,9 @@ const de_RejectGrantCommandError = async (output, context) => {
2588
2545
  throw await de_ValidationExceptionRes(parsedOutput, context);
2589
2546
  default:
2590
2547
  const parsedBody = parsedOutput.body;
2591
- (0, smithy_client_1.throwDefaultError)({
2548
+ return throwDefaultError({
2592
2549
  output,
2593
2550
  parsedBody,
2594
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2595
2551
  errorCode,
2596
2552
  });
2597
2553
  }
@@ -2602,12 +2558,12 @@ const de_TagResourceCommand = async (output, context) => {
2602
2558
  }
2603
2559
  const data = await parseBody(output.body, context);
2604
2560
  let contents = {};
2605
- contents = de_TagResourceResponse(data, context);
2561
+ contents = (0, smithy_client_1._json)(data);
2606
2562
  const response = {
2607
2563
  $metadata: deserializeMetadata(output),
2608
2564
  ...contents,
2609
2565
  };
2610
- return Promise.resolve(response);
2566
+ return response;
2611
2567
  };
2612
2568
  exports.de_TagResourceCommand = de_TagResourceCommand;
2613
2569
  const de_TagResourceCommandError = async (output, context) => {
@@ -2634,10 +2590,9 @@ const de_TagResourceCommandError = async (output, context) => {
2634
2590
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2635
2591
  default:
2636
2592
  const parsedBody = parsedOutput.body;
2637
- (0, smithy_client_1.throwDefaultError)({
2593
+ return throwDefaultError({
2638
2594
  output,
2639
2595
  parsedBody,
2640
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2641
2596
  errorCode,
2642
2597
  });
2643
2598
  }
@@ -2648,12 +2603,12 @@ const de_UntagResourceCommand = async (output, context) => {
2648
2603
  }
2649
2604
  const data = await parseBody(output.body, context);
2650
2605
  let contents = {};
2651
- contents = de_UntagResourceResponse(data, context);
2606
+ contents = (0, smithy_client_1._json)(data);
2652
2607
  const response = {
2653
2608
  $metadata: deserializeMetadata(output),
2654
2609
  ...contents,
2655
2610
  };
2656
- return Promise.resolve(response);
2611
+ return response;
2657
2612
  };
2658
2613
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2659
2614
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2680,10 +2635,9 @@ const de_UntagResourceCommandError = async (output, context) => {
2680
2635
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2681
2636
  default:
2682
2637
  const parsedBody = parsedOutput.body;
2683
- (0, smithy_client_1.throwDefaultError)({
2638
+ return throwDefaultError({
2684
2639
  output,
2685
2640
  parsedBody,
2686
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2687
2641
  errorCode,
2688
2642
  });
2689
2643
  }
@@ -2694,12 +2648,12 @@ const de_UpdateLicenseConfigurationCommand = async (output, context) => {
2694
2648
  }
2695
2649
  const data = await parseBody(output.body, context);
2696
2650
  let contents = {};
2697
- contents = de_UpdateLicenseConfigurationResponse(data, context);
2651
+ contents = (0, smithy_client_1._json)(data);
2698
2652
  const response = {
2699
2653
  $metadata: deserializeMetadata(output),
2700
2654
  ...contents,
2701
2655
  };
2702
- return Promise.resolve(response);
2656
+ return response;
2703
2657
  };
2704
2658
  exports.de_UpdateLicenseConfigurationCommand = de_UpdateLicenseConfigurationCommand;
2705
2659
  const de_UpdateLicenseConfigurationCommandError = async (output, context) => {
@@ -2729,10 +2683,9 @@ const de_UpdateLicenseConfigurationCommandError = async (output, context) => {
2729
2683
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2730
2684
  default:
2731
2685
  const parsedBody = parsedOutput.body;
2732
- (0, smithy_client_1.throwDefaultError)({
2686
+ return throwDefaultError({
2733
2687
  output,
2734
2688
  parsedBody,
2735
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2736
2689
  errorCode,
2737
2690
  });
2738
2691
  }
@@ -2743,12 +2696,12 @@ const de_UpdateLicenseManagerReportGeneratorCommand = async (output, context) =>
2743
2696
  }
2744
2697
  const data = await parseBody(output.body, context);
2745
2698
  let contents = {};
2746
- contents = de_UpdateLicenseManagerReportGeneratorResponse(data, context);
2699
+ contents = (0, smithy_client_1._json)(data);
2747
2700
  const response = {
2748
2701
  $metadata: deserializeMetadata(output),
2749
2702
  ...contents,
2750
2703
  };
2751
- return Promise.resolve(response);
2704
+ return response;
2752
2705
  };
2753
2706
  exports.de_UpdateLicenseManagerReportGeneratorCommand = de_UpdateLicenseManagerReportGeneratorCommand;
2754
2707
  const de_UpdateLicenseManagerReportGeneratorCommandError = async (output, context) => {
@@ -2784,10 +2737,9 @@ const de_UpdateLicenseManagerReportGeneratorCommandError = async (output, contex
2784
2737
  throw await de_ValidationExceptionRes(parsedOutput, context);
2785
2738
  default:
2786
2739
  const parsedBody = parsedOutput.body;
2787
- (0, smithy_client_1.throwDefaultError)({
2740
+ return throwDefaultError({
2788
2741
  output,
2789
2742
  parsedBody,
2790
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2791
2743
  errorCode,
2792
2744
  });
2793
2745
  }
@@ -2798,12 +2750,12 @@ const de_UpdateLicenseSpecificationsForResourceCommand = async (output, context)
2798
2750
  }
2799
2751
  const data = await parseBody(output.body, context);
2800
2752
  let contents = {};
2801
- contents = de_UpdateLicenseSpecificationsForResourceResponse(data, context);
2753
+ contents = (0, smithy_client_1._json)(data);
2802
2754
  const response = {
2803
2755
  $metadata: deserializeMetadata(output),
2804
2756
  ...contents,
2805
2757
  };
2806
- return Promise.resolve(response);
2758
+ return response;
2807
2759
  };
2808
2760
  exports.de_UpdateLicenseSpecificationsForResourceCommand = de_UpdateLicenseSpecificationsForResourceCommand;
2809
2761
  const de_UpdateLicenseSpecificationsForResourceCommandError = async (output, context) => {
@@ -2836,10 +2788,9 @@ const de_UpdateLicenseSpecificationsForResourceCommandError = async (output, con
2836
2788
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2837
2789
  default:
2838
2790
  const parsedBody = parsedOutput.body;
2839
- (0, smithy_client_1.throwDefaultError)({
2791
+ return throwDefaultError({
2840
2792
  output,
2841
2793
  parsedBody,
2842
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2843
2794
  errorCode,
2844
2795
  });
2845
2796
  }
@@ -2850,12 +2801,12 @@ const de_UpdateServiceSettingsCommand = async (output, context) => {
2850
2801
  }
2851
2802
  const data = await parseBody(output.body, context);
2852
2803
  let contents = {};
2853
- contents = de_UpdateServiceSettingsResponse(data, context);
2804
+ contents = (0, smithy_client_1._json)(data);
2854
2805
  const response = {
2855
2806
  $metadata: deserializeMetadata(output),
2856
2807
  ...contents,
2857
2808
  };
2858
- return Promise.resolve(response);
2809
+ return response;
2859
2810
  };
2860
2811
  exports.de_UpdateServiceSettingsCommand = de_UpdateServiceSettingsCommand;
2861
2812
  const de_UpdateServiceSettingsCommandError = async (output, context) => {
@@ -2882,17 +2833,16 @@ const de_UpdateServiceSettingsCommandError = async (output, context) => {
2882
2833
  throw await de_ServerInternalExceptionRes(parsedOutput, context);
2883
2834
  default:
2884
2835
  const parsedBody = parsedOutput.body;
2885
- (0, smithy_client_1.throwDefaultError)({
2836
+ return throwDefaultError({
2886
2837
  output,
2887
2838
  parsedBody,
2888
- exceptionCtor: LicenseManagerServiceException_1.LicenseManagerServiceException,
2889
2839
  errorCode,
2890
2840
  });
2891
2841
  }
2892
2842
  };
2893
2843
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2894
2844
  const body = parsedOutput.body;
2895
- const deserialized = de_AccessDeniedException(body, context);
2845
+ const deserialized = (0, smithy_client_1._json)(body);
2896
2846
  const exception = new models_0_1.AccessDeniedException({
2897
2847
  $metadata: deserializeMetadata(parsedOutput),
2898
2848
  ...deserialized,
@@ -2901,7 +2851,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
2901
2851
  };
2902
2852
  const de_AuthorizationExceptionRes = async (parsedOutput, context) => {
2903
2853
  const body = parsedOutput.body;
2904
- const deserialized = de_AuthorizationException(body, context);
2854
+ const deserialized = (0, smithy_client_1._json)(body);
2905
2855
  const exception = new models_0_1.AuthorizationException({
2906
2856
  $metadata: deserializeMetadata(parsedOutput),
2907
2857
  ...deserialized,
@@ -2910,7 +2860,7 @@ const de_AuthorizationExceptionRes = async (parsedOutput, context) => {
2910
2860
  };
2911
2861
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
2912
2862
  const body = parsedOutput.body;
2913
- const deserialized = de_ConflictException(body, context);
2863
+ const deserialized = (0, smithy_client_1._json)(body);
2914
2864
  const exception = new models_0_1.ConflictException({
2915
2865
  $metadata: deserializeMetadata(parsedOutput),
2916
2866
  ...deserialized,
@@ -2919,7 +2869,7 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
2919
2869
  };
2920
2870
  const de_EntitlementNotAllowedExceptionRes = async (parsedOutput, context) => {
2921
2871
  const body = parsedOutput.body;
2922
- const deserialized = de_EntitlementNotAllowedException(body, context);
2872
+ const deserialized = (0, smithy_client_1._json)(body);
2923
2873
  const exception = new models_0_1.EntitlementNotAllowedException({
2924
2874
  $metadata: deserializeMetadata(parsedOutput),
2925
2875
  ...deserialized,
@@ -2928,7 +2878,7 @@ const de_EntitlementNotAllowedExceptionRes = async (parsedOutput, context) => {
2928
2878
  };
2929
2879
  const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
2930
2880
  const body = parsedOutput.body;
2931
- const deserialized = de_FailedDependencyException(body, context);
2881
+ const deserialized = (0, smithy_client_1._json)(body);
2932
2882
  const exception = new models_0_1.FailedDependencyException({
2933
2883
  $metadata: deserializeMetadata(parsedOutput),
2934
2884
  ...deserialized,
@@ -2937,7 +2887,7 @@ const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
2937
2887
  };
2938
2888
  const de_FilterLimitExceededExceptionRes = async (parsedOutput, context) => {
2939
2889
  const body = parsedOutput.body;
2940
- const deserialized = de_FilterLimitExceededException(body, context);
2890
+ const deserialized = (0, smithy_client_1._json)(body);
2941
2891
  const exception = new models_0_1.FilterLimitExceededException({
2942
2892
  $metadata: deserializeMetadata(parsedOutput),
2943
2893
  ...deserialized,
@@ -2946,7 +2896,7 @@ const de_FilterLimitExceededExceptionRes = async (parsedOutput, context) => {
2946
2896
  };
2947
2897
  const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
2948
2898
  const body = parsedOutput.body;
2949
- const deserialized = de_InvalidParameterValueException(body, context);
2899
+ const deserialized = (0, smithy_client_1._json)(body);
2950
2900
  const exception = new models_0_1.InvalidParameterValueException({
2951
2901
  $metadata: deserializeMetadata(parsedOutput),
2952
2902
  ...deserialized,
@@ -2955,7 +2905,7 @@ const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
2955
2905
  };
2956
2906
  const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
2957
2907
  const body = parsedOutput.body;
2958
- const deserialized = de_InvalidResourceStateException(body, context);
2908
+ const deserialized = (0, smithy_client_1._json)(body);
2959
2909
  const exception = new models_0_1.InvalidResourceStateException({
2960
2910
  $metadata: deserializeMetadata(parsedOutput),
2961
2911
  ...deserialized,
@@ -2964,7 +2914,7 @@ const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
2964
2914
  };
2965
2915
  const de_LicenseUsageExceptionRes = async (parsedOutput, context) => {
2966
2916
  const body = parsedOutput.body;
2967
- const deserialized = de_LicenseUsageException(body, context);
2917
+ const deserialized = (0, smithy_client_1._json)(body);
2968
2918
  const exception = new models_0_1.LicenseUsageException({
2969
2919
  $metadata: deserializeMetadata(parsedOutput),
2970
2920
  ...deserialized,
@@ -2973,7 +2923,7 @@ const de_LicenseUsageExceptionRes = async (parsedOutput, context) => {
2973
2923
  };
2974
2924
  const de_NoEntitlementsAllowedExceptionRes = async (parsedOutput, context) => {
2975
2925
  const body = parsedOutput.body;
2976
- const deserialized = de_NoEntitlementsAllowedException(body, context);
2926
+ const deserialized = (0, smithy_client_1._json)(body);
2977
2927
  const exception = new models_0_1.NoEntitlementsAllowedException({
2978
2928
  $metadata: deserializeMetadata(parsedOutput),
2979
2929
  ...deserialized,
@@ -2982,7 +2932,7 @@ const de_NoEntitlementsAllowedExceptionRes = async (parsedOutput, context) => {
2982
2932
  };
2983
2933
  const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
2984
2934
  const body = parsedOutput.body;
2985
- const deserialized = de_RateLimitExceededException(body, context);
2935
+ const deserialized = (0, smithy_client_1._json)(body);
2986
2936
  const exception = new models_0_1.RateLimitExceededException({
2987
2937
  $metadata: deserializeMetadata(parsedOutput),
2988
2938
  ...deserialized,
@@ -2991,7 +2941,7 @@ const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
2991
2941
  };
2992
2942
  const de_RedirectExceptionRes = async (parsedOutput, context) => {
2993
2943
  const body = parsedOutput.body;
2994
- const deserialized = de_RedirectException(body, context);
2944
+ const deserialized = (0, smithy_client_1._json)(body);
2995
2945
  const exception = new models_0_1.RedirectException({
2996
2946
  $metadata: deserializeMetadata(parsedOutput),
2997
2947
  ...deserialized,
@@ -3000,7 +2950,7 @@ const de_RedirectExceptionRes = async (parsedOutput, context) => {
3000
2950
  };
3001
2951
  const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
3002
2952
  const body = parsedOutput.body;
3003
- const deserialized = de_ResourceLimitExceededException(body, context);
2953
+ const deserialized = (0, smithy_client_1._json)(body);
3004
2954
  const exception = new models_0_1.ResourceLimitExceededException({
3005
2955
  $metadata: deserializeMetadata(parsedOutput),
3006
2956
  ...deserialized,
@@ -3009,7 +2959,7 @@ const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
3009
2959
  };
3010
2960
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3011
2961
  const body = parsedOutput.body;
3012
- const deserialized = de_ResourceNotFoundException(body, context);
2962
+ const deserialized = (0, smithy_client_1._json)(body);
3013
2963
  const exception = new models_0_1.ResourceNotFoundException({
3014
2964
  $metadata: deserializeMetadata(parsedOutput),
3015
2965
  ...deserialized,
@@ -3018,7 +2968,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
3018
2968
  };
3019
2969
  const de_ServerInternalExceptionRes = async (parsedOutput, context) => {
3020
2970
  const body = parsedOutput.body;
3021
- const deserialized = de_ServerInternalException(body, context);
2971
+ const deserialized = (0, smithy_client_1._json)(body);
3022
2972
  const exception = new models_0_1.ServerInternalException({
3023
2973
  $metadata: deserializeMetadata(parsedOutput),
3024
2974
  ...deserialized,
@@ -3027,7 +2977,7 @@ const de_ServerInternalExceptionRes = async (parsedOutput, context) => {
3027
2977
  };
3028
2978
  const de_UnsupportedDigitalSignatureMethodExceptionRes = async (parsedOutput, context) => {
3029
2979
  const body = parsedOutput.body;
3030
- const deserialized = de_UnsupportedDigitalSignatureMethodException(body, context);
2980
+ const deserialized = (0, smithy_client_1._json)(body);
3031
2981
  const exception = new models_0_1.UnsupportedDigitalSignatureMethodException({
3032
2982
  $metadata: deserializeMetadata(parsedOutput),
3033
2983
  ...deserialized,
@@ -3036,1176 +2986,85 @@ const de_UnsupportedDigitalSignatureMethodExceptionRes = async (parsedOutput, co
3036
2986
  };
3037
2987
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
3038
2988
  const body = parsedOutput.body;
3039
- const deserialized = de_ValidationException(body, context);
2989
+ const deserialized = (0, smithy_client_1._json)(body);
3040
2990
  const exception = new models_0_1.ValidationException({
3041
2991
  $metadata: deserializeMetadata(parsedOutput),
3042
2992
  ...deserialized,
3043
2993
  });
3044
2994
  return (0, smithy_client_1.decorateServiceException)(exception, body);
3045
2995
  };
3046
- const se_AcceptGrantRequest = (input, context) => {
3047
- return {
3048
- ...(input.GrantArn != null && { GrantArn: input.GrantArn }),
3049
- };
3050
- };
3051
- const se_AllowedOperationList = (input, context) => {
3052
- return input
3053
- .filter((e) => e != null)
3054
- .map((entry) => {
3055
- return entry;
3056
- });
3057
- };
3058
- const se_ArnList = (input, context) => {
3059
- return input
3060
- .filter((e) => e != null)
3061
- .map((entry) => {
3062
- return entry;
3063
- });
3064
- };
3065
- const se_BorrowConfiguration = (input, context) => {
3066
- return {
3067
- ...(input.AllowEarlyCheckIn != null && { AllowEarlyCheckIn: input.AllowEarlyCheckIn }),
3068
- ...(input.MaxTimeToLiveInMinutes != null && { MaxTimeToLiveInMinutes: input.MaxTimeToLiveInMinutes }),
3069
- };
3070
- };
3071
- const se_CheckInLicenseRequest = (input, context) => {
3072
- return {
3073
- ...(input.Beneficiary != null && { Beneficiary: input.Beneficiary }),
3074
- ...(input.LicenseConsumptionToken != null && { LicenseConsumptionToken: input.LicenseConsumptionToken }),
3075
- };
3076
- };
3077
- const se_CheckoutBorrowLicenseRequest = (input, context) => {
3078
- return {
3079
- ...(input.CheckoutMetadata != null && { CheckoutMetadata: se_MetadataList(input.CheckoutMetadata, context) }),
3080
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3081
- ...(input.DigitalSignatureMethod != null && { DigitalSignatureMethod: input.DigitalSignatureMethod }),
3082
- ...(input.Entitlements != null && { Entitlements: se_EntitlementDataList(input.Entitlements, context) }),
3083
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3084
- ...(input.NodeId != null && { NodeId: input.NodeId }),
3085
- };
3086
- };
3087
- const se_CheckoutLicenseRequest = (input, context) => {
3088
- return {
3089
- ...(input.Beneficiary != null && { Beneficiary: input.Beneficiary }),
3090
- ...(input.CheckoutType != null && { CheckoutType: input.CheckoutType }),
3091
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3092
- ...(input.Entitlements != null && { Entitlements: se_EntitlementDataList(input.Entitlements, context) }),
3093
- ...(input.KeyFingerprint != null && { KeyFingerprint: input.KeyFingerprint }),
3094
- ...(input.NodeId != null && { NodeId: input.NodeId }),
3095
- ...(input.ProductSKU != null && { ProductSKU: input.ProductSKU }),
3096
- };
3097
- };
3098
- const se_ConsumptionConfiguration = (input, context) => {
3099
- return {
3100
- ...(input.BorrowConfiguration != null && {
3101
- BorrowConfiguration: se_BorrowConfiguration(input.BorrowConfiguration, context),
3102
- }),
3103
- ...(input.ProvisionalConfiguration != null && {
3104
- ProvisionalConfiguration: se_ProvisionalConfiguration(input.ProvisionalConfiguration, context),
3105
- }),
3106
- ...(input.RenewType != null && { RenewType: input.RenewType }),
3107
- };
3108
- };
3109
- const se_CreateGrantRequest = (input, context) => {
3110
- return {
3111
- ...(input.AllowedOperations != null && {
3112
- AllowedOperations: se_AllowedOperationList(input.AllowedOperations, context),
3113
- }),
3114
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3115
- ...(input.GrantName != null && { GrantName: input.GrantName }),
3116
- ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
3117
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3118
- ...(input.Principals != null && { Principals: se_PrincipalArnList(input.Principals, context) }),
3119
- };
3120
- };
3121
- const se_CreateGrantVersionRequest = (input, context) => {
3122
- return {
3123
- ...(input.AllowedOperations != null && {
3124
- AllowedOperations: se_AllowedOperationList(input.AllowedOperations, context),
3125
- }),
3126
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3127
- ...(input.GrantArn != null && { GrantArn: input.GrantArn }),
3128
- ...(input.GrantName != null && { GrantName: input.GrantName }),
3129
- ...(input.Options != null && { Options: se_Options(input.Options, context) }),
3130
- ...(input.SourceVersion != null && { SourceVersion: input.SourceVersion }),
3131
- ...(input.Status != null && { Status: input.Status }),
3132
- ...(input.StatusReason != null && { StatusReason: input.StatusReason }),
3133
- };
3134
- };
3135
- const se_CreateLicenseConfigurationRequest = (input, context) => {
3136
- return {
3137
- ...(input.Description != null && { Description: input.Description }),
3138
- ...(input.DisassociateWhenNotFound != null && { DisassociateWhenNotFound: input.DisassociateWhenNotFound }),
3139
- ...(input.LicenseCount != null && { LicenseCount: input.LicenseCount }),
3140
- ...(input.LicenseCountHardLimit != null && { LicenseCountHardLimit: input.LicenseCountHardLimit }),
3141
- ...(input.LicenseCountingType != null && { LicenseCountingType: input.LicenseCountingType }),
3142
- ...(input.LicenseRules != null && { LicenseRules: se_StringList(input.LicenseRules, context) }),
3143
- ...(input.Name != null && { Name: input.Name }),
3144
- ...(input.ProductInformationList != null && {
3145
- ProductInformationList: se_ProductInformationList(input.ProductInformationList, context),
3146
- }),
3147
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3148
- };
3149
- };
3150
- const se_CreateLicenseConversionTaskForResourceRequest = (input, context) => {
3151
- return {
3152
- ...(input.DestinationLicenseContext != null && {
3153
- DestinationLicenseContext: se_LicenseConversionContext(input.DestinationLicenseContext, context),
3154
- }),
3155
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3156
- ...(input.SourceLicenseContext != null && {
3157
- SourceLicenseContext: se_LicenseConversionContext(input.SourceLicenseContext, context),
3158
- }),
3159
- };
3160
- };
3161
- const se_CreateLicenseManagerReportGeneratorRequest = (input, context) => {
3162
- return {
3163
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3164
- ...(input.Description != null && { Description: input.Description }),
3165
- ...(input.ReportContext != null && { ReportContext: se_ReportContext(input.ReportContext, context) }),
3166
- ...(input.ReportFrequency != null && { ReportFrequency: se_ReportFrequency(input.ReportFrequency, context) }),
3167
- ...(input.ReportGeneratorName != null && { ReportGeneratorName: input.ReportGeneratorName }),
3168
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3169
- ...(input.Type != null && { Type: se_ReportTypeList(input.Type, context) }),
3170
- };
3171
- };
3172
- const se_CreateLicenseRequest = (input, context) => {
3173
- return {
3174
- ...(input.Beneficiary != null && { Beneficiary: input.Beneficiary }),
3175
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3176
- ...(input.ConsumptionConfiguration != null && {
3177
- ConsumptionConfiguration: se_ConsumptionConfiguration(input.ConsumptionConfiguration, context),
3178
- }),
3179
- ...(input.Entitlements != null && { Entitlements: se_EntitlementList(input.Entitlements, context) }),
3180
- ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
3181
- ...(input.Issuer != null && { Issuer: se_Issuer(input.Issuer, context) }),
3182
- ...(input.LicenseMetadata != null && { LicenseMetadata: se_MetadataList(input.LicenseMetadata, context) }),
3183
- ...(input.LicenseName != null && { LicenseName: input.LicenseName }),
3184
- ...(input.ProductName != null && { ProductName: input.ProductName }),
3185
- ...(input.ProductSKU != null && { ProductSKU: input.ProductSKU }),
3186
- ...(input.Validity != null && { Validity: se_DatetimeRange(input.Validity, context) }),
3187
- };
3188
- };
3189
- const se_CreateLicenseVersionRequest = (input, context) => {
3190
- return {
3191
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3192
- ...(input.ConsumptionConfiguration != null && {
3193
- ConsumptionConfiguration: se_ConsumptionConfiguration(input.ConsumptionConfiguration, context),
3194
- }),
3195
- ...(input.Entitlements != null && { Entitlements: se_EntitlementList(input.Entitlements, context) }),
3196
- ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
3197
- ...(input.Issuer != null && { Issuer: se_Issuer(input.Issuer, context) }),
3198
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3199
- ...(input.LicenseMetadata != null && { LicenseMetadata: se_MetadataList(input.LicenseMetadata, context) }),
3200
- ...(input.LicenseName != null && { LicenseName: input.LicenseName }),
3201
- ...(input.ProductName != null && { ProductName: input.ProductName }),
3202
- ...(input.SourceVersion != null && { SourceVersion: input.SourceVersion }),
3203
- ...(input.Status != null && { Status: input.Status }),
3204
- ...(input.Validity != null && { Validity: se_DatetimeRange(input.Validity, context) }),
3205
- };
3206
- };
3207
- const se_CreateTokenRequest = (input, context) => {
3208
- return {
3209
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3210
- ...(input.ExpirationInDays != null && { ExpirationInDays: input.ExpirationInDays }),
3211
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3212
- ...(input.RoleArns != null && { RoleArns: se_ArnList(input.RoleArns, context) }),
3213
- ...(input.TokenProperties != null && { TokenProperties: se_MaxSize3StringList(input.TokenProperties, context) }),
3214
- };
3215
- };
3216
- const se_DatetimeRange = (input, context) => {
3217
- return {
3218
- ...(input.Begin != null && { Begin: input.Begin }),
3219
- ...(input.End != null && { End: input.End }),
3220
- };
3221
- };
3222
- const se_DeleteGrantRequest = (input, context) => {
3223
- return {
3224
- ...(input.GrantArn != null && { GrantArn: input.GrantArn }),
3225
- ...(input.StatusReason != null && { StatusReason: input.StatusReason }),
3226
- ...(input.Version != null && { Version: input.Version }),
3227
- };
3228
- };
3229
- const se_DeleteLicenseConfigurationRequest = (input, context) => {
3230
- return {
3231
- ...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
3232
- };
3233
- };
3234
- const se_DeleteLicenseManagerReportGeneratorRequest = (input, context) => {
3235
- return {
3236
- ...(input.LicenseManagerReportGeneratorArn != null && {
3237
- LicenseManagerReportGeneratorArn: input.LicenseManagerReportGeneratorArn,
3238
- }),
3239
- };
3240
- };
3241
- const se_DeleteLicenseRequest = (input, context) => {
3242
- return {
3243
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3244
- ...(input.SourceVersion != null && { SourceVersion: input.SourceVersion }),
3245
- };
3246
- };
3247
- const se_DeleteTokenRequest = (input, context) => {
3248
- return {
3249
- ...(input.TokenId != null && { TokenId: input.TokenId }),
3250
- };
3251
- };
3252
- const se_Entitlement = (input, context) => {
3253
- return {
3254
- ...(input.AllowCheckIn != null && { AllowCheckIn: input.AllowCheckIn }),
3255
- ...(input.MaxCount != null && { MaxCount: input.MaxCount }),
3256
- ...(input.Name != null && { Name: input.Name }),
3257
- ...(input.Overage != null && { Overage: input.Overage }),
3258
- ...(input.Unit != null && { Unit: input.Unit }),
3259
- ...(input.Value != null && { Value: input.Value }),
3260
- };
3261
- };
3262
- const se_EntitlementData = (input, context) => {
3263
- return {
3264
- ...(input.Name != null && { Name: input.Name }),
3265
- ...(input.Unit != null && { Unit: input.Unit }),
3266
- ...(input.Value != null && { Value: input.Value }),
3267
- };
3268
- };
3269
- const se_EntitlementDataList = (input, context) => {
3270
- return input
3271
- .filter((e) => e != null)
3272
- .map((entry) => {
3273
- return se_EntitlementData(entry, context);
3274
- });
3275
- };
3276
- const se_EntitlementList = (input, context) => {
3277
- return input
3278
- .filter((e) => e != null)
3279
- .map((entry) => {
3280
- return se_Entitlement(entry, context);
3281
- });
3282
- };
3283
- const se_ExtendLicenseConsumptionRequest = (input, context) => {
3284
- return {
3285
- ...(input.DryRun != null && { DryRun: input.DryRun }),
3286
- ...(input.LicenseConsumptionToken != null && { LicenseConsumptionToken: input.LicenseConsumptionToken }),
3287
- };
3288
- };
3289
- const se_Filter = (input, context) => {
3290
- return {
3291
- ...(input.Name != null && { Name: input.Name }),
3292
- ...(input.Values != null && { Values: se_FilterValues(input.Values, context) }),
3293
- };
3294
- };
3295
- const se_FilterList = (input, context) => {
3296
- return input
3297
- .filter((e) => e != null)
3298
- .map((entry) => {
3299
- return se_Filter(entry, context);
3300
- });
3301
- };
3302
- const se_Filters = (input, context) => {
3303
- return input
3304
- .filter((e) => e != null)
3305
- .map((entry) => {
3306
- return se_Filter(entry, context);
3307
- });
3308
- };
3309
- const se_FilterValues = (input, context) => {
3310
- return input
3311
- .filter((e) => e != null)
3312
- .map((entry) => {
3313
- return entry;
3314
- });
3315
- };
3316
- const se_GetAccessTokenRequest = (input, context) => {
3317
- return {
3318
- ...(input.Token != null && { Token: input.Token }),
3319
- ...(input.TokenProperties != null && { TokenProperties: se_MaxSize3StringList(input.TokenProperties, context) }),
3320
- };
3321
- };
3322
- const se_GetGrantRequest = (input, context) => {
3323
- return {
3324
- ...(input.GrantArn != null && { GrantArn: input.GrantArn }),
3325
- ...(input.Version != null && { Version: input.Version }),
3326
- };
3327
- };
3328
- const se_GetLicenseConfigurationRequest = (input, context) => {
3329
- return {
3330
- ...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
3331
- };
3332
- };
3333
- const se_GetLicenseConversionTaskRequest = (input, context) => {
3334
- return {
3335
- ...(input.LicenseConversionTaskId != null && { LicenseConversionTaskId: input.LicenseConversionTaskId }),
3336
- };
3337
- };
3338
- const se_GetLicenseManagerReportGeneratorRequest = (input, context) => {
3339
- return {
3340
- ...(input.LicenseManagerReportGeneratorArn != null && {
3341
- LicenseManagerReportGeneratorArn: input.LicenseManagerReportGeneratorArn,
3342
- }),
3343
- };
3344
- };
3345
- const se_GetLicenseRequest = (input, context) => {
3346
- return {
3347
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3348
- ...(input.Version != null && { Version: input.Version }),
3349
- };
3350
- };
3351
- const se_GetLicenseUsageRequest = (input, context) => {
3352
- return {
3353
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3354
- };
3355
- };
3356
- const se_GetServiceSettingsRequest = (input, context) => {
3357
- return {};
3358
- };
3359
- const se_InventoryFilter = (input, context) => {
3360
- return {
3361
- ...(input.Condition != null && { Condition: input.Condition }),
3362
- ...(input.Name != null && { Name: input.Name }),
3363
- ...(input.Value != null && { Value: input.Value }),
3364
- };
3365
- };
3366
- const se_InventoryFilterList = (input, context) => {
3367
- return input
3368
- .filter((e) => e != null)
3369
- .map((entry) => {
3370
- return se_InventoryFilter(entry, context);
3371
- });
3372
- };
3373
- const se_Issuer = (input, context) => {
3374
- return {
3375
- ...(input.Name != null && { Name: input.Name }),
3376
- ...(input.SignKey != null && { SignKey: input.SignKey }),
3377
- };
3378
- };
3379
- const se_LicenseConversionContext = (input, context) => {
3380
- return {
3381
- ...(input.UsageOperation != null && { UsageOperation: input.UsageOperation }),
3382
- };
3383
- };
3384
- const se_LicenseSpecification = (input, context) => {
3385
- return {
3386
- ...(input.AmiAssociationScope != null && { AmiAssociationScope: input.AmiAssociationScope }),
3387
- ...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
3388
- };
3389
- };
3390
- const se_LicenseSpecifications = (input, context) => {
3391
- return input
3392
- .filter((e) => e != null)
3393
- .map((entry) => {
3394
- return se_LicenseSpecification(entry, context);
3395
- });
3396
- };
3397
- const se_ListAssociationsForLicenseConfigurationRequest = (input, context) => {
3398
- return {
3399
- ...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
3400
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3401
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3402
- };
3403
- };
3404
- const se_ListDistributedGrantsRequest = (input, context) => {
3405
- return {
3406
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
3407
- ...(input.GrantArns != null && { GrantArns: se_ArnList(input.GrantArns, context) }),
3408
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3409
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3410
- };
3411
- };
3412
- const se_ListFailuresForLicenseConfigurationOperationsRequest = (input, context) => {
3413
- return {
3414
- ...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
3415
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3416
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3417
- };
3418
- };
3419
- const se_ListLicenseConfigurationsRequest = (input, context) => {
3420
- return {
3421
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3422
- ...(input.LicenseConfigurationArns != null && {
3423
- LicenseConfigurationArns: se_StringList(input.LicenseConfigurationArns, context),
3424
- }),
3425
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3426
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3427
- };
3428
- };
3429
- const se_ListLicenseConversionTasksRequest = (input, context) => {
3430
- return {
3431
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3432
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3433
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3434
- };
3435
- };
3436
- const se_ListLicenseManagerReportGeneratorsRequest = (input, context) => {
3437
- return {
3438
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
3439
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3440
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3441
- };
3442
- };
3443
- const se_ListLicenseSpecificationsForResourceRequest = (input, context) => {
3444
- return {
3445
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3446
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3447
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3448
- };
3449
- };
3450
- const se_ListLicensesRequest = (input, context) => {
3451
- return {
3452
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
3453
- ...(input.LicenseArns != null && { LicenseArns: se_ArnList(input.LicenseArns, context) }),
3454
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3455
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3456
- };
3457
- };
3458
- const se_ListLicenseVersionsRequest = (input, context) => {
3459
- return {
3460
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3461
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3462
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3463
- };
3464
- };
3465
- const se_ListReceivedGrantsForOrganizationRequest = (input, context) => {
3466
- return {
3467
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
3468
- ...(input.LicenseArn != null && { LicenseArn: input.LicenseArn }),
3469
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3470
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3471
- };
3472
- };
3473
- const se_ListReceivedGrantsRequest = (input, context) => {
3474
- return {
3475
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
3476
- ...(input.GrantArns != null && { GrantArns: se_ArnList(input.GrantArns, context) }),
3477
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3478
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3479
- };
3480
- };
3481
- const se_ListReceivedLicensesForOrganizationRequest = (input, context) => {
3482
- return {
3483
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
3484
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3485
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3486
- };
3487
- };
3488
- const se_ListReceivedLicensesRequest = (input, context) => {
3489
- return {
3490
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
3491
- ...(input.LicenseArns != null && { LicenseArns: se_ArnList(input.LicenseArns, context) }),
3492
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3493
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3494
- };
3495
- };
3496
- const se_ListResourceInventoryRequest = (input, context) => {
3497
- return {
3498
- ...(input.Filters != null && { Filters: se_InventoryFilterList(input.Filters, context) }),
3499
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3500
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3501
- };
3502
- };
3503
- const se_ListTagsForResourceRequest = (input, context) => {
3504
- return {
3505
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3506
- };
3507
- };
3508
- const se_ListTokensRequest = (input, context) => {
3509
- return {
3510
- ...(input.Filters != null && { Filters: se_FilterList(input.Filters, context) }),
3511
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3512
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3513
- ...(input.TokenIds != null && { TokenIds: se_StringList(input.TokenIds, context) }),
3514
- };
3515
- };
3516
- const se_ListUsageForLicenseConfigurationRequest = (input, context) => {
3517
- return {
3518
- ...(input.Filters != null && { Filters: se_Filters(input.Filters, context) }),
3519
- ...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
3520
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
3521
- ...(input.NextToken != null && { NextToken: input.NextToken }),
3522
- };
3523
- };
3524
- const se_MaxSize3StringList = (input, context) => {
3525
- return input
3526
- .filter((e) => e != null)
3527
- .map((entry) => {
3528
- return entry;
3529
- });
3530
- };
3531
- const se_Metadata = (input, context) => {
3532
- return {
3533
- ...(input.Name != null && { Name: input.Name }),
3534
- ...(input.Value != null && { Value: input.Value }),
3535
- };
3536
- };
3537
- const se_MetadataList = (input, context) => {
3538
- return input
3539
- .filter((e) => e != null)
3540
- .map((entry) => {
3541
- return se_Metadata(entry, context);
3542
- });
3543
- };
3544
- const se_Options = (input, context) => {
3545
- return {
3546
- ...(input.ActivationOverrideBehavior != null && { ActivationOverrideBehavior: input.ActivationOverrideBehavior }),
3547
- };
3548
- };
3549
- const se_OrganizationConfiguration = (input, context) => {
3550
- return {
3551
- ...(input.EnableIntegration != null && { EnableIntegration: input.EnableIntegration }),
3552
- };
3553
- };
3554
- const se_PrincipalArnList = (input, context) => {
3555
- return input
3556
- .filter((e) => e != null)
3557
- .map((entry) => {
3558
- return entry;
3559
- });
3560
- };
3561
- const se_ProductInformation = (input, context) => {
3562
- return {
3563
- ...(input.ProductInformationFilterList != null && {
3564
- ProductInformationFilterList: se_ProductInformationFilterList(input.ProductInformationFilterList, context),
3565
- }),
3566
- ...(input.ResourceType != null && { ResourceType: input.ResourceType }),
3567
- };
3568
- };
3569
- const se_ProductInformationFilter = (input, context) => {
3570
- return {
3571
- ...(input.ProductInformationFilterComparator != null && {
3572
- ProductInformationFilterComparator: input.ProductInformationFilterComparator,
3573
- }),
3574
- ...(input.ProductInformationFilterName != null && {
3575
- ProductInformationFilterName: input.ProductInformationFilterName,
3576
- }),
3577
- ...(input.ProductInformationFilterValue != null && {
3578
- ProductInformationFilterValue: se_StringList(input.ProductInformationFilterValue, context),
3579
- }),
3580
- };
3581
- };
3582
- const se_ProductInformationFilterList = (input, context) => {
3583
- return input
3584
- .filter((e) => e != null)
3585
- .map((entry) => {
3586
- return se_ProductInformationFilter(entry, context);
3587
- });
3588
- };
3589
- const se_ProductInformationList = (input, context) => {
3590
- return input
3591
- .filter((e) => e != null)
3592
- .map((entry) => {
3593
- return se_ProductInformation(entry, context);
3594
- });
3595
- };
3596
- const se_ProvisionalConfiguration = (input, context) => {
3597
- return {
3598
- ...(input.MaxTimeToLiveInMinutes != null && { MaxTimeToLiveInMinutes: input.MaxTimeToLiveInMinutes }),
3599
- };
3600
- };
3601
- const se_RejectGrantRequest = (input, context) => {
3602
- return {
3603
- ...(input.GrantArn != null && { GrantArn: input.GrantArn }),
3604
- };
3605
- };
3606
- const se_ReportContext = (input, context) => {
3607
- return {
3608
- ...(input.licenseConfigurationArns != null && {
3609
- licenseConfigurationArns: se_ArnList(input.licenseConfigurationArns, context),
3610
- }),
3611
- };
3612
- };
3613
- const se_ReportFrequency = (input, context) => {
3614
- return {
3615
- ...(input.period != null && { period: input.period }),
3616
- ...(input.value != null && { value: input.value }),
3617
- };
3618
- };
3619
- const se_ReportTypeList = (input, context) => {
3620
- return input
3621
- .filter((e) => e != null)
3622
- .map((entry) => {
3623
- return entry;
3624
- });
3625
- };
3626
- const se_StringList = (input, context) => {
3627
- return input
3628
- .filter((e) => e != null)
3629
- .map((entry) => {
3630
- return entry;
3631
- });
3632
- };
3633
- const se_Tag = (input, context) => {
3634
- return {
3635
- ...(input.Key != null && { Key: input.Key }),
3636
- ...(input.Value != null && { Value: input.Value }),
3637
- };
3638
- };
3639
- const se_TagKeyList = (input, context) => {
3640
- return input
3641
- .filter((e) => e != null)
3642
- .map((entry) => {
3643
- return entry;
3644
- });
3645
- };
3646
- const se_TagList = (input, context) => {
3647
- return input
3648
- .filter((e) => e != null)
3649
- .map((entry) => {
3650
- return se_Tag(entry, context);
3651
- });
3652
- };
3653
- const se_TagResourceRequest = (input, context) => {
3654
- return {
3655
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3656
- ...(input.Tags != null && { Tags: se_TagList(input.Tags, context) }),
3657
- };
3658
- };
3659
- const se_UntagResourceRequest = (input, context) => {
3660
- return {
3661
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3662
- ...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
3663
- };
3664
- };
3665
- const se_UpdateLicenseConfigurationRequest = (input, context) => {
3666
- return {
3667
- ...(input.Description != null && { Description: input.Description }),
3668
- ...(input.DisassociateWhenNotFound != null && { DisassociateWhenNotFound: input.DisassociateWhenNotFound }),
3669
- ...(input.LicenseConfigurationArn != null && { LicenseConfigurationArn: input.LicenseConfigurationArn }),
3670
- ...(input.LicenseConfigurationStatus != null && { LicenseConfigurationStatus: input.LicenseConfigurationStatus }),
3671
- ...(input.LicenseCount != null && { LicenseCount: input.LicenseCount }),
3672
- ...(input.LicenseCountHardLimit != null && { LicenseCountHardLimit: input.LicenseCountHardLimit }),
3673
- ...(input.LicenseRules != null && { LicenseRules: se_StringList(input.LicenseRules, context) }),
3674
- ...(input.Name != null && { Name: input.Name }),
3675
- ...(input.ProductInformationList != null && {
3676
- ProductInformationList: se_ProductInformationList(input.ProductInformationList, context),
3677
- }),
3678
- };
3679
- };
3680
- const se_UpdateLicenseManagerReportGeneratorRequest = (input, context) => {
3681
- return {
3682
- ...(input.ClientToken != null && { ClientToken: input.ClientToken }),
3683
- ...(input.Description != null && { Description: input.Description }),
3684
- ...(input.LicenseManagerReportGeneratorArn != null && {
3685
- LicenseManagerReportGeneratorArn: input.LicenseManagerReportGeneratorArn,
3686
- }),
3687
- ...(input.ReportContext != null && { ReportContext: se_ReportContext(input.ReportContext, context) }),
3688
- ...(input.ReportFrequency != null && { ReportFrequency: se_ReportFrequency(input.ReportFrequency, context) }),
3689
- ...(input.ReportGeneratorName != null && { ReportGeneratorName: input.ReportGeneratorName }),
3690
- ...(input.Type != null && { Type: se_ReportTypeList(input.Type, context) }),
3691
- };
3692
- };
3693
- const se_UpdateLicenseSpecificationsForResourceRequest = (input, context) => {
3694
- return {
3695
- ...(input.AddLicenseSpecifications != null && {
3696
- AddLicenseSpecifications: se_LicenseSpecifications(input.AddLicenseSpecifications, context),
3697
- }),
3698
- ...(input.RemoveLicenseSpecifications != null && {
3699
- RemoveLicenseSpecifications: se_LicenseSpecifications(input.RemoveLicenseSpecifications, context),
3700
- }),
3701
- ...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
3702
- };
3703
- };
3704
- const se_UpdateServiceSettingsRequest = (input, context) => {
3705
- return {
3706
- ...(input.EnableCrossAccountsDiscovery != null && {
3707
- EnableCrossAccountsDiscovery: input.EnableCrossAccountsDiscovery,
3708
- }),
3709
- ...(input.OrganizationConfiguration != null && {
3710
- OrganizationConfiguration: se_OrganizationConfiguration(input.OrganizationConfiguration, context),
3711
- }),
3712
- ...(input.S3BucketArn != null && { S3BucketArn: input.S3BucketArn }),
3713
- ...(input.SnsTopicArn != null && { SnsTopicArn: input.SnsTopicArn }),
3714
- };
3715
- };
3716
- const de_AcceptGrantResponse = (output, context) => {
3717
- return {
3718
- GrantArn: (0, smithy_client_1.expectString)(output.GrantArn),
3719
- Status: (0, smithy_client_1.expectString)(output.Status),
3720
- Version: (0, smithy_client_1.expectString)(output.Version),
3721
- };
3722
- };
3723
- const de_AccessDeniedException = (output, context) => {
3724
- return {
3725
- Message: (0, smithy_client_1.expectString)(output.Message),
3726
- };
3727
- };
3728
- const de_AllowedOperationList = (output, context) => {
3729
- const retVal = (output || [])
3730
- .filter((e) => e != null)
3731
- .map((entry) => {
3732
- if (entry === null) {
3733
- return null;
3734
- }
3735
- return (0, smithy_client_1.expectString)(entry);
3736
- });
3737
- return retVal;
3738
- };
3739
- const de_ArnList = (output, context) => {
3740
- const retVal = (output || [])
3741
- .filter((e) => e != null)
3742
- .map((entry) => {
3743
- if (entry === null) {
3744
- return null;
3745
- }
3746
- return (0, smithy_client_1.expectString)(entry);
3747
- });
3748
- return retVal;
3749
- };
3750
- const de_AuthorizationException = (output, context) => {
3751
- return {
3752
- Message: (0, smithy_client_1.expectString)(output.Message),
3753
- };
3754
- };
3755
2996
  const de_AutomatedDiscoveryInformation = (output, context) => {
3756
- return {
3757
- LastRunTime: output.LastRunTime != null
3758
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastRunTime)))
3759
- : undefined,
3760
- };
3761
- };
3762
- const de_BorrowConfiguration = (output, context) => {
3763
- return {
3764
- AllowEarlyCheckIn: (0, smithy_client_1.expectBoolean)(output.AllowEarlyCheckIn),
3765
- MaxTimeToLiveInMinutes: (0, smithy_client_1.expectInt32)(output.MaxTimeToLiveInMinutes),
3766
- };
3767
- };
3768
- const de_CheckInLicenseResponse = (output, context) => {
3769
- return {};
3770
- };
3771
- const de_CheckoutBorrowLicenseResponse = (output, context) => {
3772
- return {
3773
- CheckoutMetadata: output.CheckoutMetadata != null ? de_MetadataList(output.CheckoutMetadata, context) : undefined,
3774
- EntitlementsAllowed: output.EntitlementsAllowed != null ? de_EntitlementDataList(output.EntitlementsAllowed, context) : undefined,
3775
- Expiration: (0, smithy_client_1.expectString)(output.Expiration),
3776
- IssuedAt: (0, smithy_client_1.expectString)(output.IssuedAt),
3777
- LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
3778
- LicenseConsumptionToken: (0, smithy_client_1.expectString)(output.LicenseConsumptionToken),
3779
- NodeId: (0, smithy_client_1.expectString)(output.NodeId),
3780
- SignedToken: (0, smithy_client_1.expectString)(output.SignedToken),
3781
- };
3782
- };
3783
- const de_CheckoutLicenseResponse = (output, context) => {
3784
- return {
3785
- CheckoutType: (0, smithy_client_1.expectString)(output.CheckoutType),
3786
- EntitlementsAllowed: output.EntitlementsAllowed != null ? de_EntitlementDataList(output.EntitlementsAllowed, context) : undefined,
3787
- Expiration: (0, smithy_client_1.expectString)(output.Expiration),
3788
- IssuedAt: (0, smithy_client_1.expectString)(output.IssuedAt),
3789
- LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
3790
- LicenseConsumptionToken: (0, smithy_client_1.expectString)(output.LicenseConsumptionToken),
3791
- NodeId: (0, smithy_client_1.expectString)(output.NodeId),
3792
- SignedToken: (0, smithy_client_1.expectString)(output.SignedToken),
3793
- };
3794
- };
3795
- const de_ConflictException = (output, context) => {
3796
- return {
3797
- Message: (0, smithy_client_1.expectString)(output.Message),
3798
- };
3799
- };
3800
- const de_ConsumedLicenseSummary = (output, context) => {
3801
- return {
3802
- ConsumedLicenses: (0, smithy_client_1.expectLong)(output.ConsumedLicenses),
3803
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
3804
- };
3805
- };
3806
- const de_ConsumedLicenseSummaryList = (output, context) => {
3807
- const retVal = (output || [])
3808
- .filter((e) => e != null)
3809
- .map((entry) => {
3810
- if (entry === null) {
3811
- return null;
3812
- }
3813
- return de_ConsumedLicenseSummary(entry, context);
3814
- });
3815
- return retVal;
3816
- };
3817
- const de_ConsumptionConfiguration = (output, context) => {
3818
- return {
3819
- BorrowConfiguration: output.BorrowConfiguration != null ? de_BorrowConfiguration(output.BorrowConfiguration, context) : undefined,
3820
- ProvisionalConfiguration: output.ProvisionalConfiguration != null
3821
- ? de_ProvisionalConfiguration(output.ProvisionalConfiguration, context)
3822
- : undefined,
3823
- RenewType: (0, smithy_client_1.expectString)(output.RenewType),
3824
- };
3825
- };
3826
- const de_CreateGrantResponse = (output, context) => {
3827
- return {
3828
- GrantArn: (0, smithy_client_1.expectString)(output.GrantArn),
3829
- Status: (0, smithy_client_1.expectString)(output.Status),
3830
- Version: (0, smithy_client_1.expectString)(output.Version),
3831
- };
3832
- };
3833
- const de_CreateGrantVersionResponse = (output, context) => {
3834
- return {
3835
- GrantArn: (0, smithy_client_1.expectString)(output.GrantArn),
3836
- Status: (0, smithy_client_1.expectString)(output.Status),
3837
- Version: (0, smithy_client_1.expectString)(output.Version),
3838
- };
3839
- };
3840
- const de_CreateLicenseConfigurationResponse = (output, context) => {
3841
- return {
3842
- LicenseConfigurationArn: (0, smithy_client_1.expectString)(output.LicenseConfigurationArn),
3843
- };
3844
- };
3845
- const de_CreateLicenseConversionTaskForResourceResponse = (output, context) => {
3846
- return {
3847
- LicenseConversionTaskId: (0, smithy_client_1.expectString)(output.LicenseConversionTaskId),
3848
- };
3849
- };
3850
- const de_CreateLicenseManagerReportGeneratorResponse = (output, context) => {
3851
- return {
3852
- LicenseManagerReportGeneratorArn: (0, smithy_client_1.expectString)(output.LicenseManagerReportGeneratorArn),
3853
- };
3854
- };
3855
- const de_CreateLicenseResponse = (output, context) => {
3856
- return {
3857
- LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
3858
- Status: (0, smithy_client_1.expectString)(output.Status),
3859
- Version: (0, smithy_client_1.expectString)(output.Version),
3860
- };
3861
- };
3862
- const de_CreateLicenseVersionResponse = (output, context) => {
3863
- return {
3864
- LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
3865
- Status: (0, smithy_client_1.expectString)(output.Status),
3866
- Version: (0, smithy_client_1.expectString)(output.Version),
3867
- };
3868
- };
3869
- const de_CreateTokenResponse = (output, context) => {
3870
- return {
3871
- Token: (0, smithy_client_1.expectString)(output.Token),
3872
- TokenId: (0, smithy_client_1.expectString)(output.TokenId),
3873
- TokenType: (0, smithy_client_1.expectString)(output.TokenType),
3874
- };
3875
- };
3876
- const de_DatetimeRange = (output, context) => {
3877
- return {
3878
- Begin: (0, smithy_client_1.expectString)(output.Begin),
3879
- End: (0, smithy_client_1.expectString)(output.End),
3880
- };
3881
- };
3882
- const de_DeleteGrantResponse = (output, context) => {
3883
- return {
3884
- GrantArn: (0, smithy_client_1.expectString)(output.GrantArn),
3885
- Status: (0, smithy_client_1.expectString)(output.Status),
3886
- Version: (0, smithy_client_1.expectString)(output.Version),
3887
- };
3888
- };
3889
- const de_DeleteLicenseConfigurationResponse = (output, context) => {
3890
- return {};
3891
- };
3892
- const de_DeleteLicenseManagerReportGeneratorResponse = (output, context) => {
3893
- return {};
3894
- };
3895
- const de_DeleteLicenseResponse = (output, context) => {
3896
- return {
3897
- DeletionDate: (0, smithy_client_1.expectString)(output.DeletionDate),
3898
- Status: (0, smithy_client_1.expectString)(output.Status),
3899
- };
3900
- };
3901
- const de_DeleteTokenResponse = (output, context) => {
3902
- return {};
3903
- };
3904
- const de_Entitlement = (output, context) => {
3905
- return {
3906
- AllowCheckIn: (0, smithy_client_1.expectBoolean)(output.AllowCheckIn),
3907
- MaxCount: (0, smithy_client_1.expectLong)(output.MaxCount),
3908
- Name: (0, smithy_client_1.expectString)(output.Name),
3909
- Overage: (0, smithy_client_1.expectBoolean)(output.Overage),
3910
- Unit: (0, smithy_client_1.expectString)(output.Unit),
3911
- Value: (0, smithy_client_1.expectString)(output.Value),
3912
- };
3913
- };
3914
- const de_EntitlementData = (output, context) => {
3915
- return {
3916
- Name: (0, smithy_client_1.expectString)(output.Name),
3917
- Unit: (0, smithy_client_1.expectString)(output.Unit),
3918
- Value: (0, smithy_client_1.expectString)(output.Value),
3919
- };
3920
- };
3921
- const de_EntitlementDataList = (output, context) => {
3922
- const retVal = (output || [])
3923
- .filter((e) => e != null)
3924
- .map((entry) => {
3925
- if (entry === null) {
3926
- return null;
3927
- }
3928
- return de_EntitlementData(entry, context);
2997
+ return (0, smithy_client_1.take)(output, {
2998
+ LastRunTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3929
2999
  });
3930
- return retVal;
3931
- };
3932
- const de_EntitlementList = (output, context) => {
3933
- const retVal = (output || [])
3934
- .filter((e) => e != null)
3935
- .map((entry) => {
3936
- if (entry === null) {
3937
- return null;
3938
- }
3939
- return de_Entitlement(entry, context);
3940
- });
3941
- return retVal;
3942
- };
3943
- const de_EntitlementNotAllowedException = (output, context) => {
3944
- return {
3945
- Message: (0, smithy_client_1.expectString)(output.Message),
3946
- };
3947
- };
3948
- const de_EntitlementUsage = (output, context) => {
3949
- return {
3950
- ConsumedValue: (0, smithy_client_1.expectString)(output.ConsumedValue),
3951
- MaxCount: (0, smithy_client_1.expectString)(output.MaxCount),
3952
- Name: (0, smithy_client_1.expectString)(output.Name),
3953
- Unit: (0, smithy_client_1.expectString)(output.Unit),
3954
- };
3955
- };
3956
- const de_EntitlementUsageList = (output, context) => {
3957
- const retVal = (output || [])
3958
- .filter((e) => e != null)
3959
- .map((entry) => {
3960
- if (entry === null) {
3961
- return null;
3962
- }
3963
- return de_EntitlementUsage(entry, context);
3964
- });
3965
- return retVal;
3966
- };
3967
- const de_ExtendLicenseConsumptionResponse = (output, context) => {
3968
- return {
3969
- Expiration: (0, smithy_client_1.expectString)(output.Expiration),
3970
- LicenseConsumptionToken: (0, smithy_client_1.expectString)(output.LicenseConsumptionToken),
3971
- };
3972
- };
3973
- const de_FailedDependencyException = (output, context) => {
3974
- return {
3975
- ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
3976
- Message: (0, smithy_client_1.expectString)(output.Message),
3977
- };
3978
- };
3979
- const de_FilterLimitExceededException = (output, context) => {
3980
- return {
3981
- Message: (0, smithy_client_1.expectString)(output.Message),
3982
- };
3983
- };
3984
- const de_GetAccessTokenResponse = (output, context) => {
3985
- return {
3986
- AccessToken: (0, smithy_client_1.expectString)(output.AccessToken),
3987
- };
3988
- };
3989
- const de_GetGrantResponse = (output, context) => {
3990
- return {
3991
- Grant: output.Grant != null ? de_Grant(output.Grant, context) : undefined,
3992
- };
3993
3000
  };
3994
3001
  const de_GetLicenseConfigurationResponse = (output, context) => {
3995
- return {
3996
- AutomatedDiscoveryInformation: output.AutomatedDiscoveryInformation != null
3997
- ? de_AutomatedDiscoveryInformation(output.AutomatedDiscoveryInformation, context)
3998
- : undefined,
3999
- ConsumedLicenseSummaryList: output.ConsumedLicenseSummaryList != null
4000
- ? de_ConsumedLicenseSummaryList(output.ConsumedLicenseSummaryList, context)
4001
- : undefined,
4002
- ConsumedLicenses: (0, smithy_client_1.expectLong)(output.ConsumedLicenses),
4003
- Description: (0, smithy_client_1.expectString)(output.Description),
4004
- DisassociateWhenNotFound: (0, smithy_client_1.expectBoolean)(output.DisassociateWhenNotFound),
4005
- LicenseConfigurationArn: (0, smithy_client_1.expectString)(output.LicenseConfigurationArn),
4006
- LicenseConfigurationId: (0, smithy_client_1.expectString)(output.LicenseConfigurationId),
4007
- LicenseCount: (0, smithy_client_1.expectLong)(output.LicenseCount),
4008
- LicenseCountHardLimit: (0, smithy_client_1.expectBoolean)(output.LicenseCountHardLimit),
4009
- LicenseCountingType: (0, smithy_client_1.expectString)(output.LicenseCountingType),
4010
- LicenseRules: output.LicenseRules != null ? de_StringList(output.LicenseRules, context) : undefined,
4011
- ManagedResourceSummaryList: output.ManagedResourceSummaryList != null
4012
- ? de_ManagedResourceSummaryList(output.ManagedResourceSummaryList, context)
4013
- : undefined,
4014
- Name: (0, smithy_client_1.expectString)(output.Name),
4015
- OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
4016
- ProductInformationList: output.ProductInformationList != null
4017
- ? de_ProductInformationList(output.ProductInformationList, context)
4018
- : undefined,
4019
- Status: (0, smithy_client_1.expectString)(output.Status),
4020
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4021
- };
4022
- };
4023
- const de_GetLicenseConversionTaskResponse = (output, context) => {
4024
- return {
4025
- DestinationLicenseContext: output.DestinationLicenseContext != null
4026
- ? de_LicenseConversionContext(output.DestinationLicenseContext, context)
4027
- : undefined,
4028
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
4029
- LicenseConversionTaskId: (0, smithy_client_1.expectString)(output.LicenseConversionTaskId),
4030
- LicenseConversionTime: output.LicenseConversionTime != null
4031
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LicenseConversionTime)))
4032
- : undefined,
4033
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4034
- SourceLicenseContext: output.SourceLicenseContext != null
4035
- ? de_LicenseConversionContext(output.SourceLicenseContext, context)
4036
- : undefined,
4037
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
4038
- Status: (0, smithy_client_1.expectString)(output.Status),
4039
- StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
4040
- };
4041
- };
4042
- const de_GetLicenseManagerReportGeneratorResponse = (output, context) => {
4043
- return {
4044
- ReportGenerator: output.ReportGenerator != null ? de_ReportGenerator(output.ReportGenerator, context) : undefined,
4045
- };
4046
- };
4047
- const de_GetLicenseResponse = (output, context) => {
4048
- return {
4049
- License: output.License != null ? de_License(output.License, context) : undefined,
4050
- };
4051
- };
4052
- const de_GetLicenseUsageResponse = (output, context) => {
4053
- return {
4054
- LicenseUsage: output.LicenseUsage != null ? de_LicenseUsage(output.LicenseUsage, context) : undefined,
4055
- };
4056
- };
4057
- const de_GetServiceSettingsResponse = (output, context) => {
4058
- return {
4059
- EnableCrossAccountsDiscovery: (0, smithy_client_1.expectBoolean)(output.EnableCrossAccountsDiscovery),
4060
- LicenseManagerResourceShareArn: (0, smithy_client_1.expectString)(output.LicenseManagerResourceShareArn),
4061
- OrganizationConfiguration: output.OrganizationConfiguration != null
4062
- ? de_OrganizationConfiguration(output.OrganizationConfiguration, context)
4063
- : undefined,
4064
- S3BucketArn: (0, smithy_client_1.expectString)(output.S3BucketArn),
4065
- SnsTopicArn: (0, smithy_client_1.expectString)(output.SnsTopicArn),
4066
- };
4067
- };
4068
- const de_Grant = (output, context) => {
4069
- return {
4070
- GrantArn: (0, smithy_client_1.expectString)(output.GrantArn),
4071
- GrantName: (0, smithy_client_1.expectString)(output.GrantName),
4072
- GrantStatus: (0, smithy_client_1.expectString)(output.GrantStatus),
4073
- GrantedOperations: output.GrantedOperations != null ? de_AllowedOperationList(output.GrantedOperations, context) : undefined,
4074
- GranteePrincipalArn: (0, smithy_client_1.expectString)(output.GranteePrincipalArn),
4075
- HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
4076
- LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
4077
- Options: output.Options != null ? de_Options(output.Options, context) : undefined,
4078
- ParentArn: (0, smithy_client_1.expectString)(output.ParentArn),
4079
- StatusReason: (0, smithy_client_1.expectString)(output.StatusReason),
4080
- Version: (0, smithy_client_1.expectString)(output.Version),
4081
- };
4082
- };
4083
- const de_GrantedLicense = (output, context) => {
4084
- return {
4085
- Beneficiary: (0, smithy_client_1.expectString)(output.Beneficiary),
4086
- ConsumptionConfiguration: output.ConsumptionConfiguration != null
4087
- ? de_ConsumptionConfiguration(output.ConsumptionConfiguration, context)
4088
- : undefined,
4089
- CreateTime: (0, smithy_client_1.expectString)(output.CreateTime),
4090
- Entitlements: output.Entitlements != null ? de_EntitlementList(output.Entitlements, context) : undefined,
4091
- HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
4092
- Issuer: output.Issuer != null ? de_IssuerDetails(output.Issuer, context) : undefined,
4093
- LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
4094
- LicenseMetadata: output.LicenseMetadata != null ? de_MetadataList(output.LicenseMetadata, context) : undefined,
4095
- LicenseName: (0, smithy_client_1.expectString)(output.LicenseName),
4096
- ProductName: (0, smithy_client_1.expectString)(output.ProductName),
4097
- ProductSKU: (0, smithy_client_1.expectString)(output.ProductSKU),
4098
- ReceivedMetadata: output.ReceivedMetadata != null ? de_ReceivedMetadata(output.ReceivedMetadata, context) : undefined,
4099
- Status: (0, smithy_client_1.expectString)(output.Status),
4100
- Validity: output.Validity != null ? de_DatetimeRange(output.Validity, context) : undefined,
4101
- Version: (0, smithy_client_1.expectString)(output.Version),
4102
- };
4103
- };
4104
- const de_GrantedLicenseList = (output, context) => {
4105
- const retVal = (output || [])
4106
- .filter((e) => e != null)
4107
- .map((entry) => {
4108
- if (entry === null) {
4109
- return null;
4110
- }
4111
- return de_GrantedLicense(entry, context);
3002
+ return (0, smithy_client_1.take)(output, {
3003
+ AutomatedDiscoveryInformation: (_) => de_AutomatedDiscoveryInformation(_, context),
3004
+ ConsumedLicenseSummaryList: smithy_client_1._json,
3005
+ ConsumedLicenses: smithy_client_1.expectLong,
3006
+ Description: smithy_client_1.expectString,
3007
+ DisassociateWhenNotFound: smithy_client_1.expectBoolean,
3008
+ LicenseConfigurationArn: smithy_client_1.expectString,
3009
+ LicenseConfigurationId: smithy_client_1.expectString,
3010
+ LicenseCount: smithy_client_1.expectLong,
3011
+ LicenseCountHardLimit: smithy_client_1.expectBoolean,
3012
+ LicenseCountingType: smithy_client_1.expectString,
3013
+ LicenseRules: smithy_client_1._json,
3014
+ ManagedResourceSummaryList: smithy_client_1._json,
3015
+ Name: smithy_client_1.expectString,
3016
+ OwnerAccountId: smithy_client_1.expectString,
3017
+ ProductInformationList: smithy_client_1._json,
3018
+ Status: smithy_client_1.expectString,
3019
+ Tags: smithy_client_1._json,
4112
3020
  });
4113
- return retVal;
4114
3021
  };
4115
- const de_GrantList = (output, context) => {
4116
- const retVal = (output || [])
4117
- .filter((e) => e != null)
4118
- .map((entry) => {
4119
- if (entry === null) {
4120
- return null;
4121
- }
4122
- return de_Grant(entry, context);
3022
+ const de_GetLicenseConversionTaskResponse = (output, context) => {
3023
+ return (0, smithy_client_1.take)(output, {
3024
+ DestinationLicenseContext: smithy_client_1._json,
3025
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3026
+ LicenseConversionTaskId: smithy_client_1.expectString,
3027
+ LicenseConversionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3028
+ ResourceArn: smithy_client_1.expectString,
3029
+ SourceLicenseContext: smithy_client_1._json,
3030
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3031
+ Status: smithy_client_1.expectString,
3032
+ StatusMessage: smithy_client_1.expectString,
4123
3033
  });
4124
- return retVal;
4125
- };
4126
- const de_InvalidParameterValueException = (output, context) => {
4127
- return {
4128
- Message: (0, smithy_client_1.expectString)(output.Message),
4129
- };
4130
- };
4131
- const de_InvalidResourceStateException = (output, context) => {
4132
- return {
4133
- Message: (0, smithy_client_1.expectString)(output.Message),
4134
- };
4135
- };
4136
- const de_IssuerDetails = (output, context) => {
4137
- return {
4138
- KeyFingerprint: (0, smithy_client_1.expectString)(output.KeyFingerprint),
4139
- Name: (0, smithy_client_1.expectString)(output.Name),
4140
- SignKey: (0, smithy_client_1.expectString)(output.SignKey),
4141
- };
4142
- };
4143
- const de_License = (output, context) => {
4144
- return {
4145
- Beneficiary: (0, smithy_client_1.expectString)(output.Beneficiary),
4146
- ConsumptionConfiguration: output.ConsumptionConfiguration != null
4147
- ? de_ConsumptionConfiguration(output.ConsumptionConfiguration, context)
4148
- : undefined,
4149
- CreateTime: (0, smithy_client_1.expectString)(output.CreateTime),
4150
- Entitlements: output.Entitlements != null ? de_EntitlementList(output.Entitlements, context) : undefined,
4151
- HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
4152
- Issuer: output.Issuer != null ? de_IssuerDetails(output.Issuer, context) : undefined,
4153
- LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
4154
- LicenseMetadata: output.LicenseMetadata != null ? de_MetadataList(output.LicenseMetadata, context) : undefined,
4155
- LicenseName: (0, smithy_client_1.expectString)(output.LicenseName),
4156
- ProductName: (0, smithy_client_1.expectString)(output.ProductName),
4157
- ProductSKU: (0, smithy_client_1.expectString)(output.ProductSKU),
4158
- Status: (0, smithy_client_1.expectString)(output.Status),
4159
- Validity: output.Validity != null ? de_DatetimeRange(output.Validity, context) : undefined,
4160
- Version: (0, smithy_client_1.expectString)(output.Version),
4161
- };
4162
3034
  };
4163
3035
  const de_LicenseConfiguration = (output, context) => {
4164
- return {
4165
- AutomatedDiscoveryInformation: output.AutomatedDiscoveryInformation != null
4166
- ? de_AutomatedDiscoveryInformation(output.AutomatedDiscoveryInformation, context)
4167
- : undefined,
4168
- ConsumedLicenseSummaryList: output.ConsumedLicenseSummaryList != null
4169
- ? de_ConsumedLicenseSummaryList(output.ConsumedLicenseSummaryList, context)
4170
- : undefined,
4171
- ConsumedLicenses: (0, smithy_client_1.expectLong)(output.ConsumedLicenses),
4172
- Description: (0, smithy_client_1.expectString)(output.Description),
4173
- DisassociateWhenNotFound: (0, smithy_client_1.expectBoolean)(output.DisassociateWhenNotFound),
4174
- LicenseConfigurationArn: (0, smithy_client_1.expectString)(output.LicenseConfigurationArn),
4175
- LicenseConfigurationId: (0, smithy_client_1.expectString)(output.LicenseConfigurationId),
4176
- LicenseCount: (0, smithy_client_1.expectLong)(output.LicenseCount),
4177
- LicenseCountHardLimit: (0, smithy_client_1.expectBoolean)(output.LicenseCountHardLimit),
4178
- LicenseCountingType: (0, smithy_client_1.expectString)(output.LicenseCountingType),
4179
- LicenseRules: output.LicenseRules != null ? de_StringList(output.LicenseRules, context) : undefined,
4180
- ManagedResourceSummaryList: output.ManagedResourceSummaryList != null
4181
- ? de_ManagedResourceSummaryList(output.ManagedResourceSummaryList, context)
4182
- : undefined,
4183
- Name: (0, smithy_client_1.expectString)(output.Name),
4184
- OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
4185
- ProductInformationList: output.ProductInformationList != null
4186
- ? de_ProductInformationList(output.ProductInformationList, context)
4187
- : undefined,
4188
- Status: (0, smithy_client_1.expectString)(output.Status),
4189
- };
3036
+ return (0, smithy_client_1.take)(output, {
3037
+ AutomatedDiscoveryInformation: (_) => de_AutomatedDiscoveryInformation(_, context),
3038
+ ConsumedLicenseSummaryList: smithy_client_1._json,
3039
+ ConsumedLicenses: smithy_client_1.expectLong,
3040
+ Description: smithy_client_1.expectString,
3041
+ DisassociateWhenNotFound: smithy_client_1.expectBoolean,
3042
+ LicenseConfigurationArn: smithy_client_1.expectString,
3043
+ LicenseConfigurationId: smithy_client_1.expectString,
3044
+ LicenseCount: smithy_client_1.expectLong,
3045
+ LicenseCountHardLimit: smithy_client_1.expectBoolean,
3046
+ LicenseCountingType: smithy_client_1.expectString,
3047
+ LicenseRules: smithy_client_1._json,
3048
+ ManagedResourceSummaryList: smithy_client_1._json,
3049
+ Name: smithy_client_1.expectString,
3050
+ OwnerAccountId: smithy_client_1.expectString,
3051
+ ProductInformationList: smithy_client_1._json,
3052
+ Status: smithy_client_1.expectString,
3053
+ });
4190
3054
  };
4191
3055
  const de_LicenseConfigurationAssociation = (output, context) => {
4192
- return {
4193
- AmiAssociationScope: (0, smithy_client_1.expectString)(output.AmiAssociationScope),
4194
- AssociationTime: output.AssociationTime != null
4195
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AssociationTime)))
4196
- : undefined,
4197
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4198
- ResourceOwnerId: (0, smithy_client_1.expectString)(output.ResourceOwnerId),
4199
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4200
- };
3056
+ return (0, smithy_client_1.take)(output, {
3057
+ AmiAssociationScope: smithy_client_1.expectString,
3058
+ AssociationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3059
+ ResourceArn: smithy_client_1.expectString,
3060
+ ResourceOwnerId: smithy_client_1.expectString,
3061
+ ResourceType: smithy_client_1.expectString,
3062
+ });
4201
3063
  };
4202
3064
  const de_LicenseConfigurationAssociations = (output, context) => {
4203
3065
  const retVal = (output || [])
4204
3066
  .filter((e) => e != null)
4205
3067
  .map((entry) => {
4206
- if (entry === null) {
4207
- return null;
4208
- }
4209
3068
  return de_LicenseConfigurationAssociation(entry, context);
4210
3069
  });
4211
3070
  return retVal;
@@ -4214,547 +3073,98 @@ const de_LicenseConfigurations = (output, context) => {
4214
3073
  const retVal = (output || [])
4215
3074
  .filter((e) => e != null)
4216
3075
  .map((entry) => {
4217
- if (entry === null) {
4218
- return null;
4219
- }
4220
3076
  return de_LicenseConfiguration(entry, context);
4221
3077
  });
4222
3078
  return retVal;
4223
3079
  };
4224
3080
  const de_LicenseConfigurationUsage = (output, context) => {
4225
- return {
4226
- AssociationTime: output.AssociationTime != null
4227
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.AssociationTime)))
4228
- : undefined,
4229
- ConsumedLicenses: (0, smithy_client_1.expectLong)(output.ConsumedLicenses),
4230
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4231
- ResourceOwnerId: (0, smithy_client_1.expectString)(output.ResourceOwnerId),
4232
- ResourceStatus: (0, smithy_client_1.expectString)(output.ResourceStatus),
4233
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4234
- };
3081
+ return (0, smithy_client_1.take)(output, {
3082
+ AssociationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3083
+ ConsumedLicenses: smithy_client_1.expectLong,
3084
+ ResourceArn: smithy_client_1.expectString,
3085
+ ResourceOwnerId: smithy_client_1.expectString,
3086
+ ResourceStatus: smithy_client_1.expectString,
3087
+ ResourceType: smithy_client_1.expectString,
3088
+ });
4235
3089
  };
4236
3090
  const de_LicenseConfigurationUsageList = (output, context) => {
4237
3091
  const retVal = (output || [])
4238
3092
  .filter((e) => e != null)
4239
3093
  .map((entry) => {
4240
- if (entry === null) {
4241
- return null;
4242
- }
4243
3094
  return de_LicenseConfigurationUsage(entry, context);
4244
3095
  });
4245
3096
  return retVal;
4246
3097
  };
4247
- const de_LicenseConversionContext = (output, context) => {
4248
- return {
4249
- UsageOperation: (0, smithy_client_1.expectString)(output.UsageOperation),
4250
- };
4251
- };
4252
3098
  const de_LicenseConversionTask = (output, context) => {
4253
- return {
4254
- DestinationLicenseContext: output.DestinationLicenseContext != null
4255
- ? de_LicenseConversionContext(output.DestinationLicenseContext, context)
4256
- : undefined,
4257
- EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
4258
- LicenseConversionTaskId: (0, smithy_client_1.expectString)(output.LicenseConversionTaskId),
4259
- LicenseConversionTime: output.LicenseConversionTime != null
4260
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LicenseConversionTime)))
4261
- : undefined,
4262
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4263
- SourceLicenseContext: output.SourceLicenseContext != null
4264
- ? de_LicenseConversionContext(output.SourceLicenseContext, context)
4265
- : undefined,
4266
- StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
4267
- Status: (0, smithy_client_1.expectString)(output.Status),
4268
- StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
4269
- };
3099
+ return (0, smithy_client_1.take)(output, {
3100
+ DestinationLicenseContext: smithy_client_1._json,
3101
+ EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3102
+ LicenseConversionTaskId: smithy_client_1.expectString,
3103
+ LicenseConversionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3104
+ ResourceArn: smithy_client_1.expectString,
3105
+ SourceLicenseContext: smithy_client_1._json,
3106
+ StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3107
+ Status: smithy_client_1.expectString,
3108
+ StatusMessage: smithy_client_1.expectString,
3109
+ });
4270
3110
  };
4271
3111
  const de_LicenseConversionTasks = (output, context) => {
4272
3112
  const retVal = (output || [])
4273
3113
  .filter((e) => e != null)
4274
3114
  .map((entry) => {
4275
- if (entry === null) {
4276
- return null;
4277
- }
4278
3115
  return de_LicenseConversionTask(entry, context);
4279
3116
  });
4280
3117
  return retVal;
4281
3118
  };
4282
- const de_LicenseList = (output, context) => {
4283
- const retVal = (output || [])
4284
- .filter((e) => e != null)
4285
- .map((entry) => {
4286
- if (entry === null) {
4287
- return null;
4288
- }
4289
- return de_License(entry, context);
4290
- });
4291
- return retVal;
4292
- };
4293
3119
  const de_LicenseOperationFailure = (output, context) => {
4294
- return {
4295
- ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4296
- FailureTime: output.FailureTime != null
4297
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FailureTime)))
4298
- : undefined,
4299
- MetadataList: output.MetadataList != null ? de_MetadataList(output.MetadataList, context) : undefined,
4300
- OperationName: (0, smithy_client_1.expectString)(output.OperationName),
4301
- OperationRequestedBy: (0, smithy_client_1.expectString)(output.OperationRequestedBy),
4302
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4303
- ResourceOwnerId: (0, smithy_client_1.expectString)(output.ResourceOwnerId),
4304
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4305
- };
3120
+ return (0, smithy_client_1.take)(output, {
3121
+ ErrorMessage: smithy_client_1.expectString,
3122
+ FailureTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
3123
+ MetadataList: smithy_client_1._json,
3124
+ OperationName: smithy_client_1.expectString,
3125
+ OperationRequestedBy: smithy_client_1.expectString,
3126
+ ResourceArn: smithy_client_1.expectString,
3127
+ ResourceOwnerId: smithy_client_1.expectString,
3128
+ ResourceType: smithy_client_1.expectString,
3129
+ });
4306
3130
  };
4307
3131
  const de_LicenseOperationFailureList = (output, context) => {
4308
3132
  const retVal = (output || [])
4309
3133
  .filter((e) => e != null)
4310
3134
  .map((entry) => {
4311
- if (entry === null) {
4312
- return null;
4313
- }
4314
3135
  return de_LicenseOperationFailure(entry, context);
4315
3136
  });
4316
3137
  return retVal;
4317
3138
  };
4318
- const de_LicenseSpecification = (output, context) => {
4319
- return {
4320
- AmiAssociationScope: (0, smithy_client_1.expectString)(output.AmiAssociationScope),
4321
- LicenseConfigurationArn: (0, smithy_client_1.expectString)(output.LicenseConfigurationArn),
4322
- };
4323
- };
4324
- const de_LicenseSpecifications = (output, context) => {
4325
- const retVal = (output || [])
4326
- .filter((e) => e != null)
4327
- .map((entry) => {
4328
- if (entry === null) {
4329
- return null;
4330
- }
4331
- return de_LicenseSpecification(entry, context);
4332
- });
4333
- return retVal;
4334
- };
4335
- const de_LicenseUsage = (output, context) => {
4336
- return {
4337
- EntitlementUsages: output.EntitlementUsages != null ? de_EntitlementUsageList(output.EntitlementUsages, context) : undefined,
4338
- };
4339
- };
4340
- const de_LicenseUsageException = (output, context) => {
4341
- return {
4342
- Message: (0, smithy_client_1.expectString)(output.Message),
4343
- };
4344
- };
4345
3139
  const de_ListAssociationsForLicenseConfigurationResponse = (output, context) => {
4346
- return {
4347
- LicenseConfigurationAssociations: output.LicenseConfigurationAssociations != null
4348
- ? de_LicenseConfigurationAssociations(output.LicenseConfigurationAssociations, context)
4349
- : undefined,
4350
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4351
- };
4352
- };
4353
- const de_ListDistributedGrantsResponse = (output, context) => {
4354
- return {
4355
- Grants: output.Grants != null ? de_GrantList(output.Grants, context) : undefined,
4356
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4357
- };
4358
- };
4359
- const de_ListFailuresForLicenseConfigurationOperationsResponse = (output, context) => {
4360
- return {
4361
- LicenseOperationFailureList: output.LicenseOperationFailureList != null
4362
- ? de_LicenseOperationFailureList(output.LicenseOperationFailureList, context)
4363
- : undefined,
4364
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4365
- };
4366
- };
4367
- const de_ListLicenseConfigurationsResponse = (output, context) => {
4368
- return {
4369
- LicenseConfigurations: output.LicenseConfigurations != null
4370
- ? de_LicenseConfigurations(output.LicenseConfigurations, context)
4371
- : undefined,
4372
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4373
- };
4374
- };
4375
- const de_ListLicenseConversionTasksResponse = (output, context) => {
4376
- return {
4377
- LicenseConversionTasks: output.LicenseConversionTasks != null
4378
- ? de_LicenseConversionTasks(output.LicenseConversionTasks, context)
4379
- : undefined,
4380
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4381
- };
4382
- };
4383
- const de_ListLicenseManagerReportGeneratorsResponse = (output, context) => {
4384
- return {
4385
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4386
- ReportGenerators: output.ReportGenerators != null ? de_ReportGeneratorList(output.ReportGenerators, context) : undefined,
4387
- };
4388
- };
4389
- const de_ListLicenseSpecificationsForResourceResponse = (output, context) => {
4390
- return {
4391
- LicenseSpecifications: output.LicenseSpecifications != null
4392
- ? de_LicenseSpecifications(output.LicenseSpecifications, context)
4393
- : undefined,
4394
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4395
- };
4396
- };
4397
- const de_ListLicensesResponse = (output, context) => {
4398
- return {
4399
- Licenses: output.Licenses != null ? de_LicenseList(output.Licenses, context) : undefined,
4400
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4401
- };
4402
- };
4403
- const de_ListLicenseVersionsResponse = (output, context) => {
4404
- return {
4405
- Licenses: output.Licenses != null ? de_LicenseList(output.Licenses, context) : undefined,
4406
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4407
- };
4408
- };
4409
- const de_ListReceivedGrantsForOrganizationResponse = (output, context) => {
4410
- return {
4411
- Grants: output.Grants != null ? de_GrantList(output.Grants, context) : undefined,
4412
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4413
- };
4414
- };
4415
- const de_ListReceivedGrantsResponse = (output, context) => {
4416
- return {
4417
- Grants: output.Grants != null ? de_GrantList(output.Grants, context) : undefined,
4418
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4419
- };
4420
- };
4421
- const de_ListReceivedLicensesForOrganizationResponse = (output, context) => {
4422
- return {
4423
- Licenses: output.Licenses != null ? de_GrantedLicenseList(output.Licenses, context) : undefined,
4424
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4425
- };
4426
- };
4427
- const de_ListReceivedLicensesResponse = (output, context) => {
4428
- return {
4429
- Licenses: output.Licenses != null ? de_GrantedLicenseList(output.Licenses, context) : undefined,
4430
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4431
- };
4432
- };
4433
- const de_ListResourceInventoryResponse = (output, context) => {
4434
- return {
4435
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4436
- ResourceInventoryList: output.ResourceInventoryList != null
4437
- ? de_ResourceInventoryList(output.ResourceInventoryList, context)
4438
- : undefined,
4439
- };
4440
- };
4441
- const de_ListTagsForResourceResponse = (output, context) => {
4442
- return {
4443
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4444
- };
4445
- };
4446
- const de_ListTokensResponse = (output, context) => {
4447
- return {
4448
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4449
- Tokens: output.Tokens != null ? de_TokenList(output.Tokens, context) : undefined,
4450
- };
4451
- };
4452
- const de_ListUsageForLicenseConfigurationResponse = (output, context) => {
4453
- return {
4454
- LicenseConfigurationUsageList: output.LicenseConfigurationUsageList != null
4455
- ? de_LicenseConfigurationUsageList(output.LicenseConfigurationUsageList, context)
4456
- : undefined,
4457
- NextToken: (0, smithy_client_1.expectString)(output.NextToken),
4458
- };
4459
- };
4460
- const de_ManagedResourceSummary = (output, context) => {
4461
- return {
4462
- AssociationCount: (0, smithy_client_1.expectLong)(output.AssociationCount),
4463
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4464
- };
4465
- };
4466
- const de_ManagedResourceSummaryList = (output, context) => {
4467
- const retVal = (output || [])
4468
- .filter((e) => e != null)
4469
- .map((entry) => {
4470
- if (entry === null) {
4471
- return null;
4472
- }
4473
- return de_ManagedResourceSummary(entry, context);
4474
- });
4475
- return retVal;
4476
- };
4477
- const de_MaxSize3StringList = (output, context) => {
4478
- const retVal = (output || [])
4479
- .filter((e) => e != null)
4480
- .map((entry) => {
4481
- if (entry === null) {
4482
- return null;
4483
- }
4484
- return (0, smithy_client_1.expectString)(entry);
4485
- });
4486
- return retVal;
4487
- };
4488
- const de_Metadata = (output, context) => {
4489
- return {
4490
- Name: (0, smithy_client_1.expectString)(output.Name),
4491
- Value: (0, smithy_client_1.expectString)(output.Value),
4492
- };
4493
- };
4494
- const de_MetadataList = (output, context) => {
4495
- const retVal = (output || [])
4496
- .filter((e) => e != null)
4497
- .map((entry) => {
4498
- if (entry === null) {
4499
- return null;
4500
- }
4501
- return de_Metadata(entry, context);
4502
- });
4503
- return retVal;
4504
- };
4505
- const de_NoEntitlementsAllowedException = (output, context) => {
4506
- return {
4507
- Message: (0, smithy_client_1.expectString)(output.Message),
4508
- };
4509
- };
4510
- const de_Options = (output, context) => {
4511
- return {
4512
- ActivationOverrideBehavior: (0, smithy_client_1.expectString)(output.ActivationOverrideBehavior),
4513
- };
4514
- };
4515
- const de_OrganizationConfiguration = (output, context) => {
4516
- return {
4517
- EnableIntegration: (0, smithy_client_1.expectBoolean)(output.EnableIntegration),
4518
- };
4519
- };
4520
- const de_ProductInformation = (output, context) => {
4521
- return {
4522
- ProductInformationFilterList: output.ProductInformationFilterList != null
4523
- ? de_ProductInformationFilterList(output.ProductInformationFilterList, context)
4524
- : undefined,
4525
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4526
- };
4527
- };
4528
- const de_ProductInformationFilter = (output, context) => {
4529
- return {
4530
- ProductInformationFilterComparator: (0, smithy_client_1.expectString)(output.ProductInformationFilterComparator),
4531
- ProductInformationFilterName: (0, smithy_client_1.expectString)(output.ProductInformationFilterName),
4532
- ProductInformationFilterValue: output.ProductInformationFilterValue != null
4533
- ? de_StringList(output.ProductInformationFilterValue, context)
4534
- : undefined,
4535
- };
4536
- };
4537
- const de_ProductInformationFilterList = (output, context) => {
4538
- const retVal = (output || [])
4539
- .filter((e) => e != null)
4540
- .map((entry) => {
4541
- if (entry === null) {
4542
- return null;
4543
- }
4544
- return de_ProductInformationFilter(entry, context);
4545
- });
4546
- return retVal;
4547
- };
4548
- const de_ProductInformationList = (output, context) => {
4549
- const retVal = (output || [])
4550
- .filter((e) => e != null)
4551
- .map((entry) => {
4552
- if (entry === null) {
4553
- return null;
4554
- }
4555
- return de_ProductInformation(entry, context);
4556
- });
4557
- return retVal;
4558
- };
4559
- const de_ProvisionalConfiguration = (output, context) => {
4560
- return {
4561
- MaxTimeToLiveInMinutes: (0, smithy_client_1.expectInt32)(output.MaxTimeToLiveInMinutes),
4562
- };
4563
- };
4564
- const de_RateLimitExceededException = (output, context) => {
4565
- return {
4566
- Message: (0, smithy_client_1.expectString)(output.Message),
4567
- };
4568
- };
4569
- const de_ReceivedMetadata = (output, context) => {
4570
- return {
4571
- AllowedOperations: output.AllowedOperations != null ? de_AllowedOperationList(output.AllowedOperations, context) : undefined,
4572
- ReceivedStatus: (0, smithy_client_1.expectString)(output.ReceivedStatus),
4573
- ReceivedStatusReason: (0, smithy_client_1.expectString)(output.ReceivedStatusReason),
4574
- };
4575
- };
4576
- const de_RedirectException = (output, context) => {
4577
- return {
4578
- Location: (0, smithy_client_1.expectString)(output.Location),
4579
- Message: (0, smithy_client_1.expectString)(output.Message),
4580
- };
4581
- };
4582
- const de_RejectGrantResponse = (output, context) => {
4583
- return {
4584
- GrantArn: (0, smithy_client_1.expectString)(output.GrantArn),
4585
- Status: (0, smithy_client_1.expectString)(output.Status),
4586
- Version: (0, smithy_client_1.expectString)(output.Version),
4587
- };
4588
- };
4589
- const de_ReportContext = (output, context) => {
4590
- return {
4591
- licenseConfigurationArns: output.licenseConfigurationArns != null ? de_ArnList(output.licenseConfigurationArns, context) : undefined,
4592
- };
4593
- };
4594
- const de_ReportFrequency = (output, context) => {
4595
- return {
4596
- period: (0, smithy_client_1.expectString)(output.period),
4597
- value: (0, smithy_client_1.expectInt32)(output.value),
4598
- };
4599
- };
4600
- const de_ReportGenerator = (output, context) => {
4601
- return {
4602
- CreateTime: (0, smithy_client_1.expectString)(output.CreateTime),
4603
- Description: (0, smithy_client_1.expectString)(output.Description),
4604
- LastReportGenerationTime: (0, smithy_client_1.expectString)(output.LastReportGenerationTime),
4605
- LastRunFailureReason: (0, smithy_client_1.expectString)(output.LastRunFailureReason),
4606
- LastRunStatus: (0, smithy_client_1.expectString)(output.LastRunStatus),
4607
- LicenseManagerReportGeneratorArn: (0, smithy_client_1.expectString)(output.LicenseManagerReportGeneratorArn),
4608
- ReportContext: output.ReportContext != null ? de_ReportContext(output.ReportContext, context) : undefined,
4609
- ReportCreatorAccount: (0, smithy_client_1.expectString)(output.ReportCreatorAccount),
4610
- ReportFrequency: output.ReportFrequency != null ? de_ReportFrequency(output.ReportFrequency, context) : undefined,
4611
- ReportGeneratorName: (0, smithy_client_1.expectString)(output.ReportGeneratorName),
4612
- ReportType: output.ReportType != null ? de_ReportTypeList(output.ReportType, context) : undefined,
4613
- S3Location: output.S3Location != null ? de_S3Location(output.S3Location, context) : undefined,
4614
- Tags: output.Tags != null ? de_TagList(output.Tags, context) : undefined,
4615
- };
4616
- };
4617
- const de_ReportGeneratorList = (output, context) => {
4618
- const retVal = (output || [])
4619
- .filter((e) => e != null)
4620
- .map((entry) => {
4621
- if (entry === null) {
4622
- return null;
4623
- }
4624
- return de_ReportGenerator(entry, context);
4625
- });
4626
- return retVal;
4627
- };
4628
- const de_ReportTypeList = (output, context) => {
4629
- const retVal = (output || [])
4630
- .filter((e) => e != null)
4631
- .map((entry) => {
4632
- if (entry === null) {
4633
- return null;
4634
- }
4635
- return (0, smithy_client_1.expectString)(entry);
3140
+ return (0, smithy_client_1.take)(output, {
3141
+ LicenseConfigurationAssociations: (_) => de_LicenseConfigurationAssociations(_, context),
3142
+ NextToken: smithy_client_1.expectString,
4636
3143
  });
4637
- return retVal;
4638
- };
4639
- const de_ResourceInventory = (output, context) => {
4640
- return {
4641
- Platform: (0, smithy_client_1.expectString)(output.Platform),
4642
- PlatformVersion: (0, smithy_client_1.expectString)(output.PlatformVersion),
4643
- ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4644
- ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
4645
- ResourceOwningAccountId: (0, smithy_client_1.expectString)(output.ResourceOwningAccountId),
4646
- ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
4647
- };
4648
3144
  };
4649
- const de_ResourceInventoryList = (output, context) => {
4650
- const retVal = (output || [])
4651
- .filter((e) => e != null)
4652
- .map((entry) => {
4653
- if (entry === null) {
4654
- return null;
4655
- }
4656
- return de_ResourceInventory(entry, context);
3145
+ const de_ListFailuresForLicenseConfigurationOperationsResponse = (output, context) => {
3146
+ return (0, smithy_client_1.take)(output, {
3147
+ LicenseOperationFailureList: (_) => de_LicenseOperationFailureList(_, context),
3148
+ NextToken: smithy_client_1.expectString,
4657
3149
  });
4658
- return retVal;
4659
- };
4660
- const de_ResourceLimitExceededException = (output, context) => {
4661
- return {
4662
- Message: (0, smithy_client_1.expectString)(output.Message),
4663
- };
4664
- };
4665
- const de_ResourceNotFoundException = (output, context) => {
4666
- return {
4667
- Message: (0, smithy_client_1.expectString)(output.Message),
4668
- };
4669
3150
  };
4670
- const de_S3Location = (output, context) => {
4671
- return {
4672
- bucket: (0, smithy_client_1.expectString)(output.bucket),
4673
- keyPrefix: (0, smithy_client_1.expectString)(output.keyPrefix),
4674
- };
4675
- };
4676
- const de_ServerInternalException = (output, context) => {
4677
- return {
4678
- Message: (0, smithy_client_1.expectString)(output.Message),
4679
- };
4680
- };
4681
- const de_StringList = (output, context) => {
4682
- const retVal = (output || [])
4683
- .filter((e) => e != null)
4684
- .map((entry) => {
4685
- if (entry === null) {
4686
- return null;
4687
- }
4688
- return (0, smithy_client_1.expectString)(entry);
3151
+ const de_ListLicenseConfigurationsResponse = (output, context) => {
3152
+ return (0, smithy_client_1.take)(output, {
3153
+ LicenseConfigurations: (_) => de_LicenseConfigurations(_, context),
3154
+ NextToken: smithy_client_1.expectString,
4689
3155
  });
4690
- return retVal;
4691
3156
  };
4692
- const de_Tag = (output, context) => {
4693
- return {
4694
- Key: (0, smithy_client_1.expectString)(output.Key),
4695
- Value: (0, smithy_client_1.expectString)(output.Value),
4696
- };
4697
- };
4698
- const de_TagList = (output, context) => {
4699
- const retVal = (output || [])
4700
- .filter((e) => e != null)
4701
- .map((entry) => {
4702
- if (entry === null) {
4703
- return null;
4704
- }
4705
- return de_Tag(entry, context);
3157
+ const de_ListLicenseConversionTasksResponse = (output, context) => {
3158
+ return (0, smithy_client_1.take)(output, {
3159
+ LicenseConversionTasks: (_) => de_LicenseConversionTasks(_, context),
3160
+ NextToken: smithy_client_1.expectString,
4706
3161
  });
4707
- return retVal;
4708
- };
4709
- const de_TagResourceResponse = (output, context) => {
4710
- return {};
4711
- };
4712
- const de_TokenData = (output, context) => {
4713
- return {
4714
- ExpirationTime: (0, smithy_client_1.expectString)(output.ExpirationTime),
4715
- LicenseArn: (0, smithy_client_1.expectString)(output.LicenseArn),
4716
- RoleArns: output.RoleArns != null ? de_ArnList(output.RoleArns, context) : undefined,
4717
- Status: (0, smithy_client_1.expectString)(output.Status),
4718
- TokenId: (0, smithy_client_1.expectString)(output.TokenId),
4719
- TokenProperties: output.TokenProperties != null ? de_MaxSize3StringList(output.TokenProperties, context) : undefined,
4720
- TokenType: (0, smithy_client_1.expectString)(output.TokenType),
4721
- };
4722
3162
  };
4723
- const de_TokenList = (output, context) => {
4724
- const retVal = (output || [])
4725
- .filter((e) => e != null)
4726
- .map((entry) => {
4727
- if (entry === null) {
4728
- return null;
4729
- }
4730
- return de_TokenData(entry, context);
3163
+ const de_ListUsageForLicenseConfigurationResponse = (output, context) => {
3164
+ return (0, smithy_client_1.take)(output, {
3165
+ LicenseConfigurationUsageList: (_) => de_LicenseConfigurationUsageList(_, context),
3166
+ NextToken: smithy_client_1.expectString,
4731
3167
  });
4732
- return retVal;
4733
- };
4734
- const de_UnsupportedDigitalSignatureMethodException = (output, context) => {
4735
- return {
4736
- Message: (0, smithy_client_1.expectString)(output.Message),
4737
- };
4738
- };
4739
- const de_UntagResourceResponse = (output, context) => {
4740
- return {};
4741
- };
4742
- const de_UpdateLicenseConfigurationResponse = (output, context) => {
4743
- return {};
4744
- };
4745
- const de_UpdateLicenseManagerReportGeneratorResponse = (output, context) => {
4746
- return {};
4747
- };
4748
- const de_UpdateLicenseSpecificationsForResourceResponse = (output, context) => {
4749
- return {};
4750
- };
4751
- const de_UpdateServiceSettingsResponse = (output, context) => {
4752
- return {};
4753
- };
4754
- const de_ValidationException = (output, context) => {
4755
- return {
4756
- Message: (0, smithy_client_1.expectString)(output.Message),
4757
- };
4758
3168
  };
4759
3169
  const deserializeMetadata = (output) => ({
4760
3170
  httpStatusCode: output.statusCode,
@@ -4769,6 +3179,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
4769
3179
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
4770
3180
  };
4771
3181
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
3182
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(LicenseManagerServiceException_1.LicenseManagerServiceException);
4772
3183
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
4773
3184
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
4774
3185
  const contents = {