@aws-sdk/client-license-manager-linux-subscriptions 3.236.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/LICENSE +201 -0
- package/README.md +212 -0
- package/dist-cjs/LicenseManagerLinuxSubscriptions.js +67 -0
- package/dist-cjs/LicenseManagerLinuxSubscriptionsClient.js +40 -0
- package/dist-cjs/commands/GetServiceSettingsCommand.js +46 -0
- package/dist-cjs/commands/ListLinuxSubscriptionInstancesCommand.js +46 -0
- package/dist-cjs/commands/ListLinuxSubscriptionsCommand.js +46 -0
- package/dist-cjs/commands/UpdateServiceSettingsCommand.js +46 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/LicenseManagerLinuxSubscriptionsServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +114 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListLinuxSubscriptionInstancesPaginator.js +36 -0
- package/dist-cjs/pagination/ListLinuxSubscriptionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +494 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +51 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/LicenseManagerLinuxSubscriptions.js +63 -0
- package/dist-es/LicenseManagerLinuxSubscriptionsClient.js +36 -0
- package/dist-es/commands/GetServiceSettingsCommand.js +42 -0
- package/dist-es/commands/ListLinuxSubscriptionInstancesCommand.js +42 -0
- package/dist-es/commands/ListLinuxSubscriptionsCommand.js +42 -0
- package/dist-es/commands/UpdateServiceSettingsCommand.js +42 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/LicenseManagerLinuxSubscriptionsServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +96 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListLinuxSubscriptionInstancesPaginator.js +32 -0
- package/dist-es/pagination/ListLinuxSubscriptionsPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +483 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +46 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/LicenseManagerLinuxSubscriptions.d.ts +39 -0
- package/dist-types/LicenseManagerLinuxSubscriptionsClient.d.ts +146 -0
- package/dist-types/commands/GetServiceSettingsCommand.d.ts +37 -0
- package/dist-types/commands/ListLinuxSubscriptionInstancesCommand.d.ts +38 -0
- package/dist-types/commands/ListLinuxSubscriptionsCommand.d.ts +39 -0
- package/dist-types/commands/UpdateServiceSettingsCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/LicenseManagerLinuxSubscriptionsServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +448 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListLinuxSubscriptionInstancesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLinuxSubscriptionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +14 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/LicenseManagerLinuxSubscriptions.d.ts +72 -0
- package/dist-types/ts3.4/LicenseManagerLinuxSubscriptionsClient.d.ts +136 -0
- package/dist-types/ts3.4/commands/GetServiceSettingsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListLinuxSubscriptionInstancesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListLinuxSubscriptionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateServiceSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/LicenseManagerLinuxSubscriptionsServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +138 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +9 -0
- package/dist-types/ts3.4/pagination/ListLinuxSubscriptionInstancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListLinuxSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +53 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +82 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +102 -0
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { LicenseManagerLinuxSubscriptionsServiceException as __BaseException } from "../models/LicenseManagerLinuxSubscriptionsServiceException";
|
|
4
|
+
import { InternalServerException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
|
+
export const serializeAws_restJson1GetServiceSettingsCommand = async (input, context) => {
|
|
6
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/json",
|
|
9
|
+
};
|
|
10
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subscription/GetServiceSettings";
|
|
11
|
+
let body;
|
|
12
|
+
body = "";
|
|
13
|
+
return new __HttpRequest({
|
|
14
|
+
protocol,
|
|
15
|
+
hostname,
|
|
16
|
+
port,
|
|
17
|
+
method: "POST",
|
|
18
|
+
headers,
|
|
19
|
+
path: resolvedPath,
|
|
20
|
+
body,
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export const serializeAws_restJson1ListLinuxSubscriptionInstancesCommand = async (input, context) => {
|
|
24
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
25
|
+
const headers = {
|
|
26
|
+
"content-type": "application/json",
|
|
27
|
+
};
|
|
28
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
29
|
+
"/subscription/ListLinuxSubscriptionInstances";
|
|
30
|
+
let body;
|
|
31
|
+
body = JSON.stringify({
|
|
32
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
33
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
34
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
35
|
+
});
|
|
36
|
+
return new __HttpRequest({
|
|
37
|
+
protocol,
|
|
38
|
+
hostname,
|
|
39
|
+
port,
|
|
40
|
+
method: "POST",
|
|
41
|
+
headers,
|
|
42
|
+
path: resolvedPath,
|
|
43
|
+
body,
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
export const serializeAws_restJson1ListLinuxSubscriptionsCommand = async (input, context) => {
|
|
47
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
|
+
const headers = {
|
|
49
|
+
"content-type": "application/json",
|
|
50
|
+
};
|
|
51
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subscription/ListLinuxSubscriptions";
|
|
52
|
+
let body;
|
|
53
|
+
body = JSON.stringify({
|
|
54
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) }),
|
|
55
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
56
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
57
|
+
});
|
|
58
|
+
return new __HttpRequest({
|
|
59
|
+
protocol,
|
|
60
|
+
hostname,
|
|
61
|
+
port,
|
|
62
|
+
method: "POST",
|
|
63
|
+
headers,
|
|
64
|
+
path: resolvedPath,
|
|
65
|
+
body,
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
export const serializeAws_restJson1UpdateServiceSettingsCommand = async (input, context) => {
|
|
69
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
70
|
+
const headers = {
|
|
71
|
+
"content-type": "application/json",
|
|
72
|
+
};
|
|
73
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/subscription/UpdateServiceSettings";
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify({
|
|
76
|
+
...(input.AllowUpdate != null && { AllowUpdate: input.AllowUpdate }),
|
|
77
|
+
...(input.LinuxSubscriptionsDiscovery != null && {
|
|
78
|
+
LinuxSubscriptionsDiscovery: input.LinuxSubscriptionsDiscovery,
|
|
79
|
+
}),
|
|
80
|
+
...(input.LinuxSubscriptionsDiscoverySettings != null && {
|
|
81
|
+
LinuxSubscriptionsDiscoverySettings: serializeAws_restJson1LinuxSubscriptionsDiscoverySettings(input.LinuxSubscriptionsDiscoverySettings, context),
|
|
82
|
+
}),
|
|
83
|
+
});
|
|
84
|
+
return new __HttpRequest({
|
|
85
|
+
protocol,
|
|
86
|
+
hostname,
|
|
87
|
+
port,
|
|
88
|
+
method: "POST",
|
|
89
|
+
headers,
|
|
90
|
+
path: resolvedPath,
|
|
91
|
+
body,
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
export const deserializeAws_restJson1GetServiceSettingsCommand = async (output, context) => {
|
|
95
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
96
|
+
return deserializeAws_restJson1GetServiceSettingsCommandError(output, context);
|
|
97
|
+
}
|
|
98
|
+
const contents = map({
|
|
99
|
+
$metadata: deserializeMetadata(output),
|
|
100
|
+
});
|
|
101
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
102
|
+
if (data.HomeRegions != null) {
|
|
103
|
+
contents.HomeRegions = deserializeAws_restJson1StringList(data.HomeRegions, context);
|
|
104
|
+
}
|
|
105
|
+
if (data.LinuxSubscriptionsDiscovery != null) {
|
|
106
|
+
contents.LinuxSubscriptionsDiscovery = __expectString(data.LinuxSubscriptionsDiscovery);
|
|
107
|
+
}
|
|
108
|
+
if (data.LinuxSubscriptionsDiscoverySettings != null) {
|
|
109
|
+
contents.LinuxSubscriptionsDiscoverySettings = deserializeAws_restJson1LinuxSubscriptionsDiscoverySettings(data.LinuxSubscriptionsDiscoverySettings, context);
|
|
110
|
+
}
|
|
111
|
+
if (data.Status != null) {
|
|
112
|
+
contents.Status = __expectString(data.Status);
|
|
113
|
+
}
|
|
114
|
+
if (data.StatusMessage != null) {
|
|
115
|
+
contents.StatusMessage = deserializeAws_restJson1StringMap(data.StatusMessage, context);
|
|
116
|
+
}
|
|
117
|
+
return contents;
|
|
118
|
+
};
|
|
119
|
+
const deserializeAws_restJson1GetServiceSettingsCommandError = async (output, context) => {
|
|
120
|
+
const parsedOutput = {
|
|
121
|
+
...output,
|
|
122
|
+
body: await parseErrorBody(output.body, context),
|
|
123
|
+
};
|
|
124
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
125
|
+
switch (errorCode) {
|
|
126
|
+
case "InternalServerException":
|
|
127
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
128
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
129
|
+
case "ThrottlingException":
|
|
130
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
131
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
132
|
+
case "ValidationException":
|
|
133
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
134
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
135
|
+
default:
|
|
136
|
+
const parsedBody = parsedOutput.body;
|
|
137
|
+
throwDefaultError({
|
|
138
|
+
output,
|
|
139
|
+
parsedBody,
|
|
140
|
+
exceptionCtor: __BaseException,
|
|
141
|
+
errorCode,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
export const deserializeAws_restJson1ListLinuxSubscriptionInstancesCommand = async (output, context) => {
|
|
146
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
147
|
+
return deserializeAws_restJson1ListLinuxSubscriptionInstancesCommandError(output, context);
|
|
148
|
+
}
|
|
149
|
+
const contents = map({
|
|
150
|
+
$metadata: deserializeMetadata(output),
|
|
151
|
+
});
|
|
152
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
153
|
+
if (data.Instances != null) {
|
|
154
|
+
contents.Instances = deserializeAws_restJson1InstanceList(data.Instances, context);
|
|
155
|
+
}
|
|
156
|
+
if (data.NextToken != null) {
|
|
157
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
158
|
+
}
|
|
159
|
+
return contents;
|
|
160
|
+
};
|
|
161
|
+
const deserializeAws_restJson1ListLinuxSubscriptionInstancesCommandError = async (output, context) => {
|
|
162
|
+
const parsedOutput = {
|
|
163
|
+
...output,
|
|
164
|
+
body: await parseErrorBody(output.body, context),
|
|
165
|
+
};
|
|
166
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
167
|
+
switch (errorCode) {
|
|
168
|
+
case "InternalServerException":
|
|
169
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
170
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
171
|
+
case "ThrottlingException":
|
|
172
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
173
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
174
|
+
case "ValidationException":
|
|
175
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
176
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
177
|
+
default:
|
|
178
|
+
const parsedBody = parsedOutput.body;
|
|
179
|
+
throwDefaultError({
|
|
180
|
+
output,
|
|
181
|
+
parsedBody,
|
|
182
|
+
exceptionCtor: __BaseException,
|
|
183
|
+
errorCode,
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
export const deserializeAws_restJson1ListLinuxSubscriptionsCommand = async (output, context) => {
|
|
188
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
189
|
+
return deserializeAws_restJson1ListLinuxSubscriptionsCommandError(output, context);
|
|
190
|
+
}
|
|
191
|
+
const contents = map({
|
|
192
|
+
$metadata: deserializeMetadata(output),
|
|
193
|
+
});
|
|
194
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
195
|
+
if (data.NextToken != null) {
|
|
196
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
197
|
+
}
|
|
198
|
+
if (data.Subscriptions != null) {
|
|
199
|
+
contents.Subscriptions = deserializeAws_restJson1SubscriptionList(data.Subscriptions, context);
|
|
200
|
+
}
|
|
201
|
+
return contents;
|
|
202
|
+
};
|
|
203
|
+
const deserializeAws_restJson1ListLinuxSubscriptionsCommandError = async (output, context) => {
|
|
204
|
+
const parsedOutput = {
|
|
205
|
+
...output,
|
|
206
|
+
body: await parseErrorBody(output.body, context),
|
|
207
|
+
};
|
|
208
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
209
|
+
switch (errorCode) {
|
|
210
|
+
case "InternalServerException":
|
|
211
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
212
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
213
|
+
case "ThrottlingException":
|
|
214
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
215
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
216
|
+
case "ValidationException":
|
|
217
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
218
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
219
|
+
default:
|
|
220
|
+
const parsedBody = parsedOutput.body;
|
|
221
|
+
throwDefaultError({
|
|
222
|
+
output,
|
|
223
|
+
parsedBody,
|
|
224
|
+
exceptionCtor: __BaseException,
|
|
225
|
+
errorCode,
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
export const deserializeAws_restJson1UpdateServiceSettingsCommand = async (output, context) => {
|
|
230
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
231
|
+
return deserializeAws_restJson1UpdateServiceSettingsCommandError(output, context);
|
|
232
|
+
}
|
|
233
|
+
const contents = map({
|
|
234
|
+
$metadata: deserializeMetadata(output),
|
|
235
|
+
});
|
|
236
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
237
|
+
if (data.HomeRegions != null) {
|
|
238
|
+
contents.HomeRegions = deserializeAws_restJson1StringList(data.HomeRegions, context);
|
|
239
|
+
}
|
|
240
|
+
if (data.LinuxSubscriptionsDiscovery != null) {
|
|
241
|
+
contents.LinuxSubscriptionsDiscovery = __expectString(data.LinuxSubscriptionsDiscovery);
|
|
242
|
+
}
|
|
243
|
+
if (data.LinuxSubscriptionsDiscoverySettings != null) {
|
|
244
|
+
contents.LinuxSubscriptionsDiscoverySettings = deserializeAws_restJson1LinuxSubscriptionsDiscoverySettings(data.LinuxSubscriptionsDiscoverySettings, context);
|
|
245
|
+
}
|
|
246
|
+
if (data.Status != null) {
|
|
247
|
+
contents.Status = __expectString(data.Status);
|
|
248
|
+
}
|
|
249
|
+
if (data.StatusMessage != null) {
|
|
250
|
+
contents.StatusMessage = deserializeAws_restJson1StringMap(data.StatusMessage, context);
|
|
251
|
+
}
|
|
252
|
+
return contents;
|
|
253
|
+
};
|
|
254
|
+
const deserializeAws_restJson1UpdateServiceSettingsCommandError = async (output, context) => {
|
|
255
|
+
const parsedOutput = {
|
|
256
|
+
...output,
|
|
257
|
+
body: await parseErrorBody(output.body, context),
|
|
258
|
+
};
|
|
259
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
|
+
switch (errorCode) {
|
|
261
|
+
case "InternalServerException":
|
|
262
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
263
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
264
|
+
case "ThrottlingException":
|
|
265
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
266
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
267
|
+
case "ValidationException":
|
|
268
|
+
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
269
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
270
|
+
default:
|
|
271
|
+
const parsedBody = parsedOutput.body;
|
|
272
|
+
throwDefaultError({
|
|
273
|
+
output,
|
|
274
|
+
parsedBody,
|
|
275
|
+
exceptionCtor: __BaseException,
|
|
276
|
+
errorCode,
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
const map = __map;
|
|
281
|
+
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
282
|
+
const contents = map({});
|
|
283
|
+
const data = parsedOutput.body;
|
|
284
|
+
if (data.message != null) {
|
|
285
|
+
contents.message = __expectString(data.message);
|
|
286
|
+
}
|
|
287
|
+
const exception = new InternalServerException({
|
|
288
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
289
|
+
...contents,
|
|
290
|
+
});
|
|
291
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
292
|
+
};
|
|
293
|
+
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
294
|
+
const contents = map({});
|
|
295
|
+
const data = parsedOutput.body;
|
|
296
|
+
if (data.message != null) {
|
|
297
|
+
contents.message = __expectString(data.message);
|
|
298
|
+
}
|
|
299
|
+
const exception = new ThrottlingException({
|
|
300
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
301
|
+
...contents,
|
|
302
|
+
});
|
|
303
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
304
|
+
};
|
|
305
|
+
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
306
|
+
const contents = map({});
|
|
307
|
+
const data = parsedOutput.body;
|
|
308
|
+
if (data.message != null) {
|
|
309
|
+
contents.message = __expectString(data.message);
|
|
310
|
+
}
|
|
311
|
+
const exception = new ValidationException({
|
|
312
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
313
|
+
...contents,
|
|
314
|
+
});
|
|
315
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
316
|
+
};
|
|
317
|
+
const serializeAws_restJson1Filter = (input, context) => {
|
|
318
|
+
return {
|
|
319
|
+
...(input.Name != null && { Name: input.Name }),
|
|
320
|
+
...(input.Operator != null && { Operator: input.Operator }),
|
|
321
|
+
...(input.Values != null && { Values: serializeAws_restJson1StringList(input.Values, context) }),
|
|
322
|
+
};
|
|
323
|
+
};
|
|
324
|
+
const serializeAws_restJson1FilterList = (input, context) => {
|
|
325
|
+
return input
|
|
326
|
+
.filter((e) => e != null)
|
|
327
|
+
.map((entry) => {
|
|
328
|
+
return serializeAws_restJson1Filter(entry, context);
|
|
329
|
+
});
|
|
330
|
+
};
|
|
331
|
+
const serializeAws_restJson1LinuxSubscriptionsDiscoverySettings = (input, context) => {
|
|
332
|
+
return {
|
|
333
|
+
...(input.OrganizationIntegration != null && { OrganizationIntegration: input.OrganizationIntegration }),
|
|
334
|
+
...(input.SourceRegions != null && {
|
|
335
|
+
SourceRegions: serializeAws_restJson1StringList(input.SourceRegions, context),
|
|
336
|
+
}),
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
const serializeAws_restJson1StringList = (input, context) => {
|
|
340
|
+
return input
|
|
341
|
+
.filter((e) => e != null)
|
|
342
|
+
.map((entry) => {
|
|
343
|
+
return entry;
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
const deserializeAws_restJson1Instance = (output, context) => {
|
|
347
|
+
return {
|
|
348
|
+
AccountID: __expectString(output.AccountID),
|
|
349
|
+
AmiId: __expectString(output.AmiId),
|
|
350
|
+
InstanceID: __expectString(output.InstanceID),
|
|
351
|
+
InstanceType: __expectString(output.InstanceType),
|
|
352
|
+
LastUpdatedTime: __expectString(output.LastUpdatedTime),
|
|
353
|
+
ProductCode: output.ProductCode != null ? deserializeAws_restJson1ProductCodeList(output.ProductCode, context) : undefined,
|
|
354
|
+
Region: __expectString(output.Region),
|
|
355
|
+
Status: __expectString(output.Status),
|
|
356
|
+
SubscriptionName: __expectString(output.SubscriptionName),
|
|
357
|
+
UsageOperation: __expectString(output.UsageOperation),
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
const deserializeAws_restJson1InstanceList = (output, context) => {
|
|
361
|
+
const retVal = (output || [])
|
|
362
|
+
.filter((e) => e != null)
|
|
363
|
+
.map((entry) => {
|
|
364
|
+
if (entry === null) {
|
|
365
|
+
return null;
|
|
366
|
+
}
|
|
367
|
+
return deserializeAws_restJson1Instance(entry, context);
|
|
368
|
+
});
|
|
369
|
+
return retVal;
|
|
370
|
+
};
|
|
371
|
+
const deserializeAws_restJson1LinuxSubscriptionsDiscoverySettings = (output, context) => {
|
|
372
|
+
return {
|
|
373
|
+
OrganizationIntegration: __expectString(output.OrganizationIntegration),
|
|
374
|
+
SourceRegions: output.SourceRegions != null ? deserializeAws_restJson1StringList(output.SourceRegions, context) : undefined,
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
const deserializeAws_restJson1ProductCodeList = (output, context) => {
|
|
378
|
+
const retVal = (output || [])
|
|
379
|
+
.filter((e) => e != null)
|
|
380
|
+
.map((entry) => {
|
|
381
|
+
if (entry === null) {
|
|
382
|
+
return null;
|
|
383
|
+
}
|
|
384
|
+
return __expectString(entry);
|
|
385
|
+
});
|
|
386
|
+
return retVal;
|
|
387
|
+
};
|
|
388
|
+
const deserializeAws_restJson1StringList = (output, context) => {
|
|
389
|
+
const retVal = (output || [])
|
|
390
|
+
.filter((e) => e != null)
|
|
391
|
+
.map((entry) => {
|
|
392
|
+
if (entry === null) {
|
|
393
|
+
return null;
|
|
394
|
+
}
|
|
395
|
+
return __expectString(entry);
|
|
396
|
+
});
|
|
397
|
+
return retVal;
|
|
398
|
+
};
|
|
399
|
+
const deserializeAws_restJson1StringMap = (output, context) => {
|
|
400
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
401
|
+
if (value === null) {
|
|
402
|
+
return acc;
|
|
403
|
+
}
|
|
404
|
+
acc[key] = __expectString(value);
|
|
405
|
+
return acc;
|
|
406
|
+
}, {});
|
|
407
|
+
};
|
|
408
|
+
const deserializeAws_restJson1Subscription = (output, context) => {
|
|
409
|
+
return {
|
|
410
|
+
InstanceCount: __expectLong(output.InstanceCount),
|
|
411
|
+
Name: __expectString(output.Name),
|
|
412
|
+
Type: __expectString(output.Type),
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
const deserializeAws_restJson1SubscriptionList = (output, context) => {
|
|
416
|
+
const retVal = (output || [])
|
|
417
|
+
.filter((e) => e != null)
|
|
418
|
+
.map((entry) => {
|
|
419
|
+
if (entry === null) {
|
|
420
|
+
return null;
|
|
421
|
+
}
|
|
422
|
+
return deserializeAws_restJson1Subscription(entry, context);
|
|
423
|
+
});
|
|
424
|
+
return retVal;
|
|
425
|
+
};
|
|
426
|
+
const deserializeMetadata = (output) => ({
|
|
427
|
+
httpStatusCode: output.statusCode,
|
|
428
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
429
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
430
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
431
|
+
});
|
|
432
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
433
|
+
if (streamBody instanceof Uint8Array) {
|
|
434
|
+
return Promise.resolve(streamBody);
|
|
435
|
+
}
|
|
436
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
437
|
+
};
|
|
438
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
439
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
440
|
+
value !== null &&
|
|
441
|
+
value !== "" &&
|
|
442
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
443
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
444
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
445
|
+
if (encoded.length) {
|
|
446
|
+
return JSON.parse(encoded);
|
|
447
|
+
}
|
|
448
|
+
return {};
|
|
449
|
+
});
|
|
450
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
451
|
+
const value = await parseBody(errorBody, context);
|
|
452
|
+
value.message = value.message ?? value.Message;
|
|
453
|
+
return value;
|
|
454
|
+
};
|
|
455
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
456
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
457
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
458
|
+
let cleanValue = rawValue;
|
|
459
|
+
if (typeof cleanValue === "number") {
|
|
460
|
+
cleanValue = cleanValue.toString();
|
|
461
|
+
}
|
|
462
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
463
|
+
cleanValue = cleanValue.split(",")[0];
|
|
464
|
+
}
|
|
465
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
466
|
+
cleanValue = cleanValue.split(":")[0];
|
|
467
|
+
}
|
|
468
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
469
|
+
cleanValue = cleanValue.split("#")[1];
|
|
470
|
+
}
|
|
471
|
+
return cleanValue;
|
|
472
|
+
};
|
|
473
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
474
|
+
if (headerKey !== undefined) {
|
|
475
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
476
|
+
}
|
|
477
|
+
if (data.code !== undefined) {
|
|
478
|
+
return sanitizeErrorCode(data.code);
|
|
479
|
+
}
|
|
480
|
+
if (data["__type"] !== undefined) {
|
|
481
|
+
return sanitizeErrorCode(data["__type"]);
|
|
482
|
+
}
|
|
483
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
7
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
8
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
12
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
|
+
export const getRuntimeConfig = (config) => {
|
|
14
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
15
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
16
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
17
|
+
return {
|
|
18
|
+
...clientSharedValues,
|
|
19
|
+
...config,
|
|
20
|
+
runtime: "browser",
|
|
21
|
+
defaultsMode,
|
|
22
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
23
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
25
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
26
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
27
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
28
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
29
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
30
|
+
sha256: config?.sha256 ?? Sha256,
|
|
31
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
32
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
33
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
35
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { Hash } from "@aws-sdk/hash-node";
|
|
6
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
10
|
+
import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
11
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
12
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
13
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
14
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
15
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
18
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
28
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
29
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
30
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
31
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
32
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
34
|
+
retryMode: config?.retryMode ??
|
|
35
|
+
loadNodeConfig({
|
|
36
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
37
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
38
|
+
}),
|
|
39
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
40
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
41
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
43
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
44
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NoOpLogger } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
4
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
5
|
+
export const getRuntimeConfig = (config) => ({
|
|
6
|
+
apiVersion: "2018-05-10",
|
|
7
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
8
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
9
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
10
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
11
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
12
|
+
serviceId: config?.serviceId ?? "License Manager Linux Subscriptions",
|
|
13
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
14
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { GetServiceSettingsCommandInput, GetServiceSettingsCommandOutput } from "./commands/GetServiceSettingsCommand";
|
|
3
|
+
import { ListLinuxSubscriptionInstancesCommandInput, ListLinuxSubscriptionInstancesCommandOutput } from "./commands/ListLinuxSubscriptionInstancesCommand";
|
|
4
|
+
import { ListLinuxSubscriptionsCommandInput, ListLinuxSubscriptionsCommandOutput } from "./commands/ListLinuxSubscriptionsCommand";
|
|
5
|
+
import { UpdateServiceSettingsCommandInput, UpdateServiceSettingsCommandOutput } from "./commands/UpdateServiceSettingsCommand";
|
|
6
|
+
import { LicenseManagerLinuxSubscriptionsClient } from "./LicenseManagerLinuxSubscriptionsClient";
|
|
7
|
+
/**
|
|
8
|
+
* <p>With License Manager, you can discover and track your commercial Linux subscriptions on running
|
|
9
|
+
* Amazon EC2 instances.</p>
|
|
10
|
+
*/
|
|
11
|
+
export declare class LicenseManagerLinuxSubscriptions extends LicenseManagerLinuxSubscriptionsClient {
|
|
12
|
+
/**
|
|
13
|
+
* <p>Lists the Linux subscriptions service settings.</p>
|
|
14
|
+
*/
|
|
15
|
+
getServiceSettings(args: GetServiceSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetServiceSettingsCommandOutput>;
|
|
16
|
+
getServiceSettings(args: GetServiceSettingsCommandInput, cb: (err: any, data?: GetServiceSettingsCommandOutput) => void): void;
|
|
17
|
+
getServiceSettings(args: GetServiceSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceSettingsCommandOutput) => void): void;
|
|
18
|
+
/**
|
|
19
|
+
* <p>Lists the running Amazon EC2 instances that were discovered with commercial Linux
|
|
20
|
+
* subscriptions.</p>
|
|
21
|
+
*/
|
|
22
|
+
listLinuxSubscriptionInstances(args: ListLinuxSubscriptionInstancesCommandInput, options?: __HttpHandlerOptions): Promise<ListLinuxSubscriptionInstancesCommandOutput>;
|
|
23
|
+
listLinuxSubscriptionInstances(args: ListLinuxSubscriptionInstancesCommandInput, cb: (err: any, data?: ListLinuxSubscriptionInstancesCommandOutput) => void): void;
|
|
24
|
+
listLinuxSubscriptionInstances(args: ListLinuxSubscriptionInstancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLinuxSubscriptionInstancesCommandOutput) => void): void;
|
|
25
|
+
/**
|
|
26
|
+
* <p>Lists the Linux subscriptions that have been discovered. If you have linked your
|
|
27
|
+
* organization, the returned results will include data aggregated across your accounts in
|
|
28
|
+
* Organizations.</p>
|
|
29
|
+
*/
|
|
30
|
+
listLinuxSubscriptions(args: ListLinuxSubscriptionsCommandInput, options?: __HttpHandlerOptions): Promise<ListLinuxSubscriptionsCommandOutput>;
|
|
31
|
+
listLinuxSubscriptions(args: ListLinuxSubscriptionsCommandInput, cb: (err: any, data?: ListLinuxSubscriptionsCommandOutput) => void): void;
|
|
32
|
+
listLinuxSubscriptions(args: ListLinuxSubscriptionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLinuxSubscriptionsCommandOutput) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* <p>Updates the service settings for Linux subscriptions.</p>
|
|
35
|
+
*/
|
|
36
|
+
updateServiceSettings(args: UpdateServiceSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateServiceSettingsCommandOutput>;
|
|
37
|
+
updateServiceSettings(args: UpdateServiceSettingsCommandInput, cb: (err: any, data?: UpdateServiceSettingsCommandOutput) => void): void;
|
|
38
|
+
updateServiceSettings(args: UpdateServiceSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateServiceSettingsCommandOutput) => void): void;
|
|
39
|
+
}
|