@aws-sdk/client-iotdeviceadvisor 3.42.0 → 3.47.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 +50 -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 +1 -0
- package/dist-cjs/models/models_0.js +13 -25
- package/dist-cjs/protocols/Aws_restJson1.js +88 -1
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -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 +1 -0
- package/dist-es/models/models_0.js +8 -16
- package/dist-es/protocols/Aws_restJson1.js +103 -1
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/IotDeviceAdvisor.d.ts +31 -3
- package/dist-types/IotDeviceAdvisorClient.d.ts +17 -4
- package/dist-types/commands/CreateSuiteDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/DeleteSuiteDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/GetEndpointCommand.d.ts +35 -0
- package/dist-types/commands/GetSuiteDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/GetSuiteRunCommand.d.ts +1 -0
- package/dist-types/commands/GetSuiteRunReportCommand.d.ts +1 -0
- package/dist-types/commands/ListSuiteDefinitionsCommand.d.ts +1 -0
- package/dist-types/commands/ListSuiteRunsCommand.d.ts +3 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
- package/dist-types/commands/StartSuiteRunCommand.d.ts +1 -0
- package/dist-types/commands/StopSuiteRunCommand.d.ts +1 -0
- package/dist-types/commands/TagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSuiteDefinitionCommand.d.ts +1 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +123 -78
- package/dist-types/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/IotDeviceAdvisor.d.ts +5 -0
- package/dist-types/ts3.4/IotDeviceAdvisorClient.d.ts +6 -3
- 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 +27 -23
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -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,8 +1,8 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
5
|
-
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
|
|
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
|
10
10
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
11
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
12
12
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
15
|
export var getRuntimeConfig = function (config) {
|
|
14
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
18
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
15
19
|
var clientSharedValues = getSharedRuntimeConfig(config);
|
|
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
|
|
20
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
21
|
+
switch (_a.label) {
|
|
22
|
+
case 0: return [4, defaultConfigProvider()];
|
|
23
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
24
|
+
}
|
|
25
|
+
}); }); }), 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 });
|
|
17
26
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,21 +1,28 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import packageInfo from "../package.json";
|
|
3
3
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
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
|
-
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
9
|
-
import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
|
|
11
11
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
12
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
13
13
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
14
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
|
-
import {
|
|
15
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
16
17
|
export var getRuntimeConfig = function (config) {
|
|
17
18
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
18
|
-
|
|
19
|
+
var defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
|
|
19
21
|
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
|
|
22
|
+
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
23
|
+
switch (_a.label) {
|
|
24
|
+
case 0: return [4, defaultConfigProvider()];
|
|
25
|
+
case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
|
|
26
|
+
}
|
|
27
|
+
}); }); } })), 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
28
|
};
|
|
@@ -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;
|
|
@@ -4,10 +4,11 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
|
|
|
4
4
|
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
|
-
import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
7
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
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.
|
|
@@ -121,6 +122,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
121
122
|
* @internal
|
|
122
123
|
*/
|
|
123
124
|
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
125
|
+
/**
|
|
126
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
127
|
+
*/
|
|
128
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
124
129
|
}
|
|
125
130
|
declare type IotDeviceAdvisorClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
|
|
126
131
|
/**
|
|
@@ -135,7 +140,15 @@ declare type IotDeviceAdvisorClientResolvedConfigType = __SmithyResolvedConfigur
|
|
|
135
140
|
export interface IotDeviceAdvisorClientResolvedConfig extends IotDeviceAdvisorClientResolvedConfigType {
|
|
136
141
|
}
|
|
137
142
|
/**
|
|
138
|
-
* <p>
|
|
143
|
+
* <p>Amazon Web Services IoT Core Device Advisor is a cloud-based, fully managed test capability for
|
|
144
|
+
* validating IoT devices during device software development. Device Advisor provides
|
|
145
|
+
* pre-built tests that you can use to validate IoT devices for reliable and secure
|
|
146
|
+
* connectivity with Amazon Web Services IoT Core before deploying devices to production. By using Device Advisor,
|
|
147
|
+
* you can confirm that your devices can connect to Amazon Web Services IoT Core, follow security
|
|
148
|
+
* best practices and, if applicable, receive software updates from IoT Device Management.
|
|
149
|
+
* You can also download signed qualification reports to submit to the Amazon Web Services Partner Network
|
|
150
|
+
* to get your device qualified for the Amazon Web Services Partner Device Catalog without the need to send
|
|
151
|
+
* your device in and wait for it to be tested.</p>
|
|
139
152
|
*/
|
|
140
153
|
export declare class IotDeviceAdvisorClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, IotDeviceAdvisorClientResolvedConfig> {
|
|
141
154
|
/**
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|
|
@@ -8,6 +8,7 @@ export interface StopSuiteRunCommandOutput extends StopSuiteRunResponse, __Metad
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Stops a Device Advisor test suite run that is currently running.</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">StopSuiteRun</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
|
|
@@ -8,6 +8,7 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Adds to and modifies existing tags of 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">TagResource</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
|
|
@@ -8,6 +8,7 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Removes tags from 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">UntagResource</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
|
|
@@ -8,6 +8,7 @@ export interface UpdateSuiteDefinitionCommandOutput extends UpdateSuiteDefinitio
|
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* <p>Updates 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">UpdateSuiteDefinition</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
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./CreateSuiteDefinitionCommand";
|
|
2
2
|
export * from "./DeleteSuiteDefinitionCommand";
|
|
3
|
+
export * from "./GetEndpointCommand";
|
|
3
4
|
export * from "./GetSuiteDefinitionCommand";
|
|
4
5
|
export * from "./GetSuiteRunCommand";
|
|
5
6
|
export * from "./GetSuiteRunReportCommand";
|