@aws-sdk/client-iotdeviceadvisor 3.321.1 → 3.322.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/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +2 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +2 -0
- package/dist-types/commands/CreateSuiteDefinitionCommand.d.ts +2 -1
- package/dist-types/commands/GetEndpointCommand.d.ts +2 -0
- package/dist-types/commands/StartSuiteRunCommand.d.ts +1 -0
- package/dist-types/commands/UpdateSuiteDefinitionCommand.d.ts +2 -1
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +30 -3
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const q = "
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.iotdeviceadvisor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://api.iotdeviceadvisor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestCaseScenarioType = exports.TestCaseScenarioStatus = exports.Status = exports.SuiteRunStatus = exports.ResourceNotFoundException = exports.ValidationException = exports.InternalServerException = exports.Protocol = exports.ConflictException = void 0;
|
|
3
|
+
exports.TestCaseScenarioType = exports.TestCaseScenarioStatus = exports.Status = exports.SuiteRunStatus = exports.ResourceNotFoundException = exports.ValidationException = exports.InternalServerException = exports.Protocol = exports.ConflictException = exports.AuthenticationMethod = void 0;
|
|
4
4
|
const IotDeviceAdvisorServiceException_1 = require("./IotDeviceAdvisorServiceException");
|
|
5
|
+
exports.AuthenticationMethod = {
|
|
6
|
+
SignatureVersion4: "SignatureVersion4",
|
|
7
|
+
X509ClientCertificate: "X509ClientCertificate",
|
|
8
|
+
};
|
|
5
9
|
class ConflictException extends IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException {
|
|
6
10
|
constructor(opts) {
|
|
7
11
|
super({
|
|
@@ -17,7 +21,9 @@ class ConflictException extends IotDeviceAdvisorServiceException_1.IotDeviceAdvi
|
|
|
17
21
|
exports.ConflictException = ConflictException;
|
|
18
22
|
exports.Protocol = {
|
|
19
23
|
MqttV3_1_1: "MqttV3_1_1",
|
|
24
|
+
MqttV3_1_1_OverWebSocket: "MqttV3_1_1_OverWebSocket",
|
|
20
25
|
MqttV5: "MqttV5",
|
|
26
|
+
MqttV5_OverWebSocket: "MqttV5_OverWebSocket",
|
|
21
27
|
};
|
|
22
28
|
class InternalServerException extends IotDeviceAdvisorServiceException_1.IotDeviceAdvisorServiceException {
|
|
23
29
|
constructor(opts) {
|
|
@@ -51,6 +51,8 @@ const se_GetEndpointCommand = async (input, context) => {
|
|
|
51
51
|
const query = (0, smithy_client_1.map)({
|
|
52
52
|
thingArn: [, input.thingArn],
|
|
53
53
|
certificateArn: [, input.certificateArn],
|
|
54
|
+
deviceRoleArn: [, input.deviceRoleArn],
|
|
55
|
+
authenticationMethod: [, input.authenticationMethod],
|
|
54
56
|
});
|
|
55
57
|
let body;
|
|
56
58
|
return new protocol_http_1.HttpRequest({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const q = "
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.iotdeviceadvisor-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://api.iotdeviceadvisor.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://api.iotdeviceadvisor.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { IotDeviceAdvisorServiceException as __BaseException } from "./IotDeviceAdvisorServiceException";
|
|
2
|
+
export const AuthenticationMethod = {
|
|
3
|
+
SignatureVersion4: "SignatureVersion4",
|
|
4
|
+
X509ClientCertificate: "X509ClientCertificate",
|
|
5
|
+
};
|
|
2
6
|
export class ConflictException extends __BaseException {
|
|
3
7
|
constructor(opts) {
|
|
4
8
|
super({
|
|
@@ -13,7 +17,9 @@ export class ConflictException extends __BaseException {
|
|
|
13
17
|
}
|
|
14
18
|
export const Protocol = {
|
|
15
19
|
MqttV3_1_1: "MqttV3_1_1",
|
|
20
|
+
MqttV3_1_1_OverWebSocket: "MqttV3_1_1_OverWebSocket",
|
|
16
21
|
MqttV5: "MqttV5",
|
|
22
|
+
MqttV5_OverWebSocket: "MqttV5_OverWebSocket",
|
|
17
23
|
};
|
|
18
24
|
export class InternalServerException extends __BaseException {
|
|
19
25
|
constructor(opts) {
|
|
@@ -46,6 +46,8 @@ export const se_GetEndpointCommand = async (input, context) => {
|
|
|
46
46
|
const query = map({
|
|
47
47
|
thingArn: [, input.thingArn],
|
|
48
48
|
certificateArn: [, input.certificateArn],
|
|
49
|
+
deviceRoleArn: [, input.deviceRoleArn],
|
|
50
|
+
authenticationMethod: [, input.authenticationMethod],
|
|
49
51
|
});
|
|
50
52
|
let body;
|
|
51
53
|
return new __HttpRequest({
|
|
@@ -34,13 +34,14 @@ export interface CreateSuiteDefinitionCommandOutput extends CreateSuiteDefinitio
|
|
|
34
34
|
* { // DeviceUnderTest
|
|
35
35
|
* thingArn: "STRING_VALUE",
|
|
36
36
|
* certificateArn: "STRING_VALUE",
|
|
37
|
+
* deviceRoleArn: "STRING_VALUE",
|
|
37
38
|
* },
|
|
38
39
|
* ],
|
|
39
40
|
* intendedForQualification: true || false,
|
|
40
41
|
* isLongDurationTest: true || false,
|
|
41
42
|
* rootGroup: "STRING_VALUE", // required
|
|
42
43
|
* devicePermissionRoleArn: "STRING_VALUE", // required
|
|
43
|
-
* protocol: "MqttV3_1_1" || "MqttV5",
|
|
44
|
+
* protocol: "MqttV3_1_1" || "MqttV5" || "MqttV3_1_1_OverWebSocket" || "MqttV5_OverWebSocket",
|
|
44
45
|
* },
|
|
45
46
|
* tags: { // TagMap
|
|
46
47
|
* "<keys>": "STRING_VALUE",
|
|
@@ -29,6 +29,8 @@ export interface GetEndpointCommandOutput extends GetEndpointResponse, __Metadat
|
|
|
29
29
|
* const input = { // GetEndpointRequest
|
|
30
30
|
* thingArn: "STRING_VALUE",
|
|
31
31
|
* certificateArn: "STRING_VALUE",
|
|
32
|
+
* deviceRoleArn: "STRING_VALUE",
|
|
33
|
+
* authenticationMethod: "X509ClientCertificate" || "SignatureVersion4",
|
|
32
34
|
* };
|
|
33
35
|
* const command = new GetEndpointCommand(input);
|
|
34
36
|
* const response = await client.send(command);
|
|
@@ -34,6 +34,7 @@ export interface StartSuiteRunCommandOutput extends StartSuiteRunResponse, __Met
|
|
|
34
34
|
* primaryDevice: { // DeviceUnderTest
|
|
35
35
|
* thingArn: "STRING_VALUE",
|
|
36
36
|
* certificateArn: "STRING_VALUE",
|
|
37
|
+
* deviceRoleArn: "STRING_VALUE",
|
|
37
38
|
* },
|
|
38
39
|
* selectedTestList: [ // SelectedTestList
|
|
39
40
|
* "STRING_VALUE",
|
|
@@ -35,13 +35,14 @@ export interface UpdateSuiteDefinitionCommandOutput extends UpdateSuiteDefinitio
|
|
|
35
35
|
* { // DeviceUnderTest
|
|
36
36
|
* thingArn: "STRING_VALUE",
|
|
37
37
|
* certificateArn: "STRING_VALUE",
|
|
38
|
+
* deviceRoleArn: "STRING_VALUE",
|
|
38
39
|
* },
|
|
39
40
|
* ],
|
|
40
41
|
* intendedForQualification: true || false,
|
|
41
42
|
* isLongDurationTest: true || false,
|
|
42
43
|
* rootGroup: "STRING_VALUE", // required
|
|
43
44
|
* devicePermissionRoleArn: "STRING_VALUE", // required
|
|
44
|
-
* protocol: "MqttV3_1_1" || "MqttV5",
|
|
45
|
+
* protocol: "MqttV3_1_1" || "MqttV5" || "MqttV3_1_1_OverWebSocket" || "MqttV5_OverWebSocket",
|
|
45
46
|
* },
|
|
46
47
|
* };
|
|
47
48
|
* const command = new UpdateSuiteDefinitionCommand(input);
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region?: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { IotDeviceAdvisorServiceException as __BaseException } from "./IotDeviceAdvisorServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* @enum
|
|
6
|
+
*/
|
|
7
|
+
export declare const AuthenticationMethod: {
|
|
8
|
+
readonly SignatureVersion4: "SignatureVersion4";
|
|
9
|
+
readonly X509ClientCertificate: "X509ClientCertificate";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export type AuthenticationMethod = (typeof AuthenticationMethod)[keyof typeof AuthenticationMethod];
|
|
3
15
|
/**
|
|
4
16
|
* @public
|
|
5
17
|
* <p>Sends a Conflict Exception.</p>
|
|
@@ -14,17 +26,22 @@ export declare class ConflictException extends __BaseException {
|
|
|
14
26
|
}
|
|
15
27
|
/**
|
|
16
28
|
* @public
|
|
17
|
-
* <p>Information of a test device. A thing ARN
|
|
29
|
+
* <p>Information of a test device. A thing ARN, certificate ARN
|
|
30
|
+
* or device role ARN is required.</p>
|
|
18
31
|
*/
|
|
19
32
|
export interface DeviceUnderTest {
|
|
20
33
|
/**
|
|
21
|
-
* <p>Lists
|
|
34
|
+
* <p>Lists device's thing ARN.</p>
|
|
22
35
|
*/
|
|
23
36
|
thingArn?: string;
|
|
24
37
|
/**
|
|
25
|
-
* <p>Lists
|
|
38
|
+
* <p>Lists device's certificate ARN.</p>
|
|
26
39
|
*/
|
|
27
40
|
certificateArn?: string;
|
|
41
|
+
/**
|
|
42
|
+
* <p>Lists device's role ARN.</p>
|
|
43
|
+
*/
|
|
44
|
+
deviceRoleArn?: string;
|
|
28
45
|
}
|
|
29
46
|
/**
|
|
30
47
|
* @public
|
|
@@ -32,7 +49,9 @@ export interface DeviceUnderTest {
|
|
|
32
49
|
*/
|
|
33
50
|
export declare const Protocol: {
|
|
34
51
|
readonly MqttV3_1_1: "MqttV3_1_1";
|
|
52
|
+
readonly MqttV3_1_1_OverWebSocket: "MqttV3_1_1_OverWebSocket";
|
|
35
53
|
readonly MqttV5: "MqttV5";
|
|
54
|
+
readonly MqttV5_OverWebSocket: "MqttV5_OverWebSocket";
|
|
36
55
|
};
|
|
37
56
|
/**
|
|
38
57
|
* @public
|
|
@@ -156,6 +175,14 @@ export interface GetEndpointRequest {
|
|
|
156
175
|
* <p>The certificate ARN of the device. This is an optional parameter.</p>
|
|
157
176
|
*/
|
|
158
177
|
certificateArn?: string;
|
|
178
|
+
/**
|
|
179
|
+
* <p>The device role ARN of the device. This is an optional parameter.</p>
|
|
180
|
+
*/
|
|
181
|
+
deviceRoleArn?: string;
|
|
182
|
+
/**
|
|
183
|
+
* <p>The authentication method used during the device connection.</p>
|
|
184
|
+
*/
|
|
185
|
+
authenticationMethod?: AuthenticationMethod | string;
|
|
159
186
|
}
|
|
160
187
|
/**
|
|
161
188
|
* @public
|
|
@@ -26,7 +26,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
26
26
|
defaultSigningName: string;
|
|
27
27
|
};
|
|
28
28
|
export interface EndpointParameters extends __EndpointParameters {
|
|
29
|
-
Region
|
|
29
|
+
Region?: string;
|
|
30
30
|
UseDualStack?: boolean;
|
|
31
31
|
UseFIPS?: boolean;
|
|
32
32
|
Endpoint?: string;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { IotDeviceAdvisorServiceException as __BaseException } from "./IotDeviceAdvisorServiceException";
|
|
3
|
+
export declare const AuthenticationMethod: {
|
|
4
|
+
readonly SignatureVersion4: "SignatureVersion4";
|
|
5
|
+
readonly X509ClientCertificate: "X509ClientCertificate";
|
|
6
|
+
};
|
|
7
|
+
export type AuthenticationMethod =
|
|
8
|
+
(typeof AuthenticationMethod)[keyof typeof AuthenticationMethod];
|
|
3
9
|
export declare class ConflictException extends __BaseException {
|
|
4
10
|
readonly name: "ConflictException";
|
|
5
11
|
readonly $fault: "client";
|
|
@@ -8,10 +14,13 @@ export declare class ConflictException extends __BaseException {
|
|
|
8
14
|
export interface DeviceUnderTest {
|
|
9
15
|
thingArn?: string;
|
|
10
16
|
certificateArn?: string;
|
|
17
|
+
deviceRoleArn?: string;
|
|
11
18
|
}
|
|
12
19
|
export declare const Protocol: {
|
|
13
20
|
readonly MqttV3_1_1: "MqttV3_1_1";
|
|
21
|
+
readonly MqttV3_1_1_OverWebSocket: "MqttV3_1_1_OverWebSocket";
|
|
14
22
|
readonly MqttV5: "MqttV5";
|
|
23
|
+
readonly MqttV5_OverWebSocket: "MqttV5_OverWebSocket";
|
|
15
24
|
};
|
|
16
25
|
export type Protocol = (typeof Protocol)[keyof typeof Protocol];
|
|
17
26
|
export interface SuiteDefinitionConfiguration {
|
|
@@ -54,6 +63,8 @@ export interface DeleteSuiteDefinitionResponse {}
|
|
|
54
63
|
export interface GetEndpointRequest {
|
|
55
64
|
thingArn?: string;
|
|
56
65
|
certificateArn?: string;
|
|
66
|
+
deviceRoleArn?: string;
|
|
67
|
+
authenticationMethod?: AuthenticationMethod | string;
|
|
57
68
|
}
|
|
58
69
|
export interface GetEndpointResponse {
|
|
59
70
|
endpoint?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iotdeviceadvisor",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iotdeviceadvisor Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.322.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|