@aws-sdk/client-ec2-instance-connect 3.927.0 → 3.929.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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_1Protocol({
31
+ defaultNamespace: "com.amazonaws.ec2instanceconnect",
32
+ serviceTarget: "AWSEC2InstanceConnectService",
33
+ awsQueryCompatible: false,
34
+ }),
28
35
  serviceId: config?.serviceId ?? "EC2 Instance Connect",
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class EC2InstanceConnectClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SendSSHPublicKeyCommand, se_SendSSHPublicKeyCommand } from "../protocols/Aws_json1_1";
4
+ import { SendSSHPublicKey } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SendSSHPublicKeyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSEC2InstanceConnectService", "SendSSHPublicKey", {})
17
13
  .n("EC2InstanceConnectClient", "SendSSHPublicKeyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SendSSHPublicKeyCommand)
20
- .de(de_SendSSHPublicKeyCommand)
14
+ .sc(SendSSHPublicKey)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_SendSerialConsoleSSHPublicKeyCommand, se_SendSerialConsoleSSHPublicKeyCommand, } from "../protocols/Aws_json1_1";
4
+ import { SendSerialConsoleSSHPublicKey } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class SendSerialConsoleSSHPublicKeyCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AWSEC2InstanceConnectService", "SendSerialConsoleSSHPublicKey", {})
17
13
  .n("EC2InstanceConnectClient", "SendSerialConsoleSSHPublicKeyCommand")
