@aws-sdk/client-iotsecuretunneling 3.405.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const s = "required", t = "fn", u = "argv", v = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = { [s]: false, "type": "String" }, g = { [s]: true, "default": false, "type": "Boolean" }, h = { [v]: "Endpoint" }, i = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, k = {}, l = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: a }, "supportsFIPS"] }] }, m = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: a }, "supportsDualStack"] }] }, n = { [t]: "getAttr", [u]: [{ [v]: a }, "name"] }, o = { "url": "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, p = [h], q = [i], r = [j];
6
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [t]: "isSet", [u]: p }, { [t]: "parseURL", [u]: p, assign: "url" }], type: b, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { 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: q, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: e, [u]: ["aws", n] }], endpoint: o, type: d }, { conditions: [{ [t]: e, [u]: ["aws-us-gov", n] }], endpoint: o, type: d }, { endpoint: o, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: r, 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 }] }] };
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 s = "required", t = "fn", u = "argv", v = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = "stringEquals", f = { [s]: false, "type": "String" }, g = { [s]: true, "default": false, "type": "Boolean" }, h = { [v]: "Endpoint" }, i = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, k = {}, l = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: a }, "supportsFIPS"] }] }, m = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: a }, "supportsDualStack"] }] }, n = { [t]: "getAttr", [u]: [{ [v]: a }, "name"] }, o = { "url": "https://api.tunneling.iot-fips.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, p = [h], q = [i], r = [j];
3
- const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [t]: "isSet", [u]: p }, { [t]: "parseURL", [u]: p, assign: "url" }], type: b, rules: [{ conditions: q, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: r, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { 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: q, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: e, [u]: ["aws", n] }], endpoint: o, type: d }, { conditions: [{ [t]: e, [u]: ["aws-us-gov", n] }], endpoint: o, type: d }, { endpoint: o, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: r, 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 }] }] };
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
- * <p>IoT Secure Tunneling creates remote connections to devices deployed in the
64
+ * <p>IoT Secure Tunneling creates remote connections to devices deployed in the
65
65
  * field.</p>
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
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
- * <p>IoT Secure Tunneling creates remote connections to devices deployed in the
162
+ * <p>IoT Secure Tunneling creates remote connections to devices deployed in the
163
163
  * field.</p>
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
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
- * <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>
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
- * <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>
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: "STRING_VALUE",
43
+ * // status: "OPEN" || "CLOSED",
44
44
  * // sourceConnectionState: { // ConnectionState
45
- * // status: "STRING_VALUE",
45
+ * // status: "CONNECTED" || "DISCONNECTED",
46
46
  * // lastUpdatedAt: new Date("TIMESTAMP"),
47
47
  * // },
48
48
  * // destinationConnectionState: {
49
- * // status: "STRING_VALUE",
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
- * <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>
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: "STRING_VALUE",
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
- * <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>
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
- * <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
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
- * </note>
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: "STRING_VALUE", // required
43
+ * clientMode: "SOURCE" || "DESTINATION" || "ALL", // required
44
44
  * destinationConfig: { // DestinationConfig
45
45
  * thingName: "STRING_VALUE",
46
46
  * services: [ // ServiceList // required
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * <fullname>IoT Secure Tunneling</fullname>
3
- * <p>IoT Secure Tunneling creates remote connections to devices deployed in the
3
+ * <p>IoT Secure Tunneling creates remote connections to devices deployed in the
4
4
  * field.</p>
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
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.405.0",
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,17 +21,17 @@
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.405.0",
25
- "@aws-sdk/credential-provider-node": "3.405.0",
26
- "@aws-sdk/middleware-host-header": "3.398.0",
27
- "@aws-sdk/middleware-logger": "3.398.0",
28
- "@aws-sdk/middleware-recursion-detection": "3.398.0",
29
- "@aws-sdk/middleware-signing": "3.398.0",
30
- "@aws-sdk/middleware-user-agent": "3.398.0",
31
- "@aws-sdk/types": "3.398.0",
32
- "@aws-sdk/util-endpoints": "3.398.0",
33
- "@aws-sdk/util-user-agent-browser": "3.398.0",
34
- "@aws-sdk/util-user-agent-node": "3.405.0",
24
+ "@aws-sdk/client-sts": "3.409.0",
25
+ "@aws-sdk/credential-provider-node": "3.409.0",
26
+ "@aws-sdk/middleware-host-header": "3.408.0",
27
+ "@aws-sdk/middleware-logger": "3.408.0",
28
+ "@aws-sdk/middleware-recursion-detection": "3.408.0",
29
+ "@aws-sdk/middleware-signing": "3.408.0",
30
+ "@aws-sdk/middleware-user-agent": "3.408.0",
31
+ "@aws-sdk/types": "3.408.0",
32
+ "@aws-sdk/util-endpoints": "3.408.0",
33
+ "@aws-sdk/util-user-agent-browser": "3.408.0",
34
+ "@aws-sdk/util-user-agent-node": "3.408.0",
35
35
  "@smithy/config-resolver": "^2.0.5",
36
36
  "@smithy/fetch-http-handler": "^2.0.5",
37
37
  "@smithy/hash-node": "^2.0.5",