@aws-sdk/client-iotsitewise 3.131.0 → 3.135.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 (40) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/IoTSiteWise.js +45 -0
  3. package/dist-cjs/commands/CreateBulkImportJobCommand.js +36 -0
  4. package/dist-cjs/commands/DescribeBulkImportJobCommand.js +36 -0
  5. package/dist-cjs/commands/ListBulkImportJobsCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +106 -4
  8. package/dist-cjs/pagination/ListBulkImportJobsPaginator.js +36 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +411 -3
  11. package/dist-es/IoTSiteWise.js +45 -0
  12. package/dist-es/commands/CreateBulkImportJobCommand.js +39 -0
  13. package/dist-es/commands/DescribeBulkImportJobCommand.js +39 -0
  14. package/dist-es/commands/ListBulkImportJobsCommand.js +39 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +78 -0
  17. package/dist-es/pagination/ListBulkImportJobsPaginator.js +75 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_restJson1.js +475 -0
  20. package/dist-types/IoTSiteWise.d.ts +44 -0
  21. package/dist-types/IoTSiteWiseClient.d.ts +5 -2
  22. package/dist-types/commands/CreateBulkImportJobCommand.d.ts +46 -0
  23. package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +41 -0
  24. package/dist-types/commands/ListBulkImportJobsCommand.d.ts +41 -0
  25. package/dist-types/commands/index.d.ts +3 -0
  26. package/dist-types/models/models_0.d.ts +366 -0
  27. package/dist-types/pagination/ListBulkImportJobsPaginator.d.ts +4 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  30. package/dist-types/ts3.4/IoTSiteWise.d.ts +15 -0
  31. package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +5 -2
  32. package/dist-types/ts3.4/commands/CreateBulkImportJobCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/DescribeBulkImportJobCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/ListBulkImportJobsCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +173 -0
  37. package/dist-types/ts3.4/pagination/ListBulkImportJobsPaginator.d.ts +4 -0
  38. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  39. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
  40. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_restJson1ListPortalsCommand = exports.serializeAws_restJson1ListGatewaysCommand = exports.serializeAws_restJson1ListDashboardsCommand = exports.serializeAws_restJson1ListAssociatedAssetsCommand = exports.serializeAws_restJson1ListAssetsCommand = exports.serializeAws_restJson1ListAssetRelationshipsCommand = exports.serializeAws_restJson1ListAssetModelsCommand = exports.serializeAws_restJson1ListAccessPoliciesCommand = exports.serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.serializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1GetAssetPropertyValueCommand = exports.serializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.serializeAws_restJson1DisassociateAssetsCommand = exports.serializeAws_restJson1DescribeTimeSeriesCommand = exports.serializeAws_restJson1DescribeStorageConfigurationCommand = exports.serializeAws_restJson1DescribeProjectCommand = exports.serializeAws_restJson1DescribePortalCommand = exports.serializeAws_restJson1DescribeLoggingOptionsCommand = exports.serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1DescribeGatewayCommand = exports.serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1DescribeDashboardCommand = exports.serializeAws_restJson1DescribeAssetPropertyCommand = exports.serializeAws_restJson1DescribeAssetModelCommand = exports.serializeAws_restJson1DescribeAssetCommand = exports.serializeAws_restJson1DescribeAccessPolicyCommand = exports.serializeAws_restJson1DeleteTimeSeriesCommand = exports.serializeAws_restJson1DeleteProjectCommand = exports.serializeAws_restJson1DeletePortalCommand = exports.serializeAws_restJson1DeleteGatewayCommand = exports.serializeAws_restJson1DeleteDashboardCommand = exports.serializeAws_restJson1DeleteAssetModelCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1DeleteAccessPolicyCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreatePortalCommand = exports.serializeAws_restJson1CreateGatewayCommand = exports.serializeAws_restJson1CreateDashboardCommand = exports.serializeAws_restJson1CreateAssetModelCommand = exports.serializeAws_restJson1CreateAssetCommand = exports.serializeAws_restJson1CreateAccessPolicyCommand = exports.serializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.serializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.serializeAws_restJson1AssociateAssetsCommand = void 0;