18
- .f(void 0, void 0)
19
- .ser(se_SendSerialConsoleSSHPublicKeyCommand)
20
- .de(de_SendSerialConsoleSSHPublicKeyCommand)
14
+ .sc(SendSerialConsoleSSHPublicKey)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.ec2instanceconnect",
29
+ serviceTarget: "AWSEC2InstanceConnectService",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "EC2 Instance Connect",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -0,0 +1,235 @@
1
+ const _AE = "AuthException";
2
+ const _AZ = "AvailabilityZone";
3
+ const _ECINFE = "EC2InstanceNotFoundException";
4
+ const _ECISIE = "EC2InstanceStateInvalidException";
5
+ const _ECITIE = "EC2InstanceTypeInvalidException";
6
+ const _ECIUE = "EC2InstanceUnavailableException";
7
+ const _IAE = "InvalidArgsException";
8
+ const _II = "InstanceId";
9
+ const _IOSU = "InstanceOSUser";
10
+ const _M = "Message";
11
+ const _RI = "RequestId";
12
+ const _S = "Success";
13
+ const _SCADE = "SerialConsoleAccessDisabledException";
14
+ const _SCSLEE = "SerialConsoleSessionLimitExceededException";
15
+ const _SCSUE = "SerialConsoleSessionUnavailableException";
16
+ const _SCSUEe = "SerialConsoleSessionUnsupportedException";
17
+ const _SE = "ServiceException";
18
+ const _SP = "SerialPort";
19
+ const _SSCSSHPK = "SendSerialConsoleSSHPublicKey";
20
+ const _SSCSSHPKR = "SendSerialConsoleSSHPublicKeyRequest";
21
+ const _SSCSSHPKRe = "SendSerialConsoleSSHPublicKeyResponse";
22
+ const _SSHPK = "SSHPublicKey";
23
+ const _SSSHPK = "SendSSHPublicKey";
24
+ const _SSSHPKR = "SendSSHPublicKeyRequest";
25
+ const _SSSHPKRe = "SendSSHPublicKeyResponse";
26
+ const _TE = "ThrottlingException";
27
+ const _aQE = "awsQueryError";
28
+ const _c = "client";
29
+ const _e = "error";
30
+ const _hE = "httpError";
31
+ const _s = "server";
32
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.ec2instanceconnect";
33
+ const n0 = "com.amazonaws.ec2instanceconnect";
34
+ import { TypeRegistry } from "@smithy/core/schema";
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";
37
+ export var AuthException = [
38
+ -3,
39
+ n0,
40
+ _AE,
41
+ {
42
+ [_e]: _c,
43
+ [_hE]: 403,
44
+ [_aQE]: [`Forbidden`, 403],
45
+ },
46
+ [_M],
47
+ [0],
48
+ ];
49
+ TypeRegistry.for(n0).registerError(AuthException, __AuthException);
50
+ export var EC2InstanceNotFoundException = [
51
+ -3,
52
+ n0,
53
+ _ECINFE,
54
+ {
55
+ [_e]: _c,
56
+ [_hE]: 404,
57
+ [_aQE]: [`EC2InstanceNotFound`, 404],
58
+ },
59
+ [_M],
60
+ [0],
61
+ ];
62
+ TypeRegistry.for(n0).registerError(EC2InstanceNotFoundException, __EC2InstanceNotFoundException);
63
+ export var EC2InstanceStateInvalidException = [
64
+ -3,
65
+ n0,
66
+ _ECISIE,
67
+ {
68
+ [_e]: _c,
69
+ [_hE]: 400,
70
+ [_aQE]: [`EC2InstanceStateInvalid`, 400],
71
+ },
72
+ [_M],
73
+ [0],
74
+ ];
75
+ TypeRegistry.for(n0).registerError(EC2InstanceStateInvalidException, __EC2InstanceStateInvalidException);
76
+ export var EC2InstanceTypeInvalidException = [
77
+ -3,
78
+ n0,
79
+ _ECITIE,
80
+ {
81
+ [_e]: _c,
82
+ [_hE]: 400,
83
+ [_aQE]: [`EC2InstanceTypeInvalid`, 400],
84
+ },
85
+ [_M],
86
+ [0],
87
+ ];
88
+ TypeRegistry.for(n0).registerError(EC2InstanceTypeInvalidException, __EC2InstanceTypeInvalidException);
89
+ export var EC2InstanceUnavailableException = [
90
+ -3,
91
+ n0,
92
+ _ECIUE,
93
+ {
94
+ [_e]: _s,
95
+ [_hE]: 503,
96
+ [_aQE]: [`EC2InstanceUnavailable`, 503],
97
+ },
98
+ [_M],
99
+ [0],
100
+ ];
101
+ TypeRegistry.for(n0).registerError(EC2InstanceUnavailableException, __EC2InstanceUnavailableException);
102
+ export var InvalidArgsException = [
103
+ -3,
104
+ n0,
105
+ _IAE,
106
+ {
107
+ [_e]: _c,
108
+ [_hE]: 400,
109
+ [_aQE]: [`InvalidArguments`, 400],
110
+ },
111
+ [_M],
112
+ [0],
113
+ ];
114
+ TypeRegistry.for(n0).registerError(InvalidArgsException, __InvalidArgsException);
115
+ export var SendSerialConsoleSSHPublicKeyRequest = [
116
+ 3,
117
+ n0,
118
+ _SSCSSHPKR,
119
+ 0,
120
+ [_II, _SP, _SSHPK],
121
+ [0, 1, 0],
122
+ ];
123
+ export var SendSerialConsoleSSHPublicKeyResponse = [3, n0, _SSCSSHPKRe, 0, [_RI, _S], [0, 2]];
124
+ export var SendSSHPublicKeyRequest = [
125
+ 3,
126
+ n0,
127
+ _SSSHPKR,
128
+ 0,
129
+ [_II, _IOSU, _SSHPK, _AZ],
130
+ [0, 0, 0, 0],
131
+ ];
132
+ export var SendSSHPublicKeyResponse = [3, n0, _SSSHPKRe, 0, [_RI, _S], [0, 2]];
133
+ export var SerialConsoleAccessDisabledException = [
134
+ -3,
135
+ n0,
136
+ _SCADE,
137
+ {
138
+ [_e]: _c,
139
+ [_hE]: 403,
140
+ [_aQE]: [`SerialConsoleAccessDisabled`, 403],
141
+ },
142
+ [_M],
143
+ [0],
144
+ ];
145
+ TypeRegistry.for(n0).registerError(SerialConsoleAccessDisabledException, __SerialConsoleAccessDisabledException);
146
+ export var SerialConsoleSessionLimitExceededException = [
147
+ -3,
148
+ n0,
149
+ _SCSLEE,
150
+ {
151
+ [_e]: _c,
152
+ [_hE]: 400,
153
+ [_aQE]: [`SerialConsoleSessionLimitExceeded`, 400],
154
+ },
155
+ [_M],
156
+ [0],
157
+ ];
158
+ TypeRegistry.for(n0).registerError(SerialConsoleSessionLimitExceededException, __SerialConsoleSessionLimitExceededException);
159
+ export var SerialConsoleSessionUnavailableException = [
160
+ -3,
161
+ n0,
162
+ _SCSUE,
163
+ {
164
+ [_e]: _s,
165
+ [_hE]: 500,
166
+ [_aQE]: [`SerialConsoleSessionUnavailable`, 500],
167
+ },
168
+ [_M],
169
+ [0],
170
+ ];
171
+ TypeRegistry.for(n0).registerError(SerialConsoleSessionUnavailableException, __SerialConsoleSessionUnavailableException);
172
+ export var SerialConsoleSessionUnsupportedException = [
173
+ -3,
174
+ n0,
175
+ _SCSUEe,
176
+ {
177
+ [_e]: _c,
178
+ [_hE]: 400,
179
+ [_aQE]: [`SerialConsoleSessionUnsupported`, 400],
180
+ },
181
+ [_M],
182
+ [0],
183
+ ];
184
+ TypeRegistry.for(n0).registerError(SerialConsoleSessionUnsupportedException, __SerialConsoleSessionUnsupportedException);
185
+ export var ServiceException = [
186
+ -3,
187
+ n0,
188
+ _SE,
189
+ {
190
+ [_e]: _s,
191
+ [_hE]: 500,
192
+ [_aQE]: [`InternalServerError`, 500],
193
+ },
194
+ [_M],
195
+ [0],
196
+ ];
197
+ TypeRegistry.for(n0).registerError(ServiceException, __ServiceException);
198
+ export var ThrottlingException = [
199
+ -3,
200
+ n0,
201
+ _TE,
202
+ {
203
+ [_e]: _c,
204
+ [_hE]: 429,
205
+ [_aQE]: [`TooManyRequests`, 429],
206
+ },
207
+ [_M],
208
+ [0],
209
+ ];
210
+ TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
211
+ export var EC2InstanceConnectServiceException = [
212
+ -3,
213
+ _sm,
214
+ "EC2InstanceConnectServiceException",
215
+ 0,
216
+ [],
217
+ [],
218
+ ];
219
+ TypeRegistry.for(_sm).registerError(EC2InstanceConnectServiceException, __EC2InstanceConnectServiceException);
220
+ export var SendSerialConsoleSSHPublicKey = [
221
+ 9,
222
+ n0,
223
+ _SSCSSHPK,
224
+ 0,
225
+ () => SendSerialConsoleSSHPublicKeyRequest,
226
+ () => SendSerialConsoleSSHPublicKeyResponse,
227
+ ];
228
+ export var SendSSHPublicKey = [
229
+ 9,
230
+ n0,
231
+ _SSSHPK,
232
+ 0,
233
+ () => SendSSHPublicKeyRequest,
234
+ () => SendSSHPublicKeyResponse,
235
+ ];
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { SendSerialConsoleSSHPublicKeyCommandInput, SendSerialConsoleSSHPublicKeyCommandOutput } from "./commands/SendSerialConsoleSSHPublicKeyCommand";
11
11
  import { SendSSHPublicKeyCommandInput, SendSSHPublicKeyCommandOutput } from "./commands/SendSSHPublicKeyCommand";
