@aws-sdk/client-license-manager-linux-subscriptions 3.928.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +461 -505
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/LicenseManagerLinuxSubscriptionsClient.js +2 -0
- package/dist-es/commands/DeregisterSubscriptionProviderCommand.js +3 -9
- package/dist-es/commands/GetRegisteredSubscriptionProviderCommand.js +3 -9
- package/dist-es/commands/GetServiceSettingsCommand.js +3 -9
- package/dist-es/commands/ListLinuxSubscriptionInstancesCommand.js +3 -9
- package/dist-es/commands/ListLinuxSubscriptionsCommand.js +3 -9
- package/dist-es/commands/ListRegisteredSubscriptionProvidersCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/RegisterSubscriptionProviderCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -10
- package/dist-es/commands/UpdateServiceSettingsCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -17
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-es/schemas/schemas_0.js +430 -0
- package/dist-types/LicenseManagerLinuxSubscriptionsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -16
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +54 -0
- package/dist-types/ts3.4/LicenseManagerLinuxSubscriptionsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -12
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +60 -0
- package/package.json +2 -2
- package/dist-es/protocols/Aws_restJson1.js +0 -398
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -101
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -137
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StaticErrorSchema,
|
|
3
|
+
StaticListSchema,
|
|
4
|
+
StaticMapSchema,
|
|
5
|
+
StaticOperationSchema,
|
|
6
|
+
StaticStructureSchema,
|
|
7
|
+
} from "@smithy/types";
|
|
8
|
+
export declare var DeregisterSubscriptionProviderRequest: StaticStructureSchema;
|
|
9
|
+
export declare var DeregisterSubscriptionProviderResponse: StaticStructureSchema;
|
|
10
|
+
export declare var Filter: StaticStructureSchema;
|
|
11
|
+
export declare var GetRegisteredSubscriptionProviderRequest: StaticStructureSchema;
|
|
12
|
+
export declare var GetRegisteredSubscriptionProviderResponse: StaticStructureSchema;
|
|
13
|
+
export declare var GetServiceSettingsRequest: StaticStructureSchema;
|
|
14
|
+
export declare var GetServiceSettingsResponse: StaticStructureSchema;
|
|
15
|
+
export declare var Instance: StaticStructureSchema;
|
|
16
|
+
export declare var InternalServerException: StaticErrorSchema;
|
|
17
|
+
export declare var LinuxSubscriptionsDiscoverySettings: StaticStructureSchema;
|
|
18
|
+
export declare var ListLinuxSubscriptionInstancesRequest: StaticStructureSchema;
|
|
19
|
+
export declare var ListLinuxSubscriptionInstancesResponse: StaticStructureSchema;
|
|
20
|
+
export declare var ListLinuxSubscriptionsRequest: StaticStructureSchema;
|
|
21
|
+
export declare var ListLinuxSubscriptionsResponse: StaticStructureSchema;
|
|
22
|
+
export declare var ListRegisteredSubscriptionProvidersRequest: StaticStructureSchema;
|
|
23
|
+
export declare var ListRegisteredSubscriptionProvidersResponse: StaticStructureSchema;
|
|
24
|
+
export declare var ListTagsForResourceRequest: StaticStructureSchema;
|
|
25
|
+
export declare var ListTagsForResourceResponse: StaticStructureSchema;
|
|
26
|
+
export declare var RegisteredSubscriptionProvider: StaticStructureSchema;
|
|
27
|
+
export declare var RegisterSubscriptionProviderRequest: StaticStructureSchema;
|
|
28
|
+
export declare var RegisterSubscriptionProviderResponse: StaticStructureSchema;
|
|
29
|
+
export declare var ResourceNotFoundException: StaticErrorSchema;
|
|
30
|
+
export declare var Subscription: StaticStructureSchema;
|
|
31
|
+
export declare var TagResourceRequest: StaticStructureSchema;
|
|
32
|
+
export declare var TagResourceResponse: StaticStructureSchema;
|
|
33
|
+
export declare var ThrottlingException: StaticErrorSchema;
|
|
34
|
+
export declare var UntagResourceRequest: StaticStructureSchema;
|
|
35
|
+
export declare var UntagResourceResponse: StaticStructureSchema;
|
|
36
|
+
export declare var UpdateServiceSettingsRequest: StaticStructureSchema;
|
|
37
|
+
export declare var UpdateServiceSettingsResponse: StaticStructureSchema;
|
|
38
|
+
export declare var ValidationException: StaticErrorSchema;
|
|
39
|
+
export declare var LicenseManagerLinuxSubscriptionsServiceException: StaticErrorSchema;
|
|
40
|
+
export declare var FilterList: StaticListSchema;
|
|
41
|
+
export declare var InstanceList: StaticListSchema;
|
|
42
|
+
export declare var ProductCodeList: number;
|
|
43
|
+
export declare var RegisteredSubscriptionProviderList: StaticListSchema;
|
|
44
|
+
export declare var StringList: number;
|
|
45
|
+
export declare var SubscriptionList: StaticListSchema;
|
|
46
|
+
export declare var SubscriptionProviderSourceList: number;
|
|
47
|
+
export declare var TagKeyList: StaticListSchema;
|
|
48
|
+
export declare var StringMap: number;
|
|
49
|
+
export declare var Tags: StaticMapSchema;
|
|
50
|
+
export declare var DeregisterSubscriptionProvider: StaticOperationSchema;
|
|
51
|
+
export declare var GetRegisteredSubscriptionProvider: StaticOperationSchema;
|
|
52
|
+
export declare var GetServiceSettings: StaticOperationSchema;
|
|
53
|
+
export declare var ListLinuxSubscriptionInstances: StaticOperationSchema;
|
|
54
|
+
export declare var ListLinuxSubscriptions: StaticOperationSchema;
|
|
55
|
+
export declare var ListRegisteredSubscriptionProviders: StaticOperationSchema;
|
|
56
|
+
export declare var ListTagsForResource: StaticOperationSchema;
|
|
57
|
+
export declare var RegisterSubscriptionProvider: StaticOperationSchema;
|
|
58
|
+
export declare var TagResource: StaticOperationSchema;
|
|
59
|
+
export declare var UntagResource: StaticOperationSchema;
|
|
60
|
+
export declare var UpdateServiceSettings: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.929.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-license-manager-linux-subscriptions",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.928.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.929.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.922.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.922.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.922.0",
|
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { LicenseManagerLinuxSubscriptionsServiceException as __BaseException } from "../models/LicenseManagerLinuxSubscriptionsServiceException";
|
|
5
|
-
import { InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const se_DeregisterSubscriptionProviderCommand = async (input, context) => {
|
|
7
|
-
const b = rb(input, context);
|
|
8
|
-
const headers = {
|
|
9
|
-
"content-type": "application/json",
|
|
10
|
-
};
|
|
11
|
-
b.bp("/subscription/DeregisterSubscriptionProvider");
|
|
12
|
-
let body;
|
|
13
|
-
body = JSON.stringify(take(input, {
|
|
14
|
-
SubscriptionProviderArn: [],
|
|
15
|
-
}));
|
|
16
|
-
b.m("POST").h(headers).b(body);
|
|
17
|
-
return b.build();
|
|
18
|
-
};
|
|
19
|
-
export const se_GetRegisteredSubscriptionProviderCommand = async (input, context) => {
|
|
20
|
-
const b = rb(input, context);
|
|
21
|
-
const headers = {
|
|
22
|
-
"content-type": "application/json",
|
|
23
|
-
};
|
|
24
|
-
b.bp("/subscription/GetRegisteredSubscriptionProvider");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify(take(input, {
|
|
27
|
-
SubscriptionProviderArn: [],
|
|
28
|
-
}));
|
|
29
|
-
b.m("POST").h(headers).b(body);
|
|
30
|
-
return b.build();
|
|
31
|
-
};
|
|
32
|
-
export const se_GetServiceSettingsCommand = async (input, context) => {
|
|
33
|
-
const b = rb(input, context);
|
|
34
|
-
const headers = {};
|
|
35
|
-
b.bp("/subscription/GetServiceSettings");
|
|
36
|
-
let body;
|
|
37
|
-
b.m("POST").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
export const se_ListLinuxSubscriptionInstancesCommand = async (input, context) => {
|
|
41
|
-
const b = rb(input, context);
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
b.bp("/subscription/ListLinuxSubscriptionInstances");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(take(input, {
|
|
48
|
-
Filters: (_) => _json(_),
|
|
49
|
-
MaxResults: [],
|
|
50
|
-
NextToken: [],
|
|
51
|
-
}));
|
|
52
|
-
b.m("POST").h(headers).b(body);
|
|
53
|
-
return b.build();
|
|
54
|
-
};
|
|
55
|
-
export const se_ListLinuxSubscriptionsCommand = async (input, context) => {
|
|
56
|
-
const b = rb(input, context);
|
|
57
|
-
const headers = {
|
|
58
|
-
"content-type": "application/json",
|
|
59
|
-
};
|
|
60
|
-
b.bp("/subscription/ListLinuxSubscriptions");
|
|
61
|
-
let body;
|
|
62
|
-
body = JSON.stringify(take(input, {
|
|
63
|
-
Filters: (_) => _json(_),
|
|
64
|
-
MaxResults: [],
|
|
65
|
-
NextToken: [],
|
|
66
|
-
}));
|
|
67
|
-
b.m("POST").h(headers).b(body);
|
|
68
|
-
return b.build();
|
|
69
|
-
};
|
|
70
|
-
export const se_ListRegisteredSubscriptionProvidersCommand = async (input, context) => {
|
|
71
|
-
const b = rb(input, context);
|
|
72
|
-
const headers = {
|
|
73
|
-
"content-type": "application/json",
|
|
74
|
-
};
|
|
75
|
-
b.bp("/subscription/ListRegisteredSubscriptionProviders");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify(take(input, {
|
|
78
|
-
MaxResults: [],
|
|
79
|
-
NextToken: [],
|
|
80
|
-
SubscriptionProviderSources: (_) => _json(_),
|
|
81
|
-
}));
|
|
82
|
-
b.m("POST").h(headers).b(body);
|
|
83
|
-
return b.build();
|
|
84
|
-
};
|
|
85
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
86
|
-
const b = rb(input, context);
|
|
87
|
-
const headers = {};
|
|
88
|
-
b.bp("/tags/{resourceArn}");
|
|
89
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
90
|
-
let body;
|
|
91
|
-
b.m("GET").h(headers).b(body);
|
|
92
|
-
return b.build();
|
|
93
|
-
};
|
|
94
|
-
export const se_RegisterSubscriptionProviderCommand = async (input, context) => {
|
|
95
|
-
const b = rb(input, context);
|
|
96
|
-
const headers = {
|
|
97
|
-
"content-type": "application/json",
|
|
98
|
-
};
|
|
99
|
-
b.bp("/subscription/RegisterSubscriptionProvider");
|
|
100
|
-
let body;
|
|
101
|
-
body = JSON.stringify(take(input, {
|
|
102
|
-
SecretArn: [],
|
|
103
|
-
SubscriptionProviderSource: [],
|
|
104
|
-
Tags: (_) => _json(_),
|
|
105
|
-
}));
|
|
106
|
-
b.m("POST").h(headers).b(body);
|
|
107
|
-
return b.build();
|
|
108
|
-
};
|
|
109
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
110
|
-
const b = rb(input, context);
|
|
111
|
-
const headers = {
|
|
112
|
-
"content-type": "application/json",
|
|
113
|
-
};
|
|
114
|
-
b.bp("/tags/{resourceArn}");
|
|
115
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(take(input, {
|
|
118
|
-
tags: (_) => _json(_),
|
|
119
|
-
}));
|
|
120
|
-
b.m("PUT").h(headers).b(body);
|
|
121
|
-
return b.build();
|
|
122
|
-
};
|
|
123
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
124
|
-
const b = rb(input, context);
|
|
125
|
-
const headers = {};
|
|
126
|
-
b.bp("/tags/{resourceArn}");
|
|
127
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
128
|
-
const query = map({
|
|
129
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
130
|
-
});
|
|
131
|
-
let body;
|
|
132
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
133
|
-
return b.build();
|
|
134
|
-
};
|
|
135
|
-
export const se_UpdateServiceSettingsCommand = async (input, context) => {
|
|
136
|
-
const b = rb(input, context);
|
|
137
|
-
const headers = {
|
|
138
|
-
"content-type": "application/json",
|
|
139
|
-
};
|
|
140
|
-
b.bp("/subscription/UpdateServiceSettings");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(take(input, {
|
|
143
|
-
AllowUpdate: [],
|
|
144
|
-
LinuxSubscriptionsDiscovery: [],
|
|
145
|
-
LinuxSubscriptionsDiscoverySettings: (_) => _json(_),
|
|
146
|
-
}));
|
|
147
|
-
b.m("POST").h(headers).b(body);
|
|
148
|
-
return b.build();
|
|
149
|
-
};
|
|
150
|
-
export const de_DeregisterSubscriptionProviderCommand = async (output, context) => {
|
|
151
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
152
|
-
return de_CommandError(output, context);
|
|
153
|
-
}
|
|
154
|
-
const contents = map({
|
|
155
|
-
$metadata: deserializeMetadata(output),
|
|
156
|
-
});
|
|
157
|
-
await collectBody(output.body, context);
|
|
158
|
-
return contents;
|
|
159
|
-
};
|
|
160
|
-
export const de_GetRegisteredSubscriptionProviderCommand = async (output, context) => {
|
|
161
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
162
|
-
return de_CommandError(output, context);
|
|
163
|
-
}
|
|
164
|
-
const contents = map({
|
|
165
|
-
$metadata: deserializeMetadata(output),
|
|
166
|
-
});
|
|
167
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
168
|
-
const doc = take(data, {
|
|
169
|
-
LastSuccessfulDataRetrievalTime: __expectString,
|
|
170
|
-
SecretArn: __expectString,
|
|
171
|
-
SubscriptionProviderArn: __expectString,
|
|
172
|
-
SubscriptionProviderSource: __expectString,
|
|
173
|
-
SubscriptionProviderStatus: __expectString,
|
|
174
|
-
SubscriptionProviderStatusMessage: __expectString,
|
|
175
|
-
});
|
|
176
|
-
Object.assign(contents, doc);
|
|
177
|
-
return contents;
|
|
178
|
-
};
|
|
179
|
-
export const de_GetServiceSettingsCommand = async (output, context) => {
|
|
180
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
181
|
-
return de_CommandError(output, context);
|
|
182
|
-
}
|
|
183
|
-
const contents = map({
|
|
184
|
-
$metadata: deserializeMetadata(output),
|
|
185
|
-
});
|
|
186
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
187
|
-
const doc = take(data, {
|
|
188
|
-
HomeRegions: _json,
|
|
189
|
-
LinuxSubscriptionsDiscovery: __expectString,
|
|
190
|
-
LinuxSubscriptionsDiscoverySettings: _json,
|
|
191
|
-
Status: __expectString,
|
|
192
|
-
StatusMessage: _json,
|
|
193
|
-
});
|
|
194
|
-
Object.assign(contents, doc);
|
|
195
|
-
return contents;
|
|
196
|
-
};
|
|
197
|
-
export const de_ListLinuxSubscriptionInstancesCommand = async (output, context) => {
|
|
198
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
199
|
-
return de_CommandError(output, context);
|
|
200
|
-
}
|
|
201
|
-
const contents = map({
|
|
202
|
-
$metadata: deserializeMetadata(output),
|
|
203
|
-
});
|
|
204
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
205
|
-
const doc = take(data, {
|
|
206
|
-
Instances: _json,
|
|
207
|
-
NextToken: __expectString,
|
|
208
|
-
});
|
|
209
|
-
Object.assign(contents, doc);
|
|
210
|
-
return contents;
|
|
211
|
-
};
|
|
212
|
-
export const de_ListLinuxSubscriptionsCommand = async (output, context) => {
|
|
213
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
214
|
-
return de_CommandError(output, context);
|
|
215
|
-
}
|
|
216
|
-
const contents = map({
|
|
217
|
-
$metadata: deserializeMetadata(output),
|
|
218
|
-
});
|
|
219
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
220
|
-
const doc = take(data, {
|
|
221
|
-
NextToken: __expectString,
|
|
222
|
-
Subscriptions: _json,
|
|
223
|
-
});
|
|
224
|
-
Object.assign(contents, doc);
|
|
225
|
-
return contents;
|
|
226
|
-
};
|
|
227
|
-
export const de_ListRegisteredSubscriptionProvidersCommand = async (output, context) => {
|
|
228
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
229
|
-
return de_CommandError(output, context);
|
|
230
|
-
}
|
|
231
|
-
const contents = map({
|
|
232
|
-
$metadata: deserializeMetadata(output),
|
|
233
|
-
});
|
|
234
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
235
|
-
const doc = take(data, {
|
|
236
|
-
NextToken: __expectString,
|
|
237
|
-
RegisteredSubscriptionProviders: _json,
|
|
238
|
-
});
|
|
239
|
-
Object.assign(contents, doc);
|
|
240
|
-
return contents;
|
|
241
|
-
};
|
|
242
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
243
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
244
|
-
return de_CommandError(output, context);
|
|
245
|
-
}
|
|
246
|
-
const contents = map({
|
|
247
|
-
$metadata: deserializeMetadata(output),
|
|
248
|
-
});
|
|
249
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
250
|
-
const doc = take(data, {
|
|
251
|
-
tags: _json,
|
|
252
|
-
});
|
|
253
|
-
Object.assign(contents, doc);
|
|
254
|
-
return contents;
|
|
255
|
-
};
|
|
256
|
-
export const de_RegisterSubscriptionProviderCommand = async (output, context) => {
|
|
257
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
258
|
-
return de_CommandError(output, context);
|
|
259
|
-
}
|
|
260
|
-
const contents = map({
|
|
261
|
-
$metadata: deserializeMetadata(output),
|
|
262
|
-
});
|
|
263
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
264
|
-
const doc = take(data, {
|
|
265
|
-
SubscriptionProviderArn: __expectString,
|
|
266
|
-
SubscriptionProviderSource: __expectString,
|
|
267
|
-
SubscriptionProviderStatus: __expectString,
|
|
268
|
-
});
|
|
269
|
-
Object.assign(contents, doc);
|
|
270
|
-
return contents;
|
|
271
|
-
};
|
|
272
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
273
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
274
|
-
return de_CommandError(output, context);
|
|
275
|
-
}
|
|
276
|
-
const contents = map({
|
|
277
|
-
$metadata: deserializeMetadata(output),
|
|
278
|
-
});
|
|
279
|
-
await collectBody(output.body, context);
|
|
280
|
-
return contents;
|
|
281
|
-
};
|
|
282
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
284
|
-
return de_CommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
const contents = map({
|
|
287
|
-
$metadata: deserializeMetadata(output),
|
|
288
|
-
});
|
|
289
|
-
await collectBody(output.body, context);
|
|
290
|
-
return contents;
|
|
291
|
-
};
|
|
292
|
-
export const de_UpdateServiceSettingsCommand = async (output, context) => {
|
|
293
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
294
|
-
return de_CommandError(output, context);
|
|
295
|
-
}
|
|
296
|
-
const contents = map({
|
|
297
|
-
$metadata: deserializeMetadata(output),
|
|
298
|
-
});
|
|
299
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
300
|
-
const doc = take(data, {
|
|
301
|
-
HomeRegions: _json,
|
|
302
|
-
LinuxSubscriptionsDiscovery: __expectString,
|
|
303
|
-
LinuxSubscriptionsDiscoverySettings: _json,
|
|
304
|
-
Status: __expectString,
|
|
305
|
-
StatusMessage: _json,
|
|
306
|
-
});
|
|
307
|
-
Object.assign(contents, doc);
|
|
308
|
-
return contents;
|
|
309
|
-
};
|
|
310
|
-
const de_CommandError = async (output, context) => {
|
|
311
|
-
const parsedOutput = {
|
|
312
|
-
...output,
|
|
313
|
-
body: await parseErrorBody(output.body, context),
|
|
314
|
-
};
|
|
315
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
316
|
-
switch (errorCode) {
|
|
317
|
-
case "InternalServerException":
|
|
318
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#InternalServerException":
|
|
319
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
320
|
-
case "ResourceNotFoundException":
|
|
321
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ResourceNotFoundException":
|
|
322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
323
|
-
case "ThrottlingException":
|
|
324
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ThrottlingException":
|
|
325
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
326
|
-
case "ValidationException":
|
|
327
|
-
case "com.amazonaws.licensemanagerlinuxsubscriptions#ValidationException":
|
|
328
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
329
|
-
default:
|
|
330
|
-
const parsedBody = parsedOutput.body;
|
|
331
|
-
return throwDefaultError({
|
|
332
|
-
output,
|
|
333
|
-
parsedBody,
|
|
334
|
-
errorCode,
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
};
|
|
338
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
339
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
340
|
-
const contents = map({});
|
|
341
|
-
const data = parsedOutput.body;
|
|
342
|
-
const doc = take(data, {
|
|
343
|
-
message: __expectString,
|
|
344
|
-
});
|
|
345
|
-
Object.assign(contents, doc);
|
|
346
|
-
const exception = new InternalServerException({
|
|
347
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
348
|
-
...contents,
|
|
349
|
-
});
|
|
350
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
351
|
-
};
|
|
352
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
353
|
-
const contents = map({});
|
|
354
|
-
const data = parsedOutput.body;
|
|
355
|
-
const doc = take(data, {
|
|
356
|
-
message: __expectString,
|
|
357
|
-
});
|
|
358
|
-
Object.assign(contents, doc);
|
|
359
|
-
const exception = new ResourceNotFoundException({
|
|
360
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
361
|
-
...contents,
|
|
362
|
-
});
|
|
363
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
364
|
-
};
|
|
365
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
366
|
-
const contents = map({});
|
|
367
|
-
const data = parsedOutput.body;
|
|
368
|
-
const doc = take(data, {
|
|
369
|
-
message: __expectString,
|
|
370
|
-
});
|
|
371
|
-
Object.assign(contents, doc);
|
|
372
|
-
const exception = new ThrottlingException({
|
|
373
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
374
|
-
...contents,
|
|
375
|
-
});
|
|
376
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
377
|
-
};
|
|
378
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
379
|
-
const contents = map({});
|
|
380
|
-
const data = parsedOutput.body;
|
|
381
|
-
const doc = take(data, {
|
|
382
|
-
message: __expectString,
|
|
383
|
-
});
|
|
384
|
-
Object.assign(contents, doc);
|
|
385
|
-
const exception = new ValidationException({
|
|
386
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
387
|
-
...contents,
|
|
388
|
-
});
|
|
389
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
390
|
-
};
|
|
391
|
-
const deserializeMetadata = (output) => ({
|
|
392
|
-
httpStatusCode: output.statusCode,
|
|
393
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
394
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
395
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
396
|
-
});
|
|
397
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
398
|
-
const _tK = "tagKeys";
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { DeregisterSubscriptionProviderCommandInput, DeregisterSubscriptionProviderCommandOutput } from "../commands/DeregisterSubscriptionProviderCommand";
|
|
4
|
-
import { GetRegisteredSubscriptionProviderCommandInput, GetRegisteredSubscriptionProviderCommandOutput } from "../commands/GetRegisteredSubscriptionProviderCommand";
|
|
5
|
-
import { GetServiceSettingsCommandInput, GetServiceSettingsCommandOutput } from "../commands/GetServiceSettingsCommand";
|
|
6
|
-
import { ListLinuxSubscriptionInstancesCommandInput, ListLinuxSubscriptionInstancesCommandOutput } from "../commands/ListLinuxSubscriptionInstancesCommand";
|
|
7
|
-
import { ListLinuxSubscriptionsCommandInput, ListLinuxSubscriptionsCommandOutput } from "../commands/ListLinuxSubscriptionsCommand";
|
|
8
|
-
import { ListRegisteredSubscriptionProvidersCommandInput, ListRegisteredSubscriptionProvidersCommandOutput } from "../commands/ListRegisteredSubscriptionProvidersCommand";
|
|
9
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
10
|
-
import { RegisterSubscriptionProviderCommandInput, RegisterSubscriptionProviderCommandOutput } from "../commands/RegisterSubscriptionProviderCommand";
|
|
11
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
12
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
13
|
-
import { UpdateServiceSettingsCommandInput, UpdateServiceSettingsCommandOutput } from "../commands/UpdateServiceSettingsCommand";
|
|
14
|
-
/**
|
|
15
|
-
* serializeAws_restJson1DeregisterSubscriptionProviderCommand
|
|
16
|
-
*/
|
|
17
|
-
export declare const se_DeregisterSubscriptionProviderCommand: (input: DeregisterSubscriptionProviderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
18
|
-
/**
|
|
19
|
-
* serializeAws_restJson1GetRegisteredSubscriptionProviderCommand
|
|
20
|
-
*/
|
|
21
|
-
export declare const se_GetRegisteredSubscriptionProviderCommand: (input: GetRegisteredSubscriptionProviderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
22
|
-
/**
|
|
23
|
-
* serializeAws_restJson1GetServiceSettingsCommand
|
|
24
|
-
*/
|
|
25
|
-
export declare const se_GetServiceSettingsCommand: (input: GetServiceSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
26
|
-
/**
|
|
27
|
-
* serializeAws_restJson1ListLinuxSubscriptionInstancesCommand
|
|
28
|
-
*/
|
|
29
|
-
export declare const se_ListLinuxSubscriptionInstancesCommand: (input: ListLinuxSubscriptionInstancesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
30
|
-
/**
|
|
31
|
-
* serializeAws_restJson1ListLinuxSubscriptionsCommand
|
|
32
|
-
*/
|
|
33
|
-
export declare const se_ListLinuxSubscriptionsCommand: (input: ListLinuxSubscriptionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
34
|
-
/**
|
|
35
|
-
* serializeAws_restJson1ListRegisteredSubscriptionProvidersCommand
|
|
36
|
-
*/
|
|
37
|
-
export declare const se_ListRegisteredSubscriptionProvidersCommand: (input: ListRegisteredSubscriptionProvidersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
38
|
-
/**
|
|
39
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
40
|
-
*/
|
|
41
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
42
|
-
/**
|
|
43
|
-
* serializeAws_restJson1RegisterSubscriptionProviderCommand
|
|
44
|
-
*/
|
|
45
|
-
export declare const se_RegisterSubscriptionProviderCommand: (input: RegisterSubscriptionProviderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
46
|
-
/**
|
|
47
|
-
* serializeAws_restJson1TagResourceCommand
|
|
48
|
-
*/
|
|
49
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
50
|
-
/**
|
|
51
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
52
|
-
*/
|
|
53
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
54
|
-
/**
|
|
55
|
-
* serializeAws_restJson1UpdateServiceSettingsCommand
|
|
56
|
-
*/
|
|
57
|
-
export declare const se_UpdateServiceSettingsCommand: (input: UpdateServiceSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
58
|
-
/**
|
|
59
|
-
* deserializeAws_restJson1DeregisterSubscriptionProviderCommand
|
|
60
|
-
*/
|
|
61
|
-
export declare const de_DeregisterSubscriptionProviderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeregisterSubscriptionProviderCommandOutput>;
|
|
62
|
-
/**
|
|
63
|
-
* deserializeAws_restJson1GetRegisteredSubscriptionProviderCommand
|
|
64
|
-
*/
|
|
65
|
-
export declare const de_GetRegisteredSubscriptionProviderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRegisteredSubscriptionProviderCommandOutput>;
|
|
66
|
-
/**
|
|
67
|
-
* deserializeAws_restJson1GetServiceSettingsCommand
|
|
68
|
-
*/
|
|
69
|
-
export declare const de_GetServiceSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetServiceSettingsCommandOutput>;
|
|
70
|
-
/**
|
|
71
|
-
* deserializeAws_restJson1ListLinuxSubscriptionInstancesCommand
|
|
72
|
-
*/
|
|
73
|
-
export declare const de_ListLinuxSubscriptionInstancesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListLinuxSubscriptionInstancesCommandOutput>;
|
|
74
|
-
/**
|
|
75
|
-
* deserializeAws_restJson1ListLinuxSubscriptionsCommand
|
|
76
|
-
*/
|
|
77
|
-
export declare const de_ListLinuxSubscriptionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListLinuxSubscriptionsCommandOutput>;
|
|
78
|
-
/**
|
|
79
|
-
* deserializeAws_restJson1ListRegisteredSubscriptionProvidersCommand
|
|
80
|
-
*/
|
|
81
|
-
export declare const de_ListRegisteredSubscriptionProvidersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListRegisteredSubscriptionProvidersCommandOutput>;
|
|
82
|
-
/**
|
|
83
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
84
|
-
*/
|
|
85
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
86
|
-
/**
|
|
87
|
-
* deserializeAws_restJson1RegisterSubscriptionProviderCommand
|
|
88
|
-
*/
|
|
89
|
-
export declare const de_RegisterSubscriptionProviderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RegisterSubscriptionProviderCommandOutput>;
|
|
90
|
-
/**
|
|
91
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
92
|
-
*/
|
|
93
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
94
|
-
/**
|
|
95
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
96
|
-
*/
|
|
97
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
98
|
-
/**
|
|
99
|
-
* deserializeAws_restJson1UpdateServiceSettingsCommand
|
|
100
|
-
*/
|
|
101
|
-
export declare const de_UpdateServiceSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateServiceSettingsCommandOutput>;
|