@aws-sdk/client-iottwinmaker 3.211.0 → 3.212.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.
Files changed (43) hide show
  1. package/dist-cjs/IoTTwinMaker.js +45 -0
  2. package/dist-cjs/commands/ExecuteQueryCommand.js +46 -0
  3. package/dist-cjs/commands/GetPricingPlanCommand.js +46 -0
  4. package/dist-cjs/commands/UpdatePricingPlanCommand.js +46 -0
  5. package/dist-cjs/commands/index.js +3 -0
  6. package/dist-cjs/models/models_0.js +129 -9
  7. package/dist-cjs/pagination/ExecuteQueryPaginator.js +36 -0
  8. package/dist-cjs/pagination/GetPropertyValuePaginator.js +36 -0
  9. package/dist-cjs/pagination/index.js +2 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +540 -74
  11. package/dist-es/IoTTwinMaker.js +45 -0
  12. package/dist-es/commands/ExecuteQueryCommand.js +42 -0
  13. package/dist-es/commands/GetPricingPlanCommand.js +42 -0
  14. package/dist-es/commands/UpdatePricingPlanCommand.js +42 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +107 -4
  17. package/dist-es/pagination/ExecuteQueryPaginator.js +32 -0
  18. package/dist-es/pagination/GetPropertyValuePaginator.js +32 -0
  19. package/dist-es/pagination/index.js +2 -0
  20. package/dist-es/protocols/Aws_restJson1.js +533 -73
  21. package/dist-types/IoTTwinMaker.d.ts +21 -0
  22. package/dist-types/IoTTwinMakerClient.d.ts +5 -2
  23. package/dist-types/commands/ExecuteQueryCommand.d.ts +37 -0
  24. package/dist-types/commands/GetPricingPlanCommand.d.ts +37 -0
  25. package/dist-types/commands/UpdatePricingPlanCommand.d.ts +37 -0
  26. package/dist-types/commands/index.d.ts +3 -0
  27. package/dist-types/models/models_0.d.ts +424 -35
  28. package/dist-types/pagination/ExecuteQueryPaginator.d.ts +4 -0
  29. package/dist-types/pagination/GetPropertyValuePaginator.d.ts +4 -0
  30. package/dist-types/pagination/index.d.ts +2 -0
  31. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  32. package/dist-types/ts3.4/IoTTwinMaker.d.ts +51 -0
  33. package/dist-types/ts3.4/IoTTwinMakerClient.d.ts +18 -0
  34. package/dist-types/ts3.4/commands/ExecuteQueryCommand.d.ts +34 -0
  35. package/dist-types/ts3.4/commands/GetPricingPlanCommand.d.ts +37 -0
  36. package/dist-types/ts3.4/commands/UpdatePricingPlanCommand.d.ts +38 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +182 -14
  39. package/dist-types/ts3.4/pagination/ExecuteQueryPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/GetPropertyValuePaginator.d.ts +11 -0
  41. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  42. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  43. package/package.json +28 -28
@@ -7,8 +7,10 @@ import { DeleteComponentTypeCommand, } from "./commands/DeleteComponentTypeComma
7
7
  import { DeleteEntityCommand, } from "./commands/DeleteEntityCommand";
8
8
  import { DeleteSceneCommand } from "./commands/DeleteSceneCommand";
9
9
  import { DeleteWorkspaceCommand, } from "./commands/DeleteWorkspaceCommand";
10
+ import { ExecuteQueryCommand, } from "./commands/ExecuteQueryCommand";
10
11
  import { GetComponentTypeCommand, } from "./commands/GetComponentTypeCommand";
11
12
  import { GetEntityCommand } from "./commands/GetEntityCommand";
13
+ import { GetPricingPlanCommand, } from "./commands/GetPricingPlanCommand";
12
14
  import { GetPropertyValueCommand, } from "./commands/GetPropertyValueCommand";
13
15
  import { GetPropertyValueHistoryCommand, } from "./commands/GetPropertyValueHistoryCommand";
14
16
  import { GetSceneCommand } from "./commands/GetSceneCommand";
@@ -22,6 +24,7 @@ import { TagResourceCommand } from "./commands/TagResourceCommand";
22
24
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
23
25
  import { UpdateComponentTypeCommand, } from "./commands/UpdateComponentTypeCommand";
24
26
  import { UpdateEntityCommand, } from "./commands/UpdateEntityCommand";
27
+ import { UpdatePricingPlanCommand, } from "./commands/UpdatePricingPlanCommand";
25
28
  import { UpdateSceneCommand } from "./commands/UpdateSceneCommand";
