@aws-sdk/client-ec2-instance-connect 3.52.0 → 3.53.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,46 +1,67 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
2
3
  /**
3
4
  * <p>Either your AWS credentials are not valid or you do not have access to the EC2 instance.</p>
4
5
  */
5
- export interface AuthException extends __SmithyException, $MetadataBearer {
6
- name: "AuthException";
7
- $fault: "client";
6
+ export declare class AuthException extends __BaseException {
7
+ readonly name: "AuthException";
8
+ readonly $fault: "client";
8
9
  Message?: string;
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
9
14
  }
10
15
  /**
11
16
  * <p>The specified instance was not found.</p>
12
17
  */
13
- export interface EC2InstanceNotFoundException extends __SmithyException, $MetadataBearer {
14
- name: "EC2InstanceNotFoundException";
15
- $fault: "client";
18
+ export declare class EC2InstanceNotFoundException extends __BaseException {
19
+ readonly name: "EC2InstanceNotFoundException";
20
+ readonly $fault: "client";
16
21
  Message?: string;
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>);
17
26
  }
18
27
  /**
19
28
  * <p>Unable to connect because the instance is not in a valid state.
20
29
  * Connecting to a stopped or terminated instance is not supported. If the instance is stopped,
21
30
  * start your instance, and try to connect again.</p>
22
31
  */
23
- export interface EC2InstanceStateInvalidException extends __SmithyException, $MetadataBearer {
24
- name: "EC2InstanceStateInvalidException";
25
- $fault: "client";
32
+ export declare class EC2InstanceStateInvalidException extends __BaseException {
33
+ readonly name: "EC2InstanceStateInvalidException";
34
+ readonly $fault: "client";
26
35
  Message?: string;
36
+ /**
37
+ * @internal
38
+ */
39
+ constructor(opts: __ExceptionOptionType<EC2InstanceStateInvalidException, __BaseException>);
27
40
  }
28
41
  /**
29
42
  * <p>The instance type is not supported for connecting via the serial console. Only Nitro
30
43
  * instance types are currently supported.</p>
31
44
  */
32
- export interface EC2InstanceTypeInvalidException extends __SmithyException, $MetadataBearer {
33
- name: "EC2InstanceTypeInvalidException";
34
- $fault: "client";
45
+ export declare class EC2InstanceTypeInvalidException extends __BaseException {
46
+ readonly name: "EC2InstanceTypeInvalidException";
47
+ readonly $fault: "client";
35
48
  Message?: string;
49
+ /**
50
+ * @internal
51
+ */
52
+ constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
36
53
  }
37
54
  /**
38
55
  * <p>One of the parameters is not valid.</p>
39
56
  */
40
- export interface InvalidArgsException extends __SmithyException, $MetadataBearer {
41
- name: "InvalidArgsException";
42
- $fault: "client";
57
+ export declare class InvalidArgsException extends __BaseException {
58
+ readonly name: "InvalidArgsException";
59
+ readonly $fault: "client";
43
60
  Message?: string;
61
+ /**
62
+ * @internal
63
+ */
64
+ constructor(opts: __ExceptionOptionType<InvalidArgsException, __BaseException>);
44
65
  }
45
66
  export interface SendSerialConsoleSSHPublicKeyRequest {
46
67
  /**
@@ -86,43 +107,63 @@ export declare namespace SendSerialConsoleSSHPublicKeyResponse {
86
107
  * account, run the EnableSerialConsoleAccess API. For more information, see
87
108
  * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html">EnableSerialConsoleAccess</a> in the <i>Amazon EC2 API Reference</i>.</p>
88
109
  */
89
- export interface SerialConsoleAccessDisabledException extends __SmithyException, $MetadataBearer {
90
- name: "SerialConsoleAccessDisabledException";
91
- $fault: "client";
110
+ export declare class SerialConsoleAccessDisabledException extends __BaseException {
111
+ readonly name: "SerialConsoleAccessDisabledException";
112
+ readonly $fault: "client";
92
113
  Message?: string;
114
+ /**
115
+ * @internal
116
+ */
117
+ constructor(opts: __ExceptionOptionType<SerialConsoleAccessDisabledException, __BaseException>);
93
118
  }
94
119
  /**
95
120
  * <p>The instance currently has 1 active serial console session. Only 1 session is supported at a time.</p>
96
121
  */
97
- export interface SerialConsoleSessionLimitExceededException extends __SmithyException, $MetadataBearer {
98
- name: "SerialConsoleSessionLimitExceededException";
99
- $fault: "client";
122
+ export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
123
+ readonly name: "SerialConsoleSessionLimitExceededException";
124
+ readonly $fault: "client";
100
125
  Message?: string;
126
+ /**
127
+ * @internal
128
+ */
129
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionLimitExceededException, __BaseException>);
101
130
  }
102
131
  /**
103
132
  * <p>Unable to start a serial console session. Please try again.</p>
104
133
  */
105
- export interface SerialConsoleSessionUnavailableException extends __SmithyException, $MetadataBearer {
106
- name: "SerialConsoleSessionUnavailableException";
107
- $fault: "server";
134
+ export declare class SerialConsoleSessionUnavailableException extends __BaseException {
135
+ readonly name: "SerialConsoleSessionUnavailableException";
136
+ readonly $fault: "server";
108
137
  Message?: string;
138
+ /**
139
+ * @internal
140
+ */
141
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnavailableException, __BaseException>);
109
142
  }
110
143
  /**
111
144
  * <p>The service encountered an error. Follow the instructions in the error message and try again.</p>
112
145
  */
113
- export interface ServiceException extends __SmithyException, $MetadataBearer {
114
- name: "ServiceException";
115
- $fault: "server";
146
+ export declare class ServiceException extends __BaseException {
147
+ readonly name: "ServiceException";
148
+ readonly $fault: "server";
116
149
  Message?: string;
150
+ /**
151
+ * @internal
152
+ */
153
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
117
154
  }
118
155
  /**
119
156
  * <p>The requests were made too frequently and have been throttled. Wait a while and try again.
120
157
  * To increase the limit on your request frequency, contact AWS Support.</p>
121
158
  */
122
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
123
- name: "ThrottlingException";
124
- $fault: "client";
159
+ export declare class ThrottlingException extends __BaseException {
160
+ readonly name: "ThrottlingException";
161
+ readonly $fault: "client";
125
162
  Message?: string;
163
+ /**
164
+ * @internal
165
+ */
166
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
126
167
  }
127
168
  export interface SendSSHPublicKeyRequest {
128
169
  /**
@@ -2,3 +2,4 @@ export * from "./EC2InstanceConnect";
2
2
  export * from "./EC2InstanceConnectClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
+ export { EC2InstanceConnectServiceException } from "./models/EC2InstanceConnectServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class EC2InstanceConnectServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,33 +1,44 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
2
3
 
3
- export interface AuthException extends __SmithyException, $MetadataBearer {
4
- name: "AuthException";
5
- $fault: "client";
4
+ export declare class AuthException extends __BaseException {
5
+ readonly name: "AuthException";
6
+ readonly $fault: "client";
6
7
  Message?: string;
8
+
9
+ constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
7
10
  }
8
11
 
9
- export interface EC2InstanceNotFoundException extends __SmithyException, $MetadataBearer {
10
- name: "EC2InstanceNotFoundException";
11
- $fault: "client";
12
+ export declare class EC2InstanceNotFoundException extends __BaseException {
13
+ readonly name: "EC2InstanceNotFoundException";
14
+ readonly $fault: "client";
12
15
  Message?: string;
16
+
17
+ constructor(opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>);
13
18
  }
14
19
 
15
- export interface EC2InstanceStateInvalidException extends __SmithyException, $MetadataBearer {
16
- name: "EC2InstanceStateInvalidException";
17
- $fault: "client";
20
+ export declare class EC2InstanceStateInvalidException extends __BaseException {
21
+ readonly name: "EC2InstanceStateInvalidException";
22
+ readonly $fault: "client";
18
23
  Message?: string;
24
+
25
+ constructor(opts: __ExceptionOptionType<EC2InstanceStateInvalidException, __BaseException>);
19
26
  }
20
27
 
21
- export interface EC2InstanceTypeInvalidException extends __SmithyException, $MetadataBearer {
22
- name: "EC2InstanceTypeInvalidException";
23
- $fault: "client";
28
+ export declare class EC2InstanceTypeInvalidException extends __BaseException {
29
+ readonly name: "EC2InstanceTypeInvalidException";
30
+ readonly $fault: "client";
24
31
  Message?: string;
32
+
33
+ constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
25
34
  }
26
35
 
27
- export interface InvalidArgsException extends __SmithyException, $MetadataBearer {
28
- name: "InvalidArgsException";
29
- $fault: "client";
36
+ export declare class InvalidArgsException extends __BaseException {
37
+ readonly name: "InvalidArgsException";
38
+ readonly $fault: "client";
30
39
  Message?: string;
40
+
41
+ constructor(opts: __ExceptionOptionType<InvalidArgsException, __BaseException>);
31
42
  }
32
43
  export interface SendSerialConsoleSSHPublicKeyRequest {
33
44
 
@@ -52,34 +63,44 @@ export declare namespace SendSerialConsoleSSHPublicKeyResponse {
52
63
  const filterSensitiveLog: (obj: SendSerialConsoleSSHPublicKeyResponse) => any;
53
64
  }
54
65
 
55
- export interface SerialConsoleAccessDisabledException extends __SmithyException, $MetadataBearer {
56
- name: "SerialConsoleAccessDisabledException";
57
- $fault: "client";
66
+ export declare class SerialConsoleAccessDisabledException extends __BaseException {
67
+ readonly name: "SerialConsoleAccessDisabledException";
68
+ readonly $fault: "client";
58
69
  Message?: string;
70
+
71
+ constructor(opts: __ExceptionOptionType<SerialConsoleAccessDisabledException, __BaseException>);
59
72
  }
60
73
 
61
- export interface SerialConsoleSessionLimitExceededException extends __SmithyException, $MetadataBearer {
62
- name: "SerialConsoleSessionLimitExceededException";
63
- $fault: "client";
74
+ export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
75
+ readonly name: "SerialConsoleSessionLimitExceededException";
76
+ readonly $fault: "client";
64
77
  Message?: string;
78
+
79
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionLimitExceededException, __BaseException>);
65
80
  }
66
81
 
67
- export interface SerialConsoleSessionUnavailableException extends __SmithyException, $MetadataBearer {
68
- name: "SerialConsoleSessionUnavailableException";
69
- $fault: "server";
82
+ export declare class SerialConsoleSessionUnavailableException extends __BaseException {
83
+ readonly name: "SerialConsoleSessionUnavailableException";
84
+ readonly $fault: "server";
70
85
  Message?: string;
86
+
87
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnavailableException, __BaseException>);
71
88
  }
72
89
 
73
- export interface ServiceException extends __SmithyException, $MetadataBearer {
74
- name: "ServiceException";
75
- $fault: "server";
90
+ export declare class ServiceException extends __BaseException {
91
+ readonly name: "ServiceException";
92
+ readonly $fault: "server";
76
93
  Message?: string;
94
+
95
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
77
96
  }
78
97
 
79
- export interface ThrottlingException extends __SmithyException, $MetadataBearer {
80
- name: "ThrottlingException";
81
- $fault: "client";
98
+ export declare class ThrottlingException extends __BaseException {
99
+ readonly name: "ThrottlingException";
100
+ readonly $fault: "client";
82
101
  Message?: string;
102
+
103
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
83
104
  }
84
105
  export interface SendSSHPublicKeyRequest {
85
106
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-ec2-instance-connect",
3
3
  "description": "AWS SDK for JavaScript Ec2 Instance Connect Client for Node.js, Browser and React Native",
4
- "version": "3.52.0",
4
+ "version": "3.53.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",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.53.0",
22
+ "@aws-sdk/config-resolver": "3.53.0",
23
+ "@aws-sdk/credential-provider-node": "3.53.0",
24
+ "@aws-sdk/fetch-http-handler": "3.53.0",
25
+ "@aws-sdk/hash-node": "3.53.0",
26
+ "@aws-sdk/invalid-dependency": "3.53.0",
27
+ "@aws-sdk/middleware-content-length": "3.53.0",
28
+ "@aws-sdk/middleware-host-header": "3.53.0",
29
+ "@aws-sdk/middleware-logger": "3.53.0",
30
+ "@aws-sdk/middleware-retry": "3.53.0",
31
+ "@aws-sdk/middleware-serde": "3.53.0",
32
+ "@aws-sdk/middleware-signing": "3.53.0",
33
+ "@aws-sdk/middleware-stack": "3.53.0",
34
+ "@aws-sdk/middleware-user-agent": "3.53.0",
35
+ "@aws-sdk/node-config-provider": "3.53.0",
36
+ "@aws-sdk/node-http-handler": "3.53.0",
37
+ "@aws-sdk/protocol-http": "3.53.0",
38
+ "@aws-sdk/smithy-client": "3.53.0",
39
+ "@aws-sdk/types": "3.53.0",
40
+ "@aws-sdk/url-parser": "3.53.0",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
43
  "@aws-sdk/util-body-length-browser": "3.52.0",
44
44
  "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.53.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.53.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.53.0",
48
+ "@aws-sdk/util-user-agent-node": "3.53.0",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"