@@ -143,6 +143,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
143
143
  * Optional extensions
144
144
  */
145
145
  extensions?: RuntimeExtension[];
146
+ /**
147
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
148
+ * may be overridden. A default will always be set by the client.
149
+ * Available options depend on the service's supported protocols and will not be validated by
150
+ * the client.
151
+ * @alpha
152
+ *
153
+ */
154
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
146
155
  /**
147
156
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
148
157
  */
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: EC2InstanceConnectClientConfig)
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").EC2InstanceConnectHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,20 @@
1
+ import { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var AuthException: StaticErrorSchema;
3
+ export declare var EC2InstanceNotFoundException: StaticErrorSchema;
4
+ export declare var EC2InstanceStateInvalidException: StaticErrorSchema;
5
+ export declare var EC2InstanceTypeInvalidException: StaticErrorSchema;
6
+ export declare var EC2InstanceUnavailableException: StaticErrorSchema;
7
+ export declare var InvalidArgsException: StaticErrorSchema;
8
+ export declare var SendSerialConsoleSSHPublicKeyRequest: StaticStructureSchema;
9
+ export declare var SendSerialConsoleSSHPublicKeyResponse: StaticStructureSchema;
10
+ export declare var SendSSHPublicKeyRequest: StaticStructureSchema;
11
+ export declare var SendSSHPublicKeyResponse: StaticStructureSchema;
12
+ export declare var SerialConsoleAccessDisabledException: StaticErrorSchema;
13
+ export declare var SerialConsoleSessionLimitExceededException: StaticErrorSchema;
14
+ export declare var SerialConsoleSessionUnavailableException: StaticErrorSchema;
15
+ export declare var SerialConsoleSessionUnsupportedException: StaticErrorSchema;
16
+ export declare var ServiceException: StaticErrorSchema;
17
+ export declare var ThrottlingException: StaticErrorSchema;
18
+ export declare var EC2InstanceConnectServiceException: StaticErrorSchema;
19
+ export declare var SendSerialConsoleSSHPublicKey: StaticOperationSchema;
20
+ export declare var SendSSHPublicKey: StaticOperationSchema;
@@ -30,10 +30,13 @@ import {
30
30
  BodyLengthCalculator as __BodyLengthCalculator,
31
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
32
  ChecksumConstructor as __ChecksumConstructor,
33
+ ClientProtocol,
33
34
  Decoder as __Decoder,
34
35
  Encoder as __Encoder,
35
36
  HashConstructor as __HashConstructor,
36
37
  HttpHandlerOptions as __HttpHandlerOptions,
38
+ HttpRequest,
39
+ HttpResponse,
37
40
  Logger as __Logger,
38
41
  Provider as __Provider,
39
42
  Provider,
@@ -90,6 +93,7 @@ export interface ClientDefaults
90
93
  retryMode?: string | __Provider<string>;
91
94
  logger?: __Logger;
92
95
  extensions?: RuntimeExtension[];
96
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
93
97
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
94
98
  }
95
99
  export type EC2InstanceConnectClientConfigType = Partial<
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  profile?: string;
41
41
  logger: import("@smithy/types").Logger;
42
42
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
+ protocol: import("@smithy/types").ClientProtocol<
44
+ import("@smithy/types").HttpRequest,
45
+ import("@smithy/types").HttpResponse
46
+ >;
43
47
  customUserAgent?: string | import("@smithy/types").UserAgent;
44
48
  userAgentAppId?:
45
49
  | string
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  profile?: string;
41
41
  logger: import("@smithy/types").Logger;
42
42
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
+ protocol: import("@smithy/types").ClientProtocol<
44
+ import("@smithy/types").HttpRequest,
45
+ import("@smithy/types").HttpResponse
46
+ >;
43
47
  customUserAgent?: string | import("@smithy/types").UserAgent;
44
48
  retryStrategy?:
45
49
  | import("@smithy/types").RetryStrategy
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
39
39
  retryMode: string | import("@smithy/types").Provider<string>;
40
40
  logger: import("@smithy/types").Logger;
41
41
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
+ protocol: import("@smithy/types").ClientProtocol<
43
+ import("@smithy/types").HttpRequest,
44
+ import("@smithy/types").HttpResponse
45
+ >;
42
46
  defaultsMode:
43
47
  | import("@smithy/smithy-client").DefaultsMode
44
48
  | import("@smithy/types").Provider<
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
16
16
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").EC2InstanceConnectHttpAuthSchemeProvider;
17
17
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
18
  logger: import("@smithy/types").Logger;
19
+ protocol: import("@smithy/types").ClientProtocol<
20
+ import("@smithy/types").HttpRequest,
21
+ import("@smithy/types").HttpResponse
22
+ >;
19
23
  serviceId: string;
20
24
  urlParser: import("@smithy/types").UrlParser;
21
25
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,24 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticOperationSchema,
4
+ StaticStructureSchema,
5
+ } from "@smithy/types";
6
+ export declare var AuthException: StaticErrorSchema;
7
+ export declare var EC2InstanceNotFoundException: StaticErrorSchema;
8
+ export declare var EC2InstanceStateInvalidException: StaticErrorSchema;
9
+ export declare var EC2InstanceTypeInvalidException: StaticErrorSchema;
10
+ export declare var EC2InstanceUnavailableException: StaticErrorSchema;
11
+ export declare var InvalidArgsException: StaticErrorSchema;
12
+ export declare var SendSerialConsoleSSHPublicKeyRequest: StaticStructureSchema;
13
+ export declare var SendSerialConsoleSSHPublicKeyResponse: StaticStructureSchema;
14
+ export declare var SendSSHPublicKeyRequest: StaticStructureSchema;
15
+ export declare var SendSSHPublicKeyResponse: StaticStructureSchema;
16
+ export declare var SerialConsoleAccessDisabledException: StaticErrorSchema;
17
+ export declare var SerialConsoleSessionLimitExceededException: StaticErrorSchema;
18
+ export declare var SerialConsoleSessionUnavailableException: StaticErrorSchema;
19
+ export declare var SerialConsoleSessionUnsupportedException: StaticErrorSchema;
20
+ export declare var ServiceException: StaticErrorSchema;
21
+ export declare var ThrottlingException: StaticErrorSchema;
22
+ export declare var EC2InstanceConnectServiceException: StaticErrorSchema;
23
+ export declare var SendSerialConsoleSSHPublicKey: StaticOperationSchema;
24
+ export declare var SendSSHPublicKey: StaticOperationSchema;
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.927.0",
4
+ "version": "3.929.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,17 +20,17 @@
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.927.0",
24
- "@aws-sdk/credential-provider-node": "3.927.0",
23
+ "@aws-sdk/core": "3.928.0",
24
+ "@aws-sdk/credential-provider-node": "3.929.0",
25
25
  "@aws-sdk/middleware-host-header": "3.922.0",
26
26
  "@aws-sdk/middleware-logger": "3.922.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.927.0",
28
+ "@aws-sdk/middleware-user-agent": "3.928.0",
29
29
  "@aws-sdk/region-config-resolver": "3.925.0",
30
30
  "@aws-sdk/types": "3.922.0",
31
31
  "@aws-sdk/util-endpoints": "3.922.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.927.0",
33
+ "@aws-sdk/util-user-agent-node": "3.928.0",
34
34
  "@smithy/config-resolver": "^4.4.2",
35
35
  "@smithy/core": "^3.17.2",
36
36
  "@smithy/fetch-http-handler": "^5.3.5",