26
29
  import { UpdateWorkspaceCommand, } from "./commands/UpdateWorkspaceCommand";
27
30
  import { IoTTwinMakerClient } from "./IoTTwinMakerClient";
@@ -152,6 +155,20 @@ export class IoTTwinMaker extends IoTTwinMakerClient {
152
155
  return this.send(command, optionsOrCb);
153
156
  }
154
157
  }
158
+ executeQuery(args, optionsOrCb, cb) {
159
+ const command = new ExecuteQueryCommand(args);
160
+ if (typeof optionsOrCb === "function") {
161
+ this.send(command, optionsOrCb);
162
+ }
163
+ else if (typeof cb === "function") {
164
+ if (typeof optionsOrCb !== "object")
165
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
166
+ this.send(command, optionsOrCb || {}, cb);
167
+ }
168
+ else {
169
+ return this.send(command, optionsOrCb);
170
+ }
171
+ }
155
172
  getComponentType(args, optionsOrCb, cb) {
156
173
  const command = new GetComponentTypeCommand(args);
157
174
  if (typeof optionsOrCb === "function") {
@@ -180,6 +197,20 @@ export class IoTTwinMaker extends IoTTwinMakerClient {
180
197
  return this.send(command, optionsOrCb);
181
198
  }
182
199
  }
200
+ getPricingPlan(args, optionsOrCb, cb) {
201
+ const command = new GetPricingPlanCommand(args);
202
+ if (typeof optionsOrCb === "function") {
203
+ this.send(command, optionsOrCb);
204
+ }
205
+ else if (typeof cb === "function") {
206
+ if (typeof optionsOrCb !== "object")
207
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
+ this.send(command, optionsOrCb || {}, cb);
209
+ }
210
+ else {
211
+ return this.send(command, optionsOrCb);
212
+ }
213
+ }
183
214
  getPropertyValue(args, optionsOrCb, cb) {
184
215
  const command = new GetPropertyValueCommand(args);
185
216
  if (typeof optionsOrCb === "function") {
@@ -362,6 +393,20 @@ export class IoTTwinMaker extends IoTTwinMakerClient {
362
393
  return this.send(command, optionsOrCb);
363
394
  }
364
395
  }
396
+ updatePricingPlan(args, optionsOrCb, cb) {
397
+ const command = new UpdatePricingPlanCommand(args);
398
+ if (typeof optionsOrCb === "function") {
399
+ this.send(command, optionsOrCb);
400
+ }
401
+ else if (typeof cb === "function") {
402
+ if (typeof optionsOrCb !== "object")
403
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
404
+ this.send(command, optionsOrCb || {}, cb);
405
+ }
406
+ else {
407
+ return this.send(command, optionsOrCb);
408
+ }
409
+ }
365
410
  updateScene(args, optionsOrCb, cb) {
366
411
  const command = new UpdateSceneCommand(args);
367
412
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ExecuteQueryRequestFilterSensitiveLog, ExecuteQueryResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1ExecuteQueryCommand, serializeAws_restJson1ExecuteQueryCommand, } from "../protocols/Aws_restJson1";
6
+ export class ExecuteQueryCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ExecuteQueryCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "IoTTwinMakerClient";
25
+ const commandName = "ExecuteQueryCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: ExecuteQueryRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: ExecuteQueryResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1ExecuteQueryCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1ExecuteQueryCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { GetPricingPlanRequestFilterSensitiveLog, GetPricingPlanResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1GetPricingPlanCommand, serializeAws_restJson1GetPricingPlanCommand, } from "../protocols/Aws_restJson1";
6
+ export class GetPricingPlanCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetPricingPlanCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "IoTTwinMakerClient";
25
+ const commandName = "GetPricingPlanCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: GetPricingPlanRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: GetPricingPlanResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1GetPricingPlanCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1GetPricingPlanCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { UpdatePricingPlanRequestFilterSensitiveLog, UpdatePricingPlanResponseFilterSensitiveLog, } from "../models/models_0";
5
+ import { deserializeAws_restJson1UpdatePricingPlanCommand, serializeAws_restJson1UpdatePricingPlanCommand, } from "../protocols/Aws_restJson1";
6
+ export class UpdatePricingPlanCommand extends $Command {
7
+ constructor(input) {
8
+ super();
9
+ this.input = input;
10
+ }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePricingPlanCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "IoTTwinMakerClient";
25
+ const commandName = "UpdatePricingPlanCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: UpdatePricingPlanRequestFilterSensitiveLog,
31
+ outputFilterSensitiveLog: UpdatePricingPlanResponseFilterSensitiveLog,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return serializeAws_restJson1UpdatePricingPlanCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return deserializeAws_restJson1UpdatePricingPlanCommand(output, context);
41
+ }
42
+ }
@@ -7,8 +7,10 @@ export * from "./DeleteComponentTypeCommand";
7
7
  export * from "./DeleteEntityCommand";
8
8
  export * from "./DeleteSceneCommand";
9
9
  export * from "./DeleteWorkspaceCommand";
10
+ export * from "./ExecuteQueryCommand";
10
11
  export * from "./GetComponentTypeCommand";
11
12
  export * from "./GetEntityCommand";
13
+ export * from "./GetPricingPlanCommand";
12
14
  export * from "./GetPropertyValueCommand";
13
15
  export * from "./GetPropertyValueHistoryCommand";
14
16
  export * from "./GetSceneCommand";
@@ -22,5 +24,6 @@ export * from "./TagResourceCommand";
22
24
  export * from "./UntagResourceCommand";
23
25
  export * from "./UpdateComponentTypeCommand";
24
26
  export * from "./UpdateEntityCommand";
27
+ export * from "./UpdatePricingPlanCommand";
25
28
  export * from "./UpdateSceneCommand";
26
29
  export * from "./UpdateWorkspaceCommand";
@@ -87,6 +87,10 @@ export var Type;
87
87
  Type["RELATIONSHIP"] = "RELATIONSHIP";
88
88
  Type["STRING"] = "STRING";
89
89
  })(Type || (Type = {}));