4
- exports.deserializeAws_restJson1DescribeLoggingOptionsCommand = exports.deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1DescribeGatewayCommand = exports.deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1DescribeDashboardCommand = exports.deserializeAws_restJson1DescribeAssetPropertyCommand = exports.deserializeAws_restJson1DescribeAssetModelCommand = exports.deserializeAws_restJson1DescribeAssetCommand = exports.deserializeAws_restJson1DescribeAccessPolicyCommand = exports.deserializeAws_restJson1DeleteTimeSeriesCommand = exports.deserializeAws_restJson1DeleteProjectCommand = exports.deserializeAws_restJson1DeletePortalCommand = exports.deserializeAws_restJson1DeleteGatewayCommand = exports.deserializeAws_restJson1DeleteDashboardCommand = exports.deserializeAws_restJson1DeleteAssetModelCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1DeleteAccessPolicyCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreatePortalCommand = exports.deserializeAws_restJson1CreateGatewayCommand = exports.deserializeAws_restJson1CreateDashboardCommand = exports.deserializeAws_restJson1CreateAssetModelCommand = exports.deserializeAws_restJson1CreateAssetCommand = exports.deserializeAws_restJson1CreateAccessPolicyCommand = exports.deserializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.deserializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.deserializeAws_restJson1AssociateAssetsCommand = exports.serializeAws_restJson1UpdateProjectCommand = exports.serializeAws_restJson1UpdatePortalCommand = exports.serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1UpdateGatewayCommand = exports.serializeAws_restJson1UpdateDashboardCommand = exports.serializeAws_restJson1UpdateAssetPropertyCommand = exports.serializeAws_restJson1UpdateAssetModelCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UpdateAccessPolicyCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutStorageConfigurationCommand = exports.serializeAws_restJson1PutLoggingOptionsCommand = exports.serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1ListTimeSeriesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListProjectAssetsCommand = void 0;
5
- exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdatePortalCommand = exports.deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1UpdateGatewayCommand = exports.deserializeAws_restJson1UpdateDashboardCommand = exports.deserializeAws_restJson1UpdateAssetPropertyCommand = exports.deserializeAws_restJson1UpdateAssetModelCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UpdateAccessPolicyCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutStorageConfigurationCommand = exports.deserializeAws_restJson1PutLoggingOptionsCommand = exports.deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1ListTimeSeriesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListProjectAssetsCommand = exports.deserializeAws_restJson1ListPortalsCommand = exports.deserializeAws_restJson1ListGatewaysCommand = exports.deserializeAws_restJson1ListDashboardsCommand = exports.deserializeAws_restJson1ListAssociatedAssetsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1ListAssetRelationshipsCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAccessPoliciesCommand = exports.deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetAssetPropertyValueCommand = exports.deserializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.deserializeAws_restJson1DisassociateAssetsCommand = exports.deserializeAws_restJson1DescribeTimeSeriesCommand = exports.deserializeAws_restJson1DescribeStorageConfigurationCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribePortalCommand = void 0;
3
+ exports.serializeAws_restJson1ListBulkImportJobsCommand = exports.serializeAws_restJson1ListAssociatedAssetsCommand = exports.serializeAws_restJson1ListAssetsCommand = exports.serializeAws_restJson1ListAssetRelationshipsCommand = exports.serializeAws_restJson1ListAssetModelsCommand = exports.serializeAws_restJson1ListAccessPoliciesCommand = exports.serializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.serializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1GetAssetPropertyValueCommand = exports.serializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.serializeAws_restJson1DisassociateAssetsCommand = exports.serializeAws_restJson1DescribeTimeSeriesCommand = exports.serializeAws_restJson1DescribeStorageConfigurationCommand = exports.serializeAws_restJson1DescribeProjectCommand = exports.serializeAws_restJson1DescribePortalCommand = exports.serializeAws_restJson1DescribeLoggingOptionsCommand = exports.serializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1DescribeGatewayCommand = exports.serializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1DescribeDashboardCommand = exports.serializeAws_restJson1DescribeBulkImportJobCommand = exports.serializeAws_restJson1DescribeAssetPropertyCommand = exports.serializeAws_restJson1DescribeAssetModelCommand = exports.serializeAws_restJson1DescribeAssetCommand = exports.serializeAws_restJson1DescribeAccessPolicyCommand = exports.serializeAws_restJson1DeleteTimeSeriesCommand = exports.serializeAws_restJson1DeleteProjectCommand = exports.serializeAws_restJson1DeletePortalCommand = exports.serializeAws_restJson1DeleteGatewayCommand = exports.serializeAws_restJson1DeleteDashboardCommand = exports.serializeAws_restJson1DeleteAssetModelCommand = exports.serializeAws_restJson1DeleteAssetCommand = exports.serializeAws_restJson1DeleteAccessPolicyCommand = exports.serializeAws_restJson1CreateProjectCommand = exports.serializeAws_restJson1CreatePortalCommand = exports.serializeAws_restJson1CreateGatewayCommand = exports.serializeAws_restJson1CreateDashboardCommand = exports.serializeAws_restJson1CreateBulkImportJobCommand = exports.serializeAws_restJson1CreateAssetModelCommand = exports.serializeAws_restJson1CreateAssetCommand = exports.serializeAws_restJson1CreateAccessPolicyCommand = exports.serializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.serializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.serializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.serializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.serializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.serializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.serializeAws_restJson1AssociateAssetsCommand = void 0;
4
+ exports.deserializeAws_restJson1DescribeBulkImportJobCommand = exports.deserializeAws_restJson1DescribeAssetPropertyCommand = exports.deserializeAws_restJson1DescribeAssetModelCommand = exports.deserializeAws_restJson1DescribeAssetCommand = exports.deserializeAws_restJson1DescribeAccessPolicyCommand = exports.deserializeAws_restJson1DeleteTimeSeriesCommand = exports.deserializeAws_restJson1DeleteProjectCommand = exports.deserializeAws_restJson1DeletePortalCommand = exports.deserializeAws_restJson1DeleteGatewayCommand = exports.deserializeAws_restJson1DeleteDashboardCommand = exports.deserializeAws_restJson1DeleteAssetModelCommand = exports.deserializeAws_restJson1DeleteAssetCommand = exports.deserializeAws_restJson1DeleteAccessPolicyCommand = exports.deserializeAws_restJson1CreateProjectCommand = exports.deserializeAws_restJson1CreatePortalCommand = exports.deserializeAws_restJson1CreateGatewayCommand = exports.deserializeAws_restJson1CreateDashboardCommand = exports.deserializeAws_restJson1CreateBulkImportJobCommand = exports.deserializeAws_restJson1CreateAssetModelCommand = exports.deserializeAws_restJson1CreateAssetCommand = exports.deserializeAws_restJson1CreateAccessPolicyCommand = exports.deserializeAws_restJson1BatchPutAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyValueCommand = exports.deserializeAws_restJson1BatchGetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1BatchDisassociateProjectAssetsCommand = exports.deserializeAws_restJson1BatchAssociateProjectAssetsCommand = exports.deserializeAws_restJson1AssociateTimeSeriesToAssetPropertyCommand = exports.deserializeAws_restJson1AssociateAssetsCommand = exports.serializeAws_restJson1UpdateProjectCommand = exports.serializeAws_restJson1UpdatePortalCommand = exports.serializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.serializeAws_restJson1UpdateGatewayCommand = exports.serializeAws_restJson1UpdateDashboardCommand = exports.serializeAws_restJson1UpdateAssetPropertyCommand = exports.serializeAws_restJson1UpdateAssetModelCommand = exports.serializeAws_restJson1UpdateAssetCommand = exports.serializeAws_restJson1UpdateAccessPolicyCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1PutStorageConfigurationCommand = exports.serializeAws_restJson1PutLoggingOptionsCommand = exports.serializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.serializeAws_restJson1ListTimeSeriesCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListProjectsCommand = exports.serializeAws_restJson1ListProjectAssetsCommand = exports.serializeAws_restJson1ListPortalsCommand = exports.serializeAws_restJson1ListGatewaysCommand = exports.serializeAws_restJson1ListDashboardsCommand = void 0;
5
+ exports.deserializeAws_restJson1UpdateProjectCommand = exports.deserializeAws_restJson1UpdatePortalCommand = exports.deserializeAws_restJson1UpdateGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1UpdateGatewayCommand = exports.deserializeAws_restJson1UpdateDashboardCommand = exports.deserializeAws_restJson1UpdateAssetPropertyCommand = exports.deserializeAws_restJson1UpdateAssetModelCommand = exports.deserializeAws_restJson1UpdateAssetCommand = exports.deserializeAws_restJson1UpdateAccessPolicyCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1PutStorageConfigurationCommand = exports.deserializeAws_restJson1PutLoggingOptionsCommand = exports.deserializeAws_restJson1PutDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1ListTimeSeriesCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListProjectsCommand = exports.deserializeAws_restJson1ListProjectAssetsCommand = exports.deserializeAws_restJson1ListPortalsCommand = exports.deserializeAws_restJson1ListGatewaysCommand = exports.deserializeAws_restJson1ListDashboardsCommand = exports.deserializeAws_restJson1ListBulkImportJobsCommand = exports.deserializeAws_restJson1ListAssociatedAssetsCommand = exports.deserializeAws_restJson1ListAssetsCommand = exports.deserializeAws_restJson1ListAssetRelationshipsCommand = exports.deserializeAws_restJson1ListAssetModelsCommand = exports.deserializeAws_restJson1ListAccessPoliciesCommand = exports.deserializeAws_restJson1GetInterpolatedAssetPropertyValuesCommand = exports.deserializeAws_restJson1GetAssetPropertyValueHistoryCommand = exports.deserializeAws_restJson1GetAssetPropertyValueCommand = exports.deserializeAws_restJson1GetAssetPropertyAggregatesCommand = exports.deserializeAws_restJson1DisassociateTimeSeriesFromAssetPropertyCommand = exports.deserializeAws_restJson1DisassociateAssetsCommand = exports.deserializeAws_restJson1DescribeTimeSeriesCommand = exports.deserializeAws_restJson1DescribeStorageConfigurationCommand = exports.deserializeAws_restJson1DescribeProjectCommand = exports.deserializeAws_restJson1DescribePortalCommand = exports.deserializeAws_restJson1DescribeLoggingOptionsCommand = exports.deserializeAws_restJson1DescribeGatewayCapabilityConfigurationCommand = exports.deserializeAws_restJson1DescribeGatewayCommand = exports.deserializeAws_restJson1DescribeDefaultEncryptionConfigurationCommand = exports.deserializeAws_restJson1DescribeDashboardCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
8
  const uuid_1 = require("uuid");
