@aws-sdk/client-iotsitewise 3.474.0 → 3.477.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/protocols/Aws_restJson1.js +632 -1160
- package/dist-es/protocols/Aws_restJson1.js +634 -1162
- package/package.json +5 -4
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
5
|
import { IoTSiteWiseServiceException as __BaseException } from "../models/IoTSiteWiseServiceException";
|
|
5
6
|
import { AccessDeniedException, ConflictingOperationException, InternalFailureException, InvalidRequestException, LimitExceededException, QueryTimeoutException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
|
|
6
7
|
import { TooManyTagsException } from "../models/models_1";
|
|
7
8
|
export const se_AssociateAssetsCommand = async (input, context) => {
|
|
8
|
-
const
|
|
9
|
+
const b = rb(input, context);
|
|
9
10
|
const headers = {
|
|
10
11
|
"content-type": "application/json",
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
b.bp("/assets/{assetId}/associate");
|
|
14
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
14
15
|
let body;
|
|
15
16
|
body = JSON.stringify(take(input, {
|
|
16
17
|
childAssetId: [],
|
|
@@ -24,26 +25,20 @@ export const se_AssociateAssetsCommand = async (input, context) => {
|
|
|
24
25
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
port,
|
|
31
|
-
method: "POST",
|
|
32
|
-
headers,
|
|
33
|
-
path: resolvedPath,
|
|
34
|
-
body,
|
|
35
|
-
});
|
|
28
|
+
b.hn(resolvedHostname);
|
|
29
|
+
b.m("POST").h(headers).b(body);
|
|
30
|
+
return b.build();
|
|
36
31
|
};
|
|
37
32
|
export const se_AssociateTimeSeriesToAssetPropertyCommand = async (input, context) => {
|
|
38
|
-
const
|
|
33
|
+
const b = rb(input, context);
|
|
39
34
|
const headers = {
|
|
40
35
|
"content-type": "application/json",
|
|
41
36
|
};
|
|
42
|
-
|
|
37
|
+
b.bp("/timeseries/associate");
|
|
43
38
|
const query = map({
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
[_a]: [, __expectNonNull(input[_a], `alias`)],
|
|
40
|
+
[_aI]: [, __expectNonNull(input[_aI], `assetId`)],
|
|
41
|
+
[_pI]: [, __expectNonNull(input[_pI], `propertyId`)],
|
|
47
42
|
});
|
|
48
43
|
let body;
|
|
49
44
|
body = JSON.stringify(take(input, {
|
|
@@ -56,24 +51,17 @@ export const se_AssociateTimeSeriesToAssetPropertyCommand = async (input, contex
|
|
|
56
51
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
57
52
|
}
|
|
58
53
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
port,
|
|
63
|
-
method: "POST",
|
|
64
|
-
headers,
|
|
65
|
-
path: resolvedPath,
|
|
66
|
-
query,
|
|
67
|
-
body,
|
|
68
|
-
});
|
|
54
|
+
b.hn(resolvedHostname);
|
|
55
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
56
|
+
return b.build();
|
|
69
57
|
};
|
|
70
58
|
export const se_BatchAssociateProjectAssetsCommand = async (input, context) => {
|
|
71
|
-
const
|
|
59
|
+
const b = rb(input, context);
|
|
72
60
|
const headers = {
|
|
73
61
|
"content-type": "application/json",
|
|
74
62
|
};
|
|
75
|
-
|
|
76
|
-
|
|
63
|
+
b.bp("/projects/{projectId}/assets/associate");
|
|
64
|
+
b.p("projectId", () => input.projectId, "{projectId}", false);
|
|
77
65
|
let body;
|
|
78
66
|
body = JSON.stringify(take(input, {
|
|
79
67
|
assetIds: (_) => _json(_),
|
|
@@ -86,23 +74,17 @@ export const se_BatchAssociateProjectAssetsCommand = async (input, context) => {
|
|
|
86
74
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
87
75
|
}
|
|
88
76
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
port,
|
|
93
|
-
method: "POST",
|
|
94
|
-
headers,
|
|
95
|
-
path: resolvedPath,
|
|
96
|
-
body,
|
|
97
|
-
});
|
|
77
|
+
b.hn(resolvedHostname);
|
|
78
|
+
b.m("POST").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
98
80
|
};
|
|
99
81
|
export const se_BatchDisassociateProjectAssetsCommand = async (input, context) => {
|
|
100
|
-
const
|
|
82
|
+
const b = rb(input, context);
|
|
101
83
|
const headers = {
|
|
102
84
|
"content-type": "application/json",
|
|
103
85
|
};
|
|
104
|
-
|
|
105
|
-
|
|
86
|
+
b.bp("/projects/{projectId}/assets/disassociate");
|
|
87
|
+
b.p("projectId", () => input.projectId, "{projectId}", false);
|
|
106
88
|
let body;
|
|
107
89
|
body = JSON.stringify(take(input, {
|
|
108
90
|
assetIds: (_) => _json(_),
|
|
@@ -115,22 +97,16 @@ export const se_BatchDisassociateProjectAssetsCommand = async (input, context) =
|
|
|
115
97
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
116
98
|
}
|
|
117
99
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
port,
|
|
122
|
-
method: "POST",
|
|
123
|
-
headers,
|
|
124
|
-
path: resolvedPath,
|
|
125
|
-
body,
|
|
126
|
-
});
|
|
100
|
+
b.hn(resolvedHostname);
|
|
101
|
+
b.m("POST").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
127
103
|
};
|
|
128
104
|
export const se_BatchGetAssetPropertyAggregatesCommand = async (input, context) => {
|
|
129
|
-
const
|
|
105
|
+
const b = rb(input, context);
|
|
130
106
|
const headers = {
|
|
131
107
|
"content-type": "application/json",
|
|
132
108
|
};
|
|
133
|
-
|
|
109
|
+
b.bp("/properties/batch/aggregates");
|
|
134
110
|
let body;
|
|
135
111
|
body = JSON.stringify(take(input, {
|
|
136
112
|
entries: (_) => se_BatchGetAssetPropertyAggregatesEntries(_, context),
|
|
@@ -144,22 +120,16 @@ export const se_BatchGetAssetPropertyAggregatesCommand = async (input, context)
|
|
|
144
120
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
145
121
|
}
|
|
146
122
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
port,
|
|
151
|
-
method: "POST",
|
|
152
|
-
headers,
|
|
153
|
-
path: resolvedPath,
|
|
154
|
-
body,
|
|
155
|
-
});
|
|
123
|
+
b.hn(resolvedHostname);
|
|
124
|
+
b.m("POST").h(headers).b(body);
|
|
125
|
+
return b.build();
|
|
156
126
|
};
|
|
157
127
|
export const se_BatchGetAssetPropertyValueCommand = async (input, context) => {
|
|
158
|
-
const
|
|
128
|
+
const b = rb(input, context);
|
|
159
129
|
const headers = {
|
|
160
130
|
"content-type": "application/json",
|
|
161
131
|
};
|
|
162
|
-
|
|
132
|
+
b.bp("/properties/batch/latest");
|
|
163
133
|
let body;
|
|
164
134
|
body = JSON.stringify(take(input, {
|
|
165
135
|
entries: (_) => _json(_),
|
|
@@ -172,22 +142,16 @@ export const se_BatchGetAssetPropertyValueCommand = async (input, context) => {
|
|
|
172
142
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
173
143
|
}
|
|
174
144
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
port,
|
|
179
|
-
method: "POST",
|
|
180
|
-
headers,
|
|
181
|
-
path: resolvedPath,
|
|
182
|
-
body,
|
|
183
|
-
});
|
|
145
|
+
b.hn(resolvedHostname);
|
|
146
|
+
b.m("POST").h(headers).b(body);
|
|
147
|
+
return b.build();
|
|
184
148
|
};
|
|
185
149
|
export const se_BatchGetAssetPropertyValueHistoryCommand = async (input, context) => {
|
|
186
|
-
const
|
|
150
|
+
const b = rb(input, context);
|
|
187
151
|
const headers = {
|
|
188
152
|
"content-type": "application/json",
|
|
189
153
|
};
|
|
190
|
-
|
|
154
|
+
b.bp("/properties/batch/history");
|
|
191
155
|
let body;
|
|
192
156
|
body = JSON.stringify(take(input, {
|
|
193
157
|
entries: (_) => se_BatchGetAssetPropertyValueHistoryEntries(_, context),
|
|
@@ -201,22 +165,16 @@ export const se_BatchGetAssetPropertyValueHistoryCommand = async (input, context
|
|
|
201
165
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
202
166
|
}
|
|
203
167
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
port,
|
|
208
|
-
method: "POST",
|
|
209
|
-
headers,
|
|
210
|
-
path: resolvedPath,
|
|
211
|
-
body,
|
|
212
|
-
});
|
|
168
|
+
b.hn(resolvedHostname);
|
|
169
|
+
b.m("POST").h(headers).b(body);
|
|
170
|
+
return b.build();
|
|
213
171
|
};
|
|
214
172
|
export const se_BatchPutAssetPropertyValueCommand = async (input, context) => {
|
|
215
|
-
const
|
|
173
|
+
const b = rb(input, context);
|
|
216
174
|
const headers = {
|
|
217
175
|
"content-type": "application/json",
|
|
218
176
|
};
|
|
219
|
-
|
|
177
|
+
b.bp("/properties");
|
|
220
178
|
let body;
|
|
221
179
|
body = JSON.stringify(take(input, {
|
|
222
180
|
entries: (_) => se_PutAssetPropertyValueEntries(_, context),
|
|
@@ -228,22 +186,16 @@ export const se_BatchPutAssetPropertyValueCommand = async (input, context) => {
|
|
|
228
186
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
229
187
|
}
|
|
230
188
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
port,
|
|
235
|
-
method: "POST",
|
|
236
|
-
headers,
|
|
237
|
-
path: resolvedPath,
|
|
238
|
-
body,
|
|
239
|
-
});
|
|
189
|
+
b.hn(resolvedHostname);
|
|
190
|
+
b.m("POST").h(headers).b(body);
|
|
191
|
+
return b.build();
|
|
240
192
|
};
|
|
241
193
|
export const se_CreateAccessPolicyCommand = async (input, context) => {
|
|
242
|
-
const
|
|
194
|
+
const b = rb(input, context);
|
|
243
195
|
const headers = {
|
|
244
196
|
"content-type": "application/json",
|
|
245
197
|
};
|
|
246
|
-
|
|
198
|
+
b.bp("/access-policies");
|
|
247
199
|
let body;
|
|
248
200
|
body = JSON.stringify(take(input, {
|
|
249
201
|
accessPolicyIdentity: (_) => _json(_),
|
|
@@ -259,22 +211,16 @@ export const se_CreateAccessPolicyCommand = async (input, context) => {
|
|
|
259
211
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
260
212
|
}
|
|
261
213
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
port,
|
|
266
|
-
method: "POST",
|
|
267
|
-
headers,
|
|
268
|
-
path: resolvedPath,
|
|
269
|
-
body,
|
|
270
|
-
});
|
|
214
|
+
b.hn(resolvedHostname);
|
|
215
|
+
b.m("POST").h(headers).b(body);
|
|
216
|
+
return b.build();
|
|
271
217
|
};
|
|
272
218
|
export const se_CreateAssetCommand = async (input, context) => {
|
|
273
|
-
const
|
|
219
|
+
const b = rb(input, context);
|
|
274
220
|
const headers = {
|
|
275
221
|
"content-type": "application/json",
|
|
276
222
|
};
|
|
277
|
-
|
|
223
|
+
b.bp("/assets");
|
|
278
224
|
let body;
|
|
279
225
|
body = JSON.stringify(take(input, {
|
|
280
226
|
assetDescription: [],
|
|
@@ -292,22 +238,16 @@ export const se_CreateAssetCommand = async (input, context) => {
|
|
|
292
238
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
293
239
|
}
|
|
294
240
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
port,
|
|
299
|
-
method: "POST",
|
|
300
|
-
headers,
|
|
301
|
-
path: resolvedPath,
|
|
302
|
-
body,
|
|
303
|
-
});
|
|
241
|
+
b.hn(resolvedHostname);
|
|
242
|
+
b.m("POST").h(headers).b(body);
|
|
243
|
+
return b.build();
|
|
304
244
|
};
|
|
305
245
|
export const se_CreateAssetModelCommand = async (input, context) => {
|
|
306
|
-
const
|
|
246
|
+
const b = rb(input, context);
|
|
307
247
|
const headers = {
|
|
308
248
|
"content-type": "application/json",
|
|
309
249
|
};
|
|
310
|
-
|
|
250
|
+
b.bp("/asset-models");
|
|
311
251
|
let body;
|
|
312
252
|
body = JSON.stringify(take(input, {
|
|
313
253
|
assetModelCompositeModels: (_) => se_AssetModelCompositeModelDefinitions(_, context),
|
|
@@ -328,24 +268,17 @@ export const se_CreateAssetModelCommand = async (input, context) => {
|
|
|
328
268
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
329
269
|
}
|
|
330
270
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
port,
|
|
335
|
-
method: "POST",
|
|
336
|
-
headers,
|
|
337
|
-
path: resolvedPath,
|
|
338
|
-
body,
|
|
339
|
-
});
|
|
271
|
+
b.hn(resolvedHostname);
|
|
272
|
+
b.m("POST").h(headers).b(body);
|
|
273
|
+
return b.build();
|
|
340
274
|
};
|
|
341
275
|
export const se_CreateAssetModelCompositeModelCommand = async (input, context) => {
|
|
342
|
-
const
|
|
276
|
+
const b = rb(input, context);
|
|
343
277
|
const headers = {
|
|
344
278
|
"content-type": "application/json",
|
|
345
279
|
};
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
280
|
+
b.bp("/asset-models/{assetModelId}/composite-models");
|
|
281
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
349
282
|
let body;
|
|
350
283
|
body = JSON.stringify(take(input, {
|
|
351
284
|
assetModelCompositeModelDescription: [],
|
|
@@ -365,22 +298,16 @@ export const se_CreateAssetModelCompositeModelCommand = async (input, context) =
|
|
|
365
298
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
366
299
|
}
|
|
367
300
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
port,
|
|
372
|
-
method: "POST",
|
|
373
|
-
headers,
|
|
374
|
-
path: resolvedPath,
|
|
375
|
-
body,
|
|
376
|
-
});
|
|
301
|
+
b.hn(resolvedHostname);
|
|
302
|
+
b.m("POST").h(headers).b(body);
|
|
303
|
+
return b.build();
|
|
377
304
|
};
|
|
378
305
|
export const se_CreateBulkImportJobCommand = async (input, context) => {
|
|
379
|
-
const
|
|
306
|
+
const b = rb(input, context);
|
|
380
307
|
const headers = {
|
|
381
308
|
"content-type": "application/json",
|
|
382
309
|
};
|
|
383
|
-
|
|
310
|
+
b.bp("/jobs");
|
|
384
311
|
let body;
|
|
385
312
|
body = JSON.stringify(take(input, {
|
|
386
313
|
adaptiveIngestion: [],
|
|
@@ -398,22 +325,16 @@ export const se_CreateBulkImportJobCommand = async (input, context) => {
|
|
|
398
325
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
399
326
|
}
|
|
400
327
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
port,
|
|
405
|
-
method: "POST",
|
|
406
|
-
headers,
|
|
407
|
-
path: resolvedPath,
|
|
408
|
-
body,
|
|
409
|
-
});
|
|
328
|
+
b.hn(resolvedHostname);
|
|
329
|
+
b.m("POST").h(headers).b(body);
|
|
330
|
+
return b.build();
|
|
410
331
|
};
|
|
411
332
|
export const se_CreateDashboardCommand = async (input, context) => {
|
|
412
|
-
const
|
|
333
|
+
const b = rb(input, context);
|
|
413
334
|
const headers = {
|
|
414
335
|
"content-type": "application/json",
|
|
415
336
|
};
|
|
416
|
-
|
|
337
|
+
b.bp("/dashboards");
|
|
417
338
|
let body;
|
|
418
339
|
body = JSON.stringify(take(input, {
|
|
419
340
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -430,22 +351,16 @@ export const se_CreateDashboardCommand = async (input, context) => {
|
|
|
430
351
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
431
352
|
}
|
|
432
353
|
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
port,
|
|
437
|
-
method: "POST",
|
|
438
|
-
headers,
|
|
439
|
-
path: resolvedPath,
|
|
440
|
-
body,
|
|
441
|
-
});
|
|
354
|
+
b.hn(resolvedHostname);
|
|
355
|
+
b.m("POST").h(headers).b(body);
|
|
356
|
+
return b.build();
|
|
442
357
|
};
|
|
443
358
|
export const se_CreateGatewayCommand = async (input, context) => {
|
|
444
|
-
const
|
|
359
|
+
const b = rb(input, context);
|
|
445
360
|
const headers = {
|
|
446
361
|
"content-type": "application/json",
|
|
447
362
|
};
|
|
448
|
-
|
|
363
|
+
b.bp("/20200301/gateways");
|
|
449
364
|
let body;
|
|
450
365
|
body = JSON.stringify(take(input, {
|
|
451
366
|
gatewayName: [],
|
|
@@ -459,22 +374,16 @@ export const se_CreateGatewayCommand = async (input, context) => {
|
|
|
459
374
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
460
375
|
}
|
|
461
376
|
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
port,
|
|
466
|
-
method: "POST",
|
|
467
|
-
headers,
|
|
468
|
-
path: resolvedPath,
|
|
469
|
-
body,
|
|
470
|
-
});
|
|
377
|
+
b.hn(resolvedHostname);
|
|
378
|
+
b.m("POST").h(headers).b(body);
|
|
379
|
+
return b.build();
|
|
471
380
|
};
|
|
472
381
|
export const se_CreatePortalCommand = async (input, context) => {
|
|
473
|
-
const
|
|
382
|
+
const b = rb(input, context);
|
|
474
383
|
const headers = {
|
|
475
384
|
"content-type": "application/json",
|
|
476
385
|
};
|
|
477
|
-
|
|
386
|
+
b.bp("/portals");
|
|
478
387
|
let body;
|
|
479
388
|
body = JSON.stringify(take(input, {
|
|
480
389
|
alarms: (_) => _json(_),
|
|
@@ -495,22 +404,16 @@ export const se_CreatePortalCommand = async (input, context) => {
|
|
|
495
404
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
496
405
|
}
|
|
497
406
|
}
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
port,
|
|
502
|
-
method: "POST",
|
|
503
|
-
headers,
|
|
504
|
-
path: resolvedPath,
|
|
505
|
-
body,
|
|
506
|
-
});
|
|
407
|
+
b.hn(resolvedHostname);
|
|
408
|
+
b.m("POST").h(headers).b(body);
|
|
409
|
+
return b.build();
|
|
507
410
|
};
|
|
508
411
|
export const se_CreateProjectCommand = async (input, context) => {
|
|
509
|
-
const
|
|
412
|
+
const b = rb(input, context);
|
|
510
413
|
const headers = {
|
|
511
414
|
"content-type": "application/json",
|
|
512
415
|
};
|
|
513
|
-
|
|
416
|
+
b.bp("/projects");
|
|
514
417
|
let body;
|
|
515
418
|
body = JSON.stringify(take(input, {
|
|
516
419
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -526,23 +429,17 @@ export const se_CreateProjectCommand = async (input, context) => {
|
|
|
526
429
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
527
430
|
}
|
|
528
431
|
}
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
port,
|
|
533
|
-
method: "POST",
|
|
534
|
-
headers,
|
|
535
|
-
path: resolvedPath,
|
|
536
|
-
body,
|
|
537
|
-
});
|
|
432
|
+
b.hn(resolvedHostname);
|
|
433
|
+
b.m("POST").h(headers).b(body);
|
|
434
|
+
return b.build();
|
|
538
435
|
};
|
|
539
436
|
export const se_DeleteAccessPolicyCommand = async (input, context) => {
|
|
540
|
-
const
|
|
437
|
+
const b = rb(input, context);
|
|
541
438
|
const headers = {};
|
|
542
|
-
|
|
543
|
-
|
|
439
|
+
b.bp("/access-policies/{accessPolicyId}");
|
|
440
|
+
b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
|
|
544
441
|
const query = map({
|
|
545
|
-
|
|
442
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
546
443
|
});
|
|
547
444
|
let body;
|
|
548
445
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -552,24 +449,17 @@ export const se_DeleteAccessPolicyCommand = async (input, context) => {
|
|
|
552
449
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
553
450
|
}
|
|
554
451
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
port,
|
|
559
|
-
method: "DELETE",
|
|
560
|
-
headers,
|
|
561
|
-
path: resolvedPath,
|
|
562
|
-
query,
|
|
563
|
-
body,
|
|
564
|
-
});
|
|
452
|
+
b.hn(resolvedHostname);
|
|
453
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
454
|
+
return b.build();
|
|
565
455
|
};
|
|
566
456
|
export const se_DeleteAssetCommand = async (input, context) => {
|
|
567
|
-
const
|
|
457
|
+
const b = rb(input, context);
|
|
568
458
|
const headers = {};
|
|
569
|
-
|
|
570
|
-
|
|
459
|
+
b.bp("/assets/{assetId}");
|
|
460
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
571
461
|
const query = map({
|
|
572
|
-
|
|
462
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
573
463
|
});
|
|
574
464
|
let body;
|
|
575
465
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -579,24 +469,17 @@ export const se_DeleteAssetCommand = async (input, context) => {
|
|
|
579
469
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
580
470
|
}
|
|
581
471
|
}
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
port,
|
|
586
|
-
method: "DELETE",
|
|
587
|
-
headers,
|
|
588
|
-
path: resolvedPath,
|
|
589
|
-
query,
|
|
590
|
-
body,
|
|
591
|
-
});
|
|
472
|
+
b.hn(resolvedHostname);
|
|
473
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
474
|
+
return b.build();
|
|
592
475
|
};
|
|
593
476
|
export const se_DeleteAssetModelCommand = async (input, context) => {
|
|
594
|
-
const
|
|
477
|
+
const b = rb(input, context);
|
|
595
478
|
const headers = {};
|
|
596
|
-
|
|
597
|
-
|
|
479
|
+
b.bp("/asset-models/{assetModelId}");
|
|
480
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
598
481
|
const query = map({
|
|
599
|
-
|
|
482
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
600
483
|
});
|
|
601
484
|
let body;
|
|
602
485
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -606,26 +489,18 @@ export const se_DeleteAssetModelCommand = async (input, context) => {
|
|
|
606
489
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
607
490
|
}
|
|
608
491
|
}
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
port,
|
|
613
|
-
method: "DELETE",
|
|
614
|
-
headers,
|
|
615
|
-
path: resolvedPath,
|
|
616
|
-
query,
|
|
617
|
-
body,
|
|
618
|
-
});
|
|
492
|
+
b.hn(resolvedHostname);
|
|
493
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
494
|
+
return b.build();
|
|
619
495
|
};
|
|
620
496
|
export const se_DeleteAssetModelCompositeModelCommand = async (input, context) => {
|
|
621
|
-
const
|
|
497
|
+
const b = rb(input, context);
|
|
622
498
|
const headers = {};
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
499
|
+
b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
|
|
500
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
501
|
+
b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
627
502
|
const query = map({
|
|
628
|
-
|
|
503
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
629
504
|
});
|
|
630
505
|
let body;
|
|
631
506
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -635,24 +510,17 @@ export const se_DeleteAssetModelCompositeModelCommand = async (input, context) =
|
|
|
635
510
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
636
511
|
}
|
|
637
512
|
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
port,
|
|
642
|
-
method: "DELETE",
|
|
643
|
-
headers,
|
|
644
|
-
path: resolvedPath,
|
|
645
|
-
query,
|
|
646
|
-
body,
|
|
647
|
-
});
|
|
513
|
+
b.hn(resolvedHostname);
|
|
514
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
515
|
+
return b.build();
|
|
648
516
|
};
|
|
649
517
|
export const se_DeleteDashboardCommand = async (input, context) => {
|
|
650
|
-
const
|
|
518
|
+
const b = rb(input, context);
|
|
651
519
|
const headers = {};
|
|
652
|
-
|
|
653
|
-
|
|
520
|
+
b.bp("/dashboards/{dashboardId}");
|
|
521
|
+
b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
|
|
654
522
|
const query = map({
|
|
655
|
-
|
|
523
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
656
524
|
});
|
|
657
525
|
let body;
|
|
658
526
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -662,22 +530,15 @@ export const se_DeleteDashboardCommand = async (input, context) => {
|
|
|
662
530
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
663
531
|
}
|
|
664
532
|
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
port,
|
|
669
|
-
method: "DELETE",
|
|
670
|
-
headers,
|
|
671
|
-
path: resolvedPath,
|
|
672
|
-
query,
|
|
673
|
-
body,
|
|
674
|
-
});
|
|
533
|
+
b.hn(resolvedHostname);
|
|
534
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
535
|
+
return b.build();
|
|
675
536
|
};
|
|
676
537
|
export const se_DeleteGatewayCommand = async (input, context) => {
|
|
677
|
-
const
|
|
538
|
+
const b = rb(input, context);
|
|
678
539
|
const headers = {};
|
|
679
|
-
|
|
680
|
-
|
|
540
|
+
b.bp("/20200301/gateways/{gatewayId}");
|
|
541
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
681
542
|
let body;
|
|
682
543
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
683
544
|
if (context.disableHostPrefix !== true) {
|
|
@@ -686,23 +547,17 @@ export const se_DeleteGatewayCommand = async (input, context) => {
|
|
|
686
547
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
687
548
|
}
|
|
688
549
|
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
port,
|
|
693
|
-
method: "DELETE",
|
|
694
|
-
headers,
|
|
695
|
-
path: resolvedPath,
|
|
696
|
-
body,
|
|
697
|
-
});
|
|
550
|
+
b.hn(resolvedHostname);
|
|
551
|
+
b.m("DELETE").h(headers).b(body);
|
|
552
|
+
return b.build();
|
|
698
553
|
};
|
|
699
554
|
export const se_DeletePortalCommand = async (input, context) => {
|
|
700
|
-
const
|
|
555
|
+
const b = rb(input, context);
|
|
701
556
|
const headers = {};
|
|
702
|
-
|
|
703
|
-
|
|
557
|
+
b.bp("/portals/{portalId}");
|
|
558
|
+
b.p("portalId", () => input.portalId, "{portalId}", false);
|
|
704
559
|
const query = map({
|
|
705
|
-
|
|
560
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
706
561
|
});
|
|
707
562
|
let body;
|
|
708
563
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -712,24 +567,17 @@ export const se_DeletePortalCommand = async (input, context) => {
|
|
|
712
567
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
713
568
|
}
|
|
714
569
|
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
port,
|
|
719
|
-
method: "DELETE",
|
|
720
|
-
headers,
|
|
721
|
-
path: resolvedPath,
|
|
722
|
-
query,
|
|
723
|
-
body,
|
|
724
|
-
});
|
|
570
|
+
b.hn(resolvedHostname);
|
|
571
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
572
|
+
return b.build();
|
|
725
573
|
};
|
|
726
574
|
export const se_DeleteProjectCommand = async (input, context) => {
|
|
727
|
-
const
|
|
575
|
+
const b = rb(input, context);
|
|
728
576
|
const headers = {};
|
|
729
|
-
|
|
730
|
-
|
|
577
|
+
b.bp("/projects/{projectId}");
|
|
578
|
+
b.p("projectId", () => input.projectId, "{projectId}", false);
|
|
731
579
|
const query = map({
|
|
732
|
-
|
|
580
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
733
581
|
});
|
|
734
582
|
let body;
|
|
735
583
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -739,27 +587,20 @@ export const se_DeleteProjectCommand = async (input, context) => {
|
|
|
739
587
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
740
588
|
}
|
|
741
589
|
}
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
port,
|
|
746
|
-
method: "DELETE",
|
|
747
|
-
headers,
|
|
748
|
-
path: resolvedPath,
|
|
749
|
-
query,
|
|
750
|
-
body,
|
|
751
|
-
});
|
|
590
|
+
b.hn(resolvedHostname);
|
|
591
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
592
|
+
return b.build();
|
|
752
593
|
};
|
|
753
594
|
export const se_DeleteTimeSeriesCommand = async (input, context) => {
|
|
754
|
-
const
|
|
595
|
+
const b = rb(input, context);
|
|
755
596
|
const headers = {
|
|
756
597
|
"content-type": "application/json",
|
|
757
598
|
};
|
|
758
|
-
|
|
599
|
+
b.bp("/timeseries/delete");
|
|
759
600
|
const query = map({
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
601
|
+
[_a]: [, input[_a]],
|
|
602
|
+
[_aI]: [, input[_aI]],
|
|
603
|
+
[_pI]: [, input[_pI]],
|
|
763
604
|
});
|
|
764
605
|
let body;
|
|
765
606
|
body = JSON.stringify(take(input, {
|
|
@@ -772,22 +613,15 @@ export const se_DeleteTimeSeriesCommand = async (input, context) => {
|
|
|
772
613
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
773
614
|
}
|
|
774
615
|
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
port,
|
|
779
|
-
method: "POST",
|
|
780
|
-
headers,
|
|
781
|
-
path: resolvedPath,
|
|
782
|
-
query,
|
|
783
|
-
body,
|
|
784
|
-
});
|
|
616
|
+
b.hn(resolvedHostname);
|
|
617
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
618
|
+
return b.build();
|
|
785
619
|
};
|
|
786
620
|
export const se_DescribeAccessPolicyCommand = async (input, context) => {
|
|
787
|
-
const
|
|
621
|
+
const b = rb(input, context);
|
|
788
622
|
const headers = {};
|
|
789
|
-
|
|
790
|
-
|
|
623
|
+
b.bp("/access-policies/{accessPolicyId}");
|
|
624
|
+
b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
|
|
791
625
|
let body;
|
|
792
626
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
793
627
|
if (context.disableHostPrefix !== true) {
|
|
@@ -796,21 +630,15 @@ export const se_DescribeAccessPolicyCommand = async (input, context) => {
|
|
|
796
630
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
797
631
|
}
|
|
798
632
|
}
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
port,
|
|
803
|
-
method: "GET",
|
|
804
|
-
headers,
|
|
805
|
-
path: resolvedPath,
|
|
806
|
-
body,
|
|
807
|
-
});
|
|
633
|
+
b.hn(resolvedHostname);
|
|
634
|
+
b.m("GET").h(headers).b(body);
|
|
635
|
+
return b.build();
|
|
808
636
|
};
|
|
809
637
|
export const se_DescribeActionCommand = async (input, context) => {
|
|
810
|
-
const
|
|
638
|
+
const b = rb(input, context);
|
|
811
639
|
const headers = {};
|
|
812
|
-
|
|
813
|
-
|
|
640
|
+
b.bp("/actions/{actionId}");
|
|
641
|
+
b.p("actionId", () => input.actionId, "{actionId}", false);
|
|
814
642
|
let body;
|
|
815
643
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
816
644
|
if (context.disableHostPrefix !== true) {
|
|
@@ -819,23 +647,17 @@ export const se_DescribeActionCommand = async (input, context) => {
|
|
|
819
647
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
820
648
|
}
|
|
821
649
|
}
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
port,
|
|
826
|
-
method: "GET",
|
|
827
|
-
headers,
|
|
828
|
-
path: resolvedPath,
|
|
829
|
-
body,
|
|
830
|
-
});
|
|
650
|
+
b.hn(resolvedHostname);
|
|
651
|
+
b.m("GET").h(headers).b(body);
|
|
652
|
+
return b.build();
|
|
831
653
|
};
|
|
832
654
|
export const se_DescribeAssetCommand = async (input, context) => {
|
|
833
|
-
const
|
|
655
|
+
const b = rb(input, context);
|
|
834
656
|
const headers = {};
|
|
835
|
-
|
|
836
|
-
|
|
657
|
+
b.bp("/assets/{assetId}");
|
|
658
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
837
659
|
const query = map({
|
|
838
|
-
|
|
660
|
+
[_eP]: [() => input.excludeProperties !== void 0, () => input[_eP].toString()],
|
|
839
661
|
});
|
|
840
662
|
let body;
|
|
841
663
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -845,24 +667,16 @@ export const se_DescribeAssetCommand = async (input, context) => {
|
|
|
845
667
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
846
668
|
}
|
|
847
669
|
}
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
port,
|
|
852
|
-
method: "GET",
|
|
853
|
-
headers,
|
|
854
|
-
path: resolvedPath,
|
|
855
|
-
query,
|
|
856
|
-
body,
|
|
857
|
-
});
|
|
670
|
+
b.hn(resolvedHostname);
|
|
671
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
672
|
+
return b.build();
|
|
858
673
|
};
|
|
859
674
|
export const se_DescribeAssetCompositeModelCommand = async (input, context) => {
|
|
860
|
-
const
|
|
675
|
+
const b = rb(input, context);
|
|
861
676
|
const headers = {};
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "assetCompositeModelId", () => input.assetCompositeModelId, "{assetCompositeModelId}", false);
|
|
677
|
+
b.bp("/assets/{assetId}/composite-models/{assetCompositeModelId}");
|
|
678
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
679
|
+
b.p("assetCompositeModelId", () => input.assetCompositeModelId, "{assetCompositeModelId}", false);
|
|
866
680
|
let body;
|
|
867
681
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
868
682
|
if (context.disableHostPrefix !== true) {
|
|
@@ -871,23 +685,17 @@ export const se_DescribeAssetCompositeModelCommand = async (input, context) => {
|
|
|
871
685
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
872
686
|
}
|
|
873
687
|
}
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
port,
|
|
878
|
-
method: "GET",
|
|
879
|
-
headers,
|
|
880
|
-
path: resolvedPath,
|
|
881
|
-
body,
|
|
882
|
-
});
|
|
688
|
+
b.hn(resolvedHostname);
|
|
689
|
+
b.m("GET").h(headers).b(body);
|
|
690
|
+
return b.build();
|
|
883
691
|
};
|
|
884
692
|
export const se_DescribeAssetModelCommand = async (input, context) => {
|
|
885
|
-
const
|
|
693
|
+
const b = rb(input, context);
|
|
886
694
|
const headers = {};
|
|
887
|
-
|
|
888
|
-
|
|
695
|
+
b.bp("/asset-models/{assetModelId}");
|
|
696
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
889
697
|
const query = map({
|
|
890
|
-
|
|
698
|
+
[_eP]: [() => input.excludeProperties !== void 0, () => input[_eP].toString()],
|
|
891
699
|
});
|
|
892
700
|
let body;
|
|
893
701
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -897,24 +705,16 @@ export const se_DescribeAssetModelCommand = async (input, context) => {
|
|
|
897
705
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
898
706
|
}
|
|
899
707
|
}
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
port,
|
|
904
|
-
method: "GET",
|
|
905
|
-
headers,
|
|
906
|
-
path: resolvedPath,
|
|
907
|
-
query,
|
|
908
|
-
body,
|
|
909
|
-
});
|
|
708
|
+
b.hn(resolvedHostname);
|
|
709
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
710
|
+
return b.build();
|
|
910
711
|
};
|
|
911
712
|
export const se_DescribeAssetModelCompositeModelCommand = async (input, context) => {
|
|
912
|
-
const
|
|
713
|
+
const b = rb(input, context);
|
|
913
714
|
const headers = {};
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
715
|
+
b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
|
|
716
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
717
|
+
b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
918
718
|
let body;
|
|
919
719
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
920
720
|
if (context.disableHostPrefix !== true) {
|
|
@@ -923,22 +723,16 @@ export const se_DescribeAssetModelCompositeModelCommand = async (input, context)
|
|
|
923
723
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
924
724
|
}
|
|
925
725
|
}
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
port,
|
|
930
|
-
method: "GET",
|
|
931
|
-
headers,
|
|
932
|
-
path: resolvedPath,
|
|
933
|
-
body,
|
|
934
|
-
});
|
|
726
|
+
b.hn(resolvedHostname);
|
|
727
|
+
b.m("GET").h(headers).b(body);
|
|
728
|
+
return b.build();
|
|
935
729
|
};
|
|
936
730
|
export const se_DescribeAssetPropertyCommand = async (input, context) => {
|
|
937
|
-
const
|
|
731
|
+
const b = rb(input, context);
|
|
938
732
|
const headers = {};
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
733
|
+
b.bp("/assets/{assetId}/properties/{propertyId}");
|
|
734
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
735
|
+
b.p("propertyId", () => input.propertyId, "{propertyId}", false);
|
|
942
736
|
let body;
|
|
943
737
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
944
738
|
if (context.disableHostPrefix !== true) {
|
|
@@ -947,21 +741,15 @@ export const se_DescribeAssetPropertyCommand = async (input, context) => {
|
|
|
947
741
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
948
742
|
}
|
|
949
743
|
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
port,
|
|
954
|
-
method: "GET",
|
|
955
|
-
headers,
|
|
956
|
-
path: resolvedPath,
|
|
957
|
-
body,
|
|
958
|
-
});
|
|
744
|
+
b.hn(resolvedHostname);
|
|
745
|
+
b.m("GET").h(headers).b(body);
|
|
746
|
+
return b.build();
|
|
959
747
|
};
|
|
960
748
|
export const se_DescribeBulkImportJobCommand = async (input, context) => {
|
|
961
|
-
const
|
|
749
|
+
const b = rb(input, context);
|
|
962
750
|
const headers = {};
|
|
963
|
-
|
|
964
|
-
|
|
751
|
+
b.bp("/jobs/{jobId}");
|
|
752
|
+
b.p("jobId", () => input.jobId, "{jobId}", false);
|
|
965
753
|
let body;
|
|
966
754
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
967
755
|
if (context.disableHostPrefix !== true) {
|
|
@@ -970,21 +758,15 @@ export const se_DescribeBulkImportJobCommand = async (input, context) => {
|
|
|
970
758
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
971
759
|
}
|
|
972
760
|
}
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
port,
|
|
977
|
-
method: "GET",
|
|
978
|
-
headers,
|
|
979
|
-
path: resolvedPath,
|
|
980
|
-
body,
|
|
981
|
-
});
|
|
761
|
+
b.hn(resolvedHostname);
|
|
762
|
+
b.m("GET").h(headers).b(body);
|
|
763
|
+
return b.build();
|
|
982
764
|
};
|
|
983
765
|
export const se_DescribeDashboardCommand = async (input, context) => {
|
|
984
|
-
const
|
|
766
|
+
const b = rb(input, context);
|
|
985
767
|
const headers = {};
|
|
986
|
-
|
|
987
|
-
|
|
768
|
+
b.bp("/dashboards/{dashboardId}");
|
|
769
|
+
b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
|
|
988
770
|
let body;
|
|
989
771
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
990
772
|
if (context.disableHostPrefix !== true) {
|
|
@@ -993,22 +775,16 @@ export const se_DescribeDashboardCommand = async (input, context) => {
|
|
|
993
775
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
994
776
|
}
|
|
995
777
|
}
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
port,
|
|
1000
|
-
method: "GET",
|
|
1001
|
-
headers,
|
|
1002
|
-
path: resolvedPath,
|
|
1003
|
-
body,
|
|
1004
|
-
});
|
|
778
|
+
b.hn(resolvedHostname);
|
|
779
|
+
b.m("GET").h(headers).b(body);
|
|
780
|
+
return b.build();
|
|
1005
781
|
};
|
|
1006
782
|
export const se_DescribeDefaultEncryptionConfigurationCommand = async (input, context) => {
|
|
1007
|
-
const
|
|
783
|
+
const b = rb(input, context);
|
|
1008
784
|
const headers = {
|
|
1009
785
|
"content-type": "application/json",
|
|
1010
786
|
};
|
|
1011
|
-
|
|
787
|
+
b.bp("/configuration/account/encryption");
|
|
1012
788
|
let body;
|
|
1013
789
|
body = "";
|
|
1014
790
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1018,21 +794,15 @@ export const se_DescribeDefaultEncryptionConfigurationCommand = async (input, co
|
|
|
1018
794
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1019
795
|
}
|
|
1020
796
|
}
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
port,
|
|
1025
|
-
method: "GET",
|
|
1026
|
-
headers,
|
|
1027
|
-
path: resolvedPath,
|
|
1028
|
-
body,
|
|
1029
|
-
});
|
|
797
|
+
b.hn(resolvedHostname);
|
|
798
|
+
b.m("GET").h(headers).b(body);
|
|
799
|
+
return b.build();
|
|
1030
800
|
};
|
|
1031
801
|
export const se_DescribeGatewayCommand = async (input, context) => {
|
|
1032
|
-
const
|
|
802
|
+
const b = rb(input, context);
|
|
1033
803
|
const headers = {};
|
|
1034
|
-
|
|
1035
|
-
|
|
804
|
+
b.bp("/20200301/gateways/{gatewayId}");
|
|
805
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
1036
806
|
let body;
|
|
1037
807
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1038
808
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1041,23 +811,16 @@ export const se_DescribeGatewayCommand = async (input, context) => {
|
|
|
1041
811
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1042
812
|
}
|
|
1043
813
|
}
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
port,
|
|
1048
|
-
method: "GET",
|
|
1049
|
-
headers,
|
|
1050
|
-
path: resolvedPath,
|
|
1051
|
-
body,
|
|
1052
|
-
});
|
|
814
|
+
b.hn(resolvedHostname);
|
|
815
|
+
b.m("GET").h(headers).b(body);
|
|
816
|
+
return b.build();
|
|
1053
817
|
};
|
|
1054
818
|
export const se_DescribeGatewayCapabilityConfigurationCommand = async (input, context) => {
|
|
1055
|
-
const
|
|
819
|
+
const b = rb(input, context);
|
|
1056
820
|
const headers = {};
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "capabilityNamespace", () => input.capabilityNamespace, "{capabilityNamespace}", false);
|
|
821
|
+
b.bp("/20200301/gateways/{gatewayId}/capability/{capabilityNamespace}");
|
|
822
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
823
|
+
b.p("capabilityNamespace", () => input.capabilityNamespace, "{capabilityNamespace}", false);
|
|
1061
824
|
let body;
|
|
1062
825
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1063
826
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1066,22 +829,16 @@ export const se_DescribeGatewayCapabilityConfigurationCommand = async (input, co
|
|
|
1066
829
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1067
830
|
}
|
|
1068
831
|
}
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
port,
|
|
1073
|
-
method: "GET",
|
|
1074
|
-
headers,
|
|
1075
|
-
path: resolvedPath,
|
|
1076
|
-
body,
|
|
1077
|
-
});
|
|
832
|
+
b.hn(resolvedHostname);
|
|
833
|
+
b.m("GET").h(headers).b(body);
|
|
834
|
+
return b.build();
|
|
1078
835
|
};
|
|
1079
836
|
export const se_DescribeLoggingOptionsCommand = async (input, context) => {
|
|
1080
|
-
const
|
|
837
|
+
const b = rb(input, context);
|
|
1081
838
|
const headers = {
|
|
1082
839
|
"content-type": "application/json",
|
|
1083
840
|
};
|
|
1084
|
-
|
|
841
|
+
b.bp("/logging");
|
|
1085
842
|
let body;
|
|
1086
843
|
body = "";
|
|
1087
844
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1091,21 +848,15 @@ export const se_DescribeLoggingOptionsCommand = async (input, context) => {
|
|
|
1091
848
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1092
849
|
}
|
|
1093
850
|
}
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
port,
|
|
1098
|
-
method: "GET",
|
|
1099
|
-
headers,
|
|
1100
|
-
path: resolvedPath,
|
|
1101
|
-
body,
|
|
1102
|
-
});
|
|
851
|
+
b.hn(resolvedHostname);
|
|
852
|
+
b.m("GET").h(headers).b(body);
|
|
853
|
+
return b.build();
|
|
1103
854
|
};
|
|
1104
855
|
export const se_DescribePortalCommand = async (input, context) => {
|
|
1105
|
-
const
|
|
856
|
+
const b = rb(input, context);
|
|
1106
857
|
const headers = {};
|
|
1107
|
-
|
|
1108
|
-
|
|
858
|
+
b.bp("/portals/{portalId}");
|
|
859
|
+
b.p("portalId", () => input.portalId, "{portalId}", false);
|
|
1109
860
|
let body;
|
|
1110
861
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1111
862
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1114,21 +865,15 @@ export const se_DescribePortalCommand = async (input, context) => {
|
|
|
1114
865
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1115
866
|
}
|
|
1116
867
|
}
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
port,
|
|
1121
|
-
method: "GET",
|
|
1122
|
-
headers,
|
|
1123
|
-
path: resolvedPath,
|
|
1124
|
-
body,
|
|
1125
|
-
});
|
|
868
|
+
b.hn(resolvedHostname);
|
|
869
|
+
b.m("GET").h(headers).b(body);
|
|
870
|
+
return b.build();
|
|
1126
871
|
};
|
|
1127
872
|
export const se_DescribeProjectCommand = async (input, context) => {
|
|
1128
|
-
const
|
|
873
|
+
const b = rb(input, context);
|
|
1129
874
|
const headers = {};
|
|
1130
|
-
|
|
1131
|
-
|
|
875
|
+
b.bp("/projects/{projectId}");
|
|
876
|
+
b.p("projectId", () => input.projectId, "{projectId}", false);
|
|
1132
877
|
let body;
|
|
1133
878
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1134
879
|
if (context.disableHostPrefix !== true) {
|
|
@@ -1137,22 +882,16 @@ export const se_DescribeProjectCommand = async (input, context) => {
|
|
|
1137
882
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1138
883
|
}
|
|
1139
884
|
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
port,
|
|
1144
|
-
method: "GET",
|
|
1145
|
-
headers,
|
|
1146
|
-
path: resolvedPath,
|
|
1147
|
-
body,
|
|
1148
|
-
});
|
|
885
|
+
b.hn(resolvedHostname);
|
|
886
|
+
b.m("GET").h(headers).b(body);
|
|
887
|
+
return b.build();
|
|
1149
888
|
};
|
|
1150
889
|
export const se_DescribeStorageConfigurationCommand = async (input, context) => {
|
|
1151
|
-
const
|
|
890
|
+
const b = rb(input, context);
|
|
1152
891
|
const headers = {
|
|
1153
892
|
"content-type": "application/json",
|
|
1154
893
|
};
|
|
1155
|
-
|
|
894
|
+
b.bp("/configuration/account/storage");
|
|
1156
895
|
let body;
|
|
1157
896
|
body = "";
|
|
1158
897
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1162,24 +901,18 @@ export const se_DescribeStorageConfigurationCommand = async (input, context) =>
|
|
|
1162
901
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1163
902
|
}
|
|
1164
903
|
}
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
port,
|
|
1169
|
-
method: "GET",
|
|
1170
|
-
headers,
|
|
1171
|
-
path: resolvedPath,
|
|
1172
|
-
body,
|
|
1173
|
-
});
|
|
904
|
+
b.hn(resolvedHostname);
|
|
905
|
+
b.m("GET").h(headers).b(body);
|
|
906
|
+
return b.build();
|
|
1174
907
|
};
|
|
1175
908
|
export const se_DescribeTimeSeriesCommand = async (input, context) => {
|
|
1176
|
-
const
|
|
909
|
+
const b = rb(input, context);
|
|
1177
910
|
const headers = {};
|
|
1178
|
-
|
|
911
|
+
b.bp("/timeseries/describe");
|
|
1179
912
|
const query = map({
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
913
|
+
[_a]: [, input[_a]],
|
|
914
|
+
[_aI]: [, input[_aI]],
|
|
915
|
+
[_pI]: [, input[_pI]],
|
|
1183
916
|
});
|
|
1184
917
|
let body;
|
|
1185
918
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1189,24 +922,17 @@ export const se_DescribeTimeSeriesCommand = async (input, context) => {
|
|
|
1189
922
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1190
923
|
}
|
|
1191
924
|
}
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
port,
|
|
1196
|
-
method: "GET",
|
|
1197
|
-
headers,
|
|
1198
|
-
path: resolvedPath,
|
|
1199
|
-
query,
|
|
1200
|
-
body,
|
|
1201
|
-
});
|
|
925
|
+
b.hn(resolvedHostname);
|
|
926
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
927
|
+
return b.build();
|
|
1202
928
|
};
|
|
1203
929
|
export const se_DisassociateAssetsCommand = async (input, context) => {
|
|
1204
|
-
const
|
|
930
|
+
const b = rb(input, context);
|
|
1205
931
|
const headers = {
|
|
1206
932
|
"content-type": "application/json",
|
|
1207
933
|
};
|
|
1208
|
-
|
|
1209
|
-
|
|
934
|
+
b.bp("/assets/{assetId}/disassociate");
|
|
935
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
1210
936
|
let body;
|
|
1211
937
|
body = JSON.stringify(take(input, {
|
|
1212
938
|
childAssetId: [],
|
|
@@ -1220,26 +946,20 @@ export const se_DisassociateAssetsCommand = async (input, context) => {
|
|
|
1220
946
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1221
947
|
}
|
|
1222
948
|
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
port,
|
|
1227
|
-
method: "POST",
|
|
1228
|
-
headers,
|
|
1229
|
-
path: resolvedPath,
|
|
1230
|
-
body,
|
|
1231
|
-
});
|
|
949
|
+
b.hn(resolvedHostname);
|
|
950
|
+
b.m("POST").h(headers).b(body);
|
|
951
|
+
return b.build();
|
|
1232
952
|
};
|
|
1233
953
|
export const se_DisassociateTimeSeriesFromAssetPropertyCommand = async (input, context) => {
|
|
1234
|
-
const
|
|
954
|
+
const b = rb(input, context);
|
|
1235
955
|
const headers = {
|
|
1236
956
|
"content-type": "application/json",
|
|
1237
957
|
};
|
|
1238
|
-
|
|
958
|
+
b.bp("/timeseries/disassociate");
|
|
1239
959
|
const query = map({
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
960
|
+
[_a]: [, __expectNonNull(input[_a], `alias`)],
|
|
961
|
+
[_aI]: [, __expectNonNull(input[_aI], `assetId`)],
|
|
962
|
+
[_pI]: [, __expectNonNull(input[_pI], `propertyId`)],
|
|
1243
963
|
});
|
|
1244
964
|
let body;
|
|
1245
965
|
body = JSON.stringify(take(input, {
|
|
@@ -1252,23 +972,16 @@ export const se_DisassociateTimeSeriesFromAssetPropertyCommand = async (input, c
|
|
|
1252
972
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1253
973
|
}
|
|
1254
974
|
}
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
port,
|
|
1259
|
-
method: "POST",
|
|
1260
|
-
headers,
|
|
1261
|
-
path: resolvedPath,
|
|
1262
|
-
query,
|
|
1263
|
-
body,
|
|
1264
|
-
});
|
|
975
|
+
b.hn(resolvedHostname);
|
|
976
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
977
|
+
return b.build();
|
|
1265
978
|
};
|
|
1266
979
|
export const se_ExecuteActionCommand = async (input, context) => {
|
|
1267
|
-
const
|
|
980
|
+
const b = rb(input, context);
|
|
1268
981
|
const headers = {
|
|
1269
982
|
"content-type": "application/json",
|
|
1270
983
|
};
|
|
1271
|
-
|
|
984
|
+
b.bp("/actions");
|
|
1272
985
|
let body;
|
|
1273
986
|
body = JSON.stringify(take(input, {
|
|
1274
987
|
actionDefinitionId: [],
|
|
@@ -1283,22 +996,16 @@ export const se_ExecuteActionCommand = async (input, context) => {
|
|
|
1283
996
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1284
997
|
}
|
|
1285
998
|
}
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
port,
|
|
1290
|
-
method: "POST",
|
|
1291
|
-
headers,
|
|
1292
|
-
path: resolvedPath,
|
|
1293
|
-
body,
|
|
1294
|
-
});
|
|
999
|
+
b.hn(resolvedHostname);
|
|
1000
|
+
b.m("POST").h(headers).b(body);
|
|
1001
|
+
return b.build();
|
|
1295
1002
|
};
|
|
1296
1003
|
export const se_ExecuteQueryCommand = async (input, context) => {
|
|
1297
|
-
const
|
|
1004
|
+
const b = rb(input, context);
|
|
1298
1005
|
const headers = {
|
|
1299
1006
|
"content-type": "application/json",
|
|
1300
1007
|
};
|
|
1301
|
-
|
|
1008
|
+
b.bp("/queries/execution");
|
|
1302
1009
|
let body;
|
|
1303
1010
|
body = JSON.stringify(take(input, {
|
|
1304
1011
|
maxResults: [],
|
|
@@ -1312,41 +1019,35 @@ export const se_ExecuteQueryCommand = async (input, context) => {
|
|
|
1312
1019
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1313
1020
|
}
|
|
1314
1021
|
}
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
port,
|
|
1319
|
-
method: "POST",
|
|
1320
|
-
headers,
|
|
1321
|
-
path: resolvedPath,
|
|
1322
|
-
body,
|
|
1323
|
-
});
|
|
1022
|
+
b.hn(resolvedHostname);
|
|
1023
|
+
b.m("POST").h(headers).b(body);
|
|
1024
|
+
return b.build();
|
|
1324
1025
|
};
|
|
1325
1026
|
export const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
|
|
1326
|
-
const
|
|
1027
|
+
const b = rb(input, context);
|
|
1327
1028
|
const headers = {};
|
|
1328
|
-
|
|
1029
|
+
b.bp("/properties/aggregates");
|
|
1329
1030
|
const query = map({
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1031
|
+
[_aI]: [, input[_aI]],
|
|
1032
|
+
[_pI]: [, input[_pI]],
|
|
1033
|
+
[_pA]: [, input[_pA]],
|
|
1034
|
+
[_aT]: [
|
|
1334
1035
|
__expectNonNull(input.aggregateTypes, `aggregateTypes`) != null,
|
|
1335
|
-
() => (input
|
|
1036
|
+
() => (input[_aT] || []).map((_entry) => _entry),
|
|
1336
1037
|
],
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1038
|
+
[_r]: [, __expectNonNull(input[_r], `resolution`)],
|
|
1039
|
+
[_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
|
|
1040
|
+
[_sD]: [
|
|
1340
1041
|
__expectNonNull(input.startDate, `startDate`) != null,
|
|
1341
|
-
() => (input.
|
|
1042
|
+
() => (input[_sD].toISOString().split(".")[0] + "Z").toString(),
|
|
1342
1043
|
],
|
|
1343
|
-
|
|
1044
|
+
[_eD]: [
|
|
1344
1045
|
__expectNonNull(input.endDate, `endDate`) != null,
|
|
1345
|
-
() => (input.
|
|
1046
|
+
() => (input[_eD].toISOString().split(".")[0] + "Z").toString(),
|
|
1346
1047
|
],
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1048
|
+
[_tO]: [, input[_tO]],
|
|
1049
|
+
[_nT]: [, input[_nT]],
|
|
1050
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1350
1051
|
});
|
|
1351
1052
|
let body;
|
|
1352
1053
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1356,25 +1057,18 @@ export const se_GetAssetPropertyAggregatesCommand = async (input, context) => {
|
|
|
1356
1057
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1357
1058
|
}
|
|
1358
1059
|
}
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
port,
|
|
1363
|
-
method: "GET",
|
|
1364
|
-
headers,
|
|
1365
|
-
path: resolvedPath,
|
|
1366
|
-
query,
|
|
1367
|
-
body,
|
|
1368
|
-
});
|
|
1060
|
+
b.hn(resolvedHostname);
|
|
1061
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1062
|
+
return b.build();
|
|
1369
1063
|
};
|
|
1370
1064
|
export const se_GetAssetPropertyValueCommand = async (input, context) => {
|
|
1371
|
-
const
|
|
1065
|
+
const b = rb(input, context);
|
|
1372
1066
|
const headers = {};
|
|
1373
|
-
|
|
1067
|
+
b.bp("/properties/latest");
|
|
1374
1068
|
const query = map({
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1069
|
+
[_aI]: [, input[_aI]],
|
|
1070
|
+
[_pI]: [, input[_pI]],
|
|
1071
|
+
[_pA]: [, input[_pA]],
|
|
1378
1072
|
});
|
|
1379
1073
|
let body;
|
|
1380
1074
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1384,34 +1078,24 @@ export const se_GetAssetPropertyValueCommand = async (input, context) => {
|
|
|
1384
1078
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1385
1079
|
}
|
|
1386
1080
|
}
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
port,
|
|
1391
|
-
method: "GET",
|
|
1392
|
-
headers,
|
|
1393
|
-
path: resolvedPath,
|
|
1394
|
-
query,
|
|
1395
|
-
body,
|
|
1396
|
-
});
|
|
1081
|
+
b.hn(resolvedHostname);
|
|
1082
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1083
|
+
return b.build();
|
|
1397
1084
|
};
|
|
1398
1085
|
export const se_GetAssetPropertyValueHistoryCommand = async (input, context) => {
|
|
1399
|
-
const
|
|
1086
|
+
const b = rb(input, context);
|
|
1400
1087
|
const headers = {};
|
|
1401
|
-
|
|
1088
|
+
b.bp("/properties/history");
|
|
1402
1089
|
const query = map({
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
],
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
timeOrdering: [, input.timeOrdering],
|
|
1413
|
-
nextToken: [, input.nextToken],
|
|
1414
|
-
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1090
|
+
[_aI]: [, input[_aI]],
|
|
1091
|
+
[_pI]: [, input[_pI]],
|
|
1092
|
+
[_pA]: [, input[_pA]],
|
|
1093
|
+
[_sD]: [() => input.startDate !== void 0, () => (input[_sD].toISOString().split(".")[0] + "Z").toString()],
|
|
1094
|
+
[_eD]: [() => input.endDate !== void 0, () => (input[_eD].toISOString().split(".")[0] + "Z").toString()],
|
|
1095
|
+
[_q]: [() => input.qualities !== void 0, () => (input[_q] || []).map((_entry) => _entry)],
|
|
1096
|
+
[_tO]: [, input[_tO]],
|
|
1097
|
+
[_nT]: [, input[_nT]],
|
|
1098
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1415
1099
|
});
|
|
1416
1100
|
let body;
|
|
1417
1101
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1421,50 +1105,28 @@ export const se_GetAssetPropertyValueHistoryCommand = async (input, context) =>
|
|
|
1421
1105
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1422
1106
|
}
|
|
1423
1107
|
}
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
port,
|
|
1428
|
-
method: "GET",
|
|
1429
|
-
headers,
|
|
1430
|
-
path: resolvedPath,
|
|
1431
|
-
query,
|
|
1432
|
-
body,
|
|
1433
|
-
});
|
|
1108
|
+
b.hn(resolvedHostname);
|
|
1109
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1110
|
+
return b.build();
|
|
1434
1111
|
};
|
|
1435
1112
|
export const se_GetInterpolatedAssetPropertyValuesCommand = async (input, context) => {
|
|
1436
|
-
const
|
|
1113
|
+
const b = rb(input, context);
|
|
1437
1114
|
const headers = {};
|
|
1438
|
-
|
|
1115
|
+
b.bp("/properties/interpolated");
|
|
1439
1116
|
const query = map({
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
],
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
],
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
() => input.endTimeInSeconds.toString(),
|
|
1454
|
-
],
|
|
1455
|
-
endTimeOffsetInNanos: [() => input.endTimeOffsetInNanos !== void 0, () => input.endTimeOffsetInNanos.toString()],
|
|
1456
|
-
quality: [, __expectNonNull(input.quality, `quality`)],
|
|
1457
|
-
intervalInSeconds: [
|
|
1458
|
-
__expectNonNull(input.intervalInSeconds, `intervalInSeconds`) != null,
|
|
1459
|
-
() => input.intervalInSeconds.toString(),
|
|
1460
|
-
],
|
|
1461
|
-
nextToken: [, input.nextToken],
|
|
1462
|
-
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
1463
|
-
type: [, __expectNonNull(input.type, `type`)],
|
|
1464
|
-
intervalWindowInSeconds: [
|
|
1465
|
-
() => input.intervalWindowInSeconds !== void 0,
|
|
1466
|
-
() => input.intervalWindowInSeconds.toString(),
|
|
1467
|
-
],
|
|
1117
|
+
[_aI]: [, input[_aI]],
|
|
1118
|
+
[_pI]: [, input[_pI]],
|
|
1119
|
+
[_pA]: [, input[_pA]],
|
|
1120
|
+
[_sTIS]: [__expectNonNull(input.startTimeInSeconds, `startTimeInSeconds`) != null, () => input[_sTIS].toString()],
|
|
1121
|
+
[_sTOIN]: [() => input.startTimeOffsetInNanos !== void 0, () => input[_sTOIN].toString()],
|
|
1122
|
+
[_eTIS]: [__expectNonNull(input.endTimeInSeconds, `endTimeInSeconds`) != null, () => input[_eTIS].toString()],
|
|
1123
|
+
[_eTOIN]: [() => input.endTimeOffsetInNanos !== void 0, () => input[_eTOIN].toString()],
|
|
1124
|
+
[_qu]: [, __expectNonNull(input[_qu], `quality`)],
|
|
1125
|
+
[_iIS]: [__expectNonNull(input.intervalInSeconds, `intervalInSeconds`) != null, () => input[_iIS].toString()],
|
|
1126
|
+
[_nT]: [, input[_nT]],
|
|
1127
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1128
|
+
[_t]: [, __expectNonNull(input[_t], `type`)],
|
|
1129
|
+
[_iWIS]: [() => input.intervalWindowInSeconds !== void 0, () => input[_iWIS].toString()],
|
|
1468
1130
|
});
|
|
1469
1131
|
let body;
|
|
1470
1132
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1474,29 +1136,22 @@ export const se_GetInterpolatedAssetPropertyValuesCommand = async (input, contex
|
|
|
1474
1136
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1475
1137
|
}
|
|
1476
1138
|
}
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
port,
|
|
1481
|
-
method: "GET",
|
|
1482
|
-
headers,
|
|
1483
|
-
path: resolvedPath,
|
|
1484
|
-
query,
|
|
1485
|
-
body,
|
|
1486
|
-
});
|
|
1139
|
+
b.hn(resolvedHostname);
|
|
1140
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1141
|
+
return b.build();
|
|
1487
1142
|
};
|
|
1488
1143
|
export const se_ListAccessPoliciesCommand = async (input, context) => {
|
|
1489
|
-
const
|
|
1144
|
+
const b = rb(input, context);
|
|
1490
1145
|
const headers = {};
|
|
1491
|
-
|
|
1146
|
+
b.bp("/access-policies");
|
|
1492
1147
|
const query = map({
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1148
|
+
[_iT]: [, input[_iT]],
|
|
1149
|
+
[_iI]: [, input[_iI]],
|
|
1150
|
+
[_rT]: [, input[_rT]],
|
|
1151
|
+
[_rI]: [, input[_rI]],
|
|
1152
|
+
[_iA]: [, input[_iA]],
|
|
1153
|
+
[_nT]: [, input[_nT]],
|
|
1154
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1500
1155
|
});
|
|
1501
1156
|
let body;
|
|
1502
1157
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1506,26 +1161,19 @@ export const se_ListAccessPoliciesCommand = async (input, context) => {
|
|
|
1506
1161
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1507
1162
|
}
|
|
1508
1163
|
}
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
port,
|
|
1513
|
-
method: "GET",
|
|
1514
|
-
headers,
|
|
1515
|
-
path: resolvedPath,
|
|
1516
|
-
query,
|
|
1517
|
-
body,
|
|
1518
|
-
});
|
|
1164
|
+
b.hn(resolvedHostname);
|
|
1165
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1166
|
+
return b.build();
|
|
1519
1167
|
};
|
|
1520
1168
|
export const se_ListActionsCommand = async (input, context) => {
|
|
1521
|
-
const
|
|
1169
|
+
const b = rb(input, context);
|
|
1522
1170
|
const headers = {};
|
|
1523
|
-
|
|
1171
|
+
b.bp("/actions");
|
|
1524
1172
|
const query = map({
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1173
|
+
[_tRT]: [, __expectNonNull(input[_tRT], `targetResourceType`)],
|
|
1174
|
+
[_tRI]: [, __expectNonNull(input[_tRI], `targetResourceId`)],
|
|
1175
|
+
[_nT]: [, input[_nT]],
|
|
1176
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1529
1177
|
});
|
|
1530
1178
|
let body;
|
|
1531
1179
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1535,26 +1183,18 @@ export const se_ListActionsCommand = async (input, context) => {
|
|
|
1535
1183
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1536
1184
|
}
|
|
1537
1185
|
}
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
port,
|
|
1542
|
-
method: "GET",
|
|
1543
|
-
headers,
|
|
1544
|
-
path: resolvedPath,
|
|
1545
|
-
query,
|
|
1546
|
-
body,
|
|
1547
|
-
});
|
|
1186
|
+
b.hn(resolvedHostname);
|
|
1187
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1188
|
+
return b.build();
|
|
1548
1189
|
};
|
|
1549
1190
|
export const se_ListAssetModelCompositeModelsCommand = async (input, context) => {
|
|
1550
|
-
const
|
|
1191
|
+
const b = rb(input, context);
|
|
1551
1192
|
const headers = {};
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1193
|
+
b.bp("/asset-models/{assetModelId}/composite-models");
|
|
1194
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1555
1195
|
const query = map({
|
|
1556
|
-
|
|
1557
|
-
|
|
1196
|
+
[_nT]: [, input[_nT]],
|
|
1197
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1558
1198
|
});
|
|
1559
1199
|
let body;
|
|
1560
1200
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1564,26 +1204,19 @@ export const se_ListAssetModelCompositeModelsCommand = async (input, context) =>
|
|
|
1564
1204
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1565
1205
|
}
|
|
1566
1206
|
}
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
port,
|
|
1571
|
-
method: "GET",
|
|
1572
|
-
headers,
|
|
1573
|
-
path: resolvedPath,
|
|
1574
|
-
query,
|
|
1575
|
-
body,
|
|
1576
|
-
});
|
|
1207
|
+
b.hn(resolvedHostname);
|
|
1208
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1209
|
+
return b.build();
|
|
1577
1210
|
};
|
|
1578
1211
|
export const se_ListAssetModelPropertiesCommand = async (input, context) => {
|
|
1579
|
-
const
|
|
1212
|
+
const b = rb(input, context);
|
|
1580
1213
|
const headers = {};
|
|
1581
|
-
|
|
1582
|
-
|
|
1214
|
+
b.bp("/asset-models/{assetModelId}/properties");
|
|
1215
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1583
1216
|
const query = map({
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1217
|
+
[_nT]: [, input[_nT]],
|
|
1218
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1219
|
+
[_f]: [, input[_f]],
|
|
1587
1220
|
});
|
|
1588
1221
|
let body;
|
|
1589
1222
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1593,28 +1226,18 @@ export const se_ListAssetModelPropertiesCommand = async (input, context) => {
|
|
|
1593
1226
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1594
1227
|
}
|
|
1595
1228
|
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
port,
|
|
1600
|
-
method: "GET",
|
|
1601
|
-
headers,
|
|
1602
|
-
path: resolvedPath,
|
|
1603
|
-
query,
|
|
1604
|
-
body,
|
|
1605
|
-
});
|
|
1229
|
+
b.hn(resolvedHostname);
|
|
1230
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1231
|
+
return b.build();
|
|
1606
1232
|
};
|
|
1607
1233
|
export const se_ListAssetModelsCommand = async (input, context) => {
|
|
1608
|
-
const
|
|
1234
|
+
const b = rb(input, context);
|
|
1609
1235
|
const headers = {};
|
|
1610
|
-
|
|
1236
|
+
b.bp("/asset-models");
|
|
1611
1237
|
const query = map({
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
() => input.assetModelTypes !== void 0,
|
|
1616
|
-
() => (input.assetModelTypes || []).map((_entry) => _entry),
|
|
1617
|
-
],
|
|
1238
|
+
[_nT]: [, input[_nT]],
|
|
1239
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1240
|
+
[_aMT]: [() => input.assetModelTypes !== void 0, () => (input[_aMT] || []).map((_entry) => _entry)],
|
|
1618
1241
|
});
|
|
1619
1242
|
let body;
|
|
1620
1243
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1624,26 +1247,19 @@ export const se_ListAssetModelsCommand = async (input, context) => {
|
|
|
1624
1247
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1625
1248
|
}
|
|
1626
1249
|
}
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
port,
|
|
1631
|
-
method: "GET",
|
|
1632
|
-
headers,
|
|
1633
|
-
path: resolvedPath,
|
|
1634
|
-
query,
|
|
1635
|
-
body,
|
|
1636
|
-
});
|
|
1250
|
+
b.hn(resolvedHostname);
|
|
1251
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1252
|
+
return b.build();
|
|
1637
1253
|
};
|
|
1638
1254
|
export const se_ListAssetPropertiesCommand = async (input, context) => {
|
|
1639
|
-
const
|
|
1255
|
+
const b = rb(input, context);
|
|
1640
1256
|
const headers = {};
|
|
1641
|
-
|
|
1642
|
-
|
|
1257
|
+
b.bp("/assets/{assetId}/properties");
|
|
1258
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
1643
1259
|
const query = map({
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1260
|
+
[_nT]: [, input[_nT]],
|
|
1261
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1262
|
+
[_f]: [, input[_f]],
|
|
1647
1263
|
});
|
|
1648
1264
|
let body;
|
|
1649
1265
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1653,26 +1269,19 @@ export const se_ListAssetPropertiesCommand = async (input, context) => {
|
|
|
1653
1269
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1654
1270
|
}
|
|
1655
1271
|
}
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
port,
|
|
1660
|
-
method: "GET",
|
|
1661
|
-
headers,
|
|
1662
|
-
path: resolvedPath,
|
|
1663
|
-
query,
|
|
1664
|
-
body,
|
|
1665
|
-
});
|
|
1272
|
+
b.hn(resolvedHostname);
|
|
1273
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1274
|
+
return b.build();
|
|
1666
1275
|
};
|
|
1667
1276
|
export const se_ListAssetRelationshipsCommand = async (input, context) => {
|
|
1668
|
-
const
|
|
1277
|
+
const b = rb(input, context);
|
|
1669
1278
|
const headers = {};
|
|
1670
|
-
|
|
1671
|
-
|
|
1279
|
+
b.bp("/assets/{assetId}/assetRelationships");
|
|
1280
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
1672
1281
|
const query = map({
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1282
|
+
[_tT]: [, __expectNonNull(input[_tT], `traversalType`)],
|
|
1283
|
+
[_nT]: [, input[_nT]],
|
|
1284
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1676
1285
|
});
|
|
1677
1286
|
let body;
|
|
1678
1287
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1682,26 +1291,19 @@ export const se_ListAssetRelationshipsCommand = async (input, context) => {
|
|
|
1682
1291
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1683
1292
|
}
|
|
1684
1293
|
}
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
port,
|
|
1689
|
-
method: "GET",
|
|
1690
|
-
headers,
|
|
1691
|
-
path: resolvedPath,
|
|
1692
|
-
query,
|
|
1693
|
-
body,
|
|
1694
|
-
});
|
|
1294
|
+
b.hn(resolvedHostname);
|
|
1295
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1296
|
+
return b.build();
|
|
1695
1297
|
};
|
|
1696
1298
|
export const se_ListAssetsCommand = async (input, context) => {
|
|
1697
|
-
const
|
|
1299
|
+
const b = rb(input, context);
|
|
1698
1300
|
const headers = {};
|
|
1699
|
-
|
|
1301
|
+
b.bp("/assets");
|
|
1700
1302
|
const query = map({
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1303
|
+
[_nT]: [, input[_nT]],
|
|
1304
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1305
|
+
[_aMI]: [, input[_aMI]],
|
|
1306
|
+
[_f]: [, input[_f]],
|
|
1705
1307
|
});
|
|
1706
1308
|
let body;
|
|
1707
1309
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1711,27 +1313,20 @@ export const se_ListAssetsCommand = async (input, context) => {
|
|
|
1711
1313
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1712
1314
|
}
|
|
1713
1315
|
}
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
port,
|
|
1718
|
-
method: "GET",
|
|
1719
|
-
headers,
|
|
1720
|
-
path: resolvedPath,
|
|
1721
|
-
query,
|
|
1722
|
-
body,
|
|
1723
|
-
});
|
|
1316
|
+
b.hn(resolvedHostname);
|
|
1317
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1318
|
+
return b.build();
|
|
1724
1319
|
};
|
|
1725
1320
|
export const se_ListAssociatedAssetsCommand = async (input, context) => {
|
|
1726
|
-
const
|
|
1321
|
+
const b = rb(input, context);
|
|
1727
1322
|
const headers = {};
|
|
1728
|
-
|
|
1729
|
-
|
|
1323
|
+
b.bp("/assets/{assetId}/hierarchies");
|
|
1324
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
1730
1325
|
const query = map({
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1326
|
+
[_hI]: [, input[_hI]],
|
|
1327
|
+
[_tD]: [, input[_tD]],
|
|
1328
|
+
[_nT]: [, input[_nT]],
|
|
1329
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1735
1330
|
});
|
|
1736
1331
|
let body;
|
|
1737
1332
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1741,25 +1336,18 @@ export const se_ListAssociatedAssetsCommand = async (input, context) => {
|
|
|
1741
1336
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1742
1337
|
}
|
|
1743
1338
|
}
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
port,
|
|
1748
|
-
method: "GET",
|
|
1749
|
-
headers,
|
|
1750
|
-
path: resolvedPath,
|
|
1751
|
-
query,
|
|
1752
|
-
body,
|
|
1753
|
-
});
|
|
1339
|
+
b.hn(resolvedHostname);
|
|
1340
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1341
|
+
return b.build();
|
|
1754
1342
|
};
|
|
1755
1343
|
export const se_ListBulkImportJobsCommand = async (input, context) => {
|
|
1756
|
-
const
|
|
1344
|
+
const b = rb(input, context);
|
|
1757
1345
|
const headers = {};
|
|
1758
|
-
|
|
1346
|
+
b.bp("/jobs");
|
|
1759
1347
|
const query = map({
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1348
|
+
[_nT]: [, input[_nT]],
|
|
1349
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1350
|
+
[_f]: [, input[_f]],
|
|
1763
1351
|
});
|
|
1764
1352
|
let body;
|
|
1765
1353
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1769,26 +1357,18 @@ export const se_ListBulkImportJobsCommand = async (input, context) => {
|
|
|
1769
1357
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1770
1358
|
}
|
|
1771
1359
|
}
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
port,
|
|
1776
|
-
method: "GET",
|
|
1777
|
-
headers,
|
|
1778
|
-
path: resolvedPath,
|
|
1779
|
-
query,
|
|
1780
|
-
body,
|
|
1781
|
-
});
|
|
1360
|
+
b.hn(resolvedHostname);
|
|
1361
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1362
|
+
return b.build();
|
|
1782
1363
|
};
|
|
1783
1364
|
export const se_ListCompositionRelationshipsCommand = async (input, context) => {
|
|
1784
|
-
const
|
|
1365
|
+
const b = rb(input, context);
|
|
1785
1366
|
const headers = {};
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1367
|
+
b.bp("/asset-models/{assetModelId}/composition-relationships");
|
|
1368
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1789
1369
|
const query = map({
|
|
1790
|
-
|
|
1791
|
-
|
|
1370
|
+
[_nT]: [, input[_nT]],
|
|
1371
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1792
1372
|
});
|
|
1793
1373
|
let body;
|
|
1794
1374
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1798,25 +1378,18 @@ export const se_ListCompositionRelationshipsCommand = async (input, context) =>
|
|
|
1798
1378
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1799
1379
|
}
|
|
1800
1380
|
}
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
port,
|
|
1805
|
-
method: "GET",
|
|
1806
|
-
headers,
|
|
1807
|
-
path: resolvedPath,
|
|
1808
|
-
query,
|
|
1809
|
-
body,
|
|
1810
|
-
});
|
|
1381
|
+
b.hn(resolvedHostname);
|
|
1382
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1383
|
+
return b.build();
|
|
1811
1384
|
};
|
|
1812
1385
|
export const se_ListDashboardsCommand = async (input, context) => {
|
|
1813
|
-
const
|
|
1386
|
+
const b = rb(input, context);
|
|
1814
1387
|
const headers = {};
|
|
1815
|
-
|
|
1388
|
+
b.bp("/dashboards");
|
|
1816
1389
|
const query = map({
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1390
|
+
[_pIr]: [, __expectNonNull(input[_pIr], `projectId`)],
|
|
1391
|
+
[_nT]: [, input[_nT]],
|
|
1392
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1820
1393
|
});
|
|
1821
1394
|
let body;
|
|
1822
1395
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1826,24 +1399,17 @@ export const se_ListDashboardsCommand = async (input, context) => {
|
|
|
1826
1399
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1827
1400
|
}
|
|
1828
1401
|
}
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
port,
|
|
1833
|
-
method: "GET",
|
|
1834
|
-
headers,
|
|
1835
|
-
path: resolvedPath,
|
|
1836
|
-
query,
|
|
1837
|
-
body,
|
|
1838
|
-
});
|
|
1402
|
+
b.hn(resolvedHostname);
|
|
1403
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1404
|
+
return b.build();
|
|
1839
1405
|
};
|
|
1840
1406
|
export const se_ListGatewaysCommand = async (input, context) => {
|
|
1841
|
-
const
|
|
1407
|
+
const b = rb(input, context);
|
|
1842
1408
|
const headers = {};
|
|
1843
|
-
|
|
1409
|
+
b.bp("/20200301/gateways");
|
|
1844
1410
|
const query = map({
|
|
1845
|
-
|
|
1846
|
-
|
|
1411
|
+
[_nT]: [, input[_nT]],
|
|
1412
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1847
1413
|
});
|
|
1848
1414
|
let body;
|
|
1849
1415
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1853,24 +1419,17 @@ export const se_ListGatewaysCommand = async (input, context) => {
|
|
|
1853
1419
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1854
1420
|
}
|
|
1855
1421
|
}
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
port,
|
|
1860
|
-
method: "GET",
|
|
1861
|
-
headers,
|
|
1862
|
-
path: resolvedPath,
|
|
1863
|
-
query,
|
|
1864
|
-
body,
|
|
1865
|
-
});
|
|
1422
|
+
b.hn(resolvedHostname);
|
|
1423
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1424
|
+
return b.build();
|
|
1866
1425
|
};
|
|
1867
1426
|
export const se_ListPortalsCommand = async (input, context) => {
|
|
1868
|
-
const
|
|
1427
|
+
const b = rb(input, context);
|
|
1869
1428
|
const headers = {};
|
|
1870
|
-
|
|
1429
|
+
b.bp("/portals");
|
|
1871
1430
|
const query = map({
|
|
1872
|
-
|
|
1873
|
-
|
|
1431
|
+
[_nT]: [, input[_nT]],
|
|
1432
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1874
1433
|
});
|
|
1875
1434
|
let body;
|
|
1876
1435
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1880,25 +1439,18 @@ export const se_ListPortalsCommand = async (input, context) => {
|
|
|
1880
1439
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1881
1440
|
}
|
|
1882
1441
|
}
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
port,
|
|
1887
|
-
method: "GET",
|
|
1888
|
-
headers,
|
|
1889
|
-
path: resolvedPath,
|
|
1890
|
-
query,
|
|
1891
|
-
body,
|
|
1892
|
-
});
|
|
1442
|
+
b.hn(resolvedHostname);
|
|
1443
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1444
|
+
return b.build();
|
|
1893
1445
|
};
|
|
1894
1446
|
export const se_ListProjectAssetsCommand = async (input, context) => {
|
|
1895
|
-
const
|
|
1447
|
+
const b = rb(input, context);
|
|
1896
1448
|
const headers = {};
|
|
1897
|
-
|
|
1898
|
-
|
|
1449
|
+
b.bp("/projects/{projectId}/assets");
|
|
1450
|
+
b.p("projectId", () => input.projectId, "{projectId}", false);
|
|
1899
1451
|
const query = map({
|
|
1900
|
-
|
|
1901
|
-
|
|
1452
|
+
[_nT]: [, input[_nT]],
|
|
1453
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1902
1454
|
});
|
|
1903
1455
|
let body;
|
|
1904
1456
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1908,25 +1460,18 @@ export const se_ListProjectAssetsCommand = async (input, context) => {
|
|
|
1908
1460
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1909
1461
|
}
|
|
1910
1462
|
}
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
port,
|
|
1915
|
-
method: "GET",
|
|
1916
|
-
headers,
|
|
1917
|
-
path: resolvedPath,
|
|
1918
|
-
query,
|
|
1919
|
-
body,
|
|
1920
|
-
});
|
|
1463
|
+
b.hn(resolvedHostname);
|
|
1464
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1465
|
+
return b.build();
|
|
1921
1466
|
};
|
|
1922
1467
|
export const se_ListProjectsCommand = async (input, context) => {
|
|
1923
|
-
const
|
|
1468
|
+
const b = rb(input, context);
|
|
1924
1469
|
const headers = {};
|
|
1925
|
-
|
|
1470
|
+
b.bp("/projects");
|
|
1926
1471
|
const query = map({
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1472
|
+
[_pIo]: [, __expectNonNull(input[_pIo], `portalId`)],
|
|
1473
|
+
[_nT]: [, input[_nT]],
|
|
1474
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1930
1475
|
});
|
|
1931
1476
|
let body;
|
|
1932
1477
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1936,23 +1481,16 @@ export const se_ListProjectsCommand = async (input, context) => {
|
|
|
1936
1481
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1937
1482
|
}
|
|
1938
1483
|
}
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
port,
|
|
1943
|
-
method: "GET",
|
|
1944
|
-
headers,
|
|
1945
|
-
path: resolvedPath,
|
|
1946
|
-
query,
|
|
1947
|
-
body,
|
|
1948
|
-
});
|
|
1484
|
+
b.hn(resolvedHostname);
|
|
1485
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1486
|
+
return b.build();
|
|
1949
1487
|
};
|
|
1950
1488
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
1951
|
-
const
|
|
1489
|
+
const b = rb(input, context);
|
|
1952
1490
|
const headers = {};
|
|
1953
|
-
|
|
1491
|
+
b.bp("/tags");
|
|
1954
1492
|
const query = map({
|
|
1955
|
-
|
|
1493
|
+
[_rA]: [, __expectNonNull(input[_rA], `resourceArn`)],
|
|
1956
1494
|
});
|
|
1957
1495
|
let body;
|
|
1958
1496
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1962,27 +1500,20 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
1962
1500
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1963
1501
|
}
|
|
1964
1502
|
}
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
port,
|
|
1969
|
-
method: "GET",
|
|
1970
|
-
headers,
|
|
1971
|
-
path: resolvedPath,
|
|
1972
|
-
query,
|
|
1973
|
-
body,
|
|
1974
|
-
});
|
|
1503
|
+
b.hn(resolvedHostname);
|
|
1504
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1505
|
+
return b.build();
|
|
1975
1506
|
};
|
|
1976
1507
|
export const se_ListTimeSeriesCommand = async (input, context) => {
|
|
1977
|
-
const
|
|
1508
|
+
const b = rb(input, context);
|
|
1978
1509
|
const headers = {};
|
|
1979
|
-
|
|
1510
|
+
b.bp("/timeseries");
|
|
1980
1511
|
const query = map({
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1512
|
+
[_nT]: [, input[_nT]],
|
|
1513
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1514
|
+
[_aI]: [, input[_aI]],
|
|
1515
|
+
[_aP]: [, input[_aP]],
|
|
1516
|
+
[_tST]: [, input[_tST]],
|
|
1986
1517
|
});
|
|
1987
1518
|
let body;
|
|
1988
1519
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1992,23 +1523,16 @@ export const se_ListTimeSeriesCommand = async (input, context) => {
|
|
|
1992
1523
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1993
1524
|
}
|
|
1994
1525
|
}
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
port,
|
|
1999
|
-
method: "GET",
|
|
2000
|
-
headers,
|
|
2001
|
-
path: resolvedPath,
|
|
2002
|
-
query,
|
|
2003
|
-
body,
|
|
2004
|
-
});
|
|
1526
|
+
b.hn(resolvedHostname);
|
|
1527
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1528
|
+
return b.build();
|
|
2005
1529
|
};
|
|
2006
1530
|
export const se_PutDefaultEncryptionConfigurationCommand = async (input, context) => {
|
|
2007
|
-
const
|
|
1531
|
+
const b = rb(input, context);
|
|
2008
1532
|
const headers = {
|
|
2009
1533
|
"content-type": "application/json",
|
|
2010
1534
|
};
|
|
2011
|
-
|
|
1535
|
+
b.bp("/configuration/account/encryption");
|
|
2012
1536
|
let body;
|
|
2013
1537
|
body = JSON.stringify(take(input, {
|
|
2014
1538
|
encryptionType: [],
|
|
@@ -2021,22 +1545,16 @@ export const se_PutDefaultEncryptionConfigurationCommand = async (input, context
|
|
|
2021
1545
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2022
1546
|
}
|
|
2023
1547
|
}
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
port,
|
|
2028
|
-
method: "POST",
|
|
2029
|
-
headers,
|
|
2030
|
-
path: resolvedPath,
|
|
2031
|
-
body,
|
|
2032
|
-
});
|
|
1548
|
+
b.hn(resolvedHostname);
|
|
1549
|
+
b.m("POST").h(headers).b(body);
|
|
1550
|
+
return b.build();
|
|
2033
1551
|
};
|
|
2034
1552
|
export const se_PutLoggingOptionsCommand = async (input, context) => {
|
|
2035
|
-
const
|
|
1553
|
+
const b = rb(input, context);
|
|
2036
1554
|
const headers = {
|
|
2037
1555
|
"content-type": "application/json",
|
|
2038
1556
|
};
|
|
2039
|
-
|
|
1557
|
+
b.bp("/logging");
|
|
2040
1558
|
let body;
|
|
2041
1559
|
body = JSON.stringify(take(input, {
|
|
2042
1560
|
loggingOptions: (_) => _json(_),
|
|
@@ -2048,22 +1566,16 @@ export const se_PutLoggingOptionsCommand = async (input, context) => {
|
|
|
2048
1566
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2049
1567
|
}
|
|
2050
1568
|
}
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
port,
|
|
2055
|
-
method: "PUT",
|
|
2056
|
-
headers,
|
|
2057
|
-
path: resolvedPath,
|
|
2058
|
-
body,
|
|
2059
|
-
});
|
|
1569
|
+
b.hn(resolvedHostname);
|
|
1570
|
+
b.m("PUT").h(headers).b(body);
|
|
1571
|
+
return b.build();
|
|
2060
1572
|
};
|
|
2061
1573
|
export const se_PutStorageConfigurationCommand = async (input, context) => {
|
|
2062
|
-
const
|
|
1574
|
+
const b = rb(input, context);
|
|
2063
1575
|
const headers = {
|
|
2064
1576
|
"content-type": "application/json",
|
|
2065
1577
|
};
|
|
2066
|
-
|
|
1578
|
+
b.bp("/configuration/account/storage");
|
|
2067
1579
|
let body;
|
|
2068
1580
|
body = JSON.stringify(take(input, {
|
|
2069
1581
|
disassociatedDataStorage: [],
|
|
@@ -2080,24 +1592,18 @@ export const se_PutStorageConfigurationCommand = async (input, context) => {
|
|
|
2080
1592
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2081
1593
|
}
|
|
2082
1594
|
}
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
port,
|
|
2087
|
-
method: "POST",
|
|
2088
|
-
headers,
|
|
2089
|
-
path: resolvedPath,
|
|
2090
|
-
body,
|
|
2091
|
-
});
|
|
1595
|
+
b.hn(resolvedHostname);
|
|
1596
|
+
b.m("POST").h(headers).b(body);
|
|
1597
|
+
return b.build();
|
|
2092
1598
|
};
|
|
2093
1599
|
export const se_TagResourceCommand = async (input, context) => {
|
|
2094
|
-
const
|
|
1600
|
+
const b = rb(input, context);
|
|
2095
1601
|
const headers = {
|
|
2096
1602
|
"content-type": "application/json",
|
|
2097
1603
|
};
|
|
2098
|
-
|
|
1604
|
+
b.bp("/tags");
|
|
2099
1605
|
const query = map({
|
|
2100
|
-
|
|
1606
|
+
[_rA]: [, __expectNonNull(input[_rA], `resourceArn`)],
|
|
2101
1607
|
});
|
|
2102
1608
|
let body;
|
|
2103
1609
|
body = JSON.stringify(take(input, {
|
|
@@ -2110,26 +1616,19 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
2110
1616
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2111
1617
|
}
|
|
2112
1618
|
}
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
port,
|
|
2117
|
-
method: "POST",
|
|
2118
|
-
headers,
|
|
2119
|
-
path: resolvedPath,
|
|
2120
|
-
query,
|
|
2121
|
-
body,
|
|
2122
|
-
});
|
|
1619
|
+
b.hn(resolvedHostname);
|
|
1620
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
1621
|
+
return b.build();
|
|
2123
1622
|
};
|
|
2124
1623
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
2125
|
-
const
|
|
1624
|
+
const b = rb(input, context);
|
|
2126
1625
|
const headers = {};
|
|
2127
|
-
|
|
1626
|
+
b.bp("/tags");
|
|
2128
1627
|
const query = map({
|
|
2129
|
-
|
|
2130
|
-
|
|
1628
|
+
[_rA]: [, __expectNonNull(input[_rA], `resourceArn`)],
|
|
1629
|
+
[_tK]: [
|
|
2131
1630
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
2132
|
-
() => (input
|
|
1631
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
2133
1632
|
],
|
|
2134
1633
|
});
|
|
2135
1634
|
let body;
|
|
@@ -2140,24 +1639,17 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
2140
1639
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2141
1640
|
}
|
|
2142
1641
|
}
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
port,
|
|
2147
|
-
method: "DELETE",
|
|
2148
|
-
headers,
|
|
2149
|
-
path: resolvedPath,
|
|
2150
|
-
query,
|
|
2151
|
-
body,
|
|
2152
|
-
});
|
|
1642
|
+
b.hn(resolvedHostname);
|
|
1643
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1644
|
+
return b.build();
|
|
2153
1645
|
};
|
|
2154
1646
|
export const se_UpdateAccessPolicyCommand = async (input, context) => {
|
|
2155
|
-
const
|
|
1647
|
+
const b = rb(input, context);
|
|
2156
1648
|
const headers = {
|
|
2157
1649
|
"content-type": "application/json",
|
|
2158
1650
|
};
|
|
2159
|
-
|
|
2160
|
-
|
|
1651
|
+
b.bp("/access-policies/{accessPolicyId}");
|
|
1652
|
+
b.p("accessPolicyId", () => input.accessPolicyId, "{accessPolicyId}", false);
|
|
2161
1653
|
let body;
|
|
2162
1654
|
body = JSON.stringify(take(input, {
|
|
2163
1655
|
accessPolicyIdentity: (_) => _json(_),
|
|
@@ -2172,23 +1664,17 @@ export const se_UpdateAccessPolicyCommand = async (input, context) => {
|
|
|
2172
1664
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2173
1665
|
}
|
|
2174
1666
|
}
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
port,
|
|
2179
|
-
method: "PUT",
|
|
2180
|
-
headers,
|
|
2181
|
-
path: resolvedPath,
|
|
2182
|
-
body,
|
|
2183
|
-
});
|
|
1667
|
+
b.hn(resolvedHostname);
|
|
1668
|
+
b.m("PUT").h(headers).b(body);
|
|
1669
|
+
return b.build();
|
|
2184
1670
|
};
|
|
2185
1671
|
export const se_UpdateAssetCommand = async (input, context) => {
|
|
2186
|
-
const
|
|
1672
|
+
const b = rb(input, context);
|
|
2187
1673
|
const headers = {
|
|
2188
1674
|
"content-type": "application/json",
|
|
2189
1675
|
};
|
|
2190
|
-
|
|
2191
|
-
|
|
1676
|
+
b.bp("/assets/{assetId}");
|
|
1677
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
2192
1678
|
let body;
|
|
2193
1679
|
body = JSON.stringify(take(input, {
|
|
2194
1680
|
assetDescription: [],
|
|
@@ -2203,23 +1689,17 @@ export const se_UpdateAssetCommand = async (input, context) => {
|
|
|
2203
1689
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2204
1690
|
}
|
|
2205
1691
|
}
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
port,
|
|
2210
|
-
method: "PUT",
|
|
2211
|
-
headers,
|
|
2212
|
-
path: resolvedPath,
|
|
2213
|
-
body,
|
|
2214
|
-
});
|
|
1692
|
+
b.hn(resolvedHostname);
|
|
1693
|
+
b.m("PUT").h(headers).b(body);
|
|
1694
|
+
return b.build();
|
|
2215
1695
|
};
|
|
2216
1696
|
export const se_UpdateAssetModelCommand = async (input, context) => {
|
|
2217
|
-
const
|
|
1697
|
+
const b = rb(input, context);
|
|
2218
1698
|
const headers = {
|
|
2219
1699
|
"content-type": "application/json",
|
|
2220
1700
|
};
|
|
2221
|
-
|
|
2222
|
-
|
|
1701
|
+
b.bp("/asset-models/{assetModelId}");
|
|
1702
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
2223
1703
|
let body;
|
|
2224
1704
|
body = JSON.stringify(take(input, {
|
|
2225
1705
|
assetModelCompositeModels: (_) => se_AssetModelCompositeModels(_, context),
|
|
@@ -2237,25 +1717,18 @@ export const se_UpdateAssetModelCommand = async (input, context) => {
|
|
|
2237
1717
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2238
1718
|
}
|
|
2239
1719
|
}
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
port,
|
|
2244
|
-
method: "PUT",
|
|
2245
|
-
headers,
|
|
2246
|
-
path: resolvedPath,
|
|
2247
|
-
body,
|
|
2248
|
-
});
|
|
1720
|
+
b.hn(resolvedHostname);
|
|
1721
|
+
b.m("PUT").h(headers).b(body);
|
|
1722
|
+
return b.build();
|
|
2249
1723
|
};
|
|
2250
1724
|
export const se_UpdateAssetModelCompositeModelCommand = async (input, context) => {
|
|
2251
|
-
const
|
|
1725
|
+
const b = rb(input, context);
|
|
2252
1726
|
const headers = {
|
|
2253
1727
|
"content-type": "application/json",
|
|
2254
1728
|
};
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
1729
|
+
b.bp("/asset-models/{assetModelId}/composite-models/{assetModelCompositeModelId}");
|
|
1730
|
+
b.p("assetModelId", () => input.assetModelId, "{assetModelId}", false);
|
|
1731
|
+
b.p("assetModelCompositeModelId", () => input.assetModelCompositeModelId, "{assetModelCompositeModelId}", false);
|
|
2259
1732
|
let body;
|
|
2260
1733
|
body = JSON.stringify(take(input, {
|
|
2261
1734
|
assetModelCompositeModelDescription: [],
|
|
@@ -2271,24 +1744,18 @@ export const se_UpdateAssetModelCompositeModelCommand = async (input, context) =
|
|
|
2271
1744
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2272
1745
|
}
|
|
2273
1746
|
}
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
port,
|
|
2278
|
-
method: "PUT",
|
|
2279
|
-
headers,
|
|
2280
|
-
path: resolvedPath,
|
|
2281
|
-
body,
|
|
2282
|
-
});
|
|
1747
|
+
b.hn(resolvedHostname);
|
|
1748
|
+
b.m("PUT").h(headers).b(body);
|
|
1749
|
+
return b.build();
|
|
2283
1750
|
};
|
|
2284
1751
|
export const se_UpdateAssetPropertyCommand = async (input, context) => {
|
|
2285
|
-
const
|
|
1752
|
+
const b = rb(input, context);
|
|
2286
1753
|
const headers = {
|
|
2287
1754
|
"content-type": "application/json",
|
|
2288
1755
|
};
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
1756
|
+
b.bp("/assets/{assetId}/properties/{propertyId}");
|
|
1757
|
+
b.p("assetId", () => input.assetId, "{assetId}", false);
|
|
1758
|
+
b.p("propertyId", () => input.propertyId, "{propertyId}", false);
|
|
2292
1759
|
let body;
|
|
2293
1760
|
body = JSON.stringify(take(input, {
|
|
2294
1761
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -2303,23 +1770,17 @@ export const se_UpdateAssetPropertyCommand = async (input, context) => {
|
|
|
2303
1770
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2304
1771
|
}
|
|
2305
1772
|
}
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
port,
|
|
2310
|
-
method: "PUT",
|
|
2311
|
-
headers,
|
|
2312
|
-
path: resolvedPath,
|
|
2313
|
-
body,
|
|
2314
|
-
});
|
|
1773
|
+
b.hn(resolvedHostname);
|
|
1774
|
+
b.m("PUT").h(headers).b(body);
|
|
1775
|
+
return b.build();
|
|
2315
1776
|
};
|
|
2316
1777
|
export const se_UpdateDashboardCommand = async (input, context) => {
|
|
2317
|
-
const
|
|
1778
|
+
const b = rb(input, context);
|
|
2318
1779
|
const headers = {
|
|
2319
1780
|
"content-type": "application/json",
|
|
2320
1781
|
};
|
|
2321
|
-
|
|
2322
|
-
|
|
1782
|
+
b.bp("/dashboards/{dashboardId}");
|
|
1783
|
+
b.p("dashboardId", () => input.dashboardId, "{dashboardId}", false);
|
|
2323
1784
|
let body;
|
|
2324
1785
|
body = JSON.stringify(take(input, {
|
|
2325
1786
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -2334,23 +1795,17 @@ export const se_UpdateDashboardCommand = async (input, context) => {
|
|
|
2334
1795
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2335
1796
|
}
|
|
2336
1797
|
}
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
port,
|
|
2341
|
-
method: "PUT",
|
|
2342
|
-
headers,
|
|
2343
|
-
path: resolvedPath,
|
|
2344
|
-
body,
|
|
2345
|
-
});
|
|
1798
|
+
b.hn(resolvedHostname);
|
|
1799
|
+
b.m("PUT").h(headers).b(body);
|
|
1800
|
+
return b.build();
|
|
2346
1801
|
};
|
|
2347
1802
|
export const se_UpdateGatewayCommand = async (input, context) => {
|
|
2348
|
-
const
|
|
1803
|
+
const b = rb(input, context);
|
|
2349
1804
|
const headers = {
|
|
2350
1805
|
"content-type": "application/json",
|
|
2351
1806
|
};
|
|
2352
|
-
|
|
2353
|
-
|
|
1807
|
+
b.bp("/20200301/gateways/{gatewayId}");
|
|
1808
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
2354
1809
|
let body;
|
|
2355
1810
|
body = JSON.stringify(take(input, {
|
|
2356
1811
|
gatewayName: [],
|
|
@@ -2362,23 +1817,17 @@ export const se_UpdateGatewayCommand = async (input, context) => {
|
|
|
2362
1817
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2363
1818
|
}
|
|
2364
1819
|
}
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
port,
|
|
2369
|
-
method: "PUT",
|
|
2370
|
-
headers,
|
|
2371
|
-
path: resolvedPath,
|
|
2372
|
-
body,
|
|
2373
|
-
});
|
|
1820
|
+
b.hn(resolvedHostname);
|
|
1821
|
+
b.m("PUT").h(headers).b(body);
|
|
1822
|
+
return b.build();
|
|
2374
1823
|
};
|
|
2375
1824
|
export const se_UpdateGatewayCapabilityConfigurationCommand = async (input, context) => {
|
|
2376
|
-
const
|
|
1825
|
+
const b = rb(input, context);
|
|
2377
1826
|
const headers = {
|
|
2378
1827
|
"content-type": "application/json",
|
|
2379
1828
|
};
|
|
2380
|
-
|
|
2381
|
-
|
|
1829
|
+
b.bp("/20200301/gateways/{gatewayId}/capability");
|
|
1830
|
+
b.p("gatewayId", () => input.gatewayId, "{gatewayId}", false);
|
|
2382
1831
|
let body;
|
|
2383
1832
|
body = JSON.stringify(take(input, {
|
|
2384
1833
|
capabilityConfiguration: [],
|
|
@@ -2391,23 +1840,17 @@ export const se_UpdateGatewayCapabilityConfigurationCommand = async (input, cont
|
|
|
2391
1840
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2392
1841
|
}
|
|
2393
1842
|
}
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
port,
|
|
2398
|
-
method: "POST",
|
|
2399
|
-
headers,
|
|
2400
|
-
path: resolvedPath,
|
|
2401
|
-
body,
|
|
2402
|
-
});
|
|
1843
|
+
b.hn(resolvedHostname);
|
|
1844
|
+
b.m("POST").h(headers).b(body);
|
|
1845
|
+
return b.build();
|
|
2403
1846
|
};
|
|
2404
1847
|
export const se_UpdatePortalCommand = async (input, context) => {
|
|
2405
|
-
const
|
|
1848
|
+
const b = rb(input, context);
|
|
2406
1849
|
const headers = {
|
|
2407
1850
|
"content-type": "application/json",
|
|
2408
1851
|
};
|
|
2409
|
-
|
|
2410
|
-
|
|
1852
|
+
b.bp("/portals/{portalId}");
|
|
1853
|
+
b.p("portalId", () => input.portalId, "{portalId}", false);
|
|
2411
1854
|
let body;
|
|
2412
1855
|
body = JSON.stringify(take(input, {
|
|
2413
1856
|
alarms: (_) => _json(_),
|
|
@@ -2426,23 +1869,17 @@ export const se_UpdatePortalCommand = async (input, context) => {
|
|
|
2426
1869
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2427
1870
|
}
|
|
2428
1871
|
}
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
port,
|
|
2433
|
-
method: "PUT",
|
|
2434
|
-
headers,
|
|
2435
|
-
path: resolvedPath,
|
|
2436
|
-
body,
|
|
2437
|
-
});
|
|
1872
|
+
b.hn(resolvedHostname);
|
|
1873
|
+
b.m("PUT").h(headers).b(body);
|
|
1874
|
+
return b.build();
|
|
2438
1875
|
};
|
|
2439
1876
|
export const se_UpdateProjectCommand = async (input, context) => {
|
|
2440
|
-
const
|
|
1877
|
+
const b = rb(input, context);
|
|
2441
1878
|
const headers = {
|
|
2442
1879
|
"content-type": "application/json",
|
|
2443
1880
|
};
|
|
2444
|
-
|
|
2445
|
-
|
|
1881
|
+
b.bp("/projects/{projectId}");
|
|
1882
|
+
b.p("projectId", () => input.projectId, "{projectId}", false);
|
|
2446
1883
|
let body;
|
|
2447
1884
|
body = JSON.stringify(take(input, {
|
|
2448
1885
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -2456,15 +1893,9 @@ export const se_UpdateProjectCommand = async (input, context) => {
|
|
|
2456
1893
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2457
1894
|
}
|
|
2458
1895
|
}
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
port,
|
|
2463
|
-
method: "PUT",
|
|
2464
|
-
headers,
|
|
2465
|
-
path: resolvedPath,
|
|
2466
|
-
body,
|
|
2467
|
-
});
|
|
1896
|
+
b.hn(resolvedHostname);
|
|
1897
|
+
b.m("PUT").h(headers).b(body);
|
|
1898
|
+
return b.build();
|
|
2468
1899
|
};
|
|
2469
1900
|
export const de_AssociateAssetsCommand = async (output, context) => {
|
|
2470
1901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6964,6 +6395,47 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
6964
6395
|
value !== "" &&
|
|
6965
6396
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
6966
6397
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
6398
|
+
const _a = "alias";
|
|
6399
|
+
const _aI = "assetId";
|
|
6400
|
+
const _aMI = "assetModelId";
|
|
6401
|
+
const _aMT = "assetModelTypes";
|
|
6402
|
+
const _aP = "aliasPrefix";
|
|
6403
|
+
const _aT = "aggregateTypes";
|
|
6404
|
+
const _cT = "clientToken";
|
|
6405
|
+
const _eD = "endDate";
|
|
6406
|
+
const _eP = "excludeProperties";
|
|
6407
|
+
const _eTIS = "endTimeInSeconds";
|
|
6408
|
+
const _eTOIN = "endTimeOffsetInNanos";
|
|
6409
|
+
const _f = "filter";
|
|
6410
|
+
const _hI = "hierarchyId";
|
|
6411
|
+
const _iA = "iamArn";
|
|
6412
|
+
const _iI = "identityId";
|
|
6413
|
+
const _iIS = "intervalInSeconds";
|
|
6414
|
+
const _iT = "identityType";
|
|
6415
|
+
const _iWIS = "intervalWindowInSeconds";
|
|
6416
|
+
const _mR = "maxResults";
|
|
6417
|
+
const _nT = "nextToken";
|
|
6418
|
+
const _pA = "propertyAlias";
|
|
6419
|
+
const _pI = "propertyId";
|
|
6420
|
+
const _pIo = "portalId";
|
|
6421
|
+
const _pIr = "projectId";
|
|
6422
|
+
const _q = "qualities";
|
|
6423
|
+
const _qu = "quality";
|
|
6424
|
+
const _r = "resolution";
|
|
6425
|
+
const _rA = "resourceArn";
|
|
6426
|
+
const _rI = "resourceId";
|
|
6427
|
+
const _rT = "resourceType";
|
|
6428
|
+
const _sD = "startDate";
|
|
6429
|
+
const _sTIS = "startTimeInSeconds";
|
|
6430
|
+
const _sTOIN = "startTimeOffsetInNanos";
|
|
6431
|
+
const _t = "type";
|
|
6432
|
+
const _tD = "traversalDirection";
|
|
6433
|
+
const _tK = "tagKeys";
|
|
6434
|
+
const _tO = "timeOrdering";
|
|
6435
|
+
const _tRI = "targetResourceId";
|
|
6436
|
+
const _tRT = "targetResourceType";
|
|
6437
|
+
const _tST = "timeSeriesType";
|
|
6438
|
+
const _tT = "traversalType";
|
|
6967
6439
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
6968
6440
|
if (encoded.length) {
|
|
6969
6441
|
return JSON.parse(encoded);
|