@aws-sdk/client-sagemaker-runtime-http2 3.938.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.
Files changed (71) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +219 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +537 -0
  7. package/dist-cjs/runtimeConfig.browser.js +43 -0
  8. package/dist-cjs/runtimeConfig.js +60 -0
  9. package/dist-cjs/runtimeConfig.native.js +18 -0
  10. package/dist-cjs/runtimeConfig.shared.js +36 -0
  11. package/dist-es/SageMakerRuntimeHTTP2.js +9 -0
  12. package/dist-es/SageMakerRuntimeHTTP2Client.js +54 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/InvokeEndpointWithBidirectionalStreamCommand.js +22 -0
  16. package/dist-es/commands/index.js +1 -0
  17. package/dist-es/endpoint/EndpointParameters.js +13 -0
  18. package/dist-es/endpoint/endpointResolver.js +14 -0
  19. package/dist-es/endpoint/ruleset.js +4 -0
  20. package/dist-es/extensionConfiguration.js +1 -0
  21. package/dist-es/index.js +5 -0
  22. package/dist-es/models/SageMakerRuntimeHTTP2ServiceException.js +8 -0
  23. package/dist-es/models/errors.js +101 -0
  24. package/dist-es/models/models_0.js +1 -0
  25. package/dist-es/runtimeConfig.browser.js +38 -0
  26. package/dist-es/runtimeConfig.js +55 -0
  27. package/dist-es/runtimeConfig.native.js +14 -0
  28. package/dist-es/runtimeConfig.shared.js +32 -0
  29. package/dist-es/runtimeExtensions.js +9 -0
  30. package/dist-es/schemas/schemas_0.js +273 -0
  31. package/dist-types/SageMakerRuntimeHTTP2.d.ts +17 -0
  32. package/dist-types/SageMakerRuntimeHTTP2Client.d.ts +209 -0
  33. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  34. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  35. package/dist-types/commands/InvokeEndpointWithBidirectionalStreamCommand.d.ts +118 -0
  36. package/dist-types/commands/index.d.ts +1 -0
  37. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  38. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  39. package/dist-types/endpoint/ruleset.d.ts +2 -0
  40. package/dist-types/extensionConfiguration.d.ts +9 -0
  41. package/dist-types/index.d.ts +14 -0
  42. package/dist-types/models/SageMakerRuntimeHTTP2ServiceException.d.ts +14 -0
  43. package/dist-types/models/errors.d.ts +144 -0
  44. package/dist-types/models/models_0.d.ts +190 -0
  45. package/dist-types/runtimeConfig.browser.d.ts +53 -0
  46. package/dist-types/runtimeConfig.d.ts +53 -0
  47. package/dist-types/runtimeConfig.native.d.ts +52 -0
  48. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  49. package/dist-types/runtimeExtensions.d.ts +17 -0
  50. package/dist-types/schemas/schemas_0.d.ts +16 -0
  51. package/dist-types/ts3.4/SageMakerRuntimeHTTP2.d.ts +30 -0
  52. package/dist-types/ts3.4/SageMakerRuntimeHTTP2Client.d.ts +148 -0
  53. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  54. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  55. package/dist-types/ts3.4/commands/InvokeEndpointWithBidirectionalStreamCommand.d.ts +47 -0
  56. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  57. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  58. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  59. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  60. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  61. package/dist-types/ts3.4/index.d.ts +9 -0
  62. package/dist-types/ts3.4/models/SageMakerRuntimeHTTP2ServiceException.d.ts +9 -0
  63. package/dist-types/ts3.4/models/errors.d.ts +54 -0
  64. package/dist-types/ts3.4/models/models_0.d.ts +78 -0
  65. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
  66. package/dist-types/ts3.4/runtimeConfig.d.ts +95 -0
  67. package/dist-types/ts3.4/runtimeConfig.native.d.ts +104 -0
  68. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
  69. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  70. package/dist-types/ts3.4/schemas/schemas_0.d.ts +21 -0
  71. package/package.json +104 -0
