@aws-sdk/client-iotsitewise 3.128.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.
- package/CHANGELOG.md +30 -0
- package/dist-cjs/IoTSiteWise.js +45 -0
- package/dist-cjs/commands/CreateBulkImportJobCommand.js +36 -0
- package/dist-cjs/commands/DescribeBulkImportJobCommand.js +36 -0
- package/dist-cjs/commands/ListBulkImportJobsCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +106 -4
- package/dist-cjs/pagination/ListBulkImportJobsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +414 -3
- package/dist-es/IoTSiteWise.js +45 -0
- package/dist-es/commands/CreateBulkImportJobCommand.js +39 -0
- package/dist-es/commands/DescribeBulkImportJobCommand.js +39 -0
- package/dist-es/commands/ListBulkImportJobsCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +78 -0
- package/dist-es/pagination/ListBulkImportJobsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +478 -0
- package/dist-types/IoTSiteWise.d.ts +44 -0
- package/dist-types/IoTSiteWiseClient.d.ts +5 -2
- package/dist-types/commands/CreateBulkImportJobCommand.d.ts +46 -0
- package/dist-types/commands/DescribeBulkImportJobCommand.d.ts +41 -0
- package/dist-types/commands/ListBulkImportJobsCommand.d.ts +41 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +366 -0
- package/dist-types/pagination/ListBulkImportJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/IoTSiteWise.d.ts +15 -0
- package/dist-types/ts3.4/IoTSiteWiseClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/CreateBulkImportJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeBulkImportJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBulkImportJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +173 -0
- package/dist-types/ts3.4/pagination/ListBulkImportJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +7 -7
|
@@ -426,6 +426,43 @@ export var serializeAws_restJson1CreateAssetModelCommand = function (input, cont
|
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
428
|
}); };
|
|
429
|
+
export var serializeAws_restJson1CreateBulkImportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
430
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
431
|
+
return __generator(this, function (_c) {
|
|
432
|
+
switch (_c.label) {
|
|
433
|
+
case 0: return [4, context.endpoint()];
|
|
434
|
+
case 1:
|
|
435
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
436
|
+
headers = {
|
|
437
|
+
"content-type": "application/json",
|
|
438
|
+
};
|
|
439
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs";
|
|
440
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.errorReportLocation != null && {
|
|
441
|
+
errorReportLocation: serializeAws_restJson1ErrorReportLocation(input.errorReportLocation, context),
|
|
442
|
+
})), (input.files != null && { files: serializeAws_restJson1Files(input.files, context) })), (input.jobConfiguration != null && {
|
|
443
|
+
jobConfiguration: serializeAws_restJson1JobConfiguration(input.jobConfiguration, context),
|
|
444
|
+
})), (input.jobName != null && { jobName: input.jobName })), (input.jobRoleArn != null && { jobRoleArn: input.jobRoleArn })));
|
|
445
|
+
return [4, context.endpoint()];
|
|
446
|
+
case 2:
|
|
447
|
+
resolvedHostname = (_c.sent()).hostname;
|
|
448
|
+
if (context.disableHostPrefix !== true) {
|
|
449
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
450
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
451
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
return [2, new __HttpRequest({
|
|
455
|
+
protocol: protocol,
|
|
456
|
+
hostname: resolvedHostname,
|
|
457
|
+
port: port,
|
|
458
|
+
method: "POST",
|
|
459
|
+
headers: headers,
|
|
460
|
+
path: resolvedPath,
|
|
461
|
+
body: body,
|
|
462
|
+
})];
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
}); };
|
|
429
466
|
export var serializeAws_restJson1CreateDashboardCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
430
467
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body, resolvedHostname;
|
|
431
468
|
var _c;
|
|
@@ -1065,6 +1102,46 @@ export var serializeAws_restJson1DescribeAssetPropertyCommand = function (input,
|
|
|
1065
1102
|
}
|
|
1066
1103
|
});
|
|
1067
1104
|
}); };
|
|
1105
|
+
export var serializeAws_restJson1DescribeBulkImportJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1106
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1107
|
+
return __generator(this, function (_c) {
|
|
1108
|
+
switch (_c.label) {
|
|
1109
|
+
case 0: return [4, context.endpoint()];
|
|
1110
|
+
case 1:
|
|
1111
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1112
|
+
headers = {};
|
|
1113
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs/{jobId}";
|
|
1114
|
+
if (input.jobId !== undefined) {
|
|
1115
|
+
labelValue = input.jobId;
|
|
1116
|
+
if (labelValue.length <= 0) {
|
|
1117
|
+
throw new Error("Empty value provided for input HTTP label: jobId.");
|
|
1118
|
+
}
|
|
1119
|
+
resolvedPath = resolvedPath.replace("{jobId}", __extendedEncodeURIComponent(labelValue));
|
|
1120
|
+
}
|
|
1121
|
+
else {
|
|
1122
|
+
throw new Error("No value provided for input HTTP label: jobId.");
|
|
1123
|
+
}
|
|
1124
|
+
return [4, context.endpoint()];
|
|
1125
|
+
case 2:
|
|
1126
|
+
resolvedHostname = (_c.sent()).hostname;
|
|
1127
|
+
if (context.disableHostPrefix !== true) {
|
|
1128
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
1129
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
1130
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
return [2, new __HttpRequest({
|
|
1134
|
+
protocol: protocol,
|
|
1135
|
+
hostname: resolvedHostname,
|
|
1136
|
+
port: port,
|
|
1137
|
+
method: "GET",
|
|
1138
|
+
headers: headers,
|
|
1139
|
+
path: resolvedPath,
|
|
1140
|
+
body: body,
|
|
1141
|
+
})];
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1144
|
+
}); };
|
|
1068
1145
|
export var serializeAws_restJson1DescribeDashboardCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1069
1146
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
1070
1147
|
return __generator(this, function (_c) {
|
|
@@ -1803,6 +1880,38 @@ export var serializeAws_restJson1ListAssociatedAssetsCommand = function (input,
|
|
|
1803
1880
|
}
|
|
1804
1881
|
});
|
|
1805
1882
|
}); };
|
|
1883
|
+
export var serializeAws_restJson1ListBulkImportJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1884
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
1885
|
+
return __generator(this, function (_c) {
|
|
1886
|
+
switch (_c.label) {
|
|
1887
|
+
case 0: return [4, context.endpoint()];
|
|
1888
|
+
case 1:
|
|
1889
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1890
|
+
headers = {};
|
|
1891
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/jobs";
|
|
1892
|
+
query = __assign(__assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.filter !== undefined && { filter: input.filter }));
|
|
1893
|
+
return [4, context.endpoint()];
|
|
1894
|
+
case 2:
|
|
1895
|
+
resolvedHostname = (_c.sent()).hostname;
|
|
1896
|
+
if (context.disableHostPrefix !== true) {
|
|
1897
|
+
resolvedHostname = "data." + resolvedHostname;
|
|
1898
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
1899
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
return [2, new __HttpRequest({
|
|
1903
|
+
protocol: protocol,
|
|
1904
|
+
hostname: resolvedHostname,
|
|
1905
|
+
port: port,
|
|
1906
|
+
method: "GET",
|
|
1907
|
+
headers: headers,
|
|
1908
|
+
path: resolvedPath,
|
|
1909
|
+
query: query,
|
|
1910
|
+
body: body,
|
|
1911
|
+
})];
|
|
1912
|
+
}
|
|
1913
|
+
});
|
|
1914
|
+
}); };
|
|
1806
1915
|
export var serializeAws_restJson1ListDashboardsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1807
1916
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
1808
1917
|
return __generator(this, function (_c) {
|
|
@@ -3484,6 +3593,95 @@ var deserializeAws_restJson1CreateAssetModelCommandError = function (output, con
|
|
|
3484
3593
|
}
|
|
3485
3594
|
});
|
|
3486
3595
|
}); };
|
|
3596
|
+
export var deserializeAws_restJson1CreateBulkImportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3597
|
+
var contents, data, _a, _b;
|
|
3598
|
+
return __generator(this, function (_c) {
|
|
3599
|
+
switch (_c.label) {
|
|
3600
|
+
case 0:
|
|
3601
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3602
|
+
return [2, deserializeAws_restJson1CreateBulkImportJobCommandError(output, context)];
|
|
3603
|
+
}
|
|
3604
|
+
contents = {
|
|
3605
|
+
$metadata: deserializeMetadata(output),
|
|
3606
|
+
jobId: undefined,
|
|
3607
|
+
jobName: undefined,
|
|
3608
|
+
jobStatus: undefined,
|
|
3609
|
+
};
|
|
3610
|
+
_a = __expectNonNull;
|
|
3611
|
+
_b = __expectObject;
|
|
3612
|
+
return [4, parseBody(output.body, context)];
|
|
3613
|
+
case 1:
|
|
3614
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3615
|
+
if (data.jobId !== undefined && data.jobId !== null) {
|
|
3616
|
+
contents.jobId = __expectString(data.jobId);
|
|
3617
|
+
}
|
|
3618
|
+
if (data.jobName !== undefined && data.jobName !== null) {
|
|
3619
|
+
contents.jobName = __expectString(data.jobName);
|
|
3620
|
+
}
|
|
3621
|
+
if (data.jobStatus !== undefined && data.jobStatus !== null) {
|
|
3622
|
+
contents.jobStatus = __expectString(data.jobStatus);
|
|
3623
|
+
}
|
|
3624
|
+
return [2, Promise.resolve(contents)];
|
|
3625
|
+
}
|
|
3626
|
+
});
|
|
3627
|
+
}); };
|
|
3628
|
+
var deserializeAws_restJson1CreateBulkImportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3629
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3630
|
+
var _c;
|
|
3631
|
+
return __generator(this, function (_d) {
|
|
3632
|
+
switch (_d.label) {
|
|
3633
|
+
case 0:
|
|
3634
|
+
_a = [__assign({}, output)];
|
|
3635
|
+
_c = {};
|
|
3636
|
+
return [4, parseBody(output.body, context)];
|
|
3637
|
+
case 1:
|
|
3638
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3639
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3640
|
+
_b = errorCode;
|
|
3641
|
+
switch (_b) {
|
|
3642
|
+
case "ConflictingOperationException": return [3, 2];
|
|
3643
|
+
case "com.amazonaws.iotsitewise#ConflictingOperationException": return [3, 2];
|
|
3644
|
+
case "InternalFailureException": return [3, 4];
|
|
3645
|
+
case "com.amazonaws.iotsitewise#InternalFailureException": return [3, 4];
|
|
3646
|
+
case "InvalidRequestException": return [3, 6];
|
|
3647
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException": return [3, 6];
|
|
3648
|
+
case "LimitExceededException": return [3, 8];
|
|
3649
|
+
case "com.amazonaws.iotsitewise#LimitExceededException": return [3, 8];
|
|
3650
|
+
case "ResourceAlreadyExistsException": return [3, 10];
|
|
3651
|
+
case "com.amazonaws.iotsitewise#ResourceAlreadyExistsException": return [3, 10];
|
|
3652
|
+
case "ResourceNotFoundException": return [3, 12];
|
|
3653
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException": return [3, 12];
|
|
3654
|
+
case "ThrottlingException": return [3, 14];
|
|
3655
|
+
case "com.amazonaws.iotsitewise#ThrottlingException": return [3, 14];
|
|
3656
|
+
}
|
|
3657
|
+
return [3, 16];
|
|
3658
|
+
case 2: return [4, deserializeAws_restJson1ConflictingOperationExceptionResponse(parsedOutput, context)];
|
|
3659
|
+
case 3: throw _d.sent();
|
|
3660
|
+
case 4: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
3661
|
+
case 5: throw _d.sent();
|
|
3662
|
+
case 6: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
3663
|
+
case 7: throw _d.sent();
|
|
3664
|
+
case 8: return [4, deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
3665
|
+
case 9: throw _d.sent();
|
|
3666
|
+
case 10: return [4, deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
3667
|
+
case 11: throw _d.sent();
|
|
3668
|
+
case 12: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3669
|
+
case 13: throw _d.sent();
|
|
3670
|
+
case 14: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
3671
|
+
case 15: throw _d.sent();
|
|
3672
|
+
case 16:
|
|
3673
|
+
parsedBody = parsedOutput.body;
|
|
3674
|
+
$metadata = deserializeMetadata(output);
|
|
3675
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3676
|
+
response = new __BaseException({
|
|
3677
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3678
|
+
$fault: "client",
|
|
3679
|
+
$metadata: $metadata,
|
|
3680
|
+
});
|
|
3681
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3682
|
+
}
|
|
3683
|
+
});
|
|
3684
|
+
}); };
|
|
3487
3685
|
export var deserializeAws_restJson1CreateDashboardCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3488
3686
|
var contents, data, _a, _b;
|
|
3489
3687
|
return __generator(this, function (_c) {
|
|
@@ -4734,6 +4932,107 @@ var deserializeAws_restJson1DescribeAssetPropertyCommandError = function (output
|
|
|
4734
4932
|
}
|
|
4735
4933
|
});
|
|
4736
4934
|
}); };
|
|
4935
|
+
export var deserializeAws_restJson1DescribeBulkImportJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4936
|
+
var contents, data, _a, _b;
|
|
4937
|
+
return __generator(this, function (_c) {
|
|
4938
|
+
switch (_c.label) {
|
|
4939
|
+
case 0:
|
|
4940
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4941
|
+
return [2, deserializeAws_restJson1DescribeBulkImportJobCommandError(output, context)];
|
|
4942
|
+
}
|
|
4943
|
+
contents = {
|
|
4944
|
+
$metadata: deserializeMetadata(output),
|
|
4945
|
+
errorReportLocation: undefined,
|
|
4946
|
+
files: undefined,
|
|
4947
|
+
jobConfiguration: undefined,
|
|
4948
|
+
jobCreationDate: undefined,
|
|
4949
|
+
jobId: undefined,
|
|
4950
|
+
jobLastUpdateDate: undefined,
|
|
4951
|
+
jobName: undefined,
|
|
4952
|
+
jobRoleArn: undefined,
|
|
4953
|
+
jobStatus: undefined,
|
|
4954
|
+
};
|
|
4955
|
+
_a = __expectNonNull;
|
|
4956
|
+
_b = __expectObject;
|
|
4957
|
+
return [4, parseBody(output.body, context)];
|
|
4958
|
+
case 1:
|
|
4959
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4960
|
+
if (data.errorReportLocation !== undefined && data.errorReportLocation !== null) {
|
|
4961
|
+
contents.errorReportLocation = deserializeAws_restJson1ErrorReportLocation(data.errorReportLocation, context);
|
|
4962
|
+
}
|
|
4963
|
+
if (data.files !== undefined && data.files !== null) {
|
|
4964
|
+
contents.files = deserializeAws_restJson1Files(data.files, context);
|
|
4965
|
+
}
|
|
4966
|
+
if (data.jobConfiguration !== undefined && data.jobConfiguration !== null) {
|
|
4967
|
+
contents.jobConfiguration = deserializeAws_restJson1JobConfiguration(data.jobConfiguration, context);
|
|
4968
|
+
}
|
|
4969
|
+
if (data.jobCreationDate !== undefined && data.jobCreationDate !== null) {
|
|
4970
|
+
contents.jobCreationDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.jobCreationDate)));
|
|
4971
|
+
}
|
|
4972
|
+
if (data.jobId !== undefined && data.jobId !== null) {
|
|
4973
|
+
contents.jobId = __expectString(data.jobId);
|
|
4974
|
+
}
|
|
4975
|
+
if (data.jobLastUpdateDate !== undefined && data.jobLastUpdateDate !== null) {
|
|
4976
|
+
contents.jobLastUpdateDate = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.jobLastUpdateDate)));
|
|
4977
|
+
}
|
|
4978
|
+
if (data.jobName !== undefined && data.jobName !== null) {
|
|
4979
|
+
contents.jobName = __expectString(data.jobName);
|
|
4980
|
+
}
|
|
4981
|
+
if (data.jobRoleArn !== undefined && data.jobRoleArn !== null) {
|
|
4982
|
+
contents.jobRoleArn = __expectString(data.jobRoleArn);
|
|
4983
|
+
}
|
|
4984
|
+
if (data.jobStatus !== undefined && data.jobStatus !== null) {
|
|
4985
|
+
contents.jobStatus = __expectString(data.jobStatus);
|
|
4986
|
+
}
|
|
4987
|
+
return [2, Promise.resolve(contents)];
|
|
4988
|
+
}
|
|
4989
|
+
});
|
|
4990
|
+
}); };
|
|
4991
|
+
var deserializeAws_restJson1DescribeBulkImportJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4992
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4993
|
+
var _c;
|
|
4994
|
+
return __generator(this, function (_d) {
|
|
4995
|
+
switch (_d.label) {
|
|
4996
|
+
case 0:
|
|
4997
|
+
_a = [__assign({}, output)];
|
|
4998
|
+
_c = {};
|
|
4999
|
+
return [4, parseBody(output.body, context)];
|
|
5000
|
+
case 1:
|
|
5001
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
5002
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5003
|
+
_b = errorCode;
|
|
5004
|
+
switch (_b) {
|
|
5005
|
+
case "InternalFailureException": return [3, 2];
|
|
5006
|
+
case "com.amazonaws.iotsitewise#InternalFailureException": return [3, 2];
|
|
5007
|
+
case "InvalidRequestException": return [3, 4];
|
|
5008
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException": return [3, 4];
|
|
5009
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
5010
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException": return [3, 6];
|
|
5011
|
+
case "ThrottlingException": return [3, 8];
|
|
5012
|
+
case "com.amazonaws.iotsitewise#ThrottlingException": return [3, 8];
|
|
5013
|
+
}
|
|
5014
|
+
return [3, 10];
|
|
5015
|
+
case 2: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
5016
|
+
case 3: throw _d.sent();
|
|
5017
|
+
case 4: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
5018
|
+
case 5: throw _d.sent();
|
|
5019
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
5020
|
+
case 7: throw _d.sent();
|
|
5021
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
5022
|
+
case 9: throw _d.sent();
|
|
5023
|
+
case 10:
|
|
5024
|
+
parsedBody = parsedOutput.body;
|
|
5025
|
+
$metadata = deserializeMetadata(output);
|
|
5026
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
5027
|
+
response = new __BaseException({
|
|
5028
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
5029
|
+
$fault: "client",
|
|
5030
|
+
$metadata: $metadata,
|
|
5031
|
+
});
|
|
5032
|
+
throw __decorateServiceException(response, parsedBody);
|
|
5033
|
+
}
|
|
5034
|
+
});
|
|
5035
|
+
}); };
|
|
4737
5036
|
export var deserializeAws_restJson1DescribeDashboardCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4738
5037
|
var contents, data, _a, _b;
|
|
4739
5038
|
return __generator(this, function (_c) {
|
|
@@ -6354,6 +6653,79 @@ var deserializeAws_restJson1ListAssociatedAssetsCommandError = function (output,
|
|
|
6354
6653
|
}
|
|
6355
6654
|
});
|
|
6356
6655
|
}); };
|
|
6656
|
+
export var deserializeAws_restJson1ListBulkImportJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6657
|
+
var contents, data, _a, _b;
|
|
6658
|
+
return __generator(this, function (_c) {
|
|
6659
|
+
switch (_c.label) {
|
|
6660
|
+
case 0:
|
|
6661
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
6662
|
+
return [2, deserializeAws_restJson1ListBulkImportJobsCommandError(output, context)];
|
|
6663
|
+
}
|
|
6664
|
+
contents = {
|
|
6665
|
+
$metadata: deserializeMetadata(output),
|
|
6666
|
+
jobSummaries: undefined,
|
|
6667
|
+
nextToken: undefined,
|
|
6668
|
+
};
|
|
6669
|
+
_a = __expectNonNull;
|
|
6670
|
+
_b = __expectObject;
|
|
6671
|
+
return [4, parseBody(output.body, context)];
|
|
6672
|
+
case 1:
|
|
6673
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
6674
|
+
if (data.jobSummaries !== undefined && data.jobSummaries !== null) {
|
|
6675
|
+
contents.jobSummaries = deserializeAws_restJson1JobSummaries(data.jobSummaries, context);
|
|
6676
|
+
}
|
|
6677
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
6678
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
6679
|
+
}
|
|
6680
|
+
return [2, Promise.resolve(contents)];
|
|
6681
|
+
}
|
|
6682
|
+
});
|
|
6683
|
+
}); };
|
|
6684
|
+
var deserializeAws_restJson1ListBulkImportJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6685
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
6686
|
+
var _c;
|
|
6687
|
+
return __generator(this, function (_d) {
|
|
6688
|
+
switch (_d.label) {
|
|
6689
|
+
case 0:
|
|
6690
|
+
_a = [__assign({}, output)];
|
|
6691
|
+
_c = {};
|
|
6692
|
+
return [4, parseBody(output.body, context)];
|
|
6693
|
+
case 1:
|
|
6694
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
6695
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
6696
|
+
_b = errorCode;
|
|
6697
|
+
switch (_b) {
|
|
6698
|
+
case "InternalFailureException": return [3, 2];
|
|
6699
|
+
case "com.amazonaws.iotsitewise#InternalFailureException": return [3, 2];
|
|
6700
|
+
case "InvalidRequestException": return [3, 4];
|
|
6701
|
+
case "com.amazonaws.iotsitewise#InvalidRequestException": return [3, 4];
|
|
6702
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
6703
|
+
case "com.amazonaws.iotsitewise#ResourceNotFoundException": return [3, 6];
|
|
6704
|
+
case "ThrottlingException": return [3, 8];
|
|
6705
|
+
case "com.amazonaws.iotsitewise#ThrottlingException": return [3, 8];
|
|
6706
|
+
}
|
|
6707
|
+
return [3, 10];
|
|
6708
|
+
case 2: return [4, deserializeAws_restJson1InternalFailureExceptionResponse(parsedOutput, context)];
|
|
6709
|
+
case 3: throw _d.sent();
|
|
6710
|
+
case 4: return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
6711
|
+
case 5: throw _d.sent();
|
|
6712
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
6713
|
+
case 7: throw _d.sent();
|
|
6714
|
+
case 8: return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
6715
|
+
case 9: throw _d.sent();
|
|
6716
|
+
case 10:
|
|
6717
|
+
parsedBody = parsedOutput.body;
|
|
6718
|
+
$metadata = deserializeMetadata(output);
|
|
6719
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
6720
|
+
response = new __BaseException({
|
|
6721
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
6722
|
+
$fault: "client",
|
|
6723
|
+
$metadata: $metadata,
|
|
6724
|
+
});
|
|
6725
|
+
throw __decorateServiceException(response, parsedBody);
|
|
6726
|
+
}
|
|
6727
|
+
});
|
|
6728
|
+
}); };
|
|
6357
6729
|
export var deserializeAws_restJson1ListDashboardsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
6358
6730
|
var contents, data, _a, _b;
|
|
6359
6731
|
return __generator(this, function (_c) {
|
|
@@ -8174,9 +8546,25 @@ var serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntries = function (i
|
|
|
8174
8546
|
var serializeAws_restJson1BatchGetAssetPropertyValueHistoryEntry = function (input, context) {
|
|
8175
8547
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.assetId != null && { assetId: input.assetId })), (input.endDate != null && { endDate: Math.round(input.endDate.getTime() / 1000) })), (input.entryId != null && { entryId: input.entryId })), (input.propertyAlias != null && { propertyAlias: input.propertyAlias })), (input.propertyId != null && { propertyId: input.propertyId })), (input.qualities != null && { qualities: serializeAws_restJson1Qualities(input.qualities, context) })), (input.startDate != null && { startDate: Math.round(input.startDate.getTime() / 1000) })), (input.timeOrdering != null && { timeOrdering: input.timeOrdering }));
|
|
8176
8548
|
};
|
|
8549
|
+
var serializeAws_restJson1ColumnNames = function (input, context) {
|
|
8550
|
+
return input
|
|
8551
|
+
.filter(function (e) { return e != null; })
|
|
8552
|
+
.map(function (entry) {
|
|
8553
|
+
if (entry === null) {
|
|
8554
|
+
return null;
|
|
8555
|
+
}
|
|
8556
|
+
return entry;
|
|
8557
|
+
});
|
|
8558
|
+
};
|
|
8559
|
+
var serializeAws_restJson1Csv = function (input, context) {
|
|
8560
|
+
return __assign({}, (input.columnNames != null && { columnNames: serializeAws_restJson1ColumnNames(input.columnNames, context) }));
|
|
8561
|
+
};
|
|
8177
8562
|
var serializeAws_restJson1CustomerManagedS3Storage = function (input, context) {
|
|
8178
8563
|
return __assign(__assign({}, (input.roleArn != null && { roleArn: input.roleArn })), (input.s3ResourceArn != null && { s3ResourceArn: input.s3ResourceArn }));
|
|
8179
8564
|
};
|
|
8565
|
+
var serializeAws_restJson1ErrorReportLocation = function (input, context) {
|
|
8566
|
+
return __assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.prefix != null && { prefix: input.prefix }));
|
|
8567
|
+
};
|
|
8180
8568
|
var serializeAws_restJson1ExpressionVariable = function (input, context) {
|
|
8181
8569
|
return __assign(__assign({}, (input.name != null && { name: input.name })), (input.value != null && { value: serializeAws_restJson1VariableValue(input.value, context) }));
|
|
8182
8570
|
};
|
|
@@ -8190,6 +8578,22 @@ var serializeAws_restJson1ExpressionVariables = function (input, context) {
|
|
|
8190
8578
|
return serializeAws_restJson1ExpressionVariable(entry, context);
|
|
8191
8579
|
});
|
|
8192
8580
|
};
|
|
8581
|
+
var serializeAws_restJson1File = function (input, context) {
|
|
8582
|
+
return __assign(__assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.key != null && { key: input.key })), (input.versionId != null && { versionId: input.versionId }));
|
|
8583
|
+
};
|
|
8584
|
+
var serializeAws_restJson1FileFormat = function (input, context) {
|
|
8585
|
+
return __assign({}, (input.csv != null && { csv: serializeAws_restJson1Csv(input.csv, context) }));
|
|
8586
|
+
};
|
|
8587
|
+
var serializeAws_restJson1Files = function (input, context) {
|
|
8588
|
+
return input
|
|
8589
|
+
.filter(function (e) { return e != null; })
|
|
8590
|
+
.map(function (entry) {
|
|
8591
|
+
if (entry === null) {
|
|
8592
|
+
return null;
|
|
8593
|
+
}
|
|
8594
|
+
return serializeAws_restJson1File(entry, context);
|
|
8595
|
+
});
|
|
8596
|
+
};
|
|
8193
8597
|
var serializeAws_restJson1ForwardingConfig = function (input, context) {
|
|
8194
8598
|
return __assign({}, (input.state != null && { state: input.state }));
|
|
8195
8599
|
};
|
|
@@ -8232,6 +8636,9 @@ var serializeAws_restJson1Image = function (input, context) {
|
|
|
8232
8636
|
var serializeAws_restJson1ImageFile = function (input, context) {
|
|
8233
8637
|
return __assign(__assign({}, (input.data != null && { data: context.base64Encoder(input.data) })), (input.type != null && { type: input.type }));
|
|
8234
8638
|
};
|
|
8639
|
+
var serializeAws_restJson1JobConfiguration = function (input, context) {
|
|
8640
|
+
return __assign({}, (input.fileFormat != null && { fileFormat: serializeAws_restJson1FileFormat(input.fileFormat, context) }));
|
|
8641
|
+
};
|
|
8235
8642
|
var serializeAws_restJson1LoggingOptions = function (input, context) {
|
|
8236
8643
|
return __assign({}, (input.level != null && { level: input.level }));
|
|
8237
8644
|
};
|
|
@@ -8925,6 +9332,17 @@ var deserializeAws_restJson1BatchPutAssetPropertyErrors = function (output, cont
|
|
|
8925
9332
|
});
|
|
8926
9333
|
return retVal;
|
|
8927
9334
|
};
|
|
9335
|
+
var deserializeAws_restJson1ColumnNames = function (output, context) {
|
|
9336
|
+
var retVal = (output || [])
|
|
9337
|
+
.filter(function (e) { return e != null; })
|
|
9338
|
+
.map(function (entry) {
|
|
9339
|
+
if (entry === null) {
|
|
9340
|
+
return null;
|
|
9341
|
+
}
|
|
9342
|
+
return __expectString(entry);
|
|
9343
|
+
});
|
|
9344
|
+
return retVal;
|
|
9345
|
+
};
|
|
8928
9346
|
var deserializeAws_restJson1CompositeModelProperty = function (output, context) {
|
|
8929
9347
|
return {
|
|
8930
9348
|
assetProperty: output.assetProperty != null ? deserializeAws_restJson1Property(output.assetProperty, context) : undefined,
|
|
@@ -8944,6 +9362,11 @@ var deserializeAws_restJson1ConfigurationStatus = function (output, context) {
|
|
|
8944
9362
|
state: __expectString(output.state),
|
|
8945
9363
|
};
|
|
8946
9364
|
};
|
|
9365
|
+
var deserializeAws_restJson1Csv = function (output, context) {
|
|
9366
|
+
return {
|
|
9367
|
+
columnNames: output.columnNames != null ? deserializeAws_restJson1ColumnNames(output.columnNames, context) : undefined,
|
|
9368
|
+
};
|
|
9369
|
+
};
|
|
8947
9370
|
var deserializeAws_restJson1CustomerManagedS3Storage = function (output, context) {
|
|
8948
9371
|
return {
|
|
8949
9372
|
roleArn: __expectString(output.roleArn),
|
|
@@ -8998,6 +9421,12 @@ var deserializeAws_restJson1ErrorDetails = function (output, context) {
|
|
|
8998
9421
|
message: __expectString(output.message),
|
|
8999
9422
|
};
|
|
9000
9423
|
};
|
|
9424
|
+
var deserializeAws_restJson1ErrorReportLocation = function (output, context) {
|
|
9425
|
+
return {
|
|
9426
|
+
bucket: __expectString(output.bucket),
|
|
9427
|
+
prefix: __expectString(output.prefix),
|
|
9428
|
+
};
|
|
9429
|
+
};
|
|
9001
9430
|
var deserializeAws_restJson1ExpressionVariable = function (output, context) {
|
|
9002
9431
|
return {
|
|
9003
9432
|
name: __expectString(output.name),
|
|
@@ -9015,6 +9444,29 @@ var deserializeAws_restJson1ExpressionVariables = function (output, context) {
|
|
|
9015
9444
|
});
|
|
9016
9445
|
return retVal;
|
|
9017
9446
|
};
|
|
9447
|
+
var deserializeAws_restJson1File = function (output, context) {
|
|
9448
|
+
return {
|
|
9449
|
+
bucket: __expectString(output.bucket),
|
|
9450
|
+
key: __expectString(output.key),
|
|
9451
|
+
versionId: __expectString(output.versionId),
|
|
9452
|
+
};
|
|
9453
|
+
};
|
|
9454
|
+
var deserializeAws_restJson1FileFormat = function (output, context) {
|
|
9455
|
+
return {
|
|
9456
|
+
csv: output.csv != null ? deserializeAws_restJson1Csv(output.csv, context) : undefined,
|
|
9457
|
+
};
|
|
9458
|
+
};
|
|
9459
|
+
var deserializeAws_restJson1Files = function (output, context) {
|
|
9460
|
+
var retVal = (output || [])
|
|
9461
|
+
.filter(function (e) { return e != null; })
|
|
9462
|
+
.map(function (entry) {
|
|
9463
|
+
if (entry === null) {
|
|
9464
|
+
return null;
|
|
9465
|
+
}
|
|
9466
|
+
return deserializeAws_restJson1File(entry, context);
|
|
9467
|
+
});
|
|
9468
|
+
return retVal;
|
|
9469
|
+
};
|
|
9018
9470
|
var deserializeAws_restJson1ForwardingConfig = function (output, context) {
|
|
9019
9471
|
return {
|
|
9020
9472
|
state: __expectString(output.state),
|
|
@@ -9128,6 +9580,29 @@ var deserializeAws_restJson1InterpolatedAssetPropertyValues = function (output,
|
|
|
9128
9580
|
});
|
|
9129
9581
|
return retVal;
|
|
9130
9582
|
};
|
|
9583
|
+
var deserializeAws_restJson1JobConfiguration = function (output, context) {
|
|
9584
|
+
return {
|
|
9585
|
+
fileFormat: output.fileFormat != null ? deserializeAws_restJson1FileFormat(output.fileFormat, context) : undefined,
|
|
9586
|
+
};
|
|
9587
|
+
};
|
|
9588
|
+
var deserializeAws_restJson1JobSummaries = function (output, context) {
|
|
9589
|
+
var retVal = (output || [])
|
|
9590
|
+
.filter(function (e) { return e != null; })
|
|
9591
|
+
.map(function (entry) {
|
|
9592
|
+
if (entry === null) {
|
|
9593
|
+
return null;
|
|
9594
|
+
}
|
|
9595
|
+
return deserializeAws_restJson1JobSummary(entry, context);
|
|
9596
|
+
});
|
|
9597
|
+
return retVal;
|
|
9598
|
+
};
|
|
9599
|
+
var deserializeAws_restJson1JobSummary = function (output, context) {
|
|
9600
|
+
return {
|
|
9601
|
+
id: __expectString(output.id),
|
|
9602
|
+
name: __expectString(output.name),
|
|
9603
|
+
status: __expectString(output.status),
|
|
9604
|
+
};
|
|
9605
|
+
};
|
|
9131
9606
|
var deserializeAws_restJson1LoggingOptions = function (output, context) {
|
|
9132
9607
|
return {
|
|
9133
9608
|
level: __expectString(output.level),
|
|
@@ -9420,6 +9895,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
9420
9895
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
9421
9896
|
var sanitizeErrorCode = function (rawValue) {
|
|
9422
9897
|
var cleanValue = rawValue;
|
|
9898
|
+
if (typeof cleanValue === "number") {
|
|
9899
|
+
cleanValue = cleanValue.toString();
|
|
9900
|
+
}
|
|
9423
9901
|
if (cleanValue.indexOf(":") >= 0) {
|
|
9424
9902
|
cleanValue = cleanValue.split(":")[0];
|
|
9425
9903
|
}
|
|
@@ -10,6 +10,7 @@ import { BatchPutAssetPropertyValueCommandInput, BatchPutAssetPropertyValueComma
|
|
|
10
10
|
import { CreateAccessPolicyCommandInput, CreateAccessPolicyCommandOutput } from "./commands/CreateAccessPolicyCommand";
|
|
11
11
|
import { CreateAssetCommandInput, CreateAssetCommandOutput } from "./commands/CreateAssetCommand";
|
|
12
12
|
import { CreateAssetModelCommandInput, CreateAssetModelCommandOutput } from "./commands/CreateAssetModelCommand";
|
|
13
|
+
import { CreateBulkImportJobCommandInput, CreateBulkImportJobCommandOutput } from "./commands/CreateBulkImportJobCommand";
|
|
13
14
|
import { CreateDashboardCommandInput, CreateDashboardCommandOutput } from "./commands/CreateDashboardCommand";
|
|
14
15
|
import { CreateGatewayCommandInput, CreateGatewayCommandOutput } from "./commands/CreateGatewayCommand";
|
|
15
16
|
import { CreatePortalCommandInput, CreatePortalCommandOutput } from "./commands/CreatePortalCommand";
|
|
@@ -26,6 +27,7 @@ import { DescribeAccessPolicyCommandInput, DescribeAccessPolicyCommandOutput } f
|
|
|
26
27
|
import { DescribeAssetCommandInput, DescribeAssetCommandOutput } from "./commands/DescribeAssetCommand";
|
|
27
28
|
import { DescribeAssetModelCommandInput, DescribeAssetModelCommandOutput } from "./commands/DescribeAssetModelCommand";
|
|
28
29
|
import { DescribeAssetPropertyCommandInput, DescribeAssetPropertyCommandOutput } from "./commands/DescribeAssetPropertyCommand";
|
|
30
|
+
import { DescribeBulkImportJobCommandInput, DescribeBulkImportJobCommandOutput } from "./commands/DescribeBulkImportJobCommand";
|
|
29
31
|
import { DescribeDashboardCommandInput, DescribeDashboardCommandOutput } from "./commands/DescribeDashboardCommand";
|
|
30
32
|
import { DescribeDefaultEncryptionConfigurationCommandInput, DescribeDefaultEncryptionConfigurationCommandOutput } from "./commands/DescribeDefaultEncryptionConfigurationCommand";
|
|
31
33
|
import { DescribeGatewayCapabilityConfigurationCommandInput, DescribeGatewayCapabilityConfigurationCommandOutput } from "./commands/DescribeGatewayCapabilityConfigurationCommand";
|
|
@@ -46,6 +48,7 @@ import { ListAssetModelsCommandInput, ListAssetModelsCommandOutput } from "./com
|
|
|
46
48
|
import { ListAssetRelationshipsCommandInput, ListAssetRelationshipsCommandOutput } from "./commands/ListAssetRelationshipsCommand";
|
|
47
49
|
import { ListAssetsCommandInput, ListAssetsCommandOutput } from "./commands/ListAssetsCommand";
|
|
48
50
|
import { ListAssociatedAssetsCommandInput, ListAssociatedAssetsCommandOutput } from "./commands/ListAssociatedAssetsCommand";
|
|
51
|
+
import { ListBulkImportJobsCommandInput, ListBulkImportJobsCommandOutput } from "./commands/ListBulkImportJobsCommand";
|
|
49
52
|
import { ListDashboardsCommandInput, ListDashboardsCommandOutput } from "./commands/ListDashboardsCommand";
|
|
50
53
|
import { ListGatewaysCommandInput, ListGatewaysCommandOutput } from "./commands/ListGatewaysCommand";
|
|
51
54
|
import { ListPortalsCommandInput, ListPortalsCommandOutput } from "./commands/ListPortalsCommand";
|
|
@@ -175,6 +178,23 @@ export declare class IoTSiteWise extends IoTSiteWiseClient {
|
|
|
175
178
|
createAssetModel(args: CreateAssetModelCommandInput, options?: __HttpHandlerOptions): Promise<CreateAssetModelCommandOutput>;
|
|
176
179
|
createAssetModel(args: CreateAssetModelCommandInput, cb: (err: any, data?: CreateAssetModelCommandOutput) => void): void;
|
|
177
180
|
createAssetModel(args: CreateAssetModelCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAssetModelCommandOutput) => void): void;
|
|
181
|
+
/**
|
|
182
|
+
* <note>
|
|
183
|
+
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
184
|
+
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
185
|
+
* </note>
|
|
186
|
+
* <p>Defines a job to ingest data to IoT SiteWise from Amazon S3. For more information,
|
|
187
|
+
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/CreateBulkImportJob.html">Create a bulk import job (CLI)</a>
|
|
188
|
+
* in the <i>Amazon Simple Storage Service User Guide</i>.</p>
|
|
189
|
+
* <important>
|
|
190
|
+
* <p>You must enable IoT SiteWise to export data to Amazon S3 before you create a bulk import job.
|
|
191
|
+
* For more information about how to configure storage settings,
|
|
192
|
+
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/APIReference/API_PutStorageConfiguration.html">PutStorageConfiguration</a>.</p>
|
|
193
|
+
* </important>
|
|
194
|
+
*/
|
|
195
|
+
createBulkImportJob(args: CreateBulkImportJobCommandInput, options?: __HttpHandlerOptions): Promise<CreateBulkImportJobCommandOutput>;
|
|
196
|
+
createBulkImportJob(args: CreateBulkImportJobCommandInput, cb: (err: any, data?: CreateBulkImportJobCommandOutput) => void): void;
|
|
197
|
+
createBulkImportJob(args: CreateBulkImportJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBulkImportJobCommandOutput) => void): void;
|
|
178
198
|
/**
|
|
179
199
|
* <p>Creates a dashboard in an IoT SiteWise Monitor project.</p>
|
|
180
200
|
*/
|
|
@@ -324,6 +344,18 @@ export declare class IoTSiteWise extends IoTSiteWiseClient {
|
|
|
324
344
|
describeAssetProperty(args: DescribeAssetPropertyCommandInput, options?: __HttpHandlerOptions): Promise<DescribeAssetPropertyCommandOutput>;
|
|
325
345
|
describeAssetProperty(args: DescribeAssetPropertyCommandInput, cb: (err: any, data?: DescribeAssetPropertyCommandOutput) => void): void;
|
|
326
346
|
describeAssetProperty(args: DescribeAssetPropertyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAssetPropertyCommandOutput) => void): void;
|
|
347
|
+
/**
|
|
348
|
+
* <note>
|
|
349
|
+
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
350
|
+
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
351
|
+
* </note>
|
|
352
|
+
* <p>Retrieves information about a bulk import job request. For more information,
|
|
353
|
+
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/DescribeBulkImportJob.html">Describe a bulk import job (CLI)</a>
|
|
354
|
+
* in the <i>Amazon Simple Storage Service User Guide</i>.</p>
|
|
355
|
+
*/
|
|
356
|
+
describeBulkImportJob(args: DescribeBulkImportJobCommandInput, options?: __HttpHandlerOptions): Promise<DescribeBulkImportJobCommandOutput>;
|
|
357
|
+
describeBulkImportJob(args: DescribeBulkImportJobCommandInput, cb: (err: any, data?: DescribeBulkImportJobCommandOutput) => void): void;
|
|
358
|
+
describeBulkImportJob(args: DescribeBulkImportJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeBulkImportJobCommandOutput) => void): void;
|
|
327
359
|
/**
|
|
328
360
|
* <p>Retrieves information about a dashboard.</p>
|
|
329
361
|
*/
|
|
@@ -541,6 +573,18 @@ export declare class IoTSiteWise extends IoTSiteWiseClient {
|
|
|
541
573
|
listAssociatedAssets(args: ListAssociatedAssetsCommandInput, options?: __HttpHandlerOptions): Promise<ListAssociatedAssetsCommandOutput>;
|
|
542
574
|
listAssociatedAssets(args: ListAssociatedAssetsCommandInput, cb: (err: any, data?: ListAssociatedAssetsCommandOutput) => void): void;
|
|
543
575
|
listAssociatedAssets(args: ListAssociatedAssetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssociatedAssetsCommandOutput) => void): void;
|
|
576
|
+
/**
|
|
577
|
+
* <note>
|
|
578
|
+
* <p>This API operation is in preview release for IoT SiteWise and is subject to change.
|
|
579
|
+
* We recommend that you use this operation only with test data, and not in production environments.</p>
|
|
580
|
+
* </note>
|
|
581
|
+
* <p>Retrieves a paginated list of bulk import job requests. For more information,
|
|
582
|
+
* see <a href="https://docs.aws.amazon.com/iot-sitewise/latest/userguide/ListBulkImportJobs.html">List bulk import jobs (CLI)</a>
|
|
583
|
+
* in the <i>Amazon Simple Storage Service User Guide</i>.</p>
|
|
584
|
+
*/
|
|
585
|
+
listBulkImportJobs(args: ListBulkImportJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListBulkImportJobsCommandOutput>;
|
|
586
|
+
listBulkImportJobs(args: ListBulkImportJobsCommandInput, cb: (err: any, data?: ListBulkImportJobsCommandOutput) => void): void;
|
|
587
|
+
listBulkImportJobs(args: ListBulkImportJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBulkImportJobsCommandOutput) => void): void;
|
|
544
588
|
/**
|
|
545
589
|
* <p>Retrieves a paginated list of dashboards for an IoT SiteWise Monitor project.</p>
|
|
546
590
|
*/
|