@@ -400,6 +400,42 @@ const serializeAws_restJson1CreateAssetModelCommand = async (input, context) =>
400
400
  });
401
401
  };
402
402
  exports.serializeAws_restJson1CreateAssetModelCommand = serializeAws_restJson1CreateAssetModelCommand;
403
+ const serializeAws_restJson1CreateBulkImportJobCommand = async (input, context) => {
404
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
405
+ const headers = {
406
+ "content-type": "application/json",
407
+ };
408
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
409
+ let body;
410
+ body = JSON.stringify({
411
+ ...(input.errorReportLocation != null && {
412
+ errorReportLocation: serializeAws_restJson1ErrorReportLocation(input.errorReportLocation, context),
413
+ }),
414
+ ...(input.files != null && { files: serializeAws_restJson1Files(input.files, context) }),
415
+ ...(input.jobConfiguration != null && {
416
+ jobConfiguration: serializeAws_restJson1JobConfiguration(input.jobConfiguration, context),
417
+ }),
418
+ ...(input.jobName != null && { jobName: input.jobName }),
419
+ ...(input.jobRoleArn != null && { jobRoleArn: input.jobRoleArn }),
420
+ });
421
+ let { hostname: resolvedHostname } = await context.endpoint();
422
+ if (context.disableHostPrefix !== true) {
423
+ resolvedHostname = "data." + resolvedHostname;
424
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
425
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
426
+ }
427
+ }
428
+ return new protocol_http_1.HttpRequest({
429
+ protocol,
430
+ hostname: resolvedHostname,
431
+ port,
432
+ method: "POST",
433
+ headers,
434
+ path: resolvedPath,
435
+ body,
436
+ });
437
+ };
438
+ exports.serializeAws_restJson1CreateBulkImportJobCommand = serializeAws_restJson1CreateBulkImportJobCommand;
403
439
  const serializeAws_restJson1CreateDashboardCommand = async (input, context) => {
404
440
  var _a;
405
441
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
@@ -971,6 +1007,39 @@ const serializeAws_restJson1DescribeAssetPropertyCommand = async (input, context
971
1007
  });
