@aws-sdk/client-ec2-instance-connect 3.934.0 → 3.936.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-es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "./EC2InstanceConnectClient";
2
2
  export * from "./EC2InstanceConnect";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/errors";
5
5
  export { EC2InstanceConnectServiceException } from "./models/EC2InstanceConnectServiceException";
@@ -0,0 +1,169 @@
1
+ import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
2
+ export class AuthException extends __BaseException {
3
+ name = "AuthException";
4
+ $fault = "client";
5
+ Message;
6
+ constructor(opts) {
7
+ super({
8
+ name: "AuthException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ Object.setPrototypeOf(this, AuthException.prototype);
13
+ this.Message = opts.Message;
14
+ }
15
+ }
16
+ export class EC2InstanceNotFoundException extends __BaseException {
17
+ name = "EC2InstanceNotFoundException";
18
+ $fault = "client";
19
+ Message;
20
+ constructor(opts) {
21
+ super({
22
+ name: "EC2InstanceNotFoundException",
23
+ $fault: "client",
24
+ ...opts,
25
+ });
26
+ Object.setPrototypeOf(this, EC2InstanceNotFoundException.prototype);
27
+ this.Message = opts.Message;
28
+ }
29
+ }
30
+ export class EC2InstanceStateInvalidException extends __BaseException {
31
+ name = "EC2InstanceStateInvalidException";
32
+ $fault = "client";
33
+ Message;
34
+ constructor(opts) {
35
+ super({
36
+ name: "EC2InstanceStateInvalidException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ Object.setPrototypeOf(this, EC2InstanceStateInvalidException.prototype);
41
+ this.Message = opts.Message;
42
+ }
43
+ }
44
+ export class EC2InstanceTypeInvalidException extends __BaseException {
45
+ name = "EC2InstanceTypeInvalidException";
46
+ $fault = "client";
47
+ Message;
48
+ constructor(opts) {
49
+ super({
50
+ name: "EC2InstanceTypeInvalidException",
51
+ $fault: "client",
52
+ ...opts,
53
+ });
54
+ Object.setPrototypeOf(this, EC2InstanceTypeInvalidException.prototype);
55
+ this.Message = opts.Message;
56
+ }
57
+ }
58
+ export class EC2InstanceUnavailableException extends __BaseException {
59
+ name = "EC2InstanceUnavailableException";
60
+ $fault = "server";
61
+ Message;
62
+ constructor(opts) {
63
+ super({
64
+ name: "EC2InstanceUnavailableException",
65
+ $fault: "server",
66
+ ...opts,
67
+ });
68
+ Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
69
+ this.Message = opts.Message;
70
+ }
71
+ }
72
+ export class InvalidArgsException extends __BaseException {
73
+ name = "InvalidArgsException";
74
+ $fault = "client";
75
+ Message;
76
+ constructor(opts) {
77
+ super({
78
+ name: "InvalidArgsException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, InvalidArgsException.prototype);
83
+ this.Message = opts.Message;
84
+ }
85
+ }
86
+ export class SerialConsoleAccessDisabledException extends __BaseException {
87
+ name = "SerialConsoleAccessDisabledException";
88
+ $fault = "client";
89
+ Message;
90
+ constructor(opts) {
91
+ super({
92
+ name: "SerialConsoleAccessDisabledException",
93
+ $fault: "client",
94
+ ...opts,
95
+ });
96
+ Object.setPrototypeOf(this, SerialConsoleAccessDisabledException.prototype);
97
+ this.Message = opts.Message;
98
+ }
99
+ }
100
+ export class SerialConsoleSessionLimitExceededException extends __BaseException {
101
+ name = "SerialConsoleSessionLimitExceededException";
102
+ $fault = "client";
103
+ Message;
104
+ constructor(opts) {
105
+ super({
106
+ name: "SerialConsoleSessionLimitExceededException",
107
+ $fault: "client",
108
+ ...opts,
109
+ });
110
+ Object.setPrototypeOf(this, SerialConsoleSessionLimitExceededException.prototype);
111
+ this.Message = opts.Message;
112
+ }
113
+ }
114
+ export class SerialConsoleSessionUnavailableException extends __BaseException {
115
+ name = "SerialConsoleSessionUnavailableException";
116
+ $fault = "server";
117
+ Message;
118
+ constructor(opts) {
119
+ super({
120
+ name: "SerialConsoleSessionUnavailableException",
121
+ $fault: "server",
122
+ ...opts,
123
+ });
124
+ Object.setPrototypeOf(this, SerialConsoleSessionUnavailableException.prototype);
125
+ this.Message = opts.Message;
126
+ }
127
+ }
128
+ export class SerialConsoleSessionUnsupportedException extends __BaseException {
129
+ name = "SerialConsoleSessionUnsupportedException";
130
+ $fault = "client";
131
+ Message;
132
+ constructor(opts) {
133
+ super({
134
+ name: "SerialConsoleSessionUnsupportedException",
135
+ $fault: "client",
136
+ ...opts,
137
+ });
138
+ Object.setPrototypeOf(this, SerialConsoleSessionUnsupportedException.prototype);
139
+ this.Message = opts.Message;
140
+ }
141
+ }
142
+ export class ServiceException extends __BaseException {
143
+ name = "ServiceException";
144
+ $fault = "server";
145
+ Message;
146
+ constructor(opts) {
147
+ super({
148
+ name: "ServiceException",
149
+ $fault: "server",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, ServiceException.prototype);
153
+ this.Message = opts.Message;
154
+ }
155
+ }
156
+ export class ThrottlingException extends __BaseException {
157
+ name = "ThrottlingException";
158
+ $fault = "client";
159
+ Message;
160
+ constructor(opts) {
161
+ super({
162
+ name: "ThrottlingException",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
167
+ this.Message = opts.Message;
168
+ }
169
+ }
@@ -1,169 +1 @@
1
- import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
2
- export class AuthException extends __BaseException {
3
- name = "AuthException";
4
- $fault = "client";
5
- Message;
6
- constructor(opts) {
7
- super({
8
- name: "AuthException",
9
- $fault: "client",
10
- ...opts,
11
- });
12
- Object.setPrototypeOf(this, AuthException.prototype);
13
- this.Message = opts.Message;
14
- }
15
- }
16
- export class EC2InstanceNotFoundException extends __BaseException {
17
- name = "EC2InstanceNotFoundException";
18
- $fault = "client";
19
- Message;
20
- constructor(opts) {
21
- super({
22
- name: "EC2InstanceNotFoundException",
23
- $fault: "client",
24
- ...opts,
25
- });
26
- Object.setPrototypeOf(this, EC2InstanceNotFoundException.prototype);
27
- this.Message = opts.Message;
28
- }
29
- }
30
- export class EC2InstanceStateInvalidException extends __BaseException {
31
- name = "EC2InstanceStateInvalidException";
32
- $fault = "client";
33
- Message;
34
- constructor(opts) {
35
- super({
36
- name: "EC2InstanceStateInvalidException",
37
- $fault: "client",
38
- ...opts,
39
- });
40
- Object.setPrototypeOf(this, EC2InstanceStateInvalidException.prototype);
41
- this.Message = opts.Message;
42
- }
43
- }
44
- export class EC2InstanceTypeInvalidException extends __BaseException {
45
- name = "EC2InstanceTypeInvalidException";
46
- $fault = "client";
47
- Message;
48
- constructor(opts) {
49
- super({
50
- name: "EC2InstanceTypeInvalidException",
51
- $fault: "client",
52
- ...opts,
53
- });
54
- Object.setPrototypeOf(this, EC2InstanceTypeInvalidException.prototype);
55
- this.Message = opts.Message;
56
- }
57
- }
58
- export class EC2InstanceUnavailableException extends __BaseException {
59
- name = "EC2InstanceUnavailableException";
60
- $fault = "server";
61
- Message;
62
- constructor(opts) {
63
- super({
64
- name: "EC2InstanceUnavailableException",
65
- $fault: "server",
66
- ...opts,
67
- });
68
- Object.setPrototypeOf(this, EC2InstanceUnavailableException.prototype);
69
- this.Message = opts.Message;
70
- }
71
- }
72
- export class InvalidArgsException extends __BaseException {
73
- name = "InvalidArgsException";
74
- $fault = "client";
75
- Message;
76
- constructor(opts) {
77
- super({
78
- name: "InvalidArgsException",
79
- $fault: "client",
80
- ...opts,
81
- });
82
- Object.setPrototypeOf(this, InvalidArgsException.prototype);
83
- this.Message = opts.Message;
84
- }
85
- }
86
- export class SerialConsoleAccessDisabledException extends __BaseException {
87
- name = "SerialConsoleAccessDisabledException";
88
- $fault = "client";
89
- Message;
90
- constructor(opts) {
91
- super({
92
- name: "SerialConsoleAccessDisabledException",
93
- $fault: "client",
94
- ...opts,
95
- });
96
- Object.setPrototypeOf(this, SerialConsoleAccessDisabledException.prototype);
97
- this.Message = opts.Message;
98
- }
99
- }
100
- export class SerialConsoleSessionLimitExceededException extends __BaseException {
101
- name = "SerialConsoleSessionLimitExceededException";
102
- $fault = "client";
103
- Message;
104
- constructor(opts) {
105
- super({
106
- name: "SerialConsoleSessionLimitExceededException",
107
- $fault: "client",
108
- ...opts,
109
- });
110
- Object.setPrototypeOf(this, SerialConsoleSessionLimitExceededException.prototype);
111
- this.Message = opts.Message;
112
- }
113
- }
114
- export class SerialConsoleSessionUnavailableException extends __BaseException {
115
- name = "SerialConsoleSessionUnavailableException";
116
- $fault = "server";
117
- Message;
118
- constructor(opts) {
119
- super({
120
- name: "SerialConsoleSessionUnavailableException",
121
- $fault: "server",
122
- ...opts,
123
- });
124
- Object.setPrototypeOf(this, SerialConsoleSessionUnavailableException.prototype);
125
- this.Message = opts.Message;
126
- }
127
- }
128
- export class SerialConsoleSessionUnsupportedException extends __BaseException {
129
- name = "SerialConsoleSessionUnsupportedException";
130
- $fault = "client";
131
- Message;
132
- constructor(opts) {
133
- super({
134
- name: "SerialConsoleSessionUnsupportedException",
135
- $fault: "client",
136
- ...opts,
137
- });
138
- Object.setPrototypeOf(this, SerialConsoleSessionUnsupportedException.prototype);
139
- this.Message = opts.Message;
140
- }
141
- }
142
- export class ServiceException extends __BaseException {
143
- name = "ServiceException";
144
- $fault = "server";
145
- Message;
146
- constructor(opts) {
147
- super({
148
- name: "ServiceException",
149
- $fault: "server",
150
- ...opts,
151
- });
152
- Object.setPrototypeOf(this, ServiceException.prototype);
153
- this.Message = opts.Message;
154
- }
155
- }
156
- export class ThrottlingException extends __BaseException {
157
- name = "ThrottlingException";
158
- $fault = "client";
159
- Message;
160
- constructor(opts) {
161
- super({
162
- name: "ThrottlingException",
163
- $fault: "client",
164
- ...opts,
165
- });
166
- Object.setPrototypeOf(this, ThrottlingException.prototype);
167
- this.Message = opts.Message;
168
- }
169
- }
1
+ export {};
@@ -33,7 +33,7 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
33
33
  const n0 = "com.amazonaws.ec2instanceconnect";
34
34
  import { TypeRegistry } from "@smithy/core/schema";
35
35
  import { EC2InstanceConnectServiceException as __EC2InstanceConnectServiceException } from "../models/EC2InstanceConnectServiceException";
36
- import { AuthException as __AuthException, EC2InstanceNotFoundException as __EC2InstanceNotFoundException, EC2InstanceStateInvalidException as __EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException as __EC2InstanceTypeInvalidException, EC2InstanceUnavailableException as __EC2InstanceUnavailableException, InvalidArgsException as __InvalidArgsException, SerialConsoleAccessDisabledException as __SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException as __SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException as __SerialConsoleSessionUnavailableException, SerialConsoleSessionUnsupportedException as __SerialConsoleSessionUnsupportedException, ServiceException as __ServiceException, ThrottlingException as __ThrottlingException, } from "../models/index";
36
+ import { AuthException as __AuthException, EC2InstanceNotFoundException as __EC2InstanceNotFoundException, EC2InstanceStateInvalidException as __EC2InstanceStateInvalidException, EC2InstanceTypeInvalidException as __EC2InstanceTypeInvalidException, EC2InstanceUnavailableException as __EC2InstanceUnavailableException, InvalidArgsException as __InvalidArgsException, SerialConsoleAccessDisabledException as __SerialConsoleAccessDisabledException, SerialConsoleSessionLimitExceededException as __SerialConsoleSessionLimitExceededException, SerialConsoleSessionUnavailableException as __SerialConsoleSessionUnavailableException, SerialConsoleSessionUnsupportedException as __SerialConsoleSessionUnsupportedException, ServiceException as __ServiceException, ThrottlingException as __ThrottlingException, } from "../models/errors";
37
37
  export var AuthException = [
38
38
  -3,
39
39
  n0,
@@ -18,5 +18,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
18
18
  export type { RuntimeExtension } from "./runtimeExtensions";
19
19
  export type { EC2InstanceConnectExtensionConfiguration } from "./extensionConfiguration";
20
20
  export * from "./commands";
21
- export * from "./models";
21
+ export * from "./models/errors";
22
+ export type * from "./models/models_0";
22
23
  export { EC2InstanceConnectServiceException } from "./models/EC2InstanceConnectServiceException";
@@ -0,0 +1,164 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
3
+ /**
4
+ * <p>Either your AWS credentials are not valid or you do not have access to the EC2 instance.</p>
5
+ * @public
6
+ */
7
+ export declare class AuthException extends __BaseException {
8
+ readonly name: "AuthException";
9
+ readonly $fault: "client";
10
+ Message?: string | undefined;
11
+ /**
12
+ * @internal
13
+ */
14
+ constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
15
+ }
16
+ /**
17
+ * <p>The specified instance was not found.</p>
18
+ * @public
19
+ */
20
+ export declare class EC2InstanceNotFoundException extends __BaseException {
21
+ readonly name: "EC2InstanceNotFoundException";
22
+ readonly $fault: "client";
23
+ Message?: string | undefined;
24
+ /**
25
+ * @internal
26
+ */
27
+ constructor(opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>);
28
+ }
29
+ /**
30
+ * <p>Unable to connect because the instance is not in a valid state.
31
+ * Connecting to a stopped or terminated instance is not supported. If the instance is stopped,
32
+ * start your instance, and try to connect again.</p>
33
+ * @public
34
+ */
35
+ export declare class EC2InstanceStateInvalidException extends __BaseException {
36
+ readonly name: "EC2InstanceStateInvalidException";
37
+ readonly $fault: "client";
38
+ Message?: string | undefined;
39
+ /**
40
+ * @internal
41
+ */
42
+ constructor(opts: __ExceptionOptionType<EC2InstanceStateInvalidException, __BaseException>);
43
+ }
44
+ /**
45
+ * <p>The instance type is not supported for connecting via the serial console. Only Nitro
46
+ * instance types are currently supported.</p>
47
+ * @public
48
+ */
49
+ export declare class EC2InstanceTypeInvalidException extends __BaseException {
50
+ readonly name: "EC2InstanceTypeInvalidException";
51
+ readonly $fault: "client";
52
+ Message?: string | undefined;
53
+ /**
54
+ * @internal
55
+ */
56
+ constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
57
+ }
58
+ /**
59
+ * <p>The instance is currently unavailable. Wait a few minutes and try again.</p>
60
+ * @public
61
+ */
62
+ export declare class EC2InstanceUnavailableException extends __BaseException {
63
+ readonly name: "EC2InstanceUnavailableException";
64
+ readonly $fault: "server";
65
+ Message?: string | undefined;
66
+ /**
67
+ * @internal
68
+ */
69
+ constructor(opts: __ExceptionOptionType<EC2InstanceUnavailableException, __BaseException>);
70
+ }
71
+ /**
72
+ * <p>One of the parameters is not valid.</p>
73
+ * @public
74
+ */
75
+ export declare class InvalidArgsException extends __BaseException {
76
+ readonly name: "InvalidArgsException";
77
+ readonly $fault: "client";
78
+ Message?: string | undefined;
79
+ /**
80
+ * @internal
81
+ */
82
+ constructor(opts: __ExceptionOptionType<InvalidArgsException, __BaseException>);
83
+ }
84
+ /**
85
+ * <p>Your account is not authorized to use the EC2 Serial Console. To authorize your
86
+ * account, run the EnableSerialConsoleAccess API. For more information, see
87
+ * <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
+ * @public
89
+ */
90
+ export declare class SerialConsoleAccessDisabledException extends __BaseException {
91
+ readonly name: "SerialConsoleAccessDisabledException";
92
+ readonly $fault: "client";
93
+ Message?: string | undefined;
94
+ /**
95
+ * @internal
96
+ */
97
+ constructor(opts: __ExceptionOptionType<SerialConsoleAccessDisabledException, __BaseException>);
98
+ }
99
+ /**
100
+ * <p>The instance currently has 1 active serial console session. Only 1 session is supported at a time.</p>
101
+ * @public
102
+ */
103
+ export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
104
+ readonly name: "SerialConsoleSessionLimitExceededException";
105
+ readonly $fault: "client";
106
+ Message?: string | undefined;
107
+ /**
108
+ * @internal
109
+ */
110
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionLimitExceededException, __BaseException>);
111
+ }
112
+ /**
113
+ * <p>Unable to start a serial console session. Please try again.</p>
114
+ * @public
115
+ */
116
+ export declare class SerialConsoleSessionUnavailableException extends __BaseException {
117
+ readonly name: "SerialConsoleSessionUnavailableException";
118
+ readonly $fault: "server";
119
+ Message?: string | undefined;
120
+ /**
121
+ * @internal
122
+ */
123
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnavailableException, __BaseException>);
124
+ }
125
+ /**
126
+ * <p>Your instance's BIOS version is unsupported for serial console connection. Reboot your instance to update its BIOS, and then try again to connect.</p>
127
+ * @public
128
+ */
129
+ export declare class SerialConsoleSessionUnsupportedException extends __BaseException {
130
+ readonly name: "SerialConsoleSessionUnsupportedException";
131
+ readonly $fault: "client";
132
+ Message?: string | undefined;
133
+ /**
134
+ * @internal
135
+ */
136
+ constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnsupportedException, __BaseException>);
137
+ }
138
+ /**
139
+ * <p>The service encountered an error. Follow the instructions in the error message and try again.</p>
140
+ * @public
141
+ */
142
+ export declare class ServiceException extends __BaseException {
143
+ readonly name: "ServiceException";
144
+ readonly $fault: "server";
145
+ Message?: string | undefined;
146
+ /**
147
+ * @internal
148
+ */
149
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
150
+ }
151
+ /**
152
+ * <p>The requests were made too frequently and have been throttled. Wait a while and try again.
153
+ * To increase the limit on your request frequency, contact AWS Support.</p>
154
+ * @public
155
+ */
156
+ export declare class ThrottlingException extends __BaseException {
157
+ readonly name: "ThrottlingException";
158
+ readonly $fault: "client";
159
+ Message?: string | undefined;
160
+ /**
161
+ * @internal
162
+ */
163
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
164
+ }
@@ -1,86 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
3
- /**
4
- * <p>Either your AWS credentials are not valid or you do not have access to the EC2 instance.</p>
5
- * @public
6
- */
7
- export declare class AuthException extends __BaseException {
8
- readonly name: "AuthException";
9
- readonly $fault: "client";
10
- Message?: string | undefined;
11
- /**
12
- * @internal
13
- */
14
- constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
15
- }
16
- /**
17
- * <p>The specified instance was not found.</p>
18
- * @public
19
- */
20
- export declare class EC2InstanceNotFoundException extends __BaseException {
21
- readonly name: "EC2InstanceNotFoundException";
22
- readonly $fault: "client";
23
- Message?: string | undefined;
24
- /**
25
- * @internal
26
- */
27
- constructor(opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>);
28
- }
29
- /**
30
- * <p>Unable to connect because the instance is not in a valid state.
31
- * Connecting to a stopped or terminated instance is not supported. If the instance is stopped,
32
- * start your instance, and try to connect again.</p>
33
- * @public
34
- */
35
- export declare class EC2InstanceStateInvalidException extends __BaseException {
36
- readonly name: "EC2InstanceStateInvalidException";
37
- readonly $fault: "client";
38
- Message?: string | undefined;
39
- /**
40
- * @internal
41
- */
42
- constructor(opts: __ExceptionOptionType<EC2InstanceStateInvalidException, __BaseException>);
43
- }
44
- /**
45
- * <p>The instance type is not supported for connecting via the serial console. Only Nitro
46
- * instance types are currently supported.</p>
47
- * @public
48
- */
49
- export declare class EC2InstanceTypeInvalidException extends __BaseException {
50
- readonly name: "EC2InstanceTypeInvalidException";
51
- readonly $fault: "client";
52
- Message?: string | undefined;
53
- /**
54
- * @internal
55
- */
56
- constructor(opts: __ExceptionOptionType<EC2InstanceTypeInvalidException, __BaseException>);
57
- }
58
- /**
59
- * <p>The instance is currently unavailable. Wait a few minutes and try again.</p>
60
- * @public
61
- */
62
- export declare class EC2InstanceUnavailableException extends __BaseException {
63
- readonly name: "EC2InstanceUnavailableException";
64
- readonly $fault: "server";
65
- Message?: string | undefined;
66
- /**
67
- * @internal
68
- */
69
- constructor(opts: __ExceptionOptionType<EC2InstanceUnavailableException, __BaseException>);
70
- }
71
- /**
72
- * <p>One of the parameters is not valid.</p>
73
- * @public
74
- */
75
- export declare class InvalidArgsException extends __BaseException {
76
- readonly name: "InvalidArgsException";
77
- readonly $fault: "client";
78
- Message?: string | undefined;
79
- /**
80
- * @internal
81
- */
82
- constructor(opts: __ExceptionOptionType<InvalidArgsException, __BaseException>);
83
- }
84
1
  /**
85
2
  * @public
86
3
  */
@@ -119,87 +36,6 @@ export interface SendSerialConsoleSSHPublicKeyResponse {
119
36
  */
120
37
  Success?: boolean | undefined;
121
38
  }
122
- /**
123
- * <p>Your account is not authorized to use the EC2 Serial Console. To authorize your
124
- * account, run the EnableSerialConsoleAccess API. For more information, see
125
- * <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_EnableSerialConsoleAccess.html">EnableSerialConsoleAccess</a> in the <i>Amazon EC2 API Reference</i>.</p>
126
- * @public
127
- */
128
- export declare class SerialConsoleAccessDisabledException extends __BaseException {
129
- readonly name: "SerialConsoleAccessDisabledException";
130
- readonly $fault: "client";
131
- Message?: string | undefined;
132
- /**
133
- * @internal
134
- */
135
- constructor(opts: __ExceptionOptionType<SerialConsoleAccessDisabledException, __BaseException>);
136
- }
137
- /**
138
- * <p>The instance currently has 1 active serial console session. Only 1 session is supported at a time.</p>
139
- * @public
140
- */
141
- export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
142
- readonly name: "SerialConsoleSessionLimitExceededException";
143
- readonly $fault: "client";
144
- Message?: string | undefined;
145
- /**
146
- * @internal
147
- */
148
- constructor(opts: __ExceptionOptionType<SerialConsoleSessionLimitExceededException, __BaseException>);
149
- }
150
- /**
151
- * <p>Unable to start a serial console session. Please try again.</p>
152
- * @public
153
- */
154
- export declare class SerialConsoleSessionUnavailableException extends __BaseException {
155
- readonly name: "SerialConsoleSessionUnavailableException";
156
- readonly $fault: "server";
157
- Message?: string | undefined;
158
- /**
159
- * @internal
160
- */
161
- constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnavailableException, __BaseException>);
162
- }
163
- /**
164
- * <p>Your instance's BIOS version is unsupported for serial console connection. Reboot your instance to update its BIOS, and then try again to connect.</p>
165
- * @public
166
- */
167
- export declare class SerialConsoleSessionUnsupportedException extends __BaseException {
168
- readonly name: "SerialConsoleSessionUnsupportedException";
169
- readonly $fault: "client";
170
- Message?: string | undefined;
171
- /**
172
- * @internal
173
- */
174
- constructor(opts: __ExceptionOptionType<SerialConsoleSessionUnsupportedException, __BaseException>);
175
- }
176
- /**
177
- * <p>The service encountered an error. Follow the instructions in the error message and try again.</p>
178
- * @public
179
- */
180
- export declare class ServiceException extends __BaseException {
181
- readonly name: "ServiceException";
182
- readonly $fault: "server";
183
- Message?: string | undefined;
184
- /**
185
- * @internal
186
- */
187
- constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
188
- }
189
- /**
190
- * <p>The requests were made too frequently and have been throttled. Wait a while and try again.
191
- * To increase the limit on your request frequency, contact AWS Support.</p>
192
- * @public
193
- */
194
- export declare class ThrottlingException extends __BaseException {
195
- readonly name: "ThrottlingException";
196
- readonly $fault: "client";
197
- Message?: string | undefined;
198
- /**
199
- * @internal
200
- */
201
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
202
- }
203
39
  /**
204
40
  * @public
205
41
  */
@@ -4,5 +4,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { EC2InstanceConnectExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
8
9
  export { EC2InstanceConnectServiceException } from "./models/EC2InstanceConnectServiceException";
@@ -0,0 +1,115 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
3
+ export declare class AuthException extends __BaseException {
4
+ readonly name: "AuthException";
5
+ readonly $fault: "client";
6
+ Message?: string | undefined;
7
+ constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
8
+ }
9
+ export declare class EC2InstanceNotFoundException extends __BaseException {
10
+ readonly name: "EC2InstanceNotFoundException";
11
+ readonly $fault: "client";
12
+ Message?: string | undefined;
13
+ constructor(
14
+ opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>
15
+ );
16
+ }
17
+ export declare class EC2InstanceStateInvalidException extends __BaseException {
18
+ readonly name: "EC2InstanceStateInvalidException";
19
+ readonly $fault: "client";
20
+ Message?: string | undefined;
21
+ constructor(
22
+ opts: __ExceptionOptionType<
23
+ EC2InstanceStateInvalidException,
24
+ __BaseException
25
+ >
26
+ );
27
+ }
28
+ export declare class EC2InstanceTypeInvalidException extends __BaseException {
29
+ readonly name: "EC2InstanceTypeInvalidException";
30
+ readonly $fault: "client";
31
+ Message?: string | undefined;
32
+ constructor(
33
+ opts: __ExceptionOptionType<
34
+ EC2InstanceTypeInvalidException,
35
+ __BaseException
36
+ >
37
+ );
38
+ }
39
+ export declare class EC2InstanceUnavailableException extends __BaseException {
40
+ readonly name: "EC2InstanceUnavailableException";
41
+ readonly $fault: "server";
42
+ Message?: string | undefined;
43
+ constructor(
44
+ opts: __ExceptionOptionType<
45
+ EC2InstanceUnavailableException,
46
+ __BaseException
47
+ >
48
+ );
49
+ }
50
+ export declare class InvalidArgsException extends __BaseException {
51
+ readonly name: "InvalidArgsException";
52
+ readonly $fault: "client";
53
+ Message?: string | undefined;
54
+ constructor(
55
+ opts: __ExceptionOptionType<InvalidArgsException, __BaseException>
56
+ );
57
+ }
58
+ export declare class SerialConsoleAccessDisabledException extends __BaseException {
59
+ readonly name: "SerialConsoleAccessDisabledException";
60
+ readonly $fault: "client";
61
+ Message?: string | undefined;
62
+ constructor(
63
+ opts: __ExceptionOptionType<
64
+ SerialConsoleAccessDisabledException,
65
+ __BaseException
66
+ >
67
+ );
68
+ }
69
+ export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
70
+ readonly name: "SerialConsoleSessionLimitExceededException";
71
+ readonly $fault: "client";
72
+ Message?: string | undefined;
73
+ constructor(
74
+ opts: __ExceptionOptionType<
75
+ SerialConsoleSessionLimitExceededException,
76
+ __BaseException
77
+ >
78
+ );
79
+ }
80
+ export declare class SerialConsoleSessionUnavailableException extends __BaseException {
81
+ readonly name: "SerialConsoleSessionUnavailableException";
82
+ readonly $fault: "server";
83
+ Message?: string | undefined;
84
+ constructor(
85
+ opts: __ExceptionOptionType<
86
+ SerialConsoleSessionUnavailableException,
87
+ __BaseException
88
+ >
89
+ );
90
+ }
91
+ export declare class SerialConsoleSessionUnsupportedException extends __BaseException {
92
+ readonly name: "SerialConsoleSessionUnsupportedException";
93
+ readonly $fault: "client";
94
+ Message?: string | undefined;
95
+ constructor(
96
+ opts: __ExceptionOptionType<
97
+ SerialConsoleSessionUnsupportedException,
98
+ __BaseException
99
+ >
100
+ );
101
+ }
102
+ export declare class ServiceException extends __BaseException {
103
+ readonly name: "ServiceException";
104
+ readonly $fault: "server";
105
+ Message?: string | undefined;
106
+ constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
107
+ }
108
+ export declare class ThrottlingException extends __BaseException {
109
+ readonly name: "ThrottlingException";
110
+ readonly $fault: "client";
111
+ Message?: string | undefined;
112
+ constructor(
113
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
114
+ );
115
+ }
@@ -1,60 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { EC2InstanceConnectServiceException as __BaseException } from "./EC2InstanceConnectServiceException";
3
- export declare class AuthException extends __BaseException {
4
- readonly name: "AuthException";
5
- readonly $fault: "client";
6
- Message?: string | undefined;
7
- constructor(opts: __ExceptionOptionType<AuthException, __BaseException>);
8
- }
9
- export declare class EC2InstanceNotFoundException extends __BaseException {
10
- readonly name: "EC2InstanceNotFoundException";
11
- readonly $fault: "client";
12
- Message?: string | undefined;
13
- constructor(
14
- opts: __ExceptionOptionType<EC2InstanceNotFoundException, __BaseException>
15
- );
16
- }
17
- export declare class EC2InstanceStateInvalidException extends __BaseException {
18
- readonly name: "EC2InstanceStateInvalidException";
19
- readonly $fault: "client";
20
- Message?: string | undefined;
21
- constructor(
22
- opts: __ExceptionOptionType<
23
- EC2InstanceStateInvalidException,
24
- __BaseException
25
- >
26
- );
27
- }
28
- export declare class EC2InstanceTypeInvalidException extends __BaseException {
29
- readonly name: "EC2InstanceTypeInvalidException";
30
- readonly $fault: "client";
31
- Message?: string | undefined;
32
- constructor(
33
- opts: __ExceptionOptionType<
34
- EC2InstanceTypeInvalidException,
35
- __BaseException
36
- >
37
- );
38
- }
39
- export declare class EC2InstanceUnavailableException extends __BaseException {
40
- readonly name: "EC2InstanceUnavailableException";
41
- readonly $fault: "server";
42
- Message?: string | undefined;
43
- constructor(
44
- opts: __ExceptionOptionType<
45
- EC2InstanceUnavailableException,
46
- __BaseException
47
- >
48
- );
49
- }
50
- export declare class InvalidArgsException extends __BaseException {
51
- readonly name: "InvalidArgsException";
52
- readonly $fault: "client";
53
- Message?: string | undefined;
54
- constructor(
55
- opts: __ExceptionOptionType<InvalidArgsException, __BaseException>
56
- );
57
- }
58
1
  export interface SendSerialConsoleSSHPublicKeyRequest {
59
2
  InstanceId: string | undefined;
60
3
  SerialPort?: number | undefined;
@@ -64,64 +7,6 @@ export interface SendSerialConsoleSSHPublicKeyResponse {
64
7
  RequestId?: string | undefined;
65
8
  Success?: boolean | undefined;
66
9
  }
67
- export declare class SerialConsoleAccessDisabledException extends __BaseException {
68
- readonly name: "SerialConsoleAccessDisabledException";
69
- readonly $fault: "client";
70
- Message?: string | undefined;
71
- constructor(
72
- opts: __ExceptionOptionType<
73
- SerialConsoleAccessDisabledException,
74
- __BaseException
75
- >
76
- );
77
- }
78
- export declare class SerialConsoleSessionLimitExceededException extends __BaseException {
79
- readonly name: "SerialConsoleSessionLimitExceededException";
80
- readonly $fault: "client";
81
- Message?: string | undefined;
82
- constructor(
83
- opts: __ExceptionOptionType<
84
- SerialConsoleSessionLimitExceededException,
85
- __BaseException
86
- >
87
- );
88
- }
89
- export declare class SerialConsoleSessionUnavailableException extends __BaseException {
90
- readonly name: "SerialConsoleSessionUnavailableException";
91
- readonly $fault: "server";
92
- Message?: string | undefined;
93
- constructor(
94
- opts: __ExceptionOptionType<
95
- SerialConsoleSessionUnavailableException,
96
- __BaseException
97
- >
98
- );
99
- }
100
- export declare class SerialConsoleSessionUnsupportedException extends __BaseException {
101
- readonly name: "SerialConsoleSessionUnsupportedException";
102
- readonly $fault: "client";
103
- Message?: string | undefined;
104
- constructor(
105
- opts: __ExceptionOptionType<
106
- SerialConsoleSessionUnsupportedException,
107
- __BaseException
108
- >
109
- );
110
- }
111
- export declare class ServiceException extends __BaseException {
112
- readonly name: "ServiceException";
113
- readonly $fault: "server";
114
- Message?: string | undefined;
115
- constructor(opts: __ExceptionOptionType<ServiceException, __BaseException>);
116
- }
117
- export declare class ThrottlingException extends __BaseException {
118
- readonly name: "ThrottlingException";
119
- readonly $fault: "client";
120
- Message?: string | undefined;
121
- constructor(
122
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
123
- );
124
- }
125
10
  export interface SendSSHPublicKeyRequest {
126
11
  InstanceId: string | undefined;
127
12
  InstanceOSUser: string | undefined;
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.934.0",
4
+ "version": "3.936.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-ec2-instance-connect",
@@ -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.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
25
- "@aws-sdk/middleware-host-header": "3.930.0",
26
- "@aws-sdk/middleware-logger": "3.930.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
29
- "@aws-sdk/region-config-resolver": "3.930.0",
30
- "@aws-sdk/types": "3.930.0",
31
- "@aws-sdk/util-endpoints": "3.930.0",
32
- "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.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";