@aws-sdk/client-sagemaker-inference-router-runtime 0.0.0-stage → 3.1171.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/LICENSE +201 -0
- package/README.md +194 -2
- package/dist-cjs/index.js +643 -0
- package/dist-es/SageMakerInferenceRouterRuntime.js +11 -0
- package/dist-es/SageMakerInferenceRouterRuntimeClient.js +47 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +40 -0
- package/dist-es/commandBuilder.js +6 -0
- package/dist-es/commands/InvokeInferenceRouterAsyncCommand.js +4 -0
- package/dist-es/commands/InvokeInferenceRouterCommand.js +4 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/bdd.js +48 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +8 -0
- package/dist-es/models/SageMakerInferenceRouterRuntimeServiceException.js +9 -0
- package/dist-es/models/errors.js +149 -0
- package/dist-es/models/models_0.js +1 -0
- package/dist-es/runtimeConfig.browser.js +29 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +9 -0
- package/dist-es/runtimeConfig.shared.js +40 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +157 -0
- package/dist-types/SageMakerInferenceRouterRuntime.d.ts +30 -0
- package/dist-types/SageMakerInferenceRouterRuntimeClient.d.ts +189 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commandBuilder.d.ts +18 -0
- package/dist-types/commands/InvokeInferenceRouterAsyncCommand.d.ts +101 -0
- package/dist-types/commands/InvokeInferenceRouterCommand.d.ts +142 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +50 -0
- package/dist-types/endpoint/bdd.d.ts +2 -0
- package/dist-types/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/SageMakerInferenceRouterRuntimeServiceException.d.ts +15 -0
- package/dist-types/models/errors.d.ts +186 -0
- package/dist-types/models/models_0.d.ts +160 -0
- package/dist-types/runtimeConfig.browser.d.ts +57 -0
- package/dist-types/runtimeConfig.d.ts +58 -0
- package/dist-types/runtimeConfig.native.d.ts +56 -0
- package/dist-types/runtimeConfig.shared.d.ts +28 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +24 -0
- package/dist-types/ts3.4/SageMakerInferenceRouterRuntime.d.ts +47 -0
- package/dist-types/ts3.4/SageMakerInferenceRouterRuntimeClient.d.ts +117 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +27 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commandBuilder.d.ts +40 -0
- package/dist-types/ts3.4/commands/InvokeInferenceRouterAsyncCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/InvokeInferenceRouterCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/bdd.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +10 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/SageMakerInferenceRouterRuntimeServiceException.d.ts +10 -0
- package/dist-types/ts3.4/models/errors.d.ts +75 -0
- package/dist-types/ts3.4/models/models_0.d.ts +36 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +31 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +19 -0
- package/package.json +67 -4
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
const _A = "Accept";
|
|
2
|
+
const _ADE = "AccessDeniedException";
|
|
3
|
+
const _B = "Body";
|
|
4
|
+
const _CA = "CustomAttributes";
|
|
5
|
+
const _CAH = "CustomAttributesHeader";
|
|
6
|
+
const _CT = "ContentType";
|
|
7
|
+
const _CT_ = "Content-Type";
|
|
8
|
+
const _F = "Filename";
|
|
9
|
+
const _FL = "FailureLocation";
|
|
10
|
+
const _IDE = "InternalDependencyException";
|
|
11
|
+
const _IF = "InternalFailure";
|
|
12
|
+
const _II = "InferenceId";
|
|
13
|
+
const _IIR = "InvokeInferenceRouter";
|
|
14
|
+
const _IIRA = "InvokeInferenceRouterAsync";
|
|
15
|
+
const _IIRAI = "InvokeInferenceRouterAsyncInput";
|
|
16
|
+
const _IIRAO = "InvokeInferenceRouterAsyncOutput";
|
|
17
|
+
const _IIRI = "InvokeInferenceRouterInput";
|
|
18
|
+
const _IIRO = "InvokeInferenceRouterOutput";
|
|
19
|
+
const _IL = "InputLocation";
|
|
20
|
+
const _IPV = "InvokedProductionVariant";
|
|
21
|
+
const _IRBB = "InferenceRouterBodyBlob";
|
|
22
|
+
const _IRN = "InferenceRouterName";
|
|
23
|
+
const _IRRA = "InvokedRoutedResourceArn";
|
|
24
|
+
const _ITS = "InvocationTimeoutSeconds";
|
|
25
|
+
const _LSA = "LogStreamArn";
|
|
26
|
+
const _M = "Message";
|
|
27
|
+
const _ME = "ModelError";
|
|
28
|
+
const _MNRE = "ModelNotReadyException";
|
|
29
|
+
const _OL = "OutputLocation";
|
|
30
|
+
const _OM = "OriginalMessage";
|
|
31
|
+
const _OSC = "OriginalStatusCode";
|
|
32
|
+
const _PAI = "PrefixAwareId";
|
|
33
|
+
const _RR = "RoutingReason";
|
|
34
|
+
const _RTE = "RequestTimeoutException";
|
|
35
|
+
const _RTN = "RoutingTargetName";
|
|
36
|
+
const _RTTLS = "RequestTTLSeconds";
|
|
37
|
+
const _SOPE = "S3OutputPathExtension";
|
|
38
|
+
const _SUE = "ServiceUnavailableException";
|
|
39
|
+
const _TE = "ThrottlingException";
|
|
40
|
+
const _VE = "ValidationException";
|
|
41
|
+
const _XAIPV = "X-Amzn-Invoked-Production-Variant";
|
|
42
|
+
const _XASA = "X-Amzn-SageMaker-Accept";
|
|
43
|
+
const _XASCA = "X-Amzn-SageMaker-Custom-Attributes";
|
|
44
|
+
const _XASCT = "X-Amzn-SageMaker-Content-Type";
|
|
45
|
+
const _XASF = "X-Amzn-SageMaker-Filename";
|
|
46
|
+
const _XASF_ = "X-Amzn-SageMaker-FailureLocation";
|
|
47
|
+
const _XASI = "X-Amzn-SageMaker-InputLocation";
|
|
48
|
+
const _XASII = "X-Amzn-SageMaker-Inference-Id";
|
|
49
|
+
const _XASIRR = "X-Amzn-SageMaker-Invoked-Routing-Reason";
|
|
50
|
+
const _XASIRRA = "X-Amzn-SageMaker-Invoked-Routed-Resource-Arn";
|
|
51
|
+
const _XASI_ = "X-Amzn-SageMaker-InvocationTimeoutSeconds";
|
|
52
|
+
const _XASO = "X-Amzn-SageMaker-OutputLocation";
|
|
53
|
+
const _XASPAI = "X-Amzn-SageMaker-Prefix-Aware-Id";
|
|
54
|
+
const _XASR = "X-Amzn-SageMaker-RequestTTLSeconds";
|
|
55
|
+
const _XASRTN = "X-Amzn-SageMaker-Routing-Target-Name";
|
|
56
|
+
const _XASS = "X-Amzn-SageMaker-S3OutputPathExtension";
|
|
57
|
+
const _c = "client";
|
|
58
|
+
const _e = "error";
|
|
59
|
+
const _h = "http";
|
|
60
|
+
const _hE = "httpError";
|
|
61
|
+
const _hH = "httpHeader";
|
|
62
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sagemakerinferencerouterruntime";
|
|
63
|
+
const _se = "server";
|
|
64
|
+
const n0 = "com.amazonaws.sagemakerinferencerouterruntime";
|
|
65
|
+
import { TypeRegistry } from "@smithy/core/schema";
|
|
66
|
+
import { AccessDeniedException, InternalDependencyException, InternalFailure, ModelError, ModelNotReadyException, RequestTimeoutException, ServiceUnavailableException, ThrottlingException, ValidationException, } from "../models/errors";
|
|
67
|
+
import { SageMakerInferenceRouterRuntimeServiceException, } from "../models/SageMakerInferenceRouterRuntimeServiceException";
|
|
68
|
+
const _s_registry = new TypeRegistry(_s);
|
|
69
|
+
export var SageMakerInferenceRouterRuntimeServiceException$ = [-3, _s, "SageMakerInferenceRouterRuntimeServiceException", 0, [], []];
|
|
70
|
+
_s_registry.registerError(SageMakerInferenceRouterRuntimeServiceException$, SageMakerInferenceRouterRuntimeServiceException);
|
|
71
|
+
const n0_registry = new TypeRegistry(n0);
|
|
72
|
+
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
73
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
74
|
+
[_M],
|
|
75
|
+
[0]
|
|
76
|
+
];
|
|
77
|
+
n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
|
|
78
|
+
export var InternalDependencyException$ = [-3, n0, _IDE,
|
|
79
|
+
{ [_e]: _se, [_hE]: 530 },
|
|
80
|
+
[_M],
|
|
81
|
+
[0]
|
|
82
|
+
];
|
|
83
|
+
n0_registry.registerError(InternalDependencyException$, InternalDependencyException);
|
|
84
|
+
export var InternalFailure$ = [-3, n0, _IF,
|
|
85
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
86
|
+
[_M],
|
|
87
|
+
[0]
|
|
88
|
+
];
|
|
89
|
+
n0_registry.registerError(InternalFailure$, InternalFailure);
|
|
90
|
+
export var ModelError$ = [-3, n0, _ME,
|
|
91
|
+
{ [_e]: _c, [_hE]: 424 },
|
|
92
|
+
[_M, _OSC, _OM, _LSA],
|
|
93
|
+
[0, 1, 0, 0]
|
|
94
|
+
];
|
|
95
|
+
n0_registry.registerError(ModelError$, ModelError);
|
|
96
|
+
export var ModelNotReadyException$ = [-3, n0, _MNRE,
|
|
97
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
98
|
+
[_M],
|
|
99
|
+
[0]
|
|
100
|
+
];
|
|
101
|
+
n0_registry.registerError(ModelNotReadyException$, ModelNotReadyException);
|
|
102
|
+
export var RequestTimeoutException$ = [-3, n0, _RTE,
|
|
103
|
+
{ [_e]: _c, [_hE]: 408 },
|
|
104
|
+
[_M],
|
|
105
|
+
[0]
|
|
106
|
+
];
|
|
107
|
+
n0_registry.registerError(RequestTimeoutException$, RequestTimeoutException);
|
|
108
|
+
export var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
109
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
110
|
+
[_M],
|
|
111
|
+
[0]
|
|
112
|
+
];
|
|
113
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
114
|
+
export var ThrottlingException$ = [-3, n0, _TE,
|
|
115
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
116
|
+
[_M],
|
|
117
|
+
[0]
|
|
118
|
+
];
|
|
119
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
120
|
+
export var ValidationException$ = [-3, n0, _VE,
|
|
121
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
122
|
+
[_M],
|
|
123
|
+
[0]
|
|
124
|
+
];
|
|
125
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
126
|
+
export const errorTypeRegistries = [
|
|
127
|
+
_s_registry,
|
|
128
|
+
n0_registry,
|
|
129
|
+
];
|
|
130
|
+
var CustomAttributesHeader = [0, n0, _CAH, 8, 0];
|
|
131
|
+
var InferenceRouterBodyBlob = [0, n0, _IRBB, 8, 21];
|
|
132
|
+
export var InvokeInferenceRouterAsyncInput$ = [3, n0, _IIRAI,
|
|
133
|
+
0,
|
|
134
|
+
[_IRN, _RTN, _IL, _CT, _A, _CA, _II, _SOPE, _F, _RTTLS, _ITS],
|
|
135
|
+
[[0, 1], [0, { [_hH]: _XASRTN }], [0, { [_hH]: _XASI }], [0, { [_hH]: _XASCT }], [0, { [_hH]: _XASA }], [() => CustomAttributesHeader, { [_hH]: _XASCA }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASS }], [0, { [_hH]: _XASF }], [1, { [_hH]: _XASR }], [1, { [_hH]: _XASI_ }]], 3
|
|
136
|
+
];
|
|
137
|
+
export var InvokeInferenceRouterAsyncOutput$ = [3, n0, _IIRAO,
|
|
138
|
+
0,
|
|
139
|
+
[_II, _OL, _FL],
|
|
140
|
+
[0, [0, { [_hH]: _XASO }], [0, { [_hH]: _XASF_ }]]
|
|
141
|
+
];
|
|
142
|
+
export var InvokeInferenceRouterInput$ = [3, n0, _IIRI,
|
|
143
|
+
0,
|
|
144
|
+
[_IRN, _RTN, _B, _CT, _A, _II, _PAI, _CA],
|
|
145
|
+
[[0, 1], [0, { [_hH]: _XASRTN }], [() => InferenceRouterBodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _A }], [0, { [_hH]: _XASII }], [0, { [_hH]: _XASPAI }], [() => CustomAttributesHeader, { [_hH]: _XASCA }]], 3
|
|
146
|
+
];
|
|
147
|
+
export var InvokeInferenceRouterOutput$ = [3, n0, _IIRO,
|
|
148
|
+
0,
|
|
149
|
+
[_B, _CT, _IRRA, _RR, _IPV, _CA],
|
|
150
|
+
[[() => InferenceRouterBodyBlob, 16], [0, { [_hH]: _CT_ }], [0, { [_hH]: _XASIRRA }], [0, { [_hH]: _XASIRR }], [0, { [_hH]: _XAIPV }], [() => CustomAttributesHeader, { [_hH]: _XASCA }]]
|
|
151
|
+
];
|
|
152
|
+
export var InvokeInferenceRouter$ = [9, n0, _IIR,
|
|
153
|
+
{ [_h]: ["POST", "/inference-routers/{InferenceRouterName}/invocations", 200] }, () => InvokeInferenceRouterInput$, () => InvokeInferenceRouterOutput$
|
|
154
|
+
];
|
|
155
|
+
export var InvokeInferenceRouterAsync$ = [9, n0, _IIRA,
|
|
156
|
+
{ [_h]: ["POST", "/inference-routers/{InferenceRouterName}/async-invocations", 202] }, () => InvokeInferenceRouterAsyncInput$, () => InvokeInferenceRouterAsyncOutput$
|
|
157
|
+
];
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
|
+
import { type InvokeInferenceRouterAsyncCommandInput, type InvokeInferenceRouterAsyncCommandOutput } from "./commands/InvokeInferenceRouterAsyncCommand";
|
|
3
|
+
import { type InvokeInferenceRouterCommandInput, type InvokeInferenceRouterCommandOutput } from "./commands/InvokeInferenceRouterCommand";
|
|
4
|
+
import { SageMakerInferenceRouterRuntimeClient } from "./SageMakerInferenceRouterRuntimeClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface SageMakerInferenceRouterRuntimeRequestOptions extends __HttpHandlerOptions {
|
|
9
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
10
|
+
}
|
|
11
|
+
export interface SageMakerInferenceRouterRuntime {
|
|
12
|
+
/**
|
|
13
|
+
* @see {@link InvokeInferenceRouterCommand}
|
|
14
|
+
*/
|
|
15
|
+
invokeInferenceRouter(args: InvokeInferenceRouterCommandInput, options?: SageMakerInferenceRouterRuntimeRequestOptions): Promise<InvokeInferenceRouterCommandOutput>;
|
|
16
|
+
invokeInferenceRouter(args: InvokeInferenceRouterCommandInput, cb: (err: any, data?: InvokeInferenceRouterCommandOutput) => void): void;
|
|
17
|
+
invokeInferenceRouter(args: InvokeInferenceRouterCommandInput, options: SageMakerInferenceRouterRuntimeRequestOptions, cb: (err: any, data?: InvokeInferenceRouterCommandOutput) => void): void;
|
|
18
|
+
/**
|
|
19
|
+
* @see {@link InvokeInferenceRouterAsyncCommand}
|
|
20
|
+
*/
|
|
21
|
+
invokeInferenceRouterAsync(args: InvokeInferenceRouterAsyncCommandInput, options?: SageMakerInferenceRouterRuntimeRequestOptions): Promise<InvokeInferenceRouterAsyncCommandOutput>;
|
|
22
|
+
invokeInferenceRouterAsync(args: InvokeInferenceRouterAsyncCommandInput, cb: (err: any, data?: InvokeInferenceRouterAsyncCommandOutput) => void): void;
|
|
23
|
+
invokeInferenceRouterAsync(args: InvokeInferenceRouterAsyncCommandInput, options: SageMakerInferenceRouterRuntimeRequestOptions, cb: (err: any, data?: InvokeInferenceRouterAsyncCommandOutput) => void): void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* <p>Amazon SageMaker Inference Router Runtime is the runtime API for Amazon SageMaker AI inference routers. An inference router sends each request that you make to one of the destinations of a routing target. A destination is a SageMaker AI endpoint or inference component, in your account or in another account, in the router's Amazon Web Services Region or in another Region in the same Amazon Web Services partition. The router chooses a healthy destination with capacity, and prefers destinations in its own Region.</p> <p>Use <code>InvokeInferenceRouter</code> to get an inference in real time. Use <code>InvokeInferenceRouterAsync</code> to submit a request whose input and response are stored in Amazon S3.</p> <p>The inference router runtime endpoint supports HTTP/1.1 only. HTTP/2 isn't supported. If you use the Amazon Web Services SDKs or the Amazon Web Services CLI, you don't need to change anything.</p>
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
export declare class SageMakerInferenceRouterRuntime extends SageMakerInferenceRouterRuntimeClient implements SageMakerInferenceRouterRuntime {
|
|
30
|
+
}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import { type HostHeaderInputConfig, type HostHeaderResolvedConfig, type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/core/client";
|
|
2
|
+
import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/core/client";
|
|
3
|
+
import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/core/config";
|
|
4
|
+
import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/core/endpoints";
|
|
5
|
+
import { type HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/core/protocols";
|
|
6
|
+
import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/retry";
|
|
7
|
+
import type { 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, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
|
+
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
|
+
import type { InvokeInferenceRouterAsyncCommandInput, InvokeInferenceRouterAsyncCommandOutput } from "./commands/InvokeInferenceRouterAsyncCommand";
|
|
10
|
+
import type { InvokeInferenceRouterCommandInput, InvokeInferenceRouterCommandOutput } from "./commands/InvokeInferenceRouterCommand";
|
|
11
|
+
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
12
|
+
import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
13
|
+
export { __Client };
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
export type ServiceInputTypes = InvokeInferenceRouterAsyncCommandInput | InvokeInferenceRouterCommandInput;
|
|
18
|
+
/**
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export type ServiceOutputTypes = InvokeInferenceRouterAsyncCommandOutput | InvokeInferenceRouterCommandOutput;
|
|
22
|
+
/**
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
26
|
+
/**
|
|
27
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
28
|
+
*/
|
|
29
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
30
|
+
/**
|
|
31
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
32
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
36
|
+
/**
|
|
37
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
40
|
+
urlParser?: __UrlParser;
|
|
41
|
+
/**
|
|
42
|
+
* A function that can calculate the length of a request body.
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
46
|
+
/**
|
|
47
|
+
* A function that converts a stream into an array of bytes.
|
|
48
|
+
* @internal
|
|
49
|
+
*/
|
|
50
|
+
streamCollector?: __StreamCollector;
|
|
51
|
+
/**
|
|
52
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
base64Decoder?: __Decoder;
|
|
56
|
+
/**
|
|
57
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
60
|
+
base64Encoder?: __Encoder;
|
|
61
|
+
/**
|
|
62
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
utf8Decoder?: __Decoder;
|
|
66
|
+
/**
|
|
67
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
70
|
+
utf8Encoder?: __Encoder;
|
|
71
|
+
/**
|
|
72
|
+
* The runtime environment.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
runtime?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
78
|
+
* trait of an operation.
|
|
79
|
+
*/
|
|
80
|
+
disableHostPrefix?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Unique service identifier.
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
serviceId?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
88
|
+
*/
|
|
89
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* Enables FIPS compatible endpoints.
|
|
92
|
+
*/
|
|
93
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
94
|
+
/**
|
|
95
|
+
* The AWS region to which this client will send requests
|
|
96
|
+
*/
|
|
97
|
+
region?: string | __Provider<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Setting a client profile is similar to setting a value for the
|
|
100
|
+
* AWS_PROFILE environment variable. Setting a profile on a client
|
|
101
|
+
* in code only affects the single client instance, unlike AWS_PROFILE.
|
|
102
|
+
*
|
|
103
|
+
* When set, and only for environments where an AWS configuration
|
|
104
|
+
* file exists, fields configurable by this file will be retrieved
|
|
105
|
+
* from the specified profile within that file.
|
|
106
|
+
* Conflicting code configuration and environment variables will
|
|
107
|
+
* still have higher priority.
|
|
108
|
+
*
|
|
109
|
+
* For client credential resolution that involves checking the AWS
|
|
110
|
+
* configuration file, the client's profile (this value) will be
|
|
111
|
+
* used unless a different profile is set in the credential
|
|
112
|
+
* provider options.
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
profile?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
defaultUserAgentProvider?: __Provider<__UserAgent>;
|
|
121
|
+
/**
|
|
122
|
+
* Default credentials provider; Not available in browser runtime.
|
|
123
|
+
* @deprecated
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
|
|
127
|
+
/**
|
|
128
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
129
|
+
*/
|
|
130
|
+
maxAttempts?: number | __Provider<number>;
|
|
131
|
+
/**
|
|
132
|
+
* Specifies which retry algorithm to use.
|
|
133
|
+
* Accepted values are "standard" and "adaptive".
|
|
134
|
+
* @see https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
retryMode?: string | __Provider<string>;
|
|
138
|
+
/**
|
|
139
|
+
* Optional logger for logging debug/info/warn/error.
|
|
140
|
+
*/
|
|
141
|
+
logger?: __Logger;
|
|
142
|
+
/**
|
|
143
|
+
* Optional extensions
|
|
144
|
+
*/
|
|
145
|
+
extensions?: RuntimeExtension[];
|
|
146
|
+
/**
|
|
147
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
148
|
+
*/
|
|
149
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
export type SageMakerInferenceRouterRuntimeClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
|
|
155
|
+
/**
|
|
156
|
+
* @public
|
|
157
|
+
*
|
|
158
|
+
* The configuration interface of SageMakerInferenceRouterRuntimeClient class constructor that set the region, credentials and other options.
|
|
159
|
+
*/
|
|
160
|
+
export interface SageMakerInferenceRouterRuntimeClientConfig extends SageMakerInferenceRouterRuntimeClientConfigType {
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
*/
|
|
165
|
+
export type SageMakerInferenceRouterRuntimeClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
*
|
|
169
|
+
* The resolved configuration interface of SageMakerInferenceRouterRuntimeClient class. This is resolved and normalized from the {@link SageMakerInferenceRouterRuntimeClientConfig | constructor configuration interface}.
|
|
170
|
+
*/
|
|
171
|
+
export interface SageMakerInferenceRouterRuntimeClientResolvedConfig extends SageMakerInferenceRouterRuntimeClientResolvedConfigType {
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* <p>Amazon SageMaker Inference Router Runtime is the runtime API for Amazon SageMaker AI inference routers. An inference router sends each request that you make to one of the destinations of a routing target. A destination is a SageMaker AI endpoint or inference component, in your account or in another account, in the router's Amazon Web Services Region or in another Region in the same Amazon Web Services partition. The router chooses a healthy destination with capacity, and prefers destinations in its own Region.</p> <p>Use <code>InvokeInferenceRouter</code> to get an inference in real time. Use <code>InvokeInferenceRouterAsync</code> to submit a request whose input and response are stored in Amazon S3.</p> <p>The inference router runtime endpoint supports HTTP/1.1 only. HTTP/2 isn't supported. If you use the Amazon Web Services SDKs or the Amazon Web Services CLI, you don't need to change anything.</p>
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
export declare class SageMakerInferenceRouterRuntimeClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SageMakerInferenceRouterRuntimeClientResolvedConfig> {
|
|
178
|
+
/**
|
|
179
|
+
* The resolved configuration of SageMakerInferenceRouterRuntimeClient class. This is resolved and normalized from the {@link SageMakerInferenceRouterRuntimeClientConfig | constructor configuration interface}.
|
|
180
|
+
*/
|
|
181
|
+
readonly config: SageMakerInferenceRouterRuntimeClientResolvedConfig;
|
|
182
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<SageMakerInferenceRouterRuntimeClientConfig>);
|
|
183
|
+
/**
|
|
184
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
185
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
186
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
187
|
+
*/
|
|
188
|
+
destroy(): void;
|
|
189
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
|
|
2
|
+
import type { SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
|
|
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: SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
|
|
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/httpAuthSchemes";
|
|
2
|
+
import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
|
|
3
|
+
import { type SageMakerInferenceRouterRuntimeClientResolvedConfig } from "../SageMakerInferenceRouterRuntimeClient";
|
|
4
|
+
/**
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export interface SageMakerInferenceRouterRuntimeHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
8
|
+
region?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export interface SageMakerInferenceRouterRuntimeHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<SageMakerInferenceRouterRuntimeClientResolvedConfig, HandlerExecutionContext, SageMakerInferenceRouterRuntimeHttpAuthSchemeParameters, object> {
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const defaultSageMakerInferenceRouterRuntimeHttpAuthSchemeParametersProvider: (config: SageMakerInferenceRouterRuntimeClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<SageMakerInferenceRouterRuntimeHttpAuthSchemeParameters>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export interface SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider extends HttpAuthSchemeProvider<SageMakerInferenceRouterRuntimeHttpAuthSchemeParameters> {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
*/
|
|
27
|
+
export declare const defaultSageMakerInferenceRouterRuntimeHttpAuthSchemeProvider: SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
|
|
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?: SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
|
|
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: SageMakerInferenceRouterRuntimeHttpAuthSchemeProvider;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
75
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { EndpointParameterInstructions } from "@smithy/types";
|
|
2
|
+
import type { SageMakerInferenceRouterRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./SageMakerInferenceRouterRuntimeClient";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
|
|
7
|
+
new (input: I): import("@smithy/core/client").CommandImpl<I, O, SageMakerInferenceRouterRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
8
|
+
new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, SageMakerInferenceRouterRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
9
|
+
getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare const _ep0: EndpointParameterInstructions;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { InvokeInferenceRouterAsyncInput, InvokeInferenceRouterAsyncOutput } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link InvokeInferenceRouterAsyncCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface InvokeInferenceRouterAsyncCommandInput extends InvokeInferenceRouterAsyncInput {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link InvokeInferenceRouterAsyncCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface InvokeInferenceRouterAsyncCommandOutput extends InvokeInferenceRouterAsyncOutput, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const InvokeInferenceRouterAsyncCommand_base: {
|
|
22
|
+
new (input: InvokeInferenceRouterAsyncCommandInput): import("@smithy/core/client").CommandImpl<InvokeInferenceRouterAsyncCommandInput, InvokeInferenceRouterAsyncCommandOutput, import("..").SageMakerInferenceRouterRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: InvokeInferenceRouterAsyncCommandInput): import("@smithy/core/client").CommandImpl<InvokeInferenceRouterAsyncCommandInput, InvokeInferenceRouterAsyncCommandOutput, import("..").SageMakerInferenceRouterRuntimeClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Submits an asynchronous inference request to an inference router. Before you call this operation, upload the input data to Amazon S3 in the router's Amazon Web Services Region. The router returns as soon as it accepts the request, and sends the request to one of the destinations of the routing target. The destination reads the input from Amazon S3, and the inference response is written to the Amazon S3 output path that the routing target specifies.</p> <p>If a destination doesn't start the request within the routing target's <code>MaxTimeInBacklogSeconds</code>, the router moves the request to another destination. After your model starts processing the request, the request doesn't move. If no destination can take the request before <code>RequestTTLSeconds</code> runs out, or every destination has been tried, the router writes a failure object to the <code>FailureLocation</code> and publishes a notification to the routing target's error topic, if one is configured.</p> <p>For information about the permissions that the caller and each destination need, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/inference-router-async.html">Send asynchronous requests through an inference router</a>.</p>
|
|
28
|
+
* @example
|
|
29
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
+
* ```javascript
|
|
31
|
+
* import { SageMakerInferenceRouterRuntimeClient, InvokeInferenceRouterAsyncCommand } from "@aws-sdk/client-sagemaker-inference-router-runtime"; // ES Modules import
|
|
32
|
+
* // const { SageMakerInferenceRouterRuntimeClient, InvokeInferenceRouterAsyncCommand } = require("@aws-sdk/client-sagemaker-inference-router-runtime"); // CommonJS import
|
|
33
|
+
* // import type { SageMakerInferenceRouterRuntimeClientConfig } from "@aws-sdk/client-sagemaker-inference-router-runtime";
|
|
34
|
+
* const config = {}; // type is SageMakerInferenceRouterRuntimeClientConfig
|
|
35
|
+
* const client = new SageMakerInferenceRouterRuntimeClient(config);
|
|
36
|
+
* const input = { // InvokeInferenceRouterAsyncInput
|
|
37
|
+
* InferenceRouterName: "STRING_VALUE", // required
|
|
38
|
+
* RoutingTargetName: "STRING_VALUE", // required
|
|
39
|
+
* ContentType: "STRING_VALUE",
|
|
40
|
+
* Accept: "STRING_VALUE",
|
|
41
|
+
* CustomAttributes: "STRING_VALUE",
|
|
42
|
+
* InferenceId: "STRING_VALUE",
|
|
43
|
+
* InputLocation: "STRING_VALUE", // required
|
|
44
|
+
* S3OutputPathExtension: "STRING_VALUE",
|
|
45
|
+
* Filename: "STRING_VALUE",
|
|
46
|
+
* RequestTTLSeconds: Number("int"),
|
|
47
|
+
* InvocationTimeoutSeconds: Number("int"),
|
|
48
|
+
* };
|
|
49
|
+
* const command = new InvokeInferenceRouterAsyncCommand(input);
|
|
50
|
+
* const response = await client.send(command);
|
|
51
|
+
* // { // InvokeInferenceRouterAsyncOutput
|
|
52
|
+
* // InferenceId: "STRING_VALUE",
|
|
53
|
+
* // OutputLocation: "STRING_VALUE",
|
|
54
|
+
* // FailureLocation: "STRING_VALUE",
|
|
55
|
+
* // };
|
|
56
|
+
*
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* @param InvokeInferenceRouterAsyncCommandInput - {@link InvokeInferenceRouterAsyncCommandInput}
|
|
60
|
+
* @returns {@link InvokeInferenceRouterAsyncCommandOutput}
|
|
61
|
+
* @see {@link InvokeInferenceRouterAsyncCommandInput} for command's `input` shape.
|
|
62
|
+
* @see {@link InvokeInferenceRouterAsyncCommandOutput} for command's `response` shape.
|
|
63
|
+
* @see {@link SageMakerInferenceRouterRuntimeClientResolvedConfig | config} for SageMakerInferenceRouterRuntimeClient's `config` shape.
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
66
|
+
* <p>You don't have permission to perform this action. Check that the caller is allowed to invoke the inference router and every destination of the routing target.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link InternalFailure} (server fault)
|
|
69
|
+
* <p>An internal error occurred. Retry the request with exponential backoff. The Amazon Web Services SDKs and the Amazon Web Services CLI do this by default.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link RequestTimeoutException} (client fault)
|
|
72
|
+
* <p>The inference router didn't receive the complete request within 300 seconds of accepting it, for example because of a very slow upload. Retry the request.</p>
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ServiceUnavailableException} (server fault)
|
|
75
|
+
* <p>The service is temporarily unavailable. For example, no destination of the routing target could serve the request, or a destination didn't respond. Retry the request with exponential backoff. The Amazon Web Services SDKs and the Amazon Web Services CLI do this by default.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
78
|
+
* <p>The request was denied because you exceeded the request rate for the inference router, or because a destination throttled the request. Retry the request with exponential backoff.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>The request isn't valid. Check the inference router name, the routing target name, and the request parameters, and then try again.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link SageMakerInferenceRouterRuntimeServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from SageMakerInferenceRouterRuntime service.</p>
|
|
85
|
+
*
|
|
86
|
+
*
|
|
87
|
+
* @public
|
|
88
|
+
*/
|
|
89
|
+
export declare class InvokeInferenceRouterAsyncCommand extends InvokeInferenceRouterAsyncCommand_base {
|
|
90
|
+
/** @internal type navigation helper, not in runtime. */
|
|
91
|
+
protected static __types: {
|
|
92
|
+
api: {
|
|
93
|
+
input: InvokeInferenceRouterAsyncInput;
|
|
94
|
+
output: InvokeInferenceRouterAsyncOutput;
|
|
95
|
+
};
|
|
96
|
+
sdk: {
|
|
97
|
+
input: InvokeInferenceRouterAsyncCommandInput;
|
|
98
|
+
output: InvokeInferenceRouterAsyncCommandOutput;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
}
|