@aws-sdk/client-license-manager 3.927.0 → 3.929.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.
- package/dist-cjs/index.js +1791 -1777
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/LicenseManagerClient.js +2 -0
- package/dist-es/commands/AcceptGrantCommand.js +3 -9
- package/dist-es/commands/CheckInLicenseCommand.js +3 -9
- package/dist-es/commands/CheckoutBorrowLicenseCommand.js +3 -9
- package/dist-es/commands/CheckoutLicenseCommand.js +3 -9
- package/dist-es/commands/CreateGrantCommand.js +3 -9
- package/dist-es/commands/CreateGrantVersionCommand.js +3 -9
- package/dist-es/commands/CreateLicenseCommand.js +3 -9
- package/dist-es/commands/CreateLicenseConfigurationCommand.js +3 -9
- package/dist-es/commands/CreateLicenseConversionTaskForResourceCommand.js +3 -9
- package/dist-es/commands/CreateLicenseManagerReportGeneratorCommand.js +3 -9
- package/dist-es/commands/CreateLicenseVersionCommand.js +3 -9
- package/dist-es/commands/CreateTokenCommand.js +3 -9
- package/dist-es/commands/DeleteGrantCommand.js +3 -9
- package/dist-es/commands/DeleteLicenseCommand.js +3 -9
- package/dist-es/commands/DeleteLicenseConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteLicenseManagerReportGeneratorCommand.js +3 -9
- package/dist-es/commands/DeleteTokenCommand.js +3 -9
- package/dist-es/commands/ExtendLicenseConsumptionCommand.js +3 -9
- package/dist-es/commands/GetAccessTokenCommand.js +3 -9
- package/dist-es/commands/GetGrantCommand.js +3 -9
- package/dist-es/commands/GetLicenseCommand.js +3 -9
- package/dist-es/commands/GetLicenseConfigurationCommand.js +3 -9
- package/dist-es/commands/GetLicenseConversionTaskCommand.js +3 -9
- package/dist-es/commands/GetLicenseManagerReportGeneratorCommand.js +3 -9
- package/dist-es/commands/GetLicenseUsageCommand.js +3 -9
- package/dist-es/commands/GetServiceSettingsCommand.js +3 -9
- package/dist-es/commands/ListAssociationsForLicenseConfigurationCommand.js +3 -9
- package/dist-es/commands/ListDistributedGrantsCommand.js +3 -9
- package/dist-es/commands/ListFailuresForLicenseConfigurationOperationsCommand.js +3 -9
- package/dist-es/commands/ListLicenseConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListLicenseConversionTasksCommand.js +3 -9
- package/dist-es/commands/ListLicenseManagerReportGeneratorsCommand.js +3 -9
- package/dist-es/commands/ListLicenseSpecificationsForResourceCommand.js +3 -9
- package/dist-es/commands/ListLicenseVersionsCommand.js +3 -9
- package/dist-es/commands/ListLicensesCommand.js +3 -9
- package/dist-es/commands/ListReceivedGrantsCommand.js +3 -9
- package/dist-es/commands/ListReceivedGrantsForOrganizationCommand.js +3 -9
- package/dist-es/commands/ListReceivedLicensesCommand.js +3 -9
- package/dist-es/commands/ListReceivedLicensesForOrganizationCommand.js +3 -9
- package/dist-es/commands/ListResourceInventoryCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTokensCommand.js +3 -9
- package/dist-es/commands/ListUsageForLicenseConfigurationCommand.js +3 -9
- package/dist-es/commands/RejectGrantCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateLicenseConfigurationCommand.js +3 -9
- package/dist-es/commands/UpdateLicenseManagerReportGeneratorCommand.js +3 -9
- package/dist-es/commands/UpdateLicenseSpecificationsForResourceCommand.js +3 -9
- package/dist-es/commands/UpdateServiceSettingsCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1646 -0
- package/dist-types/LicenseManagerClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +242 -0
- package/dist-types/ts3.4/LicenseManagerClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +247 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -1380
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -452
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -605
|
@@ -1,1380 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { LicenseManagerServiceException as __BaseException } from "../models/LicenseManagerServiceException";
|
|
5
|
-
import { AccessDeniedException, AuthorizationException, ConflictException, EntitlementNotAllowedException, FailedDependencyException, FilterLimitExceededException, InvalidParameterValueException, InvalidResourceStateException, LicenseUsageException, NoEntitlementsAllowedException, RateLimitExceededException, RedirectException, ResourceLimitExceededException, ResourceNotFoundException, ServerInternalException, UnsupportedDigitalSignatureMethodException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_AcceptGrantCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("AcceptGrant");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CheckInLicenseCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CheckInLicense");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CheckoutBorrowLicenseCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CheckoutBorrowLicense");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CheckoutLicenseCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CheckoutLicense");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_CreateGrantCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CreateGrant");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_CreateGrantVersionCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("CreateGrantVersion");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_CreateLicenseCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("CreateLicense");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_CreateLicenseConfigurationCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("CreateLicenseConfiguration");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_CreateLicenseConversionTaskForResourceCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("CreateLicenseConversionTaskForResource");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_CreateLicenseManagerReportGeneratorCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("CreateLicenseManagerReportGenerator");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_CreateLicenseVersionCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("CreateLicenseVersion");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_CreateTokenCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("CreateToken");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_DeleteGrantCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("DeleteGrant");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_DeleteLicenseCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("DeleteLicense");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_DeleteLicenseConfigurationCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("DeleteLicenseConfiguration");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_DeleteLicenseManagerReportGeneratorCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("DeleteLicenseManagerReportGenerator");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_DeleteTokenCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteToken");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_ExtendLicenseConsumptionCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("ExtendLicenseConsumption");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_GetAccessTokenCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("GetAccessToken");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_GetGrantCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("GetGrant");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_GetLicenseCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("GetLicense");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_GetLicenseConfigurationCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("GetLicenseConfiguration");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_GetLicenseConversionTaskCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("GetLicenseConversionTask");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_GetLicenseManagerReportGeneratorCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("GetLicenseManagerReportGenerator");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_GetLicenseUsageCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("GetLicenseUsage");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_GetServiceSettingsCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("GetServiceSettings");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_ListAssociationsForLicenseConfigurationCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("ListAssociationsForLicenseConfiguration");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const se_ListDistributedGrantsCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("ListDistributedGrants");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(_json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
export const se_ListFailuresForLicenseConfigurationOperationsCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("ListFailuresForLicenseConfigurationOperations");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(_json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
export const se_ListLicenseConfigurationsCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("ListLicenseConfigurations");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(_json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
export const se_ListLicenseConversionTasksCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("ListLicenseConversionTasks");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(_json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
export const se_ListLicenseManagerReportGeneratorsCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("ListLicenseManagerReportGenerators");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(_json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
export const se_ListLicensesCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("ListLicenses");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(_json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
export const se_ListLicenseSpecificationsForResourceCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("ListLicenseSpecificationsForResource");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(_json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
export const se_ListLicenseVersionsCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("ListLicenseVersions");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(_json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
export const se_ListReceivedGrantsCommand = async (input, context) => {
|
|
217
|
-
const headers = sharedHeaders("ListReceivedGrants");
|
|
218
|
-
let body;
|
|
219
|
-
body = JSON.stringify(_json(input));
|
|
220
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
-
};
|
|
222
|
-
export const se_ListReceivedGrantsForOrganizationCommand = async (input, context) => {
|
|
223
|
-
const headers = sharedHeaders("ListReceivedGrantsForOrganization");
|
|
224
|
-
let body;
|
|
225
|
-
body = JSON.stringify(_json(input));
|
|
226
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
227
|
-
};
|
|
228
|
-
export const se_ListReceivedLicensesCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("ListReceivedLicenses");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify(_json(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
export const se_ListReceivedLicensesForOrganizationCommand = async (input, context) => {
|
|
235
|
-
const headers = sharedHeaders("ListReceivedLicensesForOrganization");
|
|
236
|
-
let body;
|
|
237
|
-
body = JSON.stringify(_json(input));
|
|
238
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
-
};
|
|
240
|
-
export const se_ListResourceInventoryCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("ListResourceInventory");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify(_json(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
247
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
248
|
-
let body;
|
|
249
|
-
body = JSON.stringify(_json(input));
|
|
250
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
|
-
};
|
|
252
|
-
export const se_ListTokensCommand = async (input, context) => {
|
|
253
|
-
const headers = sharedHeaders("ListTokens");
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify(_json(input));
|
|
256
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
-
};
|
|
258
|
-
export const se_ListUsageForLicenseConfigurationCommand = async (input, context) => {
|
|
259
|
-
const headers = sharedHeaders("ListUsageForLicenseConfiguration");
|
|
260
|
-
let body;
|
|
261
|
-
body = JSON.stringify(_json(input));
|
|
262
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
263
|
-
};
|
|
264
|
-
export const se_RejectGrantCommand = async (input, context) => {
|
|
265
|
-
const headers = sharedHeaders("RejectGrant");
|
|
266
|
-
let body;
|
|
267
|
-
body = JSON.stringify(_json(input));
|
|
268
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
|
-
};
|
|
270
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("TagResource");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify(_json(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
277
|
-
const headers = sharedHeaders("UntagResource");
|
|
278
|
-
let body;
|
|
279
|
-
body = JSON.stringify(_json(input));
|
|
280
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
-
};
|
|
282
|
-
export const se_UpdateLicenseConfigurationCommand = async (input, context) => {
|
|
283
|
-
const headers = sharedHeaders("UpdateLicenseConfiguration");
|
|
284
|
-
let body;
|
|
285
|
-
body = JSON.stringify(_json(input));
|
|
286
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
-
};
|
|
288
|
-
export const se_UpdateLicenseManagerReportGeneratorCommand = async (input, context) => {
|
|
289
|
-
const headers = sharedHeaders("UpdateLicenseManagerReportGenerator");
|
|
290
|
-
let body;
|
|
291
|
-
body = JSON.stringify(_json(input));
|
|
292
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
-
};
|
|
294
|
-
export const se_UpdateLicenseSpecificationsForResourceCommand = async (input, context) => {
|
|
295
|
-
const headers = sharedHeaders("UpdateLicenseSpecificationsForResource");
|
|
296
|
-
let body;
|
|
297
|
-
body = JSON.stringify(_json(input));
|
|
298
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
-
};
|
|
300
|
-
export const se_UpdateServiceSettingsCommand = async (input, context) => {
|
|
301
|
-
const headers = sharedHeaders("UpdateServiceSettings");
|
|
302
|
-
let body;
|
|
303
|
-
body = JSON.stringify(_json(input));
|
|
304
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
|
-
};
|
|
306
|
-
export const de_AcceptGrantCommand = async (output, context) => {
|
|
307
|
-
if (output.statusCode >= 300) {
|
|
308
|
-
return de_CommandError(output, context);
|
|
309
|
-
}
|
|
310
|
-
const data = await parseBody(output.body, context);
|
|
311
|
-
let contents = {};
|
|
312
|
-
contents = _json(data);
|
|
313
|
-
const response = {
|
|
314
|
-
$metadata: deserializeMetadata(output),
|
|
315
|
-
...contents,
|
|
316
|
-
};
|
|
317
|
-
return response;
|
|
318
|
-
};
|
|
319
|
-
export const de_CheckInLicenseCommand = async (output, context) => {
|
|
320
|
-
if (output.statusCode >= 300) {
|
|
321
|
-
return de_CommandError(output, context);
|
|
322
|
-
}
|
|
323
|
-
const data = await parseBody(output.body, context);
|
|
324
|
-
let contents = {};
|
|
325
|
-
contents = _json(data);
|
|
326
|
-
const response = {
|
|
327
|
-
$metadata: deserializeMetadata(output),
|
|
328
|
-
...contents,
|
|
329
|
-
};
|
|
330
|
-
return response;
|
|
331
|
-
};
|
|
332
|
-
export const de_CheckoutBorrowLicenseCommand = async (output, context) => {
|
|
333
|
-
if (output.statusCode >= 300) {
|
|
334
|
-
return de_CommandError(output, context);
|
|
335
|
-
}
|
|
336
|
-
const data = await parseBody(output.body, context);
|
|
337
|
-
let contents = {};
|
|
338
|
-
contents = _json(data);
|
|
339
|
-
const response = {
|
|
340
|
-
$metadata: deserializeMetadata(output),
|
|
341
|
-
...contents,
|
|
342
|
-
};
|
|
343
|
-
return response;
|
|
344
|
-
};
|
|
345
|
-
export const de_CheckoutLicenseCommand = async (output, context) => {
|
|
346
|
-
if (output.statusCode >= 300) {
|
|
347
|
-
return de_CommandError(output, context);
|
|
348
|
-
}
|
|
349
|
-
const data = await parseBody(output.body, context);
|
|
350
|
-
let contents = {};
|
|
351
|
-
contents = _json(data);
|
|
352
|
-
const response = {
|
|
353
|
-
$metadata: deserializeMetadata(output),
|
|
354
|
-
...contents,
|
|
355
|
-
};
|
|
356
|
-
return response;
|
|
357
|
-
};
|
|
358
|
-
export const de_CreateGrantCommand = async (output, context) => {
|
|
359
|
-
if (output.statusCode >= 300) {
|
|
360
|
-
return de_CommandError(output, context);
|
|
361
|
-
}
|
|
362
|
-
const data = await parseBody(output.body, context);
|
|
363
|
-
let contents = {};
|
|
364
|
-
contents = _json(data);
|
|
365
|
-
const response = {
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
...contents,
|
|
368
|
-
};
|
|
369
|
-
return response;
|
|
370
|
-
};
|
|
371
|
-
export const de_CreateGrantVersionCommand = async (output, context) => {
|
|
372
|
-
if (output.statusCode >= 300) {
|
|
373
|
-
return de_CommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const data = await parseBody(output.body, context);
|
|
376
|
-
let contents = {};
|
|
377
|
-
contents = _json(data);
|
|
378
|
-
const response = {
|
|
379
|
-
$metadata: deserializeMetadata(output),
|
|
380
|
-
...contents,
|
|
381
|
-
};
|
|
382
|
-
return response;
|
|
383
|
-
};
|
|
384
|
-
export const de_CreateLicenseCommand = async (output, context) => {
|
|
385
|
-
if (output.statusCode >= 300) {
|
|
386
|
-
return de_CommandError(output, context);
|
|
387
|
-
}
|
|
388
|
-
const data = await parseBody(output.body, context);
|
|
389
|
-
let contents = {};
|
|
390
|
-
contents = _json(data);
|
|
391
|
-
const response = {
|
|
392
|
-
$metadata: deserializeMetadata(output),
|
|
393
|
-
...contents,
|
|
394
|
-
};
|
|
395
|
-
return response;
|
|
396
|
-
};
|
|
397
|
-
export const de_CreateLicenseConfigurationCommand = async (output, context) => {
|
|
398
|
-
if (output.statusCode >= 300) {
|
|
399
|
-
return de_CommandError(output, context);
|
|
400
|
-
}
|
|
401
|
-
const data = await parseBody(output.body, context);
|
|
402
|
-
let contents = {};
|
|
403
|
-
contents = _json(data);
|
|
404
|
-
const response = {
|
|
405
|
-
$metadata: deserializeMetadata(output),
|
|
406
|
-
...contents,
|
|
407
|
-
};
|
|
408
|
-
return response;
|
|
409
|
-
};
|
|
410
|
-
export const de_CreateLicenseConversionTaskForResourceCommand = async (output, context) => {
|
|
411
|
-
if (output.statusCode >= 300) {
|
|
412
|
-
return de_CommandError(output, context);
|
|
413
|
-
}
|
|
414
|
-
const data = await parseBody(output.body, context);
|
|
415
|
-
let contents = {};
|
|
416
|
-
contents = _json(data);
|
|
417
|
-
const response = {
|
|
418
|
-
$metadata: deserializeMetadata(output),
|
|
419
|
-
...contents,
|
|
420
|
-
};
|
|
421
|
-
return response;
|
|
422
|
-
};
|
|
423
|
-
export const de_CreateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
424
|
-
if (output.statusCode >= 300) {
|
|
425
|
-
return de_CommandError(output, context);
|
|
426
|
-
}
|
|
427
|
-
const data = await parseBody(output.body, context);
|
|
428
|
-
let contents = {};
|
|
429
|
-
contents = _json(data);
|
|
430
|
-
const response = {
|
|
431
|
-
$metadata: deserializeMetadata(output),
|
|
432
|
-
...contents,
|
|
433
|
-
};
|
|
434
|
-
return response;
|
|
435
|
-
};
|
|
436
|
-
export const de_CreateLicenseVersionCommand = async (output, context) => {
|
|
437
|
-
if (output.statusCode >= 300) {
|
|
438
|
-
return de_CommandError(output, context);
|
|
439
|
-
}
|
|
440
|
-
const data = await parseBody(output.body, context);
|
|
441
|
-
let contents = {};
|
|
442
|
-
contents = _json(data);
|
|
443
|
-
const response = {
|
|
444
|
-
$metadata: deserializeMetadata(output),
|
|
445
|
-
...contents,
|
|
446
|
-
};
|
|
447
|
-
return response;
|
|
448
|
-
};
|
|
449
|
-
export const de_CreateTokenCommand = async (output, context) => {
|
|
450
|
-
if (output.statusCode >= 300) {
|
|
451
|
-
return de_CommandError(output, context);
|
|
452
|
-
}
|
|
453
|
-
const data = await parseBody(output.body, context);
|
|
454
|
-
let contents = {};
|
|
455
|
-
contents = _json(data);
|
|
456
|
-
const response = {
|
|
457
|
-
$metadata: deserializeMetadata(output),
|
|
458
|
-
...contents,
|
|
459
|
-
};
|
|
460
|
-
return response;
|
|
461
|
-
};
|
|
462
|
-
export const de_DeleteGrantCommand = async (output, context) => {
|
|
463
|
-
if (output.statusCode >= 300) {
|
|
464
|
-
return de_CommandError(output, context);
|
|
465
|
-
}
|
|
466
|
-
const data = await parseBody(output.body, context);
|
|
467
|
-
let contents = {};
|
|
468
|
-
contents = _json(data);
|
|
469
|
-
const response = {
|
|
470
|
-
$metadata: deserializeMetadata(output),
|
|
471
|
-
...contents,
|
|
472
|
-
};
|
|
473
|
-
return response;
|
|
474
|
-
};
|
|
475
|
-
export const de_DeleteLicenseCommand = async (output, context) => {
|
|
476
|
-
if (output.statusCode >= 300) {
|
|
477
|
-
return de_CommandError(output, context);
|
|
478
|
-
}
|
|
479
|
-
const data = await parseBody(output.body, context);
|
|
480
|
-
let contents = {};
|
|
481
|
-
contents = _json(data);
|
|
482
|
-
const response = {
|
|
483
|
-
$metadata: deserializeMetadata(output),
|
|
484
|
-
...contents,
|
|
485
|
-
};
|
|
486
|
-
return response;
|
|
487
|
-
};
|
|
488
|
-
export const de_DeleteLicenseConfigurationCommand = async (output, context) => {
|
|
489
|
-
if (output.statusCode >= 300) {
|
|
490
|
-
return de_CommandError(output, context);
|
|
491
|
-
}
|
|
492
|
-
const data = await parseBody(output.body, context);
|
|
493
|
-
let contents = {};
|
|
494
|
-
contents = _json(data);
|
|
495
|
-
const response = {
|
|
496
|
-
$metadata: deserializeMetadata(output),
|
|
497
|
-
...contents,
|
|
498
|
-
};
|
|
499
|
-
return response;
|
|
500
|
-
};
|
|
501
|
-
export const de_DeleteLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
502
|
-
if (output.statusCode >= 300) {
|
|
503
|
-
return de_CommandError(output, context);
|
|
504
|
-
}
|
|
505
|
-
const data = await parseBody(output.body, context);
|
|
506
|
-
let contents = {};
|
|
507
|
-
contents = _json(data);
|
|
508
|
-
const response = {
|
|
509
|
-
$metadata: deserializeMetadata(output),
|
|
510
|
-
...contents,
|
|
511
|
-
};
|
|
512
|
-
return response;
|
|
513
|
-
};
|
|
514
|
-
export const de_DeleteTokenCommand = async (output, context) => {
|
|
515
|
-
if (output.statusCode >= 300) {
|
|
516
|
-
return de_CommandError(output, context);
|
|
517
|
-
}
|
|
518
|
-
const data = await parseBody(output.body, context);
|
|
519
|
-
let contents = {};
|
|
520
|
-
contents = _json(data);
|
|
521
|
-
const response = {
|
|
522
|
-
$metadata: deserializeMetadata(output),
|
|
523
|
-
...contents,
|
|
524
|
-
};
|
|
525
|
-
return response;
|
|
526
|
-
};
|
|
527
|
-
export const de_ExtendLicenseConsumptionCommand = async (output, context) => {
|
|
528
|
-
if (output.statusCode >= 300) {
|
|
529
|
-
return de_CommandError(output, context);
|
|
530
|
-
}
|
|
531
|
-
const data = await parseBody(output.body, context);
|
|
532
|
-
let contents = {};
|
|
533
|
-
contents = _json(data);
|
|
534
|
-
const response = {
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
...contents,
|
|
537
|
-
};
|
|
538
|
-
return response;
|
|
539
|
-
};
|
|
540
|
-
export const de_GetAccessTokenCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode >= 300) {
|
|
542
|
-
return de_CommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const data = await parseBody(output.body, context);
|
|
545
|
-
let contents = {};
|
|
546
|
-
contents = _json(data);
|
|
547
|
-
const response = {
|
|
548
|
-
$metadata: deserializeMetadata(output),
|
|
549
|
-
...contents,
|
|
550
|
-
};
|
|
551
|
-
return response;
|
|
552
|
-
};
|
|
553
|
-
export const de_GetGrantCommand = async (output, context) => {
|
|
554
|
-
if (output.statusCode >= 300) {
|
|
555
|
-
return de_CommandError(output, context);
|
|
556
|
-
}
|
|
557
|
-
const data = await parseBody(output.body, context);
|
|
558
|
-
let contents = {};
|
|
559
|
-
contents = _json(data);
|
|
560
|
-
const response = {
|
|
561
|
-
$metadata: deserializeMetadata(output),
|
|
562
|
-
...contents,
|
|
563
|
-
};
|
|
564
|
-
return response;
|
|
565
|
-
};
|
|
566
|
-
export const de_GetLicenseCommand = async (output, context) => {
|
|
567
|
-
if (output.statusCode >= 300) {
|
|
568
|
-
return de_CommandError(output, context);
|
|
569
|
-
}
|
|
570
|
-
const data = await parseBody(output.body, context);
|
|
571
|
-
let contents = {};
|
|
572
|
-
contents = _json(data);
|
|
573
|
-
const response = {
|
|
574
|
-
$metadata: deserializeMetadata(output),
|
|
575
|
-
...contents,
|
|
576
|
-
};
|
|
577
|
-
return response;
|
|
578
|
-
};
|
|
579
|
-
export const de_GetLicenseConfigurationCommand = async (output, context) => {
|
|
580
|
-
if (output.statusCode >= 300) {
|
|
581
|
-
return de_CommandError(output, context);
|
|
582
|
-
}
|
|
583
|
-
const data = await parseBody(output.body, context);
|
|
584
|
-
let contents = {};
|
|
585
|
-
contents = de_GetLicenseConfigurationResponse(data, context);
|
|
586
|
-
const response = {
|
|
587
|
-
$metadata: deserializeMetadata(output),
|
|
588
|
-
...contents,
|
|
589
|
-
};
|
|
590
|
-
return response;
|
|
591
|
-
};
|
|
592
|
-
export const de_GetLicenseConversionTaskCommand = async (output, context) => {
|
|
593
|
-
if (output.statusCode >= 300) {
|
|
594
|
-
return de_CommandError(output, context);
|
|
595
|
-
}
|
|
596
|
-
const data = await parseBody(output.body, context);
|
|
597
|
-
let contents = {};
|
|
598
|
-
contents = de_GetLicenseConversionTaskResponse(data, context);
|
|
599
|
-
const response = {
|
|
600
|
-
$metadata: deserializeMetadata(output),
|
|
601
|
-
...contents,
|
|
602
|
-
};
|
|
603
|
-
return response;
|
|
604
|
-
};
|
|
605
|
-
export const de_GetLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
606
|
-
if (output.statusCode >= 300) {
|
|
607
|
-
return de_CommandError(output, context);
|
|
608
|
-
}
|
|
609
|
-
const data = await parseBody(output.body, context);
|
|
610
|
-
let contents = {};
|
|
611
|
-
contents = _json(data);
|
|
612
|
-
const response = {
|
|
613
|
-
$metadata: deserializeMetadata(output),
|
|
614
|
-
...contents,
|
|
615
|
-
};
|
|
616
|
-
return response;
|
|
617
|
-
};
|
|
618
|
-
export const de_GetLicenseUsageCommand = async (output, context) => {
|
|
619
|
-
if (output.statusCode >= 300) {
|
|
620
|
-
return de_CommandError(output, context);
|
|
621
|
-
}
|
|
622
|
-
const data = await parseBody(output.body, context);
|
|
623
|
-
let contents = {};
|
|
624
|
-
contents = _json(data);
|
|
625
|
-
const response = {
|
|
626
|
-
$metadata: deserializeMetadata(output),
|
|
627
|
-
...contents,
|
|
628
|
-
};
|
|
629
|
-
return response;
|
|
630
|
-
};
|
|
631
|
-
export const de_GetServiceSettingsCommand = async (output, context) => {
|
|
632
|
-
if (output.statusCode >= 300) {
|
|
633
|
-
return de_CommandError(output, context);
|
|
634
|
-
}
|
|
635
|
-
const data = await parseBody(output.body, context);
|
|
636
|
-
let contents = {};
|
|
637
|
-
contents = _json(data);
|
|
638
|
-
const response = {
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
...contents,
|
|
641
|
-
};
|
|
642
|
-
return response;
|
|
643
|
-
};
|
|
644
|
-
export const de_ListAssociationsForLicenseConfigurationCommand = async (output, context) => {
|
|
645
|
-
if (output.statusCode >= 300) {
|
|
646
|
-
return de_CommandError(output, context);
|
|
647
|
-
}
|
|
648
|
-
const data = await parseBody(output.body, context);
|
|
649
|
-
let contents = {};
|
|
650
|
-
contents = de_ListAssociationsForLicenseConfigurationResponse(data, context);
|
|
651
|
-
const response = {
|
|
652
|
-
$metadata: deserializeMetadata(output),
|
|
653
|
-
...contents,
|
|
654
|
-
};
|
|
655
|
-
return response;
|
|
656
|
-
};
|
|
657
|
-
export const de_ListDistributedGrantsCommand = async (output, context) => {
|
|
658
|
-
if (output.statusCode >= 300) {
|
|
659
|
-
return de_CommandError(output, context);
|
|
660
|
-
}
|
|
661
|
-
const data = await parseBody(output.body, context);
|
|
662
|
-
let contents = {};
|
|
663
|
-
contents = _json(data);
|
|
664
|
-
const response = {
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
...contents,
|
|
667
|
-
};
|
|
668
|
-
return response;
|
|
669
|
-
};
|
|
670
|
-
export const de_ListFailuresForLicenseConfigurationOperationsCommand = async (output, context) => {
|
|
671
|
-
if (output.statusCode >= 300) {
|
|
672
|
-
return de_CommandError(output, context);
|
|
673
|
-
}
|
|
674
|
-
const data = await parseBody(output.body, context);
|
|
675
|
-
let contents = {};
|
|
676
|
-
contents = de_ListFailuresForLicenseConfigurationOperationsResponse(data, context);
|
|
677
|
-
const response = {
|
|
678
|
-
$metadata: deserializeMetadata(output),
|
|
679
|
-
...contents,
|
|
680
|
-
};
|
|
681
|
-
return response;
|
|
682
|
-
};
|
|
683
|
-
export const de_ListLicenseConfigurationsCommand = async (output, context) => {
|
|
684
|
-
if (output.statusCode >= 300) {
|
|
685
|
-
return de_CommandError(output, context);
|
|
686
|
-
}
|
|
687
|
-
const data = await parseBody(output.body, context);
|
|
688
|
-
let contents = {};
|
|
689
|
-
contents = de_ListLicenseConfigurationsResponse(data, context);
|
|
690
|
-
const response = {
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
692
|
-
...contents,
|
|
693
|
-
};
|
|
694
|
-
return response;
|
|
695
|
-
};
|
|
696
|
-
export const de_ListLicenseConversionTasksCommand = async (output, context) => {
|
|
697
|
-
if (output.statusCode >= 300) {
|
|
698
|
-
return de_CommandError(output, context);
|
|
699
|
-
}
|
|
700
|
-
const data = await parseBody(output.body, context);
|
|
701
|
-
let contents = {};
|
|
702
|
-
contents = de_ListLicenseConversionTasksResponse(data, context);
|
|
703
|
-
const response = {
|
|
704
|
-
$metadata: deserializeMetadata(output),
|
|
705
|
-
...contents,
|
|
706
|
-
};
|
|
707
|
-
return response;
|
|
708
|
-
};
|
|
709
|
-
export const de_ListLicenseManagerReportGeneratorsCommand = async (output, context) => {
|
|
710
|
-
if (output.statusCode >= 300) {
|
|
711
|
-
return de_CommandError(output, context);
|
|
712
|
-
}
|
|
713
|
-
const data = await parseBody(output.body, context);
|
|
714
|
-
let contents = {};
|
|
715
|
-
contents = _json(data);
|
|
716
|
-
const response = {
|
|
717
|
-
$metadata: deserializeMetadata(output),
|
|
718
|
-
...contents,
|
|
719
|
-
};
|
|
720
|
-
return response;
|
|
721
|
-
};
|
|
722
|
-
export const de_ListLicensesCommand = async (output, context) => {
|
|
723
|
-
if (output.statusCode >= 300) {
|
|
724
|
-
return de_CommandError(output, context);
|
|
725
|
-
}
|
|
726
|
-
const data = await parseBody(output.body, context);
|
|
727
|
-
let contents = {};
|
|
728
|
-
contents = _json(data);
|
|
729
|
-
const response = {
|
|
730
|
-
$metadata: deserializeMetadata(output),
|
|
731
|
-
...contents,
|
|
732
|
-
};
|
|
733
|
-
return response;
|
|
734
|
-
};
|
|
735
|
-
export const de_ListLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
736
|
-
if (output.statusCode >= 300) {
|
|
737
|
-
return de_CommandError(output, context);
|
|
738
|
-
}
|
|
739
|
-
const data = await parseBody(output.body, context);
|
|
740
|
-
let contents = {};
|
|
741
|
-
contents = _json(data);
|
|
742
|
-
const response = {
|
|
743
|
-
$metadata: deserializeMetadata(output),
|
|
744
|
-
...contents,
|
|
745
|
-
};
|
|
746
|
-
return response;
|
|
747
|
-
};
|
|
748
|
-
export const de_ListLicenseVersionsCommand = async (output, context) => {
|
|
749
|
-
if (output.statusCode >= 300) {
|
|
750
|
-
return de_CommandError(output, context);
|
|
751
|
-
}
|
|
752
|
-
const data = await parseBody(output.body, context);
|
|
753
|
-
let contents = {};
|
|
754
|
-
contents = _json(data);
|
|
755
|
-
const response = {
|
|
756
|
-
$metadata: deserializeMetadata(output),
|
|
757
|
-
...contents,
|
|
758
|
-
};
|
|
759
|
-
return response;
|
|
760
|
-
};
|
|
761
|
-
export const de_ListReceivedGrantsCommand = async (output, context) => {
|
|
762
|
-
if (output.statusCode >= 300) {
|
|
763
|
-
return de_CommandError(output, context);
|
|
764
|
-
}
|
|
765
|
-
const data = await parseBody(output.body, context);
|
|
766
|
-
let contents = {};
|
|
767
|
-
contents = _json(data);
|
|
768
|
-
const response = {
|
|
769
|
-
$metadata: deserializeMetadata(output),
|
|
770
|
-
...contents,
|
|
771
|
-
};
|
|
772
|
-
return response;
|
|
773
|
-
};
|
|
774
|
-
export const de_ListReceivedGrantsForOrganizationCommand = async (output, context) => {
|
|
775
|
-
if (output.statusCode >= 300) {
|
|
776
|
-
return de_CommandError(output, context);
|
|
777
|
-
}
|
|
778
|
-
const data = await parseBody(output.body, context);
|
|
779
|
-
let contents = {};
|
|
780
|
-
contents = _json(data);
|
|
781
|
-
const response = {
|
|
782
|
-
$metadata: deserializeMetadata(output),
|
|
783
|
-
...contents,
|
|
784
|
-
};
|
|
785
|
-
return response;
|
|
786
|
-
};
|
|
787
|
-
export const de_ListReceivedLicensesCommand = async (output, context) => {
|
|
788
|
-
if (output.statusCode >= 300) {
|
|
789
|
-
return de_CommandError(output, context);
|
|
790
|
-
}
|
|
791
|
-
const data = await parseBody(output.body, context);
|
|
792
|
-
let contents = {};
|
|
793
|
-
contents = _json(data);
|
|
794
|
-
const response = {
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
...contents,
|
|
797
|
-
};
|
|
798
|
-
return response;
|
|
799
|
-
};
|
|
800
|
-
export const de_ListReceivedLicensesForOrganizationCommand = async (output, context) => {
|
|
801
|
-
if (output.statusCode >= 300) {
|
|
802
|
-
return de_CommandError(output, context);
|
|
803
|
-
}
|
|
804
|
-
const data = await parseBody(output.body, context);
|
|
805
|
-
let contents = {};
|
|
806
|
-
contents = _json(data);
|
|
807
|
-
const response = {
|
|
808
|
-
$metadata: deserializeMetadata(output),
|
|
809
|
-
...contents,
|
|
810
|
-
};
|
|
811
|
-
return response;
|
|
812
|
-
};
|
|
813
|
-
export const de_ListResourceInventoryCommand = async (output, context) => {
|
|
814
|
-
if (output.statusCode >= 300) {
|
|
815
|
-
return de_CommandError(output, context);
|
|
816
|
-
}
|
|
817
|
-
const data = await parseBody(output.body, context);
|
|
818
|
-
let contents = {};
|
|
819
|
-
contents = _json(data);
|
|
820
|
-
const response = {
|
|
821
|
-
$metadata: deserializeMetadata(output),
|
|
822
|
-
...contents,
|
|
823
|
-
};
|
|
824
|
-
return response;
|
|
825
|
-
};
|
|
826
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
827
|
-
if (output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const data = await parseBody(output.body, context);
|
|
831
|
-
let contents = {};
|
|
832
|
-
contents = _json(data);
|
|
833
|
-
const response = {
|
|
834
|
-
$metadata: deserializeMetadata(output),
|
|
835
|
-
...contents,
|
|
836
|
-
};
|
|
837
|
-
return response;
|
|
838
|
-
};
|
|
839
|
-
export const de_ListTokensCommand = async (output, context) => {
|
|
840
|
-
if (output.statusCode >= 300) {
|
|
841
|
-
return de_CommandError(output, context);
|
|
842
|
-
}
|
|
843
|
-
const data = await parseBody(output.body, context);
|
|
844
|
-
let contents = {};
|
|
845
|
-
contents = _json(data);
|
|
846
|
-
const response = {
|
|
847
|
-
$metadata: deserializeMetadata(output),
|
|
848
|
-
...contents,
|
|
849
|
-
};
|
|
850
|
-
return response;
|
|
851
|
-
};
|
|
852
|
-
export const de_ListUsageForLicenseConfigurationCommand = async (output, context) => {
|
|
853
|
-
if (output.statusCode >= 300) {
|
|
854
|
-
return de_CommandError(output, context);
|
|
855
|
-
}
|
|
856
|
-
const data = await parseBody(output.body, context);
|
|
857
|
-
let contents = {};
|
|
858
|
-
contents = de_ListUsageForLicenseConfigurationResponse(data, context);
|
|
859
|
-
const response = {
|
|
860
|
-
$metadata: deserializeMetadata(output),
|
|
861
|
-
...contents,
|
|
862
|
-
};
|
|
863
|
-
return response;
|
|
864
|
-
};
|
|
865
|
-
export const de_RejectGrantCommand = async (output, context) => {
|
|
866
|
-
if (output.statusCode >= 300) {
|
|
867
|
-
return de_CommandError(output, context);
|
|
868
|
-
}
|
|
869
|
-
const data = await parseBody(output.body, context);
|
|
870
|
-
let contents = {};
|
|
871
|
-
contents = _json(data);
|
|
872
|
-
const response = {
|
|
873
|
-
$metadata: deserializeMetadata(output),
|
|
874
|
-
...contents,
|
|
875
|
-
};
|
|
876
|
-
return response;
|
|
877
|
-
};
|
|
878
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
879
|
-
if (output.statusCode >= 300) {
|
|
880
|
-
return de_CommandError(output, context);
|
|
881
|
-
}
|
|
882
|
-
const data = await parseBody(output.body, context);
|
|
883
|
-
let contents = {};
|
|
884
|
-
contents = _json(data);
|
|
885
|
-
const response = {
|
|
886
|
-
$metadata: deserializeMetadata(output),
|
|
887
|
-
...contents,
|
|
888
|
-
};
|
|
889
|
-
return response;
|
|
890
|
-
};
|
|
891
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
892
|
-
if (output.statusCode >= 300) {
|
|
893
|
-
return de_CommandError(output, context);
|
|
894
|
-
}
|
|
895
|
-
const data = await parseBody(output.body, context);
|
|
896
|
-
let contents = {};
|
|
897
|
-
contents = _json(data);
|
|
898
|
-
const response = {
|
|
899
|
-
$metadata: deserializeMetadata(output),
|
|
900
|
-
...contents,
|
|
901
|
-
};
|
|
902
|
-
return response;
|
|
903
|
-
};
|
|
904
|
-
export const de_UpdateLicenseConfigurationCommand = async (output, context) => {
|
|
905
|
-
if (output.statusCode >= 300) {
|
|
906
|
-
return de_CommandError(output, context);
|
|
907
|
-
}
|
|
908
|
-
const data = await parseBody(output.body, context);
|
|
909
|
-
let contents = {};
|
|
910
|
-
contents = _json(data);
|
|
911
|
-
const response = {
|
|
912
|
-
$metadata: deserializeMetadata(output),
|
|
913
|
-
...contents,
|
|
914
|
-
};
|
|
915
|
-
return response;
|
|
916
|
-
};
|
|
917
|
-
export const de_UpdateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
918
|
-
if (output.statusCode >= 300) {
|
|
919
|
-
return de_CommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
const data = await parseBody(output.body, context);
|
|
922
|
-
let contents = {};
|
|
923
|
-
contents = _json(data);
|
|
924
|
-
const response = {
|
|
925
|
-
$metadata: deserializeMetadata(output),
|
|
926
|
-
...contents,
|
|
927
|
-
};
|
|
928
|
-
return response;
|
|
929
|
-
};
|
|
930
|
-
export const de_UpdateLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
931
|
-
if (output.statusCode >= 300) {
|
|
932
|
-
return de_CommandError(output, context);
|
|
933
|
-
}
|
|
934
|
-
const data = await parseBody(output.body, context);
|
|
935
|
-
let contents = {};
|
|
936
|
-
contents = _json(data);
|
|
937
|
-
const response = {
|
|
938
|
-
$metadata: deserializeMetadata(output),
|
|
939
|
-
...contents,
|
|
940
|
-
};
|
|
941
|
-
return response;
|
|
942
|
-
};
|
|
943
|
-
export const de_UpdateServiceSettingsCommand = async (output, context) => {
|
|
944
|
-
if (output.statusCode >= 300) {
|
|
945
|
-
return de_CommandError(output, context);
|
|
946
|
-
}
|
|
947
|
-
const data = await parseBody(output.body, context);
|
|
948
|
-
let contents = {};
|
|
949
|
-
contents = _json(data);
|
|
950
|
-
const response = {
|
|
951
|
-
$metadata: deserializeMetadata(output),
|
|
952
|
-
...contents,
|
|
953
|
-
};
|
|
954
|
-
return response;
|
|
955
|
-
};
|
|
956
|
-
const de_CommandError = async (output, context) => {
|
|
957
|
-
const parsedOutput = {
|
|
958
|
-
...output,
|
|
959
|
-
body: await parseErrorBody(output.body, context),
|
|
960
|
-
};
|
|
961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
962
|
-
switch (errorCode) {
|
|
963
|
-
case "AccessDeniedException":
|
|
964
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
965
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
966
|
-
case "AuthorizationException":
|
|
967
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
968
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
969
|
-
case "InvalidParameterValueException":
|
|
970
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
971
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
972
|
-
case "RateLimitExceededException":
|
|
973
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
974
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceLimitExceededException":
|
|
976
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
977
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ServerInternalException":
|
|
979
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
980
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
981
|
-
case "ValidationException":
|
|
982
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
983
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
|
-
case "ConflictException":
|
|
985
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
986
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
987
|
-
case "ResourceNotFoundException":
|
|
988
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
989
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
990
|
-
case "EntitlementNotAllowedException":
|
|
991
|
-
case "com.amazonaws.licensemanager#EntitlementNotAllowedException":
|
|
992
|
-
throw await de_EntitlementNotAllowedExceptionRes(parsedOutput, context);
|
|
993
|
-
case "NoEntitlementsAllowedException":
|
|
994
|
-
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
995
|
-
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
996
|
-
case "RedirectException":
|
|
997
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
998
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
999
|
-
case "UnsupportedDigitalSignatureMethodException":
|
|
1000
|
-
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
1001
|
-
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "FilterLimitExceededException":
|
|
1003
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
1004
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "FailedDependencyException":
|
|
1006
|
-
case "com.amazonaws.licensemanager#FailedDependencyException":
|
|
1007
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "InvalidResourceStateException":
|
|
1009
|
-
case "com.amazonaws.licensemanager#InvalidResourceStateException":
|
|
1010
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "LicenseUsageException":
|
|
1012
|
-
case "com.amazonaws.licensemanager#LicenseUsageException":
|
|
1013
|
-
throw await de_LicenseUsageExceptionRes(parsedOutput, context);
|
|
1014
|
-
default:
|
|
1015
|
-
const parsedBody = parsedOutput.body;
|
|
1016
|
-
return throwDefaultError({
|
|
1017
|
-
output,
|
|
1018
|
-
parsedBody,
|
|
1019
|
-
errorCode,
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
};
|
|
1023
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1024
|
-
const body = parsedOutput.body;
|
|
1025
|
-
const deserialized = _json(body);
|
|
1026
|
-
const exception = new AccessDeniedException({
|
|
1027
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1028
|
-
...deserialized,
|
|
1029
|
-
});
|
|
1030
|
-
return __decorateServiceException(exception, body);
|
|
1031
|
-
};
|
|
1032
|
-
const de_AuthorizationExceptionRes = async (parsedOutput, context) => {
|
|
1033
|
-
const body = parsedOutput.body;
|
|
1034
|
-
const deserialized = _json(body);
|
|
1035
|
-
const exception = new AuthorizationException({
|
|
1036
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1037
|
-
...deserialized,
|
|
1038
|
-
});
|
|
1039
|
-
return __decorateServiceException(exception, body);
|
|
1040
|
-
};
|
|
1041
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1042
|
-
const body = parsedOutput.body;
|
|
1043
|
-
const deserialized = _json(body);
|
|
1044
|
-
const exception = new ConflictException({
|
|
1045
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1046
|
-
...deserialized,
|
|
1047
|
-
});
|
|
1048
|
-
return __decorateServiceException(exception, body);
|
|
1049
|
-
};
|
|
1050
|
-
const de_EntitlementNotAllowedExceptionRes = async (parsedOutput, context) => {
|
|
1051
|
-
const body = parsedOutput.body;
|
|
1052
|
-
const deserialized = _json(body);
|
|
1053
|
-
const exception = new EntitlementNotAllowedException({
|
|
1054
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1055
|
-
...deserialized,
|
|
1056
|
-
});
|
|
1057
|
-
return __decorateServiceException(exception, body);
|
|
1058
|
-
};
|
|
1059
|
-
const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
|
|
1060
|
-
const body = parsedOutput.body;
|
|
1061
|
-
const deserialized = _json(body);
|
|
1062
|
-
const exception = new FailedDependencyException({
|
|
1063
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1064
|
-
...deserialized,
|
|
1065
|
-
});
|
|
1066
|
-
return __decorateServiceException(exception, body);
|
|
1067
|
-
};
|
|
1068
|
-
const de_FilterLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1069
|
-
const body = parsedOutput.body;
|
|
1070
|
-
const deserialized = _json(body);
|
|
1071
|
-
const exception = new FilterLimitExceededException({
|
|
1072
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1073
|
-
...deserialized,
|
|
1074
|
-
});
|
|
1075
|
-
return __decorateServiceException(exception, body);
|
|
1076
|
-
};
|
|
1077
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
1078
|
-
const body = parsedOutput.body;
|
|
1079
|
-
const deserialized = _json(body);
|
|
1080
|
-
const exception = new InvalidParameterValueException({
|
|
1081
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1082
|
-
...deserialized,
|
|
1083
|
-
});
|
|
1084
|
-
return __decorateServiceException(exception, body);
|
|
1085
|
-
};
|
|
1086
|
-
const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
1087
|
-
const body = parsedOutput.body;
|
|
1088
|
-
const deserialized = _json(body);
|
|
1089
|
-
const exception = new InvalidResourceStateException({
|
|
1090
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1091
|
-
...deserialized,
|
|
1092
|
-
});
|
|
1093
|
-
return __decorateServiceException(exception, body);
|
|
1094
|
-
};
|
|
1095
|
-
const de_LicenseUsageExceptionRes = async (parsedOutput, context) => {
|
|
1096
|
-
const body = parsedOutput.body;
|
|
1097
|
-
const deserialized = _json(body);
|
|
1098
|
-
const exception = new LicenseUsageException({
|
|
1099
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1100
|
-
...deserialized,
|
|
1101
|
-
});
|
|
1102
|
-
return __decorateServiceException(exception, body);
|
|
1103
|
-
};
|
|
1104
|
-
const de_NoEntitlementsAllowedExceptionRes = async (parsedOutput, context) => {
|
|
1105
|
-
const body = parsedOutput.body;
|
|
1106
|
-
const deserialized = _json(body);
|
|
1107
|
-
const exception = new NoEntitlementsAllowedException({
|
|
1108
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1109
|
-
...deserialized,
|
|
1110
|
-
});
|
|
1111
|
-
return __decorateServiceException(exception, body);
|
|
1112
|
-
};
|
|
1113
|
-
const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1114
|
-
const body = parsedOutput.body;
|
|
1115
|
-
const deserialized = _json(body);
|
|
1116
|
-
const exception = new RateLimitExceededException({
|
|
1117
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1118
|
-
...deserialized,
|
|
1119
|
-
});
|
|
1120
|
-
return __decorateServiceException(exception, body);
|
|
1121
|
-
};
|
|
1122
|
-
const de_RedirectExceptionRes = async (parsedOutput, context) => {
|
|
1123
|
-
const body = parsedOutput.body;
|
|
1124
|
-
const deserialized = _json(body);
|
|
1125
|
-
const exception = new RedirectException({
|
|
1126
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1127
|
-
...deserialized,
|
|
1128
|
-
});
|
|
1129
|
-
return __decorateServiceException(exception, body);
|
|
1130
|
-
};
|
|
1131
|
-
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1132
|
-
const body = parsedOutput.body;
|
|
1133
|
-
const deserialized = _json(body);
|
|
1134
|
-
const exception = new ResourceLimitExceededException({
|
|
1135
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1136
|
-
...deserialized,
|
|
1137
|
-
});
|
|
1138
|
-
return __decorateServiceException(exception, body);
|
|
1139
|
-
};
|
|
1140
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1141
|
-
const body = parsedOutput.body;
|
|
1142
|
-
const deserialized = _json(body);
|
|
1143
|
-
const exception = new ResourceNotFoundException({
|
|
1144
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1145
|
-
...deserialized,
|
|
1146
|
-
});
|
|
1147
|
-
return __decorateServiceException(exception, body);
|
|
1148
|
-
};
|
|
1149
|
-
const de_ServerInternalExceptionRes = async (parsedOutput, context) => {
|
|
1150
|
-
const body = parsedOutput.body;
|
|
1151
|
-
const deserialized = _json(body);
|
|
1152
|
-
const exception = new ServerInternalException({
|
|
1153
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1154
|
-
...deserialized,
|
|
1155
|
-
});
|
|
1156
|
-
return __decorateServiceException(exception, body);
|
|
1157
|
-
};
|
|
1158
|
-
const de_UnsupportedDigitalSignatureMethodExceptionRes = async (parsedOutput, context) => {
|
|
1159
|
-
const body = parsedOutput.body;
|
|
1160
|
-
const deserialized = _json(body);
|
|
1161
|
-
const exception = new UnsupportedDigitalSignatureMethodException({
|
|
1162
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1163
|
-
...deserialized,
|
|
1164
|
-
});
|
|
1165
|
-
return __decorateServiceException(exception, body);
|
|
1166
|
-
};
|
|
1167
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1168
|
-
const body = parsedOutput.body;
|
|
1169
|
-
const deserialized = _json(body);
|
|
1170
|
-
const exception = new ValidationException({
|
|
1171
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1172
|
-
...deserialized,
|
|
1173
|
-
});
|
|
1174
|
-
return __decorateServiceException(exception, body);
|
|
1175
|
-
};
|
|
1176
|
-
const de_AutomatedDiscoveryInformation = (output, context) => {
|
|
1177
|
-
return take(output, {
|
|
1178
|
-
LastRunTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1179
|
-
});
|
|
1180
|
-
};
|
|
1181
|
-
const de_GetLicenseConfigurationResponse = (output, context) => {
|
|
1182
|
-
return take(output, {
|
|
1183
|
-
AutomatedDiscoveryInformation: (_) => de_AutomatedDiscoveryInformation(_, context),
|
|
1184
|
-
ConsumedLicenseSummaryList: _json,
|
|
1185
|
-
ConsumedLicenses: __expectLong,
|
|
1186
|
-
Description: __expectString,
|
|
1187
|
-
DisassociateWhenNotFound: __expectBoolean,
|
|
1188
|
-
LicenseConfigurationArn: __expectString,
|
|
1189
|
-
LicenseConfigurationId: __expectString,
|
|
1190
|
-
LicenseCount: __expectLong,
|
|
1191
|
-
LicenseCountHardLimit: __expectBoolean,
|
|
1192
|
-
LicenseCountingType: __expectString,
|
|
1193
|
-
LicenseRules: _json,
|
|
1194
|
-
ManagedResourceSummaryList: _json,
|
|
1195
|
-
Name: __expectString,
|
|
1196
|
-
OwnerAccountId: __expectString,
|
|
1197
|
-
ProductInformationList: _json,
|
|
1198
|
-
Status: __expectString,
|
|
1199
|
-
Tags: _json,
|
|
1200
|
-
});
|
|
1201
|
-
};
|
|
1202
|
-
const de_GetLicenseConversionTaskResponse = (output, context) => {
|
|
1203
|
-
return take(output, {
|
|
1204
|
-
DestinationLicenseContext: _json,
|
|
1205
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1206
|
-
LicenseConversionTaskId: __expectString,
|
|
1207
|
-
LicenseConversionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1208
|
-
ResourceArn: __expectString,
|
|
1209
|
-
SourceLicenseContext: _json,
|
|
1210
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1211
|
-
Status: __expectString,
|
|
1212
|
-
StatusMessage: __expectString,
|
|
1213
|
-
});
|
|
1214
|
-
};
|
|
1215
|
-
const de_LicenseConfiguration = (output, context) => {
|
|
1216
|
-
return take(output, {
|
|
1217
|
-
AutomatedDiscoveryInformation: (_) => de_AutomatedDiscoveryInformation(_, context),
|
|
1218
|
-
ConsumedLicenseSummaryList: _json,
|
|
1219
|
-
ConsumedLicenses: __expectLong,
|
|
1220
|
-
Description: __expectString,
|
|
1221
|
-
DisassociateWhenNotFound: __expectBoolean,
|
|
1222
|
-
LicenseConfigurationArn: __expectString,
|
|
1223
|
-
LicenseConfigurationId: __expectString,
|
|
1224
|
-
LicenseCount: __expectLong,
|
|
1225
|
-
LicenseCountHardLimit: __expectBoolean,
|
|
1226
|
-
LicenseCountingType: __expectString,
|
|
1227
|
-
LicenseRules: _json,
|
|
1228
|
-
ManagedResourceSummaryList: _json,
|
|
1229
|
-
Name: __expectString,
|
|
1230
|
-
OwnerAccountId: __expectString,
|
|
1231
|
-
ProductInformationList: _json,
|
|
1232
|
-
Status: __expectString,
|
|
1233
|
-
});
|
|
1234
|
-
};
|
|
1235
|
-
const de_LicenseConfigurationAssociation = (output, context) => {
|
|
1236
|
-
return take(output, {
|
|
1237
|
-
AmiAssociationScope: __expectString,
|
|
1238
|
-
AssociationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1239
|
-
ResourceArn: __expectString,
|
|
1240
|
-
ResourceOwnerId: __expectString,
|
|
1241
|
-
ResourceType: __expectString,
|
|
1242
|
-
});
|
|
1243
|
-
};
|
|
1244
|
-
const de_LicenseConfigurationAssociations = (output, context) => {
|
|
1245
|
-
const retVal = (output || [])
|
|
1246
|
-
.filter((e) => e != null)
|
|
1247
|
-
.map((entry) => {
|
|
1248
|
-
return de_LicenseConfigurationAssociation(entry, context);
|
|
1249
|
-
});
|
|
1250
|
-
return retVal;
|
|
1251
|
-
};
|
|
1252
|
-
const de_LicenseConfigurations = (output, context) => {
|
|
1253
|
-
const retVal = (output || [])
|
|
1254
|
-
.filter((e) => e != null)
|
|
1255
|
-
.map((entry) => {
|
|
1256
|
-
return de_LicenseConfiguration(entry, context);
|
|
1257
|
-
});
|
|
1258
|
-
return retVal;
|
|
1259
|
-
};
|
|
1260
|
-
const de_LicenseConfigurationUsage = (output, context) => {
|
|
1261
|
-
return take(output, {
|
|
1262
|
-
AssociationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1263
|
-
ConsumedLicenses: __expectLong,
|
|
1264
|
-
ResourceArn: __expectString,
|
|
1265
|
-
ResourceOwnerId: __expectString,
|
|
1266
|
-
ResourceStatus: __expectString,
|
|
1267
|
-
ResourceType: __expectString,
|
|
1268
|
-
});
|
|
1269
|
-
};
|
|
1270
|
-
const de_LicenseConfigurationUsageList = (output, context) => {
|
|
1271
|
-
const retVal = (output || [])
|
|
1272
|
-
.filter((e) => e != null)
|
|
1273
|
-
.map((entry) => {
|
|
1274
|
-
return de_LicenseConfigurationUsage(entry, context);
|
|
1275
|
-
});
|
|
1276
|
-
return retVal;
|
|
1277
|
-
};
|
|
1278
|
-
const de_LicenseConversionTask = (output, context) => {
|
|
1279
|
-
return take(output, {
|
|
1280
|
-
DestinationLicenseContext: _json,
|
|
1281
|
-
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1282
|
-
LicenseConversionTaskId: __expectString,
|
|
1283
|
-
LicenseConversionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1284
|
-
ResourceArn: __expectString,
|
|
1285
|
-
SourceLicenseContext: _json,
|
|
1286
|
-
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1287
|
-
Status: __expectString,
|
|
1288
|
-
StatusMessage: __expectString,
|
|
1289
|
-
});
|
|
1290
|
-
};
|
|
1291
|
-
const de_LicenseConversionTasks = (output, context) => {
|
|
1292
|
-
const retVal = (output || [])
|
|
1293
|
-
.filter((e) => e != null)
|
|
1294
|
-
.map((entry) => {
|
|
1295
|
-
return de_LicenseConversionTask(entry, context);
|
|
1296
|
-
});
|
|
1297
|
-
return retVal;
|
|
1298
|
-
};
|
|
1299
|
-
const de_LicenseOperationFailure = (output, context) => {
|
|
1300
|
-
return take(output, {
|
|
1301
|
-
ErrorMessage: __expectString,
|
|
1302
|
-
FailureTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1303
|
-
MetadataList: _json,
|
|
1304
|
-
OperationName: __expectString,
|
|
1305
|
-
OperationRequestedBy: __expectString,
|
|
1306
|
-
ResourceArn: __expectString,
|
|
1307
|
-
ResourceOwnerId: __expectString,
|
|
1308
|
-
ResourceType: __expectString,
|
|
1309
|
-
});
|
|
1310
|
-
};
|
|
1311
|
-
const de_LicenseOperationFailureList = (output, context) => {
|
|
1312
|
-
const retVal = (output || [])
|
|
1313
|
-
.filter((e) => e != null)
|
|
1314
|
-
.map((entry) => {
|
|
1315
|
-
return de_LicenseOperationFailure(entry, context);
|
|
1316
|
-
});
|
|
1317
|
-
return retVal;
|
|
1318
|
-
};
|
|
1319
|
-
const de_ListAssociationsForLicenseConfigurationResponse = (output, context) => {
|
|
1320
|
-
return take(output, {
|
|
1321
|
-
LicenseConfigurationAssociations: (_) => de_LicenseConfigurationAssociations(_, context),
|
|
1322
|
-
NextToken: __expectString,
|
|
1323
|
-
});
|
|
1324
|
-
};
|
|
1325
|
-
const de_ListFailuresForLicenseConfigurationOperationsResponse = (output, context) => {
|
|
1326
|
-
return take(output, {
|
|
1327
|
-
LicenseOperationFailureList: (_) => de_LicenseOperationFailureList(_, context),
|
|
1328
|
-
NextToken: __expectString,
|
|
1329
|
-
});
|
|
1330
|
-
};
|
|
1331
|
-
const de_ListLicenseConfigurationsResponse = (output, context) => {
|
|
1332
|
-
return take(output, {
|
|
1333
|
-
LicenseConfigurations: (_) => de_LicenseConfigurations(_, context),
|
|
1334
|
-
NextToken: __expectString,
|
|
1335
|
-
});
|
|
1336
|
-
};
|
|
1337
|
-
const de_ListLicenseConversionTasksResponse = (output, context) => {
|
|
1338
|
-
return take(output, {
|
|
1339
|
-
LicenseConversionTasks: (_) => de_LicenseConversionTasks(_, context),
|
|
1340
|
-
NextToken: __expectString,
|
|
1341
|
-
});
|
|
1342
|
-
};
|
|
1343
|
-
const de_ListUsageForLicenseConfigurationResponse = (output, context) => {
|
|
1344
|
-
return take(output, {
|
|
1345
|
-
LicenseConfigurationUsageList: (_) => de_LicenseConfigurationUsageList(_, context),
|
|
1346
|
-
NextToken: __expectString,
|
|
1347
|
-
});
|
|
1348
|
-
};
|
|
1349
|
-
const deserializeMetadata = (output) => ({
|
|
1350
|
-
httpStatusCode: output.statusCode,
|
|
1351
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1352
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1353
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1354
|
-
});
|
|
1355
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1356
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1357
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1358
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1359
|
-
const contents = {
|
|
1360
|
-
protocol,
|
|
1361
|
-
hostname,
|
|
1362
|
-
port,
|
|
1363
|
-
method: "POST",
|
|
1364
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1365
|
-
headers,
|
|
1366
|
-
};
|
|
1367
|
-
if (resolvedHostname !== undefined) {
|
|
1368
|
-
contents.hostname = resolvedHostname;
|
|
1369
|
-
}
|
|
1370
|
-
if (body !== undefined) {
|
|
1371
|
-
contents.body = body;
|
|
1372
|
-
}
|
|
1373
|
-
return new __HttpRequest(contents);
|
|
1374
|
-
};
|
|
1375
|
-
function sharedHeaders(operation) {
|
|
1376
|
-
return {
|
|
1377
|
-
"content-type": "application/x-amz-json-1.1",
|
|
1378
|
-
"x-amz-target": `AWSLicenseManager.${operation}`,
|
|
1379
|
-
};
|
|
1380
|
-
}
|