972
1008
  };
973
1009
  exports.serializeAws_restJson1DescribeAssetPropertyCommand = serializeAws_restJson1DescribeAssetPropertyCommand;
1010
+ const serializeAws_restJson1DescribeBulkImportJobCommand = async (input, context) => {
1011
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1012
+ const headers = {};
1013
+ let resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs/{jobId}";
1014
+ if (input.jobId !== undefined) {
1015
+ const labelValue = input.jobId;
1016
+ if (labelValue.length <= 0) {
1017
+ throw new Error("Empty value provided for input HTTP label: jobId.");
1018
+ }
1019
+ resolvedPath = resolvedPath.replace("{jobId}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1020
+ }
1021
+ else {
1022
+ throw new Error("No value provided for input HTTP label: jobId.");
1023
+ }
1024
+ let body;
1025
+ let { hostname: resolvedHostname } = await context.endpoint();
1026
+ if (context.disableHostPrefix !== true) {
1027
+ resolvedHostname = "data." + resolvedHostname;
1028
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1029
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1030
+ }
1031
+ }
1032
+ return new protocol_http_1.HttpRequest({
1033
+ protocol,
1034
+ hostname: resolvedHostname,
1035
+ port,
1036
+ method: "GET",
1037
+ headers,
1038
+ path: resolvedPath,
1039
+ body,
1040
+ });
1041
+ };
1042
+ exports.serializeAws_restJson1DescribeBulkImportJobCommand = serializeAws_restJson1DescribeBulkImportJobCommand;
974
1043
  const serializeAws_restJson1DescribeDashboardCommand = async (input, context) => {
975
1044
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
976
1045
  const headers = {};
@@ -1646,6 +1715,35 @@ const serializeAws_restJson1ListAssociatedAssetsCommand = async (input, context)
1646
1715
  });
1647
1716
  };
1648
1717
  exports.serializeAws_restJson1ListAssociatedAssetsCommand = serializeAws_restJson1ListAssociatedAssetsCommand;
1718
+ const serializeAws_restJson1ListBulkImportJobsCommand = async (input, context) => {
1719
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1720
+ const headers = {};
1721
+ const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/jobs";
1722
+ const query = {
1723
+ ...(input.nextToken !== undefined && { nextToken: input.nextToken }),
1724
+ ...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
1725
+ ...(input.filter !== undefined && { filter: input.filter }),
1726
+ };
1727
+ let body;
1728
+ let { hostname: resolvedHostname } = await context.endpoint();
1729
+ if (context.disableHostPrefix !== true) {
1730
+ resolvedHostname = "data." + resolvedHostname;
1731
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
1732
+ throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
1733
+ }
1734
+ }
1735
+ return new protocol_http_1.HttpRequest({
1736
+ protocol,
1737
+ hostname: resolvedHostname,
1738
+ port,
1739
+ method: "GET",
1740
+ headers,
1741
+ path: resolvedPath,
1742
+ query,
1743
+ body,
1744
+ });
1745
+ };
1746
+ exports.serializeAws_restJson1ListBulkImportJobsCommand = serializeAws_restJson1ListBulkImportJobsCommand;
1649
1747
  const serializeAws_restJson1ListDashboardsCommand = async (input, context) => {
1650
1748
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1651
1749
  const headers = {};
@@ -3013,6 +3111,70 @@ const deserializeAws_restJson1CreateAssetModelCommandError = async (output, cont
3013
3111
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3014
3112
  }
3015
3113
  };