90
+ export var GroupType;
91
+ (function (GroupType) {
92
+ GroupType["TABULAR"] = "TABULAR";
93
+ })(GroupType || (GroupType = {}));
90
94
  export var State;
91
95
  (function (State) {
92
96
  State["ACTIVE"] = "ACTIVE";
@@ -113,11 +117,57 @@ export var PropertyUpdateType;
113
117
  PropertyUpdateType["DELETE"] = "DELETE";
114
118
  PropertyUpdateType["UPDATE"] = "UPDATE";
115
119
  })(PropertyUpdateType || (PropertyUpdateType = {}));
120
+ export var PropertyGroupUpdateType;
121
+ (function (PropertyGroupUpdateType) {
122
+ PropertyGroupUpdateType["CREATE"] = "CREATE";
123
+ PropertyGroupUpdateType["DELETE"] = "DELETE";
124
+ PropertyGroupUpdateType["UPDATE"] = "UPDATE";
125
+ })(PropertyGroupUpdateType || (PropertyGroupUpdateType = {}));
126
+ export var ColumnType;
127
+ (function (ColumnType) {
128
+ ColumnType["EDGE"] = "EDGE";
129
+ ColumnType["NODE"] = "NODE";
130
+ ColumnType["VALUE"] = "VALUE";
131
+ })(ColumnType || (ColumnType = {}));
132
+ export class QueryTimeoutException extends __BaseException {
133
+ constructor(opts) {
134
+ super({
135
+ name: "QueryTimeoutException",
136
+ $fault: "client",
137
+ ...opts,
138
+ });
139
+ this.name = "QueryTimeoutException";
140
+ this.$fault = "client";
141
+ this.$retryable = {};
142
+ Object.setPrototypeOf(this, QueryTimeoutException.prototype);
143
+ }
144
+ }
116
145
  export var ErrorCode;
117
146
  (function (ErrorCode) {
118
147
  ErrorCode["INTERNAL_FAILURE"] = "INTERNAL_FAILURE";
119
148
  ErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR";
120
149
  })(ErrorCode || (ErrorCode = {}));
