@aws-sdk/client-iotsitewise 3.848.0 → 3.855.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/README.md +80 -0
- package/dist-cjs/index.js +749 -35
- package/dist-es/IoTSiteWise.js +20 -0
- package/dist-es/commands/CreateComputationModelCommand.js +22 -0
- package/dist-es/commands/DeleteComputationModelCommand.js +22 -0
- package/dist-es/commands/DescribeComputationModelCommand.js +22 -0
- package/dist-es/commands/DescribeComputationModelExecutionSummaryCommand.js +22 -0
- package/dist-es/commands/DescribeExecutionCommand.js +22 -0
- package/dist-es/commands/ListComputationModelDataBindingUsagesCommand.js +22 -0
- package/dist-es/commands/ListComputationModelResolveToResourcesCommand.js +22 -0
- package/dist-es/commands/ListComputationModelsCommand.js +22 -0
- package/dist-es/commands/ListExecutionsCommand.js +22 -0
- package/dist-es/commands/UpdateComputationModelCommand.js +22 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +15 -27
- package/dist-es/models/models_1.js +31 -0
- package/dist-es/pagination/ListComputationModelDataBindingUsagesPaginator.js +4 -0
- package/dist-es/pagination/ListComputationModelResolveToResourcesPaginator.js +4 -0
- package/dist-es/pagination/ListComputationModelsPaginator.js +4 -0
- package/dist-es/pagination/ListExecutionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +482 -0
- package/dist-types/IoTSiteWise.d.ts +71 -0
- package/dist-types/IoTSiteWiseClient.d.ts +12 -2
- package/dist-types/commands/AssociateAssetsCommand.d.ts +1 -1
- package/dist-types/commands/BatchAssociateProjectAssetsCommand.d.ts +1 -1
- package/dist-types/commands/BatchPutAssetPropertyValueCommand.d.ts +1 -1
- package/dist-types/commands/CreateAccessPolicyCommand.d.ts +1 -1
- package/dist-types/commands/CreateAssetCommand.d.ts +3 -3
- package/dist-types/commands/CreateAssetModelCommand.d.ts +1 -1
- package/dist-types/commands/CreateAssetModelCompositeModelCommand.d.ts +1 -1
- package/dist-types/commands/CreateBulkImportJobCommand.d.ts +14 -3
- package/dist-types/commands/CreateComputationModelCommand.d.ts +154 -0
- package/dist-types/commands/CreateDashboardCommand.d.ts +1 -1
- package/dist-types/commands/CreateDatasetCommand.d.ts +1 -1
- package/dist-types/commands/CreateGatewayCommand.d.ts +1 -1
- package/dist-types/commands/CreatePortalCommand.d.ts +1 -1
- package/dist-types/commands/CreateProjectCommand.d.ts +1 -1
- package/dist-types/commands/DeleteComputationModelCommand.d.ts +105 -0
- package/dist-types/commands/DescribeActionCommand.d.ts +5 -1
- package/dist-types/commands/DescribeAssetCommand.d.ts +4 -4
- package/dist-types/commands/DescribeAssetCompositeModelCommand.d.ts +1 -1
- package/dist-types/commands/DescribeAssetPropertyCommand.d.ts +3 -3
- package/dist-types/commands/DescribeComputationModelCommand.d.ts +148 -0
- package/dist-types/commands/DescribeComputationModelExecutionSummaryCommand.d.ts +96 -0
- package/dist-types/commands/DescribeExecutionCommand.d.ts +109 -0
- package/dist-types/commands/DescribeGatewayCapabilityConfigurationCommand.d.ts +18 -5
- package/dist-types/commands/DescribeStorageConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/ExecuteActionCommand.d.ts +6 -2
- package/dist-types/commands/InvokeAssistantCommand.d.ts +1 -1
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +1 -1
- package/dist-types/commands/ListActionsCommand.d.ts +8 -2
- package/dist-types/commands/ListAssetModelCompositeModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListAssetModelPropertiesCommand.d.ts +1 -1
- package/dist-types/commands/ListAssetModelsCommand.d.ts +1 -1
- package/dist-types/commands/ListAssetPropertiesCommand.d.ts +2 -2
- package/dist-types/commands/ListAssetRelationshipsCommand.d.ts +1 -1
- package/dist-types/commands/ListAssetsCommand.d.ts +3 -4
- package/dist-types/commands/ListAssociatedAssetsCommand.d.ts +2 -2
- package/dist-types/commands/ListComputationModelDataBindingUsagesCommand.d.ts +126 -0
- package/dist-types/commands/ListComputationModelResolveToResourcesCommand.d.ts +97 -0
- package/dist-types/commands/ListComputationModelsCommand.d.ts +112 -0
- package/dist-types/commands/ListExecutionsCommand.d.ts +114 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutDefaultEncryptionConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/PutStorageConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssetModelCommand.d.ts +1 -1
- package/dist-types/commands/UpdateAssetModelCompositeModelCommand.d.ts +1 -1
- package/dist-types/commands/UpdateComputationModelCommand.d.ts +149 -0
- package/dist-types/commands/UpdateDatasetCommand.d.ts +1 -1
- package/dist-types/commands/UpdateGatewayCapabilityConfigurationCommand.d.ts +21 -6
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +521 -596
- package/dist-types/models/models_1.d.ts +1095 -45
- package/dist-types/pagination/ListComputationModelDataBindingUsagesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListComputationModelResolveToResourcesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListComputationModelsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExecutionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +189 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +60 -0
- package/dist-types/ts3.4/commands/CreateComputationModelCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/DeleteComputationModelCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeComputationModelCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/DescribeComputationModelExecutionSummaryCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeExecutionCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListActionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAssetModelCompositeModelsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAssetModelPropertiesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAssetModelsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAssetPropertiesCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAssetRelationshipsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListAssetsCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListComputationModelDataBindingUsagesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListComputationModelResolveToResourcesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListComputationModelsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListExecutionsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateComputationModelCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +116 -131
- package/dist-types/ts3.4/models/models_1.d.ts +279 -1
- package/dist-types/ts3.4/pagination/ListComputationModelDataBindingUsagesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListComputationModelResolveToResourcesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListComputationModelsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExecutionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +120 -0
- package/package.json +5 -5
|
@@ -334,6 +334,32 @@ export const se_CreateBulkImportJobCommand = async (input, context) => {
|
|
|
334
334
|
b.m("POST").h(headers).b(body);
|
|
335
335
|
return b.build();
|
|
336
336
|
};
|
|
337
|
+
export const se_CreateComputationModelCommand = async (input, context) => {
|
|
338
|
+
const b = rb(input, context);
|
|
339
|
+
const headers = {
|
|
340
|
+
"content-type": "application/json",
|
|
341
|
+
};
|
|
342
|
+
b.bp("/computation-models");
|
|
343
|
+
let body;
|
|
344
|
+
body = JSON.stringify(take(input, {
|
|
345
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
346
|
+
computationModelConfiguration: (_) => _json(_),
|
|
347
|
+
computationModelDataBinding: (_) => se_ComputationModelDataBinding(_, context),
|
|
348
|
+
computationModelDescription: [],
|
|
349
|
+
computationModelName: [],
|
|
350
|
+
tags: (_) => _json(_),
|
|
351
|
+
}));
|
|
352
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
353
|
+
if (context.disableHostPrefix !== true) {
|
|
354
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
355
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
356
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
b.hn(resolvedHostname);
|
|
360
|
+
b.m("POST").h(headers).b(body);
|
|
361
|
+
return b.build();
|
|
362
|
+
};
|
|
337
363
|
export const se_CreateDashboardCommand = async (input, context) => {
|
|
338
364
|
const b = rb(input, context);
|
|
339
365
|
const headers = {
|
|
@@ -556,6 +582,26 @@ export const se_DeleteAssetModelCompositeModelCommand = async (input, context) =
|
|
|
556
582
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
557
583
|
return b.build();
|
|
558
584
|
};
|
|
585
|
+
export const se_DeleteComputationModelCommand = async (input, context) => {
|
|
586
|
+
const b = rb(input, context);
|
|
587
|
+
const headers = {};
|
|
588
|
+
b.bp("/computation-models/{computationModelId}");
|
|
589
|
+
b.p("computationModelId", () => input.computationModelId, "{computationModelId}", false);
|
|
590
|
+
const query = map({
|
|
591
|
+
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
592
|
+
});
|
|
593
|
+
let body;
|
|
594
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
595
|
+
if (context.disableHostPrefix !== true) {
|
|
596
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
597
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
598
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
b.hn(resolvedHostname);
|
|
602
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
603
|
+
return b.build();
|
|
604
|
+
};
|
|
559
605
|
export const se_DeleteDashboardCommand = async (input, context) => {
|
|
560
606
|
const b = rb(input, context);
|
|
561
607
|
const headers = {};
|
|
@@ -828,6 +874,44 @@ export const se_DescribeBulkImportJobCommand = async (input, context) => {
|
|
|
828
874
|
b.m("GET").h(headers).b(body);
|
|
829
875
|
return b.build();
|
|
830
876
|
};
|
|
877
|
+
export const se_DescribeComputationModelCommand = async (input, context) => {
|
|
878
|
+
const b = rb(input, context);
|
|
879
|
+
const headers = {};
|
|
880
|
+
b.bp("/computation-models/{computationModelId}");
|
|
881
|
+
b.p("computationModelId", () => input.computationModelId, "{computationModelId}", false);
|
|
882
|
+
let body;
|
|
883
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
884
|
+
if (context.disableHostPrefix !== true) {
|
|
885
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
886
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
887
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
b.hn(resolvedHostname);
|
|
891
|
+
b.m("GET").h(headers).b(body);
|
|
892
|
+
return b.build();
|
|
893
|
+
};
|
|
894
|
+
export const se_DescribeComputationModelExecutionSummaryCommand = async (input, context) => {
|
|
895
|
+
const b = rb(input, context);
|
|
896
|
+
const headers = {};
|
|
897
|
+
b.bp("/computation-models/{computationModelId}/execution-summary");
|
|
898
|
+
b.p("computationModelId", () => input.computationModelId, "{computationModelId}", false);
|
|
899
|
+
const query = map({
|
|
900
|
+
[_rTRT]: [, input[_rTRT]],
|
|
901
|
+
[_rTRI]: [, input[_rTRI]],
|
|
902
|
+
});
|
|
903
|
+
let body;
|
|
904
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
905
|
+
if (context.disableHostPrefix !== true) {
|
|
906
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
907
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
908
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
b.hn(resolvedHostname);
|
|
912
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
913
|
+
return b.build();
|
|
914
|
+
};
|
|
831
915
|
export const se_DescribeDashboardCommand = async (input, context) => {
|
|
832
916
|
const b = rb(input, context);
|
|
833
917
|
const headers = {};
|
|
@@ -878,6 +962,23 @@ export const se_DescribeDefaultEncryptionConfigurationCommand = async (input, co
|
|
|
878
962
|
b.m("GET").h(headers).b(body);
|
|
879
963
|
return b.build();
|
|
880
964
|
};
|
|
965
|
+
export const se_DescribeExecutionCommand = async (input, context) => {
|
|
966
|
+
const b = rb(input, context);
|
|
967
|
+
const headers = {};
|
|
968
|
+
b.bp("/executions/{executionId}");
|
|
969
|
+
b.p("executionId", () => input.executionId, "{executionId}", false);
|
|
970
|
+
let body;
|
|
971
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
972
|
+
if (context.disableHostPrefix !== true) {
|
|
973
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
974
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
975
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
b.hn(resolvedHostname);
|
|
979
|
+
b.m("GET").h(headers).b(body);
|
|
980
|
+
return b.build();
|
|
981
|
+
};
|
|
881
982
|
export const se_DescribeGatewayCommand = async (input, context) => {
|
|
882
983
|
const b = rb(input, context);
|
|
883
984
|
const headers = {};
|
|
@@ -1061,6 +1162,7 @@ export const se_ExecuteActionCommand = async (input, context) => {
|
|
|
1061
1162
|
actionDefinitionId: [],
|
|
1062
1163
|
actionPayload: (_) => _json(_),
|
|
1063
1164
|
clientToken: [],
|
|
1165
|
+
resolveTo: (_) => _json(_),
|
|
1064
1166
|
targetResource: (_) => _json(_),
|
|
1065
1167
|
}));
|
|
1066
1168
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1263,6 +1365,8 @@ export const se_ListActionsCommand = async (input, context) => {
|
|
|
1263
1365
|
[_tRI]: [, __expectNonNull(input[_tRI], `targetResourceId`)],
|
|
1264
1366
|
[_nT]: [, input[_nT]],
|
|
1265
1367
|
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1368
|
+
[_rTRT]: [, input[_rTRT]],
|
|
1369
|
+
[_rTRI]: [, input[_rTRI]],
|
|
1266
1370
|
});
|
|
1267
1371
|
let body;
|
|
1268
1372
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
@@ -1474,6 +1578,71 @@ export const se_ListCompositionRelationshipsCommand = async (input, context) =>
|
|
|
1474
1578
|
b.m("GET").h(headers).q(query).b(body);
|
|
1475
1579
|
return b.build();
|
|
1476
1580
|
};
|
|
1581
|
+
export const se_ListComputationModelDataBindingUsagesCommand = async (input, context) => {
|
|
1582
|
+
const b = rb(input, context);
|
|
1583
|
+
const headers = {
|
|
1584
|
+
"content-type": "application/json",
|
|
1585
|
+
};
|
|
1586
|
+
b.bp("/computation-models/data-binding-usages");
|
|
1587
|
+
let body;
|
|
1588
|
+
body = JSON.stringify(take(input, {
|
|
1589
|
+
dataBindingValueFilter: (_) => _json(_),
|
|
1590
|
+
maxResults: [],
|
|
1591
|
+
nextToken: [],
|
|
1592
|
+
}));
|
|
1593
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1594
|
+
if (context.disableHostPrefix !== true) {
|
|
1595
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1596
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
1597
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
b.hn(resolvedHostname);
|
|
1601
|
+
b.m("POST").h(headers).b(body);
|
|
1602
|
+
return b.build();
|
|
1603
|
+
};
|
|
1604
|
+
export const se_ListComputationModelResolveToResourcesCommand = async (input, context) => {
|
|
1605
|
+
const b = rb(input, context);
|
|
1606
|
+
const headers = {};
|
|
1607
|
+
b.bp("/computation-models/{computationModelId}/resolve-to-resources");
|
|
1608
|
+
b.p("computationModelId", () => input.computationModelId, "{computationModelId}", false);
|
|
1609
|
+
const query = map({
|
|
1610
|
+
[_nT]: [, input[_nT]],
|
|
1611
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1612
|
+
});
|
|
1613
|
+
let body;
|
|
1614
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1615
|
+
if (context.disableHostPrefix !== true) {
|
|
1616
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1617
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
1618
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
b.hn(resolvedHostname);
|
|
1622
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1623
|
+
return b.build();
|
|
1624
|
+
};
|
|
1625
|
+
export const se_ListComputationModelsCommand = async (input, context) => {
|
|
1626
|
+
const b = rb(input, context);
|
|
1627
|
+
const headers = {};
|
|
1628
|
+
b.bp("/computation-models");
|
|
1629
|
+
const query = map({
|
|
1630
|
+
[_cMT]: [, input[_cMT]],
|
|
1631
|
+
[_nT]: [, input[_nT]],
|
|
1632
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1633
|
+
});
|
|
1634
|
+
let body;
|
|
1635
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1636
|
+
if (context.disableHostPrefix !== true) {
|
|
1637
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1638
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
1639
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1642
|
+
b.hn(resolvedHostname);
|
|
1643
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1644
|
+
return b.build();
|
|
1645
|
+
};
|
|
1477
1646
|
export const se_ListDashboardsCommand = async (input, context) => {
|
|
1478
1647
|
const b = rb(input, context);
|
|
1479
1648
|
const headers = {};
|
|
@@ -1516,6 +1685,31 @@ export const se_ListDatasetsCommand = async (input, context) => {
|
|
|
1516
1685
|
b.m("GET").h(headers).q(query).b(body);
|
|
1517
1686
|
return b.build();
|
|
1518
1687
|
};
|
|
1688
|
+
export const se_ListExecutionsCommand = async (input, context) => {
|
|
1689
|
+
const b = rb(input, context);
|
|
1690
|
+
const headers = {};
|
|
1691
|
+
b.bp("/executions");
|
|
1692
|
+
const query = map({
|
|
1693
|
+
[_tRT]: [, __expectNonNull(input[_tRT], `targetResourceType`)],
|
|
1694
|
+
[_tRI]: [, __expectNonNull(input[_tRI], `targetResourceId`)],
|
|
1695
|
+
[_rTRT]: [, input[_rTRT]],
|
|
1696
|
+
[_rTRI]: [, input[_rTRI]],
|
|
1697
|
+
[_nT]: [, input[_nT]],
|
|
1698
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1699
|
+
[_aTc]: [, input[_aTc]],
|
|
1700
|
+
});
|
|
1701
|
+
let body;
|
|
1702
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1703
|
+
if (context.disableHostPrefix !== true) {
|
|
1704
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
1705
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
1706
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
b.hn(resolvedHostname);
|
|
1710
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1711
|
+
return b.build();
|
|
1712
|
+
};
|
|
1519
1713
|
export const se_ListGatewaysCommand = async (input, context) => {
|
|
1520
1714
|
const b = rb(input, context);
|
|
1521
1715
|
const headers = {};
|
|
@@ -1891,6 +2085,32 @@ export const se_UpdateAssetPropertyCommand = async (input, context) => {
|
|
|
1891
2085
|
b.m("PUT").h(headers).b(body);
|
|
1892
2086
|
return b.build();
|
|
1893
2087
|
};
|
|
2088
|
+
export const se_UpdateComputationModelCommand = async (input, context) => {
|
|
2089
|
+
const b = rb(input, context);
|
|
2090
|
+
const headers = {
|
|
2091
|
+
"content-type": "application/json",
|
|
2092
|
+
};
|
|
2093
|
+
b.bp("/computation-models/{computationModelId}");
|
|
2094
|
+
b.p("computationModelId", () => input.computationModelId, "{computationModelId}", false);
|
|
2095
|
+
let body;
|
|
2096
|
+
body = JSON.stringify(take(input, {
|
|
2097
|
+
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2098
|
+
computationModelConfiguration: (_) => _json(_),
|
|
2099
|
+
computationModelDataBinding: (_) => se_ComputationModelDataBinding(_, context),
|
|
2100
|
+
computationModelDescription: [],
|
|
2101
|
+
computationModelName: [],
|
|
2102
|
+
}));
|
|
2103
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
2104
|
+
if (context.disableHostPrefix !== true) {
|
|
2105
|
+
resolvedHostname = "api." + resolvedHostname;
|
|
2106
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
2107
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
b.hn(resolvedHostname);
|
|
2111
|
+
b.m("POST").h(headers).b(body);
|
|
2112
|
+
return b.build();
|
|
2113
|
+
};
|
|
1894
2114
|
export const se_UpdateDashboardCommand = async (input, context) => {
|
|
1895
2115
|
const b = rb(input, context);
|
|
1896
2116
|
const headers = {
|
|
@@ -2233,6 +2453,22 @@ export const de_CreateBulkImportJobCommand = async (output, context) => {
|
|
|
2233
2453
|
Object.assign(contents, doc);
|
|
2234
2454
|
return contents;
|
|
2235
2455
|
};
|
|
2456
|
+
export const de_CreateComputationModelCommand = async (output, context) => {
|
|
2457
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2458
|
+
return de_CommandError(output, context);
|
|
2459
|
+
}
|
|
2460
|
+
const contents = map({
|
|
2461
|
+
$metadata: deserializeMetadata(output),
|
|
2462
|
+
});
|
|
2463
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2464
|
+
const doc = take(data, {
|
|
2465
|
+
computationModelArn: __expectString,
|
|
2466
|
+
computationModelId: __expectString,
|
|
2467
|
+
computationModelStatus: _json,
|
|
2468
|
+
});
|
|
2469
|
+
Object.assign(contents, doc);
|
|
2470
|
+
return contents;
|
|
2471
|
+
};
|
|
2236
2472
|
export const de_CreateDashboardCommand = async (output, context) => {
|
|
2237
2473
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2238
2474
|
return de_CommandError(output, context);
|
|
@@ -2364,6 +2600,20 @@ export const de_DeleteAssetModelCompositeModelCommand = async (output, context)
|
|
|
2364
2600
|
Object.assign(contents, doc);
|
|
2365
2601
|
return contents;
|
|
2366
2602
|
};
|
|
2603
|
+
export const de_DeleteComputationModelCommand = async (output, context) => {
|
|
2604
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2605
|
+
return de_CommandError(output, context);
|
|
2606
|
+
}
|
|
2607
|
+
const contents = map({
|
|
2608
|
+
$metadata: deserializeMetadata(output),
|
|
2609
|
+
});
|
|
2610
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2611
|
+
const doc = take(data, {
|
|
2612
|
+
computationModelStatus: _json,
|
|
2613
|
+
});
|
|
2614
|
+
Object.assign(contents, doc);
|
|
2615
|
+
return contents;
|
|
2616
|
+
};
|
|
2367
2617
|
export const de_DeleteDashboardCommand = async (output, context) => {
|
|
2368
2618
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2369
2619
|
return de_CommandError(output, context);
|
|
@@ -2465,6 +2715,7 @@ export const de_DescribeActionCommand = async (output, context) => {
|
|
|
2465
2715
|
actionId: __expectString,
|
|
2466
2716
|
actionPayload: _json,
|
|
2467
2717
|
executionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2718
|
+
resolveTo: _json,
|
|
2468
2719
|
targetResource: _json,
|
|
2469
2720
|
});
|
|
2470
2721
|
Object.assign(contents, doc);
|
|
@@ -2614,6 +2865,46 @@ export const de_DescribeBulkImportJobCommand = async (output, context) => {
|
|
|
2614
2865
|
Object.assign(contents, doc);
|
|
2615
2866
|
return contents;
|
|
2616
2867
|
};
|
|
2868
|
+
export const de_DescribeComputationModelCommand = async (output, context) => {
|
|
2869
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2870
|
+
return de_CommandError(output, context);
|
|
2871
|
+
}
|
|
2872
|
+
const contents = map({
|
|
2873
|
+
$metadata: deserializeMetadata(output),
|
|
2874
|
+
});
|
|
2875
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2876
|
+
const doc = take(data, {
|
|
2877
|
+
actionDefinitions: _json,
|
|
2878
|
+
computationModelArn: __expectString,
|
|
2879
|
+
computationModelConfiguration: _json,
|
|
2880
|
+
computationModelCreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2881
|
+
computationModelDataBinding: (_) => de_ComputationModelDataBinding(_, context),
|
|
2882
|
+
computationModelDescription: __expectString,
|
|
2883
|
+
computationModelId: __expectString,
|
|
2884
|
+
computationModelLastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2885
|
+
computationModelName: __expectString,
|
|
2886
|
+
computationModelStatus: _json,
|
|
2887
|
+
computationModelVersion: __expectString,
|
|
2888
|
+
});
|
|
2889
|
+
Object.assign(contents, doc);
|
|
2890
|
+
return contents;
|
|
2891
|
+
};
|
|
2892
|
+
export const de_DescribeComputationModelExecutionSummaryCommand = async (output, context) => {
|
|
2893
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2894
|
+
return de_CommandError(output, context);
|
|
2895
|
+
}
|
|
2896
|
+
const contents = map({
|
|
2897
|
+
$metadata: deserializeMetadata(output),
|
|
2898
|
+
});
|
|
2899
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2900
|
+
const doc = take(data, {
|
|
2901
|
+
computationModelExecutionSummary: _json,
|
|
2902
|
+
computationModelId: __expectString,
|
|
2903
|
+
resolveTo: _json,
|
|
2904
|
+
});
|
|
2905
|
+
Object.assign(contents, doc);
|
|
2906
|
+
return contents;
|
|
2907
|
+
};
|
|
2617
2908
|
export const de_DescribeDashboardCommand = async (output, context) => {
|
|
2618
2909
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2619
2910
|
return de_CommandError(output, context);
|
|
@@ -2673,6 +2964,30 @@ export const de_DescribeDefaultEncryptionConfigurationCommand = async (output, c
|
|
|
2673
2964
|
Object.assign(contents, doc);
|
|
2674
2965
|
return contents;
|
|
2675
2966
|
};
|
|
2967
|
+
export const de_DescribeExecutionCommand = async (output, context) => {
|
|
2968
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2969
|
+
return de_CommandError(output, context);
|
|
2970
|
+
}
|
|
2971
|
+
const contents = map({
|
|
2972
|
+
$metadata: deserializeMetadata(output),
|
|
2973
|
+
});
|
|
2974
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2975
|
+
const doc = take(data, {
|
|
2976
|
+
actionType: __expectString,
|
|
2977
|
+
executionDetails: _json,
|
|
2978
|
+
executionEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2979
|
+
executionEntityVersion: __expectString,
|
|
2980
|
+
executionId: __expectString,
|
|
2981
|
+
executionResult: _json,
|
|
2982
|
+
executionStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2983
|
+
executionStatus: _json,
|
|
2984
|
+
resolveTo: _json,
|
|
2985
|
+
targetResource: _json,
|
|
2986
|
+
targetResourceVersion: __expectString,
|
|
2987
|
+
});
|
|
2988
|
+
Object.assign(contents, doc);
|
|
2989
|
+
return contents;
|
|
2990
|
+
};
|
|
2676
2991
|
export const de_DescribeGatewayCommand = async (output, context) => {
|
|
2677
2992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2678
2993
|
return de_CommandError(output, context);
|
|
@@ -3105,6 +3420,51 @@ export const de_ListCompositionRelationshipsCommand = async (output, context) =>
|
|
|
3105
3420
|
Object.assign(contents, doc);
|
|
3106
3421
|
return contents;
|
|
3107
3422
|
};
|
|
3423
|
+
export const de_ListComputationModelDataBindingUsagesCommand = async (output, context) => {
|
|
3424
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3425
|
+
return de_CommandError(output, context);
|
|
3426
|
+
}
|
|
3427
|
+
const contents = map({
|
|
3428
|
+
$metadata: deserializeMetadata(output),
|
|
3429
|
+
});
|
|
3430
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3431
|
+
const doc = take(data, {
|
|
3432
|
+
dataBindingUsageSummaries: _json,
|
|
3433
|
+
nextToken: __expectString,
|
|
3434
|
+
});
|
|
3435
|
+
Object.assign(contents, doc);
|
|
3436
|
+
return contents;
|
|
3437
|
+
};
|
|
3438
|
+
export const de_ListComputationModelResolveToResourcesCommand = async (output, context) => {
|
|
3439
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3440
|
+
return de_CommandError(output, context);
|
|
3441
|
+
}
|
|
3442
|
+
const contents = map({
|
|
3443
|
+
$metadata: deserializeMetadata(output),
|
|
3444
|
+
});
|
|
3445
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3446
|
+
const doc = take(data, {
|
|
3447
|
+
computationModelResolveToResourceSummaries: _json,
|
|
3448
|
+
nextToken: __expectString,
|
|
3449
|
+
});
|
|
3450
|
+
Object.assign(contents, doc);
|
|
3451
|
+
return contents;
|
|
3452
|
+
};
|
|
3453
|
+
export const de_ListComputationModelsCommand = async (output, context) => {
|
|
3454
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3455
|
+
return de_CommandError(output, context);
|
|
3456
|
+
}
|
|
3457
|
+
const contents = map({
|
|
3458
|
+
$metadata: deserializeMetadata(output),
|
|
3459
|
+
});
|
|
3460
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3461
|
+
const doc = take(data, {
|
|
3462
|
+
computationModelSummaries: (_) => de_ComputationModelSummaries(_, context),
|
|
3463
|
+
nextToken: __expectString,
|
|
3464
|
+
});
|
|
3465
|
+
Object.assign(contents, doc);
|
|
3466
|
+
return contents;
|
|
3467
|
+
};
|
|
3108
3468
|
export const de_ListDashboardsCommand = async (output, context) => {
|
|
3109
3469
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3110
3470
|
return de_CommandError(output, context);
|
|
@@ -3135,6 +3495,21 @@ export const de_ListDatasetsCommand = async (output, context) => {
|
|
|
3135
3495
|
Object.assign(contents, doc);
|
|
3136
3496
|
return contents;
|
|
3137
3497
|
};
|
|
3498
|
+
export const de_ListExecutionsCommand = async (output, context) => {
|
|
3499
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3500
|
+
return de_CommandError(output, context);
|
|
3501
|
+
}
|
|
3502
|
+
const contents = map({
|
|
3503
|
+
$metadata: deserializeMetadata(output),
|
|
3504
|
+
});
|
|
3505
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3506
|
+
const doc = take(data, {
|
|
3507
|
+
executionSummaries: (_) => de_ExecutionSummaries(_, context),
|
|
3508
|
+
nextToken: __expectString,
|
|
3509
|
+
});
|
|
3510
|
+
Object.assign(contents, doc);
|
|
3511
|
+
return contents;
|
|
3512
|
+
};
|
|
3138
3513
|
export const de_ListGatewaysCommand = async (output, context) => {
|
|
3139
3514
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3140
3515
|
return de_CommandError(output, context);
|
|
@@ -3354,6 +3729,20 @@ export const de_UpdateAssetPropertyCommand = async (output, context) => {
|
|
|
3354
3729
|
await collectBody(output.body, context);
|
|
3355
3730
|
return contents;
|
|
3356
3731
|
};
|
|
3732
|
+
export const de_UpdateComputationModelCommand = async (output, context) => {
|
|
3733
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3734
|
+
return de_CommandError(output, context);
|
|
3735
|
+
}
|
|
3736
|
+
const contents = map({
|
|
3737
|
+
$metadata: deserializeMetadata(output),
|
|
3738
|
+
});
|
|
3739
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3740
|
+
const doc = take(data, {
|
|
3741
|
+
computationModelStatus: _json,
|
|
3742
|
+
});
|
|
3743
|
+
Object.assign(contents, doc);
|
|
3744
|
+
return contents;
|
|
3745
|
+
};
|
|
3357
3746
|
export const de_UpdateDashboardCommand = async (output, context) => {
|
|
3358
3747
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3359
3748
|
return de_CommandError(output, context);
|
|
@@ -3856,6 +4245,29 @@ const se_BatchGetAssetPropertyValueHistoryEntry = (input, context) => {
|
|
|
3856
4245
|
timeOrdering: [],
|
|
3857
4246
|
});
|
|
3858
4247
|
};
|
|
4248
|
+
const se_BindingValueList = (input, context) => {
|
|
4249
|
+
return input
|
|
4250
|
+
.filter((e) => e != null)
|
|
4251
|
+
.map((entry) => {
|
|
4252
|
+
return se_ComputationModelDataBindingValue(entry, context);
|
|
4253
|
+
});
|
|
4254
|
+
};
|
|
4255
|
+
const se_ComputationModelDataBinding = (input, context) => {
|
|
4256
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4257
|
+
if (value === null) {
|
|
4258
|
+
return acc;
|
|
4259
|
+
}
|
|
4260
|
+
acc[key] = se_ComputationModelDataBindingValue(value, context);
|
|
4261
|
+
return acc;
|
|
4262
|
+
}, {});
|
|
4263
|
+
};
|
|
4264
|
+
const se_ComputationModelDataBindingValue = (input, context) => {
|
|
4265
|
+
return take(input, {
|
|
4266
|
+
assetModelProperty: _json,
|
|
4267
|
+
assetProperty: _json,
|
|
4268
|
+
list: (_) => se_BindingValueList(_, context),
|
|
4269
|
+
});
|
|
4270
|
+
};
|
|
3859
4271
|
const se_Image = (input, context) => {
|
|
3860
4272
|
return take(input, {
|
|
3861
4273
|
file: (_) => se_ImageFile(_, context),
|
|
@@ -4130,6 +4542,51 @@ const de_BatchGetAssetPropertyValueSuccessEntry = (output, context) => {
|
|
|
4130
4542
|
entryId: __expectString,
|
|
4131
4543
|
});
|
|
4132
4544
|
};
|
|
4545
|
+
const de_BindingValueList = (output, context) => {
|
|
4546
|
+
const retVal = (output || [])
|
|
4547
|
+
.filter((e) => e != null)
|
|
4548
|
+
.map((entry) => {
|
|
4549
|
+
return de_ComputationModelDataBindingValue(entry, context);
|
|
4550
|
+
});
|
|
4551
|
+
return retVal;
|
|
4552
|
+
};
|
|
4553
|
+
const de_ComputationModelDataBinding = (output, context) => {
|
|
4554
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4555
|
+
if (value === null) {
|
|
4556
|
+
return acc;
|
|
4557
|
+
}
|
|
4558
|
+
acc[key] = de_ComputationModelDataBindingValue(value, context);
|
|
4559
|
+
return acc;
|
|
4560
|
+
}, {});
|
|
4561
|
+
};
|
|
4562
|
+
const de_ComputationModelDataBindingValue = (output, context) => {
|
|
4563
|
+
return take(output, {
|
|
4564
|
+
assetModelProperty: _json,
|
|
4565
|
+
assetProperty: _json,
|
|
4566
|
+
list: (_) => de_BindingValueList(_, context),
|
|
4567
|
+
});
|
|
4568
|
+
};
|
|
4569
|
+
const de_ComputationModelSummaries = (output, context) => {
|
|
4570
|
+
const retVal = (output || [])
|
|
4571
|
+
.filter((e) => e != null)
|
|
4572
|
+
.map((entry) => {
|
|
4573
|
+
return de_ComputationModelSummary(entry, context);
|
|
4574
|
+
});
|
|
4575
|
+
return retVal;
|
|
4576
|
+
};
|
|
4577
|
+
const de_ComputationModelSummary = (output, context) => {
|
|
4578
|
+
return take(output, {
|
|
4579
|
+
arn: __expectString,
|
|
4580
|
+
creationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4581
|
+
description: __expectString,
|
|
4582
|
+
id: __expectString,
|
|
4583
|
+
lastUpdateDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4584
|
+
name: __expectString,
|
|
4585
|
+
status: _json,
|
|
4586
|
+
type: __expectString,
|
|
4587
|
+
version: __expectString,
|
|
4588
|
+
});
|
|
4589
|
+
};
|
|
4133
4590
|
const de_DashboardSummaries = (output, context) => {
|
|
4134
4591
|
const retVal = (output || [])
|
|
4135
4592
|
.filter((e) => e != null)
|
|
@@ -4182,6 +4639,27 @@ const de_DatumList = (output, context) => {
|
|
|
4182
4639
|
});
|
|
4183
4640
|
return retVal;
|
|
4184
4641
|
};
|
|
4642
|
+
const de_ExecutionSummaries = (output, context) => {
|
|
4643
|
+
const retVal = (output || [])
|
|
4644
|
+
.filter((e) => e != null)
|
|
4645
|
+
.map((entry) => {
|
|
4646
|
+
return de_ExecutionSummary(entry, context);
|
|
4647
|
+
});
|
|
4648
|
+
return retVal;
|
|
4649
|
+
};
|
|
4650
|
+
const de_ExecutionSummary = (output, context) => {
|
|
4651
|
+
return take(output, {
|
|
4652
|
+
actionType: __expectString,
|
|
4653
|
+
executionEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4654
|
+
executionEntityVersion: __expectString,
|
|
4655
|
+
executionId: __expectString,
|
|
4656
|
+
executionStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4657
|
+
executionStatus: _json,
|
|
4658
|
+
resolveTo: _json,
|
|
4659
|
+
targetResource: _json,
|
|
4660
|
+
targetResourceVersion: __expectString,
|
|
4661
|
+
});
|
|
4662
|
+
};
|
|
4185
4663
|
const de_GatewaySummaries = (output, context) => {
|
|
4186
4664
|
const retVal = (output || [])
|
|
4187
4665
|
.filter((e) => e != null)
|
|
@@ -4310,7 +4788,9 @@ const _aMT = "assetModelTypes";
|
|
|
4310
4788
|
const _aMV = "assetModelVersion";
|
|
4311
4789
|
const _aP = "aliasPrefix";
|
|
4312
4790
|
const _aT = "aggregateTypes";
|
|
4791
|
+
const _aTc = "actionType";
|
|
4313
4792
|
const _cI = "conversationId";
|
|
4793
|
+
const _cMT = "computationModelType";
|
|
4314
4794
|
const _cT = "clientToken";
|
|
4315
4795
|
const _e = "etag";
|
|
4316
4796
|
const _eD = "endDate";
|
|
@@ -4343,6 +4823,8 @@ const _r = "resolution";
|
|
|
4343
4823
|
const _rA = "resourceArn";
|
|
4344
4824
|
const _rI = "resourceId";
|
|
4345
4825
|
const _rT = "resourceType";
|
|
4826
|
+
const _rTRI = "resolveToResourceId";
|
|
4827
|
+
const _rTRT = "resolveToResourceType";
|
|
4346
4828
|
const _sD = "startDate";
|
|
4347
4829
|
const _sT = "sourceType";
|
|
4348
4830
|
const _sTIS = "startTimeInSeconds";
|