@aws-sdk/client-workspaces-thin-client 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 +825 -1061
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/WorkSpacesThinClientClient.js +2 -0
- package/dist-es/commands/CreateEnvironmentCommand.js +3 -10
- package/dist-es/commands/DeleteDeviceCommand.js +3 -9
- package/dist-es/commands/DeleteEnvironmentCommand.js +3 -9
- package/dist-es/commands/DeregisterDeviceCommand.js +3 -9
- package/dist-es/commands/GetDeviceCommand.js +3 -10
- package/dist-es/commands/GetEnvironmentCommand.js +3 -10
- package/dist-es/commands/GetSoftwareSetCommand.js +3 -9
- package/dist-es/commands/ListDevicesCommand.js +3 -10
- package/dist-es/commands/ListEnvironmentsCommand.js +3 -10
- package/dist-es/commands/ListSoftwareSetsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -10
- package/dist-es/commands/UpdateDeviceCommand.js +3 -10
- package/dist-es/commands/UpdateEnvironmentCommand.js +3 -10
- package/dist-es/commands/UpdateSoftwareSetCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -81
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +777 -0
- package/dist-types/WorkSpacesThinClientClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -68
- 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 +81 -0
- package/dist-types/ts3.4/WorkSpacesThinClientClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -47
- 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 +88 -0
- package/package.json +2 -3
- package/dist-es/protocols/Aws_restJson1.js +0 -838
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -146
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -197
|
@@ -1,838 +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 { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
4
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
import { WorkSpacesThinClientServiceException as __BaseException } from "../models/WorkSpacesThinClientServiceException";
|
|
8
|
-
export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
9
|
-
const b = rb(input, context);
|
|
10
|
-
const headers = {
|
|
11
|
-
"content-type": "application/json",
|
|
12
|
-
};
|
|
13
|
-
b.bp("/environments");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
17
|
-
desiredSoftwareSetId: [],
|
|
18
|
-
desktopArn: [],
|
|
19
|
-
desktopEndpoint: [],
|
|
20
|
-
deviceCreationTags: (_) => _json(_),
|
|
21
|
-
kmsKeyArn: [],
|
|
22
|
-
maintenanceWindow: (_) => _json(_),
|
|
23
|
-
name: [],
|
|
24
|
-
softwareSetUpdateMode: [],
|
|
25
|
-
softwareSetUpdateSchedule: [],
|
|
26
|
-
tags: (_) => _json(_),
|
|
27
|
-
}));
|
|
28
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
29
|
-
if (context.disableHostPrefix !== true) {
|
|
30
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
31
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
32
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
b.hn(resolvedHostname);
|
|
36
|
-
b.m("POST").h(headers).b(body);
|
|
37
|
-
return b.build();
|
|
38
|
-
};
|
|
39
|
-
export const se_DeleteDeviceCommand = async (input, context) => {
|
|
40
|
-
const b = rb(input, context);
|
|
41
|
-
const headers = {};
|
|
42
|
-
b.bp("/devices/{id}");
|
|
43
|
-
b.p("id", () => input.id, "{id}", false);
|
|
44
|
-
const query = map({
|
|
45
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
46
|
-
});
|
|
47
|
-
let body;
|
|
48
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
49
|
-
if (context.disableHostPrefix !== true) {
|
|
50
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
51
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
52
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
b.hn(resolvedHostname);
|
|
56
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
57
|
-
return b.build();
|
|
58
|
-
};
|
|
59
|
-
export const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
60
|
-
const b = rb(input, context);
|
|
61
|
-
const headers = {};
|
|
62
|
-
b.bp("/environments/{id}");
|
|
63
|
-
b.p("id", () => input.id, "{id}", false);
|
|
64
|
-
const query = map({
|
|
65
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
66
|
-
});
|
|
67
|
-
let body;
|
|
68
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
69
|
-
if (context.disableHostPrefix !== true) {
|
|
70
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
71
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
72
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
b.hn(resolvedHostname);
|
|
76
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
77
|
-
return b.build();
|
|
78
|
-
};
|
|
79
|
-
export const se_DeregisterDeviceCommand = async (input, context) => {
|
|
80
|
-
const b = rb(input, context);
|
|
81
|
-
const headers = {
|
|
82
|
-
"content-type": "application/json",
|
|
83
|
-
};
|
|
84
|
-
b.bp("/deregister-device/{id}");
|
|
85
|
-
b.p("id", () => input.id, "{id}", false);
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(take(input, {
|
|
88
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
89
|
-
targetDeviceStatus: [],
|
|
90
|
-
}));
|
|
91
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
92
|
-
if (context.disableHostPrefix !== true) {
|
|
93
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
94
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
95
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
b.hn(resolvedHostname);
|
|
99
|
-
b.m("POST").h(headers).b(body);
|
|
100
|
-
return b.build();
|
|
101
|
-
};
|
|
102
|
-
export const se_GetDeviceCommand = async (input, context) => {
|
|
103
|
-
const b = rb(input, context);
|
|
104
|
-
const headers = {};
|
|
105
|
-
b.bp("/devices/{id}");
|
|
106
|
-
b.p("id", () => input.id, "{id}", false);
|
|
107
|
-
let body;
|
|
108
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
109
|
-
if (context.disableHostPrefix !== true) {
|
|
110
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
111
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
112
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
b.hn(resolvedHostname);
|
|
116
|
-
b.m("GET").h(headers).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
export const se_GetEnvironmentCommand = async (input, context) => {
|
|
120
|
-
const b = rb(input, context);
|
|
121
|
-
const headers = {};
|
|
122
|
-
b.bp("/environments/{id}");
|
|
123
|
-
b.p("id", () => input.id, "{id}", false);
|
|
124
|
-
let body;
|
|
125
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
126
|
-
if (context.disableHostPrefix !== true) {
|
|
127
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
128
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
129
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
b.hn(resolvedHostname);
|
|
133
|
-
b.m("GET").h(headers).b(body);
|
|
134
|
-
return b.build();
|
|
135
|
-
};
|
|
136
|
-
export const se_GetSoftwareSetCommand = async (input, context) => {
|
|
137
|
-
const b = rb(input, context);
|
|
138
|
-
const headers = {};
|
|
139
|
-
b.bp("/softwaresets/{id}");
|
|
140
|
-
b.p("id", () => input.id, "{id}", false);
|
|
141
|
-
let body;
|
|
142
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
143
|
-
if (context.disableHostPrefix !== true) {
|
|
144
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
145
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
146
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
b.hn(resolvedHostname);
|
|
150
|
-
b.m("GET").h(headers).b(body);
|
|
151
|
-
return b.build();
|
|
152
|
-
};
|
|
153
|
-
export const se_ListDevicesCommand = async (input, context) => {
|
|
154
|
-
const b = rb(input, context);
|
|
155
|
-
const headers = {};
|
|
156
|
-
b.bp("/devices");
|
|
157
|
-
const query = map({
|
|
158
|
-
[_nT]: [, input[_nT]],
|
|
159
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
160
|
-
});
|
|
161
|
-
let body;
|
|
162
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
163
|
-
if (context.disableHostPrefix !== true) {
|
|
164
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
165
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
166
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
b.hn(resolvedHostname);
|
|
170
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
171
|
-
return b.build();
|
|
172
|
-
};
|
|
173
|
-
export const se_ListEnvironmentsCommand = async (input, context) => {
|
|
174
|
-
const b = rb(input, context);
|
|
175
|
-
const headers = {};
|
|
176
|
-
b.bp("/environments");
|
|
177
|
-
const query = map({
|
|
178
|
-
[_nT]: [, input[_nT]],
|
|
179
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
180
|
-
});
|
|
181
|
-
let body;
|
|
182
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
183
|
-
if (context.disableHostPrefix !== true) {
|
|
184
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
185
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
186
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
b.hn(resolvedHostname);
|
|
190
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
191
|
-
return b.build();
|
|
192
|
-
};
|
|
193
|
-
export const se_ListSoftwareSetsCommand = async (input, context) => {
|
|
194
|
-
const b = rb(input, context);
|
|
195
|
-
const headers = {};
|
|
196
|
-
b.bp("/softwaresets");
|
|
197
|
-
const query = map({
|
|
198
|
-
[_nT]: [, input[_nT]],
|
|
199
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
200
|
-
});
|
|
201
|
-
let body;
|
|
202
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
203
|
-
if (context.disableHostPrefix !== true) {
|
|
204
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
205
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
206
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
b.hn(resolvedHostname);
|
|
210
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
211
|
-
return b.build();
|
|
212
|
-
};
|
|
213
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
214
|
-
const b = rb(input, context);
|
|
215
|
-
const headers = {};
|
|
216
|
-
b.bp("/tags/{resourceArn}");
|
|
217
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
218
|
-
let body;
|
|
219
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
220
|
-
if (context.disableHostPrefix !== true) {
|
|
221
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
222
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
223
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
b.hn(resolvedHostname);
|
|
227
|
-
b.m("GET").h(headers).b(body);
|
|
228
|
-
return b.build();
|
|
229
|
-
};
|
|
230
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
231
|
-
const b = rb(input, context);
|
|
232
|
-
const headers = {
|
|
233
|
-
"content-type": "application/json",
|
|
234
|
-
};
|
|
235
|
-
b.bp("/tags/{resourceArn}");
|
|
236
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify(take(input, {
|
|
239
|
-
tags: (_) => _json(_),
|
|
240
|
-
}));
|
|
241
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
242
|
-
if (context.disableHostPrefix !== true) {
|
|
243
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
244
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
245
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
b.hn(resolvedHostname);
|
|
249
|
-
b.m("POST").h(headers).b(body);
|
|
250
|
-
return b.build();
|
|
251
|
-
};
|
|
252
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
253
|
-
const b = rb(input, context);
|
|
254
|
-
const headers = {};
|
|
255
|
-
b.bp("/tags/{resourceArn}");
|
|
256
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
257
|
-
const query = map({
|
|
258
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
259
|
-
});
|
|
260
|
-
let body;
|
|
261
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
262
|
-
if (context.disableHostPrefix !== true) {
|
|
263
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
264
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
265
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
b.hn(resolvedHostname);
|
|
269
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
270
|
-
return b.build();
|
|
271
|
-
};
|
|
272
|
-
export const se_UpdateDeviceCommand = async (input, context) => {
|
|
273
|
-
const b = rb(input, context);
|
|
274
|
-
const headers = {
|
|
275
|
-
"content-type": "application/json",
|
|
276
|
-
};
|
|
277
|
-
b.bp("/devices/{id}");
|
|
278
|
-
b.p("id", () => input.id, "{id}", false);
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify(take(input, {
|
|
281
|
-
desiredSoftwareSetId: [],
|
|
282
|
-
name: [],
|
|
283
|
-
softwareSetUpdateSchedule: [],
|
|
284
|
-
}));
|
|
285
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
286
|
-
if (context.disableHostPrefix !== true) {
|
|
287
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
288
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
289
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
b.hn(resolvedHostname);
|
|
293
|
-
b.m("PATCH").h(headers).b(body);
|
|
294
|
-
return b.build();
|
|
295
|
-
};
|
|
296
|
-
export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
297
|
-
const b = rb(input, context);
|
|
298
|
-
const headers = {
|
|
299
|
-
"content-type": "application/json",
|
|
300
|
-
};
|
|
301
|
-
b.bp("/environments/{id}");
|
|
302
|
-
b.p("id", () => input.id, "{id}", false);
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify(take(input, {
|
|
305
|
-
desiredSoftwareSetId: [],
|
|
306
|
-
desktopArn: [],
|
|
307
|
-
desktopEndpoint: [],
|
|
308
|
-
deviceCreationTags: (_) => _json(_),
|
|
309
|
-
maintenanceWindow: (_) => _json(_),
|
|
310
|
-
name: [],
|
|
311
|
-
softwareSetUpdateMode: [],
|
|
312
|
-
softwareSetUpdateSchedule: [],
|
|
313
|
-
}));
|
|
314
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
315
|
-
if (context.disableHostPrefix !== true) {
|
|
316
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
317
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
318
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
b.hn(resolvedHostname);
|
|
322
|
-
b.m("PATCH").h(headers).b(body);
|
|
323
|
-
return b.build();
|
|
324
|
-
};
|
|
325
|
-
export const se_UpdateSoftwareSetCommand = async (input, context) => {
|
|
326
|
-
const b = rb(input, context);
|
|
327
|
-
const headers = {
|
|
328
|
-
"content-type": "application/json",
|
|
329
|
-
};
|
|
330
|
-
b.bp("/softwaresets/{id}");
|
|
331
|
-
b.p("id", () => input.id, "{id}", false);
|
|
332
|
-
let body;
|
|
333
|
-
body = JSON.stringify(take(input, {
|
|
334
|
-
validationStatus: [],
|
|
335
|
-
}));
|
|
336
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
337
|
-
if (context.disableHostPrefix !== true) {
|
|
338
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
339
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
340
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
b.hn(resolvedHostname);
|
|
344
|
-
b.m("PATCH").h(headers).b(body);
|
|
345
|
-
return b.build();
|
|
346
|
-
};
|
|
347
|
-
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
const contents = map({
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
});
|
|
354
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
355
|
-
const doc = take(data, {
|
|
356
|
-
environment: (_) => de_EnvironmentSummary(_, context),
|
|
357
|
-
});
|
|
358
|
-
Object.assign(contents, doc);
|
|
359
|
-
return contents;
|
|
360
|
-
};
|
|
361
|
-
export const de_DeleteDeviceCommand = async (output, context) => {
|
|
362
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
363
|
-
return de_CommandError(output, context);
|
|
364
|
-
}
|
|
365
|
-
const contents = map({
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
});
|
|
368
|
-
await collectBody(output.body, context);
|
|
369
|
-
return contents;
|
|
370
|
-
};
|
|
371
|
-
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
372
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
373
|
-
return de_CommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const contents = map({
|
|
376
|
-
$metadata: deserializeMetadata(output),
|
|
377
|
-
});
|
|
378
|
-
await collectBody(output.body, context);
|
|
379
|
-
return contents;
|
|
380
|
-
};
|
|
381
|
-
export const de_DeregisterDeviceCommand = async (output, context) => {
|
|
382
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
383
|
-
return de_CommandError(output, context);
|
|
384
|
-
}
|
|
385
|
-
const contents = map({
|
|
386
|
-
$metadata: deserializeMetadata(output),
|
|
387
|
-
});
|
|
388
|
-
await collectBody(output.body, context);
|
|
389
|
-
return contents;
|
|
390
|
-
};
|
|
391
|
-
export const de_GetDeviceCommand = async (output, context) => {
|
|
392
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
393
|
-
return de_CommandError(output, context);
|
|
394
|
-
}
|
|
395
|
-
const contents = map({
|
|
396
|
-
$metadata: deserializeMetadata(output),
|
|
397
|
-
});
|
|
398
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
399
|
-
const doc = take(data, {
|
|
400
|
-
device: (_) => de_Device(_, context),
|
|
401
|
-
});
|
|
402
|
-
Object.assign(contents, doc);
|
|
403
|
-
return contents;
|
|
404
|
-
};
|
|
405
|
-
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
406
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
407
|
-
return de_CommandError(output, context);
|
|
408
|
-
}
|
|
409
|
-
const contents = map({
|
|
410
|
-
$metadata: deserializeMetadata(output),
|
|
411
|
-
});
|
|
412
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
413
|
-
const doc = take(data, {
|
|
414
|
-
environment: (_) => de_Environment(_, context),
|
|
415
|
-
});
|
|
416
|
-
Object.assign(contents, doc);
|
|
417
|
-
return contents;
|
|
418
|
-
};
|
|
419
|
-
export const de_GetSoftwareSetCommand = async (output, context) => {
|
|
420
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
421
|
-
return de_CommandError(output, context);
|
|
422
|
-
}
|
|
423
|
-
const contents = map({
|
|
424
|
-
$metadata: deserializeMetadata(output),
|
|
425
|
-
});
|
|
426
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
427
|
-
const doc = take(data, {
|
|
428
|
-
softwareSet: (_) => de_SoftwareSet(_, context),
|
|
429
|
-
});
|
|
430
|
-
Object.assign(contents, doc);
|
|
431
|
-
return contents;
|
|
432
|
-
};
|
|
433
|
-
export const de_ListDevicesCommand = async (output, context) => {
|
|
434
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
435
|
-
return de_CommandError(output, context);
|
|
436
|
-
}
|
|
437
|
-
const contents = map({
|
|
438
|
-
$metadata: deserializeMetadata(output),
|
|
439
|
-
});
|
|
440
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
441
|
-
const doc = take(data, {
|
|
442
|
-
devices: (_) => de_DeviceList(_, context),
|
|
443
|
-
nextToken: __expectString,
|
|
444
|
-
});
|
|
445
|
-
Object.assign(contents, doc);
|
|
446
|
-
return contents;
|
|
447
|
-
};
|
|
448
|
-
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
449
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
-
return de_CommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
const contents = map({
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
});
|
|
455
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
456
|
-
const doc = take(data, {
|
|
457
|
-
environments: (_) => de_EnvironmentList(_, context),
|
|
458
|
-
nextToken: __expectString,
|
|
459
|
-
});
|
|
460
|
-
Object.assign(contents, doc);
|
|
461
|
-
return contents;
|
|
462
|
-
};
|
|
463
|
-
export const de_ListSoftwareSetsCommand = async (output, context) => {
|
|
464
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
465
|
-
return de_CommandError(output, context);
|
|
466
|
-
}
|
|
467
|
-
const contents = map({
|
|
468
|
-
$metadata: deserializeMetadata(output),
|
|
469
|
-
});
|
|
470
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
471
|
-
const doc = take(data, {
|
|
472
|
-
nextToken: __expectString,
|
|
473
|
-
softwareSets: (_) => de_SoftwareSetList(_, context),
|
|
474
|
-
});
|
|
475
|
-
Object.assign(contents, doc);
|
|
476
|
-
return contents;
|
|
477
|
-
};
|
|
478
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
479
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
480
|
-
return de_CommandError(output, context);
|
|
481
|
-
}
|
|
482
|
-
const contents = map({
|
|
483
|
-
$metadata: deserializeMetadata(output),
|
|
484
|
-
});
|
|
485
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
486
|
-
const doc = take(data, {
|
|
487
|
-
tags: _json,
|
|
488
|
-
});
|
|
489
|
-
Object.assign(contents, doc);
|
|
490
|
-
return contents;
|
|
491
|
-
};
|
|
492
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
493
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
494
|
-
return de_CommandError(output, context);
|
|
495
|
-
}
|
|
496
|
-
const contents = map({
|
|
497
|
-
$metadata: deserializeMetadata(output),
|
|
498
|
-
});
|
|
499
|
-
await collectBody(output.body, context);
|
|
500
|
-
return contents;
|
|
501
|
-
};
|
|
502
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
503
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
504
|
-
return de_CommandError(output, context);
|
|
505
|
-
}
|
|
506
|
-
const contents = map({
|
|
507
|
-
$metadata: deserializeMetadata(output),
|
|
508
|
-
});
|
|
509
|
-
await collectBody(output.body, context);
|
|
510
|
-
return contents;
|
|
511
|
-
};
|
|
512
|
-
export const de_UpdateDeviceCommand = async (output, context) => {
|
|
513
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
514
|
-
return de_CommandError(output, context);
|
|
515
|
-
}
|
|
516
|
-
const contents = map({
|
|
517
|
-
$metadata: deserializeMetadata(output),
|
|
518
|
-
});
|
|
519
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
520
|
-
const doc = take(data, {
|
|
521
|
-
device: (_) => de_DeviceSummary(_, context),
|
|
522
|
-
});
|
|
523
|
-
Object.assign(contents, doc);
|
|
524
|
-
return contents;
|
|
525
|
-
};
|
|
526
|
-
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
527
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
528
|
-
return de_CommandError(output, context);
|
|
529
|
-
}
|
|
530
|
-
const contents = map({
|
|
531
|
-
$metadata: deserializeMetadata(output),
|
|
532
|
-
});
|
|
533
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
534
|
-
const doc = take(data, {
|
|
535
|
-
environment: (_) => de_EnvironmentSummary(_, context),
|
|
536
|
-
});
|
|
537
|
-
Object.assign(contents, doc);
|
|
538
|
-
return contents;
|
|
539
|
-
};
|
|
540
|
-
export const de_UpdateSoftwareSetCommand = async (output, context) => {
|
|
541
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
542
|
-
return de_CommandError(output, context);
|
|
543
|
-
}
|
|
544
|
-
const contents = map({
|
|
545
|
-
$metadata: deserializeMetadata(output),
|
|
546
|
-
});
|
|
547
|
-
await collectBody(output.body, context);
|
|
548
|
-
return contents;
|
|
549
|
-
};
|
|
550
|
-
const de_CommandError = async (output, context) => {
|
|
551
|
-
const parsedOutput = {
|
|
552
|
-
...output,
|
|
553
|
-
body: await parseErrorBody(output.body, context),
|
|
554
|
-
};
|
|
555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
556
|
-
switch (errorCode) {
|
|
557
|
-
case "AccessDeniedException":
|
|
558
|
-
case "com.amazonaws.workspacesthinclient#AccessDeniedException":
|
|
559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ConflictException":
|
|
561
|
-
case "com.amazonaws.workspacesthinclient#ConflictException":
|
|
562
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
563
|
-
case "InternalServerException":
|
|
564
|
-
case "com.amazonaws.workspacesthinclient#InternalServerException":
|
|
565
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
566
|
-
case "ResourceNotFoundException":
|
|
567
|
-
case "com.amazonaws.workspacesthinclient#ResourceNotFoundException":
|
|
568
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ServiceQuotaExceededException":
|
|
570
|
-
case "com.amazonaws.workspacesthinclient#ServiceQuotaExceededException":
|
|
571
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
572
|
-
case "ThrottlingException":
|
|
573
|
-
case "com.amazonaws.workspacesthinclient#ThrottlingException":
|
|
574
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ValidationException":
|
|
576
|
-
case "com.amazonaws.workspacesthinclient#ValidationException":
|
|
577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
578
|
-
default:
|
|
579
|
-
const parsedBody = parsedOutput.body;
|
|
580
|
-
return throwDefaultError({
|
|
581
|
-
output,
|
|
582
|
-
parsedBody,
|
|
583
|
-
errorCode,
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
};
|
|
587
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
588
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
589
|
-
const contents = map({});
|
|
590
|
-
const data = parsedOutput.body;
|
|
591
|
-
const doc = take(data, {
|
|
592
|
-
message: __expectString,
|
|
593
|
-
});
|
|
594
|
-
Object.assign(contents, doc);
|
|
595
|
-
const exception = new AccessDeniedException({
|
|
596
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
597
|
-
...contents,
|
|
598
|
-
});
|
|
599
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
600
|
-
};
|
|
601
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
602
|
-
const contents = map({});
|
|
603
|
-
const data = parsedOutput.body;
|
|
604
|
-
const doc = take(data, {
|
|
605
|
-
message: __expectString,
|
|
606
|
-
resourceId: __expectString,
|
|
607
|
-
resourceType: __expectString,
|
|
608
|
-
});
|
|
609
|
-
Object.assign(contents, doc);
|
|
610
|
-
const exception = new ConflictException({
|
|
611
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
612
|
-
...contents,
|
|
613
|
-
});
|
|
614
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
615
|
-
};
|
|
616
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
617
|
-
const contents = map({
|
|
618
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
619
|
-
});
|
|
620
|
-
const data = parsedOutput.body;
|
|
621
|
-
const doc = take(data, {
|
|
622
|
-
message: __expectString,
|
|
623
|
-
});
|
|
624
|
-
Object.assign(contents, doc);
|
|
625
|
-
const exception = new InternalServerException({
|
|
626
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
627
|
-
...contents,
|
|
628
|
-
});
|
|
629
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
630
|
-
};
|
|
631
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
632
|
-
const contents = map({});
|
|
633
|
-
const data = parsedOutput.body;
|
|
634
|
-
const doc = take(data, {
|
|
635
|
-
message: __expectString,
|
|
636
|
-
resourceId: __expectString,
|
|
637
|
-
resourceType: __expectString,
|
|
638
|
-
});
|
|
639
|
-
Object.assign(contents, doc);
|
|
640
|
-
const exception = new ResourceNotFoundException({
|
|
641
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
642
|
-
...contents,
|
|
643
|
-
});
|
|
644
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
645
|
-
};
|
|
646
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
647
|
-
const contents = map({});
|
|
648
|
-
const data = parsedOutput.body;
|
|
649
|
-
const doc = take(data, {
|
|
650
|
-
message: __expectString,
|
|
651
|
-
quotaCode: __expectString,
|
|
652
|
-
resourceId: __expectString,
|
|
653
|
-
resourceType: __expectString,
|
|
654
|
-
serviceCode: __expectString,
|
|
655
|
-
});
|
|
656
|
-
Object.assign(contents, doc);
|
|
657
|
-
const exception = new ServiceQuotaExceededException({
|
|
658
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
659
|
-
...contents,
|
|
660
|
-
});
|
|
661
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
662
|
-
};
|
|
663
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
664
|
-
const contents = map({
|
|
665
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
666
|
-
});
|
|
667
|
-
const data = parsedOutput.body;
|
|
668
|
-
const doc = take(data, {
|
|
669
|
-
message: __expectString,
|
|
670
|
-
quotaCode: __expectString,
|
|
671
|
-
serviceCode: __expectString,
|
|
672
|
-
});
|
|
673
|
-
Object.assign(contents, doc);
|
|
674
|
-
const exception = new ThrottlingException({
|
|
675
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
676
|
-
...contents,
|
|
677
|
-
});
|
|
678
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
679
|
-
};
|
|
680
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
681
|
-
const contents = map({});
|
|
682
|
-
const data = parsedOutput.body;
|
|
683
|
-
const doc = take(data, {
|
|
684
|
-
fieldList: _json,
|
|
685
|
-
message: __expectString,
|
|
686
|
-
reason: __expectString,
|
|
687
|
-
});
|
|
688
|
-
Object.assign(contents, doc);
|
|
689
|
-
const exception = new ValidationException({
|
|
690
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
691
|
-
...contents,
|
|
692
|
-
});
|
|
693
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
694
|
-
};
|
|
695
|
-
const de_Device = (output, context) => {
|
|
696
|
-
return take(output, {
|
|
697
|
-
arn: __expectString,
|
|
698
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
699
|
-
currentSoftwareSetId: __expectString,
|
|
700
|
-
currentSoftwareSetVersion: __expectString,
|
|
701
|
-
desiredSoftwareSetId: __expectString,
|
|
702
|
-
environmentId: __expectString,
|
|
703
|
-
id: __expectString,
|
|
704
|
-
kmsKeyArn: __expectString,
|
|
705
|
-
lastConnectedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
706
|
-
lastPostureAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
707
|
-
lastUserId: __expectString,
|
|
708
|
-
model: __expectString,
|
|
709
|
-
name: __expectString,
|
|
710
|
-
pendingSoftwareSetId: __expectString,
|
|
711
|
-
pendingSoftwareSetVersion: __expectString,
|
|
712
|
-
serialNumber: __expectString,
|
|
713
|
-
softwareSetComplianceStatus: __expectString,
|
|
714
|
-
softwareSetUpdateSchedule: __expectString,
|
|
715
|
-
softwareSetUpdateStatus: __expectString,
|
|
716
|
-
status: __expectString,
|
|
717
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
718
|
-
});
|
|
719
|
-
};
|
|
720
|
-
const de_DeviceList = (output, context) => {
|
|
721
|
-
const retVal = (output || [])
|
|
722
|
-
.filter((e) => e != null)
|
|
723
|
-
.map((entry) => {
|
|
724
|
-
return de_DeviceSummary(entry, context);
|
|
725
|
-
});
|
|
726
|
-
return retVal;
|
|
727
|
-
};
|
|
728
|
-
const de_DeviceSummary = (output, context) => {
|
|
729
|
-
return take(output, {
|
|
730
|
-
arn: __expectString,
|
|
731
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
732
|
-
currentSoftwareSetId: __expectString,
|
|
733
|
-
desiredSoftwareSetId: __expectString,
|
|
734
|
-
environmentId: __expectString,
|
|
735
|
-
id: __expectString,
|
|
736
|
-
lastConnectedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
737
|
-
lastPostureAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
738
|
-
lastUserId: __expectString,
|
|
739
|
-
model: __expectString,
|
|
740
|
-
name: __expectString,
|
|
741
|
-
pendingSoftwareSetId: __expectString,
|
|
742
|
-
serialNumber: __expectString,
|
|
743
|
-
softwareSetUpdateSchedule: __expectString,
|
|
744
|
-
status: __expectString,
|
|
745
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
746
|
-
});
|
|
747
|
-
};
|
|
748
|
-
const de_Environment = (output, context) => {
|
|
749
|
-
return take(output, {
|
|
750
|
-
activationCode: __expectString,
|
|
751
|
-
arn: __expectString,
|
|
752
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
753
|
-
desiredSoftwareSetId: __expectString,
|
|
754
|
-
desktopArn: __expectString,
|
|
755
|
-
desktopEndpoint: __expectString,
|
|
756
|
-
desktopType: __expectString,
|
|
757
|
-
deviceCreationTags: _json,
|
|
758
|
-
id: __expectString,
|
|
759
|
-
kmsKeyArn: __expectString,
|
|
760
|
-
maintenanceWindow: _json,
|
|
761
|
-
name: __expectString,
|
|
762
|
-
pendingSoftwareSetId: __expectString,
|
|
763
|
-
pendingSoftwareSetVersion: __expectString,
|
|
764
|
-
registeredDevicesCount: __expectInt32,
|
|
765
|
-
softwareSetComplianceStatus: __expectString,
|
|
766
|
-
softwareSetUpdateMode: __expectString,
|
|
767
|
-
softwareSetUpdateSchedule: __expectString,
|
|
768
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
769
|
-
});
|
|
770
|
-
};
|
|
771
|
-
const de_EnvironmentList = (output, context) => {
|
|
772
|
-
const retVal = (output || [])
|
|
773
|
-
.filter((e) => e != null)
|
|
774
|
-
.map((entry) => {
|
|
775
|
-
return de_EnvironmentSummary(entry, context);
|
|
776
|
-
});
|
|
777
|
-
return retVal;
|
|
778
|
-
};
|
|
779
|
-
const de_EnvironmentSummary = (output, context) => {
|
|
780
|
-
return take(output, {
|
|
781
|
-
activationCode: __expectString,
|
|
782
|
-
arn: __expectString,
|
|
783
|
-
createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
784
|
-
desiredSoftwareSetId: __expectString,
|
|
785
|
-
desktopArn: __expectString,
|
|
786
|
-
desktopEndpoint: __expectString,
|
|
787
|
-
desktopType: __expectString,
|
|
788
|
-
id: __expectString,
|
|
789
|
-
maintenanceWindow: _json,
|
|
790
|
-
name: __expectString,
|
|
791
|
-
pendingSoftwareSetId: __expectString,
|
|
792
|
-
softwareSetUpdateMode: __expectString,
|
|
793
|
-
softwareSetUpdateSchedule: __expectString,
|
|
794
|
-
updatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
795
|
-
});
|
|
796
|
-
};
|
|
797
|
-
const de_SoftwareSet = (output, context) => {
|
|
798
|
-
return take(output, {
|
|
799
|
-
arn: __expectString,
|
|
800
|
-
id: __expectString,
|
|
801
|
-
releasedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
802
|
-
software: _json,
|
|
803
|
-
supportedUntil: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
804
|
-
validationStatus: __expectString,
|
|
805
|
-
version: __expectString,
|
|
806
|
-
});
|
|
807
|
-
};
|
|
808
|
-
const de_SoftwareSetList = (output, context) => {
|
|
809
|
-
const retVal = (output || [])
|
|
810
|
-
.filter((e) => e != null)
|
|
811
|
-
.map((entry) => {
|
|
812
|
-
return de_SoftwareSetSummary(entry, context);
|
|
813
|
-
});
|
|
814
|
-
return retVal;
|
|
815
|
-
};
|
|
816
|
-
const de_SoftwareSetSummary = (output, context) => {
|
|
817
|
-
return take(output, {
|
|
818
|
-
arn: __expectString,
|
|
819
|
-
id: __expectString,
|
|
820
|
-
releasedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
821
|
-
supportedUntil: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
822
|
-
validationStatus: __expectString,
|
|
823
|
-
version: __expectString,
|
|
824
|
-
});
|
|
825
|
-
};
|
|
826
|
-
const deserializeMetadata = (output) => ({
|
|
827
|
-
httpStatusCode: output.statusCode,
|
|
828
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
829
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
830
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
831
|
-
});
|
|
832
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
833
|
-
const _cT = "clientToken";
|
|
834
|
-
const _mR = "maxResults";
|
|
835
|
-
const _nT = "nextToken";
|
|
836
|
-
const _rAS = "retryAfterSeconds";
|
|
837
|
-
const _ra = "retry-after";
|
|
838
|
-
const _tK = "tagKeys";
|