150
+ export var PricingTier;
151
+ (function (PricingTier) {
152
+ PricingTier["TIER_1"] = "TIER_1";
153
+ PricingTier["TIER_2"] = "TIER_2";
154
+ PricingTier["TIER_3"] = "TIER_3";
155
+ PricingTier["TIER_4"] = "TIER_4";
156
+ })(PricingTier || (PricingTier = {}));
157
+ export var PricingMode;
158
+ (function (PricingMode) {
159
+ PricingMode["BASIC"] = "BASIC";
160
+ PricingMode["STANDARD"] = "STANDARD";
161
+ PricingMode["TIERED_BUNDLE"] = "TIERED_BUNDLE";
162
+ })(PricingMode || (PricingMode = {}));
163
+ export var UpdateReason;
164
+ (function (UpdateReason) {
165
+ UpdateReason["DEFAULT"] = "DEFAULT";
166
+ UpdateReason["ENTITY_COUNT_UPDATE"] = "ENTITY_COUNT_UPDATE";
167
+ UpdateReason["OVERWRITTEN"] = "OVERWRITTEN";
168
+ UpdateReason["PRICING_MODE_UPDATE"] = "PRICING_MODE_UPDATE";
169
+ UpdateReason["PRICING_TIER_UPDATE"] = "PRICING_TIER_UPDATE";
170
+ })(UpdateReason || (UpdateReason = {}));
121
171
  export class ConnectorFailureException extends __BaseException {
122
172
  constructor(opts) {
123
173
  super({
@@ -142,6 +192,11 @@ export class ConnectorTimeoutException extends __BaseException {
142
192
  Object.setPrototypeOf(this, ConnectorTimeoutException.prototype);
143
193
  }
144
194
  }
195
+ export var Order;
196
+ (function (Order) {
197
+ Order["ASCENDING"] = "ASCENDING";
198
+ Order["DESCENDING"] = "DESCENDING";
199
+ })(Order || (Order = {}));
145
200
  export var InterpolationType;
146
201
  (function (InterpolationType) {
147
202
  InterpolationType["LINEAR"] = "LINEAR";
@@ -216,9 +271,15 @@ export const FunctionRequestFilterSensitiveLog = (obj) => ({
216
271
  export const RelationshipFilterSensitiveLog = (obj) => ({
217
272
  ...obj,
218
273
  });
274
+ export const PropertyGroupRequestFilterSensitiveLog = (obj) => ({
275
+ ...obj,
276
+ });
219
277
  export const CreateComponentTypeResponseFilterSensitiveLog = (obj) => ({
220
278
  ...obj,
221
279
  });
280
+ export const ComponentPropertyGroupRequestFilterSensitiveLog = (obj) => ({
281
+ ...obj,
282
+ });
222
283
  export const CreateEntityResponseFilterSensitiveLog = (obj) => ({
223
284
  ...obj,
224
285
  });
@@ -258,12 +319,27 @@ export const DeleteWorkspaceRequestFilterSensitiveLog = (obj) => ({
258
319
  export const DeleteWorkspaceResponseFilterSensitiveLog = (obj) => ({
259
320
  ...obj,
260
321
  });
322
+ export const ExecuteQueryRequestFilterSensitiveLog = (obj) => ({
323
+ ...obj,
324
+ });
325
+ export const ColumnDescriptionFilterSensitiveLog = (obj) => ({
326
+ ...obj,
327
+ });
328
+ export const RowFilterSensitiveLog = (obj) => ({
329
+ ...obj,
330
+ });
331
+ export const ExecuteQueryResponseFilterSensitiveLog = (obj) => ({
332
+ ...obj,
333
+ });
261
334
  export const GetComponentTypeRequestFilterSensitiveLog = (obj) => ({
262
335
  ...obj,
263
336
  });
264
337
  export const FunctionResponseFilterSensitiveLog = (obj) => ({
265
338
  ...obj,
266
339
  });
340
+ export const PropertyGroupResponseFilterSensitiveLog = (obj) => ({
341
+ ...obj,
342
+ });
267
343
  export const ErrorDetailsFilterSensitiveLog = (obj) => ({
268
344
  ...obj,
269
345
  });
@@ -273,7 +349,22 @@ export const StatusFilterSensitiveLog = (obj) => ({
273
349
  export const GetEntityRequestFilterSensitiveLog = (obj) => ({
274
350
  ...obj,
275
351
  });
276
- export const GetPropertyValueRequestFilterSensitiveLog = (obj) => ({
352
+ export const ComponentPropertyGroupResponseFilterSensitiveLog = (obj) => ({
353
+ ...obj,
354
+ });
355
+ export const GetPricingPlanRequestFilterSensitiveLog = (obj) => ({
356
+ ...obj,
357
+ });
358
+ export const BundleInformationFilterSensitiveLog = (obj) => ({
359
+ ...obj,
360
+ });
361
+ export const PricingPlanFilterSensitiveLog = (obj) => ({
362
+ ...obj,
363
+ });
364
+ export const GetPricingPlanResponseFilterSensitiveLog = (obj) => ({
365
+ ...obj,
366
+ });
367
+ export const OrderByFilterSensitiveLog = (obj) => ({
277
368
  ...obj,
278
369
  });
279
370
  export const InterpolationParametersFilterSensitiveLog = (obj) => ({
@@ -376,6 +467,12 @@ export const ParentEntityUpdateRequestFilterSensitiveLog = (obj) => ({
376
467
  export const UpdateEntityResponseFilterSensitiveLog = (obj) => ({
377
468
  ...obj,
378
469
  });
470
+ export const UpdatePricingPlanRequestFilterSensitiveLog = (obj) => ({
471
+ ...obj,
472
+ });
473
+ export const UpdatePricingPlanResponseFilterSensitiveLog = (obj) => ({
474
+ ...obj,
475
+ });
379
476
  export const UpdateSceneRequestFilterSensitiveLog = (obj) => ({
380
477
  ...obj,
381
478
  });
@@ -406,18 +503,21 @@ export const DataTypeFilterSensitiveLog = (obj) => ({
406
503
  export const GetPropertyValueHistoryRequestFilterSensitiveLog = (obj) => ({
407
504
  ...obj,
408
505
  });
409
- export const GetPropertyValueResponseFilterSensitiveLog = (obj) => ({
410
- ...obj,
411
- });
412
506
  export const PropertyValueEntryFilterSensitiveLog = (obj) => ({
413
507
  ...obj,
414
508
  });
415
509
  export const PropertyValueHistoryFilterSensitiveLog = (obj) => ({
416
510
  ...obj,
417
511
  });
512
+ export const TabularConditionsFilterSensitiveLog = (obj) => ({
513
+ ...obj,
514
+ });
418
515
  export const BatchPutPropertyErrorFilterSensitiveLog = (obj) => ({
419
516
  ...obj,
420
517
  });
518
+ export const GetPropertyValueRequestFilterSensitiveLog = (obj) => ({
519
+ ...obj,
520
+ });
421
521
  export const BatchPutPropertyValuesRequestFilterSensitiveLog = (obj) => ({
422
522
  ...obj,
423
523
  });
@@ -436,6 +536,9 @@ export const PropertyDefinitionResponseFilterSensitiveLog = (obj) => ({
436
536
  export const BatchPutPropertyValuesResponseFilterSensitiveLog = (obj) => ({
437
537
  ...obj,
438
538
  });
539
+ export const GetPropertyValueResponseFilterSensitiveLog = (obj) => ({
540
+ ...obj,
541
+ });
439
542
  export const CreateComponentTypeRequestFilterSensitiveLog = (obj) => ({
440
543
  ...obj,
441
544
  });
@@ -0,0 +1,32 @@
1
+ import { ExecuteQueryCommand, } from "../commands/ExecuteQueryCommand";
2
+ import { IoTTwinMaker } from "../IoTTwinMaker";
3
+ import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new ExecuteQueryCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.executeQuery(input, ...args);
9
+ };
10
+ export async function* paginateExecuteQuery(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof IoTTwinMaker) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof IoTTwinMakerClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -0,0 +1,32 @@
1
+ import { GetPropertyValueCommand, } from "../commands/GetPropertyValueCommand";
2
+ import { IoTTwinMaker } from "../IoTTwinMaker";
3
+ import { IoTTwinMakerClient } from "../IoTTwinMakerClient";
4
+ const makePagedClientRequest = async (client, input, ...args) => {
5
+ return await client.send(new GetPropertyValueCommand(input), ...args);
6
+ };
7
+ const makePagedRequest = async (client, input, ...args) => {
8
+ return await client.getPropertyValue(input, ...args);
9
+ };
10
+ export async function* paginateGetPropertyValue(config, input, ...additionalArguments) {
11
+ let token = config.startingToken || undefined;
12
+ let hasNext = true;
13
+ let page;
14
+ while (hasNext) {
15
+ input.nextToken = token;
16
+ input["maxResults"] = config.pageSize;
17
+ if (config.client instanceof IoTTwinMaker) {
18
+ page = await makePagedRequest(config.client, input, ...additionalArguments);
19
+ }
20
+ else if (config.client instanceof IoTTwinMakerClient) {
21
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
22
+ }
23
+ else {
24
+ throw new Error("Invalid client, expected IoTTwinMaker | IoTTwinMakerClient");
25
+ }
26
+ yield page;
27
+ const prevToken = token;
28
+ token = page.nextToken;
29
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
30
+ }
31
+ return undefined;
32
+ }
@@ -1,4 +1,6 @@
1
+ export * from "./ExecuteQueryPaginator";
1
2
  export * from "./GetPropertyValueHistoryPaginator";
3
+ export * from "./GetPropertyValuePaginator";
2
4
  export * from "./Interfaces";
3
5
  export * from "./ListComponentTypesPaginator";
4
6
  export * from "./ListEntitiesPaginator";