@aws-sdk/client-iotsecuretunneling 3.300.0 → 3.303.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.
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RotateTunnelAccessTokenResponseFilterSensitiveLog = exports.OpenTunnelResponseFilterSensitiveLog = exports.LimitExceededException = exports.TunnelStatus = exports.ConnectionStatus = exports.ResourceNotFoundException = exports.ClientMode = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const IoTSecureTunnelingServiceException_1 = require("./IoTSecureTunnelingServiceException");
6
- var ClientMode;
7
- (function (ClientMode) {
8
- ClientMode["ALL"] = "ALL";
9
- ClientMode["DESTINATION"] = "DESTINATION";
10
- ClientMode["SOURCE"] = "SOURCE";
11
- })(ClientMode = exports.ClientMode || (exports.ClientMode = {}));
6
+ exports.ClientMode = {
7
+ ALL: "ALL",
8
+ DESTINATION: "DESTINATION",
9
+ SOURCE: "SOURCE",
10
+ };
12
11
  class ResourceNotFoundException extends IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException {
13
12
  constructor(opts) {
14
13
  super({
@@ -22,16 +21,14 @@ class ResourceNotFoundException extends IoTSecureTunnelingServiceException_1.IoT
22
21
  }
23
22
  }
24
23
  exports.ResourceNotFoundException = ResourceNotFoundException;
25
- var ConnectionStatus;
26
- (function (ConnectionStatus) {
27
- ConnectionStatus["CONNECTED"] = "CONNECTED";
28
- ConnectionStatus["DISCONNECTED"] = "DISCONNECTED";
29
- })(ConnectionStatus = exports.ConnectionStatus || (exports.ConnectionStatus = {}));
30
- var TunnelStatus;
31
- (function (TunnelStatus) {
32
- TunnelStatus["CLOSED"] = "CLOSED";
33
- TunnelStatus["OPEN"] = "OPEN";
34
- })(TunnelStatus = exports.TunnelStatus || (exports.TunnelStatus = {}));
24
+ exports.ConnectionStatus = {
25
+ CONNECTED: "CONNECTED",
26
+ DISCONNECTED: "DISCONNECTED",
27
+ };
28
+ exports.TunnelStatus = {
29
+ CLOSED: "CLOSED",
30
+ OPEN: "OPEN",
31
+ };
35
32
  class LimitExceededException extends IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException {
36
33
  constructor(opts) {
37
34
  super({
@@ -1,11 +1,10 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
3
- export var ClientMode;
4
- (function (ClientMode) {
5
- ClientMode["ALL"] = "ALL";
6
- ClientMode["DESTINATION"] = "DESTINATION";
7
- ClientMode["SOURCE"] = "SOURCE";
8
- })(ClientMode || (ClientMode = {}));
3
+ export const ClientMode = {
4
+ ALL: "ALL",
5
+ DESTINATION: "DESTINATION",
6
+ SOURCE: "SOURCE",
7
+ };
9
8
  export class ResourceNotFoundException extends __BaseException {
10
9
  constructor(opts) {
11
10
  super({
@@ -18,16 +17,14 @@ export class ResourceNotFoundException extends __BaseException {
18
17
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
19
18
  }
20
19
  }
21
- export var ConnectionStatus;
22
- (function (ConnectionStatus) {
23
- ConnectionStatus["CONNECTED"] = "CONNECTED";
24
- ConnectionStatus["DISCONNECTED"] = "DISCONNECTED";
25
- })(ConnectionStatus || (ConnectionStatus = {}));
26
- export var TunnelStatus;
27
- (function (TunnelStatus) {
28
- TunnelStatus["CLOSED"] = "CLOSED";
29
- TunnelStatus["OPEN"] = "OPEN";
30
- })(TunnelStatus || (TunnelStatus = {}));
20
+ export const ConnectionStatus = {
21
+ CONNECTED: "CONNECTED",
22
+ DISCONNECTED: "DISCONNECTED",
23
+ };
24
+ export const TunnelStatus = {
25
+ CLOSED: "CLOSED",
26
+ OPEN: "OPEN",
27
+ };
31
28
  export class LimitExceededException extends __BaseException {
32
29
  constructor(opts) {
33
30
  super({
@@ -29,7 +29,7 @@ export interface CloseTunnelCommandOutput extends CloseTunnelResponse, __Metadat
29
29
  * import { IoTSecureTunnelingClient, CloseTunnelCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import
30
30
  * // const { IoTSecureTunnelingClient, CloseTunnelCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import
31
31
  * const client = new IoTSecureTunnelingClient(config);
32
- * const input = {
32
+ * const input = { // CloseTunnelRequest
33
33
  * tunnelId: "STRING_VALUE", // required
34
34
  * delete: true || false,
35
35
  * };
@@ -27,7 +27,7 @@ export interface DescribeTunnelCommandOutput extends DescribeTunnelResponse, __M
27
27
  * import { IoTSecureTunnelingClient, DescribeTunnelCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import
28
28
  * // const { IoTSecureTunnelingClient, DescribeTunnelCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import
29
29
  * const client = new IoTSecureTunnelingClient(config);
30
- * const input = {
30
+ * const input = { // DescribeTunnelRequest
31
31
  * tunnelId: "STRING_VALUE", // required
32
32
  * };
33
33
  * const command = new DescribeTunnelCommand(input);
@@ -26,7 +26,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
26
26
  * import { IoTSecureTunnelingClient, ListTagsForResourceCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import
27
27
  * // const { IoTSecureTunnelingClient, ListTagsForResourceCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import
28
28
  * const client = new IoTSecureTunnelingClient(config);
29
- * const input = {
29
+ * const input = { // ListTagsForResourceRequest
30
30
  * resourceArn: "STRING_VALUE", // required
31
31
  * };
32
32
  * const command = new ListTagsForResourceCommand(input);
@@ -28,7 +28,7 @@ export interface ListTunnelsCommandOutput extends ListTunnelsResponse, __Metadat
28
28
  * import { IoTSecureTunnelingClient, ListTunnelsCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import
29
29
  * // const { IoTSecureTunnelingClient, ListTunnelsCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import
30
30
  * const client = new IoTSecureTunnelingClient(config);
31
- * const input = {
31
+ * const input = { // ListTunnelsRequest
32
32
  * thingName: "STRING_VALUE",
33
33
  * maxResults: Number("int"),
34
34
  * nextToken: "STRING_VALUE",
@@ -28,21 +28,21 @@ export interface OpenTunnelCommandOutput extends OpenTunnelResponse, __MetadataB
28
28
  * import { IoTSecureTunnelingClient, OpenTunnelCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import
29
29
  * // const { IoTSecureTunnelingClient, OpenTunnelCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import
30
30
  * const client = new IoTSecureTunnelingClient(config);
31
- * const input = {
31
+ * const input = { // OpenTunnelRequest
32
32
  * description: "STRING_VALUE",
33
- * tags: [
34
- * {
33
+ * tags: [ // TagList
34
+ * { // Tag
35
35
  * key: "STRING_VALUE", // required
36
36
  * value: "STRING_VALUE", // required
37
37
  * },
38
38
  * ],
39
- * destinationConfig: {
39
+ * destinationConfig: { // DestinationConfig
40
40
  * thingName: "STRING_VALUE",
41
- * services: [ // required
41
+ * services: [ // ServiceList // required
42
42
  * "STRING_VALUE",
43
43
  * ],
44
44
  * },
45
- * timeoutConfig: {
45
+ * timeoutConfig: { // TimeoutConfig
46
46
  * maxLifetimeTimeoutMinutes: Number("int"),
47
47
  * },
48
48
  * };
@@ -34,12 +34,12 @@ export interface RotateTunnelAccessTokenCommandOutput extends RotateTunnelAccess
34
34
  * import { IoTSecureTunnelingClient, RotateTunnelAccessTokenCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import
35
35
  * // const { IoTSecureTunnelingClient, RotateTunnelAccessTokenCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import
36
36
  * const client = new IoTSecureTunnelingClient(config);
37
- * const input = {
37
+ * const input = { // RotateTunnelAccessTokenRequest
38
38
  * tunnelId: "STRING_VALUE", // required
39
39
  * clientMode: "STRING_VALUE", // required
40
- * destinationConfig: {
40
+ * destinationConfig: { // DestinationConfig
41
41
  * thingName: "STRING_VALUE",
42
- * services: [ // required
42
+ * services: [ // ServiceList // required
43
43
  * "STRING_VALUE",
44
44
  * ],
45
45
  * },
@@ -26,10 +26,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
26
26
  * import { IoTSecureTunnelingClient, TagResourceCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import
27
27
  * // const { IoTSecureTunnelingClient, TagResourceCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import
28
28
  * const client = new IoTSecureTunnelingClient(config);
29
- * const input = {
29
+ * const input = { // TagResourceRequest
30
30
  * resourceArn: "STRING_VALUE", // required
31
- * tags: [ // required
32
- * {
31
+ * tags: [ // TagList // required
32
+ * { // Tag
33
33
  * key: "STRING_VALUE", // required
34
34
  * value: "STRING_VALUE", // required
35
35
  * },
@@ -26,9 +26,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
26
26
  * import { IoTSecureTunnelingClient, UntagResourceCommand } from "@aws-sdk/client-iotsecuretunneling"; // ES Modules import
27
27
  * // const { IoTSecureTunnelingClient, UntagResourceCommand } = require("@aws-sdk/client-iotsecuretunneling"); // CommonJS import
28
28
  * const client = new IoTSecureTunnelingClient(config);
29
- * const input = {
29
+ * const input = { // UntagResourceRequest
30
30
  * resourceArn: "STRING_VALUE", // required
31
- * tagKeys: [ // required
31
+ * tagKeys: [ // TagKeyList // required
32
32
  * "STRING_VALUE",
33
33
  * ],
34
34
  * };
@@ -2,12 +2,17 @@ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-cl
2
2
  import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
3
3
  /**
4
4
  * @public
5
+ * @enum
5
6
  */
6
- export declare enum ClientMode {
7
- ALL = "ALL",
8
- DESTINATION = "DESTINATION",
9
- SOURCE = "SOURCE"
10
- }
7
+ export declare const ClientMode: {
8
+ readonly ALL: "ALL";
9
+ readonly DESTINATION: "DESTINATION";
10
+ readonly SOURCE: "SOURCE";
11
+ };
12
+ /**
13
+ * @public
14
+ */
15
+ export type ClientMode = (typeof ClientMode)[keyof typeof ClientMode];
11
16
  /**
12
17
  * @public
13
18
  */
@@ -41,11 +46,16 @@ export declare class ResourceNotFoundException extends __BaseException {
41
46
  }
42
47
  /**
43
48
  * @public
49
+ * @enum
44
50
  */
45
- export declare enum ConnectionStatus {
46
- CONNECTED = "CONNECTED",
47
- DISCONNECTED = "DISCONNECTED"
48
- }
51
+ export declare const ConnectionStatus: {
52
+ readonly CONNECTED: "CONNECTED";
53
+ readonly DISCONNECTED: "DISCONNECTED";
54
+ };
55
+ /**
56
+ * @public
57
+ */
58
+ export type ConnectionStatus = (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
49
59
  /**
50
60
  * @public
51
61
  * <p>The state of a connection.</p>
@@ -89,11 +99,16 @@ export interface DestinationConfig {
89
99
  }
90
100
  /**
91
101
  * @public
102
+ * @enum
92
103
  */
93
- export declare enum TunnelStatus {
94
- CLOSED = "CLOSED",
95
- OPEN = "OPEN"
96
- }
104
+ export declare const TunnelStatus: {
105
+ readonly CLOSED: "CLOSED";
106
+ readonly OPEN: "OPEN";
107
+ };
108
+ /**
109
+ * @public
110
+ */
111
+ export type TunnelStatus = (typeof TunnelStatus)[keyof typeof TunnelStatus];
97
112
  /**
98
113
  * @public
99
114
  * <p>An arbitary key/value pair used to add searchable metadata to secure tunnel
@@ -1,10 +1,11 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
3
- export declare enum ClientMode {
4
- ALL = "ALL",
5
- DESTINATION = "DESTINATION",
6
- SOURCE = "SOURCE",
7
- }
3
+ export declare const ClientMode: {
4
+ readonly ALL: "ALL";
5
+ readonly DESTINATION: "DESTINATION";
6
+ readonly SOURCE: "SOURCE";
7
+ };
8
+ export type ClientMode = (typeof ClientMode)[keyof typeof ClientMode];
8
9
  export interface CloseTunnelRequest {
9
10
  tunnelId: string | undefined;
10
11
  delete?: boolean;
@@ -17,10 +18,12 @@ export declare class ResourceNotFoundException extends __BaseException {
17
18
  opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
18
19
  );
19
20
  }
20
- export declare enum ConnectionStatus {
21
- CONNECTED = "CONNECTED",
22
- DISCONNECTED = "DISCONNECTED",
23
- }
21
+ export declare const ConnectionStatus: {
22
+ readonly CONNECTED: "CONNECTED";
23
+ readonly DISCONNECTED: "DISCONNECTED";
24
+ };
25
+ export type ConnectionStatus =
26
+ (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
24
27
  export interface ConnectionState {
25
28
  status?: ConnectionStatus | string;
26
29
  lastUpdatedAt?: Date;
@@ -32,10 +35,11 @@ export interface DestinationConfig {
32
35
  thingName?: string;
33
36
  services: string[] | undefined;
34
37
  }
35
- export declare enum TunnelStatus {
36
- CLOSED = "CLOSED",
37
- OPEN = "OPEN",
38
- }
38
+ export declare const TunnelStatus: {
39
+ readonly CLOSED: "CLOSED";
40
+ readonly OPEN: "OPEN";
41
+ };
42
+ export type TunnelStatus = (typeof TunnelStatus)[keyof typeof TunnelStatus];
39
43
  export interface Tag {
40
44
  key: string | undefined;
41
45
  value: string | undefined;
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.300.0",
4
+ "version": "3.303.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,42 +21,42 @@
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.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",