@aws-sdk/client-license-manager 3.490.0 → 3.495.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/LicenseManager.js +1 -111
- package/dist-cjs/LicenseManagerClient.js +1 -43
- package/dist-cjs/commands/AcceptGrantCommand.js +1 -28
- package/dist-cjs/commands/CheckInLicenseCommand.js +1 -28
- package/dist-cjs/commands/CheckoutBorrowLicenseCommand.js +1 -28
- package/dist-cjs/commands/CheckoutLicenseCommand.js +1 -28
- package/dist-cjs/commands/CreateGrantCommand.js +1 -28
- package/dist-cjs/commands/CreateGrantVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateLicenseCommand.js +1 -28
- package/dist-cjs/commands/CreateLicenseConfigurationCommand.js +1 -28
- package/dist-cjs/commands/CreateLicenseConversionTaskForResourceCommand.js +1 -28
- package/dist-cjs/commands/CreateLicenseManagerReportGeneratorCommand.js +1 -28
- package/dist-cjs/commands/CreateLicenseVersionCommand.js +1 -28
- package/dist-cjs/commands/CreateTokenCommand.js +1 -28
- package/dist-cjs/commands/DeleteGrantCommand.js +1 -28
- package/dist-cjs/commands/DeleteLicenseCommand.js +1 -28
- package/dist-cjs/commands/DeleteLicenseConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeleteLicenseManagerReportGeneratorCommand.js +1 -28
- package/dist-cjs/commands/DeleteTokenCommand.js +1 -28
- package/dist-cjs/commands/ExtendLicenseConsumptionCommand.js +1 -28
- package/dist-cjs/commands/GetAccessTokenCommand.js +1 -28
- package/dist-cjs/commands/GetGrantCommand.js +1 -28
- package/dist-cjs/commands/GetLicenseCommand.js +1 -28
- package/dist-cjs/commands/GetLicenseConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetLicenseConversionTaskCommand.js +1 -28
- package/dist-cjs/commands/GetLicenseManagerReportGeneratorCommand.js +1 -28
- package/dist-cjs/commands/GetLicenseUsageCommand.js +1 -28
- package/dist-cjs/commands/GetServiceSettingsCommand.js +1 -28
- package/dist-cjs/commands/ListAssociationsForLicenseConfigurationCommand.js +1 -28
- package/dist-cjs/commands/ListDistributedGrantsCommand.js +1 -28
- package/dist-cjs/commands/ListFailuresForLicenseConfigurationOperationsCommand.js +1 -28
- package/dist-cjs/commands/ListLicenseConfigurationsCommand.js +1 -28
- package/dist-cjs/commands/ListLicenseConversionTasksCommand.js +1 -28
- package/dist-cjs/commands/ListLicenseManagerReportGeneratorsCommand.js +1 -28
- package/dist-cjs/commands/ListLicenseSpecificationsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListLicenseVersionsCommand.js +1 -28
- package/dist-cjs/commands/ListLicensesCommand.js +1 -28
- package/dist-cjs/commands/ListReceivedGrantsCommand.js +1 -28
- package/dist-cjs/commands/ListReceivedGrantsForOrganizationCommand.js +1 -28
- package/dist-cjs/commands/ListReceivedLicensesCommand.js +1 -28
- package/dist-cjs/commands/ListReceivedLicensesForOrganizationCommand.js +1 -28
- package/dist-cjs/commands/ListResourceInventoryCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTokensCommand.js +1 -28
- package/dist-cjs/commands/ListUsageForLicenseConfigurationCommand.js +1 -28
- package/dist-cjs/commands/RejectGrantCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateLicenseConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateLicenseManagerReportGeneratorCommand.js +1 -28
- package/dist-cjs/commands/UpdateLicenseSpecificationsForResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateServiceSettingsCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -53
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +4819 -10
- package/dist-cjs/models/LicenseManagerServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -401
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3240
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +39 -39
|
@@ -1,3240 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_UpdateServiceSettingsCommand = exports.se_UpdateLicenseSpecificationsForResourceCommand = exports.se_UpdateLicenseManagerReportGeneratorCommand = exports.se_UpdateLicenseConfigurationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RejectGrantCommand = exports.se_ListUsageForLicenseConfigurationCommand = exports.se_ListTokensCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourceInventoryCommand = exports.se_ListReceivedLicensesForOrganizationCommand = exports.se_ListReceivedLicensesCommand = exports.se_ListReceivedGrantsForOrganizationCommand = exports.se_ListReceivedGrantsCommand = exports.se_ListLicenseVersionsCommand = exports.se_ListLicenseSpecificationsForResourceCommand = exports.se_ListLicensesCommand = exports.se_ListLicenseManagerReportGeneratorsCommand = exports.se_ListLicenseConversionTasksCommand = exports.se_ListLicenseConfigurationsCommand = exports.se_ListFailuresForLicenseConfigurationOperationsCommand = exports.se_ListDistributedGrantsCommand = exports.se_ListAssociationsForLicenseConfigurationCommand = exports.se_GetServiceSettingsCommand = exports.se_GetLicenseUsageCommand = exports.se_GetLicenseManagerReportGeneratorCommand = exports.se_GetLicenseConversionTaskCommand = exports.se_GetLicenseConfigurationCommand = exports.se_GetLicenseCommand = exports.se_GetGrantCommand = exports.se_GetAccessTokenCommand = exports.se_ExtendLicenseConsumptionCommand = exports.se_DeleteTokenCommand = exports.se_DeleteLicenseManagerReportGeneratorCommand = exports.se_DeleteLicenseConfigurationCommand = exports.se_DeleteLicenseCommand = exports.se_DeleteGrantCommand = exports.se_CreateTokenCommand = exports.se_CreateLicenseVersionCommand = exports.se_CreateLicenseManagerReportGeneratorCommand = exports.se_CreateLicenseConversionTaskForResourceCommand = exports.se_CreateLicenseConfigurationCommand = exports.se_CreateLicenseCommand = exports.se_CreateGrantVersionCommand = exports.se_CreateGrantCommand = exports.se_CheckoutLicenseCommand = exports.se_CheckoutBorrowLicenseCommand = exports.se_CheckInLicenseCommand = exports.se_AcceptGrantCommand = void 0;
|
|
4
|
-
exports.de_UpdateServiceSettingsCommand = exports.de_UpdateLicenseSpecificationsForResourceCommand = exports.de_UpdateLicenseManagerReportGeneratorCommand = exports.de_UpdateLicenseConfigurationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RejectGrantCommand = exports.de_ListUsageForLicenseConfigurationCommand = exports.de_ListTokensCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourceInventoryCommand = exports.de_ListReceivedLicensesForOrganizationCommand = exports.de_ListReceivedLicensesCommand = exports.de_ListReceivedGrantsForOrganizationCommand = exports.de_ListReceivedGrantsCommand = exports.de_ListLicenseVersionsCommand = exports.de_ListLicenseSpecificationsForResourceCommand = exports.de_ListLicensesCommand = exports.de_ListLicenseManagerReportGeneratorsCommand = exports.de_ListLicenseConversionTasksCommand = exports.de_ListLicenseConfigurationsCommand = exports.de_ListFailuresForLicenseConfigurationOperationsCommand = exports.de_ListDistributedGrantsCommand = exports.de_ListAssociationsForLicenseConfigurationCommand = exports.de_GetServiceSettingsCommand = exports.de_GetLicenseUsageCommand = exports.de_GetLicenseManagerReportGeneratorCommand = exports.de_GetLicenseConversionTaskCommand = exports.de_GetLicenseConfigurationCommand = exports.de_GetLicenseCommand = exports.de_GetGrantCommand = exports.de_GetAccessTokenCommand = exports.de_ExtendLicenseConsumptionCommand = exports.de_DeleteTokenCommand = exports.de_DeleteLicenseManagerReportGeneratorCommand = exports.de_DeleteLicenseConfigurationCommand = exports.de_DeleteLicenseCommand = exports.de_DeleteGrantCommand = exports.de_CreateTokenCommand = exports.de_CreateLicenseVersionCommand = exports.de_CreateLicenseManagerReportGeneratorCommand = exports.de_CreateLicenseConversionTaskForResourceCommand = exports.de_CreateLicenseConfigurationCommand = exports.de_CreateLicenseCommand = exports.de_CreateGrantVersionCommand = exports.de_CreateGrantCommand = exports.de_CheckoutLicenseCommand = exports.de_CheckoutBorrowLicenseCommand = exports.de_CheckInLicenseCommand = exports.de_AcceptGrantCommand = void 0;
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const LicenseManagerServiceException_1 = require("../models/LicenseManagerServiceException");
|
|
8
|
-
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const se_AcceptGrantCommand = async (input, context) => {
|
|
10
|
-
const headers = sharedHeaders("AcceptGrant");
|
|
11
|
-
let body;
|
|
12
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
13
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
-
};
|
|
15
|
-
exports.se_AcceptGrantCommand = se_AcceptGrantCommand;
|
|
16
|
-
const se_CheckInLicenseCommand = async (input, context) => {
|
|
17
|
-
const headers = sharedHeaders("CheckInLicense");
|
|
18
|
-
let body;
|
|
19
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
20
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
21
|
-
};
|
|
22
|
-
exports.se_CheckInLicenseCommand = se_CheckInLicenseCommand;
|
|
23
|
-
const se_CheckoutBorrowLicenseCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("CheckoutBorrowLicense");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
|
-
exports.se_CheckoutBorrowLicenseCommand = se_CheckoutBorrowLicenseCommand;
|
|
30
|
-
const se_CheckoutLicenseCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("CheckoutLicense");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
exports.se_CheckoutLicenseCommand = se_CheckoutLicenseCommand;
|
|
37
|
-
const se_CreateGrantCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("CreateGrant");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
exports.se_CreateGrantCommand = se_CreateGrantCommand;
|
|
44
|
-
const se_CreateGrantVersionCommand = async (input, context) => {
|
|
45
|
-
const headers = sharedHeaders("CreateGrantVersion");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
48
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
49
|
-
};
|
|
50
|
-
exports.se_CreateGrantVersionCommand = se_CreateGrantVersionCommand;
|
|
51
|
-
const se_CreateLicenseCommand = async (input, context) => {
|
|
52
|
-
const headers = sharedHeaders("CreateLicense");
|
|
53
|
-
let body;
|
|
54
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
55
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
|
-
};
|
|
57
|
-
exports.se_CreateLicenseCommand = se_CreateLicenseCommand;
|
|
58
|
-
const se_CreateLicenseConfigurationCommand = async (input, context) => {
|
|
59
|
-
const headers = sharedHeaders("CreateLicenseConfiguration");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
62
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
63
|
-
};
|
|
64
|
-
exports.se_CreateLicenseConfigurationCommand = se_CreateLicenseConfigurationCommand;
|
|
65
|
-
const se_CreateLicenseConversionTaskForResourceCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("CreateLicenseConversionTaskForResource");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
exports.se_CreateLicenseConversionTaskForResourceCommand = se_CreateLicenseConversionTaskForResourceCommand;
|
|
72
|
-
const se_CreateLicenseManagerReportGeneratorCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("CreateLicenseManagerReportGenerator");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
exports.se_CreateLicenseManagerReportGeneratorCommand = se_CreateLicenseManagerReportGeneratorCommand;
|
|
79
|
-
const se_CreateLicenseVersionCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("CreateLicenseVersion");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
exports.se_CreateLicenseVersionCommand = se_CreateLicenseVersionCommand;
|
|
86
|
-
const se_CreateTokenCommand = async (input, context) => {
|
|
87
|
-
const headers = sharedHeaders("CreateToken");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
90
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
91
|
-
};
|
|
92
|
-
exports.se_CreateTokenCommand = se_CreateTokenCommand;
|
|
93
|
-
const se_DeleteGrantCommand = async (input, context) => {
|
|
94
|
-
const headers = sharedHeaders("DeleteGrant");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
-
};
|
|
99
|
-
exports.se_DeleteGrantCommand = se_DeleteGrantCommand;
|
|
100
|
-
const se_DeleteLicenseCommand = async (input, context) => {
|
|
101
|
-
const headers = sharedHeaders("DeleteLicense");
|
|
102
|
-
let body;
|
|
103
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
104
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
105
|
-
};
|
|
106
|
-
exports.se_DeleteLicenseCommand = se_DeleteLicenseCommand;
|
|
107
|
-
const se_DeleteLicenseConfigurationCommand = async (input, context) => {
|
|
108
|
-
const headers = sharedHeaders("DeleteLicenseConfiguration");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
exports.se_DeleteLicenseConfigurationCommand = se_DeleteLicenseConfigurationCommand;
|
|
114
|
-
const se_DeleteLicenseManagerReportGeneratorCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("DeleteLicenseManagerReportGenerator");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
exports.se_DeleteLicenseManagerReportGeneratorCommand = se_DeleteLicenseManagerReportGeneratorCommand;
|
|
121
|
-
const se_DeleteTokenCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("DeleteToken");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
exports.se_DeleteTokenCommand = se_DeleteTokenCommand;
|
|
128
|
-
const se_ExtendLicenseConsumptionCommand = async (input, context) => {
|
|
129
|
-
const headers = sharedHeaders("ExtendLicenseConsumption");
|
|
130
|
-
let body;
|
|
131
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
132
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
133
|
-
};
|
|
134
|
-
exports.se_ExtendLicenseConsumptionCommand = se_ExtendLicenseConsumptionCommand;
|
|
135
|
-
const se_GetAccessTokenCommand = async (input, context) => {
|
|
136
|
-
const headers = sharedHeaders("GetAccessToken");
|
|
137
|
-
let body;
|
|
138
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
139
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
-
};
|
|
141
|
-
exports.se_GetAccessTokenCommand = se_GetAccessTokenCommand;
|
|
142
|
-
const se_GetGrantCommand = async (input, context) => {
|
|
143
|
-
const headers = sharedHeaders("GetGrant");
|
|
144
|
-
let body;
|
|
145
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
146
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
147
|
-
};
|
|
148
|
-
exports.se_GetGrantCommand = se_GetGrantCommand;
|
|
149
|
-
const se_GetLicenseCommand = async (input, context) => {
|
|
150
|
-
const headers = sharedHeaders("GetLicense");
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
exports.se_GetLicenseCommand = se_GetLicenseCommand;
|
|
156
|
-
const se_GetLicenseConfigurationCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("GetLicenseConfiguration");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
exports.se_GetLicenseConfigurationCommand = se_GetLicenseConfigurationCommand;
|
|
163
|
-
const se_GetLicenseConversionTaskCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("GetLicenseConversionTask");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
exports.se_GetLicenseConversionTaskCommand = se_GetLicenseConversionTaskCommand;
|
|
170
|
-
const se_GetLicenseManagerReportGeneratorCommand = async (input, context) => {
|
|
171
|
-
const headers = sharedHeaders("GetLicenseManagerReportGenerator");
|
|
172
|
-
let body;
|
|
173
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
174
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
-
};
|
|
176
|
-
exports.se_GetLicenseManagerReportGeneratorCommand = se_GetLicenseManagerReportGeneratorCommand;
|
|
177
|
-
const se_GetLicenseUsageCommand = async (input, context) => {
|
|
178
|
-
const headers = sharedHeaders("GetLicenseUsage");
|
|
179
|
-
let body;
|
|
180
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
181
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
182
|
-
};
|
|
183
|
-
exports.se_GetLicenseUsageCommand = se_GetLicenseUsageCommand;
|
|
184
|
-
const se_GetServiceSettingsCommand = async (input, context) => {
|
|
185
|
-
const headers = sharedHeaders("GetServiceSettings");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
188
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
189
|
-
};
|
|
190
|
-
exports.se_GetServiceSettingsCommand = se_GetServiceSettingsCommand;
|
|
191
|
-
const se_ListAssociationsForLicenseConfigurationCommand = async (input, context) => {
|
|
192
|
-
const headers = sharedHeaders("ListAssociationsForLicenseConfiguration");
|
|
193
|
-
let body;
|
|
194
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
195
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
-
};
|
|
197
|
-
exports.se_ListAssociationsForLicenseConfigurationCommand = se_ListAssociationsForLicenseConfigurationCommand;
|
|
198
|
-
const se_ListDistributedGrantsCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("ListDistributedGrants");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
exports.se_ListDistributedGrantsCommand = se_ListDistributedGrantsCommand;
|
|
205
|
-
const se_ListFailuresForLicenseConfigurationOperationsCommand = async (input, context) => {
|
|
206
|
-
const headers = sharedHeaders("ListFailuresForLicenseConfigurationOperations");
|
|
207
|
-
let body;
|
|
208
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
209
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
210
|
-
};
|
|
211
|
-
exports.se_ListFailuresForLicenseConfigurationOperationsCommand = se_ListFailuresForLicenseConfigurationOperationsCommand;
|
|
212
|
-
const se_ListLicenseConfigurationsCommand = async (input, context) => {
|
|
213
|
-
const headers = sharedHeaders("ListLicenseConfigurations");
|
|
214
|
-
let body;
|
|
215
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
216
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
217
|
-
};
|
|
218
|
-
exports.se_ListLicenseConfigurationsCommand = se_ListLicenseConfigurationsCommand;
|
|
219
|
-
const se_ListLicenseConversionTasksCommand = async (input, context) => {
|
|
220
|
-
const headers = sharedHeaders("ListLicenseConversionTasks");
|
|
221
|
-
let body;
|
|
222
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
223
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
224
|
-
};
|
|
225
|
-
exports.se_ListLicenseConversionTasksCommand = se_ListLicenseConversionTasksCommand;
|
|
226
|
-
const se_ListLicenseManagerReportGeneratorsCommand = async (input, context) => {
|
|
227
|
-
const headers = sharedHeaders("ListLicenseManagerReportGenerators");
|
|
228
|
-
let body;
|
|
229
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
230
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
231
|
-
};
|
|
232
|
-
exports.se_ListLicenseManagerReportGeneratorsCommand = se_ListLicenseManagerReportGeneratorsCommand;
|
|
233
|
-
const se_ListLicensesCommand = async (input, context) => {
|
|
234
|
-
const headers = sharedHeaders("ListLicenses");
|
|
235
|
-
let body;
|
|
236
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
-
};
|
|
239
|
-
exports.se_ListLicensesCommand = se_ListLicensesCommand;
|
|
240
|
-
const se_ListLicenseSpecificationsForResourceCommand = async (input, context) => {
|
|
241
|
-
const headers = sharedHeaders("ListLicenseSpecificationsForResource");
|
|
242
|
-
let body;
|
|
243
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
244
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
-
};
|
|
246
|
-
exports.se_ListLicenseSpecificationsForResourceCommand = se_ListLicenseSpecificationsForResourceCommand;
|
|
247
|
-
const se_ListLicenseVersionsCommand = async (input, context) => {
|
|
248
|
-
const headers = sharedHeaders("ListLicenseVersions");
|
|
249
|
-
let body;
|
|
250
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
251
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
252
|
-
};
|
|
253
|
-
exports.se_ListLicenseVersionsCommand = se_ListLicenseVersionsCommand;
|
|
254
|
-
const se_ListReceivedGrantsCommand = async (input, context) => {
|
|
255
|
-
const headers = sharedHeaders("ListReceivedGrants");
|
|
256
|
-
let body;
|
|
257
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
258
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
259
|
-
};
|
|
260
|
-
exports.se_ListReceivedGrantsCommand = se_ListReceivedGrantsCommand;
|
|
261
|
-
const se_ListReceivedGrantsForOrganizationCommand = async (input, context) => {
|
|
262
|
-
const headers = sharedHeaders("ListReceivedGrantsForOrganization");
|
|
263
|
-
let body;
|
|
264
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
265
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
266
|
-
};
|
|
267
|
-
exports.se_ListReceivedGrantsForOrganizationCommand = se_ListReceivedGrantsForOrganizationCommand;
|
|
268
|
-
const se_ListReceivedLicensesCommand = async (input, context) => {
|
|
269
|
-
const headers = sharedHeaders("ListReceivedLicenses");
|
|
270
|
-
let body;
|
|
271
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
272
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
273
|
-
};
|
|
274
|
-
exports.se_ListReceivedLicensesCommand = se_ListReceivedLicensesCommand;
|
|
275
|
-
const se_ListReceivedLicensesForOrganizationCommand = async (input, context) => {
|
|
276
|
-
const headers = sharedHeaders("ListReceivedLicensesForOrganization");
|
|
277
|
-
let body;
|
|
278
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
279
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
|
-
};
|
|
281
|
-
exports.se_ListReceivedLicensesForOrganizationCommand = se_ListReceivedLicensesForOrganizationCommand;
|
|
282
|
-
const se_ListResourceInventoryCommand = async (input, context) => {
|
|
283
|
-
const headers = sharedHeaders("ListResourceInventory");
|
|
284
|
-
let body;
|
|
285
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
286
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
287
|
-
};
|
|
288
|
-
exports.se_ListResourceInventoryCommand = se_ListResourceInventoryCommand;
|
|
289
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
290
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
291
|
-
let body;
|
|
292
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
293
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
294
|
-
};
|
|
295
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
296
|
-
const se_ListTokensCommand = async (input, context) => {
|
|
297
|
-
const headers = sharedHeaders("ListTokens");
|
|
298
|
-
let body;
|
|
299
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
300
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
-
};
|
|
302
|
-
exports.se_ListTokensCommand = se_ListTokensCommand;
|
|
303
|
-
const se_ListUsageForLicenseConfigurationCommand = async (input, context) => {
|
|
304
|
-
const headers = sharedHeaders("ListUsageForLicenseConfiguration");
|
|
305
|
-
let body;
|
|
306
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
307
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
|
-
};
|
|
309
|
-
exports.se_ListUsageForLicenseConfigurationCommand = se_ListUsageForLicenseConfigurationCommand;
|
|
310
|
-
const se_RejectGrantCommand = async (input, context) => {
|
|
311
|
-
const headers = sharedHeaders("RejectGrant");
|
|
312
|
-
let body;
|
|
313
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
314
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
315
|
-
};
|
|
316
|
-
exports.se_RejectGrantCommand = se_RejectGrantCommand;
|
|
317
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
318
|
-
const headers = sharedHeaders("TagResource");
|
|
319
|
-
let body;
|
|
320
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
321
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
322
|
-
};
|
|
323
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
324
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
325
|
-
const headers = sharedHeaders("UntagResource");
|
|
326
|
-
let body;
|
|
327
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
328
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
|
-
};
|
|
330
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
331
|
-
const se_UpdateLicenseConfigurationCommand = async (input, context) => {
|
|
332
|
-
const headers = sharedHeaders("UpdateLicenseConfiguration");
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
335
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
336
|
-
};
|
|
337
|
-
exports.se_UpdateLicenseConfigurationCommand = se_UpdateLicenseConfigurationCommand;
|
|
338
|
-
const se_UpdateLicenseManagerReportGeneratorCommand = async (input, context) => {
|
|
339
|
-
const headers = sharedHeaders("UpdateLicenseManagerReportGenerator");
|
|
340
|
-
let body;
|
|
341
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
342
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
343
|
-
};
|
|
344
|
-
exports.se_UpdateLicenseManagerReportGeneratorCommand = se_UpdateLicenseManagerReportGeneratorCommand;
|
|
345
|
-
const se_UpdateLicenseSpecificationsForResourceCommand = async (input, context) => {
|
|
346
|
-
const headers = sharedHeaders("UpdateLicenseSpecificationsForResource");
|
|
347
|
-
let body;
|
|
348
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
349
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
350
|
-
};
|
|
351
|
-
exports.se_UpdateLicenseSpecificationsForResourceCommand = se_UpdateLicenseSpecificationsForResourceCommand;
|
|
352
|
-
const se_UpdateServiceSettingsCommand = async (input, context) => {
|
|
353
|
-
const headers = sharedHeaders("UpdateServiceSettings");
|
|
354
|
-
let body;
|
|
355
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
356
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
357
|
-
};
|
|
358
|
-
exports.se_UpdateServiceSettingsCommand = se_UpdateServiceSettingsCommand;
|
|
359
|
-
const de_AcceptGrantCommand = async (output, context) => {
|
|
360
|
-
if (output.statusCode >= 300) {
|
|
361
|
-
return de_AcceptGrantCommandError(output, context);
|
|
362
|
-
}
|
|
363
|
-
const data = await parseBody(output.body, context);
|
|
364
|
-
let contents = {};
|
|
365
|
-
contents = (0, smithy_client_1._json)(data);
|
|
366
|
-
const response = {
|
|
367
|
-
$metadata: deserializeMetadata(output),
|
|
368
|
-
...contents,
|
|
369
|
-
};
|
|
370
|
-
return response;
|
|
371
|
-
};
|
|
372
|
-
exports.de_AcceptGrantCommand = de_AcceptGrantCommand;
|
|
373
|
-
const de_AcceptGrantCommandError = async (output, context) => {
|
|
374
|
-
const parsedOutput = {
|
|
375
|
-
...output,
|
|
376
|
-
body: await parseErrorBody(output.body, context),
|
|
377
|
-
};
|
|
378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
379
|
-
switch (errorCode) {
|
|
380
|
-
case "AccessDeniedException":
|
|
381
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
382
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
383
|
-
case "AuthorizationException":
|
|
384
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
385
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
386
|
-
case "InvalidParameterValueException":
|
|
387
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
388
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
389
|
-
case "RateLimitExceededException":
|
|
390
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
391
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
392
|
-
case "ResourceLimitExceededException":
|
|
393
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
394
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
395
|
-
case "ServerInternalException":
|
|
396
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
397
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
398
|
-
case "ValidationException":
|
|
399
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
400
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
401
|
-
default:
|
|
402
|
-
const parsedBody = parsedOutput.body;
|
|
403
|
-
return throwDefaultError({
|
|
404
|
-
output,
|
|
405
|
-
parsedBody,
|
|
406
|
-
errorCode,
|
|
407
|
-
});
|
|
408
|
-
}
|
|
409
|
-
};
|
|
410
|
-
const de_CheckInLicenseCommand = async (output, context) => {
|
|
411
|
-
if (output.statusCode >= 300) {
|
|
412
|
-
return de_CheckInLicenseCommandError(output, context);
|
|
413
|
-
}
|
|
414
|
-
const data = await parseBody(output.body, context);
|
|
415
|
-
let contents = {};
|
|
416
|
-
contents = (0, smithy_client_1._json)(data);
|
|
417
|
-
const response = {
|
|
418
|
-
$metadata: deserializeMetadata(output),
|
|
419
|
-
...contents,
|
|
420
|
-
};
|
|
421
|
-
return response;
|
|
422
|
-
};
|
|
423
|
-
exports.de_CheckInLicenseCommand = de_CheckInLicenseCommand;
|
|
424
|
-
const de_CheckInLicenseCommandError = async (output, context) => {
|
|
425
|
-
const parsedOutput = {
|
|
426
|
-
...output,
|
|
427
|
-
body: await parseErrorBody(output.body, context),
|
|
428
|
-
};
|
|
429
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
430
|
-
switch (errorCode) {
|
|
431
|
-
case "AccessDeniedException":
|
|
432
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
433
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
434
|
-
case "AuthorizationException":
|
|
435
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
436
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
437
|
-
case "ConflictException":
|
|
438
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
439
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
440
|
-
case "InvalidParameterValueException":
|
|
441
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
442
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
443
|
-
case "RateLimitExceededException":
|
|
444
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
445
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
446
|
-
case "ResourceNotFoundException":
|
|
447
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
448
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
449
|
-
case "ServerInternalException":
|
|
450
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
451
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
452
|
-
case "ValidationException":
|
|
453
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
454
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
455
|
-
default:
|
|
456
|
-
const parsedBody = parsedOutput.body;
|
|
457
|
-
return throwDefaultError({
|
|
458
|
-
output,
|
|
459
|
-
parsedBody,
|
|
460
|
-
errorCode,
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
const de_CheckoutBorrowLicenseCommand = async (output, context) => {
|
|
465
|
-
if (output.statusCode >= 300) {
|
|
466
|
-
return de_CheckoutBorrowLicenseCommandError(output, context);
|
|
467
|
-
}
|
|
468
|
-
const data = await parseBody(output.body, context);
|
|
469
|
-
let contents = {};
|
|
470
|
-
contents = (0, smithy_client_1._json)(data);
|
|
471
|
-
const response = {
|
|
472
|
-
$metadata: deserializeMetadata(output),
|
|
473
|
-
...contents,
|
|
474
|
-
};
|
|
475
|
-
return response;
|
|
476
|
-
};
|
|
477
|
-
exports.de_CheckoutBorrowLicenseCommand = de_CheckoutBorrowLicenseCommand;
|
|
478
|
-
const de_CheckoutBorrowLicenseCommandError = async (output, context) => {
|
|
479
|
-
const parsedOutput = {
|
|
480
|
-
...output,
|
|
481
|
-
body: await parseErrorBody(output.body, context),
|
|
482
|
-
};
|
|
483
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
484
|
-
switch (errorCode) {
|
|
485
|
-
case "AccessDeniedException":
|
|
486
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
487
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
488
|
-
case "AuthorizationException":
|
|
489
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
490
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
491
|
-
case "EntitlementNotAllowedException":
|
|
492
|
-
case "com.amazonaws.licensemanager#EntitlementNotAllowedException":
|
|
493
|
-
throw await de_EntitlementNotAllowedExceptionRes(parsedOutput, context);
|
|
494
|
-
case "InvalidParameterValueException":
|
|
495
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
496
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
497
|
-
case "NoEntitlementsAllowedException":
|
|
498
|
-
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
499
|
-
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
500
|
-
case "RateLimitExceededException":
|
|
501
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
502
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
503
|
-
case "RedirectException":
|
|
504
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
505
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
506
|
-
case "ResourceNotFoundException":
|
|
507
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
508
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ServerInternalException":
|
|
510
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
511
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
512
|
-
case "UnsupportedDigitalSignatureMethodException":
|
|
513
|
-
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
514
|
-
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
515
|
-
case "ValidationException":
|
|
516
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
517
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
518
|
-
default:
|
|
519
|
-
const parsedBody = parsedOutput.body;
|
|
520
|
-
return throwDefaultError({
|
|
521
|
-
output,
|
|
522
|
-
parsedBody,
|
|
523
|
-
errorCode,
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
};
|
|
527
|
-
const de_CheckoutLicenseCommand = async (output, context) => {
|
|
528
|
-
if (output.statusCode >= 300) {
|
|
529
|
-
return de_CheckoutLicenseCommandError(output, context);
|
|
530
|
-
}
|
|
531
|
-
const data = await parseBody(output.body, context);
|
|
532
|
-
let contents = {};
|
|
533
|
-
contents = (0, smithy_client_1._json)(data);
|
|
534
|
-
const response = {
|
|
535
|
-
$metadata: deserializeMetadata(output),
|
|
536
|
-
...contents,
|
|
537
|
-
};
|
|
538
|
-
return response;
|
|
539
|
-
};
|
|
540
|
-
exports.de_CheckoutLicenseCommand = de_CheckoutLicenseCommand;
|
|
541
|
-
const de_CheckoutLicenseCommandError = async (output, context) => {
|
|
542
|
-
const parsedOutput = {
|
|
543
|
-
...output,
|
|
544
|
-
body: await parseErrorBody(output.body, context),
|
|
545
|
-
};
|
|
546
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
|
-
switch (errorCode) {
|
|
548
|
-
case "AccessDeniedException":
|
|
549
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
550
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
551
|
-
case "AuthorizationException":
|
|
552
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
553
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
554
|
-
case "InvalidParameterValueException":
|
|
555
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
556
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
557
|
-
case "NoEntitlementsAllowedException":
|
|
558
|
-
case "com.amazonaws.licensemanager#NoEntitlementsAllowedException":
|
|
559
|
-
throw await de_NoEntitlementsAllowedExceptionRes(parsedOutput, context);
|
|
560
|
-
case "RateLimitExceededException":
|
|
561
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
562
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
563
|
-
case "RedirectException":
|
|
564
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
565
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ResourceNotFoundException":
|
|
567
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
568
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ServerInternalException":
|
|
570
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
571
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
572
|
-
case "UnsupportedDigitalSignatureMethodException":
|
|
573
|
-
case "com.amazonaws.licensemanager#UnsupportedDigitalSignatureMethodException":
|
|
574
|
-
throw await de_UnsupportedDigitalSignatureMethodExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ValidationException":
|
|
576
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
578
|
-
default:
|
|
579
|
-
const parsedBody = parsedOutput.body;
|
|
580
|
-
return throwDefaultError({
|
|
581
|
-
output,
|
|
582
|
-
parsedBody,
|
|
583
|
-
errorCode,
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
const de_CreateGrantCommand = async (output, context) => {
|
|
588
|
-
if (output.statusCode >= 300) {
|
|
589
|
-
return de_CreateGrantCommandError(output, context);
|
|
590
|
-
}
|
|
591
|
-
const data = await parseBody(output.body, context);
|
|
592
|
-
let contents = {};
|
|
593
|
-
contents = (0, smithy_client_1._json)(data);
|
|
594
|
-
const response = {
|
|
595
|
-
$metadata: deserializeMetadata(output),
|
|
596
|
-
...contents,
|
|
597
|
-
};
|
|
598
|
-
return response;
|
|
599
|
-
};
|
|
600
|
-
exports.de_CreateGrantCommand = de_CreateGrantCommand;
|
|
601
|
-
const de_CreateGrantCommandError = async (output, context) => {
|
|
602
|
-
const parsedOutput = {
|
|
603
|
-
...output,
|
|
604
|
-
body: await parseErrorBody(output.body, context),
|
|
605
|
-
};
|
|
606
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
607
|
-
switch (errorCode) {
|
|
608
|
-
case "AccessDeniedException":
|
|
609
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
610
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
611
|
-
case "AuthorizationException":
|
|
612
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
613
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
614
|
-
case "InvalidParameterValueException":
|
|
615
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
616
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
617
|
-
case "RateLimitExceededException":
|
|
618
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
619
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
620
|
-
case "ResourceLimitExceededException":
|
|
621
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
622
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ServerInternalException":
|
|
624
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
625
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
626
|
-
case "ValidationException":
|
|
627
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
628
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
629
|
-
default:
|
|
630
|
-
const parsedBody = parsedOutput.body;
|
|
631
|
-
return throwDefaultError({
|
|
632
|
-
output,
|
|
633
|
-
parsedBody,
|
|
634
|
-
errorCode,
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
const de_CreateGrantVersionCommand = async (output, context) => {
|
|
639
|
-
if (output.statusCode >= 300) {
|
|
640
|
-
return de_CreateGrantVersionCommandError(output, context);
|
|
641
|
-
}
|
|
642
|
-
const data = await parseBody(output.body, context);
|
|
643
|
-
let contents = {};
|
|
644
|
-
contents = (0, smithy_client_1._json)(data);
|
|
645
|
-
const response = {
|
|
646
|
-
$metadata: deserializeMetadata(output),
|
|
647
|
-
...contents,
|
|
648
|
-
};
|
|
649
|
-
return response;
|
|
650
|
-
};
|
|
651
|
-
exports.de_CreateGrantVersionCommand = de_CreateGrantVersionCommand;
|
|
652
|
-
const de_CreateGrantVersionCommandError = async (output, context) => {
|
|
653
|
-
const parsedOutput = {
|
|
654
|
-
...output,
|
|
655
|
-
body: await parseErrorBody(output.body, context),
|
|
656
|
-
};
|
|
657
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
658
|
-
switch (errorCode) {
|
|
659
|
-
case "AccessDeniedException":
|
|
660
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
661
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
662
|
-
case "AuthorizationException":
|
|
663
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
664
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
665
|
-
case "InvalidParameterValueException":
|
|
666
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
667
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
668
|
-
case "RateLimitExceededException":
|
|
669
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
670
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
671
|
-
case "ResourceLimitExceededException":
|
|
672
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
673
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
674
|
-
case "ServerInternalException":
|
|
675
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
676
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
677
|
-
case "ValidationException":
|
|
678
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
679
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
680
|
-
default:
|
|
681
|
-
const parsedBody = parsedOutput.body;
|
|
682
|
-
return throwDefaultError({
|
|
683
|
-
output,
|
|
684
|
-
parsedBody,
|
|
685
|
-
errorCode,
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
};
|
|
689
|
-
const de_CreateLicenseCommand = async (output, context) => {
|
|
690
|
-
if (output.statusCode >= 300) {
|
|
691
|
-
return de_CreateLicenseCommandError(output, context);
|
|
692
|
-
}
|
|
693
|
-
const data = await parseBody(output.body, context);
|
|
694
|
-
let contents = {};
|
|
695
|
-
contents = (0, smithy_client_1._json)(data);
|
|
696
|
-
const response = {
|
|
697
|
-
$metadata: deserializeMetadata(output),
|
|
698
|
-
...contents,
|
|
699
|
-
};
|
|
700
|
-
return response;
|
|
701
|
-
};
|
|
702
|
-
exports.de_CreateLicenseCommand = de_CreateLicenseCommand;
|
|
703
|
-
const de_CreateLicenseCommandError = async (output, context) => {
|
|
704
|
-
const parsedOutput = {
|
|
705
|
-
...output,
|
|
706
|
-
body: await parseErrorBody(output.body, context),
|
|
707
|
-
};
|
|
708
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
-
switch (errorCode) {
|
|
710
|
-
case "AccessDeniedException":
|
|
711
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
712
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
713
|
-
case "AuthorizationException":
|
|
714
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
715
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
716
|
-
case "InvalidParameterValueException":
|
|
717
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
718
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
719
|
-
case "RateLimitExceededException":
|
|
720
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
721
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
722
|
-
case "RedirectException":
|
|
723
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
724
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
725
|
-
case "ServerInternalException":
|
|
726
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
727
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ValidationException":
|
|
729
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
730
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
|
-
default:
|
|
732
|
-
const parsedBody = parsedOutput.body;
|
|
733
|
-
return throwDefaultError({
|
|
734
|
-
output,
|
|
735
|
-
parsedBody,
|
|
736
|
-
errorCode,
|
|
737
|
-
});
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
const de_CreateLicenseConfigurationCommand = async (output, context) => {
|
|
741
|
-
if (output.statusCode >= 300) {
|
|
742
|
-
return de_CreateLicenseConfigurationCommandError(output, context);
|
|
743
|
-
}
|
|
744
|
-
const data = await parseBody(output.body, context);
|
|
745
|
-
let contents = {};
|
|
746
|
-
contents = (0, smithy_client_1._json)(data);
|
|
747
|
-
const response = {
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
...contents,
|
|
750
|
-
};
|
|
751
|
-
return response;
|
|
752
|
-
};
|
|
753
|
-
exports.de_CreateLicenseConfigurationCommand = de_CreateLicenseConfigurationCommand;
|
|
754
|
-
const de_CreateLicenseConfigurationCommandError = async (output, context) => {
|
|
755
|
-
const parsedOutput = {
|
|
756
|
-
...output,
|
|
757
|
-
body: await parseErrorBody(output.body, context),
|
|
758
|
-
};
|
|
759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
760
|
-
switch (errorCode) {
|
|
761
|
-
case "AccessDeniedException":
|
|
762
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
763
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
764
|
-
case "AuthorizationException":
|
|
765
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
766
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
767
|
-
case "InvalidParameterValueException":
|
|
768
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
769
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
770
|
-
case "RateLimitExceededException":
|
|
771
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
772
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ResourceLimitExceededException":
|
|
774
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
775
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ServerInternalException":
|
|
777
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
778
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
return throwDefaultError({
|
|
782
|
-
output,
|
|
783
|
-
parsedBody,
|
|
784
|
-
errorCode,
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
};
|
|
788
|
-
const de_CreateLicenseConversionTaskForResourceCommand = async (output, context) => {
|
|
789
|
-
if (output.statusCode >= 300) {
|
|
790
|
-
return de_CreateLicenseConversionTaskForResourceCommandError(output, context);
|
|
791
|
-
}
|
|
792
|
-
const data = await parseBody(output.body, context);
|
|
793
|
-
let contents = {};
|
|
794
|
-
contents = (0, smithy_client_1._json)(data);
|
|
795
|
-
const response = {
|
|
796
|
-
$metadata: deserializeMetadata(output),
|
|
797
|
-
...contents,
|
|
798
|
-
};
|
|
799
|
-
return response;
|
|
800
|
-
};
|
|
801
|
-
exports.de_CreateLicenseConversionTaskForResourceCommand = de_CreateLicenseConversionTaskForResourceCommand;
|
|
802
|
-
const de_CreateLicenseConversionTaskForResourceCommandError = async (output, context) => {
|
|
803
|
-
const parsedOutput = {
|
|
804
|
-
...output,
|
|
805
|
-
body: await parseErrorBody(output.body, context),
|
|
806
|
-
};
|
|
807
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
808
|
-
switch (errorCode) {
|
|
809
|
-
case "AccessDeniedException":
|
|
810
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
811
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
812
|
-
case "AuthorizationException":
|
|
813
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
814
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
815
|
-
case "InvalidParameterValueException":
|
|
816
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
817
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
818
|
-
case "RateLimitExceededException":
|
|
819
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
820
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
821
|
-
case "ServerInternalException":
|
|
822
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
823
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ValidationException":
|
|
825
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
826
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
827
|
-
default:
|
|
828
|
-
const parsedBody = parsedOutput.body;
|
|
829
|
-
return throwDefaultError({
|
|
830
|
-
output,
|
|
831
|
-
parsedBody,
|
|
832
|
-
errorCode,
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
|
-
const de_CreateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
837
|
-
if (output.statusCode >= 300) {
|
|
838
|
-
return de_CreateLicenseManagerReportGeneratorCommandError(output, context);
|
|
839
|
-
}
|
|
840
|
-
const data = await parseBody(output.body, context);
|
|
841
|
-
let contents = {};
|
|
842
|
-
contents = (0, smithy_client_1._json)(data);
|
|
843
|
-
const response = {
|
|
844
|
-
$metadata: deserializeMetadata(output),
|
|
845
|
-
...contents,
|
|
846
|
-
};
|
|
847
|
-
return response;
|
|
848
|
-
};
|
|
849
|
-
exports.de_CreateLicenseManagerReportGeneratorCommand = de_CreateLicenseManagerReportGeneratorCommand;
|
|
850
|
-
const de_CreateLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
851
|
-
const parsedOutput = {
|
|
852
|
-
...output,
|
|
853
|
-
body: await parseErrorBody(output.body, context),
|
|
854
|
-
};
|
|
855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
|
-
switch (errorCode) {
|
|
857
|
-
case "AccessDeniedException":
|
|
858
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
859
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
860
|
-
case "AuthorizationException":
|
|
861
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
862
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
863
|
-
case "InvalidParameterValueException":
|
|
864
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
865
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
866
|
-
case "RateLimitExceededException":
|
|
867
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
868
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
869
|
-
case "ResourceLimitExceededException":
|
|
870
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
871
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
872
|
-
case "ResourceNotFoundException":
|
|
873
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
874
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
875
|
-
case "ServerInternalException":
|
|
876
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
877
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ValidationException":
|
|
879
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
880
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
881
|
-
default:
|
|
882
|
-
const parsedBody = parsedOutput.body;
|
|
883
|
-
return throwDefaultError({
|
|
884
|
-
output,
|
|
885
|
-
parsedBody,
|
|
886
|
-
errorCode,
|
|
887
|
-
});
|
|
888
|
-
}
|
|
889
|
-
};
|
|
890
|
-
const de_CreateLicenseVersionCommand = async (output, context) => {
|
|
891
|
-
if (output.statusCode >= 300) {
|
|
892
|
-
return de_CreateLicenseVersionCommandError(output, context);
|
|
893
|
-
}
|
|
894
|
-
const data = await parseBody(output.body, context);
|
|
895
|
-
let contents = {};
|
|
896
|
-
contents = (0, smithy_client_1._json)(data);
|
|
897
|
-
const response = {
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
...contents,
|
|
900
|
-
};
|
|
901
|
-
return response;
|
|
902
|
-
};
|
|
903
|
-
exports.de_CreateLicenseVersionCommand = de_CreateLicenseVersionCommand;
|
|
904
|
-
const de_CreateLicenseVersionCommandError = async (output, context) => {
|
|
905
|
-
const parsedOutput = {
|
|
906
|
-
...output,
|
|
907
|
-
body: await parseErrorBody(output.body, context),
|
|
908
|
-
};
|
|
909
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
910
|
-
switch (errorCode) {
|
|
911
|
-
case "AccessDeniedException":
|
|
912
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
913
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
914
|
-
case "AuthorizationException":
|
|
915
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
916
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
917
|
-
case "ConflictException":
|
|
918
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
919
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
920
|
-
case "RateLimitExceededException":
|
|
921
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
922
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
923
|
-
case "RedirectException":
|
|
924
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
925
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
926
|
-
case "ResourceNotFoundException":
|
|
927
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
929
|
-
case "ServerInternalException":
|
|
930
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
931
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
932
|
-
case "ValidationException":
|
|
933
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
934
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
935
|
-
default:
|
|
936
|
-
const parsedBody = parsedOutput.body;
|
|
937
|
-
return throwDefaultError({
|
|
938
|
-
output,
|
|
939
|
-
parsedBody,
|
|
940
|
-
errorCode,
|
|
941
|
-
});
|
|
942
|
-
}
|
|
943
|
-
};
|
|
944
|
-
const de_CreateTokenCommand = async (output, context) => {
|
|
945
|
-
if (output.statusCode >= 300) {
|
|
946
|
-
return de_CreateTokenCommandError(output, context);
|
|
947
|
-
}
|
|
948
|
-
const data = await parseBody(output.body, context);
|
|
949
|
-
let contents = {};
|
|
950
|
-
contents = (0, smithy_client_1._json)(data);
|
|
951
|
-
const response = {
|
|
952
|
-
$metadata: deserializeMetadata(output),
|
|
953
|
-
...contents,
|
|
954
|
-
};
|
|
955
|
-
return response;
|
|
956
|
-
};
|
|
957
|
-
exports.de_CreateTokenCommand = de_CreateTokenCommand;
|
|
958
|
-
const de_CreateTokenCommandError = async (output, context) => {
|
|
959
|
-
const parsedOutput = {
|
|
960
|
-
...output,
|
|
961
|
-
body: await parseErrorBody(output.body, context),
|
|
962
|
-
};
|
|
963
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
|
-
switch (errorCode) {
|
|
965
|
-
case "AccessDeniedException":
|
|
966
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
967
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
968
|
-
case "AuthorizationException":
|
|
969
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
970
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
971
|
-
case "RateLimitExceededException":
|
|
972
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
973
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
974
|
-
case "RedirectException":
|
|
975
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
976
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
977
|
-
case "ResourceLimitExceededException":
|
|
978
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
979
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
980
|
-
case "ResourceNotFoundException":
|
|
981
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ServerInternalException":
|
|
984
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
985
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ValidationException":
|
|
987
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
988
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
989
|
-
default:
|
|
990
|
-
const parsedBody = parsedOutput.body;
|
|
991
|
-
return throwDefaultError({
|
|
992
|
-
output,
|
|
993
|
-
parsedBody,
|
|
994
|
-
errorCode,
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
};
|
|
998
|
-
const de_DeleteGrantCommand = async (output, context) => {
|
|
999
|
-
if (output.statusCode >= 300) {
|
|
1000
|
-
return de_DeleteGrantCommandError(output, context);
|
|
1001
|
-
}
|
|
1002
|
-
const data = await parseBody(output.body, context);
|
|
1003
|
-
let contents = {};
|
|
1004
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1005
|
-
const response = {
|
|
1006
|
-
$metadata: deserializeMetadata(output),
|
|
1007
|
-
...contents,
|
|
1008
|
-
};
|
|
1009
|
-
return response;
|
|
1010
|
-
};
|
|
1011
|
-
exports.de_DeleteGrantCommand = de_DeleteGrantCommand;
|
|
1012
|
-
const de_DeleteGrantCommandError = async (output, context) => {
|
|
1013
|
-
const parsedOutput = {
|
|
1014
|
-
...output,
|
|
1015
|
-
body: await parseErrorBody(output.body, context),
|
|
1016
|
-
};
|
|
1017
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1018
|
-
switch (errorCode) {
|
|
1019
|
-
case "AccessDeniedException":
|
|
1020
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1021
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1022
|
-
case "AuthorizationException":
|
|
1023
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1024
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1025
|
-
case "InvalidParameterValueException":
|
|
1026
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1027
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "RateLimitExceededException":
|
|
1029
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1030
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ResourceLimitExceededException":
|
|
1032
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1033
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ServerInternalException":
|
|
1035
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1036
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ValidationException":
|
|
1038
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1039
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1040
|
-
default:
|
|
1041
|
-
const parsedBody = parsedOutput.body;
|
|
1042
|
-
return throwDefaultError({
|
|
1043
|
-
output,
|
|
1044
|
-
parsedBody,
|
|
1045
|
-
errorCode,
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
};
|
|
1049
|
-
const de_DeleteLicenseCommand = async (output, context) => {
|
|
1050
|
-
if (output.statusCode >= 300) {
|
|
1051
|
-
return de_DeleteLicenseCommandError(output, context);
|
|
1052
|
-
}
|
|
1053
|
-
const data = await parseBody(output.body, context);
|
|
1054
|
-
let contents = {};
|
|
1055
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1056
|
-
const response = {
|
|
1057
|
-
$metadata: deserializeMetadata(output),
|
|
1058
|
-
...contents,
|
|
1059
|
-
};
|
|
1060
|
-
return response;
|
|
1061
|
-
};
|
|
1062
|
-
exports.de_DeleteLicenseCommand = de_DeleteLicenseCommand;
|
|
1063
|
-
const de_DeleteLicenseCommandError = async (output, context) => {
|
|
1064
|
-
const parsedOutput = {
|
|
1065
|
-
...output,
|
|
1066
|
-
body: await parseErrorBody(output.body, context),
|
|
1067
|
-
};
|
|
1068
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1069
|
-
switch (errorCode) {
|
|
1070
|
-
case "AccessDeniedException":
|
|
1071
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1072
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "AuthorizationException":
|
|
1074
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1075
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ConflictException":
|
|
1077
|
-
case "com.amazonaws.licensemanager#ConflictException":
|
|
1078
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "InvalidParameterValueException":
|
|
1080
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1081
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1082
|
-
case "RateLimitExceededException":
|
|
1083
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1084
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1085
|
-
case "RedirectException":
|
|
1086
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1087
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1088
|
-
case "ServerInternalException":
|
|
1089
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1090
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1091
|
-
case "ValidationException":
|
|
1092
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1093
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1094
|
-
default:
|
|
1095
|
-
const parsedBody = parsedOutput.body;
|
|
1096
|
-
return throwDefaultError({
|
|
1097
|
-
output,
|
|
1098
|
-
parsedBody,
|
|
1099
|
-
errorCode,
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
};
|
|
1103
|
-
const de_DeleteLicenseConfigurationCommand = async (output, context) => {
|
|
1104
|
-
if (output.statusCode >= 300) {
|
|
1105
|
-
return de_DeleteLicenseConfigurationCommandError(output, context);
|
|
1106
|
-
}
|
|
1107
|
-
const data = await parseBody(output.body, context);
|
|
1108
|
-
let contents = {};
|
|
1109
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1110
|
-
const response = {
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
...contents,
|
|
1113
|
-
};
|
|
1114
|
-
return response;
|
|
1115
|
-
};
|
|
1116
|
-
exports.de_DeleteLicenseConfigurationCommand = de_DeleteLicenseConfigurationCommand;
|
|
1117
|
-
const de_DeleteLicenseConfigurationCommandError = async (output, context) => {
|
|
1118
|
-
const parsedOutput = {
|
|
1119
|
-
...output,
|
|
1120
|
-
body: await parseErrorBody(output.body, context),
|
|
1121
|
-
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
-
switch (errorCode) {
|
|
1124
|
-
case "AccessDeniedException":
|
|
1125
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1126
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1127
|
-
case "AuthorizationException":
|
|
1128
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1129
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1130
|
-
case "InvalidParameterValueException":
|
|
1131
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1132
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1133
|
-
case "RateLimitExceededException":
|
|
1134
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1135
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1136
|
-
case "ServerInternalException":
|
|
1137
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1138
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1139
|
-
default:
|
|
1140
|
-
const parsedBody = parsedOutput.body;
|
|
1141
|
-
return throwDefaultError({
|
|
1142
|
-
output,
|
|
1143
|
-
parsedBody,
|
|
1144
|
-
errorCode,
|
|
1145
|
-
});
|
|
1146
|
-
}
|
|
1147
|
-
};
|
|
1148
|
-
const de_DeleteLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
1149
|
-
if (output.statusCode >= 300) {
|
|
1150
|
-
return de_DeleteLicenseManagerReportGeneratorCommandError(output, context);
|
|
1151
|
-
}
|
|
1152
|
-
const data = await parseBody(output.body, context);
|
|
1153
|
-
let contents = {};
|
|
1154
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1155
|
-
const response = {
|
|
1156
|
-
$metadata: deserializeMetadata(output),
|
|
1157
|
-
...contents,
|
|
1158
|
-
};
|
|
1159
|
-
return response;
|
|
1160
|
-
};
|
|
1161
|
-
exports.de_DeleteLicenseManagerReportGeneratorCommand = de_DeleteLicenseManagerReportGeneratorCommand;
|
|
1162
|
-
const de_DeleteLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
1163
|
-
const parsedOutput = {
|
|
1164
|
-
...output,
|
|
1165
|
-
body: await parseErrorBody(output.body, context),
|
|
1166
|
-
};
|
|
1167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
-
switch (errorCode) {
|
|
1169
|
-
case "AccessDeniedException":
|
|
1170
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1171
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1172
|
-
case "AuthorizationException":
|
|
1173
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1174
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1175
|
-
case "InvalidParameterValueException":
|
|
1176
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1177
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1178
|
-
case "RateLimitExceededException":
|
|
1179
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1180
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "ResourceLimitExceededException":
|
|
1182
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1183
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "ResourceNotFoundException":
|
|
1185
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1186
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ServerInternalException":
|
|
1188
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1189
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ValidationException":
|
|
1191
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1192
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1193
|
-
default:
|
|
1194
|
-
const parsedBody = parsedOutput.body;
|
|
1195
|
-
return throwDefaultError({
|
|
1196
|
-
output,
|
|
1197
|
-
parsedBody,
|
|
1198
|
-
errorCode,
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
|
-
const de_DeleteTokenCommand = async (output, context) => {
|
|
1203
|
-
if (output.statusCode >= 300) {
|
|
1204
|
-
return de_DeleteTokenCommandError(output, context);
|
|
1205
|
-
}
|
|
1206
|
-
const data = await parseBody(output.body, context);
|
|
1207
|
-
let contents = {};
|
|
1208
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1209
|
-
const response = {
|
|
1210
|
-
$metadata: deserializeMetadata(output),
|
|
1211
|
-
...contents,
|
|
1212
|
-
};
|
|
1213
|
-
return response;
|
|
1214
|
-
};
|
|
1215
|
-
exports.de_DeleteTokenCommand = de_DeleteTokenCommand;
|
|
1216
|
-
const de_DeleteTokenCommandError = async (output, context) => {
|
|
1217
|
-
const parsedOutput = {
|
|
1218
|
-
...output,
|
|
1219
|
-
body: await parseErrorBody(output.body, context),
|
|
1220
|
-
};
|
|
1221
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1222
|
-
switch (errorCode) {
|
|
1223
|
-
case "AccessDeniedException":
|
|
1224
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1225
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1226
|
-
case "AuthorizationException":
|
|
1227
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1228
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "RateLimitExceededException":
|
|
1230
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1231
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "RedirectException":
|
|
1233
|
-
case "com.amazonaws.licensemanager#RedirectException":
|
|
1234
|
-
throw await de_RedirectExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ResourceNotFoundException":
|
|
1236
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1237
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1238
|
-
case "ServerInternalException":
|
|
1239
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1240
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1241
|
-
case "ValidationException":
|
|
1242
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1243
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1244
|
-
default:
|
|
1245
|
-
const parsedBody = parsedOutput.body;
|
|
1246
|
-
return throwDefaultError({
|
|
1247
|
-
output,
|
|
1248
|
-
parsedBody,
|
|
1249
|
-
errorCode,
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
|
-
const de_ExtendLicenseConsumptionCommand = async (output, context) => {
|
|
1254
|
-
if (output.statusCode >= 300) {
|
|
1255
|
-
return de_ExtendLicenseConsumptionCommandError(output, context);
|
|
1256
|
-
}
|
|
1257
|
-
const data = await parseBody(output.body, context);
|
|
1258
|
-
let contents = {};
|
|
1259
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1260
|
-
const response = {
|
|
1261
|
-
$metadata: deserializeMetadata(output),
|
|
1262
|
-
...contents,
|
|
1263
|
-
};
|
|
1264
|
-
return response;
|
|
1265
|
-
};
|
|
1266
|
-
exports.de_ExtendLicenseConsumptionCommand = de_ExtendLicenseConsumptionCommand;
|
|
1267
|
-
const de_ExtendLicenseConsumptionCommandError = async (output, context) => {
|
|
1268
|
-
const parsedOutput = {
|
|
1269
|
-
...output,
|
|
1270
|
-
body: await parseErrorBody(output.body, context),
|
|
1271
|
-
};
|
|
1272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1273
|
-
switch (errorCode) {
|
|
1274
|
-
case "AccessDeniedException":
|
|
1275
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1276
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "AuthorizationException":
|
|
1278
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1279
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "InvalidParameterValueException":
|
|
1281
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1282
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "RateLimitExceededException":
|
|
1284
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1285
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1286
|
-
case "ResourceNotFoundException":
|
|
1287
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1288
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1289
|
-
case "ServerInternalException":
|
|
1290
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1291
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1292
|
-
case "ValidationException":
|
|
1293
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1294
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1295
|
-
default:
|
|
1296
|
-
const parsedBody = parsedOutput.body;
|
|
1297
|
-
return throwDefaultError({
|
|
1298
|
-
output,
|
|
1299
|
-
parsedBody,
|
|
1300
|
-
errorCode,
|
|
1301
|
-
});
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
const de_GetAccessTokenCommand = async (output, context) => {
|
|
1305
|
-
if (output.statusCode >= 300) {
|
|
1306
|
-
return de_GetAccessTokenCommandError(output, context);
|
|
1307
|
-
}
|
|
1308
|
-
const data = await parseBody(output.body, context);
|
|
1309
|
-
let contents = {};
|
|
1310
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1311
|
-
const response = {
|
|
1312
|
-
$metadata: deserializeMetadata(output),
|
|
1313
|
-
...contents,
|
|
1314
|
-
};
|
|
1315
|
-
return response;
|
|
1316
|
-
};
|
|
1317
|
-
exports.de_GetAccessTokenCommand = de_GetAccessTokenCommand;
|
|
1318
|
-
const de_GetAccessTokenCommandError = async (output, context) => {
|
|
1319
|
-
const parsedOutput = {
|
|
1320
|
-
...output,
|
|
1321
|
-
body: await parseErrorBody(output.body, context),
|
|
1322
|
-
};
|
|
1323
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1324
|
-
switch (errorCode) {
|
|
1325
|
-
case "AccessDeniedException":
|
|
1326
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1327
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1328
|
-
case "AuthorizationException":
|
|
1329
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1330
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1331
|
-
case "RateLimitExceededException":
|
|
1332
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1333
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1334
|
-
case "ServerInternalException":
|
|
1335
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1336
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ValidationException":
|
|
1338
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1340
|
-
default:
|
|
1341
|
-
const parsedBody = parsedOutput.body;
|
|
1342
|
-
return throwDefaultError({
|
|
1343
|
-
output,
|
|
1344
|
-
parsedBody,
|
|
1345
|
-
errorCode,
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
|
-
const de_GetGrantCommand = async (output, context) => {
|
|
1350
|
-
if (output.statusCode >= 300) {
|
|
1351
|
-
return de_GetGrantCommandError(output, context);
|
|
1352
|
-
}
|
|
1353
|
-
const data = await parseBody(output.body, context);
|
|
1354
|
-
let contents = {};
|
|
1355
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1356
|
-
const response = {
|
|
1357
|
-
$metadata: deserializeMetadata(output),
|
|
1358
|
-
...contents,
|
|
1359
|
-
};
|
|
1360
|
-
return response;
|
|
1361
|
-
};
|
|
1362
|
-
exports.de_GetGrantCommand = de_GetGrantCommand;
|
|
1363
|
-
const de_GetGrantCommandError = async (output, context) => {
|
|
1364
|
-
const parsedOutput = {
|
|
1365
|
-
...output,
|
|
1366
|
-
body: await parseErrorBody(output.body, context),
|
|
1367
|
-
};
|
|
1368
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1369
|
-
switch (errorCode) {
|
|
1370
|
-
case "AccessDeniedException":
|
|
1371
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1372
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1373
|
-
case "AuthorizationException":
|
|
1374
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1375
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1376
|
-
case "InvalidParameterValueException":
|
|
1377
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1378
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1379
|
-
case "RateLimitExceededException":
|
|
1380
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1381
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "ResourceLimitExceededException":
|
|
1383
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1384
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ServerInternalException":
|
|
1386
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1387
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "ValidationException":
|
|
1389
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1390
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1391
|
-
default:
|
|
1392
|
-
const parsedBody = parsedOutput.body;
|
|
1393
|
-
return throwDefaultError({
|
|
1394
|
-
output,
|
|
1395
|
-
parsedBody,
|
|
1396
|
-
errorCode,
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
const de_GetLicenseCommand = async (output, context) => {
|
|
1401
|
-
if (output.statusCode >= 300) {
|
|
1402
|
-
return de_GetLicenseCommandError(output, context);
|
|
1403
|
-
}
|
|
1404
|
-
const data = await parseBody(output.body, context);
|
|
1405
|
-
let contents = {};
|
|
1406
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1407
|
-
const response = {
|
|
1408
|
-
$metadata: deserializeMetadata(output),
|
|
1409
|
-
...contents,
|
|
1410
|
-
};
|
|
1411
|
-
return response;
|
|
1412
|
-
};
|
|
1413
|
-
exports.de_GetLicenseCommand = de_GetLicenseCommand;
|
|
1414
|
-
const de_GetLicenseCommandError = async (output, context) => {
|
|
1415
|
-
const parsedOutput = {
|
|
1416
|
-
...output,
|
|
1417
|
-
body: await parseErrorBody(output.body, context),
|
|
1418
|
-
};
|
|
1419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1420
|
-
switch (errorCode) {
|
|
1421
|
-
case "AccessDeniedException":
|
|
1422
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1423
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "AuthorizationException":
|
|
1425
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1426
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "InvalidParameterValueException":
|
|
1428
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1429
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "RateLimitExceededException":
|
|
1431
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1432
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ServerInternalException":
|
|
1434
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1435
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ValidationException":
|
|
1437
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1438
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1439
|
-
default:
|
|
1440
|
-
const parsedBody = parsedOutput.body;
|
|
1441
|
-
return throwDefaultError({
|
|
1442
|
-
output,
|
|
1443
|
-
parsedBody,
|
|
1444
|
-
errorCode,
|
|
1445
|
-
});
|
|
1446
|
-
}
|
|
1447
|
-
};
|
|
1448
|
-
const de_GetLicenseConfigurationCommand = async (output, context) => {
|
|
1449
|
-
if (output.statusCode >= 300) {
|
|
1450
|
-
return de_GetLicenseConfigurationCommandError(output, context);
|
|
1451
|
-
}
|
|
1452
|
-
const data = await parseBody(output.body, context);
|
|
1453
|
-
let contents = {};
|
|
1454
|
-
contents = de_GetLicenseConfigurationResponse(data, context);
|
|
1455
|
-
const response = {
|
|
1456
|
-
$metadata: deserializeMetadata(output),
|
|
1457
|
-
...contents,
|
|
1458
|
-
};
|
|
1459
|
-
return response;
|
|
1460
|
-
};
|
|
1461
|
-
exports.de_GetLicenseConfigurationCommand = de_GetLicenseConfigurationCommand;
|
|
1462
|
-
const de_GetLicenseConfigurationCommandError = async (output, context) => {
|
|
1463
|
-
const parsedOutput = {
|
|
1464
|
-
...output,
|
|
1465
|
-
body: await parseErrorBody(output.body, context),
|
|
1466
|
-
};
|
|
1467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1468
|
-
switch (errorCode) {
|
|
1469
|
-
case "AccessDeniedException":
|
|
1470
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1471
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1472
|
-
case "AuthorizationException":
|
|
1473
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1474
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1475
|
-
case "InvalidParameterValueException":
|
|
1476
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1477
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "RateLimitExceededException":
|
|
1479
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1480
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1481
|
-
case "ServerInternalException":
|
|
1482
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1483
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1484
|
-
default:
|
|
1485
|
-
const parsedBody = parsedOutput.body;
|
|
1486
|
-
return throwDefaultError({
|
|
1487
|
-
output,
|
|
1488
|
-
parsedBody,
|
|
1489
|
-
errorCode,
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
1492
|
-
};
|
|
1493
|
-
const de_GetLicenseConversionTaskCommand = async (output, context) => {
|
|
1494
|
-
if (output.statusCode >= 300) {
|
|
1495
|
-
return de_GetLicenseConversionTaskCommandError(output, context);
|
|
1496
|
-
}
|
|
1497
|
-
const data = await parseBody(output.body, context);
|
|
1498
|
-
let contents = {};
|
|
1499
|
-
contents = de_GetLicenseConversionTaskResponse(data, context);
|
|
1500
|
-
const response = {
|
|
1501
|
-
$metadata: deserializeMetadata(output),
|
|
1502
|
-
...contents,
|
|
1503
|
-
};
|
|
1504
|
-
return response;
|
|
1505
|
-
};
|
|
1506
|
-
exports.de_GetLicenseConversionTaskCommand = de_GetLicenseConversionTaskCommand;
|
|
1507
|
-
const de_GetLicenseConversionTaskCommandError = async (output, context) => {
|
|
1508
|
-
const parsedOutput = {
|
|
1509
|
-
...output,
|
|
1510
|
-
body: await parseErrorBody(output.body, context),
|
|
1511
|
-
};
|
|
1512
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
|
-
switch (errorCode) {
|
|
1514
|
-
case "AccessDeniedException":
|
|
1515
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1516
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1517
|
-
case "AuthorizationException":
|
|
1518
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1519
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1520
|
-
case "InvalidParameterValueException":
|
|
1521
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1522
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1523
|
-
case "RateLimitExceededException":
|
|
1524
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1525
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1526
|
-
case "ServerInternalException":
|
|
1527
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1528
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1529
|
-
default:
|
|
1530
|
-
const parsedBody = parsedOutput.body;
|
|
1531
|
-
return throwDefaultError({
|
|
1532
|
-
output,
|
|
1533
|
-
parsedBody,
|
|
1534
|
-
errorCode,
|
|
1535
|
-
});
|
|
1536
|
-
}
|
|
1537
|
-
};
|
|
1538
|
-
const de_GetLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
1539
|
-
if (output.statusCode >= 300) {
|
|
1540
|
-
return de_GetLicenseManagerReportGeneratorCommandError(output, context);
|
|
1541
|
-
}
|
|
1542
|
-
const data = await parseBody(output.body, context);
|
|
1543
|
-
let contents = {};
|
|
1544
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1545
|
-
const response = {
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
...contents,
|
|
1548
|
-
};
|
|
1549
|
-
return response;
|
|
1550
|
-
};
|
|
1551
|
-
exports.de_GetLicenseManagerReportGeneratorCommand = de_GetLicenseManagerReportGeneratorCommand;
|
|
1552
|
-
const de_GetLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
1553
|
-
const parsedOutput = {
|
|
1554
|
-
...output,
|
|
1555
|
-
body: await parseErrorBody(output.body, context),
|
|
1556
|
-
};
|
|
1557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1558
|
-
switch (errorCode) {
|
|
1559
|
-
case "AccessDeniedException":
|
|
1560
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1561
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1562
|
-
case "AuthorizationException":
|
|
1563
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1564
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1565
|
-
case "InvalidParameterValueException":
|
|
1566
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1567
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1568
|
-
case "RateLimitExceededException":
|
|
1569
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1570
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1571
|
-
case "ResourceLimitExceededException":
|
|
1572
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1573
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1574
|
-
case "ResourceNotFoundException":
|
|
1575
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1576
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1577
|
-
case "ServerInternalException":
|
|
1578
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1579
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "ValidationException":
|
|
1581
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1582
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1583
|
-
default:
|
|
1584
|
-
const parsedBody = parsedOutput.body;
|
|
1585
|
-
return throwDefaultError({
|
|
1586
|
-
output,
|
|
1587
|
-
parsedBody,
|
|
1588
|
-
errorCode,
|
|
1589
|
-
});
|
|
1590
|
-
}
|
|
1591
|
-
};
|
|
1592
|
-
const de_GetLicenseUsageCommand = async (output, context) => {
|
|
1593
|
-
if (output.statusCode >= 300) {
|
|
1594
|
-
return de_GetLicenseUsageCommandError(output, context);
|
|
1595
|
-
}
|
|
1596
|
-
const data = await parseBody(output.body, context);
|
|
1597
|
-
let contents = {};
|
|
1598
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1599
|
-
const response = {
|
|
1600
|
-
$metadata: deserializeMetadata(output),
|
|
1601
|
-
...contents,
|
|
1602
|
-
};
|
|
1603
|
-
return response;
|
|
1604
|
-
};
|
|
1605
|
-
exports.de_GetLicenseUsageCommand = de_GetLicenseUsageCommand;
|
|
1606
|
-
const de_GetLicenseUsageCommandError = async (output, context) => {
|
|
1607
|
-
const parsedOutput = {
|
|
1608
|
-
...output,
|
|
1609
|
-
body: await parseErrorBody(output.body, context),
|
|
1610
|
-
};
|
|
1611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1612
|
-
switch (errorCode) {
|
|
1613
|
-
case "AccessDeniedException":
|
|
1614
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1615
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1616
|
-
case "AuthorizationException":
|
|
1617
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1618
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1619
|
-
case "InvalidParameterValueException":
|
|
1620
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1621
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1622
|
-
case "RateLimitExceededException":
|
|
1623
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1624
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1625
|
-
case "ServerInternalException":
|
|
1626
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1627
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1628
|
-
case "ValidationException":
|
|
1629
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1630
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1631
|
-
default:
|
|
1632
|
-
const parsedBody = parsedOutput.body;
|
|
1633
|
-
return throwDefaultError({
|
|
1634
|
-
output,
|
|
1635
|
-
parsedBody,
|
|
1636
|
-
errorCode,
|
|
1637
|
-
});
|
|
1638
|
-
}
|
|
1639
|
-
};
|
|
1640
|
-
const de_GetServiceSettingsCommand = async (output, context) => {
|
|
1641
|
-
if (output.statusCode >= 300) {
|
|
1642
|
-
return de_GetServiceSettingsCommandError(output, context);
|
|
1643
|
-
}
|
|
1644
|
-
const data = await parseBody(output.body, context);
|
|
1645
|
-
let contents = {};
|
|
1646
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1647
|
-
const response = {
|
|
1648
|
-
$metadata: deserializeMetadata(output),
|
|
1649
|
-
...contents,
|
|
1650
|
-
};
|
|
1651
|
-
return response;
|
|
1652
|
-
};
|
|
1653
|
-
exports.de_GetServiceSettingsCommand = de_GetServiceSettingsCommand;
|
|
1654
|
-
const de_GetServiceSettingsCommandError = async (output, context) => {
|
|
1655
|
-
const parsedOutput = {
|
|
1656
|
-
...output,
|
|
1657
|
-
body: await parseErrorBody(output.body, context),
|
|
1658
|
-
};
|
|
1659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1660
|
-
switch (errorCode) {
|
|
1661
|
-
case "AccessDeniedException":
|
|
1662
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1663
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1664
|
-
case "AuthorizationException":
|
|
1665
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1666
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "RateLimitExceededException":
|
|
1668
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1669
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1670
|
-
case "ServerInternalException":
|
|
1671
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1672
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1673
|
-
default:
|
|
1674
|
-
const parsedBody = parsedOutput.body;
|
|
1675
|
-
return throwDefaultError({
|
|
1676
|
-
output,
|
|
1677
|
-
parsedBody,
|
|
1678
|
-
errorCode,
|
|
1679
|
-
});
|
|
1680
|
-
}
|
|
1681
|
-
};
|
|
1682
|
-
const de_ListAssociationsForLicenseConfigurationCommand = async (output, context) => {
|
|
1683
|
-
if (output.statusCode >= 300) {
|
|
1684
|
-
return de_ListAssociationsForLicenseConfigurationCommandError(output, context);
|
|
1685
|
-
}
|
|
1686
|
-
const data = await parseBody(output.body, context);
|
|
1687
|
-
let contents = {};
|
|
1688
|
-
contents = de_ListAssociationsForLicenseConfigurationResponse(data, context);
|
|
1689
|
-
const response = {
|
|
1690
|
-
$metadata: deserializeMetadata(output),
|
|
1691
|
-
...contents,
|
|
1692
|
-
};
|
|
1693
|
-
return response;
|
|
1694
|
-
};
|
|
1695
|
-
exports.de_ListAssociationsForLicenseConfigurationCommand = de_ListAssociationsForLicenseConfigurationCommand;
|
|
1696
|
-
const de_ListAssociationsForLicenseConfigurationCommandError = async (output, context) => {
|
|
1697
|
-
const parsedOutput = {
|
|
1698
|
-
...output,
|
|
1699
|
-
body: await parseErrorBody(output.body, context),
|
|
1700
|
-
};
|
|
1701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1702
|
-
switch (errorCode) {
|
|
1703
|
-
case "AccessDeniedException":
|
|
1704
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1705
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1706
|
-
case "AuthorizationException":
|
|
1707
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1708
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1709
|
-
case "FilterLimitExceededException":
|
|
1710
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
1711
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
1712
|
-
case "InvalidParameterValueException":
|
|
1713
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1714
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1715
|
-
case "RateLimitExceededException":
|
|
1716
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1717
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1718
|
-
case "ServerInternalException":
|
|
1719
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1720
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1721
|
-
default:
|
|
1722
|
-
const parsedBody = parsedOutput.body;
|
|
1723
|
-
return throwDefaultError({
|
|
1724
|
-
output,
|
|
1725
|
-
parsedBody,
|
|
1726
|
-
errorCode,
|
|
1727
|
-
});
|
|
1728
|
-
}
|
|
1729
|
-
};
|
|
1730
|
-
const de_ListDistributedGrantsCommand = async (output, context) => {
|
|
1731
|
-
if (output.statusCode >= 300) {
|
|
1732
|
-
return de_ListDistributedGrantsCommandError(output, context);
|
|
1733
|
-
}
|
|
1734
|
-
const data = await parseBody(output.body, context);
|
|
1735
|
-
let contents = {};
|
|
1736
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1737
|
-
const response = {
|
|
1738
|
-
$metadata: deserializeMetadata(output),
|
|
1739
|
-
...contents,
|
|
1740
|
-
};
|
|
1741
|
-
return response;
|
|
1742
|
-
};
|
|
1743
|
-
exports.de_ListDistributedGrantsCommand = de_ListDistributedGrantsCommand;
|
|
1744
|
-
const de_ListDistributedGrantsCommandError = async (output, context) => {
|
|
1745
|
-
const parsedOutput = {
|
|
1746
|
-
...output,
|
|
1747
|
-
body: await parseErrorBody(output.body, context),
|
|
1748
|
-
};
|
|
1749
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1750
|
-
switch (errorCode) {
|
|
1751
|
-
case "AccessDeniedException":
|
|
1752
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1753
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1754
|
-
case "AuthorizationException":
|
|
1755
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1756
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1757
|
-
case "InvalidParameterValueException":
|
|
1758
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1759
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1760
|
-
case "RateLimitExceededException":
|
|
1761
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1762
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1763
|
-
case "ResourceLimitExceededException":
|
|
1764
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1765
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1766
|
-
case "ServerInternalException":
|
|
1767
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1768
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1769
|
-
case "ValidationException":
|
|
1770
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1771
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1772
|
-
default:
|
|
1773
|
-
const parsedBody = parsedOutput.body;
|
|
1774
|
-
return throwDefaultError({
|
|
1775
|
-
output,
|
|
1776
|
-
parsedBody,
|
|
1777
|
-
errorCode,
|
|
1778
|
-
});
|
|
1779
|
-
}
|
|
1780
|
-
};
|
|
1781
|
-
const de_ListFailuresForLicenseConfigurationOperationsCommand = async (output, context) => {
|
|
1782
|
-
if (output.statusCode >= 300) {
|
|
1783
|
-
return de_ListFailuresForLicenseConfigurationOperationsCommandError(output, context);
|
|
1784
|
-
}
|
|
1785
|
-
const data = await parseBody(output.body, context);
|
|
1786
|
-
let contents = {};
|
|
1787
|
-
contents = de_ListFailuresForLicenseConfigurationOperationsResponse(data, context);
|
|
1788
|
-
const response = {
|
|
1789
|
-
$metadata: deserializeMetadata(output),
|
|
1790
|
-
...contents,
|
|
1791
|
-
};
|
|
1792
|
-
return response;
|
|
1793
|
-
};
|
|
1794
|
-
exports.de_ListFailuresForLicenseConfigurationOperationsCommand = de_ListFailuresForLicenseConfigurationOperationsCommand;
|
|
1795
|
-
const de_ListFailuresForLicenseConfigurationOperationsCommandError = async (output, context) => {
|
|
1796
|
-
const parsedOutput = {
|
|
1797
|
-
...output,
|
|
1798
|
-
body: await parseErrorBody(output.body, context),
|
|
1799
|
-
};
|
|
1800
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1801
|
-
switch (errorCode) {
|
|
1802
|
-
case "AccessDeniedException":
|
|
1803
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1804
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1805
|
-
case "AuthorizationException":
|
|
1806
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1807
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1808
|
-
case "InvalidParameterValueException":
|
|
1809
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1810
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1811
|
-
case "RateLimitExceededException":
|
|
1812
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1813
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1814
|
-
case "ServerInternalException":
|
|
1815
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1816
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1817
|
-
default:
|
|
1818
|
-
const parsedBody = parsedOutput.body;
|
|
1819
|
-
return throwDefaultError({
|
|
1820
|
-
output,
|
|
1821
|
-
parsedBody,
|
|
1822
|
-
errorCode,
|
|
1823
|
-
});
|
|
1824
|
-
}
|
|
1825
|
-
};
|
|
1826
|
-
const de_ListLicenseConfigurationsCommand = async (output, context) => {
|
|
1827
|
-
if (output.statusCode >= 300) {
|
|
1828
|
-
return de_ListLicenseConfigurationsCommandError(output, context);
|
|
1829
|
-
}
|
|
1830
|
-
const data = await parseBody(output.body, context);
|
|
1831
|
-
let contents = {};
|
|
1832
|
-
contents = de_ListLicenseConfigurationsResponse(data, context);
|
|
1833
|
-
const response = {
|
|
1834
|
-
$metadata: deserializeMetadata(output),
|
|
1835
|
-
...contents,
|
|
1836
|
-
};
|
|
1837
|
-
return response;
|
|
1838
|
-
};
|
|
1839
|
-
exports.de_ListLicenseConfigurationsCommand = de_ListLicenseConfigurationsCommand;
|
|
1840
|
-
const de_ListLicenseConfigurationsCommandError = async (output, context) => {
|
|
1841
|
-
const parsedOutput = {
|
|
1842
|
-
...output,
|
|
1843
|
-
body: await parseErrorBody(output.body, context),
|
|
1844
|
-
};
|
|
1845
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1846
|
-
switch (errorCode) {
|
|
1847
|
-
case "AccessDeniedException":
|
|
1848
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1849
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1850
|
-
case "AuthorizationException":
|
|
1851
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1852
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1853
|
-
case "FilterLimitExceededException":
|
|
1854
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
1855
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
1856
|
-
case "InvalidParameterValueException":
|
|
1857
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1858
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1859
|
-
case "RateLimitExceededException":
|
|
1860
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1861
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1862
|
-
case "ServerInternalException":
|
|
1863
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1864
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1865
|
-
default:
|
|
1866
|
-
const parsedBody = parsedOutput.body;
|
|
1867
|
-
return throwDefaultError({
|
|
1868
|
-
output,
|
|
1869
|
-
parsedBody,
|
|
1870
|
-
errorCode,
|
|
1871
|
-
});
|
|
1872
|
-
}
|
|
1873
|
-
};
|
|
1874
|
-
const de_ListLicenseConversionTasksCommand = async (output, context) => {
|
|
1875
|
-
if (output.statusCode >= 300) {
|
|
1876
|
-
return de_ListLicenseConversionTasksCommandError(output, context);
|
|
1877
|
-
}
|
|
1878
|
-
const data = await parseBody(output.body, context);
|
|
1879
|
-
let contents = {};
|
|
1880
|
-
contents = de_ListLicenseConversionTasksResponse(data, context);
|
|
1881
|
-
const response = {
|
|
1882
|
-
$metadata: deserializeMetadata(output),
|
|
1883
|
-
...contents,
|
|
1884
|
-
};
|
|
1885
|
-
return response;
|
|
1886
|
-
};
|
|
1887
|
-
exports.de_ListLicenseConversionTasksCommand = de_ListLicenseConversionTasksCommand;
|
|
1888
|
-
const de_ListLicenseConversionTasksCommandError = async (output, context) => {
|
|
1889
|
-
const parsedOutput = {
|
|
1890
|
-
...output,
|
|
1891
|
-
body: await parseErrorBody(output.body, context),
|
|
1892
|
-
};
|
|
1893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1894
|
-
switch (errorCode) {
|
|
1895
|
-
case "AccessDeniedException":
|
|
1896
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1897
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1898
|
-
case "AuthorizationException":
|
|
1899
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1900
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1901
|
-
case "InvalidParameterValueException":
|
|
1902
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1903
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1904
|
-
case "RateLimitExceededException":
|
|
1905
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1906
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1907
|
-
case "ServerInternalException":
|
|
1908
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1909
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1910
|
-
default:
|
|
1911
|
-
const parsedBody = parsedOutput.body;
|
|
1912
|
-
return throwDefaultError({
|
|
1913
|
-
output,
|
|
1914
|
-
parsedBody,
|
|
1915
|
-
errorCode,
|
|
1916
|
-
});
|
|
1917
|
-
}
|
|
1918
|
-
};
|
|
1919
|
-
const de_ListLicenseManagerReportGeneratorsCommand = async (output, context) => {
|
|
1920
|
-
if (output.statusCode >= 300) {
|
|
1921
|
-
return de_ListLicenseManagerReportGeneratorsCommandError(output, context);
|
|
1922
|
-
}
|
|
1923
|
-
const data = await parseBody(output.body, context);
|
|
1924
|
-
let contents = {};
|
|
1925
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1926
|
-
const response = {
|
|
1927
|
-
$metadata: deserializeMetadata(output),
|
|
1928
|
-
...contents,
|
|
1929
|
-
};
|
|
1930
|
-
return response;
|
|
1931
|
-
};
|
|
1932
|
-
exports.de_ListLicenseManagerReportGeneratorsCommand = de_ListLicenseManagerReportGeneratorsCommand;
|
|
1933
|
-
const de_ListLicenseManagerReportGeneratorsCommandError = async (output, context) => {
|
|
1934
|
-
const parsedOutput = {
|
|
1935
|
-
...output,
|
|
1936
|
-
body: await parseErrorBody(output.body, context),
|
|
1937
|
-
};
|
|
1938
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1939
|
-
switch (errorCode) {
|
|
1940
|
-
case "AccessDeniedException":
|
|
1941
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1942
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1943
|
-
case "AuthorizationException":
|
|
1944
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1945
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
1946
|
-
case "InvalidParameterValueException":
|
|
1947
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
1948
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1949
|
-
case "RateLimitExceededException":
|
|
1950
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
1951
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
1952
|
-
case "ResourceLimitExceededException":
|
|
1953
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
1954
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
1955
|
-
case "ResourceNotFoundException":
|
|
1956
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
1957
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1958
|
-
case "ServerInternalException":
|
|
1959
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
1960
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
1961
|
-
case "ValidationException":
|
|
1962
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
1963
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1964
|
-
default:
|
|
1965
|
-
const parsedBody = parsedOutput.body;
|
|
1966
|
-
return throwDefaultError({
|
|
1967
|
-
output,
|
|
1968
|
-
parsedBody,
|
|
1969
|
-
errorCode,
|
|
1970
|
-
});
|
|
1971
|
-
}
|
|
1972
|
-
};
|
|
1973
|
-
const de_ListLicensesCommand = async (output, context) => {
|
|
1974
|
-
if (output.statusCode >= 300) {
|
|
1975
|
-
return de_ListLicensesCommandError(output, context);
|
|
1976
|
-
}
|
|
1977
|
-
const data = await parseBody(output.body, context);
|
|
1978
|
-
let contents = {};
|
|
1979
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1980
|
-
const response = {
|
|
1981
|
-
$metadata: deserializeMetadata(output),
|
|
1982
|
-
...contents,
|
|
1983
|
-
};
|
|
1984
|
-
return response;
|
|
1985
|
-
};
|
|
1986
|
-
exports.de_ListLicensesCommand = de_ListLicensesCommand;
|
|
1987
|
-
const de_ListLicensesCommandError = async (output, context) => {
|
|
1988
|
-
const parsedOutput = {
|
|
1989
|
-
...output,
|
|
1990
|
-
body: await parseErrorBody(output.body, context),
|
|
1991
|
-
};
|
|
1992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1993
|
-
switch (errorCode) {
|
|
1994
|
-
case "AccessDeniedException":
|
|
1995
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
1996
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1997
|
-
case "AuthorizationException":
|
|
1998
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
1999
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2000
|
-
case "InvalidParameterValueException":
|
|
2001
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2002
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2003
|
-
case "RateLimitExceededException":
|
|
2004
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2005
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ServerInternalException":
|
|
2007
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2008
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "ValidationException":
|
|
2010
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2011
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2012
|
-
default:
|
|
2013
|
-
const parsedBody = parsedOutput.body;
|
|
2014
|
-
return throwDefaultError({
|
|
2015
|
-
output,
|
|
2016
|
-
parsedBody,
|
|
2017
|
-
errorCode,
|
|
2018
|
-
});
|
|
2019
|
-
}
|
|
2020
|
-
};
|
|
2021
|
-
const de_ListLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
2022
|
-
if (output.statusCode >= 300) {
|
|
2023
|
-
return de_ListLicenseSpecificationsForResourceCommandError(output, context);
|
|
2024
|
-
}
|
|
2025
|
-
const data = await parseBody(output.body, context);
|
|
2026
|
-
let contents = {};
|
|
2027
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2028
|
-
const response = {
|
|
2029
|
-
$metadata: deserializeMetadata(output),
|
|
2030
|
-
...contents,
|
|
2031
|
-
};
|
|
2032
|
-
return response;
|
|
2033
|
-
};
|
|
2034
|
-
exports.de_ListLicenseSpecificationsForResourceCommand = de_ListLicenseSpecificationsForResourceCommand;
|
|
2035
|
-
const de_ListLicenseSpecificationsForResourceCommandError = async (output, context) => {
|
|
2036
|
-
const parsedOutput = {
|
|
2037
|
-
...output,
|
|
2038
|
-
body: await parseErrorBody(output.body, context),
|
|
2039
|
-
};
|
|
2040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
|
-
switch (errorCode) {
|
|
2042
|
-
case "AccessDeniedException":
|
|
2043
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2044
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "AuthorizationException":
|
|
2046
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2047
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "InvalidParameterValueException":
|
|
2049
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2050
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "RateLimitExceededException":
|
|
2052
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2053
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2054
|
-
case "ServerInternalException":
|
|
2055
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2056
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2057
|
-
default:
|
|
2058
|
-
const parsedBody = parsedOutput.body;
|
|
2059
|
-
return throwDefaultError({
|
|
2060
|
-
output,
|
|
2061
|
-
parsedBody,
|
|
2062
|
-
errorCode,
|
|
2063
|
-
});
|
|
2064
|
-
}
|
|
2065
|
-
};
|
|
2066
|
-
const de_ListLicenseVersionsCommand = async (output, context) => {
|
|
2067
|
-
if (output.statusCode >= 300) {
|
|
2068
|
-
return de_ListLicenseVersionsCommandError(output, context);
|
|
2069
|
-
}
|
|
2070
|
-
const data = await parseBody(output.body, context);
|
|
2071
|
-
let contents = {};
|
|
2072
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2073
|
-
const response = {
|
|
2074
|
-
$metadata: deserializeMetadata(output),
|
|
2075
|
-
...contents,
|
|
2076
|
-
};
|
|
2077
|
-
return response;
|
|
2078
|
-
};
|
|
2079
|
-
exports.de_ListLicenseVersionsCommand = de_ListLicenseVersionsCommand;
|
|
2080
|
-
const de_ListLicenseVersionsCommandError = async (output, context) => {
|
|
2081
|
-
const parsedOutput = {
|
|
2082
|
-
...output,
|
|
2083
|
-
body: await parseErrorBody(output.body, context),
|
|
2084
|
-
};
|
|
2085
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
|
-
switch (errorCode) {
|
|
2087
|
-
case "AccessDeniedException":
|
|
2088
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2089
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "AuthorizationException":
|
|
2091
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2092
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "InvalidParameterValueException":
|
|
2094
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2095
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "RateLimitExceededException":
|
|
2097
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2098
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "ServerInternalException":
|
|
2100
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2101
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2102
|
-
default:
|
|
2103
|
-
const parsedBody = parsedOutput.body;
|
|
2104
|
-
return throwDefaultError({
|
|
2105
|
-
output,
|
|
2106
|
-
parsedBody,
|
|
2107
|
-
errorCode,
|
|
2108
|
-
});
|
|
2109
|
-
}
|
|
2110
|
-
};
|
|
2111
|
-
const de_ListReceivedGrantsCommand = async (output, context) => {
|
|
2112
|
-
if (output.statusCode >= 300) {
|
|
2113
|
-
return de_ListReceivedGrantsCommandError(output, context);
|
|
2114
|
-
}
|
|
2115
|
-
const data = await parseBody(output.body, context);
|
|
2116
|
-
let contents = {};
|
|
2117
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2118
|
-
const response = {
|
|
2119
|
-
$metadata: deserializeMetadata(output),
|
|
2120
|
-
...contents,
|
|
2121
|
-
};
|
|
2122
|
-
return response;
|
|
2123
|
-
};
|
|
2124
|
-
exports.de_ListReceivedGrantsCommand = de_ListReceivedGrantsCommand;
|
|
2125
|
-
const de_ListReceivedGrantsCommandError = async (output, context) => {
|
|
2126
|
-
const parsedOutput = {
|
|
2127
|
-
...output,
|
|
2128
|
-
body: await parseErrorBody(output.body, context),
|
|
2129
|
-
};
|
|
2130
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2131
|
-
switch (errorCode) {
|
|
2132
|
-
case "AccessDeniedException":
|
|
2133
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2134
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "AuthorizationException":
|
|
2136
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2137
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "InvalidParameterValueException":
|
|
2139
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2140
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "RateLimitExceededException":
|
|
2142
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2143
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2144
|
-
case "ResourceLimitExceededException":
|
|
2145
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2146
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "ServerInternalException":
|
|
2148
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2149
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "ValidationException":
|
|
2151
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2152
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2153
|
-
default:
|
|
2154
|
-
const parsedBody = parsedOutput.body;
|
|
2155
|
-
return throwDefaultError({
|
|
2156
|
-
output,
|
|
2157
|
-
parsedBody,
|
|
2158
|
-
errorCode,
|
|
2159
|
-
});
|
|
2160
|
-
}
|
|
2161
|
-
};
|
|
2162
|
-
const de_ListReceivedGrantsForOrganizationCommand = async (output, context) => {
|
|
2163
|
-
if (output.statusCode >= 300) {
|
|
2164
|
-
return de_ListReceivedGrantsForOrganizationCommandError(output, context);
|
|
2165
|
-
}
|
|
2166
|
-
const data = await parseBody(output.body, context);
|
|
2167
|
-
let contents = {};
|
|
2168
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2169
|
-
const response = {
|
|
2170
|
-
$metadata: deserializeMetadata(output),
|
|
2171
|
-
...contents,
|
|
2172
|
-
};
|
|
2173
|
-
return response;
|
|
2174
|
-
};
|
|
2175
|
-
exports.de_ListReceivedGrantsForOrganizationCommand = de_ListReceivedGrantsForOrganizationCommand;
|
|
2176
|
-
const de_ListReceivedGrantsForOrganizationCommandError = async (output, context) => {
|
|
2177
|
-
const parsedOutput = {
|
|
2178
|
-
...output,
|
|
2179
|
-
body: await parseErrorBody(output.body, context),
|
|
2180
|
-
};
|
|
2181
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2182
|
-
switch (errorCode) {
|
|
2183
|
-
case "AccessDeniedException":
|
|
2184
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2185
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2186
|
-
case "AuthorizationException":
|
|
2187
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2188
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2189
|
-
case "InvalidParameterValueException":
|
|
2190
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2191
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2192
|
-
case "RateLimitExceededException":
|
|
2193
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2194
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2195
|
-
case "ResourceLimitExceededException":
|
|
2196
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2197
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2198
|
-
case "ServerInternalException":
|
|
2199
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2200
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2201
|
-
case "ValidationException":
|
|
2202
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2203
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2204
|
-
default:
|
|
2205
|
-
const parsedBody = parsedOutput.body;
|
|
2206
|
-
return throwDefaultError({
|
|
2207
|
-
output,
|
|
2208
|
-
parsedBody,
|
|
2209
|
-
errorCode,
|
|
2210
|
-
});
|
|
2211
|
-
}
|
|
2212
|
-
};
|
|
2213
|
-
const de_ListReceivedLicensesCommand = async (output, context) => {
|
|
2214
|
-
if (output.statusCode >= 300) {
|
|
2215
|
-
return de_ListReceivedLicensesCommandError(output, context);
|
|
2216
|
-
}
|
|
2217
|
-
const data = await parseBody(output.body, context);
|
|
2218
|
-
let contents = {};
|
|
2219
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2220
|
-
const response = {
|
|
2221
|
-
$metadata: deserializeMetadata(output),
|
|
2222
|
-
...contents,
|
|
2223
|
-
};
|
|
2224
|
-
return response;
|
|
2225
|
-
};
|
|
2226
|
-
exports.de_ListReceivedLicensesCommand = de_ListReceivedLicensesCommand;
|
|
2227
|
-
const de_ListReceivedLicensesCommandError = async (output, context) => {
|
|
2228
|
-
const parsedOutput = {
|
|
2229
|
-
...output,
|
|
2230
|
-
body: await parseErrorBody(output.body, context),
|
|
2231
|
-
};
|
|
2232
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2233
|
-
switch (errorCode) {
|
|
2234
|
-
case "AccessDeniedException":
|
|
2235
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2236
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2237
|
-
case "AuthorizationException":
|
|
2238
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2239
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2240
|
-
case "InvalidParameterValueException":
|
|
2241
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2242
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2243
|
-
case "RateLimitExceededException":
|
|
2244
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2245
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2246
|
-
case "ResourceLimitExceededException":
|
|
2247
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2248
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2249
|
-
case "ServerInternalException":
|
|
2250
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2251
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2252
|
-
case "ValidationException":
|
|
2253
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2254
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2255
|
-
default:
|
|
2256
|
-
const parsedBody = parsedOutput.body;
|
|
2257
|
-
return throwDefaultError({
|
|
2258
|
-
output,
|
|
2259
|
-
parsedBody,
|
|
2260
|
-
errorCode,
|
|
2261
|
-
});
|
|
2262
|
-
}
|
|
2263
|
-
};
|
|
2264
|
-
const de_ListReceivedLicensesForOrganizationCommand = async (output, context) => {
|
|
2265
|
-
if (output.statusCode >= 300) {
|
|
2266
|
-
return de_ListReceivedLicensesForOrganizationCommandError(output, context);
|
|
2267
|
-
}
|
|
2268
|
-
const data = await parseBody(output.body, context);
|
|
2269
|
-
let contents = {};
|
|
2270
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2271
|
-
const response = {
|
|
2272
|
-
$metadata: deserializeMetadata(output),
|
|
2273
|
-
...contents,
|
|
2274
|
-
};
|
|
2275
|
-
return response;
|
|
2276
|
-
};
|
|
2277
|
-
exports.de_ListReceivedLicensesForOrganizationCommand = de_ListReceivedLicensesForOrganizationCommand;
|
|
2278
|
-
const de_ListReceivedLicensesForOrganizationCommandError = async (output, context) => {
|
|
2279
|
-
const parsedOutput = {
|
|
2280
|
-
...output,
|
|
2281
|
-
body: await parseErrorBody(output.body, context),
|
|
2282
|
-
};
|
|
2283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2284
|
-
switch (errorCode) {
|
|
2285
|
-
case "AccessDeniedException":
|
|
2286
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2287
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "AuthorizationException":
|
|
2289
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2290
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "InvalidParameterValueException":
|
|
2292
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2293
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "RateLimitExceededException":
|
|
2295
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2296
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2297
|
-
case "ResourceLimitExceededException":
|
|
2298
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2299
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "ServerInternalException":
|
|
2301
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2302
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ValidationException":
|
|
2304
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2305
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2306
|
-
default:
|
|
2307
|
-
const parsedBody = parsedOutput.body;
|
|
2308
|
-
return throwDefaultError({
|
|
2309
|
-
output,
|
|
2310
|
-
parsedBody,
|
|
2311
|
-
errorCode,
|
|
2312
|
-
});
|
|
2313
|
-
}
|
|
2314
|
-
};
|
|
2315
|
-
const de_ListResourceInventoryCommand = async (output, context) => {
|
|
2316
|
-
if (output.statusCode >= 300) {
|
|
2317
|
-
return de_ListResourceInventoryCommandError(output, context);
|
|
2318
|
-
}
|
|
2319
|
-
const data = await parseBody(output.body, context);
|
|
2320
|
-
let contents = {};
|
|
2321
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2322
|
-
const response = {
|
|
2323
|
-
$metadata: deserializeMetadata(output),
|
|
2324
|
-
...contents,
|
|
2325
|
-
};
|
|
2326
|
-
return response;
|
|
2327
|
-
};
|
|
2328
|
-
exports.de_ListResourceInventoryCommand = de_ListResourceInventoryCommand;
|
|
2329
|
-
const de_ListResourceInventoryCommandError = async (output, context) => {
|
|
2330
|
-
const parsedOutput = {
|
|
2331
|
-
...output,
|
|
2332
|
-
body: await parseErrorBody(output.body, context),
|
|
2333
|
-
};
|
|
2334
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2335
|
-
switch (errorCode) {
|
|
2336
|
-
case "AccessDeniedException":
|
|
2337
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2338
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2339
|
-
case "AuthorizationException":
|
|
2340
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2341
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "FailedDependencyException":
|
|
2343
|
-
case "com.amazonaws.licensemanager#FailedDependencyException":
|
|
2344
|
-
throw await de_FailedDependencyExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "FilterLimitExceededException":
|
|
2346
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
2347
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "InvalidParameterValueException":
|
|
2349
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2350
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2351
|
-
case "RateLimitExceededException":
|
|
2352
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2353
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2354
|
-
case "ServerInternalException":
|
|
2355
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2356
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2357
|
-
default:
|
|
2358
|
-
const parsedBody = parsedOutput.body;
|
|
2359
|
-
return throwDefaultError({
|
|
2360
|
-
output,
|
|
2361
|
-
parsedBody,
|
|
2362
|
-
errorCode,
|
|
2363
|
-
});
|
|
2364
|
-
}
|
|
2365
|
-
};
|
|
2366
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2367
|
-
if (output.statusCode >= 300) {
|
|
2368
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2369
|
-
}
|
|
2370
|
-
const data = await parseBody(output.body, context);
|
|
2371
|
-
let contents = {};
|
|
2372
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2373
|
-
const response = {
|
|
2374
|
-
$metadata: deserializeMetadata(output),
|
|
2375
|
-
...contents,
|
|
2376
|
-
};
|
|
2377
|
-
return response;
|
|
2378
|
-
};
|
|
2379
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2380
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2381
|
-
const parsedOutput = {
|
|
2382
|
-
...output,
|
|
2383
|
-
body: await parseErrorBody(output.body, context),
|
|
2384
|
-
};
|
|
2385
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
|
-
switch (errorCode) {
|
|
2387
|
-
case "AccessDeniedException":
|
|
2388
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2389
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2390
|
-
case "AuthorizationException":
|
|
2391
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2392
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2393
|
-
case "InvalidParameterValueException":
|
|
2394
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2395
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2396
|
-
case "RateLimitExceededException":
|
|
2397
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2398
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2399
|
-
case "ServerInternalException":
|
|
2400
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2401
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2402
|
-
default:
|
|
2403
|
-
const parsedBody = parsedOutput.body;
|
|
2404
|
-
return throwDefaultError({
|
|
2405
|
-
output,
|
|
2406
|
-
parsedBody,
|
|
2407
|
-
errorCode,
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
};
|
|
2411
|
-
const de_ListTokensCommand = async (output, context) => {
|
|
2412
|
-
if (output.statusCode >= 300) {
|
|
2413
|
-
return de_ListTokensCommandError(output, context);
|
|
2414
|
-
}
|
|
2415
|
-
const data = await parseBody(output.body, context);
|
|
2416
|
-
let contents = {};
|
|
2417
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2418
|
-
const response = {
|
|
2419
|
-
$metadata: deserializeMetadata(output),
|
|
2420
|
-
...contents,
|
|
2421
|
-
};
|
|
2422
|
-
return response;
|
|
2423
|
-
};
|
|
2424
|
-
exports.de_ListTokensCommand = de_ListTokensCommand;
|
|
2425
|
-
const de_ListTokensCommandError = async (output, context) => {
|
|
2426
|
-
const parsedOutput = {
|
|
2427
|
-
...output,
|
|
2428
|
-
body: await parseErrorBody(output.body, context),
|
|
2429
|
-
};
|
|
2430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2431
|
-
switch (errorCode) {
|
|
2432
|
-
case "AccessDeniedException":
|
|
2433
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2434
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2435
|
-
case "AuthorizationException":
|
|
2436
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2437
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2438
|
-
case "RateLimitExceededException":
|
|
2439
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2440
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "ServerInternalException":
|
|
2442
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2443
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "ValidationException":
|
|
2445
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2446
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2447
|
-
default:
|
|
2448
|
-
const parsedBody = parsedOutput.body;
|
|
2449
|
-
return throwDefaultError({
|
|
2450
|
-
output,
|
|
2451
|
-
parsedBody,
|
|
2452
|
-
errorCode,
|
|
2453
|
-
});
|
|
2454
|
-
}
|
|
2455
|
-
};
|
|
2456
|
-
const de_ListUsageForLicenseConfigurationCommand = async (output, context) => {
|
|
2457
|
-
if (output.statusCode >= 300) {
|
|
2458
|
-
return de_ListUsageForLicenseConfigurationCommandError(output, context);
|
|
2459
|
-
}
|
|
2460
|
-
const data = await parseBody(output.body, context);
|
|
2461
|
-
let contents = {};
|
|
2462
|
-
contents = de_ListUsageForLicenseConfigurationResponse(data, context);
|
|
2463
|
-
const response = {
|
|
2464
|
-
$metadata: deserializeMetadata(output),
|
|
2465
|
-
...contents,
|
|
2466
|
-
};
|
|
2467
|
-
return response;
|
|
2468
|
-
};
|
|
2469
|
-
exports.de_ListUsageForLicenseConfigurationCommand = de_ListUsageForLicenseConfigurationCommand;
|
|
2470
|
-
const de_ListUsageForLicenseConfigurationCommandError = async (output, context) => {
|
|
2471
|
-
const parsedOutput = {
|
|
2472
|
-
...output,
|
|
2473
|
-
body: await parseErrorBody(output.body, context),
|
|
2474
|
-
};
|
|
2475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
-
switch (errorCode) {
|
|
2477
|
-
case "AccessDeniedException":
|
|
2478
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2479
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "AuthorizationException":
|
|
2481
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2482
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "FilterLimitExceededException":
|
|
2484
|
-
case "com.amazonaws.licensemanager#FilterLimitExceededException":
|
|
2485
|
-
throw await de_FilterLimitExceededExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "InvalidParameterValueException":
|
|
2487
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2488
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "RateLimitExceededException":
|
|
2490
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2491
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "ServerInternalException":
|
|
2493
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2494
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2495
|
-
default:
|
|
2496
|
-
const parsedBody = parsedOutput.body;
|
|
2497
|
-
return throwDefaultError({
|
|
2498
|
-
output,
|
|
2499
|
-
parsedBody,
|
|
2500
|
-
errorCode,
|
|
2501
|
-
});
|
|
2502
|
-
}
|
|
2503
|
-
};
|
|
2504
|
-
const de_RejectGrantCommand = async (output, context) => {
|
|
2505
|
-
if (output.statusCode >= 300) {
|
|
2506
|
-
return de_RejectGrantCommandError(output, context);
|
|
2507
|
-
}
|
|
2508
|
-
const data = await parseBody(output.body, context);
|
|
2509
|
-
let contents = {};
|
|
2510
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2511
|
-
const response = {
|
|
2512
|
-
$metadata: deserializeMetadata(output),
|
|
2513
|
-
...contents,
|
|
2514
|
-
};
|
|
2515
|
-
return response;
|
|
2516
|
-
};
|
|
2517
|
-
exports.de_RejectGrantCommand = de_RejectGrantCommand;
|
|
2518
|
-
const de_RejectGrantCommandError = async (output, context) => {
|
|
2519
|
-
const parsedOutput = {
|
|
2520
|
-
...output,
|
|
2521
|
-
body: await parseErrorBody(output.body, context),
|
|
2522
|
-
};
|
|
2523
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2524
|
-
switch (errorCode) {
|
|
2525
|
-
case "AccessDeniedException":
|
|
2526
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2527
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2528
|
-
case "AuthorizationException":
|
|
2529
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2530
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2531
|
-
case "InvalidParameterValueException":
|
|
2532
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2533
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2534
|
-
case "RateLimitExceededException":
|
|
2535
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2536
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "ResourceLimitExceededException":
|
|
2538
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2539
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "ServerInternalException":
|
|
2541
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2542
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ValidationException":
|
|
2544
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2545
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2546
|
-
default:
|
|
2547
|
-
const parsedBody = parsedOutput.body;
|
|
2548
|
-
return throwDefaultError({
|
|
2549
|
-
output,
|
|
2550
|
-
parsedBody,
|
|
2551
|
-
errorCode,
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
|
-
};
|
|
2555
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
2556
|
-
if (output.statusCode >= 300) {
|
|
2557
|
-
return de_TagResourceCommandError(output, context);
|
|
2558
|
-
}
|
|
2559
|
-
const data = await parseBody(output.body, context);
|
|
2560
|
-
let contents = {};
|
|
2561
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2562
|
-
const response = {
|
|
2563
|
-
$metadata: deserializeMetadata(output),
|
|
2564
|
-
...contents,
|
|
2565
|
-
};
|
|
2566
|
-
return response;
|
|
2567
|
-
};
|
|
2568
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2569
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
2570
|
-
const parsedOutput = {
|
|
2571
|
-
...output,
|
|
2572
|
-
body: await parseErrorBody(output.body, context),
|
|
2573
|
-
};
|
|
2574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2575
|
-
switch (errorCode) {
|
|
2576
|
-
case "AccessDeniedException":
|
|
2577
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2578
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2579
|
-
case "AuthorizationException":
|
|
2580
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2581
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2582
|
-
case "InvalidParameterValueException":
|
|
2583
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2584
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2585
|
-
case "RateLimitExceededException":
|
|
2586
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2587
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "ServerInternalException":
|
|
2589
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2590
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2591
|
-
default:
|
|
2592
|
-
const parsedBody = parsedOutput.body;
|
|
2593
|
-
return throwDefaultError({
|
|
2594
|
-
output,
|
|
2595
|
-
parsedBody,
|
|
2596
|
-
errorCode,
|
|
2597
|
-
});
|
|
2598
|
-
}
|
|
2599
|
-
};
|
|
2600
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
2601
|
-
if (output.statusCode >= 300) {
|
|
2602
|
-
return de_UntagResourceCommandError(output, context);
|
|
2603
|
-
}
|
|
2604
|
-
const data = await parseBody(output.body, context);
|
|
2605
|
-
let contents = {};
|
|
2606
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2607
|
-
const response = {
|
|
2608
|
-
$metadata: deserializeMetadata(output),
|
|
2609
|
-
...contents,
|
|
2610
|
-
};
|
|
2611
|
-
return response;
|
|
2612
|
-
};
|
|
2613
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2614
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
2615
|
-
const parsedOutput = {
|
|
2616
|
-
...output,
|
|
2617
|
-
body: await parseErrorBody(output.body, context),
|
|
2618
|
-
};
|
|
2619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2620
|
-
switch (errorCode) {
|
|
2621
|
-
case "AccessDeniedException":
|
|
2622
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2623
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "AuthorizationException":
|
|
2625
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2626
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "InvalidParameterValueException":
|
|
2628
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2629
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "RateLimitExceededException":
|
|
2631
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2632
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2633
|
-
case "ServerInternalException":
|
|
2634
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2635
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2636
|
-
default:
|
|
2637
|
-
const parsedBody = parsedOutput.body;
|
|
2638
|
-
return throwDefaultError({
|
|
2639
|
-
output,
|
|
2640
|
-
parsedBody,
|
|
2641
|
-
errorCode,
|
|
2642
|
-
});
|
|
2643
|
-
}
|
|
2644
|
-
};
|
|
2645
|
-
const de_UpdateLicenseConfigurationCommand = async (output, context) => {
|
|
2646
|
-
if (output.statusCode >= 300) {
|
|
2647
|
-
return de_UpdateLicenseConfigurationCommandError(output, context);
|
|
2648
|
-
}
|
|
2649
|
-
const data = await parseBody(output.body, context);
|
|
2650
|
-
let contents = {};
|
|
2651
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2652
|
-
const response = {
|
|
2653
|
-
$metadata: deserializeMetadata(output),
|
|
2654
|
-
...contents,
|
|
2655
|
-
};
|
|
2656
|
-
return response;
|
|
2657
|
-
};
|
|
2658
|
-
exports.de_UpdateLicenseConfigurationCommand = de_UpdateLicenseConfigurationCommand;
|
|
2659
|
-
const de_UpdateLicenseConfigurationCommandError = async (output, context) => {
|
|
2660
|
-
const parsedOutput = {
|
|
2661
|
-
...output,
|
|
2662
|
-
body: await parseErrorBody(output.body, context),
|
|
2663
|
-
};
|
|
2664
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2665
|
-
switch (errorCode) {
|
|
2666
|
-
case "AccessDeniedException":
|
|
2667
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2668
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "AuthorizationException":
|
|
2670
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2671
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "InvalidParameterValueException":
|
|
2673
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2674
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "RateLimitExceededException":
|
|
2676
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2677
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2678
|
-
case "ResourceLimitExceededException":
|
|
2679
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2680
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2681
|
-
case "ServerInternalException":
|
|
2682
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2683
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2684
|
-
default:
|
|
2685
|
-
const parsedBody = parsedOutput.body;
|
|
2686
|
-
return throwDefaultError({
|
|
2687
|
-
output,
|
|
2688
|
-
parsedBody,
|
|
2689
|
-
errorCode,
|
|
2690
|
-
});
|
|
2691
|
-
}
|
|
2692
|
-
};
|
|
2693
|
-
const de_UpdateLicenseManagerReportGeneratorCommand = async (output, context) => {
|
|
2694
|
-
if (output.statusCode >= 300) {
|
|
2695
|
-
return de_UpdateLicenseManagerReportGeneratorCommandError(output, context);
|
|
2696
|
-
}
|
|
2697
|
-
const data = await parseBody(output.body, context);
|
|
2698
|
-
let contents = {};
|
|
2699
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2700
|
-
const response = {
|
|
2701
|
-
$metadata: deserializeMetadata(output),
|
|
2702
|
-
...contents,
|
|
2703
|
-
};
|
|
2704
|
-
return response;
|
|
2705
|
-
};
|
|
2706
|
-
exports.de_UpdateLicenseManagerReportGeneratorCommand = de_UpdateLicenseManagerReportGeneratorCommand;
|
|
2707
|
-
const de_UpdateLicenseManagerReportGeneratorCommandError = async (output, context) => {
|
|
2708
|
-
const parsedOutput = {
|
|
2709
|
-
...output,
|
|
2710
|
-
body: await parseErrorBody(output.body, context),
|
|
2711
|
-
};
|
|
2712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2713
|
-
switch (errorCode) {
|
|
2714
|
-
case "AccessDeniedException":
|
|
2715
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2716
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2717
|
-
case "AuthorizationException":
|
|
2718
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2719
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2720
|
-
case "InvalidParameterValueException":
|
|
2721
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2722
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "RateLimitExceededException":
|
|
2724
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2725
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2726
|
-
case "ResourceLimitExceededException":
|
|
2727
|
-
case "com.amazonaws.licensemanager#ResourceLimitExceededException":
|
|
2728
|
-
throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
|
|
2729
|
-
case "ResourceNotFoundException":
|
|
2730
|
-
case "com.amazonaws.licensemanager#ResourceNotFoundException":
|
|
2731
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2732
|
-
case "ServerInternalException":
|
|
2733
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2734
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2735
|
-
case "ValidationException":
|
|
2736
|
-
case "com.amazonaws.licensemanager#ValidationException":
|
|
2737
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2738
|
-
default:
|
|
2739
|
-
const parsedBody = parsedOutput.body;
|
|
2740
|
-
return throwDefaultError({
|
|
2741
|
-
output,
|
|
2742
|
-
parsedBody,
|
|
2743
|
-
errorCode,
|
|
2744
|
-
});
|
|
2745
|
-
}
|
|
2746
|
-
};
|
|
2747
|
-
const de_UpdateLicenseSpecificationsForResourceCommand = async (output, context) => {
|
|
2748
|
-
if (output.statusCode >= 300) {
|
|
2749
|
-
return de_UpdateLicenseSpecificationsForResourceCommandError(output, context);
|
|
2750
|
-
}
|
|
2751
|
-
const data = await parseBody(output.body, context);
|
|
2752
|
-
let contents = {};
|
|
2753
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2754
|
-
const response = {
|
|
2755
|
-
$metadata: deserializeMetadata(output),
|
|
2756
|
-
...contents,
|
|
2757
|
-
};
|
|
2758
|
-
return response;
|
|
2759
|
-
};
|
|
2760
|
-
exports.de_UpdateLicenseSpecificationsForResourceCommand = de_UpdateLicenseSpecificationsForResourceCommand;
|
|
2761
|
-
const de_UpdateLicenseSpecificationsForResourceCommandError = async (output, context) => {
|
|
2762
|
-
const parsedOutput = {
|
|
2763
|
-
...output,
|
|
2764
|
-
body: await parseErrorBody(output.body, context),
|
|
2765
|
-
};
|
|
2766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2767
|
-
switch (errorCode) {
|
|
2768
|
-
case "AccessDeniedException":
|
|
2769
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2770
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2771
|
-
case "AuthorizationException":
|
|
2772
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2773
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2774
|
-
case "InvalidParameterValueException":
|
|
2775
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2776
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2777
|
-
case "InvalidResourceStateException":
|
|
2778
|
-
case "com.amazonaws.licensemanager#InvalidResourceStateException":
|
|
2779
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2780
|
-
case "LicenseUsageException":
|
|
2781
|
-
case "com.amazonaws.licensemanager#LicenseUsageException":
|
|
2782
|
-
throw await de_LicenseUsageExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "RateLimitExceededException":
|
|
2784
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2785
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2786
|
-
case "ServerInternalException":
|
|
2787
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2788
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2789
|
-
default:
|
|
2790
|
-
const parsedBody = parsedOutput.body;
|
|
2791
|
-
return throwDefaultError({
|
|
2792
|
-
output,
|
|
2793
|
-
parsedBody,
|
|
2794
|
-
errorCode,
|
|
2795
|
-
});
|
|
2796
|
-
}
|
|
2797
|
-
};
|
|
2798
|
-
const de_UpdateServiceSettingsCommand = async (output, context) => {
|
|
2799
|
-
if (output.statusCode >= 300) {
|
|
2800
|
-
return de_UpdateServiceSettingsCommandError(output, context);
|
|
2801
|
-
}
|
|
2802
|
-
const data = await parseBody(output.body, context);
|
|
2803
|
-
let contents = {};
|
|
2804
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2805
|
-
const response = {
|
|
2806
|
-
$metadata: deserializeMetadata(output),
|
|
2807
|
-
...contents,
|
|
2808
|
-
};
|
|
2809
|
-
return response;
|
|
2810
|
-
};
|
|
2811
|
-
exports.de_UpdateServiceSettingsCommand = de_UpdateServiceSettingsCommand;
|
|
2812
|
-
const de_UpdateServiceSettingsCommandError = async (output, context) => {
|
|
2813
|
-
const parsedOutput = {
|
|
2814
|
-
...output,
|
|
2815
|
-
body: await parseErrorBody(output.body, context),
|
|
2816
|
-
};
|
|
2817
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2818
|
-
switch (errorCode) {
|
|
2819
|
-
case "AccessDeniedException":
|
|
2820
|
-
case "com.amazonaws.licensemanager#AccessDeniedException":
|
|
2821
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "AuthorizationException":
|
|
2823
|
-
case "com.amazonaws.licensemanager#AuthorizationException":
|
|
2824
|
-
throw await de_AuthorizationExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "InvalidParameterValueException":
|
|
2826
|
-
case "com.amazonaws.licensemanager#InvalidParameterValueException":
|
|
2827
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "RateLimitExceededException":
|
|
2829
|
-
case "com.amazonaws.licensemanager#RateLimitExceededException":
|
|
2830
|
-
throw await de_RateLimitExceededExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "ServerInternalException":
|
|
2832
|
-
case "com.amazonaws.licensemanager#ServerInternalException":
|
|
2833
|
-
throw await de_ServerInternalExceptionRes(parsedOutput, context);
|
|
2834
|
-
default:
|
|
2835
|
-
const parsedBody = parsedOutput.body;
|
|
2836
|
-
return throwDefaultError({
|
|
2837
|
-
output,
|
|
2838
|
-
parsedBody,
|
|
2839
|
-
errorCode,
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
};
|
|
2843
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2844
|
-
const body = parsedOutput.body;
|
|
2845
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2846
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
2847
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2848
|
-
...deserialized,
|
|
2849
|
-
});
|
|
2850
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2851
|
-
};
|
|
2852
|
-
const de_AuthorizationExceptionRes = async (parsedOutput, context) => {
|
|
2853
|
-
const body = parsedOutput.body;
|
|
2854
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2855
|
-
const exception = new models_0_1.AuthorizationException({
|
|
2856
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2857
|
-
...deserialized,
|
|
2858
|
-
});
|
|
2859
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2860
|
-
};
|
|
2861
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2862
|
-
const body = parsedOutput.body;
|
|
2863
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2864
|
-
const exception = new models_0_1.ConflictException({
|
|
2865
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2866
|
-
...deserialized,
|
|
2867
|
-
});
|
|
2868
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2869
|
-
};
|
|
2870
|
-
const de_EntitlementNotAllowedExceptionRes = async (parsedOutput, context) => {
|
|
2871
|
-
const body = parsedOutput.body;
|
|
2872
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2873
|
-
const exception = new models_0_1.EntitlementNotAllowedException({
|
|
2874
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2875
|
-
...deserialized,
|
|
2876
|
-
});
|
|
2877
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2878
|
-
};
|
|
2879
|
-
const de_FailedDependencyExceptionRes = async (parsedOutput, context) => {
|
|
2880
|
-
const body = parsedOutput.body;
|
|
2881
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2882
|
-
const exception = new models_0_1.FailedDependencyException({
|
|
2883
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2884
|
-
...deserialized,
|
|
2885
|
-
});
|
|
2886
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2887
|
-
};
|
|
2888
|
-
const de_FilterLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2889
|
-
const body = parsedOutput.body;
|
|
2890
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2891
|
-
const exception = new models_0_1.FilterLimitExceededException({
|
|
2892
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2893
|
-
...deserialized,
|
|
2894
|
-
});
|
|
2895
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2896
|
-
};
|
|
2897
|
-
const de_InvalidParameterValueExceptionRes = async (parsedOutput, context) => {
|
|
2898
|
-
const body = parsedOutput.body;
|
|
2899
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2900
|
-
const exception = new models_0_1.InvalidParameterValueException({
|
|
2901
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2902
|
-
...deserialized,
|
|
2903
|
-
});
|
|
2904
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2905
|
-
};
|
|
2906
|
-
const de_InvalidResourceStateExceptionRes = async (parsedOutput, context) => {
|
|
2907
|
-
const body = parsedOutput.body;
|
|
2908
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2909
|
-
const exception = new models_0_1.InvalidResourceStateException({
|
|
2910
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2911
|
-
...deserialized,
|
|
2912
|
-
});
|
|
2913
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2914
|
-
};
|
|
2915
|
-
const de_LicenseUsageExceptionRes = async (parsedOutput, context) => {
|
|
2916
|
-
const body = parsedOutput.body;
|
|
2917
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2918
|
-
const exception = new models_0_1.LicenseUsageException({
|
|
2919
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2920
|
-
...deserialized,
|
|
2921
|
-
});
|
|
2922
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2923
|
-
};
|
|
2924
|
-
const de_NoEntitlementsAllowedExceptionRes = async (parsedOutput, context) => {
|
|
2925
|
-
const body = parsedOutput.body;
|
|
2926
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2927
|
-
const exception = new models_0_1.NoEntitlementsAllowedException({
|
|
2928
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2929
|
-
...deserialized,
|
|
2930
|
-
});
|
|
2931
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2932
|
-
};
|
|
2933
|
-
const de_RateLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2934
|
-
const body = parsedOutput.body;
|
|
2935
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2936
|
-
const exception = new models_0_1.RateLimitExceededException({
|
|
2937
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2938
|
-
...deserialized,
|
|
2939
|
-
});
|
|
2940
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2941
|
-
};
|
|
2942
|
-
const de_RedirectExceptionRes = async (parsedOutput, context) => {
|
|
2943
|
-
const body = parsedOutput.body;
|
|
2944
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2945
|
-
const exception = new models_0_1.RedirectException({
|
|
2946
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2947
|
-
...deserialized,
|
|
2948
|
-
});
|
|
2949
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2950
|
-
};
|
|
2951
|
-
const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2952
|
-
const body = parsedOutput.body;
|
|
2953
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2954
|
-
const exception = new models_0_1.ResourceLimitExceededException({
|
|
2955
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2956
|
-
...deserialized,
|
|
2957
|
-
});
|
|
2958
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2959
|
-
};
|
|
2960
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2961
|
-
const body = parsedOutput.body;
|
|
2962
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2963
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
2964
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2965
|
-
...deserialized,
|
|
2966
|
-
});
|
|
2967
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2968
|
-
};
|
|
2969
|
-
const de_ServerInternalExceptionRes = async (parsedOutput, context) => {
|
|
2970
|
-
const body = parsedOutput.body;
|
|
2971
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2972
|
-
const exception = new models_0_1.ServerInternalException({
|
|
2973
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2974
|
-
...deserialized,
|
|
2975
|
-
});
|
|
2976
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2977
|
-
};
|
|
2978
|
-
const de_UnsupportedDigitalSignatureMethodExceptionRes = async (parsedOutput, context) => {
|
|
2979
|
-
const body = parsedOutput.body;
|
|
2980
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2981
|
-
const exception = new models_0_1.UnsupportedDigitalSignatureMethodException({
|
|
2982
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2983
|
-
...deserialized,
|
|
2984
|
-
});
|
|
2985
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2986
|
-
};
|
|
2987
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2988
|
-
const body = parsedOutput.body;
|
|
2989
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
2990
|
-
const exception = new models_0_1.ValidationException({
|
|
2991
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
2992
|
-
...deserialized,
|
|
2993
|
-
});
|
|
2994
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
2995
|
-
};
|
|
2996
|
-
const de_AutomatedDiscoveryInformation = (output, 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)(_))),
|
|
2999
|
-
});
|
|
3000
|
-
};
|
|
3001
|
-
const de_GetLicenseConfigurationResponse = (output, 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,
|
|
3020
|
-
});
|
|
3021
|
-
};
|
|
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,
|
|
3033
|
-
});
|
|
3034
|
-
};
|
|
3035
|
-
const de_LicenseConfiguration = (output, context) => {
|
|
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
|
-
});
|
|
3054
|
-
};
|
|
3055
|
-
const de_LicenseConfigurationAssociation = (output, context) => {
|
|
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
|
-
});
|
|
3063
|
-
};
|
|
3064
|
-
const de_LicenseConfigurationAssociations = (output, context) => {
|
|
3065
|
-
const retVal = (output || [])
|
|
3066
|
-
.filter((e) => e != null)
|
|
3067
|
-
.map((entry) => {
|
|
3068
|
-
return de_LicenseConfigurationAssociation(entry, context);
|
|
3069
|
-
});
|
|
3070
|
-
return retVal;
|
|
3071
|
-
};
|
|
3072
|
-
const de_LicenseConfigurations = (output, context) => {
|
|
3073
|
-
const retVal = (output || [])
|
|
3074
|
-
.filter((e) => e != null)
|
|
3075
|
-
.map((entry) => {
|
|
3076
|
-
return de_LicenseConfiguration(entry, context);
|
|
3077
|
-
});
|
|
3078
|
-
return retVal;
|
|
3079
|
-
};
|
|
3080
|
-
const de_LicenseConfigurationUsage = (output, context) => {
|
|
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
|
-
});
|
|
3089
|
-
};
|
|
3090
|
-
const de_LicenseConfigurationUsageList = (output, context) => {
|
|
3091
|
-
const retVal = (output || [])
|
|
3092
|
-
.filter((e) => e != null)
|
|
3093
|
-
.map((entry) => {
|
|
3094
|
-
return de_LicenseConfigurationUsage(entry, context);
|
|
3095
|
-
});
|
|
3096
|
-
return retVal;
|
|
3097
|
-
};
|
|
3098
|
-
const de_LicenseConversionTask = (output, context) => {
|
|
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
|
-
});
|
|
3110
|
-
};
|
|
3111
|
-
const de_LicenseConversionTasks = (output, context) => {
|
|
3112
|
-
const retVal = (output || [])
|
|
3113
|
-
.filter((e) => e != null)
|
|
3114
|
-
.map((entry) => {
|
|
3115
|
-
return de_LicenseConversionTask(entry, context);
|
|
3116
|
-
});
|
|
3117
|
-
return retVal;
|
|
3118
|
-
};
|
|
3119
|
-
const de_LicenseOperationFailure = (output, context) => {
|
|
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
|
-
});
|
|
3130
|
-
};
|
|
3131
|
-
const de_LicenseOperationFailureList = (output, context) => {
|
|
3132
|
-
const retVal = (output || [])
|
|
3133
|
-
.filter((e) => e != null)
|
|
3134
|
-
.map((entry) => {
|
|
3135
|
-
return de_LicenseOperationFailure(entry, context);
|
|
3136
|
-
});
|
|
3137
|
-
return retVal;
|
|
3138
|
-
};
|
|
3139
|
-
const de_ListAssociationsForLicenseConfigurationResponse = (output, context) => {
|
|
3140
|
-
return (0, smithy_client_1.take)(output, {
|
|
3141
|
-
LicenseConfigurationAssociations: (_) => de_LicenseConfigurationAssociations(_, context),
|
|
3142
|
-
NextToken: smithy_client_1.expectString,
|
|
3143
|
-
});
|
|
3144
|
-
};
|
|
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,
|
|
3149
|
-
});
|
|
3150
|
-
};
|
|
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,
|
|
3155
|
-
});
|
|
3156
|
-
};
|
|
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,
|
|
3161
|
-
});
|
|
3162
|
-
};
|
|
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,
|
|
3167
|
-
});
|
|
3168
|
-
};
|
|
3169
|
-
const deserializeMetadata = (output) => ({
|
|
3170
|
-
httpStatusCode: output.statusCode,
|
|
3171
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3172
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3173
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3174
|
-
});
|
|
3175
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3176
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(LicenseManagerServiceException_1.LicenseManagerServiceException);
|
|
3177
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3178
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3179
|
-
const contents = {
|
|
3180
|
-
protocol,
|
|
3181
|
-
hostname,
|
|
3182
|
-
port,
|
|
3183
|
-
method: "POST",
|
|
3184
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3185
|
-
headers,
|
|
3186
|
-
};
|
|
3187
|
-
if (resolvedHostname !== undefined) {
|
|
3188
|
-
contents.hostname = resolvedHostname;
|
|
3189
|
-
}
|
|
3190
|
-
if (body !== undefined) {
|
|
3191
|
-
contents.body = body;
|
|
3192
|
-
}
|
|
3193
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3194
|
-
};
|
|
3195
|
-
function sharedHeaders(operation) {
|
|
3196
|
-
return {
|
|
3197
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3198
|
-
"x-amz-target": `AWSLicenseManager.${operation}`,
|
|
3199
|
-
};
|
|
3200
|
-
}
|
|
3201
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3202
|
-
if (encoded.length) {
|
|
3203
|
-
return JSON.parse(encoded);
|
|
3204
|
-
}
|
|
3205
|
-
return {};
|
|
3206
|
-
});
|
|
3207
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3208
|
-
const value = await parseBody(errorBody, context);
|
|
3209
|
-
value.message = value.message ?? value.Message;
|
|
3210
|
-
return value;
|
|
3211
|
-
};
|
|
3212
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3213
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3214
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3215
|
-
let cleanValue = rawValue;
|
|
3216
|
-
if (typeof cleanValue === "number") {
|
|
3217
|
-
cleanValue = cleanValue.toString();
|
|
3218
|
-
}
|
|
3219
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3220
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3221
|
-
}
|
|
3222
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3223
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3224
|
-
}
|
|
3225
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3226
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3227
|
-
}
|
|
3228
|
-
return cleanValue;
|
|
3229
|
-
};
|
|
3230
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3231
|
-
if (headerKey !== undefined) {
|
|
3232
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3233
|
-
}
|
|
3234
|
-
if (data.code !== undefined) {
|
|
3235
|
-
return sanitizeErrorCode(data.code);
|
|
3236
|
-
}
|
|
3237
|
-
if (data["__type"] !== undefined) {
|
|
3238
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3239
|
-
}
|
|
3240
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|