@aws-sdk/client-license-manager-linux-subscriptions 3.489.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/LicenseManagerLinuxSubscriptions.js +1 -19
- package/dist-cjs/LicenseManagerLinuxSubscriptionsClient.js +1 -43
- package/dist-cjs/commands/GetServiceSettingsCommand.js +1 -28
- package/dist-cjs/commands/ListLinuxSubscriptionInstancesCommand.js +1 -28
- package/dist-cjs/commands/ListLinuxSubscriptionsCommand.js +1 -28
- package/dist-cjs/commands/UpdateServiceSettingsCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -7
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +689 -11
- package/dist-cjs/models/LicenseManagerLinuxSubscriptionsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -62
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListLinuxSubscriptionInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/ListLinuxSubscriptionsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -6
- package/dist-cjs/protocols/Aws_restJson1.js +1 -329
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,12 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LicenseManagerLinuxSubscriptionsServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
|
|
6
|
-
class LicenseManagerLinuxSubscriptionsServiceException extends smithy_client_1.ServiceException {
|
|
7
|
-
constructor(options) {
|
|
8
|
-
super(options);
|
|
9
|
-
Object.setPrototypeOf(this, LicenseManagerLinuxSubscriptionsServiceException.prototype);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.LicenseManagerLinuxSubscriptionsServiceException = LicenseManagerLinuxSubscriptionsServiceException;
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
CHANGED
|
@@ -1,62 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.Status = exports.OrganizationIntegration = exports.LinuxSubscriptionsDiscovery = exports.Operator = void 0;
|
|
4
|
-
const LicenseManagerLinuxSubscriptionsServiceException_1 = require("./LicenseManagerLinuxSubscriptionsServiceException");
|
|
5
|
-
exports.Operator = {
|
|
6
|
-
CONTAINS: "Contains",
|
|
7
|
-
EQUAL: "Equal",
|
|
8
|
-
NOT_EQUAL: "NotEqual",
|
|
9
|
-
};
|
|
10
|
-
exports.LinuxSubscriptionsDiscovery = {
|
|
11
|
-
Disabled: "Disabled",
|
|
12
|
-
Enabled: "Enabled",
|
|
13
|
-
};
|
|
14
|
-
exports.OrganizationIntegration = {
|
|
15
|
-
Disabled: "Disabled",
|
|
16
|
-
Enabled: "Enabled",
|
|
17
|
-
};
|
|
18
|
-
exports.Status = {
|
|
19
|
-
Completed: "Completed",
|
|
20
|
-
Failed: "Failed",
|
|
21
|
-
InProgress: "InProgress",
|
|
22
|
-
Successful: "Successful",
|
|
23
|
-
};
|
|
24
|
-
class InternalServerException extends LicenseManagerLinuxSubscriptionsServiceException_1.LicenseManagerLinuxSubscriptionsServiceException {
|
|
25
|
-
constructor(opts) {
|
|
26
|
-
super({
|
|
27
|
-
name: "InternalServerException",
|
|
28
|
-
$fault: "server",
|
|
29
|
-
...opts,
|
|
30
|
-
});
|
|
31
|
-
this.name = "InternalServerException";
|
|
32
|
-
this.$fault = "server";
|
|
33
|
-
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.InternalServerException = InternalServerException;
|
|
37
|
-
class ThrottlingException extends LicenseManagerLinuxSubscriptionsServiceException_1.LicenseManagerLinuxSubscriptionsServiceException {
|
|
38
|
-
constructor(opts) {
|
|
39
|
-
super({
|
|
40
|
-
name: "ThrottlingException",
|
|
41
|
-
$fault: "client",
|
|
42
|
-
...opts,
|
|
43
|
-
});
|
|
44
|
-
this.name = "ThrottlingException";
|
|
45
|
-
this.$fault = "client";
|
|
46
|
-
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.ThrottlingException = ThrottlingException;
|
|
50
|
-
class ValidationException extends LicenseManagerLinuxSubscriptionsServiceException_1.LicenseManagerLinuxSubscriptionsServiceException {
|
|
51
|
-
constructor(opts) {
|
|
52
|
-
super({
|
|
53
|
-
name: "ValidationException",
|
|
54
|
-
$fault: "client",
|
|
55
|
-
...opts,
|
|
56
|
-
});
|
|
57
|
-
this.name = "ValidationException";
|
|
58
|
-
this.$fault = "client";
|
|
59
|
-
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.ValidationException = ValidationException;
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListLinuxSubscriptionInstances = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListLinuxSubscriptionInstancesCommand_1 = require("../commands/ListLinuxSubscriptionInstancesCommand");
|
|
6
|
-
const LicenseManagerLinuxSubscriptionsClient_1 = require("../LicenseManagerLinuxSubscriptionsClient");
|
|
7
|
-
exports.paginateListLinuxSubscriptionInstances = (0, core_1.createPaginator)(LicenseManagerLinuxSubscriptionsClient_1.LicenseManagerLinuxSubscriptionsClient, ListLinuxSubscriptionInstancesCommand_1.ListLinuxSubscriptionInstancesCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginateListLinuxSubscriptions = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const ListLinuxSubscriptionsCommand_1 = require("../commands/ListLinuxSubscriptionsCommand");
|
|
6
|
-
const LicenseManagerLinuxSubscriptionsClient_1 = require("../LicenseManagerLinuxSubscriptionsClient");
|
|
7
|
-
exports.paginateListLinuxSubscriptions = (0, core_1.createPaginator)(LicenseManagerLinuxSubscriptionsClient_1.LicenseManagerLinuxSubscriptionsClient, ListLinuxSubscriptionsCommand_1.ListLinuxSubscriptionsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./ListLinuxSubscriptionInstancesPaginator"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./ListLinuxSubscriptionsPaginator"), exports);
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,329 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UpdateServiceSettingsCommand = exports.de_ListLinuxSubscriptionsCommand = exports.de_ListLinuxSubscriptionInstancesCommand = exports.de_GetServiceSettingsCommand = exports.se_UpdateServiceSettingsCommand = exports.se_ListLinuxSubscriptionsCommand = exports.se_ListLinuxSubscriptionInstancesCommand = exports.se_GetServiceSettingsCommand = void 0;
|
|
4
|
-
const core_1 = require("@smithy/core");
|
|
5
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
|
-
const LicenseManagerLinuxSubscriptionsServiceException_1 = require("../models/LicenseManagerLinuxSubscriptionsServiceException");
|
|
7
|
-
const models_0_1 = require("../models/models_0");
|
|
8
|
-
const se_GetServiceSettingsCommand = async (input, context) => {
|
|
9
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
|
-
const headers = {
|
|
11
|
-
"content-type": "application/json",
|
|
12
|
-
};
|
|
13
|
-
b.bp("/subscription/GetServiceSettings");
|
|
14
|
-
let body;
|
|
15
|
-
body = "";
|
|
16
|
-
b.m("POST").h(headers).b(body);
|
|
17
|
-
return b.build();
|
|
18
|
-
};
|
|
19
|
-
exports.se_GetServiceSettingsCommand = se_GetServiceSettingsCommand;
|
|
20
|
-
const se_ListLinuxSubscriptionInstancesCommand = async (input, context) => {
|
|
21
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
22
|
-
const headers = {
|
|
23
|
-
"content-type": "application/json",
|
|
24
|
-
};
|
|
25
|
-
b.bp("/subscription/ListLinuxSubscriptionInstances");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
28
|
-
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
29
|
-
MaxResults: [],
|
|
30
|
-
NextToken: [],
|
|
31
|
-
}));
|
|
32
|
-
b.m("POST").h(headers).b(body);
|
|
33
|
-
return b.build();
|
|
34
|
-
};
|
|
35
|
-
exports.se_ListLinuxSubscriptionInstancesCommand = se_ListLinuxSubscriptionInstancesCommand;
|
|
36
|
-
const se_ListLinuxSubscriptionsCommand = async (input, context) => {
|
|
37
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
38
|
-
const headers = {
|
|
39
|
-
"content-type": "application/json",
|
|
40
|
-
};
|
|
41
|
-
b.bp("/subscription/ListLinuxSubscriptions");
|
|
42
|
-
let body;
|
|
43
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
44
|
-
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
45
|
-
MaxResults: [],
|
|
46
|
-
NextToken: [],
|
|
47
|
-
}));
|
|
48
|
-
b.m("POST").h(headers).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
exports.se_ListLinuxSubscriptionsCommand = se_ListLinuxSubscriptionsCommand;
|
|
52
|
-
const se_UpdateServiceSettingsCommand = async (input, context) => {
|
|
53
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
54
|
-
const headers = {
|
|
55
|
-
"content-type": "application/json",
|
|
56
|
-
};
|
|
57
|
-
b.bp("/subscription/UpdateServiceSettings");
|
|
58
|
-
let body;
|
|
59
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
60
|
-
AllowUpdate: [],
|
|
61
|
-
LinuxSubscriptionsDiscovery: [],
|
|
62
|
-
LinuxSubscriptionsDiscoverySettings: (_) => (0, smithy_client_1._json)(_),
|
|
63
|
-
}));
|
|
64
|
-
b.m("POST").h(headers).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
exports.se_UpdateServiceSettingsCommand = se_UpdateServiceSettingsCommand;
|
|
68
|
-
const de_GetServiceSettingsCommand = async (output, context) => {
|
|
69
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
70
|
-
return de_GetServiceSettingsCommandError(output, context);
|
|
71
|
-
}
|
|
72
|
-
const contents = (0, smithy_client_1.map)({
|
|
73
|
-
$metadata: deserializeMetadata(output),
|
|
74
|
-
});
|
|
75
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
76
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
77
|
-
HomeRegions: smithy_client_1._json,
|
|
78
|
-
LinuxSubscriptionsDiscovery: smithy_client_1.expectString,
|
|
79
|
-
LinuxSubscriptionsDiscoverySettings: smithy_client_1._json,
|
|
80
|
-
Status: smithy_client_1.expectString,
|
|
81
|
-
StatusMessage: smithy_client_1._json,
|
|
82
|
-
});
|
|
83
|
-
Object.assign(contents, doc);
|
|
84
|
-
return contents;
|
|
85
|
-
};
|
|
86
|
-
exports.de_GetServiceSettingsCommand = de_GetServiceSettingsCommand;
|
|
87
|
-
const de_GetServiceSettingsCommandError = async (output, context) => {
|
|
88
|
-
const parsedOutput = {
|
|
89
|
-
...output,
|
|
90
|
-
body: await parseErrorBody(output.body, context),
|
|
91
|
-
};
|
|
92
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
93
|
-
switch (errorCode) {
|
|
94
|
-
case "InternalServerException":
|
|
95
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
96
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
97
|
-
case "ThrottlingException":
|
|
98
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
99
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
100
|
-
case "ValidationException":
|
|
101
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
102
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
103
|
-
default:
|
|
104
|
-
const parsedBody = parsedOutput.body;
|
|
105
|
-
return throwDefaultError({
|
|
106
|
-
output,
|
|
107
|
-
parsedBody,
|
|
108
|
-
errorCode,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
const de_ListLinuxSubscriptionInstancesCommand = async (output, context) => {
|
|
113
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
114
|
-
return de_ListLinuxSubscriptionInstancesCommandError(output, context);
|
|
115
|
-
}
|
|
116
|
-
const contents = (0, smithy_client_1.map)({
|
|
117
|
-
$metadata: deserializeMetadata(output),
|
|
118
|
-
});
|
|
119
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
120
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
121
|
-
Instances: smithy_client_1._json,
|
|
122
|
-
NextToken: smithy_client_1.expectString,
|
|
123
|
-
});
|
|
124
|
-
Object.assign(contents, doc);
|
|
125
|
-
return contents;
|
|
126
|
-
};
|
|
127
|
-
exports.de_ListLinuxSubscriptionInstancesCommand = de_ListLinuxSubscriptionInstancesCommand;
|
|
128
|
-
const de_ListLinuxSubscriptionInstancesCommandError = async (output, context) => {
|
|
129
|
-
const parsedOutput = {
|
|
130
|
-
...output,
|
|
131
|
-
body: await parseErrorBody(output.body, context),
|
|
132
|
-
};
|
|
133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
134
|
-
switch (errorCode) {
|
|
135
|
-
case "InternalServerException":
|
|
136
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
137
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
138
|
-
case "ThrottlingException":
|
|
139
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
140
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
141
|
-
case "ValidationException":
|
|
142
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
143
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
144
|
-
default:
|
|
145
|
-
const parsedBody = parsedOutput.body;
|
|
146
|
-
return throwDefaultError({
|
|
147
|
-
output,
|
|
148
|
-
parsedBody,
|
|
149
|
-
errorCode,
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
const de_ListLinuxSubscriptionsCommand = async (output, context) => {
|
|
154
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
155
|
-
return de_ListLinuxSubscriptionsCommandError(output, context);
|
|
156
|
-
}
|
|
157
|
-
const contents = (0, smithy_client_1.map)({
|
|
158
|
-
$metadata: deserializeMetadata(output),
|
|
159
|
-
});
|
|
160
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
161
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
162
|
-
NextToken: smithy_client_1.expectString,
|
|
163
|
-
Subscriptions: smithy_client_1._json,
|
|
164
|
-
});
|
|
165
|
-
Object.assign(contents, doc);
|
|
166
|
-
return contents;
|
|
167
|
-
};
|
|
168
|
-
exports.de_ListLinuxSubscriptionsCommand = de_ListLinuxSubscriptionsCommand;
|
|
169
|
-
const de_ListLinuxSubscriptionsCommandError = async (output, context) => {
|
|
170
|
-
const parsedOutput = {
|
|
171
|
-
...output,
|
|
172
|
-
body: await parseErrorBody(output.body, context),
|
|
173
|
-
};
|
|
174
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
175
|
-
switch (errorCode) {
|
|
176
|
-
case "InternalServerException":
|
|
177
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
178
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
179
|
-
case "ThrottlingException":
|
|
180
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
181
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
182
|
-
case "ValidationException":
|
|
183
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
184
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
185
|
-
default:
|
|
186
|
-
const parsedBody = parsedOutput.body;
|
|
187
|
-
return throwDefaultError({
|
|
188
|
-
output,
|
|
189
|
-
parsedBody,
|
|
190
|
-
errorCode,
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
};
|
|
194
|
-
const de_UpdateServiceSettingsCommand = async (output, context) => {
|
|
195
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
196
|
-
return de_UpdateServiceSettingsCommandError(output, context);
|
|
197
|
-
}
|
|
198
|
-
const contents = (0, smithy_client_1.map)({
|
|
199
|
-
$metadata: deserializeMetadata(output),
|
|
200
|
-
});
|
|
201
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
202
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
203
|
-
HomeRegions: smithy_client_1._json,
|
|
204
|
-
LinuxSubscriptionsDiscovery: smithy_client_1.expectString,
|
|
205
|
-
LinuxSubscriptionsDiscoverySettings: smithy_client_1._json,
|
|
206
|
-
Status: smithy_client_1.expectString,
|
|
207
|
-
StatusMessage: smithy_client_1._json,
|
|
208
|
-
});
|
|
209
|
-
Object.assign(contents, doc);
|
|
210
|
-
return contents;
|
|
211
|
-
};
|
|
212
|
-
exports.de_UpdateServiceSettingsCommand = de_UpdateServiceSettingsCommand;
|
|
213
|
-
const de_UpdateServiceSettingsCommandError = async (output, context) => {
|
|
214
|
-
const parsedOutput = {
|
|
215
|
-
...output,
|
|
216
|
-
body: await parseErrorBody(output.body, context),
|
|
217
|
-
};
|
|
218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
219
|
-
switch (errorCode) {
|
|
220
|
-
case "InternalServerException":
|
|
221
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
222
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
223
|
-
case "ThrottlingException":
|
|
224
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
225
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
226
|
-
case "ValidationException":
|
|
227
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
228
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
229
|
-
default:
|
|
230
|
-
const parsedBody = parsedOutput.body;
|
|
231
|
-
return throwDefaultError({
|
|
232
|
-
output,
|
|
233
|
-
parsedBody,
|
|
234
|
-
errorCode,
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
};
|
|
238
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(LicenseManagerLinuxSubscriptionsServiceException_1.LicenseManagerLinuxSubscriptionsServiceException);
|
|
239
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
240
|
-
const contents = (0, smithy_client_1.map)({});
|
|
241
|
-
const data = parsedOutput.body;
|
|
242
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
243
|
-
message: smithy_client_1.expectString,
|
|
244
|
-
});
|
|
245
|
-
Object.assign(contents, doc);
|
|
246
|
-
const exception = new models_0_1.InternalServerException({
|
|
247
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
248
|
-
...contents,
|
|
249
|
-
});
|
|
250
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
251
|
-
};
|
|
252
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
253
|
-
const contents = (0, smithy_client_1.map)({});
|
|
254
|
-
const data = parsedOutput.body;
|
|
255
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
256
|
-
message: smithy_client_1.expectString,
|
|
257
|
-
});
|
|
258
|
-
Object.assign(contents, doc);
|
|
259
|
-
const exception = new models_0_1.ThrottlingException({
|
|
260
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
261
|
-
...contents,
|
|
262
|
-
});
|
|
263
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
264
|
-
};
|
|
265
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
266
|
-
const contents = (0, smithy_client_1.map)({});
|
|
267
|
-
const data = parsedOutput.body;
|
|
268
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
269
|
-
message: smithy_client_1.expectString,
|
|
270
|
-
});
|
|
271
|
-
Object.assign(contents, doc);
|
|
272
|
-
const exception = new models_0_1.ValidationException({
|
|
273
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
274
|
-
...contents,
|
|
275
|
-
});
|
|
276
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
277
|
-
};
|
|
278
|
-
const deserializeMetadata = (output) => ({
|
|
279
|
-
httpStatusCode: output.statusCode,
|
|
280
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
281
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
282
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
283
|
-
});
|
|
284
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
285
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
286
|
-
value !== null &&
|
|
287
|
-
value !== "" &&
|
|
288
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
289
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
290
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
291
|
-
if (encoded.length) {
|
|
292
|
-
return JSON.parse(encoded);
|
|
293
|
-
}
|
|
294
|
-
return {};
|
|
295
|
-
});
|
|
296
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
297
|
-
const value = await parseBody(errorBody, context);
|
|
298
|
-
value.message = value.message ?? value.Message;
|
|
299
|
-
return value;
|
|
300
|
-
};
|
|
301
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
302
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
303
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
304
|
-
let cleanValue = rawValue;
|
|
305
|
-
if (typeof cleanValue === "number") {
|
|
306
|
-
cleanValue = cleanValue.toString();
|
|
307
|
-
}
|
|
308
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
309
|
-
cleanValue = cleanValue.split(",")[0];
|
|
310
|
-
}
|
|
311
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
312
|
-
cleanValue = cleanValue.split(":")[0];
|
|
313
|
-
}
|
|
314
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
315
|
-
cleanValue = cleanValue.split("#")[1];
|
|
316
|
-
}
|
|
317
|
-
return cleanValue;
|
|
318
|
-
};
|
|
319
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
320
|
-
if (headerKey !== undefined) {
|
|
321
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
322
|
-
}
|
|
323
|
-
if (data.code !== undefined) {
|
|
324
|
-
return sanitizeErrorCode(data.code);
|
|
325
|
-
}
|
|
326
|
-
if (data["__type"] !== undefined) {
|
|
327
|
-
return sanitizeErrorCode(data["__type"]);
|
|
328
|
-
}
|
|
329
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
-
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
5
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const asPartial = (t) => t;
|
|
8
|
-
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
9
|
-
const extensionConfiguration = {
|
|
10
|
-
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
11
|
-
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
12
|
-
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
13
|
-
};
|
|
14
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
15
|
-
return {
|
|
16
|
-
...runtimeConfig,
|
|
17
|
-
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
18
|
-
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
19
|
-
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
1
|
+
module.exports = require("./index.js");
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-license-manager-linux-subscriptions",
|
|
3
3
|
"description": "AWS SDK for JavaScript License Manager Linux Subscriptions Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.495.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
|
-
"build:cjs": "
|
|
7
|
+
"build:cjs": "node ../../scripts/compilation/inline client-license-manager-linux-subscriptions",
|
|
8
8
|
"build:es": "tsc -p tsconfig.es.json",
|
|
9
9
|
"build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
|
|
10
10
|
"build:types": "tsc -p tsconfig.types.json",
|
|
@@ -20,47 +20,47 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
32
|
-
"@aws-sdk/types": "3.
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
36
|
-
"@smithy/config-resolver": "^2.0
|
|
37
|
-
"@smithy/core": "^1.
|
|
38
|
-
"@smithy/fetch-http-handler": "^2.
|
|
39
|
-
"@smithy/hash-node": "^2.0
|
|
40
|
-
"@smithy/invalid-dependency": "^2.0
|
|
41
|
-
"@smithy/middleware-content-length": "^2.0
|
|
42
|
-
"@smithy/middleware-endpoint": "^2.
|
|
43
|
-
"@smithy/middleware-retry": "^2.0
|
|
44
|
-
"@smithy/middleware-serde": "^2.0
|
|
45
|
-
"@smithy/middleware-stack": "^2.0
|
|
46
|
-
"@smithy/node-config-provider": "^2.
|
|
47
|
-
"@smithy/node-http-handler": "^2.
|
|
48
|
-
"@smithy/protocol-http": "^3.0
|
|
49
|
-
"@smithy/smithy-client": "^2.
|
|
50
|
-
"@smithy/types": "^2.
|
|
51
|
-
"@smithy/url-parser": "^2.0
|
|
52
|
-
"@smithy/util-base64": "^2.0
|
|
53
|
-
"@smithy/util-body-length-browser": "^2.0
|
|
54
|
-
"@smithy/util-body-length-node": "^2.
|
|
55
|
-
"@smithy/util-defaults-mode-browser": "^2.0
|
|
56
|
-
"@smithy/util-defaults-mode-node": "^2.0
|
|
57
|
-
"@smithy/util-endpoints": "^1.0
|
|
58
|
-
"@smithy/util-retry": "^2.0
|
|
59
|
-
"@smithy/util-utf8": "^2.0
|
|
23
|
+
"@aws-sdk/client-sts": "3.495.0",
|
|
24
|
+
"@aws-sdk/core": "3.495.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.495.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.495.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.495.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.495.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.495.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.495.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.495.0",
|
|
32
|
+
"@aws-sdk/types": "3.495.0",
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.495.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.495.0",
|
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.495.0",
|
|
36
|
+
"@smithy/config-resolver": "^2.1.0",
|
|
37
|
+
"@smithy/core": "^1.3.0",
|
|
38
|
+
"@smithy/fetch-http-handler": "^2.4.0",
|
|
39
|
+
"@smithy/hash-node": "^2.1.0",
|
|
40
|
+
"@smithy/invalid-dependency": "^2.1.0",
|
|
41
|
+
"@smithy/middleware-content-length": "^2.1.0",
|
|
42
|
+
"@smithy/middleware-endpoint": "^2.4.0",
|
|
43
|
+
"@smithy/middleware-retry": "^2.1.0",
|
|
44
|
+
"@smithy/middleware-serde": "^2.1.0",
|
|
45
|
+
"@smithy/middleware-stack": "^2.1.0",
|
|
46
|
+
"@smithy/node-config-provider": "^2.2.0",
|
|
47
|
+
"@smithy/node-http-handler": "^2.3.0",
|
|
48
|
+
"@smithy/protocol-http": "^3.1.0",
|
|
49
|
+
"@smithy/smithy-client": "^2.3.0",
|
|
50
|
+
"@smithy/types": "^2.9.0",
|
|
51
|
+
"@smithy/url-parser": "^2.1.0",
|
|
52
|
+
"@smithy/util-base64": "^2.1.0",
|
|
53
|
+
"@smithy/util-body-length-browser": "^2.1.0",
|
|
54
|
+
"@smithy/util-body-length-node": "^2.2.0",
|
|
55
|
+
"@smithy/util-defaults-mode-browser": "^2.1.0",
|
|
56
|
+
"@smithy/util-defaults-mode-node": "^2.1.0",
|
|
57
|
+
"@smithy/util-endpoints": "^1.1.0",
|
|
58
|
+
"@smithy/util-retry": "^2.1.0",
|
|
59
|
+
"@smithy/util-utf8": "^2.1.0",
|
|
60
60
|
"tslib": "^2.5.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@smithy/service-client-documentation-generator": "^2.
|
|
63
|
+
"@smithy/service-client-documentation-generator": "^2.1.0",
|
|
64
64
|
"@tsconfig/node14": "1.0.3",
|
|
65
65
|
"@types/node": "^14.14.31",
|
|
66
66
|
"concurrently": "7.0.0",
|