@aws-sdk/client-iot 3.41.0 → 3.45.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 +41 -0
- package/dist-cjs/IoT.js +30 -0
- package/dist-cjs/commands/DescribeManagedJobTemplateCommand.js +36 -0
- package/dist-cjs/commands/ListManagedJobTemplatesCommand.js +36 -0
- package/dist-cjs/commands/ListThingRegistrationTasksCommand.js +2 -1
- package/dist-cjs/commands/ListThingTypesCommand.js +1 -2
- package/dist-cjs/commands/ListThingsCommand.js +3 -3
- package/dist-cjs/commands/ListThingsInBillingGroupCommand.js +3 -3
- package/dist-cjs/commands/ListThingsInThingGroupCommand.js +3 -3
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_1.js +57 -59
- package/dist-cjs/models/models_2.js +57 -3
- package/dist-cjs/protocols/Aws_restJson1.js +337 -9
- package/dist-es/IoT.js +30 -0
- package/dist-es/commands/DescribeManagedJobTemplateCommand.js +39 -0
- package/dist-es/commands/ListManagedJobTemplatesCommand.js +39 -0
- package/dist-es/commands/ListThingRegistrationTasksCommand.js +2 -1
- package/dist-es/commands/ListThingTypesCommand.js +1 -2
- package/dist-es/commands/ListThingsCommand.js +1 -1
- package/dist-es/commands/ListThingsInBillingGroupCommand.js +1 -1
- package/dist-es/commands/ListThingsInThingGroupCommand.js +1 -1
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_1.js +38 -36
- package/dist-es/models/models_2.js +36 -0
- package/dist-es/protocols/Aws_restJson1.js +365 -9
- package/dist-types/IoT.d.ts +24 -3
- package/dist-types/IoTClient.d.ts +4 -2
- package/dist-types/commands/CreateCertificateFromCsrCommand.d.ts +3 -2
- package/dist-types/commands/DescribeManagedJobTemplateCommand.d.ts +35 -0
- package/dist-types/commands/ListManagedJobTemplatesCommand.d.ts +35 -0
- package/dist-types/commands/ListThingRegistrationTasksCommand.d.ts +2 -1
- package/dist-types/commands/ListThingTypesCommand.d.ts +1 -2
- package/dist-types/commands/ListThingsCommand.d.ts +1 -1
- package/dist-types/commands/ListThingsInBillingGroupCommand.d.ts +1 -1
- package/dist-types/commands/ListThingsInThingGroupCommand.d.ts +1 -1
- package/dist-types/commands/RegisterCertificateWithoutCACommand.d.ts +4 -1
- package/dist-types/commands/RemoveThingFromBillingGroupCommand.d.ts +3 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +25 -3
- package/dist-types/models/models_1.d.ts +232 -221
- package/dist-types/models/models_2.d.ts +231 -2
- package/dist-types/protocols/Aws_restJson1.d.ts +6 -0
- package/dist-types/ts3.4/IoT.d.ts +10 -0
- package/dist-types/ts3.4/IoTClient.d.ts +4 -2
- package/dist-types/ts3.4/commands/DescribeManagedJobTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListManagedJobTemplatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListThingRegistrationTasksCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/ListThingTypesCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/ListThingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListThingsInBillingGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListThingsInThingGroupCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/dist-types/ts3.4/models/models_1.d.ts +112 -118
- package/dist-types/ts3.4/models/models_2.d.ts +122 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +6 -0
- package/package.json +5 -5
|
@@ -578,8 +578,9 @@ export var serializeAws_restJson1CreateAuthorizerCommand = function (input, cont
|
|
|
578
578
|
else {
|
|
579
579
|
throw new Error("No value provided for input HTTP label: authorizerName.");
|
|
580
580
|
}
|
|
581
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn !== undefined &&
|
|
582
|
-
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.
|
|
581
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn !== undefined &&
|
|
582
|
+
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp !== undefined &&
|
|
583
|
+
input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp })), (input.signingDisabled !== undefined &&
|
|
583
584
|
input.signingDisabled !== null && { signingDisabled: input.signingDisabled })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tags !== undefined &&
|
|
584
585
|
input.tags !== null && { tags: serializeAws_restJson1TagList(input.tags, context) })), (input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys !== undefined &&
|
|
585
586
|
input.tokenSigningPublicKeys !== null && {
|
|
@@ -878,8 +879,11 @@ export var serializeAws_restJson1CreateJobCommand = function (input, context) {
|
|
|
878
879
|
else {
|
|
879
880
|
throw new Error("No value provided for input HTTP label: jobId.");
|
|
880
881
|
}
|
|
881
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig !== undefined &&
|
|
882
|
-
input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.document !== undefined && input.document !== null && { document: input.document })), (input.
|
|
882
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.abortConfig !== undefined &&
|
|
883
|
+
input.abortConfig !== null && { abortConfig: serializeAws_restJson1AbortConfig(input.abortConfig, context) })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.document !== undefined && input.document !== null && { document: input.document })), (input.documentParameters !== undefined &&
|
|
884
|
+
input.documentParameters !== null && {
|
|
885
|
+
documentParameters: serializeAws_restJson1ParameterMap(input.documentParameters, context),
|
|
886
|
+
})), (input.documentSource !== undefined &&
|
|
883
887
|
input.documentSource !== null && { documentSource: input.documentSource })), (input.jobExecutionsRolloutConfig !== undefined &&
|
|
884
888
|
input.jobExecutionsRolloutConfig !== null && {
|
|
885
889
|
jobExecutionsRolloutConfig: serializeAws_restJson1JobExecutionsRolloutConfig(input.jobExecutionsRolloutConfig, context),
|
|
@@ -3240,6 +3244,39 @@ export var serializeAws_restJson1DescribeJobTemplateCommand = function (input, c
|
|
|
3240
3244
|
}
|
|
3241
3245
|
});
|
|
3242
3246
|
}); };
|
|
3247
|
+
export var serializeAws_restJson1DescribeManagedJobTemplateCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3248
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
3249
|
+
return __generator(this, function (_c) {
|
|
3250
|
+
switch (_c.label) {
|
|
3251
|
+
case 0: return [4, context.endpoint()];
|
|
3252
|
+
case 1:
|
|
3253
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
3254
|
+
headers = {};
|
|
3255
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/managed-job-templates/{templateName}";
|
|
3256
|
+
if (input.templateName !== undefined) {
|
|
3257
|
+
labelValue = input.templateName;
|
|
3258
|
+
if (labelValue.length <= 0) {
|
|
3259
|
+
throw new Error("Empty value provided for input HTTP label: templateName.");
|
|
3260
|
+
}
|
|
3261
|
+
resolvedPath = resolvedPath.replace("{templateName}", __extendedEncodeURIComponent(labelValue));
|
|
3262
|
+
}
|
|
3263
|
+
else {
|
|
3264
|
+
throw new Error("No value provided for input HTTP label: templateName.");
|
|
3265
|
+
}
|
|
3266
|
+
query = __assign({}, (input.templateVersion !== undefined && { templateVersion: input.templateVersion }));
|
|
3267
|
+
return [2, new __HttpRequest({
|
|
3268
|
+
protocol: protocol,
|
|
3269
|
+
hostname: hostname,
|
|
3270
|
+
port: port,
|
|
3271
|
+
method: "GET",
|
|
3272
|
+
headers: headers,
|
|
3273
|
+
path: resolvedPath,
|
|
3274
|
+
query: query,
|
|
3275
|
+
body: body,
|
|
3276
|
+
})];
|
|
3277
|
+
}
|
|
3278
|
+
});
|
|
3279
|
+
}); };
|
|
3243
3280
|
export var serializeAws_restJson1DescribeMitigationActionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3244
3281
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
3245
3282
|
return __generator(this, function (_c) {
|
|
@@ -4816,6 +4853,29 @@ export var serializeAws_restJson1ListJobTemplatesCommand = function (input, cont
|
|
|
4816
4853
|
}
|
|
4817
4854
|
});
|
|
4818
4855
|
}); };
|
|
4856
|
+
export var serializeAws_restJson1ListManagedJobTemplatesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4857
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
4858
|
+
return __generator(this, function (_c) {
|
|
4859
|
+
switch (_c.label) {
|
|
4860
|
+
case 0: return [4, context.endpoint()];
|
|
4861
|
+
case 1:
|
|
4862
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
4863
|
+
headers = {};
|
|
4864
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/managed-job-templates";
|
|
4865
|
+
query = __assign(__assign(__assign({}, (input.templateName !== undefined && { templateName: input.templateName })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() })), (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
4866
|
+
return [2, new __HttpRequest({
|
|
4867
|
+
protocol: protocol,
|
|
4868
|
+
hostname: hostname,
|
|
4869
|
+
port: port,
|
|
4870
|
+
method: "GET",
|
|
4871
|
+
headers: headers,
|
|
4872
|
+
path: resolvedPath,
|
|
4873
|
+
query: query,
|
|
4874
|
+
body: body,
|
|
4875
|
+
})];
|
|
4876
|
+
}
|
|
4877
|
+
});
|
|
4878
|
+
}); };
|
|
4819
4879
|
export var serializeAws_restJson1ListMitigationActionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4820
4880
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
4821
4881
|
return __generator(this, function (_c) {
|
|
@@ -6478,8 +6538,9 @@ export var serializeAws_restJson1UpdateAuthorizerCommand = function (input, cont
|
|
|
6478
6538
|
else {
|
|
6479
6539
|
throw new Error("No value provided for input HTTP label: authorizerName.");
|
|
6480
6540
|
}
|
|
6481
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn !== undefined &&
|
|
6482
|
-
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.
|
|
6541
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.authorizerFunctionArn !== undefined &&
|
|
6542
|
+
input.authorizerFunctionArn !== null && { authorizerFunctionArn: input.authorizerFunctionArn })), (input.enableCachingForHttp !== undefined &&
|
|
6543
|
+
input.enableCachingForHttp !== null && { enableCachingForHttp: input.enableCachingForHttp })), (input.status !== undefined && input.status !== null && { status: input.status })), (input.tokenKeyName !== undefined && input.tokenKeyName !== null && { tokenKeyName: input.tokenKeyName })), (input.tokenSigningPublicKeys !== undefined &&
|
|
6483
6544
|
input.tokenSigningPublicKeys !== null && {
|
|
6484
6545
|
tokenSigningPublicKeys: serializeAws_restJson1PublicKeyMap(input.tokenSigningPublicKeys, context),
|
|
6485
6546
|
})));
|
|
@@ -16917,6 +16978,116 @@ var deserializeAws_restJson1DescribeJobTemplateCommandError = function (output,
|
|
|
16917
16978
|
}
|
|
16918
16979
|
});
|
|
16919
16980
|
}); };
|
|
16981
|
+
export var deserializeAws_restJson1DescribeManagedJobTemplateCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
16982
|
+
var contents, data, _a, _b;
|
|
16983
|
+
return __generator(this, function (_c) {
|
|
16984
|
+
switch (_c.label) {
|
|
16985
|
+
case 0:
|
|
16986
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
16987
|
+
return [2, deserializeAws_restJson1DescribeManagedJobTemplateCommandError(output, context)];
|
|
16988
|
+
}
|
|
16989
|
+
contents = {
|
|
16990
|
+
$metadata: deserializeMetadata(output),
|
|
16991
|
+
description: undefined,
|
|
16992
|
+
document: undefined,
|
|
16993
|
+
documentParameters: undefined,
|
|
16994
|
+
environments: undefined,
|
|
16995
|
+
templateArn: undefined,
|
|
16996
|
+
templateName: undefined,
|
|
16997
|
+
templateVersion: undefined,
|
|
16998
|
+
};
|
|
16999
|
+
_a = __expectNonNull;
|
|
17000
|
+
_b = __expectObject;
|
|
17001
|
+
return [4, parseBody(output.body, context)];
|
|
17002
|
+
case 1:
|
|
17003
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
17004
|
+
if (data.description !== undefined && data.description !== null) {
|
|
17005
|
+
contents.description = __expectString(data.description);
|
|
17006
|
+
}
|
|
17007
|
+
if (data.document !== undefined && data.document !== null) {
|
|
17008
|
+
contents.document = __expectString(data.document);
|
|
17009
|
+
}
|
|
17010
|
+
if (data.documentParameters !== undefined && data.documentParameters !== null) {
|
|
17011
|
+
contents.documentParameters = deserializeAws_restJson1DocumentParameters(data.documentParameters, context);
|
|
17012
|
+
}
|
|
17013
|
+
if (data.environments !== undefined && data.environments !== null) {
|
|
17014
|
+
contents.environments = deserializeAws_restJson1Environments(data.environments, context);
|
|
17015
|
+
}
|
|
17016
|
+
if (data.templateArn !== undefined && data.templateArn !== null) {
|
|
17017
|
+
contents.templateArn = __expectString(data.templateArn);
|
|
17018
|
+
}
|
|
17019
|
+
if (data.templateName !== undefined && data.templateName !== null) {
|
|
17020
|
+
contents.templateName = __expectString(data.templateName);
|
|
17021
|
+
}
|
|
17022
|
+
if (data.templateVersion !== undefined && data.templateVersion !== null) {
|
|
17023
|
+
contents.templateVersion = __expectString(data.templateVersion);
|
|
17024
|
+
}
|
|
17025
|
+
return [2, Promise.resolve(contents)];
|
|
17026
|
+
}
|
|
17027
|
+
});
|
|
17028
|
+
}); };
|
|
17029
|
+
var deserializeAws_restJson1DescribeManagedJobTemplateCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
17030
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
17031
|
+
var _g;
|
|
17032
|
+
return __generator(this, function (_h) {
|
|
17033
|
+
switch (_h.label) {
|
|
17034
|
+
case 0:
|
|
17035
|
+
_a = [__assign({}, output)];
|
|
17036
|
+
_g = {};
|
|
17037
|
+
return [4, parseBody(output.body, context)];
|
|
17038
|
+
case 1:
|
|
17039
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
17040
|
+
errorCode = "UnknownError";
|
|
17041
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
17042
|
+
_b = errorCode;
|
|
17043
|
+
switch (_b) {
|
|
17044
|
+
case "InternalServerException": return [3, 2];
|
|
17045
|
+
case "com.amazonaws.iot#InternalServerException": return [3, 2];
|
|
17046
|
+
case "InvalidRequestException": return [3, 4];
|
|
17047
|
+
case "com.amazonaws.iot#InvalidRequestException": return [3, 4];
|
|
17048
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
17049
|
+
case "com.amazonaws.iot#ResourceNotFoundException": return [3, 6];
|
|
17050
|
+
case "ThrottlingException": return [3, 8];
|
|
17051
|
+
case "com.amazonaws.iot#ThrottlingException": return [3, 8];
|
|
17052
|
+
}
|
|
17053
|
+
return [3, 10];
|
|
17054
|
+
case 2:
|
|
17055
|
+
_c = [{}];
|
|
17056
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
17057
|
+
case 3:
|
|
17058
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
17059
|
+
return [3, 11];
|
|
17060
|
+
case 4:
|
|
17061
|
+
_d = [{}];
|
|
17062
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
17063
|
+
case 5:
|
|
17064
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
17065
|
+
return [3, 11];
|
|
17066
|
+
case 6:
|
|
17067
|
+
_e = [{}];
|
|
17068
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
17069
|
+
case 7:
|
|
17070
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
17071
|
+
return [3, 11];
|
|
17072
|
+
case 8:
|
|
17073
|
+
_f = [{}];
|
|
17074
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
17075
|
+
case 9:
|
|
17076
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
17077
|
+
return [3, 11];
|
|
17078
|
+
case 10:
|
|
17079
|
+
parsedBody = parsedOutput.body;
|
|
17080
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
17081
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
17082
|
+
_h.label = 11;
|
|
17083
|
+
case 11:
|
|
17084
|
+
message = response.message || response.Message || errorCode;
|
|
17085
|
+
response.message = message;
|
|
17086
|
+
delete response.Message;
|
|
17087
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
17088
|
+
}
|
|
17089
|
+
});
|
|
17090
|
+
}); };
|
|
16920
17091
|
export var deserializeAws_restJson1DescribeMitigationActionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
16921
17092
|
var contents, data, _a, _b;
|
|
16922
17093
|
return __generator(this, function (_c) {
|
|
@@ -22509,6 +22680,96 @@ var deserializeAws_restJson1ListJobTemplatesCommandError = function (output, con
|
|
|
22509
22680
|
}
|
|
22510
22681
|
});
|
|
22511
22682
|
}); };
|
|
22683
|
+
export var deserializeAws_restJson1ListManagedJobTemplatesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
22684
|
+
var contents, data, _a, _b;
|
|
22685
|
+
return __generator(this, function (_c) {
|
|
22686
|
+
switch (_c.label) {
|
|
22687
|
+
case 0:
|
|
22688
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
22689
|
+
return [2, deserializeAws_restJson1ListManagedJobTemplatesCommandError(output, context)];
|
|
22690
|
+
}
|
|
22691
|
+
contents = {
|
|
22692
|
+
$metadata: deserializeMetadata(output),
|
|
22693
|
+
managedJobTemplates: undefined,
|
|
22694
|
+
nextToken: undefined,
|
|
22695
|
+
};
|
|
22696
|
+
_a = __expectNonNull;
|
|
22697
|
+
_b = __expectObject;
|
|
22698
|
+
return [4, parseBody(output.body, context)];
|
|
22699
|
+
case 1:
|
|
22700
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
22701
|
+
if (data.managedJobTemplates !== undefined && data.managedJobTemplates !== null) {
|
|
22702
|
+
contents.managedJobTemplates = deserializeAws_restJson1ManagedJobTemplatesSummaryList(data.managedJobTemplates, context);
|
|
22703
|
+
}
|
|
22704
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
22705
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
22706
|
+
}
|
|
22707
|
+
return [2, Promise.resolve(contents)];
|
|
22708
|
+
}
|
|
22709
|
+
});
|
|
22710
|
+
}); };
|
|
22711
|
+
var deserializeAws_restJson1ListManagedJobTemplatesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
22712
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
22713
|
+
var _g;
|
|
22714
|
+
return __generator(this, function (_h) {
|
|
22715
|
+
switch (_h.label) {
|
|
22716
|
+
case 0:
|
|
22717
|
+
_a = [__assign({}, output)];
|
|
22718
|
+
_g = {};
|
|
22719
|
+
return [4, parseBody(output.body, context)];
|
|
22720
|
+
case 1:
|
|
22721
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
22722
|
+
errorCode = "UnknownError";
|
|
22723
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
22724
|
+
_b = errorCode;
|
|
22725
|
+
switch (_b) {
|
|
22726
|
+
case "InternalServerException": return [3, 2];
|
|
22727
|
+
case "com.amazonaws.iot#InternalServerException": return [3, 2];
|
|
22728
|
+
case "InvalidRequestException": return [3, 4];
|
|
22729
|
+
case "com.amazonaws.iot#InvalidRequestException": return [3, 4];
|
|
22730
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
22731
|
+
case "com.amazonaws.iot#ResourceNotFoundException": return [3, 6];
|
|
22732
|
+
case "ThrottlingException": return [3, 8];
|
|
22733
|
+
case "com.amazonaws.iot#ThrottlingException": return [3, 8];
|
|
22734
|
+
}
|
|
22735
|
+
return [3, 10];
|
|
22736
|
+
case 2:
|
|
22737
|
+
_c = [{}];
|
|
22738
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
22739
|
+
case 3:
|
|
22740
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
22741
|
+
return [3, 11];
|
|
22742
|
+
case 4:
|
|
22743
|
+
_d = [{}];
|
|
22744
|
+
return [4, deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
22745
|
+
case 5:
|
|
22746
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
22747
|
+
return [3, 11];
|
|
22748
|
+
case 6:
|
|
22749
|
+
_e = [{}];
|
|
22750
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
22751
|
+
case 7:
|
|
22752
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
22753
|
+
return [3, 11];
|
|
22754
|
+
case 8:
|
|
22755
|
+
_f = [{}];
|
|
22756
|
+
return [4, deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context)];
|
|
22757
|
+
case 9:
|
|
22758
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
22759
|
+
return [3, 11];
|
|
22760
|
+
case 10:
|
|
22761
|
+
parsedBody = parsedOutput.body;
|
|
22762
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
22763
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
22764
|
+
_h.label = 11;
|
|
22765
|
+
case 11:
|
|
22766
|
+
message = response.message || response.Message || errorCode;
|
|
22767
|
+
response.message = message;
|
|
22768
|
+
delete response.Message;
|
|
22769
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
22770
|
+
}
|
|
22771
|
+
});
|
|
22772
|
+
}); };
|
|
22512
22773
|
export var deserializeAws_restJson1ListMitigationActionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
22513
22774
|
var contents, data, _a, _b;
|
|
22514
22775
|
return __generator(this, function (_c) {
|
|
@@ -30463,6 +30724,22 @@ var deserializeAws_restJson1InternalFailureExceptionResponse = function (parsedO
|
|
|
30463
30724
|
return [2, contents];
|
|
30464
30725
|
});
|
|
30465
30726
|
}); };
|
|
30727
|
+
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30728
|
+
var contents, data;
|
|
30729
|
+
return __generator(this, function (_a) {
|
|
30730
|
+
contents = {
|
|
30731
|
+
name: "InternalServerException",
|
|
30732
|
+
$fault: "server",
|
|
30733
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
30734
|
+
message: undefined,
|
|
30735
|
+
};
|
|
30736
|
+
data = parsedOutput.body;
|
|
30737
|
+
if (data.message !== undefined && data.message !== null) {
|
|
30738
|
+
contents.message = __expectString(data.message);
|
|
30739
|
+
}
|
|
30740
|
+
return [2, contents];
|
|
30741
|
+
});
|
|
30742
|
+
}); };
|
|
30466
30743
|
var deserializeAws_restJson1InvalidAggregationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30467
30744
|
var contents, data;
|
|
30468
30745
|
return __generator(this, function (_a) {
|
|
@@ -31498,6 +31775,16 @@ var serializeAws_restJson1OTAUpdateFiles = function (input, context) {
|
|
|
31498
31775
|
return serializeAws_restJson1OTAUpdateFile(entry, context);
|
|
31499
31776
|
});
|
|
31500
31777
|
};
|
|
31778
|
+
var serializeAws_restJson1ParameterMap = function (input, context) {
|
|
31779
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
31780
|
+
var _b;
|
|
31781
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
31782
|
+
if (value === null) {
|
|
31783
|
+
return acc;
|
|
31784
|
+
}
|
|
31785
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
31786
|
+
}, {});
|
|
31787
|
+
};
|
|
31501
31788
|
var serializeAws_restJson1Parameters = function (input, context) {
|
|
31502
31789
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
31503
31790
|
var _b;
|
|
@@ -31833,9 +32120,11 @@ var serializeAws_restJson1ThingGroupProperties = function (input, context) {
|
|
|
31833
32120
|
input.thingGroupDescription !== null && { thingGroupDescription: input.thingGroupDescription }));
|
|
31834
32121
|
};
|
|
31835
32122
|
var serializeAws_restJson1ThingIndexingConfiguration = function (input, context) {
|
|
31836
|
-
return __assign(__assign(__assign(__assign({}, (input.customFields !== undefined &&
|
|
31837
|
-
input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) })), (input.
|
|
31838
|
-
input.
|
|
32123
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.customFields !== undefined &&
|
|
32124
|
+
input.customFields !== null && { customFields: serializeAws_restJson1Fields(input.customFields, context) })), (input.deviceDefenderIndexingMode !== undefined &&
|
|
32125
|
+
input.deviceDefenderIndexingMode !== null && { deviceDefenderIndexingMode: input.deviceDefenderIndexingMode })), (input.managedFields !== undefined &&
|
|
32126
|
+
input.managedFields !== null && { managedFields: serializeAws_restJson1Fields(input.managedFields, context) })), (input.namedShadowIndexingMode !== undefined &&
|
|
32127
|
+
input.namedShadowIndexingMode !== null && { namedShadowIndexingMode: input.namedShadowIndexingMode })), (input.thingConnectivityIndexingMode !== undefined &&
|
|
31839
32128
|
input.thingConnectivityIndexingMode !== null && {
|
|
31840
32129
|
thingConnectivityIndexingMode: input.thingConnectivityIndexingMode,
|
|
31841
32130
|
})), (input.thingIndexingMode !== undefined &&
|
|
@@ -32432,6 +32721,7 @@ var deserializeAws_restJson1AuthorizerDescription = function (output, context) {
|
|
|
32432
32721
|
creationDate: output.creationDate !== undefined && output.creationDate !== null
|
|
32433
32722
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDate)))
|
|
32434
32723
|
: undefined,
|
|
32724
|
+
enableCachingForHttp: __expectBoolean(output.enableCachingForHttp),
|
|
32435
32725
|
lastModifiedDate: output.lastModifiedDate !== undefined && output.lastModifiedDate !== null
|
|
32436
32726
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastModifiedDate)))
|
|
32437
32727
|
: undefined,
|
|
@@ -32925,6 +33215,25 @@ var deserializeAws_restJson1DimensionStringValues = function (output, context) {
|
|
|
32925
33215
|
return __expectString(entry);
|
|
32926
33216
|
});
|
|
32927
33217
|
};
|
|
33218
|
+
var deserializeAws_restJson1DocumentParameter = function (output, context) {
|
|
33219
|
+
return {
|
|
33220
|
+
description: __expectString(output.description),
|
|
33221
|
+
example: __expectString(output.example),
|
|
33222
|
+
key: __expectString(output.key),
|
|
33223
|
+
optional: __expectBoolean(output.optional),
|
|
33224
|
+
regex: __expectString(output.regex),
|
|
33225
|
+
};
|
|
33226
|
+
};
|
|
33227
|
+
var deserializeAws_restJson1DocumentParameters = function (output, context) {
|
|
33228
|
+
return (output || [])
|
|
33229
|
+
.filter(function (e) { return e != null; })
|
|
33230
|
+
.map(function (entry) {
|
|
33231
|
+
if (entry === null) {
|
|
33232
|
+
return null;
|
|
33233
|
+
}
|
|
33234
|
+
return deserializeAws_restJson1DocumentParameter(entry, context);
|
|
33235
|
+
});
|
|
33236
|
+
};
|
|
32928
33237
|
var deserializeAws_restJson1DomainConfigurations = function (output, context) {
|
|
32929
33238
|
return (output || [])
|
|
32930
33239
|
.filter(function (e) { return e != null; })
|
|
@@ -32996,6 +33305,16 @@ var deserializeAws_restJson1EnableIoTLoggingParams = function (output, context)
|
|
|
32996
33305
|
roleArnForLogging: __expectString(output.roleArnForLogging),
|
|
32997
33306
|
};
|
|
32998
33307
|
};
|
|
33308
|
+
var deserializeAws_restJson1Environments = function (output, context) {
|
|
33309
|
+
return (output || [])
|
|
33310
|
+
.filter(function (e) { return e != null; })
|
|
33311
|
+
.map(function (entry) {
|
|
33312
|
+
if (entry === null) {
|
|
33313
|
+
return null;
|
|
33314
|
+
}
|
|
33315
|
+
return __expectString(entry);
|
|
33316
|
+
});
|
|
33317
|
+
};
|
|
32999
33318
|
var deserializeAws_restJson1ErrorInfo = function (output, context) {
|
|
33000
33319
|
return {
|
|
33001
33320
|
code: __expectString(output.code),
|
|
@@ -33193,6 +33512,9 @@ var deserializeAws_restJson1Job = function (output, context) {
|
|
|
33193
33512
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
33194
33513
|
: undefined,
|
|
33195
33514
|
description: __expectString(output.description),
|
|
33515
|
+
documentParameters: output.documentParameters !== undefined && output.documentParameters !== null
|
|
33516
|
+
? deserializeAws_restJson1ParameterMap(output.documentParameters, context)
|
|
33517
|
+
: undefined,
|
|
33196
33518
|
forceCanceled: __expectBoolean(output.forceCanceled),
|
|
33197
33519
|
jobArn: __expectString(output.jobArn),
|
|
33198
33520
|
jobExecutionsRolloutConfig: output.jobExecutionsRolloutConfig !== undefined && output.jobExecutionsRolloutConfig !== null
|
|
@@ -33441,6 +33763,27 @@ var deserializeAws_restJson1MachineLearningDetectionConfig = function (output, c
|
|
|
33441
33763
|
confidenceLevel: __expectString(output.confidenceLevel),
|
|
33442
33764
|
};
|
|
33443
33765
|
};
|
|
33766
|
+
var deserializeAws_restJson1ManagedJobTemplatesSummaryList = function (output, context) {
|
|
33767
|
+
return (output || [])
|
|
33768
|
+
.filter(function (e) { return e != null; })
|
|
33769
|
+
.map(function (entry) {
|
|
33770
|
+
if (entry === null) {
|
|
33771
|
+
return null;
|
|
33772
|
+
}
|
|
33773
|
+
return deserializeAws_restJson1ManagedJobTemplateSummary(entry, context);
|
|
33774
|
+
});
|
|
33775
|
+
};
|
|
33776
|
+
var deserializeAws_restJson1ManagedJobTemplateSummary = function (output, context) {
|
|
33777
|
+
return {
|
|
33778
|
+
description: __expectString(output.description),
|
|
33779
|
+
environments: output.environments !== undefined && output.environments !== null
|
|
33780
|
+
? deserializeAws_restJson1Environments(output.environments, context)
|
|
33781
|
+
: undefined,
|
|
33782
|
+
templateArn: __expectString(output.templateArn),
|
|
33783
|
+
templateName: __expectString(output.templateName),
|
|
33784
|
+
templateVersion: __expectString(output.templateVersion),
|
|
33785
|
+
};
|
|
33786
|
+
};
|
|
33444
33787
|
var deserializeAws_restJson1MetricDimension = function (output, context) {
|
|
33445
33788
|
return {
|
|
33446
33789
|
dimensionName: __expectString(output.dimensionName),
|
|
@@ -33701,6 +34044,16 @@ var deserializeAws_restJson1OutgoingCertificates = function (output, context) {
|
|
|
33701
34044
|
return deserializeAws_restJson1OutgoingCertificate(entry, context);
|
|
33702
34045
|
});
|
|
33703
34046
|
};
|
|
34047
|
+
var deserializeAws_restJson1ParameterMap = function (output, context) {
|
|
34048
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
34049
|
+
var _b;
|
|
34050
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
34051
|
+
if (value === null) {
|
|
34052
|
+
return acc;
|
|
34053
|
+
}
|
|
34054
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
34055
|
+
}, {});
|
|
34056
|
+
};
|
|
33704
34057
|
var deserializeAws_restJson1Percentiles = function (output, context) {
|
|
33705
34058
|
return (output || [])
|
|
33706
34059
|
.filter(function (e) { return e != null; })
|
|
@@ -34437,6 +34790,7 @@ var deserializeAws_restJson1ThingDocument = function (output, context) {
|
|
|
34437
34790
|
connectivity: output.connectivity !== undefined && output.connectivity !== null
|
|
34438
34791
|
? deserializeAws_restJson1ThingConnectivity(output.connectivity, context)
|
|
34439
34792
|
: undefined,
|
|
34793
|
+
deviceDefender: __expectString(output.deviceDefender),
|
|
34440
34794
|
shadow: __expectString(output.shadow),
|
|
34441
34795
|
thingGroupNames: output.thingGroupNames !== undefined && output.thingGroupNames !== null
|
|
34442
34796
|
? deserializeAws_restJson1ThingGroupNameList(output.thingGroupNames, context)
|
|
@@ -34544,9 +34898,11 @@ var deserializeAws_restJson1ThingIndexingConfiguration = function (output, conte
|
|
|
34544
34898
|
customFields: output.customFields !== undefined && output.customFields !== null
|
|
34545
34899
|
? deserializeAws_restJson1Fields(output.customFields, context)
|
|
34546
34900
|
: undefined,
|
|
34901
|
+
deviceDefenderIndexingMode: __expectString(output.deviceDefenderIndexingMode),
|
|
34547
34902
|
managedFields: output.managedFields !== undefined && output.managedFields !== null
|
|
34548
34903
|
? deserializeAws_restJson1Fields(output.managedFields, context)
|
|
34549
34904
|
: undefined,
|
|
34905
|
+
namedShadowIndexingMode: __expectString(output.namedShadowIndexingMode),
|
|
34550
34906
|
thingConnectivityIndexingMode: __expectString(output.thingConnectivityIndexingMode),
|
|
34551
34907
|
thingIndexingMode: __expectString(output.thingIndexingMode),
|
|
34552
34908
|
};
|
package/dist-types/IoT.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ import { DescribeIndexCommandInput, DescribeIndexCommandOutput } from "./command
|
|
|
96
96
|
import { DescribeJobCommandInput, DescribeJobCommandOutput } from "./commands/DescribeJobCommand";
|
|
97
97
|
import { DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput } from "./commands/DescribeJobExecutionCommand";
|
|
98
98
|
import { DescribeJobTemplateCommandInput, DescribeJobTemplateCommandOutput } from "./commands/DescribeJobTemplateCommand";
|
|
99
|
+
import { DescribeManagedJobTemplateCommandInput, DescribeManagedJobTemplateCommandOutput } from "./commands/DescribeManagedJobTemplateCommand";
|
|
99
100
|
import { DescribeMitigationActionCommandInput, DescribeMitigationActionCommandOutput } from "./commands/DescribeMitigationActionCommand";
|
|
100
101
|
import { DescribeProvisioningTemplateCommandInput, DescribeProvisioningTemplateCommandOutput } from "./commands/DescribeProvisioningTemplateCommand";
|
|
101
102
|
import { DescribeProvisioningTemplateVersionCommandInput, DescribeProvisioningTemplateVersionCommandOutput } from "./commands/DescribeProvisioningTemplateVersionCommand";
|
|
@@ -152,6 +153,7 @@ import { ListJobExecutionsForJobCommandInput, ListJobExecutionsForJobCommandOutp
|
|
|
152
153
|
import { ListJobExecutionsForThingCommandInput, ListJobExecutionsForThingCommandOutput } from "./commands/ListJobExecutionsForThingCommand";
|
|
153
154
|
import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
|
|
154
155
|
import { ListJobTemplatesCommandInput, ListJobTemplatesCommandOutput } from "./commands/ListJobTemplatesCommand";
|
|
156
|
+
import { ListManagedJobTemplatesCommandInput, ListManagedJobTemplatesCommandOutput } from "./commands/ListManagedJobTemplatesCommand";
|
|
155
157
|
import { ListMitigationActionsCommandInput, ListMitigationActionsCommandOutput } from "./commands/ListMitigationActionsCommand";
|
|
156
158
|
import { ListOTAUpdatesCommandInput, ListOTAUpdatesCommandOutput } from "./commands/ListOTAUpdatesCommand";
|
|
157
159
|
import { ListOutgoingCertificatesCommandInput, ListOutgoingCertificatesCommandOutput } from "./commands/ListOutgoingCertificatesCommand";
|
|
@@ -431,8 +433,9 @@ export declare class IoT extends IoTClient {
|
|
|
431
433
|
* request.</p>
|
|
432
434
|
* <p>
|
|
433
435
|
* <b>Note:</b> The CSR must include a public key that is either an
|
|
434
|
-
* RSA key with a length of at least 2048 bits or an ECC key from NIST P-256 or NIST P-
|
|
435
|
-
* curves.
|
|
436
|
+
* RSA key with a length of at least 2048 bits or an ECC key from NIST P-256, NIST P-384, or NIST P-512
|
|
437
|
+
* curves. For supported certificates, consult <a href="https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms">
|
|
438
|
+
* Certificate signing algorithms supported by IoT</a>.</p>
|
|
436
439
|
* <p>
|
|
437
440
|
* <b>Note:</b> Reusing the same certificate signing request (CSR)
|
|
438
441
|
* results in a distinct certificate.</p>
|
|
@@ -1091,6 +1094,12 @@ export declare class IoT extends IoTClient {
|
|
|
1091
1094
|
describeJobTemplate(args: DescribeJobTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DescribeJobTemplateCommandOutput>;
|
|
1092
1095
|
describeJobTemplate(args: DescribeJobTemplateCommandInput, cb: (err: any, data?: DescribeJobTemplateCommandOutput) => void): void;
|
|
1093
1096
|
describeJobTemplate(args: DescribeJobTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeJobTemplateCommandOutput) => void): void;
|
|
1097
|
+
/**
|
|
1098
|
+
* <p>View details of a managed job template.</p>
|
|
1099
|
+
*/
|
|
1100
|
+
describeManagedJobTemplate(args: DescribeManagedJobTemplateCommandInput, options?: __HttpHandlerOptions): Promise<DescribeManagedJobTemplateCommandOutput>;
|
|
1101
|
+
describeManagedJobTemplate(args: DescribeManagedJobTemplateCommandInput, cb: (err: any, data?: DescribeManagedJobTemplateCommandOutput) => void): void;
|
|
1102
|
+
describeManagedJobTemplate(args: DescribeManagedJobTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeManagedJobTemplateCommandOutput) => void): void;
|
|
1094
1103
|
/**
|
|
1095
1104
|
* <p>Gets information about a mitigation action.</p>
|
|
1096
1105
|
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DescribeMitigationAction</a> action.</p>
|
|
@@ -1530,6 +1539,12 @@ export declare class IoT extends IoTClient {
|
|
|
1530
1539
|
listJobTemplates(args: ListJobTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListJobTemplatesCommandOutput>;
|
|
1531
1540
|
listJobTemplates(args: ListJobTemplatesCommandInput, cb: (err: any, data?: ListJobTemplatesCommandOutput) => void): void;
|
|
1532
1541
|
listJobTemplates(args: ListJobTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListJobTemplatesCommandOutput) => void): void;
|
|
1542
|
+
/**
|
|
1543
|
+
* <p>Returns a list of managed job templates.</p>
|
|
1544
|
+
*/
|
|
1545
|
+
listManagedJobTemplates(args: ListManagedJobTemplatesCommandInput, options?: __HttpHandlerOptions): Promise<ListManagedJobTemplatesCommandOutput>;
|
|
1546
|
+
listManagedJobTemplates(args: ListManagedJobTemplatesCommandInput, cb: (err: any, data?: ListManagedJobTemplatesCommandOutput) => void): void;
|
|
1547
|
+
listManagedJobTemplates(args: ListManagedJobTemplatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListManagedJobTemplatesCommandOutput) => void): void;
|
|
1533
1548
|
/**
|
|
1534
1549
|
* <p>Gets a list of all mitigation actions that match the specified filter criteria.</p>
|
|
1535
1550
|
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListMitigationActions</a> action.</p>
|
|
@@ -1804,7 +1819,10 @@ export declare class IoT extends IoTClient {
|
|
|
1804
1819
|
registerCertificate(args: RegisterCertificateCommandInput, cb: (err: any, data?: RegisterCertificateCommandOutput) => void): void;
|
|
1805
1820
|
registerCertificate(args: RegisterCertificateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterCertificateCommandOutput) => void): void;
|
|
1806
1821
|
/**
|
|
1807
|
-
* <p>Register a certificate that does not have a certificate authority (CA)
|
|
1822
|
+
* <p>Register a certificate that does not have a certificate authority (CA).
|
|
1823
|
+
* For supported certificates, consult <a href="https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms">
|
|
1824
|
+
* Certificate signing algorithms supported by IoT</a>.
|
|
1825
|
+
* </p>
|
|
1808
1826
|
*/
|
|
1809
1827
|
registerCertificateWithoutCA(args: RegisterCertificateWithoutCACommandInput, options?: __HttpHandlerOptions): Promise<RegisterCertificateWithoutCACommandOutput>;
|
|
1810
1828
|
registerCertificateWithoutCA(args: RegisterCertificateWithoutCACommandInput, cb: (err: any, data?: RegisterCertificateWithoutCACommandOutput) => void): void;
|
|
@@ -1835,6 +1853,9 @@ export declare class IoT extends IoTClient {
|
|
|
1835
1853
|
/**
|
|
1836
1854
|
* <p>Removes the given thing from the billing group.</p>
|
|
1837
1855
|
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">RemoveThingFromBillingGroup</a> action.</p>
|
|
1856
|
+
* <note>
|
|
1857
|
+
* <p>This call is asynchronous. It might take several seconds for the detachment to propagate.</p>
|
|
1858
|
+
* </note>
|
|
1838
1859
|
*/
|
|
1839
1860
|
removeThingFromBillingGroup(args: RemoveThingFromBillingGroupCommandInput, options?: __HttpHandlerOptions): Promise<RemoveThingFromBillingGroupCommandOutput>;
|
|
1840
1861
|
removeThingFromBillingGroup(args: RemoveThingFromBillingGroupCommandInput, cb: (err: any, data?: RemoveThingFromBillingGroupCommandOutput) => void): void;
|