3114
+ const deserializeAws_restJson1CreateBulkImportJobCommand = async (output, context) => {
3115
+ if (output.statusCode !== 202 && output.statusCode >= 300) {
3116
+ return deserializeAws_restJson1CreateBulkImportJobCommandError(output, context);
3117
+ }
3118
+ const contents = {
3119
+ $metadata: deserializeMetadata(output),
3120
+ jobId: undefined,
3121
+ jobName: undefined,
3122
+ jobStatus: undefined,
3123
+ };
3124
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3125
+ if (data.jobId !== undefined && data.jobId !== null) {
3126
+ contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
3127
+ }
3128
+ if (data.jobName !== undefined && data.jobName !== null) {
3129
+ contents.jobName = (0, smithy_client_1.expectString)(data.jobName);
3130
+ }
3131
+ if (data.jobStatus !== undefined && data.jobStatus !== null) {
3132
+ contents.jobStatus = (0, smithy_client_1.expectString)(data.jobStatus);
3133
+ }
3134
+ return Promise.resolve(contents);
3135
+ };
3136
+ exports.deserializeAws_restJson1CreateBulkImportJobCommand = deserializeAws_restJson1CreateBulkImportJobCommand;
3137
+ const deserializeAws_restJson1CreateBulkImportJobCommandError = async (output, context) => {
3138
+ const parsedOutput = {
3139
+ ...output,
3140
+ body: await parseBody(output.body, context),
3141
+ };
3142
+ let response;
3143
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3144
+ switch (errorCode) {
3145
+ case "ConflictingOperationException":
3146
+ case "com.amazonaws.iotsitewise#ConflictingOperationException":
3147
+ throw await deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context);
3148
+ case "InternalFailureException":
3149
+ case "com.amazonaws.iotsitewise#InternalFailureException":
3150
+ throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
3151
+ case "InvalidRequestException":
3152
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
3153
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
3154
+ case "LimitExceededException":
3155
+ case "com.amazonaws.iotsitewise#LimitExceededException":
3156
+ throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
3157
+ case "ResourceAlreadyExistsException":
3158
+ case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException":
3159
+ throw await deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
3160
+ case "ResourceNotFoundException":
3161
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
3162
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
3163
+ case "ThrottlingException":
3164
+ case "com.amazonaws.iotsitewise#ThrottlingException":
3165
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
3166
+ default:
3167
+ const parsedBody = parsedOutput.body;
3168
+ const $metadata = deserializeMetadata(output);
3169
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
3170
+ response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
3171
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
3172
+ $fault: "client",
3173
+ $metadata,
3174
+ });
3175
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3176
+ }
3177
+ };
3016
3178
  const deserializeAws_restJson1CreateDashboardCommand = async (output, context) => {
3017
3179
  if (output.statusCode !== 201 && output.statusCode >= 300) {
3018
3180
  return deserializeAws_restJson1CreateDashboardCommandError(output, context);
@@ -3913,6 +4075,85 @@ const deserializeAws_restJson1DescribeAssetPropertyCommandError = async (output,
3913
4075
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3914
4076
  }
3915
4077
  };
4078
+ const deserializeAws_restJson1DescribeBulkImportJobCommand = async (output, context) => {
4079
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
4080
+ return deserializeAws_restJson1DescribeBulkImportJobCommandError(output, context);
4081
+ }
4082
+ const contents = {
4083
+ $metadata: deserializeMetadata(output),
4084
+ errorReportLocation: undefined,
4085
+ files: undefined,
4086
+ jobConfiguration: undefined,
4087
+ jobCreationDate: undefined,
4088
+ jobId: undefined,
4089
+ jobLastUpdateDate: undefined,
4090
+ jobName: undefined,
4091
+ jobRoleArn: undefined,
4092
+ jobStatus: undefined,
4093
+ };
4094
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4095
+ if (data.errorReportLocation !== undefined && data.errorReportLocation !== null) {
4096
+ contents.errorReportLocation = deserializeAws_restJson1ErrorReportLocation(data.errorReportLocation, context);
4097
+ }
4098
+ if (data.files !== undefined && data.files !== null) {
4099
+ contents.files = deserializeAws_restJson1Files(data.files, context);
4100
+ }
4101
+ if (data.jobConfiguration !== undefined && data.jobConfiguration !== null) {
4102
+ contents.jobConfiguration = deserializeAws_restJson1JobConfiguration(data.jobConfiguration, context);
4103
+ }
4104
+ if (data.jobCreationDate !== undefined && data.jobCreationDate !== null) {
4105
+ contents.jobCreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.jobCreationDate)));
4106
+ }
4107
+ if (data.jobId !== undefined && data.jobId !== null) {
4108
+ contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
4109
+ }
4110
+ if (data.jobLastUpdateDate !== undefined && data.jobLastUpdateDate !== null) {
4111
+ contents.jobLastUpdateDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.jobLastUpdateDate)));
4112
+ }
4113
+ if (data.jobName !== undefined && data.jobName !== null) {
4114
+ contents.jobName = (0, smithy_client_1.expectString)(data.jobName);
4115
+ }
4116
+ if (data.jobRoleArn !== undefined && data.jobRoleArn !== null) {
4117
+ contents.jobRoleArn = (0, smithy_client_1.expectString)(data.jobRoleArn);
4118
+ }
4119
+ if (data.jobStatus !== undefined && data.jobStatus !== null) {
4120
+ contents.jobStatus = (0, smithy_client_1.expectString)(data.jobStatus);
4121
+ }
4122
+ return Promise.resolve(contents);
4123
+ };
4124
+ exports.deserializeAws_restJson1DescribeBulkImportJobCommand = deserializeAws_restJson1DescribeBulkImportJobCommand;
4125
+ const deserializeAws_restJson1DescribeBulkImportJobCommandError = async (output, context) => {
4126
+ const parsedOutput = {
4127
+ ...output,
4128
+ body: await parseBody(output.body, context),
4129
+ };
4130
+ let response;
4131
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
4132
+ switch (errorCode) {
4133
+ case "InternalFailureException":
4134
+ case "com.amazonaws.iotsitewise#InternalFailureException":
4135
+ throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
4136
+ case "InvalidRequestException":
4137
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
4138
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
4139
+ case "ResourceNotFoundException":
4140
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
4141
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
4142
+ case "ThrottlingException":
4143
+ case "com.amazonaws.iotsitewise#ThrottlingException":
4144
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
4145
+ default:
4146
+ const parsedBody = parsedOutput.body;
4147
+ const $metadata = deserializeMetadata(output);
4148
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
4149
+ response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
4150
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
4151
+ $fault: "client",
4152
+ $metadata,
4153
+ });
4154
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4155
+ }
4156
+ };
3916
4157
  const deserializeAws_restJson1DescribeDashboardCommand = async (output, context) => {
3917
4158
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3918
4159
  return deserializeAws_restJson1DescribeDashboardCommandError(output, context);
@@ -5092,6 +5333,57 @@ const deserializeAws_restJson1ListAssociatedAssetsCommandError = async (output,
5092
5333
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5093
5334
  }
5094
5335
  };
