@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-iotdeviceadvisor
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Features
|
|
40
|
+
|
|
41
|
+
* **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
6
47
|
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
7
48
|
|
|
8
49
|
**Note:** Version bump only for package @aws-sdk/client-iotdeviceadvisor
|
package/README.md
CHANGED
|
@@ -7,7 +7,15 @@
|
|
|
7
7
|
|
|
8
8
|
AWS SDK for JavaScript IotDeviceAdvisor Client for Node.js, Browser and React Native.
|
|
9
9
|
|
|
10
|
-
<p>
|
|
10
|
+
<p>Amazon Web Services IoT Core Device Advisor is a cloud-based, fully managed test capability for
|
|
11
|
+
validating IoT devices during device software development. Device Advisor provides
|
|
12
|
+
pre-built tests that you can use to validate IoT devices for reliable and secure
|
|
13
|
+
connectivity with Amazon Web Services IoT Core before deploying devices to production. By using Device Advisor,
|
|
14
|
+
you can confirm that your devices can connect to Amazon Web Services IoT Core, follow security
|
|
15
|
+
best practices and, if applicable, receive software updates from IoT Device Management.
|
|
16
|
+
You can also download signed qualification reports to submit to the Amazon Web Services Partner Network
|
|
17
|
+
to get your device qualified for the Amazon Web Services Partner Device Catalog without the need to send
|
|
18
|
+
your device in and wait for it to be tested.</p>
|
|
11
19
|
|
|
12
20
|
## Installing
|
|
13
21
|
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.IotDeviceAdvisor = void 0;
|
|
4
4
|
const CreateSuiteDefinitionCommand_1 = require("./commands/CreateSuiteDefinitionCommand");
|
|
5
5
|
const DeleteSuiteDefinitionCommand_1 = require("./commands/DeleteSuiteDefinitionCommand");
|
|
6
|
+
const GetEndpointCommand_1 = require("./commands/GetEndpointCommand");
|
|
6
7
|
const GetSuiteDefinitionCommand_1 = require("./commands/GetSuiteDefinitionCommand");
|
|
7
8
|
const GetSuiteRunCommand_1 = require("./commands/GetSuiteRunCommand");
|
|
8
9
|
const GetSuiteRunReportCommand_1 = require("./commands/GetSuiteRunReportCommand");
|
|
@@ -44,6 +45,20 @@ class IotDeviceAdvisor extends IotDeviceAdvisorClient_1.IotDeviceAdvisorClient {
|
|
|
44
45
|
return this.send(command, optionsOrCb);
|
|
45
46
|
}
|
|
46
47
|
}
|
|
48
|
+
getEndpoint(args, optionsOrCb, cb) {
|
|
49
|
+
const command = new GetEndpointCommand_1.GetEndpointCommand(args);
|
|
50
|
+
if (typeof optionsOrCb === "function") {
|
|
51
|
+
this.send(command, optionsOrCb);
|
|
52
|
+
}
|
|
53
|
+
else if (typeof cb === "function") {
|
|
54
|
+
if (typeof optionsOrCb !== "object")
|
|
55
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
56
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
return this.send(command, optionsOrCb);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
47
62
|
getSuiteDefinition(args, optionsOrCb, cb) {
|
|
48
63
|
const command = new GetSuiteDefinitionCommand_1.GetSuiteDefinitionCommand(args);
|
|
49
64
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetEndpointCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetEndpointCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "IotDeviceAdvisorClient";
|
|
18
|
+
const commandName = "GetEndpointCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetEndpointRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetEndpointResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_restJson1_1.serializeAws_restJson1GetEndpointCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_restJson1_1.deserializeAws_restJson1GetEndpointCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetEndpointCommand = GetEndpointCommand;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CreateSuiteDefinitionCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DeleteSuiteDefinitionCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GetEndpointCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./GetSuiteDefinitionCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./GetSuiteRunCommand"), exports);
|
|
8
9
|
tslib_1.__exportStar(require("./GetSuiteRunReportCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -29,27 +29,96 @@ const partitionHash = {
|
|
|
29
29
|
"us-west-2",
|
|
30
30
|
],
|
|
31
31
|
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
32
|
-
|
|
32
|
+
variants: [
|
|
33
|
+
{
|
|
34
|
+
hostname: "api.iotdeviceadvisor.{region}.amazonaws.com",
|
|
35
|
+
tags: [],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.amazonaws.com",
|
|
39
|
+
tags: ["fips"],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.api.aws",
|
|
43
|
+
tags: ["dualstack", "fips"],
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
hostname: "api.iotdeviceadvisor.{region}.api.aws",
|
|
47
|
+
tags: ["dualstack"],
|
|
48
|
+
},
|
|
49
|
+
],
|
|
33
50
|
},
|
|
34
51
|
"aws-cn": {
|
|
35
52
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
36
53
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
37
|
-
|
|
54
|
+
variants: [
|
|
55
|
+
{
|
|
56
|
+
hostname: "api.iotdeviceadvisor.{region}.amazonaws.com.cn",
|
|
57
|
+
tags: [],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.amazonaws.com.cn",
|
|
61
|
+
tags: ["fips"],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.api.amazonwebservices.com.cn",
|
|
65
|
+
tags: ["dualstack", "fips"],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
hostname: "api.iotdeviceadvisor.{region}.api.amazonwebservices.com.cn",
|
|
69
|
+
tags: ["dualstack"],
|
|
70
|
+
},
|
|
71
|
+
],
|
|
38
72
|
},
|
|
39
73
|
"aws-iso": {
|
|
40
74
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
41
75
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
42
|
-
|
|
76
|
+
variants: [
|
|
77
|
+
{
|
|
78
|
+
hostname: "api.iotdeviceadvisor.{region}.c2s.ic.gov",
|
|
79
|
+
tags: [],
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.c2s.ic.gov",
|
|
83
|
+
tags: ["fips"],
|
|
84
|
+
},
|
|
85
|
+
],
|
|
43
86
|
},
|
|
44
87
|
"aws-iso-b": {
|
|
45
88
|
regions: ["us-isob-east-1"],
|
|
46
89
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
47
|
-
|
|
90
|
+
variants: [
|
|
91
|
+
{
|
|
92
|
+
hostname: "api.iotdeviceadvisor.{region}.sc2s.sgov.gov",
|
|
93
|
+
tags: [],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.sc2s.sgov.gov",
|
|
97
|
+
tags: ["fips"],
|
|
98
|
+
},
|
|
99
|
+
],
|
|
48
100
|
},
|
|
49
101
|
"aws-us-gov": {
|
|
50
102
|
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
51
103
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
52
|
-
|
|
104
|
+
variants: [
|
|
105
|
+
{
|
|
106
|
+
hostname: "api.iotdeviceadvisor.{region}.amazonaws.com",
|
|
107
|
+
tags: [],
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.amazonaws.com",
|
|
111
|
+
tags: ["fips"],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.api.aws",
|
|
115
|
+
tags: ["dualstack", "fips"],
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
hostname: "api.iotdeviceadvisor.{region}.api.aws",
|
|
119
|
+
tags: ["dualstack"],
|
|
120
|
+
},
|
|
121
|
+
],
|
|
53
122
|
},
|
|
54
123
|
};
|
|
55
124
|
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateSuiteDefinitionResponse = exports.UpdateSuiteDefinitionRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopSuiteRunResponse = exports.StopSuiteRunRequest = exports.StartSuiteRunResponse = exports.StartSuiteRunRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSuiteRunsResponse = exports.SuiteRunInformation = exports.ListSuiteRunsRequest = exports.ListSuiteDefinitionsResponse = exports.SuiteDefinitionInformation = exports.ListSuiteDefinitionsRequest = exports.GetSuiteRunReportResponse = exports.GetSuiteRunReportRequest = exports.GetSuiteRunResponse = exports.TestResult = exports.GroupResult = exports.TestCaseRun = exports.Status = exports.SuiteRunConfiguration = exports.SuiteRunStatus = exports.GetSuiteRunRequest = exports.ResourceNotFoundException = exports.
|
|
3
|
+
exports.UpdateSuiteDefinitionResponse = exports.UpdateSuiteDefinitionRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StopSuiteRunResponse = exports.StopSuiteRunRequest = exports.StartSuiteRunResponse = exports.StartSuiteRunRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListSuiteRunsResponse = exports.SuiteRunInformation = exports.ListSuiteRunsRequest = exports.ListSuiteDefinitionsResponse = exports.SuiteDefinitionInformation = exports.ListSuiteDefinitionsRequest = exports.GetSuiteRunReportResponse = exports.GetSuiteRunReportRequest = exports.GetSuiteRunResponse = exports.TestResult = exports.GroupResult = exports.TestCaseRun = exports.Status = exports.SuiteRunConfiguration = exports.SuiteRunStatus = exports.GetSuiteRunRequest = exports.GetSuiteDefinitionResponse = exports.GetSuiteDefinitionRequest = exports.ResourceNotFoundException = exports.GetEndpointResponse = exports.GetEndpointRequest = exports.DeleteSuiteDefinitionResponse = exports.DeleteSuiteDefinitionRequest = exports.ValidationException = exports.InternalServerException = exports.CreateSuiteDefinitionResponse = exports.CreateSuiteDefinitionRequest = exports.SuiteDefinitionConfiguration = exports.DeviceUnderTest = exports.ConflictException = void 0;
|
|
4
4
|
var ConflictException;
|
|
5
5
|
(function (ConflictException) {
|
|
6
6
|
ConflictException.filterSensitiveLog = (obj) => ({
|
|
@@ -55,6 +55,24 @@ var DeleteSuiteDefinitionResponse;
|
|
|
55
55
|
...obj,
|
|
56
56
|
});
|
|
57
57
|
})(DeleteSuiteDefinitionResponse = exports.DeleteSuiteDefinitionResponse || (exports.DeleteSuiteDefinitionResponse = {}));
|
|
58
|
+
var GetEndpointRequest;
|
|
59
|
+
(function (GetEndpointRequest) {
|
|
60
|
+
GetEndpointRequest.filterSensitiveLog = (obj) => ({
|
|
61
|
+
...obj,
|
|
62
|
+
});
|
|
63
|
+
})(GetEndpointRequest = exports.GetEndpointRequest || (exports.GetEndpointRequest = {}));
|
|
64
|
+
var GetEndpointResponse;
|
|
65
|
+
(function (GetEndpointResponse) {
|
|
66
|
+
GetEndpointResponse.filterSensitiveLog = (obj) => ({
|
|
67
|
+
...obj,
|
|
68
|
+
});
|
|
69
|
+
})(GetEndpointResponse = exports.GetEndpointResponse || (exports.GetEndpointResponse = {}));
|
|
70
|
+
var ResourceNotFoundException;
|
|
71
|
+
(function (ResourceNotFoundException) {
|
|
72
|
+
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
73
|
+
...obj,
|
|
74
|
+
});
|
|
75
|
+
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
58
76
|
var GetSuiteDefinitionRequest;
|
|
59
77
|
(function (GetSuiteDefinitionRequest) {
|
|
60
78
|
GetSuiteDefinitionRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -67,12 +85,6 @@ var GetSuiteDefinitionResponse;
|
|
|
67
85
|
...obj,
|
|
68
86
|
});
|
|
69
87
|
})(GetSuiteDefinitionResponse = exports.GetSuiteDefinitionResponse || (exports.GetSuiteDefinitionResponse = {}));
|
|
70
|
-
var ResourceNotFoundException;
|
|
71
|
-
(function (ResourceNotFoundException) {
|
|
72
|
-
ResourceNotFoundException.filterSensitiveLog = (obj) => ({
|
|
73
|
-
...obj,
|
|
74
|
-
});
|
|
75
|
-
})(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
|
|
76
88
|
var GetSuiteRunRequest;
|
|
77
89
|
(function (GetSuiteRunRequest) {
|
|
78
90
|
GetSuiteRunRequest.filterSensitiveLog = (obj) => ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_restJson1UpdateSuiteDefinitionCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopSuiteRunCommand = exports.deserializeAws_restJson1StartSuiteRunCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSuiteRunsCommand = exports.deserializeAws_restJson1ListSuiteDefinitionsCommand = exports.deserializeAws_restJson1GetSuiteRunReportCommand = exports.deserializeAws_restJson1GetSuiteRunCommand = exports.deserializeAws_restJson1GetSuiteDefinitionCommand = exports.deserializeAws_restJson1DeleteSuiteDefinitionCommand = exports.deserializeAws_restJson1CreateSuiteDefinitionCommand = exports.serializeAws_restJson1UpdateSuiteDefinitionCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopSuiteRunCommand = exports.serializeAws_restJson1StartSuiteRunCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSuiteRunsCommand = exports.serializeAws_restJson1ListSuiteDefinitionsCommand = exports.serializeAws_restJson1GetSuiteRunReportCommand = exports.serializeAws_restJson1GetSuiteRunCommand = exports.serializeAws_restJson1GetSuiteDefinitionCommand = exports.serializeAws_restJson1DeleteSuiteDefinitionCommand = exports.serializeAws_restJson1CreateSuiteDefinitionCommand = void 0;
|
|
3
|
+
exports.deserializeAws_restJson1UpdateSuiteDefinitionCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StopSuiteRunCommand = exports.deserializeAws_restJson1StartSuiteRunCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSuiteRunsCommand = exports.deserializeAws_restJson1ListSuiteDefinitionsCommand = exports.deserializeAws_restJson1GetSuiteRunReportCommand = exports.deserializeAws_restJson1GetSuiteRunCommand = exports.deserializeAws_restJson1GetSuiteDefinitionCommand = exports.deserializeAws_restJson1GetEndpointCommand = exports.deserializeAws_restJson1DeleteSuiteDefinitionCommand = exports.deserializeAws_restJson1CreateSuiteDefinitionCommand = exports.serializeAws_restJson1UpdateSuiteDefinitionCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StopSuiteRunCommand = exports.serializeAws_restJson1StartSuiteRunCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSuiteRunsCommand = exports.serializeAws_restJson1ListSuiteDefinitionsCommand = exports.serializeAws_restJson1GetSuiteRunReportCommand = exports.serializeAws_restJson1GetSuiteRunCommand = exports.serializeAws_restJson1GetSuiteDefinitionCommand = exports.serializeAws_restJson1GetEndpointCommand = exports.serializeAws_restJson1DeleteSuiteDefinitionCommand = exports.serializeAws_restJson1CreateSuiteDefinitionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const serializeAws_restJson1CreateSuiteDefinitionCommand = async (input, context) => {
|
|
@@ -54,6 +54,27 @@ const serializeAws_restJson1DeleteSuiteDefinitionCommand = async (input, context
|
|
|
54
54
|
});
|
|
55
55
|
};
|
|
56
56
|
exports.serializeAws_restJson1DeleteSuiteDefinitionCommand = serializeAws_restJson1DeleteSuiteDefinitionCommand;
|
|
57
|
+
const serializeAws_restJson1GetEndpointCommand = async (input, context) => {
|
|
58
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
|
+
const headers = {};
|
|
60
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/endpoint";
|
|
61
|
+
const query = {
|
|
62
|
+
...(input.thingArn !== undefined && { thingArn: input.thingArn }),
|
|
63
|
+
...(input.certificateArn !== undefined && { certificateArn: input.certificateArn }),
|
|
64
|
+
};
|
|
65
|
+
let body;
|
|
66
|
+
return new protocol_http_1.HttpRequest({
|
|
67
|
+
protocol,
|
|
68
|
+
hostname,
|
|
69
|
+
port,
|
|
70
|
+
method: "GET",
|
|
71
|
+
headers,
|
|
72
|
+
path: resolvedPath,
|
|
73
|
+
query,
|
|
74
|
+
body,
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
exports.serializeAws_restJson1GetEndpointCommand = serializeAws_restJson1GetEndpointCommand;
|
|
57
78
|
const serializeAws_restJson1GetSuiteDefinitionCommand = async (input, context) => {
|
|
58
79
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
59
80
|
const headers = {};
|
|
@@ -518,6 +539,70 @@ const deserializeAws_restJson1DeleteSuiteDefinitionCommandError = async (output,
|
|
|
518
539
|
delete response.Message;
|
|
519
540
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
520
541
|
};
|
|
542
|
+
const deserializeAws_restJson1GetEndpointCommand = async (output, context) => {
|
|
543
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
544
|
+
return deserializeAws_restJson1GetEndpointCommandError(output, context);
|
|
545
|
+
}
|
|
546
|
+
const contents = {
|
|
547
|
+
$metadata: deserializeMetadata(output),
|
|
548
|
+
endpoint: undefined,
|
|
549
|
+
};
|
|
550
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
551
|
+
if (data.endpoint !== undefined && data.endpoint !== null) {
|
|
552
|
+
contents.endpoint = smithy_client_1.expectString(data.endpoint);
|
|
553
|
+
}
|
|
554
|
+
return Promise.resolve(contents);
|
|
555
|
+
};
|
|
556
|
+
exports.deserializeAws_restJson1GetEndpointCommand = deserializeAws_restJson1GetEndpointCommand;
|
|
557
|
+
const deserializeAws_restJson1GetEndpointCommandError = async (output, context) => {
|
|
558
|
+
const parsedOutput = {
|
|
559
|
+
...output,
|
|
560
|
+
body: await parseBody(output.body, context),
|
|
561
|
+
};
|
|
562
|
+
let response;
|
|
563
|
+
let errorCode = "UnknownError";
|
|
564
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
+
switch (errorCode) {
|
|
566
|
+
case "InternalServerException":
|
|
567
|
+
case "com.amazonaws.iotdeviceadvisor#InternalServerException":
|
|
568
|
+
response = {
|
|
569
|
+
...(await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)),
|
|
570
|
+
name: errorCode,
|
|
571
|
+
$metadata: deserializeMetadata(output),
|
|
572
|
+
};
|
|
573
|
+
break;
|
|
574
|
+
case "ResourceNotFoundException":
|
|
575
|
+
case "com.amazonaws.iotdeviceadvisor#ResourceNotFoundException":
|
|
576
|
+
response = {
|
|
577
|
+
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
578
|
+
name: errorCode,
|
|
579
|
+
$metadata: deserializeMetadata(output),
|
|
580
|
+
};
|
|
581
|
+
break;
|
|
582
|
+
case "ValidationException":
|
|
583
|
+
case "com.amazonaws.iotdeviceadvisor#ValidationException":
|
|
584
|
+
response = {
|
|
585
|
+
...(await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)),
|
|
586
|
+
name: errorCode,
|
|
587
|
+
$metadata: deserializeMetadata(output),
|
|
588
|
+
};
|
|
589
|
+
break;
|
|
590
|
+
default:
|
|
591
|
+
const parsedBody = parsedOutput.body;
|
|
592
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
593
|
+
response = {
|
|
594
|
+
...parsedBody,
|
|
595
|
+
name: `${errorCode}`,
|
|
596
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
597
|
+
$fault: "client",
|
|
598
|
+
$metadata: deserializeMetadata(output),
|
|
599
|
+
};
|
|
600
|
+
}
|
|
601
|
+
const message = response.message || response.Message || errorCode;
|
|
602
|
+
response.message = message;
|
|
603
|
+
delete response.Message;
|
|
604
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
605
|
+
};
|
|
521
606
|
const deserializeAws_restJson1GetSuiteDefinitionCommand = async (output, context) => {
|
|
522
607
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
523
608
|
return deserializeAws_restJson1GetSuiteDefinitionCommandError(output, context);
|
|
@@ -1384,6 +1469,7 @@ const serializeAws_restJson1SuiteDefinitionConfiguration = (input, context) => {
|
|
|
1384
1469
|
};
|
|
1385
1470
|
const serializeAws_restJson1SuiteRunConfiguration = (input, context) => {
|
|
1386
1471
|
return {
|
|
1472
|
+
...(input.parallelRun !== undefined && input.parallelRun !== null && { parallelRun: input.parallelRun }),
|
|
1387
1473
|
...(input.primaryDevice !== undefined &&
|
|
1388
1474
|
input.primaryDevice !== null && {
|
|
1389
1475
|
primaryDevice: serializeAws_restJson1DeviceUnderTest(input.primaryDevice, context),
|
|
@@ -1486,6 +1572,7 @@ const deserializeAws_restJson1SuiteDefinitionInformationList = (output, context)
|
|
|
1486
1572
|
};
|
|
1487
1573
|
const deserializeAws_restJson1SuiteRunConfiguration = (output, context) => {
|
|
1488
1574
|
return {
|
|
1575
|
+
parallelRun: smithy_client_1.expectBoolean(output.parallelRun),
|
|
1489
1576
|
primaryDevice: output.primaryDevice !== undefined && output.primaryDevice !== null
|
|
1490
1577
|
? deserializeAws_restJson1DeviceUnderTest(output.primaryDevice, context)
|
|
1491
1578
|
: undefined,
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
9
10
|
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
@@ -13,7 +14,7 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
13
14
|
const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
|
|
14
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
15
16
|
const getRuntimeConfig = (config) => {
|
|
16
|
-
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;
|
|
17
18
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
18
19
|
return {
|
|
19
20
|
...clientSharedValues,
|
|
@@ -30,8 +31,10 @@ const getRuntimeConfig = (config) => {
|
|
|
30
31
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
|
|
31
32
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
32
33
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
35
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
|
|
37
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -17,7 +17,7 @@ const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
|
|
|
17
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
18
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
19
19
|
const getRuntimeConfig = (config) => {
|
|
20
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
21
21
|
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
|
|
22
22
|
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
23
23
|
return {
|
|
@@ -35,8 +35,10 @@ const getRuntimeConfig = (config) => {
|
|
|
35
35
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
|
|
36
36
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
37
37
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
39
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
40
|
+
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
41
|
+
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
40
42
|
};
|
|
41
43
|
};
|
|
42
44
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { CreateSuiteDefinitionCommand, } from "./commands/CreateSuiteDefinitionCommand";
|
|
3
3
|
import { DeleteSuiteDefinitionCommand, } from "./commands/DeleteSuiteDefinitionCommand";
|
|
4
|
+
import { GetEndpointCommand } from "./commands/GetEndpointCommand";
|
|
4
5
|
import { GetSuiteDefinitionCommand, } from "./commands/GetSuiteDefinitionCommand";
|
|
5
6
|
import { GetSuiteRunCommand } from "./commands/GetSuiteRunCommand";
|
|
6
7
|
import { GetSuiteRunReportCommand, } from "./commands/GetSuiteRunReportCommand";
|
|
@@ -46,6 +47,20 @@ var IotDeviceAdvisor = (function (_super) {
|
|
|
46
47
|
return this.send(command, optionsOrCb);
|
|
47
48
|
}
|
|
48
49
|
};
|
|
50
|
+
IotDeviceAdvisor.prototype.getEndpoint = function (args, optionsOrCb, cb) {
|
|
51
|
+
var command = new GetEndpointCommand(args);
|
|
52
|
+
if (typeof optionsOrCb === "function") {
|
|
53
|
+
this.send(command, optionsOrCb);
|
|
54
|
+
}
|
|
55
|
+
else if (typeof cb === "function") {
|
|
56
|
+
if (typeof optionsOrCb !== "object")
|
|
57
|
+
throw new Error("Expect http options but get " + typeof optionsOrCb);
|
|
58
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
return this.send(command, optionsOrCb);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
49
64
|
IotDeviceAdvisor.prototype.getSuiteDefinition = function (args, optionsOrCb, cb) {
|
|
50
65
|
var command = new GetSuiteDefinitionCommand(args);
|
|
51
66
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetEndpointRequest, GetEndpointResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_restJson1GetEndpointCommand, serializeAws_restJson1GetEndpointCommand, } from "../protocols/Aws_restJson1";
|
|
6
|
+
var GetEndpointCommand = (function (_super) {
|
|
7
|
+
__extends(GetEndpointCommand, _super);
|
|
8
|
+
function GetEndpointCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetEndpointCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "IotDeviceAdvisorClient";
|
|
18
|
+
var commandName = "GetEndpointCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetEndpointRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetEndpointResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetEndpointCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_restJson1GetEndpointCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetEndpointCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_restJson1GetEndpointCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetEndpointCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetEndpointCommand };
|
|
@@ -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";
|
package/dist-es/endpoints.js
CHANGED
|
@@ -27,27 +27,96 @@ var partitionHash = {
|
|
|
27
27
|
"us-west-2",
|
|
28
28
|
],
|
|
29
29
|
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
30
|
-
|
|
30
|
+
variants: [
|
|
31
|
+
{
|
|
32
|
+
hostname: "api.iotdeviceadvisor.{region}.amazonaws.com",
|
|
33
|
+
tags: [],
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.amazonaws.com",
|
|
37
|
+
tags: ["fips"],
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.api.aws",
|
|
41
|
+
tags: ["dualstack", "fips"],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
hostname: "api.iotdeviceadvisor.{region}.api.aws",
|
|
45
|
+
tags: ["dualstack"],
|
|
46
|
+
},
|
|
47
|
+
],
|
|
31
48
|
},
|
|
32
49
|
"aws-cn": {
|
|
33
50
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
34
51
|
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
35
|
-
|
|
52
|
+
variants: [
|
|
53
|
+
{
|
|
54
|
+
hostname: "api.iotdeviceadvisor.{region}.amazonaws.com.cn",
|
|
55
|
+
tags: [],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.amazonaws.com.cn",
|
|
59
|
+
tags: ["fips"],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.api.amazonwebservices.com.cn",
|
|
63
|
+
tags: ["dualstack", "fips"],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
hostname: "api.iotdeviceadvisor.{region}.api.amazonwebservices.com.cn",
|
|
67
|
+
tags: ["dualstack"],
|
|
68
|
+
},
|
|
69
|
+
],
|
|
36
70
|
},
|
|
37
71
|
"aws-iso": {
|
|
38
72
|
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
39
73
|
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
40
|
-
|
|
74
|
+
variants: [
|
|
75
|
+
{
|
|
76
|
+
hostname: "api.iotdeviceadvisor.{region}.c2s.ic.gov",
|
|
77
|
+
tags: [],
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.c2s.ic.gov",
|
|
81
|
+
tags: ["fips"],
|
|
82
|
+
},
|
|
83
|
+
],
|
|
41
84
|
},
|
|
42
85
|
"aws-iso-b": {
|
|
43
86
|
regions: ["us-isob-east-1"],
|
|
44
87
|
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
45
|
-
|
|
88
|
+
variants: [
|
|
89
|
+
{
|
|
90
|
+
hostname: "api.iotdeviceadvisor.{region}.sc2s.sgov.gov",
|
|
91
|
+
tags: [],
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.sc2s.sgov.gov",
|
|
95
|
+
tags: ["fips"],
|
|
96
|
+
},
|
|
97
|
+
],
|
|
46
98
|
},
|
|
47
99
|
"aws-us-gov": {
|
|
48
100
|
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
49
101
|
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
50
|
-
|
|
102
|
+
variants: [
|
|
103
|
+
{
|
|
104
|
+
hostname: "api.iotdeviceadvisor.{region}.amazonaws.com",
|
|
105
|
+
tags: [],
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.amazonaws.com",
|
|
109
|
+
tags: ["fips"],
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
hostname: "api.iotdeviceadvisor-fips.{region}.api.aws",
|
|
113
|
+
tags: ["dualstack", "fips"],
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
hostname: "api.iotdeviceadvisor.{region}.api.aws",
|
|
117
|
+
tags: ["dualstack"],
|
|
118
|
+
},
|
|
119
|
+
],
|
|
51
120
|
},
|
|
52
121
|
};
|
|
53
122
|
export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
|