@aws-sdk/client-iottwinmaker 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +2060 -2730
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/IoTTwinMakerClient.js +2 -0
- package/dist-es/commands/BatchPutPropertyValuesCommand.js +3 -9
- package/dist-es/commands/CancelMetadataTransferJobCommand.js +3 -9
- package/dist-es/commands/CreateComponentTypeCommand.js +3 -9
- package/dist-es/commands/CreateEntityCommand.js +3 -9
- package/dist-es/commands/CreateMetadataTransferJobCommand.js +3 -9
- package/dist-es/commands/CreateSceneCommand.js +3 -9
- package/dist-es/commands/CreateSyncJobCommand.js +3 -9
- package/dist-es/commands/CreateWorkspaceCommand.js +3 -9
- package/dist-es/commands/DeleteComponentTypeCommand.js +3 -9
- package/dist-es/commands/DeleteEntityCommand.js +3 -9
- package/dist-es/commands/DeleteSceneCommand.js +3 -9
- package/dist-es/commands/DeleteSyncJobCommand.js +3 -9
- package/dist-es/commands/DeleteWorkspaceCommand.js +3 -9
- package/dist-es/commands/ExecuteQueryCommand.js +3 -9
- package/dist-es/commands/GetComponentTypeCommand.js +3 -9
- package/dist-es/commands/GetEntityCommand.js +3 -9
- package/dist-es/commands/GetMetadataTransferJobCommand.js +3 -9
- package/dist-es/commands/GetPricingPlanCommand.js +3 -9
- package/dist-es/commands/GetPropertyValueCommand.js +3 -9
- package/dist-es/commands/GetPropertyValueHistoryCommand.js +3 -9
- package/dist-es/commands/GetSceneCommand.js +3 -9
- package/dist-es/commands/GetSyncJobCommand.js +3 -9
- package/dist-es/commands/GetWorkspaceCommand.js +3 -9
- package/dist-es/commands/ListComponentTypesCommand.js +3 -9
- package/dist-es/commands/ListComponentsCommand.js +3 -9
- package/dist-es/commands/ListEntitiesCommand.js +3 -9
- package/dist-es/commands/ListMetadataTransferJobsCommand.js +3 -9
- package/dist-es/commands/ListPropertiesCommand.js +3 -9
- package/dist-es/commands/ListScenesCommand.js +3 -9
- package/dist-es/commands/ListSyncJobsCommand.js +3 -9
- package/dist-es/commands/ListSyncResourcesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListWorkspacesCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateComponentTypeCommand.js +3 -9
- package/dist-es/commands/UpdateEntityCommand.js +3 -9
- package/dist-es/commands/UpdatePricingPlanCommand.js +3 -9
- package/dist-es/commands/UpdateSceneCommand.js +3 -9
- package/dist-es/commands/UpdateWorkspaceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -68
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1964 -0
- package/dist-types/IoTTwinMakerClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +24 -6
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +269 -0
- package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -15
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +275 -0
- package/package.json +33 -33
- package/dist-es/protocols/Aws_restJson1.js +0 -2356
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -362
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -485
|
@@ -1,2356 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
4
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, 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";
|
|
5
|
-
import { IoTTwinMakerServiceException as __BaseException } from "../models/IoTTwinMakerServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, ConnectorFailureException, ConnectorTimeoutException, InternalServerException, QueryTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_BatchPutPropertyValuesCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/workspaces/{workspaceId}/entity-properties");
|
|
13
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(take(input, {
|
|
16
|
-
entries: (_) => se_Entries(_, context),
|
|
17
|
-
}));
|
|
18
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
19
|
-
if (context.disableHostPrefix !== true) {
|
|
20
|
-
resolvedHostname = "data." + resolvedHostname;
|
|
21
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
22
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
b.hn(resolvedHostname);
|
|
26
|
-
b.m("POST").h(headers).b(body);
|
|
27
|
-
return b.build();
|
|
28
|
-
};
|
|
29
|
-
export const se_CancelMetadataTransferJobCommand = async (input, context) => {
|
|
30
|
-
const b = rb(input, context);
|
|
31
|
-
const headers = {};
|
|
32
|
-
b.bp("/metadata-transfer-jobs/{metadataTransferJobId}/cancel");
|
|
33
|
-
b.p("metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
|
|
34
|
-
let body;
|
|
35
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
36
|
-
if (context.disableHostPrefix !== true) {
|
|
37
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
38
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
39
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
b.hn(resolvedHostname);
|
|
43
|
-
b.m("PUT").h(headers).b(body);
|
|
44
|
-
return b.build();
|
|
45
|
-
};
|
|
46
|
-
export const se_CreateComponentTypeCommand = async (input, context) => {
|
|
47
|
-
const b = rb(input, context);
|
|
48
|
-
const headers = {
|
|
49
|
-
"content-type": "application/json",
|
|
50
|
-
};
|
|
51
|
-
b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}");
|
|
52
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
53
|
-
b.p("componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
54
|
-
let body;
|
|
55
|
-
body = JSON.stringify(take(input, {
|
|
56
|
-
componentTypeName: [],
|
|
57
|
-
compositeComponentTypes: (_) => _json(_),
|
|
58
|
-
description: [],
|
|
59
|
-
extendsFrom: (_) => _json(_),
|
|
60
|
-
functions: (_) => _json(_),
|
|
61
|
-
isSingleton: [],
|
|
62
|
-
propertyDefinitions: (_) => se_PropertyDefinitionsRequest(_, context),
|
|
63
|
-
propertyGroups: (_) => _json(_),
|
|
64
|
-
tags: (_) => _json(_),
|
|
65
|
-
}));
|
|
66
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
67
|
-
if (context.disableHostPrefix !== true) {
|
|
68
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
69
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
70
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
b.hn(resolvedHostname);
|
|
74
|
-
b.m("POST").h(headers).b(body);
|
|
75
|
-
return b.build();
|
|
76
|
-
};
|
|
77
|
-
export const se_CreateEntityCommand = async (input, context) => {
|
|
78
|
-
const b = rb(input, context);
|
|
79
|
-
const headers = {
|
|
80
|
-
"content-type": "application/json",
|
|
81
|
-
};
|
|
82
|
-
b.bp("/workspaces/{workspaceId}/entities");
|
|
83
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
84
|
-
let body;
|
|
85
|
-
body = JSON.stringify(take(input, {
|
|
86
|
-
components: (_) => se_ComponentsMapRequest(_, context),
|
|
87
|
-
compositeComponents: (_) => se_CompositeComponentsMapRequest(_, context),
|
|
88
|
-
description: [],
|
|
89
|
-
entityId: [],
|
|
90
|
-
entityName: [],
|
|
91
|
-
parentEntityId: [],
|
|
92
|
-
tags: (_) => _json(_),
|
|
93
|
-
}));
|
|
94
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
95
|
-
if (context.disableHostPrefix !== true) {
|
|
96
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
97
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
98
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
b.hn(resolvedHostname);
|
|
102
|
-
b.m("POST").h(headers).b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
export const se_CreateMetadataTransferJobCommand = async (input, context) => {
|
|
106
|
-
const b = rb(input, context);
|
|
107
|
-
const headers = {
|
|
108
|
-
"content-type": "application/json",
|
|
109
|
-
};
|
|
110
|
-
b.bp("/metadata-transfer-jobs");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(take(input, {
|
|
113
|
-
description: [],
|
|
114
|
-
destination: (_) => _json(_),
|
|
115
|
-
metadataTransferJobId: [],
|
|
116
|
-
sources: (_) => _json(_),
|
|
117
|
-
}));
|
|
118
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
119
|
-
if (context.disableHostPrefix !== true) {
|
|
120
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
121
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
122
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
b.hn(resolvedHostname);
|
|
126
|
-
b.m("POST").h(headers).b(body);
|
|
127
|
-
return b.build();
|
|
128
|
-
};
|
|
129
|
-
export const se_CreateSceneCommand = async (input, context) => {
|
|
130
|
-
const b = rb(input, context);
|
|
131
|
-
const headers = {
|
|
132
|
-
"content-type": "application/json",
|
|
133
|
-
};
|
|
134
|
-
b.bp("/workspaces/{workspaceId}/scenes");
|
|
135
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
136
|
-
let body;
|
|
137
|
-
body = JSON.stringify(take(input, {
|
|
138
|
-
capabilities: (_) => _json(_),
|
|
139
|
-
contentLocation: [],
|
|
140
|
-
description: [],
|
|
141
|
-
sceneId: [],
|
|
142
|
-
sceneMetadata: (_) => _json(_),
|
|
143
|
-
tags: (_) => _json(_),
|
|
144
|
-
}));
|
|
145
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
146
|
-
if (context.disableHostPrefix !== true) {
|
|
147
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
148
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
149
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
b.hn(resolvedHostname);
|
|
153
|
-
b.m("POST").h(headers).b(body);
|
|
154
|
-
return b.build();
|
|
155
|
-
};
|
|
156
|
-
export const se_CreateSyncJobCommand = async (input, context) => {
|
|
157
|
-
const b = rb(input, context);
|
|
158
|
-
const headers = {
|
|
159
|
-
"content-type": "application/json",
|
|
160
|
-
};
|
|
161
|
-
b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}");
|
|
162
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
163
|
-
b.p("syncSource", () => input.syncSource, "{syncSource}", false);
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(take(input, {
|
|
166
|
-
syncRole: [],
|
|
167
|
-
tags: (_) => _json(_),
|
|
168
|
-
}));
|
|
169
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
170
|
-
if (context.disableHostPrefix !== true) {
|
|
171
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
172
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
173
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
b.hn(resolvedHostname);
|
|
177
|
-
b.m("POST").h(headers).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
181
|
-
const b = rb(input, context);
|
|
182
|
-
const headers = {
|
|
183
|
-
"content-type": "application/json",
|
|
184
|
-
};
|
|
185
|
-
b.bp("/workspaces/{workspaceId}");
|
|
186
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
187
|
-
let body;
|
|
188
|
-
body = JSON.stringify(take(input, {
|
|
189
|
-
description: [],
|
|
190
|
-
role: [],
|
|
191
|
-
s3Location: [],
|
|
192
|
-
tags: (_) => _json(_),
|
|
193
|
-
}));
|
|
194
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
195
|
-
if (context.disableHostPrefix !== true) {
|
|
196
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
197
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
198
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
b.hn(resolvedHostname);
|
|
202
|
-
b.m("POST").h(headers).b(body);
|
|
203
|
-
return b.build();
|
|
204
|
-
};
|
|
205
|
-
export const se_DeleteComponentTypeCommand = async (input, context) => {
|
|
206
|
-
const b = rb(input, context);
|
|
207
|
-
const headers = {};
|
|
208
|
-
b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}");
|
|
209
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
210
|
-
b.p("componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
211
|
-
let body;
|
|
212
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
213
|
-
if (context.disableHostPrefix !== true) {
|
|
214
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
215
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
216
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
b.hn(resolvedHostname);
|
|
220
|
-
b.m("DELETE").h(headers).b(body);
|
|
221
|
-
return b.build();
|
|
222
|
-
};
|
|
223
|
-
export const se_DeleteEntityCommand = async (input, context) => {
|
|
224
|
-
const b = rb(input, context);
|
|
225
|
-
const headers = {};
|
|
226
|
-
b.bp("/workspaces/{workspaceId}/entities/{entityId}");
|
|
227
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
228
|
-
b.p("entityId", () => input.entityId, "{entityId}", false);
|
|
229
|
-
const query = map({
|
|
230
|
-
[_iR]: [() => input.isRecursive !== void 0, () => input[_iR].toString()],
|
|
231
|
-
});
|
|
232
|
-
let body;
|
|
233
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
234
|
-
if (context.disableHostPrefix !== true) {
|
|
235
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
236
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
237
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
b.hn(resolvedHostname);
|
|
241
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
242
|
-
return b.build();
|
|
243
|
-
};
|
|
244
|
-
export const se_DeleteSceneCommand = async (input, context) => {
|
|
245
|
-
const b = rb(input, context);
|
|
246
|
-
const headers = {};
|
|
247
|
-
b.bp("/workspaces/{workspaceId}/scenes/{sceneId}");
|
|
248
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
249
|
-
b.p("sceneId", () => input.sceneId, "{sceneId}", false);
|
|
250
|
-
let body;
|
|
251
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
252
|
-
if (context.disableHostPrefix !== true) {
|
|
253
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
254
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
255
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
b.hn(resolvedHostname);
|
|
259
|
-
b.m("DELETE").h(headers).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
export const se_DeleteSyncJobCommand = async (input, context) => {
|
|
263
|
-
const b = rb(input, context);
|
|
264
|
-
const headers = {};
|
|
265
|
-
b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}");
|
|
266
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
267
|
-
b.p("syncSource", () => input.syncSource, "{syncSource}", false);
|
|
268
|
-
let body;
|
|
269
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
270
|
-
if (context.disableHostPrefix !== true) {
|
|
271
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
272
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
273
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
b.hn(resolvedHostname);
|
|
277
|
-
b.m("DELETE").h(headers).b(body);
|
|
278
|
-
return b.build();
|
|
279
|
-
};
|
|
280
|
-
export const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
281
|
-
const b = rb(input, context);
|
|
282
|
-
const headers = {};
|
|
283
|
-
b.bp("/workspaces/{workspaceId}");
|
|
284
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
285
|
-
let body;
|
|
286
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
287
|
-
if (context.disableHostPrefix !== true) {
|
|
288
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
289
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
290
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
b.hn(resolvedHostname);
|
|
294
|
-
b.m("DELETE").h(headers).b(body);
|
|
295
|
-
return b.build();
|
|
296
|
-
};
|
|
297
|
-
export const se_ExecuteQueryCommand = async (input, context) => {
|
|
298
|
-
const b = rb(input, context);
|
|
299
|
-
const headers = {
|
|
300
|
-
"content-type": "application/json",
|
|
301
|
-
};
|
|
302
|
-
b.bp("/queries/execution");
|
|
303
|
-
let body;
|
|
304
|
-
body = JSON.stringify(take(input, {
|
|
305
|
-
maxResults: [],
|
|
306
|
-
nextToken: [],
|
|
307
|
-
queryStatement: [],
|
|
308
|
-
workspaceId: [],
|
|
309
|
-
}));
|
|
310
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
311
|
-
if (context.disableHostPrefix !== true) {
|
|
312
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
313
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
314
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
b.hn(resolvedHostname);
|
|
318
|
-
b.m("POST").h(headers).b(body);
|
|
319
|
-
return b.build();
|
|
320
|
-
};
|
|
321
|
-
export const se_GetComponentTypeCommand = async (input, context) => {
|
|
322
|
-
const b = rb(input, context);
|
|
323
|
-
const headers = {};
|
|
324
|
-
b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}");
|
|
325
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
326
|
-
b.p("componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
327
|
-
let body;
|
|
328
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
329
|
-
if (context.disableHostPrefix !== true) {
|
|
330
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
331
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
332
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
b.hn(resolvedHostname);
|
|
336
|
-
b.m("GET").h(headers).b(body);
|
|
337
|
-
return b.build();
|
|
338
|
-
};
|
|
339
|
-
export const se_GetEntityCommand = async (input, context) => {
|
|
340
|
-
const b = rb(input, context);
|
|
341
|
-
const headers = {};
|
|
342
|
-
b.bp("/workspaces/{workspaceId}/entities/{entityId}");
|
|
343
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
344
|
-
b.p("entityId", () => input.entityId, "{entityId}", false);
|
|
345
|
-
let body;
|
|
346
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
347
|
-
if (context.disableHostPrefix !== true) {
|
|
348
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
349
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
350
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
b.hn(resolvedHostname);
|
|
354
|
-
b.m("GET").h(headers).b(body);
|
|
355
|
-
return b.build();
|
|
356
|
-
};
|
|
357
|
-
export const se_GetMetadataTransferJobCommand = async (input, context) => {
|
|
358
|
-
const b = rb(input, context);
|
|
359
|
-
const headers = {};
|
|
360
|
-
b.bp("/metadata-transfer-jobs/{metadataTransferJobId}");
|
|
361
|
-
b.p("metadataTransferJobId", () => input.metadataTransferJobId, "{metadataTransferJobId}", false);
|
|
362
|
-
let body;
|
|
363
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
364
|
-
if (context.disableHostPrefix !== true) {
|
|
365
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
366
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
367
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
b.hn(resolvedHostname);
|
|
371
|
-
b.m("GET").h(headers).b(body);
|
|
372
|
-
return b.build();
|
|
373
|
-
};
|
|
374
|
-
export const se_GetPricingPlanCommand = async (input, context) => {
|
|
375
|
-
const b = rb(input, context);
|
|
376
|
-
const headers = {};
|
|
377
|
-
b.bp("/pricingplan");
|
|
378
|
-
let body;
|
|
379
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
380
|
-
if (context.disableHostPrefix !== true) {
|
|
381
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
382
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
383
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
b.hn(resolvedHostname);
|
|
387
|
-
b.m("GET").h(headers).b(body);
|
|
388
|
-
return b.build();
|
|
389
|
-
};
|
|
390
|
-
export const se_GetPropertyValueCommand = async (input, context) => {
|
|
391
|
-
const b = rb(input, context);
|
|
392
|
-
const headers = {
|
|
393
|
-
"content-type": "application/json",
|
|
394
|
-
};
|
|
395
|
-
b.bp("/workspaces/{workspaceId}/entity-properties/value");
|
|
396
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
397
|
-
let body;
|
|
398
|
-
body = JSON.stringify(take(input, {
|
|
399
|
-
componentName: [],
|
|
400
|
-
componentPath: [],
|
|
401
|
-
componentTypeId: [],
|
|
402
|
-
entityId: [],
|
|
403
|
-
maxResults: [],
|
|
404
|
-
nextToken: [],
|
|
405
|
-
propertyGroupName: [],
|
|
406
|
-
selectedProperties: (_) => _json(_),
|
|
407
|
-
tabularConditions: (_) => se_TabularConditions(_, context),
|
|
408
|
-
}));
|
|
409
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
410
|
-
if (context.disableHostPrefix !== true) {
|
|
411
|
-
resolvedHostname = "data." + resolvedHostname;
|
|
412
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
413
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
b.hn(resolvedHostname);
|
|
417
|
-
b.m("POST").h(headers).b(body);
|
|
418
|
-
return b.build();
|
|
419
|
-
};
|
|
420
|
-
export const se_GetPropertyValueHistoryCommand = async (input, context) => {
|
|
421
|
-
const b = rb(input, context);
|
|
422
|
-
const headers = {
|
|
423
|
-
"content-type": "application/json",
|
|
424
|
-
};
|
|
425
|
-
b.bp("/workspaces/{workspaceId}/entity-properties/history");
|
|
426
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
427
|
-
let body;
|
|
428
|
-
body = JSON.stringify(take(input, {
|
|
429
|
-
componentName: [],
|
|
430
|
-
componentPath: [],
|
|
431
|
-
componentTypeId: [],
|
|
432
|
-
endDateTime: (_) => _.getTime() / 1_000,
|
|
433
|
-
endTime: [],
|
|
434
|
-
entityId: [],
|
|
435
|
-
interpolation: (_) => _json(_),
|
|
436
|
-
maxResults: [],
|
|
437
|
-
nextToken: [],
|
|
438
|
-
orderByTime: [],
|
|
439
|
-
propertyFilters: (_) => se_PropertyFilters(_, context),
|
|
440
|
-
selectedProperties: (_) => _json(_),
|
|
441
|
-
startDateTime: (_) => _.getTime() / 1_000,
|
|
442
|
-
startTime: [],
|
|
443
|
-
}));
|
|
444
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
445
|
-
if (context.disableHostPrefix !== true) {
|
|
446
|
-
resolvedHostname = "data." + resolvedHostname;
|
|
447
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
448
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
b.hn(resolvedHostname);
|
|
452
|
-
b.m("POST").h(headers).b(body);
|
|
453
|
-
return b.build();
|
|
454
|
-
};
|
|
455
|
-
export const se_GetSceneCommand = async (input, context) => {
|
|
456
|
-
const b = rb(input, context);
|
|
457
|
-
const headers = {};
|
|
458
|
-
b.bp("/workspaces/{workspaceId}/scenes/{sceneId}");
|
|
459
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
460
|
-
b.p("sceneId", () => input.sceneId, "{sceneId}", false);
|
|
461
|
-
let body;
|
|
462
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
463
|
-
if (context.disableHostPrefix !== true) {
|
|
464
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
465
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
466
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
b.hn(resolvedHostname);
|
|
470
|
-
b.m("GET").h(headers).b(body);
|
|
471
|
-
return b.build();
|
|
472
|
-
};
|
|
473
|
-
export const se_GetSyncJobCommand = async (input, context) => {
|
|
474
|
-
const b = rb(input, context);
|
|
475
|
-
const headers = {};
|
|
476
|
-
b.bp("/sync-jobs/{syncSource}");
|
|
477
|
-
b.p("syncSource", () => input.syncSource, "{syncSource}", false);
|
|
478
|
-
const query = map({
|
|
479
|
-
[_w]: [, input[_wI]],
|
|
480
|
-
});
|
|
481
|
-
let body;
|
|
482
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
483
|
-
if (context.disableHostPrefix !== true) {
|
|
484
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
485
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
486
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
b.hn(resolvedHostname);
|
|
490
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
491
|
-
return b.build();
|
|
492
|
-
};
|
|
493
|
-
export const se_GetWorkspaceCommand = async (input, context) => {
|
|
494
|
-
const b = rb(input, context);
|
|
495
|
-
const headers = {};
|
|
496
|
-
b.bp("/workspaces/{workspaceId}");
|
|
497
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
498
|
-
let body;
|
|
499
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
500
|
-
if (context.disableHostPrefix !== true) {
|
|
501
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
502
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
503
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
b.hn(resolvedHostname);
|
|
507
|
-
b.m("GET").h(headers).b(body);
|
|
508
|
-
return b.build();
|
|
509
|
-
};
|
|
510
|
-
export const se_ListComponentsCommand = async (input, context) => {
|
|
511
|
-
const b = rb(input, context);
|
|
512
|
-
const headers = {
|
|
513
|
-
"content-type": "application/json",
|
|
514
|
-
};
|
|
515
|
-
b.bp("/workspaces/{workspaceId}/entities/{entityId}/components-list");
|
|
516
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
517
|
-
b.p("entityId", () => input.entityId, "{entityId}", false);
|
|
518
|
-
let body;
|
|
519
|
-
body = JSON.stringify(take(input, {
|
|
520
|
-
componentPath: [],
|
|
521
|
-
maxResults: [],
|
|
522
|
-
nextToken: [],
|
|
523
|
-
}));
|
|
524
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
525
|
-
if (context.disableHostPrefix !== true) {
|
|
526
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
527
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
528
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
b.hn(resolvedHostname);
|
|
532
|
-
b.m("POST").h(headers).b(body);
|
|
533
|
-
return b.build();
|
|
534
|
-
};
|
|
535
|
-
export const se_ListComponentTypesCommand = async (input, context) => {
|
|
536
|
-
const b = rb(input, context);
|
|
537
|
-
const headers = {
|
|
538
|
-
"content-type": "application/json",
|
|
539
|
-
};
|
|
540
|
-
b.bp("/workspaces/{workspaceId}/component-types-list");
|
|
541
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
542
|
-
let body;
|
|
543
|
-
body = JSON.stringify(take(input, {
|
|
544
|
-
filters: (_) => _json(_),
|
|
545
|
-
maxResults: [],
|
|
546
|
-
nextToken: [],
|
|
547
|
-
}));
|
|
548
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
549
|
-
if (context.disableHostPrefix !== true) {
|
|
550
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
551
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
552
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
b.hn(resolvedHostname);
|
|
556
|
-
b.m("POST").h(headers).b(body);
|
|
557
|
-
return b.build();
|
|
558
|
-
};
|
|
559
|
-
export const se_ListEntitiesCommand = async (input, context) => {
|
|
560
|
-
const b = rb(input, context);
|
|
561
|
-
const headers = {
|
|
562
|
-
"content-type": "application/json",
|
|
563
|
-
};
|
|
564
|
-
b.bp("/workspaces/{workspaceId}/entities-list");
|
|
565
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
566
|
-
let body;
|
|
567
|
-
body = JSON.stringify(take(input, {
|
|
568
|
-
filters: (_) => _json(_),
|
|
569
|
-
maxResults: [],
|
|
570
|
-
nextToken: [],
|
|
571
|
-
}));
|
|
572
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
573
|
-
if (context.disableHostPrefix !== true) {
|
|
574
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
575
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
576
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
b.hn(resolvedHostname);
|
|
580
|
-
b.m("POST").h(headers).b(body);
|
|
581
|
-
return b.build();
|
|
582
|
-
};
|
|
583
|
-
export const se_ListMetadataTransferJobsCommand = async (input, context) => {
|
|
584
|
-
const b = rb(input, context);
|
|
585
|
-
const headers = {
|
|
586
|
-
"content-type": "application/json",
|
|
587
|
-
};
|
|
588
|
-
b.bp("/metadata-transfer-jobs-list");
|
|
589
|
-
let body;
|
|
590
|
-
body = JSON.stringify(take(input, {
|
|
591
|
-
destinationType: [],
|
|
592
|
-
filters: (_) => _json(_),
|
|
593
|
-
maxResults: [],
|
|
594
|
-
nextToken: [],
|
|
595
|
-
sourceType: [],
|
|
596
|
-
}));
|
|
597
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
598
|
-
if (context.disableHostPrefix !== true) {
|
|
599
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
600
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
601
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
b.hn(resolvedHostname);
|
|
605
|
-
b.m("POST").h(headers).b(body);
|
|
606
|
-
return b.build();
|
|
607
|
-
};
|
|
608
|
-
export const se_ListPropertiesCommand = async (input, context) => {
|
|
609
|
-
const b = rb(input, context);
|
|
610
|
-
const headers = {
|
|
611
|
-
"content-type": "application/json",
|
|
612
|
-
};
|
|
613
|
-
b.bp("/workspaces/{workspaceId}/properties-list");
|
|
614
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
615
|
-
let body;
|
|
616
|
-
body = JSON.stringify(take(input, {
|
|
617
|
-
componentName: [],
|
|
618
|
-
componentPath: [],
|
|
619
|
-
entityId: [],
|
|
620
|
-
maxResults: [],
|
|
621
|
-
nextToken: [],
|
|
622
|
-
}));
|
|
623
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
624
|
-
if (context.disableHostPrefix !== true) {
|
|
625
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
626
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
627
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
b.hn(resolvedHostname);
|
|
631
|
-
b.m("POST").h(headers).b(body);
|
|
632
|
-
return b.build();
|
|
633
|
-
};
|
|
634
|
-
export const se_ListScenesCommand = async (input, context) => {
|
|
635
|
-
const b = rb(input, context);
|
|
636
|
-
const headers = {
|
|
637
|
-
"content-type": "application/json",
|
|
638
|
-
};
|
|
639
|
-
b.bp("/workspaces/{workspaceId}/scenes-list");
|
|
640
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
641
|
-
let body;
|
|
642
|
-
body = JSON.stringify(take(input, {
|
|
643
|
-
maxResults: [],
|
|
644
|
-
nextToken: [],
|
|
645
|
-
}));
|
|
646
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
647
|
-
if (context.disableHostPrefix !== true) {
|
|
648
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
649
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
650
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
b.hn(resolvedHostname);
|
|
654
|
-
b.m("POST").h(headers).b(body);
|
|
655
|
-
return b.build();
|
|
656
|
-
};
|
|
657
|
-
export const se_ListSyncJobsCommand = async (input, context) => {
|
|
658
|
-
const b = rb(input, context);
|
|
659
|
-
const headers = {
|
|
660
|
-
"content-type": "application/json",
|
|
661
|
-
};
|
|
662
|
-
b.bp("/workspaces/{workspaceId}/sync-jobs-list");
|
|
663
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
664
|
-
let body;
|
|
665
|
-
body = JSON.stringify(take(input, {
|
|
666
|
-
maxResults: [],
|
|
667
|
-
nextToken: [],
|
|
668
|
-
}));
|
|
669
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
670
|
-
if (context.disableHostPrefix !== true) {
|
|
671
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
672
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
673
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
b.hn(resolvedHostname);
|
|
677
|
-
b.m("POST").h(headers).b(body);
|
|
678
|
-
return b.build();
|
|
679
|
-
};
|
|
680
|
-
export const se_ListSyncResourcesCommand = async (input, context) => {
|
|
681
|
-
const b = rb(input, context);
|
|
682
|
-
const headers = {
|
|
683
|
-
"content-type": "application/json",
|
|
684
|
-
};
|
|
685
|
-
b.bp("/workspaces/{workspaceId}/sync-jobs/{syncSource}/resources-list");
|
|
686
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
687
|
-
b.p("syncSource", () => input.syncSource, "{syncSource}", false);
|
|
688
|
-
let body;
|
|
689
|
-
body = JSON.stringify(take(input, {
|
|
690
|
-
filters: (_) => _json(_),
|
|
691
|
-
maxResults: [],
|
|
692
|
-
nextToken: [],
|
|
693
|
-
}));
|
|
694
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
695
|
-
if (context.disableHostPrefix !== true) {
|
|
696
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
697
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
698
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
b.hn(resolvedHostname);
|
|
702
|
-
b.m("POST").h(headers).b(body);
|
|
703
|
-
return b.build();
|
|
704
|
-
};
|
|
705
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
706
|
-
const b = rb(input, context);
|
|
707
|
-
const headers = {
|
|
708
|
-
"content-type": "application/json",
|
|
709
|
-
};
|
|
710
|
-
b.bp("/tags-list");
|
|
711
|
-
let body;
|
|
712
|
-
body = JSON.stringify(take(input, {
|
|
713
|
-
maxResults: [],
|
|
714
|
-
nextToken: [],
|
|
715
|
-
resourceARN: [],
|
|
716
|
-
}));
|
|
717
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
718
|
-
if (context.disableHostPrefix !== true) {
|
|
719
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
720
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
721
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
722
|
-
}
|
|
723
|
-
}
|
|
724
|
-
b.hn(resolvedHostname);
|
|
725
|
-
b.m("POST").h(headers).b(body);
|
|
726
|
-
return b.build();
|
|
727
|
-
};
|
|
728
|
-
export const se_ListWorkspacesCommand = async (input, context) => {
|
|
729
|
-
const b = rb(input, context);
|
|
730
|
-
const headers = {
|
|
731
|
-
"content-type": "application/json",
|
|
732
|
-
};
|
|
733
|
-
b.bp("/workspaces-list");
|
|
734
|
-
let body;
|
|
735
|
-
body = JSON.stringify(take(input, {
|
|
736
|
-
maxResults: [],
|
|
737
|
-
nextToken: [],
|
|
738
|
-
}));
|
|
739
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
740
|
-
if (context.disableHostPrefix !== true) {
|
|
741
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
742
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
743
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
b.hn(resolvedHostname);
|
|
747
|
-
b.m("POST").h(headers).b(body);
|
|
748
|
-
return b.build();
|
|
749
|
-
};
|
|
750
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
751
|
-
const b = rb(input, context);
|
|
752
|
-
const headers = {
|
|
753
|
-
"content-type": "application/json",
|
|
754
|
-
};
|
|
755
|
-
b.bp("/tags");
|
|
756
|
-
let body;
|
|
757
|
-
body = JSON.stringify(take(input, {
|
|
758
|
-
resourceARN: [],
|
|
759
|
-
tags: (_) => _json(_),
|
|
760
|
-
}));
|
|
761
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
762
|
-
if (context.disableHostPrefix !== true) {
|
|
763
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
764
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
765
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
b.hn(resolvedHostname);
|
|
769
|
-
b.m("POST").h(headers).b(body);
|
|
770
|
-
return b.build();
|
|
771
|
-
};
|
|
772
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
773
|
-
const b = rb(input, context);
|
|
774
|
-
const headers = {};
|
|
775
|
-
b.bp("/tags");
|
|
776
|
-
const query = map({
|
|
777
|
-
[_rARN]: [, __expectNonNull(input[_rARN], `resourceARN`)],
|
|
778
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
779
|
-
});
|
|
780
|
-
let body;
|
|
781
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
782
|
-
if (context.disableHostPrefix !== true) {
|
|
783
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
784
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
785
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
|
-
b.hn(resolvedHostname);
|
|
789
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
790
|
-
return b.build();
|
|
791
|
-
};
|
|
792
|
-
export const se_UpdateComponentTypeCommand = async (input, context) => {
|
|
793
|
-
const b = rb(input, context);
|
|
794
|
-
const headers = {
|
|
795
|
-
"content-type": "application/json",
|
|
796
|
-
};
|
|
797
|
-
b.bp("/workspaces/{workspaceId}/component-types/{componentTypeId}");
|
|
798
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
799
|
-
b.p("componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
800
|
-
let body;
|
|
801
|
-
body = JSON.stringify(take(input, {
|
|
802
|
-
componentTypeName: [],
|
|
803
|
-
compositeComponentTypes: (_) => _json(_),
|
|
804
|
-
description: [],
|
|
805
|
-
extendsFrom: (_) => _json(_),
|
|
806
|
-
functions: (_) => _json(_),
|
|
807
|
-
isSingleton: [],
|
|
808
|
-
propertyDefinitions: (_) => se_PropertyDefinitionsRequest(_, context),
|
|
809
|
-
propertyGroups: (_) => _json(_),
|
|
810
|
-
}));
|
|
811
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
812
|
-
if (context.disableHostPrefix !== true) {
|
|
813
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
814
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
815
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
b.hn(resolvedHostname);
|
|
819
|
-
b.m("PUT").h(headers).b(body);
|
|
820
|
-
return b.build();
|
|
821
|
-
};
|
|
822
|
-
export const se_UpdateEntityCommand = async (input, context) => {
|
|
823
|
-
const b = rb(input, context);
|
|
824
|
-
const headers = {
|
|
825
|
-
"content-type": "application/json",
|
|
826
|
-
};
|
|
827
|
-
b.bp("/workspaces/{workspaceId}/entities/{entityId}");
|
|
828
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
829
|
-
b.p("entityId", () => input.entityId, "{entityId}", false);
|
|
830
|
-
let body;
|
|
831
|
-
body = JSON.stringify(take(input, {
|
|
832
|
-
componentUpdates: (_) => se_ComponentUpdatesMapRequest(_, context),
|
|
833
|
-
compositeComponentUpdates: (_) => se_CompositeComponentUpdatesMapRequest(_, context),
|
|
834
|
-
description: [],
|
|
835
|
-
entityName: [],
|
|
836
|
-
parentEntityUpdate: (_) => _json(_),
|
|
837
|
-
}));
|
|
838
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
839
|
-
if (context.disableHostPrefix !== true) {
|
|
840
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
841
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
842
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
843
|
-
}
|
|
844
|
-
}
|
|
845
|
-
b.hn(resolvedHostname);
|
|
846
|
-
b.m("PUT").h(headers).b(body);
|
|
847
|
-
return b.build();
|
|
848
|
-
};
|
|
849
|
-
export const se_UpdatePricingPlanCommand = async (input, context) => {
|
|
850
|
-
const b = rb(input, context);
|
|
851
|
-
const headers = {
|
|
852
|
-
"content-type": "application/json",
|
|
853
|
-
};
|
|
854
|
-
b.bp("/pricingplan");
|
|
855
|
-
let body;
|
|
856
|
-
body = JSON.stringify(take(input, {
|
|
857
|
-
bundleNames: (_) => _json(_),
|
|
858
|
-
pricingMode: [],
|
|
859
|
-
}));
|
|
860
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
861
|
-
if (context.disableHostPrefix !== true) {
|
|
862
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
863
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
864
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
b.hn(resolvedHostname);
|
|
868
|
-
b.m("POST").h(headers).b(body);
|
|
869
|
-
return b.build();
|
|
870
|
-
};
|
|
871
|
-
export const se_UpdateSceneCommand = async (input, context) => {
|
|
872
|
-
const b = rb(input, context);
|
|
873
|
-
const headers = {
|
|
874
|
-
"content-type": "application/json",
|
|
875
|
-
};
|
|
876
|
-
b.bp("/workspaces/{workspaceId}/scenes/{sceneId}");
|
|
877
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
878
|
-
b.p("sceneId", () => input.sceneId, "{sceneId}", false);
|
|
879
|
-
let body;
|
|
880
|
-
body = JSON.stringify(take(input, {
|
|
881
|
-
capabilities: (_) => _json(_),
|
|
882
|
-
contentLocation: [],
|
|
883
|
-
description: [],
|
|
884
|
-
sceneMetadata: (_) => _json(_),
|
|
885
|
-
}));
|
|
886
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
887
|
-
if (context.disableHostPrefix !== true) {
|
|
888
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
889
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
890
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
b.hn(resolvedHostname);
|
|
894
|
-
b.m("PUT").h(headers).b(body);
|
|
895
|
-
return b.build();
|
|
896
|
-
};
|
|
897
|
-
export const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
898
|
-
const b = rb(input, context);
|
|
899
|
-
const headers = {
|
|
900
|
-
"content-type": "application/json",
|
|
901
|
-
};
|
|
902
|
-
b.bp("/workspaces/{workspaceId}");
|
|
903
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
904
|
-
let body;
|
|
905
|
-
body = JSON.stringify(take(input, {
|
|
906
|
-
description: [],
|
|
907
|
-
role: [],
|
|
908
|
-
s3Location: [],
|
|
909
|
-
}));
|
|
910
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
911
|
-
if (context.disableHostPrefix !== true) {
|
|
912
|
-
resolvedHostname = "api." + resolvedHostname;
|
|
913
|
-
if (!__isValidHostname(resolvedHostname)) {
|
|
914
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
b.hn(resolvedHostname);
|
|
918
|
-
b.m("PUT").h(headers).b(body);
|
|
919
|
-
return b.build();
|
|
920
|
-
};
|
|
921
|
-
export const de_BatchPutPropertyValuesCommand = async (output, context) => {
|
|
922
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
923
|
-
return de_CommandError(output, context);
|
|
924
|
-
}
|
|
925
|
-
const contents = map({
|
|
926
|
-
$metadata: deserializeMetadata(output),
|
|
927
|
-
});
|
|
928
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
929
|
-
const doc = take(data, {
|
|
930
|
-
errorEntries: (_) => de_ErrorEntries(_, context),
|
|
931
|
-
});
|
|
932
|
-
Object.assign(contents, doc);
|
|
933
|
-
return contents;
|
|
934
|
-
};
|
|
935
|
-
export const de_CancelMetadataTransferJobCommand = async (output, context) => {
|
|
936
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
937
|
-
return de_CommandError(output, context);
|
|
938
|
-
}
|
|
939
|
-
const contents = map({
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
});
|
|
942
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
943
|
-
const doc = take(data, {
|
|
944
|
-
arn: __expectString,
|
|
945
|
-
metadataTransferJobId: __expectString,
|
|
946
|
-
progress: _json,
|
|
947
|
-
status: _json,
|
|
948
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
949
|
-
});
|
|
950
|
-
Object.assign(contents, doc);
|
|
951
|
-
return contents;
|
|
952
|
-
};
|
|
953
|
-
export const de_CreateComponentTypeCommand = async (output, context) => {
|
|
954
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
955
|
-
return de_CommandError(output, context);
|
|
956
|
-
}
|
|
957
|
-
const contents = map({
|
|
958
|
-
$metadata: deserializeMetadata(output),
|
|
959
|
-
});
|
|
960
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
961
|
-
const doc = take(data, {
|
|
962
|
-
arn: __expectString,
|
|
963
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
964
|
-
state: __expectString,
|
|
965
|
-
});
|
|
966
|
-
Object.assign(contents, doc);
|
|
967
|
-
return contents;
|
|
968
|
-
};
|
|
969
|
-
export const de_CreateEntityCommand = async (output, context) => {
|
|
970
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
971
|
-
return de_CommandError(output, context);
|
|
972
|
-
}
|
|
973
|
-
const contents = map({
|
|
974
|
-
$metadata: deserializeMetadata(output),
|
|
975
|
-
});
|
|
976
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
977
|
-
const doc = take(data, {
|
|
978
|
-
arn: __expectString,
|
|
979
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
980
|
-
entityId: __expectString,
|
|
981
|
-
state: __expectString,
|
|
982
|
-
});
|
|
983
|
-
Object.assign(contents, doc);
|
|
984
|
-
return contents;
|
|
985
|
-
};
|
|
986
|
-
export const de_CreateMetadataTransferJobCommand = async (output, context) => {
|
|
987
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
988
|
-
return de_CommandError(output, context);
|
|
989
|
-
}
|
|
990
|
-
const contents = map({
|
|
991
|
-
$metadata: deserializeMetadata(output),
|
|
992
|
-
});
|
|
993
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
994
|
-
const doc = take(data, {
|
|
995
|
-
arn: __expectString,
|
|
996
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
997
|
-
metadataTransferJobId: __expectString,
|
|
998
|
-
status: _json,
|
|
999
|
-
});
|
|
1000
|
-
Object.assign(contents, doc);
|
|
1001
|
-
return contents;
|
|
1002
|
-
};
|
|
1003
|
-
export const de_CreateSceneCommand = async (output, context) => {
|
|
1004
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1005
|
-
return de_CommandError(output, context);
|
|
1006
|
-
}
|
|
1007
|
-
const contents = map({
|
|
1008
|
-
$metadata: deserializeMetadata(output),
|
|
1009
|
-
});
|
|
1010
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1011
|
-
const doc = take(data, {
|
|
1012
|
-
arn: __expectString,
|
|
1013
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1014
|
-
});
|
|
1015
|
-
Object.assign(contents, doc);
|
|
1016
|
-
return contents;
|
|
1017
|
-
};
|
|
1018
|
-
export const de_CreateSyncJobCommand = async (output, context) => {
|
|
1019
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1020
|
-
return de_CommandError(output, context);
|
|
1021
|
-
}
|
|
1022
|
-
const contents = map({
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
});
|
|
1025
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1026
|
-
const doc = take(data, {
|
|
1027
|
-
arn: __expectString,
|
|
1028
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1029
|
-
state: __expectString,
|
|
1030
|
-
});
|
|
1031
|
-
Object.assign(contents, doc);
|
|
1032
|
-
return contents;
|
|
1033
|
-
};
|
|
1034
|
-
export const de_CreateWorkspaceCommand = async (output, context) => {
|
|
1035
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1036
|
-
return de_CommandError(output, context);
|
|
1037
|
-
}
|
|
1038
|
-
const contents = map({
|
|
1039
|
-
$metadata: deserializeMetadata(output),
|
|
1040
|
-
});
|
|
1041
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1042
|
-
const doc = take(data, {
|
|
1043
|
-
arn: __expectString,
|
|
1044
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1045
|
-
});
|
|
1046
|
-
Object.assign(contents, doc);
|
|
1047
|
-
return contents;
|
|
1048
|
-
};
|
|
1049
|
-
export const de_DeleteComponentTypeCommand = async (output, context) => {
|
|
1050
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1051
|
-
return de_CommandError(output, context);
|
|
1052
|
-
}
|
|
1053
|
-
const contents = map({
|
|
1054
|
-
$metadata: deserializeMetadata(output),
|
|
1055
|
-
});
|
|
1056
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1057
|
-
const doc = take(data, {
|
|
1058
|
-
state: __expectString,
|
|
1059
|
-
});
|
|
1060
|
-
Object.assign(contents, doc);
|
|
1061
|
-
return contents;
|
|
1062
|
-
};
|
|
1063
|
-
export const de_DeleteEntityCommand = async (output, context) => {
|
|
1064
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1065
|
-
return de_CommandError(output, context);
|
|
1066
|
-
}
|
|
1067
|
-
const contents = map({
|
|
1068
|
-
$metadata: deserializeMetadata(output),
|
|
1069
|
-
});
|
|
1070
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1071
|
-
const doc = take(data, {
|
|
1072
|
-
state: __expectString,
|
|
1073
|
-
});
|
|
1074
|
-
Object.assign(contents, doc);
|
|
1075
|
-
return contents;
|
|
1076
|
-
};
|
|
1077
|
-
export const de_DeleteSceneCommand = async (output, context) => {
|
|
1078
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1079
|
-
return de_CommandError(output, context);
|
|
1080
|
-
}
|
|
1081
|
-
const contents = map({
|
|
1082
|
-
$metadata: deserializeMetadata(output),
|
|
1083
|
-
});
|
|
1084
|
-
await collectBody(output.body, context);
|
|
1085
|
-
return contents;
|
|
1086
|
-
};
|
|
1087
|
-
export const de_DeleteSyncJobCommand = async (output, context) => {
|
|
1088
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
-
return de_CommandError(output, context);
|
|
1090
|
-
}
|
|
1091
|
-
const contents = map({
|
|
1092
|
-
$metadata: deserializeMetadata(output),
|
|
1093
|
-
});
|
|
1094
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1095
|
-
const doc = take(data, {
|
|
1096
|
-
state: __expectString,
|
|
1097
|
-
});
|
|
1098
|
-
Object.assign(contents, doc);
|
|
1099
|
-
return contents;
|
|
1100
|
-
};
|
|
1101
|
-
export const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
1102
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1103
|
-
return de_CommandError(output, context);
|
|
1104
|
-
}
|
|
1105
|
-
const contents = map({
|
|
1106
|
-
$metadata: deserializeMetadata(output),
|
|
1107
|
-
});
|
|
1108
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1109
|
-
const doc = take(data, {
|
|
1110
|
-
message: __expectString,
|
|
1111
|
-
});
|
|
1112
|
-
Object.assign(contents, doc);
|
|
1113
|
-
return contents;
|
|
1114
|
-
};
|
|
1115
|
-
export const de_ExecuteQueryCommand = async (output, context) => {
|
|
1116
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1117
|
-
return de_CommandError(output, context);
|
|
1118
|
-
}
|
|
1119
|
-
const contents = map({
|
|
1120
|
-
$metadata: deserializeMetadata(output),
|
|
1121
|
-
});
|
|
1122
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1123
|
-
const doc = take(data, {
|
|
1124
|
-
columnDescriptions: _json,
|
|
1125
|
-
nextToken: __expectString,
|
|
1126
|
-
rows: (_) => de_Rows(_, context),
|
|
1127
|
-
});
|
|
1128
|
-
Object.assign(contents, doc);
|
|
1129
|
-
return contents;
|
|
1130
|
-
};
|
|
1131
|
-
export const de_GetComponentTypeCommand = async (output, context) => {
|
|
1132
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1133
|
-
return de_CommandError(output, context);
|
|
1134
|
-
}
|
|
1135
|
-
const contents = map({
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
});
|
|
1138
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1139
|
-
const doc = take(data, {
|
|
1140
|
-
arn: __expectString,
|
|
1141
|
-
componentTypeId: __expectString,
|
|
1142
|
-
componentTypeName: __expectString,
|
|
1143
|
-
compositeComponentTypes: _json,
|
|
1144
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1145
|
-
description: __expectString,
|
|
1146
|
-
extendsFrom: _json,
|
|
1147
|
-
functions: _json,
|
|
1148
|
-
isAbstract: __expectBoolean,
|
|
1149
|
-
isSchemaInitialized: __expectBoolean,
|
|
1150
|
-
isSingleton: __expectBoolean,
|
|
1151
|
-
propertyDefinitions: (_) => de_PropertyDefinitionsResponse(_, context),
|
|
1152
|
-
propertyGroups: _json,
|
|
1153
|
-
status: _json,
|
|
1154
|
-
syncSource: __expectString,
|
|
1155
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1156
|
-
workspaceId: __expectString,
|
|
1157
|
-
});
|
|
1158
|
-
Object.assign(contents, doc);
|
|
1159
|
-
return contents;
|
|
1160
|
-
};
|
|
1161
|
-
export const de_GetEntityCommand = async (output, context) => {
|
|
1162
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1163
|
-
return de_CommandError(output, context);
|
|
1164
|
-
}
|
|
1165
|
-
const contents = map({
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
});
|
|
1168
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1169
|
-
const doc = take(data, {
|
|
1170
|
-
areAllComponentsReturned: __expectBoolean,
|
|
1171
|
-
arn: __expectString,
|
|
1172
|
-
components: (_) => de_ComponentsMap(_, context),
|
|
1173
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1174
|
-
description: __expectString,
|
|
1175
|
-
entityId: __expectString,
|
|
1176
|
-
entityName: __expectString,
|
|
1177
|
-
hasChildEntities: __expectBoolean,
|
|
1178
|
-
parentEntityId: __expectString,
|
|
1179
|
-
status: _json,
|
|
1180
|
-
syncSource: __expectString,
|
|
1181
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1182
|
-
workspaceId: __expectString,
|
|
1183
|
-
});
|
|
1184
|
-
Object.assign(contents, doc);
|
|
1185
|
-
return contents;
|
|
1186
|
-
};
|
|
1187
|
-
export const de_GetMetadataTransferJobCommand = async (output, context) => {
|
|
1188
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1189
|
-
return de_CommandError(output, context);
|
|
1190
|
-
}
|
|
1191
|
-
const contents = map({
|
|
1192
|
-
$metadata: deserializeMetadata(output),
|
|
1193
|
-
});
|
|
1194
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1195
|
-
const doc = take(data, {
|
|
1196
|
-
arn: __expectString,
|
|
1197
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1198
|
-
description: __expectString,
|
|
1199
|
-
destination: _json,
|
|
1200
|
-
metadataTransferJobId: __expectString,
|
|
1201
|
-
metadataTransferJobRole: __expectString,
|
|
1202
|
-
progress: _json,
|
|
1203
|
-
reportUrl: __expectString,
|
|
1204
|
-
sources: _json,
|
|
1205
|
-
status: _json,
|
|
1206
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1207
|
-
});
|
|
1208
|
-
Object.assign(contents, doc);
|
|
1209
|
-
return contents;
|
|
1210
|
-
};
|
|
1211
|
-
export const de_GetPricingPlanCommand = async (output, context) => {
|
|
1212
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1213
|
-
return de_CommandError(output, context);
|
|
1214
|
-
}
|
|
1215
|
-
const contents = map({
|
|
1216
|
-
$metadata: deserializeMetadata(output),
|
|
1217
|
-
});
|
|
1218
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1219
|
-
const doc = take(data, {
|
|
1220
|
-
currentPricingPlan: (_) => de_PricingPlan(_, context),
|
|
1221
|
-
pendingPricingPlan: (_) => de_PricingPlan(_, context),
|
|
1222
|
-
});
|
|
1223
|
-
Object.assign(contents, doc);
|
|
1224
|
-
return contents;
|
|
1225
|
-
};
|
|
1226
|
-
export const de_GetPropertyValueCommand = async (output, context) => {
|
|
1227
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1228
|
-
return de_CommandError(output, context);
|
|
1229
|
-
}
|
|
1230
|
-
const contents = map({
|
|
1231
|
-
$metadata: deserializeMetadata(output),
|
|
1232
|
-
});
|
|
1233
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1234
|
-
const doc = take(data, {
|
|
1235
|
-
nextToken: __expectString,
|
|
1236
|
-
propertyValues: (_) => de_PropertyLatestValueMap(_, context),
|
|
1237
|
-
tabularPropertyValues: (_) => de_TabularPropertyValues(_, context),
|
|
1238
|
-
});
|
|
1239
|
-
Object.assign(contents, doc);
|
|
1240
|
-
return contents;
|
|
1241
|
-
};
|
|
1242
|
-
export const de_GetPropertyValueHistoryCommand = async (output, context) => {
|
|
1243
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1244
|
-
return de_CommandError(output, context);
|
|
1245
|
-
}
|
|
1246
|
-
const contents = map({
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
});
|
|
1249
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1250
|
-
const doc = take(data, {
|
|
1251
|
-
nextToken: __expectString,
|
|
1252
|
-
propertyValues: (_) => de_PropertyValueList(_, context),
|
|
1253
|
-
});
|
|
1254
|
-
Object.assign(contents, doc);
|
|
1255
|
-
return contents;
|
|
1256
|
-
};
|
|
1257
|
-
export const de_GetSceneCommand = async (output, context) => {
|
|
1258
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
-
return de_CommandError(output, context);
|
|
1260
|
-
}
|
|
1261
|
-
const contents = map({
|
|
1262
|
-
$metadata: deserializeMetadata(output),
|
|
1263
|
-
});
|
|
1264
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1265
|
-
const doc = take(data, {
|
|
1266
|
-
arn: __expectString,
|
|
1267
|
-
capabilities: _json,
|
|
1268
|
-
contentLocation: __expectString,
|
|
1269
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1270
|
-
description: __expectString,
|
|
1271
|
-
error: _json,
|
|
1272
|
-
generatedSceneMetadata: _json,
|
|
1273
|
-
sceneId: __expectString,
|
|
1274
|
-
sceneMetadata: _json,
|
|
1275
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1276
|
-
workspaceId: __expectString,
|
|
1277
|
-
});
|
|
1278
|
-
Object.assign(contents, doc);
|
|
1279
|
-
return contents;
|
|
1280
|
-
};
|
|
1281
|
-
export const de_GetSyncJobCommand = async (output, context) => {
|
|
1282
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1283
|
-
return de_CommandError(output, context);
|
|
1284
|
-
}
|
|
1285
|
-
const contents = map({
|
|
1286
|
-
$metadata: deserializeMetadata(output),
|
|
1287
|
-
});
|
|
1288
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1289
|
-
const doc = take(data, {
|
|
1290
|
-
arn: __expectString,
|
|
1291
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1292
|
-
status: _json,
|
|
1293
|
-
syncRole: __expectString,
|
|
1294
|
-
syncSource: __expectString,
|
|
1295
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1296
|
-
workspaceId: __expectString,
|
|
1297
|
-
});
|
|
1298
|
-
Object.assign(contents, doc);
|
|
1299
|
-
return contents;
|
|
1300
|
-
};
|
|
1301
|
-
export const de_GetWorkspaceCommand = async (output, context) => {
|
|
1302
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
|
-
return de_CommandError(output, context);
|
|
1304
|
-
}
|
|
1305
|
-
const contents = map({
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
});
|
|
1308
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1309
|
-
const doc = take(data, {
|
|
1310
|
-
arn: __expectString,
|
|
1311
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1312
|
-
description: __expectString,
|
|
1313
|
-
linkedServices: _json,
|
|
1314
|
-
role: __expectString,
|
|
1315
|
-
s3Location: __expectString,
|
|
1316
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1317
|
-
workspaceId: __expectString,
|
|
1318
|
-
});
|
|
1319
|
-
Object.assign(contents, doc);
|
|
1320
|
-
return contents;
|
|
1321
|
-
};
|
|
1322
|
-
export const de_ListComponentsCommand = async (output, context) => {
|
|
1323
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1324
|
-
return de_CommandError(output, context);
|
|
1325
|
-
}
|
|
1326
|
-
const contents = map({
|
|
1327
|
-
$metadata: deserializeMetadata(output),
|
|
1328
|
-
});
|
|
1329
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1330
|
-
const doc = take(data, {
|
|
1331
|
-
componentSummaries: _json,
|
|
1332
|
-
nextToken: __expectString,
|
|
1333
|
-
});
|
|
1334
|
-
Object.assign(contents, doc);
|
|
1335
|
-
return contents;
|
|
1336
|
-
};
|
|
1337
|
-
export const de_ListComponentTypesCommand = async (output, context) => {
|
|
1338
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1339
|
-
return de_CommandError(output, context);
|
|
1340
|
-
}
|
|
1341
|
-
const contents = map({
|
|
1342
|
-
$metadata: deserializeMetadata(output),
|
|
1343
|
-
});
|
|
1344
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1345
|
-
const doc = take(data, {
|
|
1346
|
-
componentTypeSummaries: (_) => de_ComponentTypeSummaries(_, context),
|
|
1347
|
-
maxResults: __expectInt32,
|
|
1348
|
-
nextToken: __expectString,
|
|
1349
|
-
workspaceId: __expectString,
|
|
1350
|
-
});
|
|
1351
|
-
Object.assign(contents, doc);
|
|
1352
|
-
return contents;
|
|
1353
|
-
};
|
|
1354
|
-
export const de_ListEntitiesCommand = async (output, context) => {
|
|
1355
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1356
|
-
return de_CommandError(output, context);
|
|
1357
|
-
}
|
|
1358
|
-
const contents = map({
|
|
1359
|
-
$metadata: deserializeMetadata(output),
|
|
1360
|
-
});
|
|
1361
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1362
|
-
const doc = take(data, {
|
|
1363
|
-
entitySummaries: (_) => de_EntitySummaries(_, context),
|
|
1364
|
-
nextToken: __expectString,
|
|
1365
|
-
});
|
|
1366
|
-
Object.assign(contents, doc);
|
|
1367
|
-
return contents;
|
|
1368
|
-
};
|
|
1369
|
-
export const de_ListMetadataTransferJobsCommand = async (output, context) => {
|
|
1370
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1371
|
-
return de_CommandError(output, context);
|
|
1372
|
-
}
|
|
1373
|
-
const contents = map({
|
|
1374
|
-
$metadata: deserializeMetadata(output),
|
|
1375
|
-
});
|
|
1376
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1377
|
-
const doc = take(data, {
|
|
1378
|
-
metadataTransferJobSummaries: (_) => de_MetadataTransferJobSummaries(_, context),
|
|
1379
|
-
nextToken: __expectString,
|
|
1380
|
-
});
|
|
1381
|
-
Object.assign(contents, doc);
|
|
1382
|
-
return contents;
|
|
1383
|
-
};
|
|
1384
|
-
export const de_ListPropertiesCommand = async (output, context) => {
|
|
1385
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1386
|
-
return de_CommandError(output, context);
|
|
1387
|
-
}
|
|
1388
|
-
const contents = map({
|
|
1389
|
-
$metadata: deserializeMetadata(output),
|
|
1390
|
-
});
|
|
1391
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1392
|
-
const doc = take(data, {
|
|
1393
|
-
nextToken: __expectString,
|
|
1394
|
-
propertySummaries: (_) => de_PropertySummaries(_, context),
|
|
1395
|
-
});
|
|
1396
|
-
Object.assign(contents, doc);
|
|
1397
|
-
return contents;
|
|
1398
|
-
};
|
|
1399
|
-
export const de_ListScenesCommand = async (output, context) => {
|
|
1400
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1401
|
-
return de_CommandError(output, context);
|
|
1402
|
-
}
|
|
1403
|
-
const contents = map({
|
|
1404
|
-
$metadata: deserializeMetadata(output),
|
|
1405
|
-
});
|
|
1406
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1407
|
-
const doc = take(data, {
|
|
1408
|
-
nextToken: __expectString,
|
|
1409
|
-
sceneSummaries: (_) => de_SceneSummaries(_, context),
|
|
1410
|
-
});
|
|
1411
|
-
Object.assign(contents, doc);
|
|
1412
|
-
return contents;
|
|
1413
|
-
};
|
|
1414
|
-
export const de_ListSyncJobsCommand = async (output, context) => {
|
|
1415
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1416
|
-
return de_CommandError(output, context);
|
|
1417
|
-
}
|
|
1418
|
-
const contents = map({
|
|
1419
|
-
$metadata: deserializeMetadata(output),
|
|
1420
|
-
});
|
|
1421
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1422
|
-
const doc = take(data, {
|
|
1423
|
-
nextToken: __expectString,
|
|
1424
|
-
syncJobSummaries: (_) => de_SyncJobSummaries(_, context),
|
|
1425
|
-
});
|
|
1426
|
-
Object.assign(contents, doc);
|
|
1427
|
-
return contents;
|
|
1428
|
-
};
|
|
1429
|
-
export const de_ListSyncResourcesCommand = async (output, context) => {
|
|
1430
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1431
|
-
return de_CommandError(output, context);
|
|
1432
|
-
}
|
|
1433
|
-
const contents = map({
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
});
|
|
1436
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1437
|
-
const doc = take(data, {
|
|
1438
|
-
nextToken: __expectString,
|
|
1439
|
-
syncResources: (_) => de_SyncResourceSummaries(_, context),
|
|
1440
|
-
});
|
|
1441
|
-
Object.assign(contents, doc);
|
|
1442
|
-
return contents;
|
|
1443
|
-
};
|
|
1444
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
1445
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1446
|
-
return de_CommandError(output, context);
|
|
1447
|
-
}
|
|
1448
|
-
const contents = map({
|
|
1449
|
-
$metadata: deserializeMetadata(output),
|
|
1450
|
-
});
|
|
1451
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1452
|
-
const doc = take(data, {
|
|
1453
|
-
nextToken: __expectString,
|
|
1454
|
-
tags: _json,
|
|
1455
|
-
});
|
|
1456
|
-
Object.assign(contents, doc);
|
|
1457
|
-
return contents;
|
|
1458
|
-
};
|
|
1459
|
-
export const de_ListWorkspacesCommand = async (output, context) => {
|
|
1460
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1461
|
-
return de_CommandError(output, context);
|
|
1462
|
-
}
|
|
1463
|
-
const contents = map({
|
|
1464
|
-
$metadata: deserializeMetadata(output),
|
|
1465
|
-
});
|
|
1466
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1467
|
-
const doc = take(data, {
|
|
1468
|
-
nextToken: __expectString,
|
|
1469
|
-
workspaceSummaries: (_) => de_WorkspaceSummaries(_, context),
|
|
1470
|
-
});
|
|
1471
|
-
Object.assign(contents, doc);
|
|
1472
|
-
return contents;
|
|
1473
|
-
};
|
|
1474
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1475
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1476
|
-
return de_CommandError(output, context);
|
|
1477
|
-
}
|
|
1478
|
-
const contents = map({
|
|
1479
|
-
$metadata: deserializeMetadata(output),
|
|
1480
|
-
});
|
|
1481
|
-
await collectBody(output.body, context);
|
|
1482
|
-
return contents;
|
|
1483
|
-
};
|
|
1484
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1485
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1486
|
-
return de_CommandError(output, context);
|
|
1487
|
-
}
|
|
1488
|
-
const contents = map({
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
});
|
|
1491
|
-
await collectBody(output.body, context);
|
|
1492
|
-
return contents;
|
|
1493
|
-
};
|
|
1494
|
-
export const de_UpdateComponentTypeCommand = async (output, context) => {
|
|
1495
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1496
|
-
return de_CommandError(output, context);
|
|
1497
|
-
}
|
|
1498
|
-
const contents = map({
|
|
1499
|
-
$metadata: deserializeMetadata(output),
|
|
1500
|
-
});
|
|
1501
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1502
|
-
const doc = take(data, {
|
|
1503
|
-
arn: __expectString,
|
|
1504
|
-
componentTypeId: __expectString,
|
|
1505
|
-
state: __expectString,
|
|
1506
|
-
workspaceId: __expectString,
|
|
1507
|
-
});
|
|
1508
|
-
Object.assign(contents, doc);
|
|
1509
|
-
return contents;
|
|
1510
|
-
};
|
|
1511
|
-
export const de_UpdateEntityCommand = async (output, context) => {
|
|
1512
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1513
|
-
return de_CommandError(output, context);
|
|
1514
|
-
}
|
|
1515
|
-
const contents = map({
|
|
1516
|
-
$metadata: deserializeMetadata(output),
|
|
1517
|
-
});
|
|
1518
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1519
|
-
const doc = take(data, {
|
|
1520
|
-
state: __expectString,
|
|
1521
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1522
|
-
});
|
|
1523
|
-
Object.assign(contents, doc);
|
|
1524
|
-
return contents;
|
|
1525
|
-
};
|
|
1526
|
-
export const de_UpdatePricingPlanCommand = async (output, context) => {
|
|
1527
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1528
|
-
return de_CommandError(output, context);
|
|
1529
|
-
}
|
|
1530
|
-
const contents = map({
|
|
1531
|
-
$metadata: deserializeMetadata(output),
|
|
1532
|
-
});
|
|
1533
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1534
|
-
const doc = take(data, {
|
|
1535
|
-
currentPricingPlan: (_) => de_PricingPlan(_, context),
|
|
1536
|
-
pendingPricingPlan: (_) => de_PricingPlan(_, context),
|
|
1537
|
-
});
|
|
1538
|
-
Object.assign(contents, doc);
|
|
1539
|
-
return contents;
|
|
1540
|
-
};
|
|
1541
|
-
export const de_UpdateSceneCommand = async (output, context) => {
|
|
1542
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1543
|
-
return de_CommandError(output, context);
|
|
1544
|
-
}
|
|
1545
|
-
const contents = map({
|
|
1546
|
-
$metadata: deserializeMetadata(output),
|
|
1547
|
-
});
|
|
1548
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1549
|
-
const doc = take(data, {
|
|
1550
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1551
|
-
});
|
|
1552
|
-
Object.assign(contents, doc);
|
|
1553
|
-
return contents;
|
|
1554
|
-
};
|
|
1555
|
-
export const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
1556
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1557
|
-
return de_CommandError(output, context);
|
|
1558
|
-
}
|
|
1559
|
-
const contents = map({
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
});
|
|
1562
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1563
|
-
const doc = take(data, {
|
|
1564
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1565
|
-
});
|
|
1566
|
-
Object.assign(contents, doc);
|
|
1567
|
-
return contents;
|
|
1568
|
-
};
|
|
1569
|
-
const de_CommandError = async (output, context) => {
|
|
1570
|
-
const parsedOutput = {
|
|
1571
|
-
...output,
|
|
1572
|
-
body: await parseErrorBody(output.body, context),
|
|
1573
|
-
};
|
|
1574
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1575
|
-
switch (errorCode) {
|
|
1576
|
-
case "InternalServerException":
|
|
1577
|
-
case "com.amazonaws.iottwinmaker#InternalServerException":
|
|
1578
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1579
|
-
case "ResourceNotFoundException":
|
|
1580
|
-
case "com.amazonaws.iottwinmaker#ResourceNotFoundException":
|
|
1581
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1582
|
-
case "ThrottlingException":
|
|
1583
|
-
case "com.amazonaws.iottwinmaker#ThrottlingException":
|
|
1584
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1585
|
-
case "ValidationException":
|
|
1586
|
-
case "com.amazonaws.iottwinmaker#ValidationException":
|
|
1587
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1588
|
-
case "AccessDeniedException":
|
|
1589
|
-
case "com.amazonaws.iottwinmaker#AccessDeniedException":
|
|
1590
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1591
|
-
case "ConflictException":
|
|
1592
|
-
case "com.amazonaws.iottwinmaker#ConflictException":
|
|
1593
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "ServiceQuotaExceededException":
|
|
1595
|
-
case "com.amazonaws.iottwinmaker#ServiceQuotaExceededException":
|
|
1596
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "QueryTimeoutException":
|
|
1598
|
-
case "com.amazonaws.iottwinmaker#QueryTimeoutException":
|
|
1599
|
-
throw await de_QueryTimeoutExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "ConnectorFailureException":
|
|
1601
|
-
case "com.amazonaws.iottwinmaker#ConnectorFailureException":
|
|
1602
|
-
throw await de_ConnectorFailureExceptionRes(parsedOutput, context);
|
|
1603
|
-
case "ConnectorTimeoutException":
|
|
1604
|
-
case "com.amazonaws.iottwinmaker#ConnectorTimeoutException":
|
|
1605
|
-
throw await de_ConnectorTimeoutExceptionRes(parsedOutput, context);
|
|
1606
|
-
case "TooManyTagsException":
|
|
1607
|
-
case "com.amazonaws.iottwinmaker#TooManyTagsException":
|
|
1608
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
1609
|
-
default:
|
|
1610
|
-
const parsedBody = parsedOutput.body;
|
|
1611
|
-
return throwDefaultError({
|
|
1612
|
-
output,
|
|
1613
|
-
parsedBody,
|
|
1614
|
-
errorCode,
|
|
1615
|
-
});
|
|
1616
|
-
}
|
|
1617
|
-
};
|
|
1618
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1619
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1620
|
-
const contents = map({});
|
|
1621
|
-
const data = parsedOutput.body;
|
|
1622
|
-
const doc = take(data, {
|
|
1623
|
-
message: __expectString,
|
|
1624
|
-
});
|
|
1625
|
-
Object.assign(contents, doc);
|
|
1626
|
-
const exception = new AccessDeniedException({
|
|
1627
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1628
|
-
...contents,
|
|
1629
|
-
});
|
|
1630
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1631
|
-
};
|
|
1632
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1633
|
-
const contents = map({});
|
|
1634
|
-
const data = parsedOutput.body;
|
|
1635
|
-
const doc = take(data, {
|
|
1636
|
-
message: __expectString,
|
|
1637
|
-
});
|
|
1638
|
-
Object.assign(contents, doc);
|
|
1639
|
-
const exception = new ConflictException({
|
|
1640
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1641
|
-
...contents,
|
|
1642
|
-
});
|
|
1643
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1644
|
-
};
|
|
1645
|
-
const de_ConnectorFailureExceptionRes = async (parsedOutput, context) => {
|
|
1646
|
-
const contents = map({});
|
|
1647
|
-
const data = parsedOutput.body;
|
|
1648
|
-
const doc = take(data, {
|
|
1649
|
-
message: __expectString,
|
|
1650
|
-
});
|
|
1651
|
-
Object.assign(contents, doc);
|
|
1652
|
-
const exception = new ConnectorFailureException({
|
|
1653
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1654
|
-
...contents,
|
|
1655
|
-
});
|
|
1656
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1657
|
-
};
|
|
1658
|
-
const de_ConnectorTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
1659
|
-
const contents = map({});
|
|
1660
|
-
const data = parsedOutput.body;
|
|
1661
|
-
const doc = take(data, {
|
|
1662
|
-
message: __expectString,
|
|
1663
|
-
});
|
|
1664
|
-
Object.assign(contents, doc);
|
|
1665
|
-
const exception = new ConnectorTimeoutException({
|
|
1666
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1667
|
-
...contents,
|
|
1668
|
-
});
|
|
1669
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1670
|
-
};
|
|
1671
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1672
|
-
const contents = map({});
|
|
1673
|
-
const data = parsedOutput.body;
|
|
1674
|
-
const doc = take(data, {
|
|
1675
|
-
message: __expectString,
|
|
1676
|
-
});
|
|
1677
|
-
Object.assign(contents, doc);
|
|
1678
|
-
const exception = new InternalServerException({
|
|
1679
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1680
|
-
...contents,
|
|
1681
|
-
});
|
|
1682
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1683
|
-
};
|
|
1684
|
-
const de_QueryTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
1685
|
-
const contents = map({});
|
|
1686
|
-
const data = parsedOutput.body;
|
|
1687
|
-
const doc = take(data, {
|
|
1688
|
-
message: __expectString,
|
|
1689
|
-
});
|
|
1690
|
-
Object.assign(contents, doc);
|
|
1691
|
-
const exception = new QueryTimeoutException({
|
|
1692
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1693
|
-
...contents,
|
|
1694
|
-
});
|
|
1695
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1696
|
-
};
|
|
1697
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1698
|
-
const contents = map({});
|
|
1699
|
-
const data = parsedOutput.body;
|
|
1700
|
-
const doc = take(data, {
|
|
1701
|
-
message: __expectString,
|
|
1702
|
-
});
|
|
1703
|
-
Object.assign(contents, doc);
|
|
1704
|
-
const exception = new ResourceNotFoundException({
|
|
1705
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1706
|
-
...contents,
|
|
1707
|
-
});
|
|
1708
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1709
|
-
};
|
|
1710
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1711
|
-
const contents = map({});
|
|
1712
|
-
const data = parsedOutput.body;
|
|
1713
|
-
const doc = take(data, {
|
|
1714
|
-
message: __expectString,
|
|
1715
|
-
});
|
|
1716
|
-
Object.assign(contents, doc);
|
|
1717
|
-
const exception = new ServiceQuotaExceededException({
|
|
1718
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1719
|
-
...contents,
|
|
1720
|
-
});
|
|
1721
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1722
|
-
};
|
|
1723
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1724
|
-
const contents = map({});
|
|
1725
|
-
const data = parsedOutput.body;
|
|
1726
|
-
const doc = take(data, {
|
|
1727
|
-
message: __expectString,
|
|
1728
|
-
});
|
|
1729
|
-
Object.assign(contents, doc);
|
|
1730
|
-
const exception = new ThrottlingException({
|
|
1731
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1732
|
-
...contents,
|
|
1733
|
-
});
|
|
1734
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1735
|
-
};
|
|
1736
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
1737
|
-
const contents = map({});
|
|
1738
|
-
const data = parsedOutput.body;
|
|
1739
|
-
const doc = take(data, {
|
|
1740
|
-
message: __expectString,
|
|
1741
|
-
});
|
|
1742
|
-
Object.assign(contents, doc);
|
|
1743
|
-
const exception = new TooManyTagsException({
|
|
1744
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1745
|
-
...contents,
|
|
1746
|
-
});
|
|
1747
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1748
|
-
};
|
|
1749
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1750
|
-
const contents = map({});
|
|
1751
|
-
const data = parsedOutput.body;
|
|
1752
|
-
const doc = take(data, {
|
|
1753
|
-
message: __expectString,
|
|
1754
|
-
});
|
|
1755
|
-
Object.assign(contents, doc);
|
|
1756
|
-
const exception = new ValidationException({
|
|
1757
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1758
|
-
...contents,
|
|
1759
|
-
});
|
|
1760
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
1761
|
-
};
|
|
1762
|
-
const se_ComponentRequest = (input, context) => {
|
|
1763
|
-
return take(input, {
|
|
1764
|
-
componentTypeId: [],
|
|
1765
|
-
description: [],
|
|
1766
|
-
properties: (_) => se_PropertyRequests(_, context),
|
|
1767
|
-
propertyGroups: _json,
|
|
1768
|
-
});
|
|
1769
|
-
};
|
|
1770
|
-
const se_ComponentsMapRequest = (input, context) => {
|
|
1771
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1772
|
-
if (value === null) {
|
|
1773
|
-
return acc;
|
|
1774
|
-
}
|
|
1775
|
-
acc[key] = se_ComponentRequest(value, context);
|
|
1776
|
-
return acc;
|
|
1777
|
-
}, {});
|
|
1778
|
-
};
|
|
1779
|
-
const se_ComponentUpdateRequest = (input, context) => {
|
|
1780
|
-
return take(input, {
|
|
1781
|
-
componentTypeId: [],
|
|
1782
|
-
description: [],
|
|
1783
|
-
propertyGroupUpdates: _json,
|
|
1784
|
-
propertyUpdates: (_) => se_PropertyRequests(_, context),
|
|
1785
|
-
updateType: [],
|
|
1786
|
-
});
|
|
1787
|
-
};
|
|
1788
|
-
const se_ComponentUpdatesMapRequest = (input, context) => {
|
|
1789
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1790
|
-
if (value === null) {
|
|
1791
|
-
return acc;
|
|
1792
|
-
}
|
|
1793
|
-
acc[key] = se_ComponentUpdateRequest(value, context);
|
|
1794
|
-
return acc;
|
|
1795
|
-
}, {});
|
|
1796
|
-
};
|
|
1797
|
-
const se_CompositeComponentRequest = (input, context) => {
|
|
1798
|
-
return take(input, {
|
|
1799
|
-
description: [],
|
|
1800
|
-
properties: (_) => se_PropertyRequests(_, context),
|
|
1801
|
-
propertyGroups: _json,
|
|
1802
|
-
});
|
|
1803
|
-
};
|
|
1804
|
-
const se_CompositeComponentsMapRequest = (input, context) => {
|
|
1805
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1806
|
-
if (value === null) {
|
|
1807
|
-
return acc;
|
|
1808
|
-
}
|
|
1809
|
-
acc[key] = se_CompositeComponentRequest(value, context);
|
|
1810
|
-
return acc;
|
|
1811
|
-
}, {});
|
|
1812
|
-
};
|
|
1813
|
-
const se_CompositeComponentUpdateRequest = (input, context) => {
|
|
1814
|
-
return take(input, {
|
|
1815
|
-
description: [],
|
|
1816
|
-
propertyGroupUpdates: _json,
|
|
1817
|
-
propertyUpdates: (_) => se_PropertyRequests(_, context),
|
|
1818
|
-
updateType: [],
|
|
1819
|
-
});
|
|
1820
|
-
};
|
|
1821
|
-
const se_CompositeComponentUpdatesMapRequest = (input, context) => {
|
|
1822
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1823
|
-
if (value === null) {
|
|
1824
|
-
return acc;
|
|
1825
|
-
}
|
|
1826
|
-
acc[key] = se_CompositeComponentUpdateRequest(value, context);
|
|
1827
|
-
return acc;
|
|
1828
|
-
}, {});
|
|
1829
|
-
};
|
|
1830
|
-
const se_DataType = (input, context) => {
|
|
1831
|
-
return take(input, {
|
|
1832
|
-
allowedValues: (_) => se_DataValueList(_, context),
|
|
1833
|
-
nestedType: (_) => se_DataType(_, context),
|
|
1834
|
-
relationship: _json,
|
|
1835
|
-
type: [],
|
|
1836
|
-
unitOfMeasure: [],
|
|
1837
|
-
});
|
|
1838
|
-
};
|
|
1839
|
-
const se_DataValue = (input, context) => {
|
|
1840
|
-
return take(input, {
|
|
1841
|
-
booleanValue: [],
|
|
1842
|
-
doubleValue: __serializeFloat,
|
|
1843
|
-
expression: [],
|
|
1844
|
-
integerValue: [],
|
|
1845
|
-
listValue: (_) => se_DataValueList(_, context),
|
|
1846
|
-
longValue: [],
|
|
1847
|
-
mapValue: (_) => se_DataValueMap(_, context),
|
|
1848
|
-
relationshipValue: _json,
|
|
1849
|
-
stringValue: [],
|
|
1850
|
-
});
|
|
1851
|
-
};
|
|
1852
|
-
const se_DataValueList = (input, context) => {
|
|
1853
|
-
return input
|
|
1854
|
-
.filter((e) => e != null)
|
|
1855
|
-
.map((entry) => {
|
|
1856
|
-
return se_DataValue(entry, context);
|
|
1857
|
-
});
|
|
1858
|
-
};
|
|
1859
|
-
const se_DataValueMap = (input, context) => {
|
|
1860
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1861
|
-
if (value === null) {
|
|
1862
|
-
return acc;
|
|
1863
|
-
}
|
|
1864
|
-
acc[key] = se_DataValue(value, context);
|
|
1865
|
-
return acc;
|
|
1866
|
-
}, {});
|
|
1867
|
-
};
|
|
1868
|
-
const se_Entries = (input, context) => {
|
|
1869
|
-
return input
|
|
1870
|
-
.filter((e) => e != null)
|
|
1871
|
-
.map((entry) => {
|
|
1872
|
-
return se_PropertyValueEntry(entry, context);
|
|
1873
|
-
});
|
|
1874
|
-
};
|
|
1875
|
-
const se_PropertyDefinitionRequest = (input, context) => {
|
|
1876
|
-
return take(input, {
|
|
1877
|
-
configuration: _json,
|
|
1878
|
-
dataType: (_) => se_DataType(_, context),
|
|
1879
|
-
defaultValue: (_) => se_DataValue(_, context),
|
|
1880
|
-
displayName: [],
|
|
1881
|
-
isExternalId: [],
|
|
1882
|
-
isRequiredInEntity: [],
|
|
1883
|
-
isStoredExternally: [],
|
|
1884
|
-
isTimeSeries: [],
|
|
1885
|
-
});
|
|
1886
|
-
};
|
|
1887
|
-
const se_PropertyDefinitionsRequest = (input, context) => {
|
|
1888
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1889
|
-
if (value === null) {
|
|
1890
|
-
return acc;
|
|
1891
|
-
}
|
|
1892
|
-
acc[key] = se_PropertyDefinitionRequest(value, context);
|
|
1893
|
-
return acc;
|
|
1894
|
-
}, {});
|
|
1895
|
-
};
|
|
1896
|
-
const se_PropertyFilter = (input, context) => {
|
|
1897
|
-
return take(input, {
|
|
1898
|
-
operator: [],
|
|
1899
|
-
propertyName: [],
|
|
1900
|
-
value: (_) => se_DataValue(_, context),
|
|
1901
|
-
});
|
|
1902
|
-
};
|
|
1903
|
-
const se_PropertyFilters = (input, context) => {
|
|
1904
|
-
return input
|
|
1905
|
-
.filter((e) => e != null)
|
|
1906
|
-
.map((entry) => {
|
|
1907
|
-
return se_PropertyFilter(entry, context);
|
|
1908
|
-
});
|
|
1909
|
-
};
|
|
1910
|
-
const se_PropertyRequest = (input, context) => {
|
|
1911
|
-
return take(input, {
|
|
1912
|
-
definition: (_) => se_PropertyDefinitionRequest(_, context),
|
|
1913
|
-
updateType: [],
|
|
1914
|
-
value: (_) => se_DataValue(_, context),
|
|
1915
|
-
});
|
|
1916
|
-
};
|
|
1917
|
-
const se_PropertyRequests = (input, context) => {
|
|
1918
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1919
|
-
if (value === null) {
|
|
1920
|
-
return acc;
|
|
1921
|
-
}
|
|
1922
|
-
acc[key] = se_PropertyRequest(value, context);
|
|
1923
|
-
return acc;
|
|
1924
|
-
}, {});
|
|
1925
|
-
};
|
|
1926
|
-
const se_PropertyValue = (input, context) => {
|
|
1927
|
-
return take(input, {
|
|
1928
|
-
time: [],
|
|
1929
|
-
timestamp: (_) => _.getTime() / 1_000,
|
|
1930
|
-
value: (_) => se_DataValue(_, context),
|
|
1931
|
-
});
|
|
1932
|
-
};
|
|
1933
|
-
const se_PropertyValueEntry = (input, context) => {
|
|
1934
|
-
return take(input, {
|
|
1935
|
-
entityPropertyReference: _json,
|
|
1936
|
-
propertyValues: (_) => se_PropertyValues(_, context),
|
|
1937
|
-
});
|
|
1938
|
-
};
|
|
1939
|
-
const se_PropertyValues = (input, context) => {
|
|
1940
|
-
return input
|
|
1941
|
-
.filter((e) => e != null)
|
|
1942
|
-
.map((entry) => {
|
|
1943
|
-
return se_PropertyValue(entry, context);
|
|
1944
|
-
});
|
|
1945
|
-
};
|
|
1946
|
-
const se_TabularConditions = (input, context) => {
|
|
1947
|
-
return take(input, {
|
|
1948
|
-
orderBy: _json,
|
|
1949
|
-
propertyFilters: (_) => se_PropertyFilters(_, context),
|
|
1950
|
-
});
|
|
1951
|
-
};
|
|
1952
|
-
const de_BatchPutPropertyError = (output, context) => {
|
|
1953
|
-
return take(output, {
|
|
1954
|
-
entry: (_) => de_PropertyValueEntry(_, context),
|
|
1955
|
-
errorCode: __expectString,
|
|
1956
|
-
errorMessage: __expectString,
|
|
1957
|
-
});
|
|
1958
|
-
};
|
|
1959
|
-
const de_BatchPutPropertyErrorEntry = (output, context) => {
|
|
1960
|
-
return take(output, {
|
|
1961
|
-
errors: (_) => de_Errors(_, context),
|
|
1962
|
-
});
|
|
1963
|
-
};
|
|
1964
|
-
const de_ComponentResponse = (output, context) => {
|
|
1965
|
-
return take(output, {
|
|
1966
|
-
areAllCompositeComponentsReturned: __expectBoolean,
|
|
1967
|
-
areAllPropertiesReturned: __expectBoolean,
|
|
1968
|
-
componentName: __expectString,
|
|
1969
|
-
componentTypeId: __expectString,
|
|
1970
|
-
compositeComponents: _json,
|
|
1971
|
-
definedIn: __expectString,
|
|
1972
|
-
description: __expectString,
|
|
1973
|
-
properties: (_) => de_PropertyResponses(_, context),
|
|
1974
|
-
propertyGroups: _json,
|
|
1975
|
-
status: _json,
|
|
1976
|
-
syncSource: __expectString,
|
|
1977
|
-
});
|
|
1978
|
-
};
|
|
1979
|
-
const de_ComponentsMap = (output, context) => {
|
|
1980
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1981
|
-
if (value === null) {
|
|
1982
|
-
return acc;
|
|
1983
|
-
}
|
|
1984
|
-
acc[key] = de_ComponentResponse(value, context);
|
|
1985
|
-
return acc;
|
|
1986
|
-
}, {});
|
|
1987
|
-
};
|
|
1988
|
-
const de_ComponentTypeSummaries = (output, context) => {
|
|
1989
|
-
const retVal = (output || [])
|
|
1990
|
-
.filter((e) => e != null)
|
|
1991
|
-
.map((entry) => {
|
|
1992
|
-
return de_ComponentTypeSummary(entry, context);
|
|
1993
|
-
});
|
|
1994
|
-
return retVal;
|
|
1995
|
-
};
|
|
1996
|
-
const de_ComponentTypeSummary = (output, context) => {
|
|
1997
|
-
return take(output, {
|
|
1998
|
-
arn: __expectString,
|
|
1999
|
-
componentTypeId: __expectString,
|
|
2000
|
-
componentTypeName: __expectString,
|
|
2001
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2002
|
-
description: __expectString,
|
|
2003
|
-
status: _json,
|
|
2004
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2005
|
-
});
|
|
2006
|
-
};
|
|
2007
|
-
const de_DataType = (output, context) => {
|
|
2008
|
-
return take(output, {
|
|
2009
|
-
allowedValues: (_) => de_DataValueList(_, context),
|
|
2010
|
-
nestedType: (_) => de_DataType(_, context),
|
|
2011
|
-
relationship: _json,
|
|
2012
|
-
type: __expectString,
|
|
2013
|
-
unitOfMeasure: __expectString,
|
|
2014
|
-
});
|
|
2015
|
-
};
|
|
2016
|
-
const de_DataValue = (output, context) => {
|
|
2017
|
-
return take(output, {
|
|
2018
|
-
booleanValue: __expectBoolean,
|
|
2019
|
-
doubleValue: __limitedParseDouble,
|
|
2020
|
-
expression: __expectString,
|
|
2021
|
-
integerValue: __expectInt32,
|
|
2022
|
-
listValue: (_) => de_DataValueList(_, context),
|
|
2023
|
-
longValue: __expectLong,
|
|
2024
|
-
mapValue: (_) => de_DataValueMap(_, context),
|
|
2025
|
-
relationshipValue: _json,
|
|
2026
|
-
stringValue: __expectString,
|
|
2027
|
-
});
|
|
2028
|
-
};
|
|
2029
|
-
const de_DataValueList = (output, context) => {
|
|
2030
|
-
const retVal = (output || [])
|
|
2031
|
-
.filter((e) => e != null)
|
|
2032
|
-
.map((entry) => {
|
|
2033
|
-
return de_DataValue(entry, context);
|
|
2034
|
-
});
|
|
2035
|
-
return retVal;
|
|
2036
|
-
};
|
|
2037
|
-
const de_DataValueMap = (output, context) => {
|
|
2038
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2039
|
-
if (value === null) {
|
|
2040
|
-
return acc;
|
|
2041
|
-
}
|
|
2042
|
-
acc[key] = de_DataValue(value, context);
|
|
2043
|
-
return acc;
|
|
2044
|
-
}, {});
|
|
2045
|
-
};
|
|
2046
|
-
const de_EntitySummaries = (output, context) => {
|
|
2047
|
-
const retVal = (output || [])
|
|
2048
|
-
.filter((e) => e != null)
|
|
2049
|
-
.map((entry) => {
|
|
2050
|
-
return de_EntitySummary(entry, context);
|
|
2051
|
-
});
|
|
2052
|
-
return retVal;
|
|
2053
|
-
};
|
|
2054
|
-
const de_EntitySummary = (output, context) => {
|
|
2055
|
-
return take(output, {
|
|
2056
|
-
arn: __expectString,
|
|
2057
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2058
|
-
description: __expectString,
|
|
2059
|
-
entityId: __expectString,
|
|
2060
|
-
entityName: __expectString,
|
|
2061
|
-
hasChildEntities: __expectBoolean,
|
|
2062
|
-
parentEntityId: __expectString,
|
|
2063
|
-
status: _json,
|
|
2064
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2065
|
-
});
|
|
2066
|
-
};
|
|
2067
|
-
const de_ErrorEntries = (output, context) => {
|
|
2068
|
-
const retVal = (output || [])
|
|
2069
|
-
.filter((e) => e != null)
|
|
2070
|
-
.map((entry) => {
|
|
2071
|
-
return de_BatchPutPropertyErrorEntry(entry, context);
|
|
2072
|
-
});
|
|
2073
|
-
return retVal;
|
|
2074
|
-
};
|
|
2075
|
-
const de_Errors = (output, context) => {
|
|
2076
|
-
const retVal = (output || [])
|
|
2077
|
-
.filter((e) => e != null)
|
|
2078
|
-
.map((entry) => {
|
|
2079
|
-
return de_BatchPutPropertyError(entry, context);
|
|
2080
|
-
});
|
|
2081
|
-
return retVal;
|
|
2082
|
-
};
|
|
2083
|
-
const de_MetadataTransferJobSummaries = (output, context) => {
|
|
2084
|
-
const retVal = (output || [])
|
|
2085
|
-
.filter((e) => e != null)
|
|
2086
|
-
.map((entry) => {
|
|
2087
|
-
return de_MetadataTransferJobSummary(entry, context);
|
|
2088
|
-
});
|
|
2089
|
-
return retVal;
|
|
2090
|
-
};
|
|
2091
|
-
const de_MetadataTransferJobSummary = (output, context) => {
|
|
2092
|
-
return take(output, {
|
|
2093
|
-
arn: __expectString,
|
|
2094
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2095
|
-
metadataTransferJobId: __expectString,
|
|
2096
|
-
progress: _json,
|
|
2097
|
-
status: _json,
|
|
2098
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2099
|
-
});
|
|
2100
|
-
};
|
|
2101
|
-
const de_PricingPlan = (output, context) => {
|
|
2102
|
-
return take(output, {
|
|
2103
|
-
billableEntityCount: __expectLong,
|
|
2104
|
-
bundleInformation: _json,
|
|
2105
|
-
effectiveDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2106
|
-
pricingMode: __expectString,
|
|
2107
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2108
|
-
updateReason: __expectString,
|
|
2109
|
-
});
|
|
2110
|
-
};
|
|
2111
|
-
const de_PropertyDefinitionResponse = (output, context) => {
|
|
2112
|
-
return take(output, {
|
|
2113
|
-
configuration: _json,
|
|
2114
|
-
dataType: (_) => de_DataType(_, context),
|
|
2115
|
-
defaultValue: (_) => de_DataValue(_, context),
|
|
2116
|
-
displayName: __expectString,
|
|
2117
|
-
isExternalId: __expectBoolean,
|
|
2118
|
-
isFinal: __expectBoolean,
|
|
2119
|
-
isImported: __expectBoolean,
|
|
2120
|
-
isInherited: __expectBoolean,
|
|
2121
|
-
isRequiredInEntity: __expectBoolean,
|
|
2122
|
-
isStoredExternally: __expectBoolean,
|
|
2123
|
-
isTimeSeries: __expectBoolean,
|
|
2124
|
-
});
|
|
2125
|
-
};
|
|
2126
|
-
const de_PropertyDefinitionsResponse = (output, context) => {
|
|
2127
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2128
|
-
if (value === null) {
|
|
2129
|
-
return acc;
|
|
2130
|
-
}
|
|
2131
|
-
acc[key] = de_PropertyDefinitionResponse(value, context);
|
|
2132
|
-
return acc;
|
|
2133
|
-
}, {});
|
|
2134
|
-
};
|
|
2135
|
-
const de_PropertyLatestValue = (output, context) => {
|
|
2136
|
-
return take(output, {
|
|
2137
|
-
propertyReference: _json,
|
|
2138
|
-
propertyValue: (_) => de_DataValue(_, context),
|
|
2139
|
-
});
|
|
2140
|
-
};
|
|
2141
|
-
const de_PropertyLatestValueMap = (output, context) => {
|
|
2142
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2143
|
-
if (value === null) {
|
|
2144
|
-
return acc;
|
|
2145
|
-
}
|
|
2146
|
-
acc[key] = de_PropertyLatestValue(value, context);
|
|
2147
|
-
return acc;
|
|
2148
|
-
}, {});
|
|
2149
|
-
};
|
|
2150
|
-
const de_PropertyResponse = (output, context) => {
|
|
2151
|
-
return take(output, {
|
|
2152
|
-
areAllPropertyValuesReturned: __expectBoolean,
|
|
2153
|
-
definition: (_) => de_PropertyDefinitionResponse(_, context),
|
|
2154
|
-
value: (_) => de_DataValue(_, context),
|
|
2155
|
-
});
|
|
2156
|
-
};
|
|
2157
|
-
const de_PropertyResponses = (output, context) => {
|
|
2158
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2159
|
-
if (value === null) {
|
|
2160
|
-
return acc;
|
|
2161
|
-
}
|
|
2162
|
-
acc[key] = de_PropertyResponse(value, context);
|
|
2163
|
-
return acc;
|
|
2164
|
-
}, {});
|
|
2165
|
-
};
|
|
2166
|
-
const de_PropertySummaries = (output, context) => {
|
|
2167
|
-
const retVal = (output || [])
|
|
2168
|
-
.filter((e) => e != null)
|
|
2169
|
-
.map((entry) => {
|
|
2170
|
-
return de_PropertySummary(entry, context);
|
|
2171
|
-
});
|
|
2172
|
-
return retVal;
|
|
2173
|
-
};
|
|
2174
|
-
const de_PropertySummary = (output, context) => {
|
|
2175
|
-
return take(output, {
|
|
2176
|
-
areAllPropertyValuesReturned: __expectBoolean,
|
|
2177
|
-
definition: (_) => de_PropertyDefinitionResponse(_, context),
|
|
2178
|
-
propertyName: __expectString,
|
|
2179
|
-
value: (_) => de_DataValue(_, context),
|
|
2180
|
-
});
|
|
2181
|
-
};
|
|
2182
|
-
const de_PropertyTableValue = (output, context) => {
|
|
2183
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2184
|
-
if (value === null) {
|
|
2185
|
-
return acc;
|
|
2186
|
-
}
|
|
2187
|
-
acc[key] = de_DataValue(value, context);
|
|
2188
|
-
return acc;
|
|
2189
|
-
}, {});
|
|
2190
|
-
};
|
|
2191
|
-
const de_PropertyValue = (output, context) => {
|
|
2192
|
-
return take(output, {
|
|
2193
|
-
time: __expectString,
|
|
2194
|
-
timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2195
|
-
value: (_) => de_DataValue(_, context),
|
|
2196
|
-
});
|
|
2197
|
-
};
|
|
2198
|
-
const de_PropertyValueEntry = (output, context) => {
|
|
2199
|
-
return take(output, {
|
|
2200
|
-
entityPropertyReference: _json,
|
|
2201
|
-
propertyValues: (_) => de_PropertyValues(_, context),
|
|
2202
|
-
});
|
|
2203
|
-
};
|
|
2204
|
-
const de_PropertyValueHistory = (output, context) => {
|
|
2205
|
-
return take(output, {
|
|
2206
|
-
entityPropertyReference: _json,
|
|
2207
|
-
values: (_) => de_Values(_, context),
|
|
2208
|
-
});
|
|
2209
|
-
};
|
|
2210
|
-
const de_PropertyValueList = (output, context) => {
|
|
2211
|
-
const retVal = (output || [])
|
|
2212
|
-
.filter((e) => e != null)
|
|
2213
|
-
.map((entry) => {
|
|
2214
|
-
return de_PropertyValueHistory(entry, context);
|
|
2215
|
-
});
|
|
2216
|
-
return retVal;
|
|
2217
|
-
};
|
|
2218
|
-
const de_PropertyValues = (output, context) => {
|
|
2219
|
-
const retVal = (output || [])
|
|
2220
|
-
.filter((e) => e != null)
|
|
2221
|
-
.map((entry) => {
|
|
2222
|
-
return de_PropertyValue(entry, context);
|
|
2223
|
-
});
|
|
2224
|
-
return retVal;
|
|
2225
|
-
};
|
|
2226
|
-
const de_QueryResultValue = (output, context) => {
|
|
2227
|
-
return output;
|
|
2228
|
-
};
|
|
2229
|
-
const de_Row = (output, context) => {
|
|
2230
|
-
return take(output, {
|
|
2231
|
-
rowData: (_) => de_RowData(_, context),
|
|
2232
|
-
});
|
|
2233
|
-
};
|
|
2234
|
-
const de_RowData = (output, context) => {
|
|
2235
|
-
const retVal = (output || [])
|
|
2236
|
-
.filter((e) => e != null)
|
|
2237
|
-
.map((entry) => {
|
|
2238
|
-
return de_QueryResultValue(entry, context);
|
|
2239
|
-
});
|
|
2240
|
-
return retVal;
|
|
2241
|
-
};
|
|
2242
|
-
const de_Rows = (output, context) => {
|
|
2243
|
-
const retVal = (output || [])
|
|
2244
|
-
.filter((e) => e != null)
|
|
2245
|
-
.map((entry) => {
|
|
2246
|
-
return de_Row(entry, context);
|
|
2247
|
-
});
|
|
2248
|
-
return retVal;
|
|
2249
|
-
};
|
|
2250
|
-
const de_SceneSummaries = (output, context) => {
|
|
2251
|
-
const retVal = (output || [])
|
|
2252
|
-
.filter((e) => e != null)
|
|
2253
|
-
.map((entry) => {
|
|
2254
|
-
return de_SceneSummary(entry, context);
|
|
2255
|
-
});
|
|
2256
|
-
return retVal;
|
|
2257
|
-
};
|
|
2258
|
-
const de_SceneSummary = (output, context) => {
|
|
2259
|
-
return take(output, {
|
|
2260
|
-
arn: __expectString,
|
|
2261
|
-
contentLocation: __expectString,
|
|
2262
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2263
|
-
description: __expectString,
|
|
2264
|
-
sceneId: __expectString,
|
|
2265
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2266
|
-
});
|
|
2267
|
-
};
|
|
2268
|
-
const de_SyncJobSummaries = (output, context) => {
|
|
2269
|
-
const retVal = (output || [])
|
|
2270
|
-
.filter((e) => e != null)
|
|
2271
|
-
.map((entry) => {
|
|
2272
|
-
return de_SyncJobSummary(entry, context);
|
|
2273
|
-
});
|
|
2274
|
-
return retVal;
|
|
2275
|
-
};
|
|
2276
|
-
const de_SyncJobSummary = (output, context) => {
|
|
2277
|
-
return take(output, {
|
|
2278
|
-
arn: __expectString,
|
|
2279
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2280
|
-
status: _json,
|
|
2281
|
-
syncSource: __expectString,
|
|
2282
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2283
|
-
workspaceId: __expectString,
|
|
2284
|
-
});
|
|
2285
|
-
};
|
|
2286
|
-
const de_SyncResourceSummaries = (output, context) => {
|
|
2287
|
-
const retVal = (output || [])
|
|
2288
|
-
.filter((e) => e != null)
|
|
2289
|
-
.map((entry) => {
|
|
2290
|
-
return de_SyncResourceSummary(entry, context);
|
|
2291
|
-
});
|
|
2292
|
-
return retVal;
|
|
2293
|
-
};
|
|
2294
|
-
const de_SyncResourceSummary = (output, context) => {
|
|
2295
|
-
return take(output, {
|
|
2296
|
-
externalId: __expectString,
|
|
2297
|
-
resourceId: __expectString,
|
|
2298
|
-
resourceType: __expectString,
|
|
2299
|
-
status: _json,
|
|
2300
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2301
|
-
});
|
|
2302
|
-
};
|
|
2303
|
-
const de_TabularPropertyValue = (output, context) => {
|
|
2304
|
-
const retVal = (output || [])
|
|
2305
|
-
.filter((e) => e != null)
|
|
2306
|
-
.map((entry) => {
|
|
2307
|
-
return de_PropertyTableValue(entry, context);
|
|
2308
|
-
});
|
|
2309
|
-
return retVal;
|
|
2310
|
-
};
|
|
2311
|
-
const de_TabularPropertyValues = (output, context) => {
|
|
2312
|
-
const retVal = (output || [])
|
|
2313
|
-
.filter((e) => e != null)
|
|
2314
|
-
.map((entry) => {
|
|
2315
|
-
return de_TabularPropertyValue(entry, context);
|
|
2316
|
-
});
|
|
2317
|
-
return retVal;
|
|
2318
|
-
};
|
|
2319
|
-
const de_Values = (output, context) => {
|
|
2320
|
-
const retVal = (output || [])
|
|
2321
|
-
.filter((e) => e != null)
|
|
2322
|
-
.map((entry) => {
|
|
2323
|
-
return de_PropertyValue(entry, context);
|
|
2324
|
-
});
|
|
2325
|
-
return retVal;
|
|
2326
|
-
};
|
|
2327
|
-
const de_WorkspaceSummaries = (output, context) => {
|
|
2328
|
-
const retVal = (output || [])
|
|
2329
|
-
.filter((e) => e != null)
|
|
2330
|
-
.map((entry) => {
|
|
2331
|
-
return de_WorkspaceSummary(entry, context);
|
|
2332
|
-
});
|
|
2333
|
-
return retVal;
|
|
2334
|
-
};
|
|
2335
|
-
const de_WorkspaceSummary = (output, context) => {
|
|
2336
|
-
return take(output, {
|
|
2337
|
-
arn: __expectString,
|
|
2338
|
-
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2339
|
-
description: __expectString,
|
|
2340
|
-
linkedServices: _json,
|
|
2341
|
-
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2342
|
-
workspaceId: __expectString,
|
|
2343
|
-
});
|
|
2344
|
-
};
|
|
2345
|
-
const deserializeMetadata = (output) => ({
|
|
2346
|
-
httpStatusCode: output.statusCode,
|
|
2347
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2348
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2349
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2350
|
-
});
|
|
2351
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2352
|
-
const _iR = "isRecursive";
|
|
2353
|
-
const _rARN = "resourceARN";
|
|
2354
|
-
const _tK = "tagKeys";
|
|
2355
|
-
const _w = "workspace";
|
|
2356
|
-
const _wI = "workspaceId";
|