5336
+ const deserializeAws_restJson1ListBulkImportJobsCommand = async (output, context) => {
5337
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
5338
+ return deserializeAws_restJson1ListBulkImportJobsCommandError(output, context);
5339
+ }
5340
+ const contents = {
5341
+ $metadata: deserializeMetadata(output),
5342
+ jobSummaries: undefined,
5343
+ nextToken: undefined,
5344
+ };
5345
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5346
+ if (data.jobSummaries !== undefined && data.jobSummaries !== null) {
5347
+ contents.jobSummaries = deserializeAws_restJson1JobSummaries(data.jobSummaries, context);
5348
+ }
5349
+ if (data.nextToken !== undefined && data.nextToken !== null) {
5350
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
5351
+ }
5352
+ return Promise.resolve(contents);
5353
+ };
5354
+ exports.deserializeAws_restJson1ListBulkImportJobsCommand = deserializeAws_restJson1ListBulkImportJobsCommand;
5355
+ const deserializeAws_restJson1ListBulkImportJobsCommandError = async (output, context) => {
5356
+ const parsedOutput = {
5357
+ ...output,
5358
+ body: await parseBody(output.body, context),
5359
+ };
5360
+ let response;
5361
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5362
+ switch (errorCode) {
5363
+ case "InternalFailureException":
5364
+ case "com.amazonaws.iotsitewise#InternalFailureException":
5365
+ throw await deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context);
5366
+ case "InvalidRequestException":
5367
+ case "com.amazonaws.iotsitewise#InvalidRequestException":
5368
+ throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
5369
+ case "ResourceNotFoundException":
5370
+ case "com.amazonaws.iotsitewise#ResourceNotFoundException":
5371
+ throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
5372
+ case "ThrottlingException":
5373
+ case "com.amazonaws.iotsitewise#ThrottlingException":
5374
+ throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
5375
+ default:
5376
+ const parsedBody = parsedOutput.body;
5377
+ const $metadata = deserializeMetadata(output);
5378
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
5379
+ response = new IoTSiteWiseServiceException_1.IoTSiteWiseServiceException({
5380
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
5381
+ $fault: "client",
5382
+ $metadata,
5383
+ });
5384
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5385
+ }
5386
+ };
5095
5387
  const deserializeAws_restJson1ListDashboardsCommand = async (output, context) => {
5096
5388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5097
5389
  return deserializeAws_restJson1ListDashboardsCommandError(output, context);
@@ -6510,12 +6802,33 @@ const serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = (input, con
6510
6802
  ...(input.timeOrdering != null && { timeOrdering: input.timeOrdering }),
6511
6803
  };
6512
6804
  };
6805
+ const serializeAws_restJson1ColumnNames = (input, context) => {
6806
+ return input
6807
+ .filter((e) => e != null)
6808
+ .map((entry) => {
6809
+ if (entry === null) {
6810
+ return null;
6811
+ }
6812
+ return entry;
6813
+ });
6814
+ };
6815
+ const serializeAws_restJson1Csv = (input, context) => {
6816
+ return {
6817
+ ...(input.columnNames != null && { columnNames: serializeAws_restJson1ColumnNames(input.columnNames, context) }),
6818
+ };
6819
+ };
6513
6820
  const serializeAws_restJson1CustomerManagedS3Storage = (input, context) => {
6514
6821
  return {
6515
6822
  ...(input.roleArn != null && { roleArn: input.roleArn }),
6516
6823
  ...(input.s3ResourceArn != null && { s3ResourceArn: input.s3ResourceArn }),
6517
6824
  };
6518
6825
  };
6826
+ const serializeAws_restJson1ErrorReportLocation = (input, context) => {
6827
+ return {
6828
+ ...(input.bucket != null && { bucket: input.bucket }),
6829
+ ...(input.prefix != null && { prefix: input.prefix }),
6830
+ };
6831
+ };
6519
6832
  const serializeAws_restJson1ExpressionVariable = (input, context) => {
6520
6833
  return {
6521
6834
  ...(input.name != null && { name: input.name }),
@@ -6532,6 +6845,28 @@ const serializeAws_restJson1ExpressionVariables = (input, context) => {
6532
6845
  return serializeAws_restJson1ExpressionVariable(entry, context);
6533
6846
  });
6534
6847
  };
6848
+ const serializeAws_restJson1File = (input, context) => {
6849
+ return {
6850
+ ...(input.bucket != null && { bucket: input.bucket }),
6851
+ ...(input.key != null && { key: input.key }),
6852
+ ...(input.versionId != null && { versionId: input.versionId }),
6853
+ };
6854
+ };
6855
+ const serializeAws_restJson1FileFormat = (input, context) => {
6856
+ return {
6857
+ ...(input.csv != null && { csv: serializeAws_restJson1Csv(input.csv, context) }),
6858
+ };
6859
+ };
6860
+ const serializeAws_restJson1Files = (input, context) => {
6861
+ return input
6862
+ .filter((e) => e != null)
6863
+ .map((entry) => {
6864
+ if (entry === null) {
6865
+ return null;
6866
+ }
6867
+ return serializeAws_restJson1File(entry, context);
6868
+ });
6869
+ };
6535
6870
  const serializeAws_restJson1ForwardingConfig = (input, context) => {
6536
6871
  return {
6537
6872
  ...(input.state != null && { state: input.state }),
@@ -6600,6 +6935,11 @@ const serializeAws_restJson1ImageFile = (input, context) => {
6600
6935
  ...(input.type != null && { type: input.type }),
6601
6936
  };
6602
6937
  };
6938
+ const serializeAws_restJson1JobConfiguration = (input, context) => {
6939
+ return {
6940
+ ...(input.fileFormat != null && { fileFormat: serializeAws_restJson1FileFormat(input.fileFormat, context) }),
6941
+ };
6942
+ };
6603
6943
  const serializeAws_restJson1LoggingOptions = (input, context) => {
6604
6944
  return {
6605
6945
  ...(input.level != null && { level: input.level }),
@@ -7355,6 +7695,17 @@ const deserializeAws_restJson1BatchPutAssetPropertyErrors = (output, context) =>
7355
7695
  });
7356
7696
  return retVal;
7357
7697
  };
