@aws-sdk/client-simspaceweaver 3.927.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 +677 -732
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/SimSpaceWeaverClient.js +2 -0
- package/dist-es/commands/CreateSnapshotCommand.js +3 -9
- package/dist-es/commands/DeleteAppCommand.js +3 -9
- package/dist-es/commands/DeleteSimulationCommand.js +3 -9
- package/dist-es/commands/DescribeAppCommand.js +3 -9
- package/dist-es/commands/DescribeSimulationCommand.js +3 -9
- package/dist-es/commands/ListAppsCommand.js +3 -9
- package/dist-es/commands/ListSimulationsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/StartAppCommand.js +3 -10
- package/dist-es/commands/StartClockCommand.js +3 -9
- package/dist-es/commands/StartSimulationCommand.js +3 -10
- package/dist-es/commands/StopAppCommand.js +3 -9
- package/dist-es/commands/StopClockCommand.js +3 -9
- package/dist-es/commands/StopSimulationCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -9
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +636 -0
- package/dist-types/SimSpaceWeaverClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -8
- 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 +80 -0
- package/dist-types/ts3.4/SimSpaceWeaverClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -6
- 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 +86 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -601
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -146
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -197
|
@@ -1,601 +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, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
6
|
-
import { SimSpaceWeaverServiceException as __BaseException } from "../models/SimSpaceWeaverServiceException";
|
|
7
|
-
export const se_CreateSnapshotCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/createsnapshot");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
Destination: (_) => _json(_),
|
|
16
|
-
Simulation: [],
|
|
17
|
-
}));
|
|
18
|
-
b.m("POST").h(headers).b(body);
|
|
19
|
-
return b.build();
|
|
20
|
-
};
|
|
21
|
-
export const se_DeleteAppCommand = async (input, context) => {
|
|
22
|
-
const b = rb(input, context);
|
|
23
|
-
const headers = {};
|
|
24
|
-
b.bp("/deleteapp");
|
|
25
|
-
const query = map({
|
|
26
|
-
[_s]: [, __expectNonNull(input[_S], `Simulation`)],
|
|
27
|
-
[_d]: [, __expectNonNull(input[_D], `Domain`)],
|
|
28
|
-
[_a]: [, __expectNonNull(input[_A], `App`)],
|
|
29
|
-
});
|
|
30
|
-
let body;
|
|
31
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
32
|
-
return b.build();
|
|
33
|
-
};
|
|
34
|
-
export const se_DeleteSimulationCommand = async (input, context) => {
|
|
35
|
-
const b = rb(input, context);
|
|
36
|
-
const headers = {};
|
|
37
|
-
b.bp("/deletesimulation");
|
|
38
|
-
const query = map({
|
|
39
|
-
[_s]: [, __expectNonNull(input[_S], `Simulation`)],
|
|
40
|
-
});
|
|
41
|
-
let body;
|
|
42
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
43
|
-
return b.build();
|
|
44
|
-
};
|
|
45
|
-
export const se_DescribeAppCommand = async (input, context) => {
|
|
46
|
-
const b = rb(input, context);
|
|
47
|
-
const headers = {};
|
|
48
|
-
b.bp("/describeapp");
|
|
49
|
-
const query = map({
|
|
50
|
-
[_s]: [, __expectNonNull(input[_S], `Simulation`)],
|
|
51
|
-
[_d]: [, __expectNonNull(input[_D], `Domain`)],
|
|
52
|
-
[_a]: [, __expectNonNull(input[_A], `App`)],
|
|
53
|
-
});
|
|
54
|
-
let body;
|
|
55
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
56
|
-
return b.build();
|
|
57
|
-
};
|
|
58
|
-
export const se_DescribeSimulationCommand = async (input, context) => {
|
|
59
|
-
const b = rb(input, context);
|
|
60
|
-
const headers = {};
|
|
61
|
-
b.bp("/describesimulation");
|
|
62
|
-
const query = map({
|
|
63
|
-
[_s]: [, __expectNonNull(input[_S], `Simulation`)],
|
|
64
|
-
});
|
|
65
|
-
let body;
|
|
66
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
67
|
-
return b.build();
|
|
68
|
-
};
|
|
69
|
-
export const se_ListAppsCommand = async (input, context) => {
|
|
70
|
-
const b = rb(input, context);
|
|
71
|
-
const headers = {};
|
|
72
|
-
b.bp("/listapps");
|
|
73
|
-
const query = map({
|
|
74
|
-
[_s]: [, __expectNonNull(input[_S], `Simulation`)],
|
|
75
|
-
[_d]: [, input[_D]],
|
|
76
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
77
|
-
[_nT]: [, input[_NT]],
|
|
78
|
-
});
|
|
79
|
-
let body;
|
|
80
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
81
|
-
return b.build();
|
|
82
|
-
};
|
|
83
|
-
export const se_ListSimulationsCommand = async (input, context) => {
|
|
84
|
-
const b = rb(input, context);
|
|
85
|
-
const headers = {};
|
|
86
|
-
b.bp("/listsimulations");
|
|
87
|
-
const query = map({
|
|
88
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
89
|
-
[_nT]: [, input[_NT]],
|
|
90
|
-
});
|
|
91
|
-
let body;
|
|
92
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = {};
|
|
98
|
-
b.bp("/tags/{ResourceArn}");
|
|
99
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
100
|
-
let body;
|
|
101
|
-
b.m("GET").h(headers).b(body);
|
|
102
|
-
return b.build();
|
|
103
|
-
};
|
|
104
|
-
export const se_StartAppCommand = async (input, context) => {
|
|
105
|
-
const b = rb(input, context);
|
|
106
|
-
const headers = {
|
|
107
|
-
"content-type": "application/json",
|
|
108
|
-
};
|
|
109
|
-
b.bp("/startapp");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(take(input, {
|
|
112
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
113
|
-
Description: [],
|
|
114
|
-
Domain: [],
|
|
115
|
-
LaunchOverrides: (_) => _json(_),
|
|
116
|
-
Name: [],
|
|
117
|
-
Simulation: [],
|
|
118
|
-
}));
|
|
119
|
-
b.m("POST").h(headers).b(body);
|
|
120
|
-
return b.build();
|
|
121
|
-
};
|
|
122
|
-
export const se_StartClockCommand = async (input, context) => {
|
|
123
|
-
const b = rb(input, context);
|
|
124
|
-
const headers = {
|
|
125
|
-
"content-type": "application/json",
|
|
126
|
-
};
|
|
127
|
-
b.bp("/startclock");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(take(input, {
|
|
130
|
-
Simulation: [],
|
|
131
|
-
}));
|
|
132
|
-
b.m("POST").h(headers).b(body);
|
|
133
|
-
return b.build();
|
|
134
|
-
};
|
|
135
|
-
export const se_StartSimulationCommand = async (input, context) => {
|
|
136
|
-
const b = rb(input, context);
|
|
137
|
-
const headers = {
|
|
138
|
-
"content-type": "application/json",
|
|
139
|
-
};
|
|
140
|
-
b.bp("/startsimulation");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(take(input, {
|
|
143
|
-
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
144
|
-
Description: [],
|
|
145
|
-
MaximumDuration: [],
|
|
146
|
-
Name: [],
|
|
147
|
-
RoleArn: [],
|
|
148
|
-
SchemaS3Location: (_) => _json(_),
|
|
149
|
-
SnapshotS3Location: (_) => _json(_),
|
|
150
|
-
Tags: (_) => _json(_),
|
|
151
|
-
}));
|
|
152
|
-
b.m("POST").h(headers).b(body);
|
|
153
|
-
return b.build();
|
|
154
|
-
};
|
|
155
|
-
export const se_StopAppCommand = async (input, context) => {
|
|
156
|
-
const b = rb(input, context);
|
|
157
|
-
const headers = {
|
|
158
|
-
"content-type": "application/json",
|
|
159
|
-
};
|
|
160
|
-
b.bp("/stopapp");
|
|
161
|
-
let body;
|
|
162
|
-
body = JSON.stringify(take(input, {
|
|
163
|
-
App: [],
|
|
164
|
-
Domain: [],
|
|
165
|
-
Simulation: [],
|
|
166
|
-
}));
|
|
167
|
-
b.m("POST").h(headers).b(body);
|
|
168
|
-
return b.build();
|
|
169
|
-
};
|
|
170
|
-
export const se_StopClockCommand = async (input, context) => {
|
|
171
|
-
const b = rb(input, context);
|
|
172
|
-
const headers = {
|
|
173
|
-
"content-type": "application/json",
|
|
174
|
-
};
|
|
175
|
-
b.bp("/stopclock");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(take(input, {
|
|
178
|
-
Simulation: [],
|
|
179
|
-
}));
|
|
180
|
-
b.m("POST").h(headers).b(body);
|
|
181
|
-
return b.build();
|
|
182
|
-
};
|
|
183
|
-
export const se_StopSimulationCommand = async (input, context) => {
|
|
184
|
-
const b = rb(input, context);
|
|
185
|
-
const headers = {
|
|
186
|
-
"content-type": "application/json",
|
|
187
|
-
};
|
|
188
|
-
b.bp("/stopsimulation");
|
|
189
|
-
let body;
|
|
190
|
-
body = JSON.stringify(take(input, {
|
|
191
|
-
Simulation: [],
|
|
192
|
-
}));
|
|
193
|
-
b.m("POST").h(headers).b(body);
|
|
194
|
-
return b.build();
|
|
195
|
-
};
|
|
196
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
197
|
-
const b = rb(input, context);
|
|
198
|
-
const headers = {
|
|
199
|
-
"content-type": "application/json",
|
|
200
|
-
};
|
|
201
|
-
b.bp("/tags/{ResourceArn}");
|
|
202
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
203
|
-
let body;
|
|
204
|
-
body = JSON.stringify(take(input, {
|
|
205
|
-
Tags: (_) => _json(_),
|
|
206
|
-
}));
|
|
207
|
-
b.m("POST").h(headers).b(body);
|
|
208
|
-
return b.build();
|
|
209
|
-
};
|
|
210
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
211
|
-
const b = rb(input, context);
|
|
212
|
-
const headers = {};
|
|
213
|
-
b.bp("/tags/{ResourceArn}");
|
|
214
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
215
|
-
const query = map({
|
|
216
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
217
|
-
});
|
|
218
|
-
let body;
|
|
219
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
export const de_CreateSnapshotCommand = async (output, context) => {
|
|
223
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
224
|
-
return de_CommandError(output, context);
|
|
225
|
-
}
|
|
226
|
-
const contents = map({
|
|
227
|
-
$metadata: deserializeMetadata(output),
|
|
228
|
-
});
|
|
229
|
-
await collectBody(output.body, context);
|
|
230
|
-
return contents;
|
|
231
|
-
};
|
|
232
|
-
export const de_DeleteAppCommand = async (output, context) => {
|
|
233
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
234
|
-
return de_CommandError(output, context);
|
|
235
|
-
}
|
|
236
|
-
const contents = map({
|
|
237
|
-
$metadata: deserializeMetadata(output),
|
|
238
|
-
});
|
|
239
|
-
await collectBody(output.body, context);
|
|
240
|
-
return contents;
|
|
241
|
-
};
|
|
242
|
-
export const de_DeleteSimulationCommand = 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
|
-
await collectBody(output.body, context);
|
|
250
|
-
return contents;
|
|
251
|
-
};
|
|
252
|
-
export const de_DescribeAppCommand = async (output, context) => {
|
|
253
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
|
-
return de_CommandError(output, context);
|
|
255
|
-
}
|
|
256
|
-
const contents = map({
|
|
257
|
-
$metadata: deserializeMetadata(output),
|
|
258
|
-
});
|
|
259
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
260
|
-
const doc = take(data, {
|
|
261
|
-
Description: __expectString,
|
|
262
|
-
Domain: __expectString,
|
|
263
|
-
EndpointInfo: _json,
|
|
264
|
-
LaunchOverrides: _json,
|
|
265
|
-
Name: __expectString,
|
|
266
|
-
Simulation: __expectString,
|
|
267
|
-
Status: __expectString,
|
|
268
|
-
TargetStatus: __expectString,
|
|
269
|
-
});
|
|
270
|
-
Object.assign(contents, doc);
|
|
271
|
-
return contents;
|
|
272
|
-
};
|
|
273
|
-
export const de_DescribeSimulationCommand = async (output, context) => {
|
|
274
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
275
|
-
return de_CommandError(output, context);
|
|
276
|
-
}
|
|
277
|
-
const contents = map({
|
|
278
|
-
$metadata: deserializeMetadata(output),
|
|
279
|
-
});
|
|
280
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
281
|
-
const doc = take(data, {
|
|
282
|
-
Arn: __expectString,
|
|
283
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
284
|
-
Description: __expectString,
|
|
285
|
-
ExecutionId: __expectString,
|
|
286
|
-
LiveSimulationState: _json,
|
|
287
|
-
LoggingConfiguration: _json,
|
|
288
|
-
MaximumDuration: __expectString,
|
|
289
|
-
Name: __expectString,
|
|
290
|
-
RoleArn: __expectString,
|
|
291
|
-
SchemaError: __expectString,
|
|
292
|
-
SchemaS3Location: _json,
|
|
293
|
-
SnapshotS3Location: _json,
|
|
294
|
-
StartError: __expectString,
|
|
295
|
-
Status: __expectString,
|
|
296
|
-
TargetStatus: __expectString,
|
|
297
|
-
});
|
|
298
|
-
Object.assign(contents, doc);
|
|
299
|
-
return contents;
|
|
300
|
-
};
|
|
301
|
-
export const de_ListAppsCommand = async (output, context) => {
|
|
302
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
303
|
-
return de_CommandError(output, context);
|
|
304
|
-
}
|
|
305
|
-
const contents = map({
|
|
306
|
-
$metadata: deserializeMetadata(output),
|
|
307
|
-
});
|
|
308
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
309
|
-
const doc = take(data, {
|
|
310
|
-
Apps: _json,
|
|
311
|
-
NextToken: __expectString,
|
|
312
|
-
});
|
|
313
|
-
Object.assign(contents, doc);
|
|
314
|
-
return contents;
|
|
315
|
-
};
|
|
316
|
-
export const de_ListSimulationsCommand = async (output, context) => {
|
|
317
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
318
|
-
return de_CommandError(output, context);
|
|
319
|
-
}
|
|
320
|
-
const contents = map({
|
|
321
|
-
$metadata: deserializeMetadata(output),
|
|
322
|
-
});
|
|
323
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
324
|
-
const doc = take(data, {
|
|
325
|
-
NextToken: __expectString,
|
|
326
|
-
Simulations: (_) => de_SimulationList(_, context),
|
|
327
|
-
});
|
|
328
|
-
Object.assign(contents, doc);
|
|
329
|
-
return contents;
|
|
330
|
-
};
|
|
331
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
333
|
-
return de_CommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const contents = map({
|
|
336
|
-
$metadata: deserializeMetadata(output),
|
|
337
|
-
});
|
|
338
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
339
|
-
const doc = take(data, {
|
|
340
|
-
Tags: _json,
|
|
341
|
-
});
|
|
342
|
-
Object.assign(contents, doc);
|
|
343
|
-
return contents;
|
|
344
|
-
};
|
|
345
|
-
export const de_StartAppCommand = async (output, context) => {
|
|
346
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
347
|
-
return de_CommandError(output, context);
|
|
348
|
-
}
|
|
349
|
-
const contents = map({
|
|
350
|
-
$metadata: deserializeMetadata(output),
|
|
351
|
-
});
|
|
352
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
353
|
-
const doc = take(data, {
|
|
354
|
-
Domain: __expectString,
|
|
355
|
-
Name: __expectString,
|
|
356
|
-
Simulation: __expectString,
|
|
357
|
-
});
|
|
358
|
-
Object.assign(contents, doc);
|
|
359
|
-
return contents;
|
|
360
|
-
};
|
|
361
|
-
export const de_StartClockCommand = async (output, context) => {
|
|
362
|
-
if (output.statusCode !== 200 && 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_StartSimulationCommand = async (output, context) => {
|
|
372
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
373
|
-
return de_CommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const contents = map({
|
|
376
|
-
$metadata: deserializeMetadata(output),
|
|
377
|
-
});
|
|
378
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
379
|
-
const doc = take(data, {
|
|
380
|
-
Arn: __expectString,
|
|
381
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
382
|
-
ExecutionId: __expectString,
|
|
383
|
-
});
|
|
384
|
-
Object.assign(contents, doc);
|
|
385
|
-
return contents;
|
|
386
|
-
};
|
|
387
|
-
export const de_StopAppCommand = async (output, context) => {
|
|
388
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
389
|
-
return de_CommandError(output, context);
|
|
390
|
-
}
|
|
391
|
-
const contents = map({
|
|
392
|
-
$metadata: deserializeMetadata(output),
|
|
393
|
-
});
|
|
394
|
-
await collectBody(output.body, context);
|
|
395
|
-
return contents;
|
|
396
|
-
};
|
|
397
|
-
export const de_StopClockCommand = async (output, context) => {
|
|
398
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
399
|
-
return de_CommandError(output, context);
|
|
400
|
-
}
|
|
401
|
-
const contents = map({
|
|
402
|
-
$metadata: deserializeMetadata(output),
|
|
403
|
-
});
|
|
404
|
-
await collectBody(output.body, context);
|
|
405
|
-
return contents;
|
|
406
|
-
};
|
|
407
|
-
export const de_StopSimulationCommand = async (output, context) => {
|
|
408
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
409
|
-
return de_CommandError(output, context);
|
|
410
|
-
}
|
|
411
|
-
const contents = map({
|
|
412
|
-
$metadata: deserializeMetadata(output),
|
|
413
|
-
});
|
|
414
|
-
await collectBody(output.body, context);
|
|
415
|
-
return contents;
|
|
416
|
-
};
|
|
417
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
418
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
419
|
-
return de_CommandError(output, context);
|
|
420
|
-
}
|
|
421
|
-
const contents = map({
|
|
422
|
-
$metadata: deserializeMetadata(output),
|
|
423
|
-
});
|
|
424
|
-
await collectBody(output.body, context);
|
|
425
|
-
return contents;
|
|
426
|
-
};
|
|
427
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
428
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
429
|
-
return de_CommandError(output, context);
|
|
430
|
-
}
|
|
431
|
-
const contents = map({
|
|
432
|
-
$metadata: deserializeMetadata(output),
|
|
433
|
-
});
|
|
434
|
-
await collectBody(output.body, context);
|
|
435
|
-
return contents;
|
|
436
|
-
};
|
|
437
|
-
const de_CommandError = async (output, context) => {
|
|
438
|
-
const parsedOutput = {
|
|
439
|
-
...output,
|
|
440
|
-
body: await parseErrorBody(output.body, context),
|
|
441
|
-
};
|
|
442
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
443
|
-
switch (errorCode) {
|
|
444
|
-
case "AccessDeniedException":
|
|
445
|
-
case "com.amazonaws.simspaceweaver#AccessDeniedException":
|
|
446
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
447
|
-
case "ConflictException":
|
|
448
|
-
case "com.amazonaws.simspaceweaver#ConflictException":
|
|
449
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
450
|
-
case "InternalServerException":
|
|
451
|
-
case "com.amazonaws.simspaceweaver#InternalServerException":
|
|
452
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
453
|
-
case "ResourceNotFoundException":
|
|
454
|
-
case "com.amazonaws.simspaceweaver#ResourceNotFoundException":
|
|
455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
456
|
-
case "ValidationException":
|
|
457
|
-
case "com.amazonaws.simspaceweaver#ValidationException":
|
|
458
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
459
|
-
case "ServiceQuotaExceededException":
|
|
460
|
-
case "com.amazonaws.simspaceweaver#ServiceQuotaExceededException":
|
|
461
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
462
|
-
case "TooManyTagsException":
|
|
463
|
-
case "com.amazonaws.simspaceweaver#TooManyTagsException":
|
|
464
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
465
|
-
default:
|
|
466
|
-
const parsedBody = parsedOutput.body;
|
|
467
|
-
return throwDefaultError({
|
|
468
|
-
output,
|
|
469
|
-
parsedBody,
|
|
470
|
-
errorCode,
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
475
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
476
|
-
const contents = map({});
|
|
477
|
-
const data = parsedOutput.body;
|
|
478
|
-
const doc = take(data, {
|
|
479
|
-
Message: __expectString,
|
|
480
|
-
});
|
|
481
|
-
Object.assign(contents, doc);
|
|
482
|
-
const exception = new AccessDeniedException({
|
|
483
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
484
|
-
...contents,
|
|
485
|
-
});
|
|
486
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
487
|
-
};
|
|
488
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
489
|
-
const contents = map({});
|
|
490
|
-
const data = parsedOutput.body;
|
|
491
|
-
const doc = take(data, {
|
|
492
|
-
Message: __expectString,
|
|
493
|
-
});
|
|
494
|
-
Object.assign(contents, doc);
|
|
495
|
-
const exception = new ConflictException({
|
|
496
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
497
|
-
...contents,
|
|
498
|
-
});
|
|
499
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
500
|
-
};
|
|
501
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
502
|
-
const contents = map({});
|
|
503
|
-
const data = parsedOutput.body;
|
|
504
|
-
const doc = take(data, {
|
|
505
|
-
Message: __expectString,
|
|
506
|
-
});
|
|
507
|
-
Object.assign(contents, doc);
|
|
508
|
-
const exception = new InternalServerException({
|
|
509
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
510
|
-
...contents,
|
|
511
|
-
});
|
|
512
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
513
|
-
};
|
|
514
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
515
|
-
const contents = map({});
|
|
516
|
-
const data = parsedOutput.body;
|
|
517
|
-
const doc = take(data, {
|
|
518
|
-
Message: __expectString,
|
|
519
|
-
});
|
|
520
|
-
Object.assign(contents, doc);
|
|
521
|
-
const exception = new ResourceNotFoundException({
|
|
522
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
523
|
-
...contents,
|
|
524
|
-
});
|
|
525
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
526
|
-
};
|
|
527
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
528
|
-
const contents = map({});
|
|
529
|
-
const data = parsedOutput.body;
|
|
530
|
-
const doc = take(data, {
|
|
531
|
-
Message: __expectString,
|
|
532
|
-
});
|
|
533
|
-
Object.assign(contents, doc);
|
|
534
|
-
const exception = new ServiceQuotaExceededException({
|
|
535
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
536
|
-
...contents,
|
|
537
|
-
});
|
|
538
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
539
|
-
};
|
|
540
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
541
|
-
const contents = map({});
|
|
542
|
-
const data = parsedOutput.body;
|
|
543
|
-
const doc = take(data, {
|
|
544
|
-
Message: __expectString,
|
|
545
|
-
});
|
|
546
|
-
Object.assign(contents, doc);
|
|
547
|
-
const exception = new TooManyTagsException({
|
|
548
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
549
|
-
...contents,
|
|
550
|
-
});
|
|
551
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
552
|
-
};
|
|
553
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
554
|
-
const contents = map({});
|
|
555
|
-
const data = parsedOutput.body;
|
|
556
|
-
const doc = take(data, {
|
|
557
|
-
Message: __expectString,
|
|
558
|
-
});
|
|
559
|
-
Object.assign(contents, doc);
|
|
560
|
-
const exception = new ValidationException({
|
|
561
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
562
|
-
...contents,
|
|
563
|
-
});
|
|
564
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
565
|
-
};
|
|
566
|
-
const de_SimulationList = (output, context) => {
|
|
567
|
-
const retVal = (output || [])
|
|
568
|
-
.filter((e) => e != null)
|
|
569
|
-
.map((entry) => {
|
|
570
|
-
return de_SimulationMetadata(entry, context);
|
|
571
|
-
});
|
|
572
|
-
return retVal;
|
|
573
|
-
};
|
|
574
|
-
const de_SimulationMetadata = (output, context) => {
|
|
575
|
-
return take(output, {
|
|
576
|
-
Arn: __expectString,
|
|
577
|
-
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
578
|
-
Name: __expectString,
|
|
579
|
-
Status: __expectString,
|
|
580
|
-
TargetStatus: __expectString,
|
|
581
|
-
});
|
|
582
|
-
};
|
|
583
|
-
const deserializeMetadata = (output) => ({
|
|
584
|
-
httpStatusCode: output.statusCode,
|
|
585
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
586
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
587
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
588
|
-
});
|
|
589
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
590
|
-
const _A = "App";
|
|
591
|
-
const _D = "Domain";
|
|
592
|
-
const _MR = "MaxResults";
|
|
593
|
-
const _NT = "NextToken";
|
|
594
|
-
const _S = "Simulation";
|
|
595
|
-
const _TK = "TagKeys";
|
|
596
|
-
const _a = "app";
|
|
597
|
-
const _d = "domain";
|
|
598
|
-
const _mR = "maxResults";
|
|
599
|
-
const _nT = "nextToken";
|
|
600
|
-
const _s = "simulation";
|
|
601
|
-
const _tK = "tagKeys";
|