@aws-sdk/client-iotdeviceadvisor 3.39.0 → 3.43.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/README.md +9 -1
- package/dist-cjs/IotDeviceAdvisor.js +15 -0
- package/dist-cjs/commands/GetEndpointCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/endpoints.js +74 -5
- package/dist-cjs/models/models_0.js +19 -7
- package/dist-cjs/protocols/Aws_restJson1.js +88 -1
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/IotDeviceAdvisor.js +15 -0
- package/dist-es/commands/GetEndpointCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/endpoints.js +74 -5
- package/dist-es/models/models_0.js +12 -4
- package/dist-es/protocols/Aws_restJson1.js +103 -1
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/IotDeviceAdvisor.d.ts +31 -3
- package/dist-types/IotDeviceAdvisorClient.d.ts +20 -3
- package/dist-types/commands/CreateSuiteDefinitionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteSuiteDefinitionCommand.d.ts +2 -1
- package/dist-types/commands/GetEndpointCommand.d.ts +35 -0
- package/dist-types/commands/GetSuiteDefinitionCommand.d.ts +2 -1
- package/dist-types/commands/GetSuiteRunCommand.d.ts +2 -1
- package/dist-types/commands/GetSuiteRunReportCommand.d.ts +2 -1
- package/dist-types/commands/ListSuiteDefinitionsCommand.d.ts +2 -1
- package/dist-types/commands/ListSuiteRunsCommand.d.ts +4 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -1
- package/dist-types/commands/StartSuiteRunCommand.d.ts +2 -1
- package/dist-types/commands/StopSuiteRunCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -1
- package/dist-types/commands/UpdateSuiteDefinitionCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +129 -60
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/IotDeviceAdvisor.d.ts +5 -0
- package/dist-types/ts3.4/IotDeviceAdvisorClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/GetEndpointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +31 -11
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +23 -23
|
@@ -35,6 +35,18 @@ export var DeleteSuiteDefinitionResponse;
|
|
|
35
35
|
(function (DeleteSuiteDefinitionResponse) {
|
|
36
36
|
DeleteSuiteDefinitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
37
37
|
})(DeleteSuiteDefinitionResponse || (DeleteSuiteDefinitionResponse = {}));
|
|
38
|
+
export var GetEndpointRequest;
|
|
39
|
+
(function (GetEndpointRequest) {
|
|
40
|
+
GetEndpointRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
41
|
+
})(GetEndpointRequest || (GetEndpointRequest = {}));
|
|
42
|
+
export var GetEndpointResponse;
|
|
43
|
+
(function (GetEndpointResponse) {
|
|
44
|
+
GetEndpointResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
|
+
})(GetEndpointResponse || (GetEndpointResponse = {}));
|
|
46
|
+
export var ResourceNotFoundException;
|
|
47
|
+
(function (ResourceNotFoundException) {
|
|
48
|
+
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
49
|
+
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
38
50
|
export var GetSuiteDefinitionRequest;
|
|
39
51
|
(function (GetSuiteDefinitionRequest) {
|
|
40
52
|
GetSuiteDefinitionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -43,10 +55,6 @@ export var GetSuiteDefinitionResponse;
|
|
|
43
55
|
(function (GetSuiteDefinitionResponse) {
|
|
44
56
|
GetSuiteDefinitionResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
45
57
|
})(GetSuiteDefinitionResponse || (GetSuiteDefinitionResponse = {}));
|
|
46
|
-
export var ResourceNotFoundException;
|
|
47
|
-
(function (ResourceNotFoundException) {
|
|
48
|
-
ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
49
|
-
})(ResourceNotFoundException || (ResourceNotFoundException = {}));
|
|
50
58
|
export var GetSuiteRunRequest;
|
|
51
59
|
(function (GetSuiteRunRequest) {
|
|
52
60
|
GetSuiteRunRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -59,6 +59,29 @@ export var serializeAws_restJson1DeleteSuiteDefinitionCommand = function (input,
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
}); };
|
|
62
|
+
export var serializeAws_restJson1GetEndpointCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
64
|
+
return __generator(this, function (_c) {
|
|
65
|
+
switch (_c.label) {
|
|
66
|
+
case 0: return [4, context.endpoint()];
|
|
67
|
+
case 1:
|
|
68
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
69
|
+
headers = {};
|
|
70
|
+
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/endpoint";
|
|
71
|
+
query = __assign(__assign({}, (input.thingArn !== undefined && { thingArn: input.thingArn })), (input.certificateArn !== undefined && { certificateArn: input.certificateArn }));
|
|
72
|
+
return [2, new __HttpRequest({
|
|
73
|
+
protocol: protocol,
|
|
74
|
+
hostname: hostname,
|
|
75
|
+
port: port,
|
|
76
|
+
method: "GET",
|
|
77
|
+
headers: headers,
|
|
78
|
+
path: resolvedPath,
|
|
79
|
+
query: query,
|
|
80
|
+
body: body,
|
|
81
|
+
})];
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}); };
|
|
62
85
|
export var serializeAws_restJson1GetSuiteDefinitionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
86
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
64
87
|
return __generator(this, function (_c) {
|
|
@@ -584,6 +607,84 @@ var deserializeAws_restJson1DeleteSuiteDefinitionCommandError = function (output
|
|
|
584
607
|
}
|
|
585
608
|
});
|
|
586
609
|
}); };
|
|
610
|
+
export var deserializeAws_restJson1GetEndpointCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
611
|
+
var contents, data, _a, _b;
|
|
612
|
+
return __generator(this, function (_c) {
|
|
613
|
+
switch (_c.label) {
|
|
614
|
+
case 0:
|
|
615
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
+
return [2, deserializeAws_restJson1GetEndpointCommandError(output, context)];
|
|
617
|
+
}
|
|
618
|
+
contents = {
|
|
619
|
+
$metadata: deserializeMetadata(output),
|
|
620
|
+
endpoint: undefined,
|
|
621
|
+
};
|
|
622
|
+
_a = __expectNonNull;
|
|
623
|
+
_b = __expectObject;
|
|
624
|
+
return [4, parseBody(output.body, context)];
|
|
625
|
+
case 1:
|
|
626
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
627
|
+
if (data.endpoint !== undefined && data.endpoint !== null) {
|
|
628
|
+
contents.endpoint = __expectString(data.endpoint);
|
|
629
|
+
}
|
|
630
|
+
return [2, Promise.resolve(contents)];
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
}); };
|
|
634
|
+
var deserializeAws_restJson1GetEndpointCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
635
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
636
|
+
var _f;
|
|
637
|
+
return __generator(this, function (_g) {
|
|
638
|
+
switch (_g.label) {
|
|
639
|
+
case 0:
|
|
640
|
+
_a = [__assign({}, output)];
|
|
641
|
+
_f = {};
|
|
642
|
+
return [4, parseBody(output.body, context)];
|
|
643
|
+
case 1:
|
|
644
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
645
|
+
errorCode = "UnknownError";
|
|
646
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
647
|
+
_b = errorCode;
|
|
648
|
+
switch (_b) {
|
|
649
|
+
case "InternalServerException": return [3, 2];
|
|
650
|
+
case "com.amazonaws.iotdeviceadvisor#InternalServerException": return [3, 2];
|
|
651
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
652
|
+
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException": return [3, 4];
|
|
653
|
+
case "ValidationException": return [3, 6];
|
|
654
|
+
case "com.amazonaws.iotdeviceadvisor#ValidationException": return [3, 6];
|
|
655
|
+
}
|
|
656
|
+
return [3, 8];
|
|
657
|
+
case 2:
|
|
658
|
+
_c = [{}];
|
|
659
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
660
|
+
case 3:
|
|
661
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
662
|
+
return [3, 9];
|
|
663
|
+
case 4:
|
|
664
|
+
_d = [{}];
|
|
665
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
666
|
+
case 5:
|
|
667
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
668
|
+
return [3, 9];
|
|
669
|
+
case 6:
|
|
670
|
+
_e = [{}];
|
|
671
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
672
|
+
case 7:
|
|
673
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
674
|
+
return [3, 9];
|
|
675
|
+
case 8:
|
|
676
|
+
parsedBody = parsedOutput.body;
|
|
677
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
678
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
679
|
+
_g.label = 9;
|
|
680
|
+
case 9:
|
|
681
|
+
message = response.message || response.Message || errorCode;
|
|
682
|
+
response.message = message;
|
|
683
|
+
delete response.Message;
|
|
684
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
}); };
|
|
587
688
|
export var deserializeAws_restJson1GetSuiteDefinitionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
588
689
|
var contents, data, _a, _b;
|
|
589
690
|
return __generator(this, function (_c) {
|
|
@@ -1600,7 +1701,7 @@ var serializeAws_restJson1SuiteDefinitionConfiguration = function (input, contex
|
|
|
1600
1701
|
input.suiteDefinitionName !== null && { suiteDefinitionName: input.suiteDefinitionName }));
|
|
1601
1702
|
};
|
|
1602
1703
|
var serializeAws_restJson1SuiteRunConfiguration = function (input, context) {
|
|
1603
|
-
return __assign(__assign({}, (input.primaryDevice !== undefined &&
|
|
1704
|
+
return __assign(__assign(__assign({}, (input.parallelRun !== undefined && input.parallelRun !== null && { parallelRun: input.parallelRun })), (input.primaryDevice !== undefined &&
|
|
1604
1705
|
input.primaryDevice !== null && {
|
|
1605
1706
|
primaryDevice: serializeAws_restJson1DeviceUnderTest(input.primaryDevice, context),
|
|
1606
1707
|
})), (input.selectedTestList !== undefined &&
|
|
@@ -1699,6 +1800,7 @@ var deserializeAws_restJson1SuiteDefinitionInformationList = function (output, c
|
|
|
1699
1800
|
};
|
|
1700
1801
|
var deserializeAws_restJson1SuiteRunConfiguration = function (output, context) {
|
|
1701
1802
|
return {
|
|
1803
|
+
parallelRun: __expectBoolean(output.parallelRun),
|
|
1702
1804
|
primaryDevice: output.primaryDevice !== undefined && output.primaryDevice !== null
|
|
1703
1805
|
? deserializeAws_restJson1DeviceUnderTest(output.primaryDevice, context)
|
|
1704
1806
|
: undefined,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
5
|
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
|
10
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
11
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
13
|
export var getRuntimeConfig = function (config) {
|
|
13
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
14
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
14
15
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
15
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
16
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
16
17
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
|
-
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
5
5
|
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
6
6
|
import { Hash } from "@aws-sdk/hash-node";
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
15
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
16
|
export var getRuntimeConfig = function (config) {
|
|
17
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
17
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
19
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
20
|
-
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector,
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
|
|
21
21
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
2
|
import { CreateSuiteDefinitionCommandInput, CreateSuiteDefinitionCommandOutput } from "./commands/CreateSuiteDefinitionCommand";
|
|
3
3
|
import { DeleteSuiteDefinitionCommandInput, DeleteSuiteDefinitionCommandOutput } from "./commands/DeleteSuiteDefinitionCommand";
|
|
4
|
+
import { GetEndpointCommandInput, GetEndpointCommandOutput } from "./commands/GetEndpointCommand";
|
|
4
5
|
import { GetSuiteDefinitionCommandInput, GetSuiteDefinitionCommandOutput } from "./commands/GetSuiteDefinitionCommand";
|
|
5
6
|
import { GetSuiteRunCommandInput, GetSuiteRunCommandOutput } from "./commands/GetSuiteRunCommand";
|
|
6
7
|
import { GetSuiteRunReportCommandInput, GetSuiteRunReportCommandOutput } from "./commands/GetSuiteRunReportCommand";
|
|
@@ -14,84 +15,111 @@ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./command
|
|
|
14
15
|
import { UpdateSuiteDefinitionCommandInput, UpdateSuiteDefinitionCommandOutput } from "./commands/UpdateSuiteDefinitionCommand";
|
|
15
16
|
import { IotDeviceAdvisorClient } from "./IotDeviceAdvisorClient";
|
|
16
17
|
/**
|
|
17
|
-
* <p>
|
|
18
|
+
* <p>Amazon Web Services IoT Core Device Advisor is a cloud-based, fully managed test capability for
|
|
19
|
+
* validating IoT devices during device software development. Device Advisor provides
|
|
20
|
+
* pre-built tests that you can use to validate IoT devices for reliable and secure
|
|
21
|
+
* connectivity with Amazon Web Services IoT Core before deploying devices to production. By using Device Advisor,
|
|
22
|
+
* you can confirm that your devices can connect to Amazon Web Services IoT Core, follow security
|
|
23
|
+
* best practices and, if applicable, receive software updates from IoT Device Management.
|
|
24
|
+
* You can also download signed qualification reports to submit to the Amazon Web Services Partner Network
|
|
25
|
+
* to get your device qualified for the Amazon Web Services Partner Device Catalog without the need to send
|
|
26
|
+
* your device in and wait for it to be tested.</p>
|
|
18
27
|
*/
|
|
19
28
|
export declare class IotDeviceAdvisor extends IotDeviceAdvisorClient {
|
|
20
29
|
/**
|
|
21
30
|
* <p>Creates a Device Advisor test suite.</p>
|
|
31
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateSuiteDefinition</a> action.</p>
|
|
22
32
|
*/
|
|
23
33
|
createSuiteDefinition(args: CreateSuiteDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<CreateSuiteDefinitionCommandOutput>;
|
|
24
34
|
createSuiteDefinition(args: CreateSuiteDefinitionCommandInput, cb: (err: any, data?: CreateSuiteDefinitionCommandOutput) => void): void;
|
|
25
35
|
createSuiteDefinition(args: CreateSuiteDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSuiteDefinitionCommandOutput) => void): void;
|
|
26
36
|
/**
|
|
27
37
|
* <p>Deletes a Device Advisor test suite.</p>
|
|
38
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DeleteSuiteDefinition</a> action.</p>
|
|
28
39
|
*/
|
|
29
40
|
deleteSuiteDefinition(args: DeleteSuiteDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSuiteDefinitionCommandOutput>;
|
|
30
41
|
deleteSuiteDefinition(args: DeleteSuiteDefinitionCommandInput, cb: (err: any, data?: DeleteSuiteDefinitionCommandOutput) => void): void;
|
|
31
42
|
deleteSuiteDefinition(args: DeleteSuiteDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSuiteDefinitionCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* <p>Gets information about an Device Advisor endpoint.</p>
|
|
45
|
+
*/
|
|
46
|
+
getEndpoint(args: GetEndpointCommandInput, options?: __HttpHandlerOptions): Promise<GetEndpointCommandOutput>;
|
|
47
|
+
getEndpoint(args: GetEndpointCommandInput, cb: (err: any, data?: GetEndpointCommandOutput) => void): void;
|
|
48
|
+
getEndpoint(args: GetEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEndpointCommandOutput) => void): void;
|
|
32
49
|
/**
|
|
33
50
|
* <p>Gets information about a Device Advisor test suite.</p>
|
|
51
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetSuiteDefinition</a> action.</p>
|
|
34
52
|
*/
|
|
35
53
|
getSuiteDefinition(args: GetSuiteDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<GetSuiteDefinitionCommandOutput>;
|
|
36
54
|
getSuiteDefinition(args: GetSuiteDefinitionCommandInput, cb: (err: any, data?: GetSuiteDefinitionCommandOutput) => void): void;
|
|
37
55
|
getSuiteDefinition(args: GetSuiteDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSuiteDefinitionCommandOutput) => void): void;
|
|
38
56
|
/**
|
|
39
57
|
* <p>Gets information about a Device Advisor test suite run.</p>
|
|
58
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetSuiteRun</a> action.</p>
|
|
40
59
|
*/
|
|
41
60
|
getSuiteRun(args: GetSuiteRunCommandInput, options?: __HttpHandlerOptions): Promise<GetSuiteRunCommandOutput>;
|
|
42
61
|
getSuiteRun(args: GetSuiteRunCommandInput, cb: (err: any, data?: GetSuiteRunCommandOutput) => void): void;
|
|
43
62
|
getSuiteRun(args: GetSuiteRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSuiteRunCommandOutput) => void): void;
|
|
44
63
|
/**
|
|
45
64
|
* <p>Gets a report download link for a successful Device Advisor qualifying test suite run.</p>
|
|
65
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetSuiteRunReport</a> action.</p>
|
|
46
66
|
*/
|
|
47
67
|
getSuiteRunReport(args: GetSuiteRunReportCommandInput, options?: __HttpHandlerOptions): Promise<GetSuiteRunReportCommandOutput>;
|
|
48
68
|
getSuiteRunReport(args: GetSuiteRunReportCommandInput, cb: (err: any, data?: GetSuiteRunReportCommandOutput) => void): void;
|
|
49
69
|
getSuiteRunReport(args: GetSuiteRunReportCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSuiteRunReportCommandOutput) => void): void;
|
|
50
70
|
/**
|
|
51
71
|
* <p>Lists the Device Advisor test suites you have created.</p>
|
|
72
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListSuiteDefinitions</a> action.</p>
|
|
52
73
|
*/
|
|
53
74
|
listSuiteDefinitions(args: ListSuiteDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<ListSuiteDefinitionsCommandOutput>;
|
|
54
75
|
listSuiteDefinitions(args: ListSuiteDefinitionsCommandInput, cb: (err: any, data?: ListSuiteDefinitionsCommandOutput) => void): void;
|
|
55
76
|
listSuiteDefinitions(args: ListSuiteDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSuiteDefinitionsCommandOutput) => void): void;
|
|
56
77
|
/**
|
|
57
|
-
* <p>Lists
|
|
58
|
-
*
|
|
78
|
+
* <p>Lists runs of the specified Device Advisor test suite. You can list all runs of the test
|
|
79
|
+
* suite, or the runs of a specific version of the test suite.</p>
|
|
80
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListSuiteRuns</a> action.</p>
|
|
59
81
|
*/
|
|
60
82
|
listSuiteRuns(args: ListSuiteRunsCommandInput, options?: __HttpHandlerOptions): Promise<ListSuiteRunsCommandOutput>;
|
|
61
83
|
listSuiteRuns(args: ListSuiteRunsCommandInput, cb: (err: any, data?: ListSuiteRunsCommandOutput) => void): void;
|
|
62
84
|
listSuiteRuns(args: ListSuiteRunsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSuiteRunsCommandOutput) => void): void;
|
|
63
85
|
/**
|
|
64
86
|
* <p>Lists the tags attached to an IoT Device Advisor resource.</p>
|
|
87
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListTagsForResource</a> action.</p>
|
|
65
88
|
*/
|
|
66
89
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
67
90
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
68
91
|
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
69
92
|
/**
|
|
70
93
|
* <p>Starts a Device Advisor test suite run.</p>
|
|
94
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">StartSuiteRun</a> action.</p>
|
|
71
95
|
*/
|
|
72
96
|
startSuiteRun(args: StartSuiteRunCommandInput, options?: __HttpHandlerOptions): Promise<StartSuiteRunCommandOutput>;
|
|
73
97
|
startSuiteRun(args: StartSuiteRunCommandInput, cb: (err: any, data?: StartSuiteRunCommandOutput) => void): void;
|
|
74
98
|
startSuiteRun(args: StartSuiteRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSuiteRunCommandOutput) => void): void;
|
|
75
99
|
/**
|
|
76
100
|
* <p>Stops a Device Advisor test suite run that is currently running.</p>
|
|
101
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">StopSuiteRun</a> action.</p>
|
|
77
102
|
*/
|
|
78
103
|
stopSuiteRun(args: StopSuiteRunCommandInput, options?: __HttpHandlerOptions): Promise<StopSuiteRunCommandOutput>;
|
|
79
104
|
stopSuiteRun(args: StopSuiteRunCommandInput, cb: (err: any, data?: StopSuiteRunCommandOutput) => void): void;
|
|
80
105
|
stopSuiteRun(args: StopSuiteRunCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopSuiteRunCommandOutput) => void): void;
|
|
81
106
|
/**
|
|
82
107
|
* <p>Adds to and modifies existing tags of an IoT Device Advisor resource.</p>
|
|
108
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">TagResource</a> action.</p>
|
|
83
109
|
*/
|
|
84
110
|
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
85
111
|
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
86
112
|
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
87
113
|
/**
|
|
88
114
|
* <p>Removes tags from an IoT Device Advisor resource.</p>
|
|
115
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UntagResource</a> action.</p>
|
|
89
116
|
*/
|
|
90
117
|
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
91
118
|
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
92
119
|
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
93
120
|
/**
|
|
94
121
|
* <p>Updates a Device Advisor test suite.</p>
|
|
122
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">UpdateSuiteDefinition</a> action.</p>
|
|
95
123
|
*/
|
|
96
124
|
updateSuiteDefinition(args: UpdateSuiteDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSuiteDefinitionCommandOutput>;
|
|
97
125
|
updateSuiteDefinition(args: UpdateSuiteDefinitionCommandInput, cb: (err: any, data?: UpdateSuiteDefinitionCommandOutput) => void): void;
|
|
@@ -8,6 +8,7 @@ import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, Smith
|
|
|
8
8
|
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateSuiteDefinitionCommandInput, CreateSuiteDefinitionCommandOutput } from "./commands/CreateSuiteDefinitionCommand";
|
|
10
10
|
import { DeleteSuiteDefinitionCommandInput, DeleteSuiteDefinitionCommandOutput } from "./commands/DeleteSuiteDefinitionCommand";
|
|
11
|
+
import { GetEndpointCommandInput, GetEndpointCommandOutput } from "./commands/GetEndpointCommand";
|
|
11
12
|
import { GetSuiteDefinitionCommandInput, GetSuiteDefinitionCommandOutput } from "./commands/GetSuiteDefinitionCommand";
|
|
12
13
|
import { GetSuiteRunCommandInput, GetSuiteRunCommandOutput } from "./commands/GetSuiteRunCommand";
|
|
13
14
|
import { GetSuiteRunReportCommandInput, GetSuiteRunReportCommandOutput } from "./commands/GetSuiteRunReportCommand";
|
|
@@ -19,8 +20,8 @@ import { StopSuiteRunCommandInput, StopSuiteRunCommandOutput } from "./commands/
|
|
|
19
20
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
20
21
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
21
22
|
import { UpdateSuiteDefinitionCommandInput, UpdateSuiteDefinitionCommandOutput } from "./commands/UpdateSuiteDefinitionCommand";
|
|
22
|
-
export declare type ServiceInputTypes = CreateSuiteDefinitionCommandInput | DeleteSuiteDefinitionCommandInput | GetSuiteDefinitionCommandInput | GetSuiteRunCommandInput | GetSuiteRunReportCommandInput | ListSuiteDefinitionsCommandInput | ListSuiteRunsCommandInput | ListTagsForResourceCommandInput | StartSuiteRunCommandInput | StopSuiteRunCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSuiteDefinitionCommandInput;
|
|
23
|
-
export declare type ServiceOutputTypes = CreateSuiteDefinitionCommandOutput | DeleteSuiteDefinitionCommandOutput | GetSuiteDefinitionCommandOutput | GetSuiteRunCommandOutput | GetSuiteRunReportCommandOutput | ListSuiteDefinitionsCommandOutput | ListSuiteRunsCommandOutput | ListTagsForResourceCommandOutput | StartSuiteRunCommandOutput | StopSuiteRunCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSuiteDefinitionCommandOutput;
|
|
23
|
+
export declare type ServiceInputTypes = CreateSuiteDefinitionCommandInput | DeleteSuiteDefinitionCommandInput | GetEndpointCommandInput | GetSuiteDefinitionCommandInput | GetSuiteRunCommandInput | GetSuiteRunReportCommandInput | ListSuiteDefinitionsCommandInput | ListSuiteRunsCommandInput | ListTagsForResourceCommandInput | StartSuiteRunCommandInput | StopSuiteRunCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateSuiteDefinitionCommandInput;
|
|
24
|
+
export declare type ServiceOutputTypes = CreateSuiteDefinitionCommandOutput | DeleteSuiteDefinitionCommandOutput | GetEndpointCommandOutput | GetSuiteDefinitionCommandOutput | GetSuiteRunCommandOutput | GetSuiteRunReportCommandOutput | ListSuiteDefinitionsCommandOutput | ListSuiteRunsCommandOutput | ListTagsForResourceCommandOutput | StartSuiteRunCommandOutput | StopSuiteRunCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateSuiteDefinitionCommandOutput;
|
|
24
25
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
25
26
|
/**
|
|
26
27
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -89,6 +90,14 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
89
90
|
* Optional logger for logging debug/info/warn/error.
|
|
90
91
|
*/
|
|
91
92
|
logger?: __Logger;
|
|
93
|
+
/**
|
|
94
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
95
|
+
*/
|
|
96
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
97
|
+
/**
|
|
98
|
+
* Enables FIPS compatible endpoints.
|
|
99
|
+
*/
|
|
100
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
92
101
|
/**
|
|
93
102
|
* Unique service identifier.
|
|
94
103
|
* @internal
|
|
@@ -127,7 +136,15 @@ declare type IotDeviceAdvisorClientResolvedConfigType = __SmithyResolvedConfigur
|
|
|
127
136
|
export interface IotDeviceAdvisorClientResolvedConfig extends IotDeviceAdvisorClientResolvedConfigType {
|
|
128
137
|
}
|
|
129
138
|
/**
|
|
130
|
-
* <p>
|
|
139
|
+
* <p>Amazon Web Services IoT Core Device Advisor is a cloud-based, fully managed test capability for
|
|
140
|
+
* validating IoT devices during device software development. Device Advisor provides
|
|
141
|
+
* pre-built tests that you can use to validate IoT devices for reliable and secure
|
|
142
|
+
* connectivity with Amazon Web Services IoT Core before deploying devices to production. By using Device Advisor,
|
|
143
|
+
* you can confirm that your devices can connect to Amazon Web Services IoT Core, follow security
|
|
144
|
+
* best practices and, if applicable, receive software updates from IoT Device Management.
|
|
145
|
+
* You can also download signed qualification reports to submit to the Amazon Web Services Partner Network
|
|
146
|
+
* to get your device qualified for the Amazon Web Services Partner Device Catalog without the need to send
|
|
147
|
+
* your device in and wait for it to be tested.</p>
|
|
131
148
|
*/
|
|
132
149
|
export declare class IotDeviceAdvisorClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, IotDeviceAdvisorClientResolvedConfig> {
|
|
133
150
|
/**
|
|
@@ -8,6 +8,7 @@ export interface CreateSuiteDefinitionCommandOutput extends CreateSuiteDefinitio
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Creates a Device Advisor test suite.</p>
|
|
11
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CreateSuiteDefinition</a> action.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -20,7 +21,7 @@ export interface CreateSuiteDefinitionCommandOutput extends CreateSuiteDefinitio
|
|
|
20
21
|
*
|
|
21
22
|
* @see {@link CreateSuiteDefinitionCommandInput} for command's `input` shape.
|
|
22
23
|
* @see {@link CreateSuiteDefinitionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare class CreateSuiteDefinitionCommand extends $Command<CreateSuiteDefinitionCommandInput, CreateSuiteDefinitionCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
@@ -8,6 +8,7 @@ export interface DeleteSuiteDefinitionCommandOutput extends DeleteSuiteDefinitio
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Deletes a Device Advisor test suite.</p>
|
|
11
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DeleteSuiteDefinition</a> action.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -20,7 +21,7 @@ export interface DeleteSuiteDefinitionCommandOutput extends DeleteSuiteDefinitio
|
|
|
20
21
|
*
|
|
21
22
|
* @see {@link DeleteSuiteDefinitionCommandInput} for command's `input` shape.
|
|
22
23
|
* @see {@link DeleteSuiteDefinitionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare class DeleteSuiteDefinitionCommand extends $Command<DeleteSuiteDefinitionCommandInput, DeleteSuiteDefinitionCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { IotDeviceAdvisorClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IotDeviceAdvisorClient";
|
|
4
|
+
import { GetEndpointRequest, GetEndpointResponse } from "../models/models_0";
|
|
5
|
+
export interface GetEndpointCommandInput extends GetEndpointRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface GetEndpointCommandOutput extends GetEndpointResponse, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Gets information about an Device Advisor endpoint.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { IotDeviceAdvisorClient, GetEndpointCommand } from "@aws-sdk/client-iotdeviceadvisor"; // ES Modules import
|
|
15
|
+
* // const { IotDeviceAdvisorClient, GetEndpointCommand } = require("@aws-sdk/client-iotdeviceadvisor"); // CommonJS import
|
|
16
|
+
* const client = new IotDeviceAdvisorClient(config);
|
|
17
|
+
* const command = new GetEndpointCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link GetEndpointCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link GetEndpointCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class GetEndpointCommand extends $Command<GetEndpointCommandInput, GetEndpointCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
27
|
+
readonly input: GetEndpointCommandInput;
|
|
28
|
+
constructor(input: GetEndpointCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: IotDeviceAdvisorClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetEndpointCommandInput, GetEndpointCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -8,6 +8,7 @@ export interface GetSuiteDefinitionCommandOutput extends GetSuiteDefinitionRespo
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Gets information about a Device Advisor test suite.</p>
|
|
11
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetSuiteDefinition</a> action.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -20,7 +21,7 @@ export interface GetSuiteDefinitionCommandOutput extends GetSuiteDefinitionRespo
|
|
|
20
21
|
*
|
|
21
22
|
* @see {@link GetSuiteDefinitionCommandInput} for command's `input` shape.
|
|
22
23
|
* @see {@link GetSuiteDefinitionCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare class GetSuiteDefinitionCommand extends $Command<GetSuiteDefinitionCommandInput, GetSuiteDefinitionCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
@@ -8,6 +8,7 @@ export interface GetSuiteRunCommandOutput extends GetSuiteRunResponse, __Metadat
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Gets information about a Device Advisor test suite run.</p>
|
|
11
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetSuiteRun</a> action.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -20,7 +21,7 @@ export interface GetSuiteRunCommandOutput extends GetSuiteRunResponse, __Metadat
|
|
|
20
21
|
*
|
|
21
22
|
* @see {@link GetSuiteRunCommandInput} for command's `input` shape.
|
|
22
23
|
* @see {@link GetSuiteRunCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare class GetSuiteRunCommand extends $Command<GetSuiteRunCommandInput, GetSuiteRunCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
@@ -8,6 +8,7 @@ export interface GetSuiteRunReportCommandOutput extends GetSuiteRunReportRespons
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Gets a report download link for a successful Device Advisor qualifying test suite run.</p>
|
|
11
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">GetSuiteRunReport</a> action.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -20,7 +21,7 @@ export interface GetSuiteRunReportCommandOutput extends GetSuiteRunReportRespons
|
|
|
20
21
|
*
|
|
21
22
|
* @see {@link GetSuiteRunReportCommandInput} for command's `input` shape.
|
|
22
23
|
* @see {@link GetSuiteRunReportCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare class GetSuiteRunReportCommand extends $Command<GetSuiteRunReportCommandInput, GetSuiteRunReportCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
@@ -8,6 +8,7 @@ export interface ListSuiteDefinitionsCommandOutput extends ListSuiteDefinitionsR
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Lists the Device Advisor test suites you have created.</p>
|
|
11
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListSuiteDefinitions</a> action.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -20,7 +21,7 @@ export interface ListSuiteDefinitionsCommandOutput extends ListSuiteDefinitionsR
|
|
|
20
21
|
*
|
|
21
22
|
* @see {@link ListSuiteDefinitionsCommandInput} for command's `input` shape.
|
|
22
23
|
* @see {@link ListSuiteDefinitionsCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare class ListSuiteDefinitionsCommand extends $Command<ListSuiteDefinitionsCommandInput, ListSuiteDefinitionsCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
@@ -7,8 +7,9 @@ export interface ListSuiteRunsCommandInput extends ListSuiteRunsRequest {
|
|
|
7
7
|
export interface ListSuiteRunsCommandOutput extends ListSuiteRunsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Lists
|
|
11
|
-
*
|
|
10
|
+
* <p>Lists runs of the specified Device Advisor test suite. You can list all runs of the test
|
|
11
|
+
* suite, or the runs of a specific version of the test suite.</p>
|
|
12
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListSuiteRuns</a> action.</p>
|
|
12
13
|
* @example
|
|
13
14
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
15
|
* ```javascript
|
|
@@ -21,7 +22,7 @@ export interface ListSuiteRunsCommandOutput extends ListSuiteRunsResponse, __Met
|
|
|
21
22
|
*
|
|
22
23
|
* @see {@link ListSuiteRunsCommandInput} for command's `input` shape.
|
|
23
24
|
* @see {@link ListSuiteRunsCommandOutput} for command's `response` shape.
|
|
24
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
25
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
25
26
|
*
|
|
26
27
|
*/
|
|
27
28
|
export declare class ListSuiteRunsCommand extends $Command<ListSuiteRunsCommandInput, ListSuiteRunsCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
@@ -8,6 +8,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Lists the tags attached to an IoT Device Advisor resource.</p>
|
|
11
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListTagsForResource</a> action.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -20,7 +21,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
|
|
|
20
21
|
*
|
|
21
22
|
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
22
23
|
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare class ListTagsForResourceCommand extends $Command<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|
|
@@ -8,6 +8,7 @@ export interface StartSuiteRunCommandOutput extends StartSuiteRunResponse, __Met
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Starts a Device Advisor test suite run.</p>
|
|
11
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">StartSuiteRun</a> action.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|
|
@@ -20,7 +21,7 @@ export interface StartSuiteRunCommandOutput extends StartSuiteRunResponse, __Met
|
|
|
20
21
|
*
|
|
21
22
|
* @see {@link StartSuiteRunCommandInput} for command's `input` shape.
|
|
22
23
|
* @see {@link StartSuiteRunCommandOutput} for command's `response` shape.
|
|
23
|
-
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for
|
|
24
|
+
* @see {@link IotDeviceAdvisorClientResolvedConfig | config} for IotDeviceAdvisorClient's `config` shape.
|
|
24
25
|
*
|
|
25
26
|
*/
|
|
26
27
|
export declare class StartSuiteRunCommand extends $Command<StartSuiteRunCommandInput, StartSuiteRunCommandOutput, IotDeviceAdvisorClientResolvedConfig> {
|