7698
+ const deserializeAws_restJson1ColumnNames = (output, context) => {
7699
+ const retVal = (output || [])
7700
+ .filter((e) => e != null)
7701
+ .map((entry) => {
7702
+ if (entry === null) {
7703
+ return null;
7704
+ }
7705
+ return (0, smithy_client_1.expectString)(entry);
7706
+ });
7707
+ return retVal;
7708
+ };
7358
7709
  const deserializeAws_restJson1CompositeModelProperty = (output, context) => {
7359
7710
  return {
7360
7711
  assetProperty: output.assetProperty != null ? deserializeAws_restJson1Property(output.assetProperty, context) : undefined,
@@ -7374,6 +7725,11 @@ const deserializeAws_restJson1ConfigurationStatus = (output, context) => {
7374
7725
  state: (0, smithy_client_1.expectString)(output.state),
7375
7726
  };
7376
7727
  };
7728
+ const deserializeAws_restJson1Csv = (output, context) => {
7729
+ return {
7730
+ columnNames: output.columnNames != null ? deserializeAws_restJson1ColumnNames(output.columnNames, context) : undefined,
7731
+ };
7732
+ };
7377
7733
  const deserializeAws_restJson1CustomerManagedS3Storage = (output, context) => {
7378
7734
  return {
7379
7735
  roleArn: (0, smithy_client_1.expectString)(output.roleArn),
@@ -7428,6 +7784,12 @@ const deserializeAws_restJson1ErrorDetails = (output, context) => {
7428
7784
  message: (0, smithy_client_1.expectString)(output.message),
7429
7785
  };
7430
7786
  };
7787
+ const deserializeAws_restJson1ErrorReportLocation = (output, context) => {
7788
+ return {
7789
+ bucket: (0, smithy_client_1.expectString)(output.bucket),
7790
+ prefix: (0, smithy_client_1.expectString)(output.prefix),
7791
+ };
7792
+ };
7431
7793
  const deserializeAws_restJson1ExpressionVariable = (output, context) => {
7432
7794
  return {
7433
7795
  name: (0, smithy_client_1.expectString)(output.name),
@@ -7445,6 +7807,29 @@ const deserializeAws_restJson1ExpressionVariables = (output, context) => {
7445
7807
  });
7446
7808
  return retVal;
7447
7809
  };
7810
+ const deserializeAws_restJson1File = (output, context) => {
7811
+ return {
7812
+ bucket: (0, smithy_client_1.expectString)(output.bucket),
7813
+ key: (0, smithy_client_1.expectString)(output.key),
7814
+ versionId: (0, smithy_client_1.expectString)(output.versionId),
7815
+ };
7816
+ };
7817
+ const deserializeAws_restJson1FileFormat = (output, context) => {
7818
+ return {
7819
+ csv: output.csv != null ? deserializeAws_restJson1Csv(output.csv, context) : undefined,
7820
+ };
7821
+ };
7822
+ const deserializeAws_restJson1Files = (output, context) => {
7823
+ const retVal = (output || [])
7824
+ .filter((e) => e != null)
7825
+ .map((entry) => {
7826
+ if (entry === null) {
7827
+ return null;
7828
+ }
7829
+ return deserializeAws_restJson1File(entry, context);
7830
+ });
7831
+ return retVal;
7832
+ };
7448
7833
  const deserializeAws_restJson1ForwardingConfig = (output, context) => {
7449
7834
  return {
7450
7835
  state: (0, smithy_client_1.expectString)(output.state),
@@ -7558,6 +7943,29 @@ const deserializeAws_restJson1InterpolatedAssetPropertyValues = (output, context
7558
7943
  });
7559
7944
  return retVal;
7560
7945
  };
7946
+ const deserializeAws_restJson1JobConfiguration = (output, context) => {
7947
+ return {
7948
+ fileFormat: output.fileFormat != null ? deserializeAws_restJson1FileFormat(output.fileFormat, context) : undefined,
7949
+ };
7950
+ };
7951
+ const deserializeAws_restJson1JobSummaries = (output, context) => {
7952
+ const retVal = (output || [])
7953
+ .filter((e) => e != null)
7954
+ .map((entry) => {
7955
+ if (entry === null) {
7956
+ return null;
7957
+ }
7958
+ return deserializeAws_restJson1JobSummary(entry, context);
7959
+ });
7960
+ return retVal;
7961
+ };
7962
+ const deserializeAws_restJson1JobSummary = (output, context) => {
7963
+ return {
7964
+ id: (0, smithy_client_1.expectString)(output.id),
7965
+ name: (0, smithy_client_1.expectString)(output.name),
7966
+ status: (0, smithy_client_1.expectString)(output.status),
7967
+ };
7968
+ };
7561
7969
  const deserializeAws_restJson1LoggingOptions = (output, context) => {
7562
7970
  return {
7563
7971
  level: (0, smithy_client_1.expectString)(output.level),
@@ -10,6 +10,7 @@ import { BatchPutAssetPropertyValueCommand, } from "./commands/BatchPutAssetProp
10
10
  import { CreateAccessPolicyCommand, } from "./commands/CreateAccessPolicyCommand";
11
11
  import { CreateAssetCommand } from "./commands/CreateAssetCommand";
12
12
  import { CreateAssetModelCommand, } from "./commands/CreateAssetModelCommand";
13
+ import { CreateBulkImportJobCommand, } from "./commands/CreateBulkImportJobCommand";
13
14
  import { CreateDashboardCommand, } from "./commands/CreateDashboardCommand";
14
15
  import { CreateGatewayCommand, } from "./commands/CreateGatewayCommand";
15
16
  import { CreatePortalCommand, } from "./commands/CreatePortalCommand";
@@ -26,6 +27,7 @@ import { DescribeAccessPolicyCommand, } from "./commands/DescribeAccessPolicyCom
26
27
  import { DescribeAssetCommand, } from "./commands/DescribeAssetCommand";
27
28
  import { DescribeAssetModelCommand, } from "./commands/DescribeAssetModelCommand";
28
29
  import { DescribeAssetPropertyCommand, } from "./commands/DescribeAssetPropertyCommand";
30
+ import { DescribeBulkImportJobCommand, } from "./commands/DescribeBulkImportJobCommand";
29
31
  import { DescribeDashboardCommand, } from "./commands/DescribeDashboardCommand";
30
32
  import { DescribeDefaultEncryptionConfigurationCommand, } from "./commands/DescribeDefaultEncryptionConfigurationCommand";
31
33
  import { DescribeGatewayCapabilityConfigurationCommand, } from "./commands/DescribeGatewayCapabilityConfigurationCommand";
@@ -46,6 +48,7 @@ import { ListAssetModelsCommand, } from "./commands/ListAssetModelsCommand";
46
48
  import { ListAssetRelationshipsCommand, } from "./commands/ListAssetRelationshipsCommand";
47
49
  import { ListAssetsCommand } from "./commands/ListAssetsCommand";
48
50
  import { ListAssociatedAssetsCommand, } from "./commands/ListAssociatedAssetsCommand";
51
+ import { ListBulkImportJobsCommand, } from "./commands/ListBulkImportJobsCommand";
49
52
  import { ListDashboardsCommand, } from "./commands/ListDashboardsCommand";
50
53
  import { ListGatewaysCommand, } from "./commands/ListGatewaysCommand";
51
54
  import { ListPortalsCommand } from "./commands/ListPortalsCommand";
@@ -227,6 +230,20 @@ var IoTSiteWise = (function (_super) {
227
230
  return this.send(command, optionsOrCb);
228
231
  }
229
232
  };
233
+ IoTSiteWise.prototype.createBulkImportJob = function (args, optionsOrCb, cb) {
234
+ var command = new CreateBulkImportJobCommand(args);
235
+ if (typeof optionsOrCb === "function") {
236
+ this.send(command, optionsOrCb);
237
+ }
238
+ else if (typeof cb === "function") {
239
+ if (typeof optionsOrCb !== "object")
240
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
241
+ this.send(command, optionsOrCb || {}, cb);
242
+ }
243
+ else {
244
+ return this.send(command, optionsOrCb);
245
+ }
246
+ };
230
247
  IoTSiteWise.prototype.createDashboard = function (args, optionsOrCb, cb) {
231
248
  var command = new CreateDashboardCommand(args);
232
249
  if (typeof optionsOrCb === "function") {
@@ -451,6 +468,20 @@ var IoTSiteWise = (function (_super) {
451
468
  return this.send(command, optionsOrCb);
452
469
  }
453
470
  };
471
+ IoTSiteWise.prototype.describeBulkImportJob = function (args, optionsOrCb, cb) {
472
+ var command = new DescribeBulkImportJobCommand(args);
473
+ if (typeof optionsOrCb === "function") {
474
+ this.send(command, optionsOrCb);
475
+ }
476
+ else if (typeof cb === "function") {
477
+ if (typeof optionsOrCb !== "object")
478
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
479
+ this.send(command, optionsOrCb || {}, cb);
480
+ }
481
+ else {
482
+ return this.send(command, optionsOrCb);
483
+ }
484
+ };
454
485
  IoTSiteWise.prototype.describeDashboard = function (args, optionsOrCb, cb) {
455
486
  var command = new DescribeDashboardCommand(args);
456
487
  if (typeof optionsOrCb === "function") {
@@ -731,6 +762,20 @@ var IoTSiteWise = (function (_super) {
731
762
  return this.send(command, optionsOrCb);
732
763
  }
733
764
  };
765
+ IoTSiteWise.prototype.listBulkImportJobs = function (args, optionsOrCb, cb) {
766
+ var command = new ListBulkImportJobsCommand(args);
767
+ if (typeof optionsOrCb === "function") {
768
+ this.send(command, optionsOrCb);
769
+ }
770
+ else if (typeof cb === "function") {
771
+ if (typeof optionsOrCb !== "object")
772
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
773
+ this.send(command, optionsOrCb || {}, cb);
774
+ }
775
+ else {
776
+ return this.send(command, optionsOrCb);
777
+ }
778
+ };
734
779
  IoTSiteWise.prototype.listDashboards = function (args, optionsOrCb, cb) {
735
780
  var command = new ListDashboardsCommand(args);
736
781
  if (typeof optionsOrCb === "function") {