@aws-sdk/client-iotsecuretunneling 3.933.0 → 3.935.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/index.js CHANGED
@@ -117,11 +117,6 @@ let IoTSecureTunnelingServiceException$1 = class IoTSecureTunnelingServiceExcept
117
117
  }
118
118
  };
119
119
 
120
- const ClientMode = {
121
- ALL: "ALL",
122
- DESTINATION: "DESTINATION",
123
- SOURCE: "SOURCE",
124
- };
125
120
  let ResourceNotFoundException$1 = class ResourceNotFoundException extends IoTSecureTunnelingServiceException$1 {
126
121
  name = "ResourceNotFoundException";
127
122
  $fault = "client";
@@ -134,14 +129,6 @@ let ResourceNotFoundException$1 = class ResourceNotFoundException extends IoTSec
134
129
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
135
130
  }
136
131
  };
137
- const ConnectionStatus = {
138
- CONNECTED: "CONNECTED",
139
- DISCONNECTED: "DISCONNECTED",
140
- };
141
- const TunnelStatus = {
142
- CLOSED: "CLOSED",
143
- OPEN: "OPEN",
144
- };
145
132
  let LimitExceededException$1 = class LimitExceededException extends IoTSecureTunnelingServiceException$1 {
146
133
  name = "LimitExceededException";
147
134
  $fault = "client";
@@ -580,6 +567,20 @@ smithyClient.createAggregatedClient(commands, IoTSecureTunneling);
580
567
 
581
568
  const paginateListTunnels = core.createPaginator(IoTSecureTunnelingClient, ListTunnelsCommand, "nextToken", "nextToken", "maxResults");
582
569
 
570
+ const ClientMode = {
571
+ ALL: "ALL",
572
+ DESTINATION: "DESTINATION",
573
+ SOURCE: "SOURCE",
574
+ };
575
+ const ConnectionStatus = {
576
+ CONNECTED: "CONNECTED",
577
+ DISCONNECTED: "DISCONNECTED",
578
+ };
579
+ const TunnelStatus = {
580
+ CLOSED: "CLOSED",
581
+ OPEN: "OPEN",
582
+ };
583
+
583
584
  Object.defineProperty(exports, "$Command", {
584
585
  enumerable: true,
585
586
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./IoTSecureTunnelingClient";
2
2
  export * from "./IoTSecureTunneling";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { IoTSecureTunnelingServiceException } from "./models/IoTSecureTunnelingServiceException";
@@ -0,0 +1,13 @@
1
+ export const ClientMode = {
2
+ ALL: "ALL",
3
+ DESTINATION: "DESTINATION",
4
+ SOURCE: "SOURCE",
5
+ };
6
+ export const ConnectionStatus = {
7
+ CONNECTED: "CONNECTED",
8
+ DISCONNECTED: "DISCONNECTED",
9
+ };
10
+ export const TunnelStatus = {
11
+ CLOSED: "CLOSED",
12
+ OPEN: "OPEN",
13
+ };
@@ -0,0 +1,25 @@
1
+ import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
2
+ export class ResourceNotFoundException extends __BaseException {
3
+ name = "ResourceNotFoundException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "ResourceNotFoundException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
12
+ }
13
+ }
14
+ export class LimitExceededException extends __BaseException {
15
+ name = "LimitExceededException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "LimitExceededException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
24
+ }
25
+ }
@@ -1,38 +1 @@
1
- import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
2
- export const ClientMode = {
3
- ALL: "ALL",
4
- DESTINATION: "DESTINATION",
5
- SOURCE: "SOURCE",
6
- };
7
- export class ResourceNotFoundException extends __BaseException {
8
- name = "ResourceNotFoundException";
9
- $fault = "client";
10
- constructor(opts) {
11
- super({
12
- name: "ResourceNotFoundException",
13
- $fault: "client",
14
- ...opts,
15
- });
16
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
17
- }
18
- }
19
- export const ConnectionStatus = {
20
- CONNECTED: "CONNECTED",
21
- DISCONNECTED: "DISCONNECTED",
22
- };
23
- export const TunnelStatus = {
24
- CLOSED: "CLOSED",
25
- OPEN: "OPEN",
26
- };
27
- export class LimitExceededException extends __BaseException {
28
- name = "LimitExceededException";
29
- $fault = "client";
30
- constructor(opts) {
31
- super({
32
- name: "LimitExceededException",
33
- $fault: "client",
34
- ...opts,
35
- });
36
- Object.setPrototypeOf(this, LimitExceededException.prototype);
37
- }
38
- }
1
+ export {};
@@ -69,7 +69,7 @@ const _ta = "tags";
69
69
  const _v = "value";
70
70
  const n0 = "com.amazonaws.iotsecuretunneling";
71
71
  import { TypeRegistry } from "@smithy/core/schema";
72
- import { LimitExceededException as __LimitExceededException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/index";
72
+ import { LimitExceededException as __LimitExceededException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/errors";
73
73
  import { IoTSecureTunnelingServiceException as __IoTSecureTunnelingServiceException } from "../models/IoTSecureTunnelingServiceException";
74
74
  export var ClientAccessToken = [0, n0, _CAT, 8, 0];
75
75
  export var CloseTunnelRequest = [
@@ -14,5 +14,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
14
14
  export type { IoTSecureTunnelingExtensionConfiguration } from "./extensionConfiguration";
15
15
  export * from "./commands";
16
16
  export * from "./pagination";
17
- export * from "./models";
17
+ export * from "./models/enums";
18
+ export * from "./models/errors";
19
+ export type * from "./models/models_0";
18
20
  export { IoTSecureTunnelingServiceException } from "./models/IoTSecureTunnelingServiceException";
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ClientMode: {
6
+ readonly ALL: "ALL";
7
+ readonly DESTINATION: "DESTINATION";
8
+ readonly SOURCE: "SOURCE";
9
+ };
10
+ /**
11
+ * @public
12
+ */
13
+ export type ClientMode = (typeof ClientMode)[keyof typeof ClientMode];
14
+ /**
15
+ * @public
16
+ * @enum
17
+ */
18
+ export declare const ConnectionStatus: {
19
+ readonly CONNECTED: "CONNECTED";
20
+ readonly DISCONNECTED: "DISCONNECTED";
21
+ };
22
+ /**
23
+ * @public
24
+ */
25
+ export type ConnectionStatus = (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
26
+ /**
27
+ * @public
28
+ * @enum
29
+ */
30
+ export declare const TunnelStatus: {
31
+ readonly CLOSED: "CLOSED";
32
+ readonly OPEN: "OPEN";
33
+ };
34
+ /**
35
+ * @public
36
+ */
37
+ export type TunnelStatus = (typeof TunnelStatus)[keyof typeof TunnelStatus];
@@ -0,0 +1,26 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
3
+ /**
4
+ * <p>Thrown when an operation is attempted on a resource that does not exist.</p>
5
+ * @public
6
+ */
7
+ export declare class ResourceNotFoundException extends __BaseException {
8
+ readonly name: "ResourceNotFoundException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>Thrown when a tunnel limit is exceeded.</p>
17
+ * @public
18
+ */
19
+ export declare class LimitExceededException extends __BaseException {
20
+ readonly name: "LimitExceededException";
21
+ readonly $fault: "client";
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
26
+ }
@@ -1,18 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
3
- /**
4
- * @public
5
- * @enum
6
- */
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];
1
+ import { ClientMode, ConnectionStatus, TunnelStatus } from "./enums";
16
2
  /**
17
3
  * @public
18
4
  */
@@ -34,30 +20,6 @@ export interface CloseTunnelRequest {
34
20
  */
35
21
  export interface CloseTunnelResponse {
36
22
  }
37
- /**
38
- * <p>Thrown when an operation is attempted on a resource that does not exist.</p>
39
- * @public
40
- */
41
- export declare class ResourceNotFoundException extends __BaseException {
42
- readonly name: "ResourceNotFoundException";
43
- readonly $fault: "client";
44
- /**
45
- * @internal
46
- */
47
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
48
- }
49
- /**
50
- * @public
51
- * @enum
52
- */
53
- export declare const ConnectionStatus: {
54
- readonly CONNECTED: "CONNECTED";
55
- readonly DISCONNECTED: "DISCONNECTED";
56
- };
57
- /**
58
- * @public
59
- */
60
- export type ConnectionStatus = (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
61
23
  /**
62
24
  * <p>The state of a connection.</p>
63
25
  * @public
@@ -104,18 +66,6 @@ export interface DestinationConfig {
104
66
  */
105
67
  services: string[] | undefined;
106
68
  }
107
- /**
108
- * @public
109
- * @enum
110
- */
111
- export declare const TunnelStatus: {
112
- readonly CLOSED: "CLOSED";
113
- readonly OPEN: "OPEN";
114
- };
115
- /**
116
- * @public
117
- */
118
- export type TunnelStatus = (typeof TunnelStatus)[keyof typeof TunnelStatus];
119
69
  /**
120
70
  * <p>An arbitary key/value pair used to add searchable metadata to secure tunnel
121
71
  * resources.</p>
@@ -312,18 +262,6 @@ export interface ListTunnelsResponse {
312
262
  */
313
263
  nextToken?: string | undefined;
314
264
  }
315
- /**
316
- * <p>Thrown when a tunnel limit is exceeded.</p>
317
- * @public
318
- */
319
- export declare class LimitExceededException extends __BaseException {
320
- readonly name: "LimitExceededException";
321
- readonly $fault: "client";
322
- /**
323
- * @internal
324
- */
325
- constructor(opts: __ExceptionOptionType<LimitExceededException, __BaseException>);
326
- }
327
265
  /**
328
266
  * @public
329
267
  */
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { IoTSecureTunnelingExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { IoTSecureTunnelingServiceException } from "./models/IoTSecureTunnelingServiceException";
@@ -0,0 +1,17 @@
1
+ export declare const ClientMode: {
2
+ readonly ALL: "ALL";
3
+ readonly DESTINATION: "DESTINATION";
4
+ readonly SOURCE: "SOURCE";
5
+ };
6
+ export type ClientMode = (typeof ClientMode)[keyof typeof ClientMode];
7
+ export declare const ConnectionStatus: {
8
+ readonly CONNECTED: "CONNECTED";
9
+ readonly DISCONNECTED: "DISCONNECTED";
10
+ };
11
+ export type ConnectionStatus =
12
+ (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
13
+ export declare const TunnelStatus: {
14
+ readonly CLOSED: "CLOSED";
15
+ readonly OPEN: "OPEN";
16
+ };
17
+ export type TunnelStatus = (typeof TunnelStatus)[keyof typeof TunnelStatus];
@@ -0,0 +1,16 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
3
+ export declare class ResourceNotFoundException extends __BaseException {
4
+ readonly name: "ResourceNotFoundException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
8
+ );
9
+ }
10
+ export declare class LimitExceededException extends __BaseException {
11
+ readonly name: "LimitExceededException";
12
+ readonly $fault: "client";
13
+ constructor(
14
+ opts: __ExceptionOptionType<LimitExceededException, __BaseException>
15
+ );
16
+ }
@@ -1,29 +1,9 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { IoTSecureTunnelingServiceException as __BaseException } from "./IoTSecureTunnelingServiceException";
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];
1
+ import { ClientMode, ConnectionStatus, TunnelStatus } from "./enums";
9
2
  export interface CloseTunnelRequest {
10
3
  tunnelId: string | undefined;
11
4
  delete?: boolean | undefined;
12
5
  }
13
6
  export interface CloseTunnelResponse {}
14
- export declare class ResourceNotFoundException extends __BaseException {
15
- readonly name: "ResourceNotFoundException";
16
- readonly $fault: "client";
17
- constructor(
18
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
19
- );
20
- }
21
- export declare const ConnectionStatus: {
22
- readonly CONNECTED: "CONNECTED";
23
- readonly DISCONNECTED: "DISCONNECTED";
24
- };
25
- export type ConnectionStatus =
26
- (typeof ConnectionStatus)[keyof typeof ConnectionStatus];
27
7
  export interface ConnectionState {
28
8
  status?: ConnectionStatus | undefined;
29
9
  lastUpdatedAt?: Date | undefined;
@@ -35,11 +15,6 @@ export interface DestinationConfig {
35
15
  thingName?: string | undefined;
36
16
  services: string[] | undefined;
37
17
  }
38
- export declare const TunnelStatus: {
39
- readonly CLOSED: "CLOSED";
40
- readonly OPEN: "OPEN";
41
- };
42
- export type TunnelStatus = (typeof TunnelStatus)[keyof typeof TunnelStatus];
43
18
  export interface Tag {
44
19
  key: string | undefined;
45
20
  value: string | undefined;
@@ -86,13 +61,6 @@ export interface ListTunnelsResponse {
86
61
  tunnelSummaries?: TunnelSummary[] | undefined;
87
62
  nextToken?: string | undefined;
88
63
  }
89
- export declare class LimitExceededException extends __BaseException {
90
- readonly name: "LimitExceededException";
91
- readonly $fault: "client";
92
- constructor(
93
- opts: __ExceptionOptionType<LimitExceededException, __BaseException>
94
- );
95
- }
96
64
  export interface OpenTunnelRequest {
97
65
  description?: string | undefined;
98
66
  tags?: Tag[] | 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.933.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-iotsecuretunneling",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.933.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.932.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.932.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";