@aws-sdk/client-iotsecuretunneling 3.408.0 → 3.409.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-es/endpoint/ruleset.js +3 -3
- package/dist-types/IoTSecureTunneling.d.ts +2 -2
- package/dist-types/IoTSecureTunnelingClient.d.ts +2 -2
- package/dist-types/commands/CloseTunnelCommand.d.ts +1 -1
- package/dist-types/commands/DescribeTunnelCommand.d.ts +4 -4
- package/dist-types/commands/ListTunnelsCommand.d.ts +2 -2
- package/dist-types/commands/OpenTunnelCommand.d.ts +1 -1
- package/dist-types/commands/RotateTunnelAccessTokenCommand.d.ts +5 -5
- package/dist-types/index.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [
|
|
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 }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { 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: [{ endpoint: { url: "https://api.tunneling.iot-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: [{ endpoint: { url: "https://api.tunneling.iot-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: [{ endpoint: { url: "https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [
|
|
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 }, { conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { 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: [{ endpoint: { url: "https://api.tunneling.iot-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: [{ endpoint: { url: "https://api.tunneling.iot-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: [{ endpoint: { url: "https://api.tunneling.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://api.tunneling.iot.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -61,9 +61,9 @@ export interface IoTSecureTunneling {
|
|
|
61
61
|
/**
|
|
62
62
|
* @public
|
|
63
63
|
* <fullname>IoT Secure Tunneling</fullname>
|
|
64
|
-
*
|
|
64
|
+
* <p>IoT Secure Tunneling creates remote connections to devices deployed in the
|
|
65
65
|
* field.</p>
|
|
66
|
-
*
|
|
66
|
+
* <p>For more information about how IoT Secure Tunneling works, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/secure-tunneling.html">IoT
|
|
67
67
|
* Secure Tunneling</a>.</p>
|
|
68
68
|
*/
|
|
69
69
|
export declare class IoTSecureTunneling extends IoTSecureTunnelingClient implements IoTSecureTunneling {
|
|
@@ -159,9 +159,9 @@ export interface IoTSecureTunnelingClientResolvedConfig extends IoTSecureTunneli
|
|
|
159
159
|
/**
|
|
160
160
|
* @public
|
|
161
161
|
* <fullname>IoT Secure Tunneling</fullname>
|
|
162
|
-
*
|
|
162
|
+
* <p>IoT Secure Tunneling creates remote connections to devices deployed in the
|
|
163
163
|
* field.</p>
|
|
164
|
-
*
|
|
164
|
+
* <p>For more information about how IoT Secure Tunneling works, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/secure-tunneling.html">IoT
|
|
165
165
|
* Secure Tunneling</a>.</p>
|
|
166
166
|
*/
|
|
167
167
|
export declare class IoTSecureTunnelingClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, IoTSecureTunnelingClientResolvedConfig> {
|
|
@@ -26,7 +26,7 @@ export interface CloseTunnelCommandOutput extends CloseTunnelResponse, __Metadat
|
|
|
26
26
|
* <p>Closes a tunnel identified by the unique tunnel id. When a <code>CloseTunnel</code>
|
|
27
27
|
* request is received, we close the WebSocket connections between the client and proxy
|
|
28
28
|
* server so no data can be transmitted.</p>
|
|
29
|
-
*
|
|
29
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">CloseTunnel</a> action.</p>
|
|
30
30
|
* @example
|
|
31
31
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
32
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ export interface DescribeTunnelCommandOutput extends DescribeTunnelResponse, __M
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Gets information about a tunnel identified by the unique tunnel id.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">DescribeTunnel</a> action.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -40,13 +40,13 @@ export interface DescribeTunnelCommandOutput extends DescribeTunnelResponse, __M
|
|
|
40
40
|
* // tunnel: { // Tunnel
|
|
41
41
|
* // tunnelId: "STRING_VALUE",
|
|
42
42
|
* // tunnelArn: "STRING_VALUE",
|
|
43
|
-
* // status: "
|
|
43
|
+
* // status: "OPEN" || "CLOSED",
|
|
44
44
|
* // sourceConnectionState: { // ConnectionState
|
|
45
|
-
* // status: "
|
|
45
|
+
* // status: "CONNECTED" || "DISCONNECTED",
|
|
46
46
|
* // lastUpdatedAt: new Date("TIMESTAMP"),
|
|
47
47
|
* // },
|
|
48
48
|
* // destinationConnectionState: {
|
|
49
|
-
* // status: "
|
|
49
|
+
* // status: "CONNECTED" || "DISCONNECTED",
|
|
50
50
|
* // lastUpdatedAt: new Date("TIMESTAMP"),
|
|
51
51
|
* // },
|
|
52
52
|
* // description: "STRING_VALUE",
|
|
@@ -25,7 +25,7 @@ export interface ListTunnelsCommandOutput extends ListTunnelsResponse, __Metadat
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>List all tunnels for an Amazon Web Services account. Tunnels are listed by creation time in
|
|
27
27
|
* descending order, newer tunnels will be listed before older tunnels.</p>
|
|
28
|
-
*
|
|
28
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">ListTunnels</a> action.</p>
|
|
29
29
|
* @example
|
|
30
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
31
|
* ```javascript
|
|
@@ -44,7 +44,7 @@ export interface ListTunnelsCommandOutput extends ListTunnelsResponse, __Metadat
|
|
|
44
44
|
* // { // TunnelSummary
|
|
45
45
|
* // tunnelId: "STRING_VALUE",
|
|
46
46
|
* // tunnelArn: "STRING_VALUE",
|
|
47
|
-
* // status: "
|
|
47
|
+
* // status: "OPEN" || "CLOSED",
|
|
48
48
|
* // description: "STRING_VALUE",
|
|
49
49
|
* // createdAt: new Date("TIMESTAMP"),
|
|
50
50
|
* // lastUpdatedAt: new Date("TIMESTAMP"),
|
|
@@ -25,7 +25,7 @@ export interface OpenTunnelCommandOutput extends OpenTunnelResponse, __MetadataB
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Creates a new tunnel, and returns two client access tokens for clients to use to
|
|
27
27
|
* connect to the IoT Secure Tunneling proxy server.</p>
|
|
28
|
-
*
|
|
28
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">OpenTunnel</a> action.</p>
|
|
29
29
|
* @example
|
|
30
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
31
|
* ```javascript
|
|
@@ -25,13 +25,13 @@ export interface RotateTunnelAccessTokenCommandOutput extends RotateTunnelAccess
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Revokes the current client access token (CAT) and returns new CAT for clients to
|
|
27
27
|
* use when reconnecting to secure tunneling to access the same tunnel.</p>
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
28
|
+
* <p>Requires permission to access the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions">RotateTunnelAccessToken</a> action.</p>
|
|
29
|
+
* <note>
|
|
30
|
+
* <p>Rotating the CAT doesn't extend the tunnel duration. For example, say the tunnel
|
|
31
31
|
* duration is 12 hours and the tunnel has already been open for 4 hours. When you
|
|
32
32
|
* rotate the access tokens, the new tokens that are generated can only be used for the
|
|
33
33
|
* remaining 8 hours.</p>
|
|
34
|
-
*
|
|
34
|
+
* </note>
|
|
35
35
|
* @example
|
|
36
36
|
* Use a bare-bones client and the command you need to make an API call.
|
|
37
37
|
* ```javascript
|
|
@@ -40,7 +40,7 @@ export interface RotateTunnelAccessTokenCommandOutput extends RotateTunnelAccess
|
|
|
40
40
|
* const client = new IoTSecureTunnelingClient(config);
|
|
41
41
|
* const input = { // RotateTunnelAccessTokenRequest
|
|
42
42
|
* tunnelId: "STRING_VALUE", // required
|
|
43
|
-
* clientMode: "
|
|
43
|
+
* clientMode: "SOURCE" || "DESTINATION" || "ALL", // required
|
|
44
44
|
* destinationConfig: { // DestinationConfig
|
|
45
45
|
* thingName: "STRING_VALUE",
|
|
46
46
|
* services: [ // ServiceList // required
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* <fullname>IoT Secure Tunneling</fullname>
|
|
3
|
-
*
|
|
3
|
+
* <p>IoT Secure Tunneling creates remote connections to devices deployed in the
|
|
4
4
|
* field.</p>
|
|
5
|
-
*
|
|
5
|
+
* <p>For more information about how IoT Secure Tunneling works, see <a href="https://docs.aws.amazon.com/iot/latest/developerguide/secure-tunneling.html">IoT
|
|
6
6
|
* Secure Tunneling</a>.</p>
|
|
7
7
|
*
|
|
8
8
|
* @packageDocumentation
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-iotsecuretunneling",
|
|
3
3
|
"description": "AWS SDK for JavaScript Iotsecuretunneling Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.409.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",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.409.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.409.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.408.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.408.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.408.0",
|