@@ -0,0 +1,273 @@
1
+ const _B = "Body";
2
+ const _By = "Bytes";
3
+ const _CS = "CompletionState";
4
+ const _DT = "DataType";
5
+ const _EC = "ErrorCode";
6
+ const _EN = "EndpointName";
7
+ const _IEWBS = "InvokeEndpointWithBidirectionalStream";
8
+ const _IEWBSI = "InvokeEndpointWithBidirectionalStreamInput";
9
+ const _IEWBSO = "InvokeEndpointWithBidirectionalStreamOutput";
10
+ const _IPV = "InvokedProductionVariant";
11
+ const _ISE = "InternalServerError";
12
+ const _ISF = "InternalStreamFailure";
13
+ const _IVE = "InputValidationError";
14
+ const _LSA = "LogStreamArn";
15
+ const _M = "Message";
16
+ const _ME = "ModelError";
17
+ const _MIP = "ModelInvocationPath";
18
+ const _MQS = "ModelQueryString";
19
+ const _MSE = "ModelStreamError";
20
+ const _OM = "OriginalMessage";
21
+ const _OSC = "OriginalStatusCode";
22
+ const _P = "P";
23
+ const _PP = "PayloadPart";
24
+ const _RPP = "RequestPayloadPart";
25
+ const _RPPe = "ResponsePayloadPart";
26
+ const _RSE = "RequestStreamEvent";
27
+ const _RSEe = "ResponseStreamEvent";
28
+ const _SB = "SensitiveBlob";
29
+ const _SUE = "ServiceUnavailableError";
30
+ const _TV = "TargetVariant";
31
+ const _XAIPV = "X-Amzn-Invoked-Production-Variant";
32
+ const _XASMIP = "X-Amzn-SageMaker-Model-Invocation-Path";
33
+ const _XASMQS = "X-Amzn-SageMaker-Model-Query-String";
34
+ const _XASTV = "X-Amzn-SageMaker-Target-Variant";
35
+ const _c = "client";
36
+ const _e = "error";
37
+ const _eH = "eventHeader";
38
+ const _eP = "eventPayload";
39
+ const _h = "http";
40
+ const _hE = "httpError";
41
+ const _hH = "httpHeader";
42
+ const _s = "server";
43
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerruntimehttp2";
44
+ const _st = "streaming";
45
+ const n0 = "com.amazonaws.sagemakerruntimehttp2";
46
+ import { TypeRegistry } from "@smithy/core/schema";
47
+ import { InputValidationError as __InputValidationError, InternalServerError as __InternalServerError, InternalStreamFailure as __InternalStreamFailure, ModelError as __ModelError, ModelStreamError as __ModelStreamError, ServiceUnavailableError as __ServiceUnavailableError, } from "../models/errors";
48
+ import { SageMakerRuntimeHTTP2ServiceException as __SageMakerRuntimeHTTP2ServiceException } from "../models/SageMakerRuntimeHTTP2ServiceException";
49
+ export var SensitiveBlob = [0, n0, _SB, 8, 21];
50
+ export var InputValidationError = [
51
+ -3,
52
+ n0,
53
+ _IVE,
54
+ {
55
+ [_e]: _c,
56
+ [_hE]: 400,
57
+ },
58
+ [_M, _EC],
59
+ [0, 0],
60
+ ];
61
+ TypeRegistry.for(n0).registerError(InputValidationError, __InputValidationError);
62
+ export var InternalServerError = [
63
+ -3,
64
+ n0,
65
+ _ISE,
66
+ {
67
+ [_e]: _s,
68
+ [_hE]: 500,
69
+ },
70
+ [_M, _EC],
71
+ [0, 0],
72
+ ];
73
+ TypeRegistry.for(n0).registerError(InternalServerError, __InternalServerError);
74
+ export var InternalStreamFailure = [
75
+ -3,
76
+ n0,
77
+ _ISF,
78
+ {
79
+ [_e]: _s,
80
+ },
81
+ [_M],
82
+ [0],
83
+ ];
84
+ TypeRegistry.for(n0).registerError(InternalStreamFailure, __InternalStreamFailure);
85
+ export var InvokeEndpointWithBidirectionalStreamInput = [
86
+ 3,
87
+ n0,
88
+ _IEWBSI,
89
+ 0,
90
+ [_EN, _B, _TV, _MIP, _MQS],
91
+ [
92
+ [0, 1],
93
+ [() => RequestStreamEvent, 16],
94
+ [
95
+ 0,
96
+ {
97
+ [_hH]: _XASTV,
98
+ },
99
+ ],
100
+ [
101
+ 0,
102
+ {
103
+ [_hH]: _XASMIP,
104
+ },
105
+ ],
106
+ [
107
+ 0,
108
+ {
109
+ [_hH]: _XASMQS,
110
+ },
111
+ ],
112
+ ],
113
+ ];
114
+ export var InvokeEndpointWithBidirectionalStreamOutput = [
115
+ 3,
116
+ n0,
117
+ _IEWBSO,
118
+ 0,
119
+ [_B, _IPV],
120
+ [
121
+ [() => ResponseStreamEvent, 16],
122
+ [
123
+ 0,
124
+ {
125
+ [_hH]: _XAIPV,
126
+ },
127
+ ],
128
+ ],
129
+ ];
130
+ export var ModelError = [
131
+ -3,
132
+ n0,
133
+ _ME,
134
+ {
135
+ [_e]: _c,
136
+ [_hE]: 424,
137
+ },
138
+ [_M, _OSC, _OM, _LSA, _EC],
139
+ [0, 1, 0, 0, 0],
140
+ ];
141
+ TypeRegistry.for(n0).registerError(ModelError, __ModelError);
142
+ export var ModelStreamError = [
143
+ -3,
144
+ n0,
145
+ _MSE,
146
+ {
147
+ [_e]: _c,
148
+ },
149
+ [_M, _EC],
150
+ [0, 0],
151
+ ];
152
+ TypeRegistry.for(n0).registerError(ModelStreamError, __ModelStreamError);
153
+ export var RequestPayloadPart = [
154
+ 3,
155
+ n0,
156
+ _RPP,
157
+ 0,
158
+ [_By, _DT, _CS, _P],
159
+ [
160
+ [
161
+ () => SensitiveBlob,
162
+ {
163
+ [_eP]: 1,
164
+ },
165
+ ],
166
+ [
167
+ 0,
168
+ {
169
+ [_eH]: 1,
170
+ },
171
+ ],
172
+ [
173
+ 0,
174
+ {
175
+ [_eH]: 1,
176
+ },
177
+ ],
178
+ [
179
+ 0,
180
+ {
181
+ [_eH]: 1,
182
+ },
183
+ ],
184
+ ],
185
+ ];
186
+ export var ResponsePayloadPart = [
187
+ 3,
188
+ n0,
189
+ _RPPe,
190
+ 0,
191
+ [_By, _DT, _CS, _P],
192
+ [
193
+ [
194
+ () => SensitiveBlob,
195
+ {
196
+ [_eP]: 1,
197
+ },
198
+ ],
199
+ [
200
+ 0,
201
+ {
202
+ [_eH]: 1,
203
+ },
204
+ ],
205
+ [
206
+ 0,
207
+ {
208
+ [_eH]: 1,
209
+ },
210
+ ],
211
+ [
212
+ 0,
213
+ {
214
+ [_eH]: 1,
215
+ },
216
+ ],
217
+ ],
218
+ ];
219
+ export var ServiceUnavailableError = [
220
+ -3,
221
+ n0,
222
+ _SUE,
223
+ {
224
+ [_e]: _s,
225
+ [_hE]: 503,
226
+ },
227
+ [_M, _EC],
228
+ [0, 0],
229
+ ];
230
+ TypeRegistry.for(n0).registerError(ServiceUnavailableError, __ServiceUnavailableError);
231
+ export var SageMakerRuntimeHTTP2ServiceException = [
232
+ -3,
233
+ _sm,
234
+ "SageMakerRuntimeHTTP2ServiceException",
235
+ 0,
236
+ [],
237
+ [],
238
+ ];
239
+ TypeRegistry.for(_sm).registerError(SageMakerRuntimeHTTP2ServiceException, __SageMakerRuntimeHTTP2ServiceException);
240
+ export var RequestStreamEvent = [
241
+ 3,
242
+ n0,
243
+ _RSE,
244
+ {
245
+ [_st]: 1,
246
+ },
247
+ [_PP],
248
+ [[() => RequestPayloadPart, 0]],
249
+ ];
250
+ export var ResponseStreamEvent = [
251
+ 3,
252
+ n0,
253
+ _RSEe,
254
+ {
255
+ [_st]: 1,
256
+ },
257
+ [_PP, _MSE, _ISF],
258
+ [
259
+ [() => ResponsePayloadPart, 0],
260
+ [() => ModelStreamError, 0],
261
+ [() => InternalStreamFailure, 0],
262
+ ],
263
+ ];
264
+ export var InvokeEndpointWithBidirectionalStream = [
265
+ 9,
266
+ n0,
267
+ _IEWBS,
268
+ {
269
+ [_h]: ["POST", "/endpoints/{EndpointName}/invocations-bidirectional-stream", 200],
270
+ },
271
+ () => InvokeEndpointWithBidirectionalStreamInput,
272
+ () => InvokeEndpointWithBidirectionalStreamOutput,
273
+ ];
@@ -0,0 +1,17 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import { InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput } from "./commands/InvokeEndpointWithBidirectionalStreamCommand";
3
+ import { SageMakerRuntimeHTTP2Client } from "./SageMakerRuntimeHTTP2Client";
4
+ export interface SageMakerRuntimeHTTP2 {
5
+ /**
6
+ * @see {@link InvokeEndpointWithBidirectionalStreamCommand}
7
+ */
8
+ invokeEndpointWithBidirectionalStream(args: InvokeEndpointWithBidirectionalStreamCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointWithBidirectionalStreamCommandOutput>;
9
+ invokeEndpointWithBidirectionalStream(args: InvokeEndpointWithBidirectionalStreamCommandInput, cb: (err: any, data?: InvokeEndpointWithBidirectionalStreamCommandOutput) => void): void;
10
+ invokeEndpointWithBidirectionalStream(args: InvokeEndpointWithBidirectionalStreamCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointWithBidirectionalStreamCommandOutput) => void): void;
11
+ }
12
+ /**
13
+ * <p> The Amazon SageMaker AI runtime HTTP/2 API. </p>
14
+ * @public
15
+ */
16
+ export declare class SageMakerRuntimeHTTP2 extends SageMakerRuntimeHTTP2Client implements SageMakerRuntimeHTTP2 {
17
+ }
@@ -0,0 +1,209 @@
1
+ import { EventStreamInputConfig, EventStreamResolvedConfig } from "@aws-sdk/middleware-eventstream";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
4
+ import { EventStreamPayloadHandlerProvider as __EventStreamPayloadHandlerProvider } from "@aws-sdk/types";
5
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
6
+ import { EventStreamSerdeInputConfig, EventStreamSerdeResolvedConfig } from "@smithy/eventstream-serde-config-resolver";
7
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
8
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
9
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
10
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
11
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, 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";
12
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
13
+ import { InvokeEndpointWithBidirectionalStreamCommandInput, InvokeEndpointWithBidirectionalStreamCommandOutput } from "./commands/InvokeEndpointWithBidirectionalStreamCommand";
14
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
15
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
16
+ export { __Client };
17
+ /**
18
+ * @public
19
+ */
20
+ export type ServiceInputTypes = InvokeEndpointWithBidirectionalStreamCommandInput;
21
+ /**
22
+ * @public
23
+ */
24
+ export type ServiceOutputTypes = InvokeEndpointWithBidirectionalStreamCommandOutput;
25
+ /**
26
+ * @public
27
+ */
28
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
29
+ /**
30
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
31
+ */
32
+ requestHandler?: __HttpHandlerUserInput;
33
+ /**
34
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
35
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
36
+ * @internal
37
+ */
38
+ sha256?: __ChecksumConstructor | __HashConstructor;
39
+ /**
40
+ * The function that will be used to convert strings into HTTP endpoints.
41
+ * @internal
42
+ */
43
+ urlParser?: __UrlParser;
44
+ /**
45
+ * A function that can calculate the length of a request body.
46
+ * @internal
47
+ */
48
+ bodyLengthChecker?: __BodyLengthCalculator;
49
+ /**
50
+ * A function that converts a stream into an array of bytes.
51
+ * @internal
52
+ */
53
+ streamCollector?: __StreamCollector;
54
+ /**
55
+ * The function that will be used to convert a base64-encoded string to a byte array.
56
+ * @internal
57
+ */
58
+ base64Decoder?: __Decoder;
59
+ /**
60
+ * The function that will be used to convert binary data to a base64-encoded string.
61
+ * @internal
62
+ */
63
+ base64Encoder?: __Encoder;
64
+ /**
65
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
66
+ * @internal
67
+ */
68
+ utf8Decoder?: __Decoder;
69
+ /**
70
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
71
+ * @internal
72
+ */
73
+ utf8Encoder?: __Encoder;
74
+ /**
75
+ * The runtime environment.
76
+ * @internal
77
+ */
78
+ runtime?: string;
79
+ /**
80
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
81
+ * trait of an operation.
82
+ */
83
+ disableHostPrefix?: boolean;
84
+ /**
85
+ * Unique service identifier.
86
+ * @internal
87
+ */
88
+ serviceId?: string;
89
+ /**
90
+ * Enables IPv6/IPv4 dualstack endpoint.
91
+ */
92
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
93
+ /**
94
+ * Enables FIPS compatible endpoints.
95
+ */
96
+ useFipsEndpoint?: boolean | __Provider<boolean>;
97
+ /**
98
+ * The AWS region to which this client will send requests
99
+ */
100
+ region?: string | __Provider<string>;
101
+ /**
102
+ * Setting a client profile is similar to setting a value for the
103
+ * AWS_PROFILE environment variable. Setting a profile on a client
104
+ * in code only affects the single client instance, unlike AWS_PROFILE.
105
+ *
106
+ * When set, and only for environments where an AWS configuration
107
+ * file exists, fields configurable by this file will be retrieved
108
+ * from the specified profile within that file.
109
+ * Conflicting code configuration and environment variables will
110
+ * still have higher priority.
111
+ *
112
+ * For client credential resolution that involves checking the AWS
113
+ * configuration file, the client's profile (this value) will be
114
+ * used unless a different profile is set in the credential
115
+ * provider options.
116
+ *
117
+ */
118
+ profile?: string;
119
+ /**
120
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
121
+ * @internal
122
+ */
123
+ defaultUserAgentProvider?: Provider<__UserAgent>;
124
+ /**
125
+ * Default credentials provider; Not available in browser runtime.
126
+ * @deprecated
127
+ * @internal
128
+ */
129
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
130
+ /**
131
+ * Value for how many times a request will be made at most in case of retry.
132
+ */
133
+ maxAttempts?: number | __Provider<number>;
134
+ /**
135
+ * Specifies which retry algorithm to use.
136
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
137
+ *
138
+ */
139
+ retryMode?: string | __Provider<string>;
140
+ /**
141
+ * Optional logger for logging debug/info/warn/error.
142
+ */
143
+ logger?: __Logger;
144
+ /**
145
+ * Optional extensions
146
+ */
147
+ extensions?: RuntimeExtension[];
148
+ /**
149
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
150
+ * may be overridden. A default will always be set by the client.
151
+ * Available options depend on the service's supported protocols and will not be validated by
152
+ * the client.
153
+ * @alpha
154
+ *
155
+ */
156
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
157
+ /**
158
+ * The function that provides necessary utilities for generating and parsing event stream
159
+ */
160
+ eventStreamSerdeProvider?: __EventStreamSerdeProvider;
161
+ /**
162
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
163
+ */
164
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
165
+ /**
166
+ * The function that provides necessary utilities for handling request event stream.
167
+ * @internal
168
+ */
169
+ eventStreamPayloadHandlerProvider?: __EventStreamPayloadHandlerProvider;
170
+ }
171
+ /**
172
+ * @public
173
+ */
174
+ export type SageMakerRuntimeHTTP2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & EventStreamSerdeInputConfig & HttpAuthSchemeInputConfig & EventStreamInputConfig & ClientInputEndpointParameters;
175
+ /**
176
+ * @public
177
+ *
178
+ * The configuration interface of SageMakerRuntimeHTTP2Client class constructor that set the region, credentials and other options.
179
+ */
180
+ export interface SageMakerRuntimeHTTP2ClientConfig extends SageMakerRuntimeHTTP2ClientConfigType {
181
+ }
182
+ /**
183
+ * @public
184
+ */
185
+ export type SageMakerRuntimeHTTP2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & EventStreamSerdeResolvedConfig & HttpAuthSchemeResolvedConfig & EventStreamResolvedConfig & ClientResolvedEndpointParameters;
186
+ /**
187
+ * @public
188
+ *
189
+ * The resolved configuration interface of SageMakerRuntimeHTTP2Client class. This is resolved and normalized from the {@link SageMakerRuntimeHTTP2ClientConfig | constructor configuration interface}.
190
+ */
191
+ export interface SageMakerRuntimeHTTP2ClientResolvedConfig extends SageMakerRuntimeHTTP2ClientResolvedConfigType {
192
+ }
193
+ /**
194
+ * <p> The Amazon SageMaker AI runtime HTTP/2 API. </p>
195
+ * @public
196
+ */
197
+ export declare class SageMakerRuntimeHTTP2Client extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SageMakerRuntimeHTTP2ClientResolvedConfig> {
198
+ /**
199
+ * The resolved configuration of SageMakerRuntimeHTTP2Client class. This is resolved and normalized from the {@link SageMakerRuntimeHTTP2ClientConfig | constructor configuration interface}.
200
+ */
201
+ readonly config: SageMakerRuntimeHTTP2ClientResolvedConfig;
202
+ constructor(...[configuration]: __CheckOptionalClientConfig<SageMakerRuntimeHTTP2ClientConfig>);
203
+ /**
204
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
205
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
206
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
207
+ */
208
+ destroy(): void;
209
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { SageMakerRuntimeHTTP2HttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: SageMakerRuntimeHTTP2HttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { SageMakerRuntimeHTTP2ClientResolvedConfig } from "../SageMakerRuntimeHTTP2Client";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface SageMakerRuntimeHTTP2HttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface SageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SageMakerRuntimeHTTP2ClientResolvedConfig, HandlerExecutionContext, SageMakerRuntimeHTTP2HttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultSageMakerRuntimeHTTP2HttpAuthSchemeParametersProvider: (config: SageMakerRuntimeHTTP2ClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SageMakerRuntimeHTTP2HttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface SageMakerRuntimeHTTP2HttpAuthSchemeProvider extends HttpAuthSchemeProvider<SageMakerRuntimeHTTP2HttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultSageMakerRuntimeHTTP2HttpAuthSchemeProvider: SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
28
+ /**
29
+ * @public
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: SageMakerRuntimeHTTP2HttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;