@aws-sdk/client-iotsecuretunneling 3.301.0 → 3.306.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({
@@ -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.301.0",
4
+ "version": "3.306.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.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.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.306.0",
25
+ "@aws-sdk/config-resolver": "3.306.0",
26
+ "@aws-sdk/credential-provider-node": "3.306.0",
27
+ "@aws-sdk/fetch-http-handler": "3.306.0",
28
+ "@aws-sdk/hash-node": "3.306.0",
29
+ "@aws-sdk/invalid-dependency": "3.306.0",
30
+ "@aws-sdk/middleware-content-length": "3.306.0",
31
+ "@aws-sdk/middleware-endpoint": "3.306.0",
32
+ "@aws-sdk/middleware-host-header": "3.306.0",
33
+ "@aws-sdk/middleware-logger": "3.306.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
+ "@aws-sdk/middleware-retry": "3.306.0",
36
+ "@aws-sdk/middleware-serde": "3.306.0",
37
+ "@aws-sdk/middleware-signing": "3.306.0",
38
+ "@aws-sdk/middleware-stack": "3.306.0",
39
+ "@aws-sdk/middleware-user-agent": "3.306.0",
40
+ "@aws-sdk/node-config-provider": "3.306.0",
41
+ "@aws-sdk/node-http-handler": "3.306.0",
42
+ "@aws-sdk/protocol-http": "3.306.0",
43
+ "@aws-sdk/smithy-client": "3.306.0",
44
+ "@aws-sdk/types": "3.306.0",
45
+ "@aws-sdk/url-parser": "3.306.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.306.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
+ "@aws-sdk/util-endpoints": "3.306.0",
52
+ "@aws-sdk/util-retry": "3.306.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.306.0",
54
+ "@aws-sdk/util-user-agent-node": "3.306.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",