@aws-sdk/client-sagemaker-runtime 3.181.0 → 3.183.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/CHANGELOG.md +19 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1 -0
- package/dist-es/SageMakerRuntime.js +10 -17
- package/dist-es/SageMakerRuntimeClient.js +22 -28
- package/dist-es/commands/InvokeEndpointAsyncCommand.js +21 -28
- package/dist-es/commands/InvokeEndpointCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SageMakerRuntimeServiceException.js +5 -10
- package/dist-es/models/models_0.js +92 -80
- package/dist-es/protocols/Aws_restJson1.js +241 -322
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/dist-types/SageMakerRuntime.d.ts +14 -16
- package/dist-types/commands/InvokeEndpointAsyncCommand.d.ts +12 -14
- package/dist-types/commands/InvokeEndpointCommand.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +42 -27
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +33 -33
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
4
3
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
@@ -12,15 +11,30 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
|
12
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
12
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
13
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
14
|
+
export const getRuntimeConfig = (config) => {
|
|
15
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
+
return {
|
|
19
|
+
...clientSharedValues,
|
|
20
|
+
...config,
|
|
21
|
+
runtime: "browser",
|
|
22
|
+
defaultsMode,
|
|
23
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
24
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
25
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
26
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
28
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
29
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
30
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
31
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
32
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
33
|
+
sha256: config?.sha256 ?? Sha256,
|
|
34
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
35
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
36
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
37
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
38
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
39
|
+
};
|
|
26
40
|
};
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import packageInfo from "../package.json";
|
|
3
2
|
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
4
3
|
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
@@ -15,16 +14,35 @@ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shar
|
|
|
15
14
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
16
15
|
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
17
16
|
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
18
|
-
export
|
|
19
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
17
|
+
export const getRuntimeConfig = (config) => {
|
|
20
18
|
emitWarningIfUnsupportedVersion(process.version);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
21
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
22
|
+
return {
|
|
23
|
+
...clientSharedValues,
|
|
24
|
+
...config,
|
|
25
|
+
runtime: "node",
|
|
26
|
+
defaultsMode,
|
|
27
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
28
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
29
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
30
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
31
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
32
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
33
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
34
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
35
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
36
|
+
retryMode: config?.retryMode ??
|
|
37
|
+
loadNodeConfig({
|
|
38
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
39
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
40
|
+
}),
|
|
41
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
42
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
43
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
46
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
47
|
+
};
|
|
30
48
|
};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
2
1
|
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
3
2
|
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
8
11
|
};
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
2
2
|
import { defaultRegionInfoProvider } from "./endpoints";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
|
|
12
|
-
});
|
|
13
|
-
};
|
|
3
|
+
export const getRuntimeConfig = (config) => ({
|
|
4
|
+
apiVersion: "2017-05-13",
|
|
5
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
6
|
+
logger: config?.logger ?? {},
|
|
7
|
+
regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
|
|
8
|
+
serviceId: config?.serviceId ?? "SageMaker Runtime",
|
|
9
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
10
|
+
});
|
|
@@ -14,8 +14,8 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
|
|
|
14
14
|
* <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
|
|
15
15
|
* additional headers. You should not rely on the behavior of headers outside those
|
|
16
16
|
* enumerated in the request syntax. </p>
|
|
17
|
-
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services
|
|
18
|
-
* 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
|
|
17
|
+
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services
|
|
18
|
+
* Signature Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
|
|
19
19
|
* Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
|
|
20
20
|
* Reference</i>.</p>
|
|
21
21
|
* <p>A customer's model containers must respond to requests within 60 seconds. The model
|
|
@@ -32,23 +32,21 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
|
|
|
32
32
|
invokeEndpoint(args: InvokeEndpointCommandInput, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
|
|
33
33
|
invokeEndpoint(args: InvokeEndpointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
|
|
34
34
|
/**
|
|
35
|
-
* <p>After you deploy a model into production using Amazon SageMaker hosting services,
|
|
36
|
-
*
|
|
37
|
-
*
|
|
35
|
+
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your client
|
|
36
|
+
* applications use this API to get inferences from the model hosted at the specified
|
|
37
|
+
* endpoint in an asynchronous manner.</p>
|
|
38
38
|
*
|
|
39
|
-
* <p>Inference requests sent to this API are enqueued for asynchronous processing.
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* about where you can locate it.</p>
|
|
39
|
+
* <p>Inference requests sent to this API are enqueued for asynchronous processing. The
|
|
40
|
+
* processing of the inference request may or may not complete before the you receive a
|
|
41
|
+
* response from this API. The response from this API will not contain the result of the
|
|
42
|
+
* inference request but contain information about where you can locate it.</p>
|
|
44
43
|
*
|
|
45
|
-
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API.
|
|
46
|
-
*
|
|
47
|
-
*
|
|
44
|
+
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker
|
|
45
|
+
* might add additional headers. You should not rely on the behavior of headers outside
|
|
46
|
+
* those enumerated in the request syntax.</p>
|
|
48
47
|
*
|
|
49
|
-
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature
|
|
50
|
-
*
|
|
51
|
-
* Reference</i>.</p>
|
|
48
|
+
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature Version 4. For information, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the
|
|
49
|
+
* <i>Amazon S3 API Reference</i>.</p>
|
|
52
50
|
*/
|
|
53
51
|
invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointAsyncCommandOutput>;
|
|
54
52
|
invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, cb: (err: any, data?: InvokeEndpointAsyncCommandOutput) => void): void;
|
|
@@ -7,23 +7,21 @@ export interface InvokeEndpointAsyncCommandInput extends InvokeEndpointAsyncInpu
|
|
|
7
7
|
export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOutput, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>After you deploy a model into production using Amazon SageMaker hosting services,
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your client
|
|
11
|
+
* applications use this API to get inferences from the model hosted at the specified
|
|
12
|
+
* endpoint in an asynchronous manner.</p>
|
|
13
13
|
*
|
|
14
|
-
* <p>Inference requests sent to this API are enqueued for asynchronous processing.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* about where you can locate it.</p>
|
|
14
|
+
* <p>Inference requests sent to this API are enqueued for asynchronous processing. The
|
|
15
|
+
* processing of the inference request may or may not complete before the you receive a
|
|
16
|
+
* response from this API. The response from this API will not contain the result of the
|
|
17
|
+
* inference request but contain information about where you can locate it.</p>
|
|
19
18
|
*
|
|
20
|
-
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API.
|
|
21
|
-
*
|
|
22
|
-
*
|
|
19
|
+
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker
|
|
20
|
+
* might add additional headers. You should not rely on the behavior of headers outside
|
|
21
|
+
* those enumerated in the request syntax.</p>
|
|
23
22
|
*
|
|
24
|
-
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature
|
|
25
|
-
*
|
|
26
|
-
* Reference</i>.</p>
|
|
23
|
+
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature Version 4. For information, see <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the
|
|
24
|
+
* <i>Amazon S3 API Reference</i>.</p>
|
|
27
25
|
* @example
|
|
28
26
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
27
|
* ```javascript
|
|
@@ -14,8 +14,8 @@ export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __Met
|
|
|
14
14
|
* <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
|
|
15
15
|
* additional headers. You should not rely on the behavior of headers outside those
|
|
16
16
|
* enumerated in the request syntax. </p>
|
|
17
|
-
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services
|
|
18
|
-
* 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
|
|
17
|
+
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services
|
|
18
|
+
* Signature Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
|
|
19
19
|
* Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
|
|
20
20
|
* Reference</i>.</p>
|
|
21
21
|
* <p>A customer's model containers must respond to requests within 60 seconds. The model
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { SageMakerRuntimeServiceException as __BaseException } from "./SageMakerRuntimeServiceException";
|
|
3
3
|
/**
|
|
4
|
-
* <p>Your request caused an exception with an internal dependency. Contact customer
|
|
4
|
+
* <p>Your request caused an exception with an internal dependency. Contact customer
|
|
5
|
+
* support. </p>
|
|
5
6
|
*/
|
|
6
7
|
export declare class InternalDependencyException extends __BaseException {
|
|
7
8
|
readonly name: "InternalDependencyException";
|
|
@@ -59,8 +60,8 @@ export interface InvokeEndpointInput {
|
|
|
59
60
|
* prepend the custom attribute with <code>Trace ID:</code> in your post-processing
|
|
60
61
|
* function.</p>
|
|
61
62
|
*
|
|
62
|
-
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
63
|
-
* SDK.</p>
|
|
63
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
64
|
+
* Python SDK.</p>
|
|
64
65
|
*/
|
|
65
66
|
CustomAttributes?: string;
|
|
66
67
|
/**
|
|
@@ -88,12 +89,21 @@ export interface InvokeEndpointInput {
|
|
|
88
89
|
* Data</a>.</p>
|
|
89
90
|
*/
|
|
90
91
|
InferenceId?: string;
|
|
92
|
+
/**
|
|
93
|
+
* <p>An optional JMESPath expression used to override the <code>EnableExplanations</code>
|
|
94
|
+
* parameter of the <code>ClarifyExplainerConfig</code> API. See the <a href="https://docs.aws.amazon.com/clarify-online-explainability-create-endpoint.html#clarify-online-exaplainability-create-endpoint-enable">EnableExplanations</a> section in the developer guide for more information.
|
|
95
|
+
* </p>
|
|
96
|
+
*/
|
|
97
|
+
EnableExplanations?: string;
|
|
91
98
|
}
|
|
92
99
|
export interface InvokeEndpointOutput {
|
|
93
100
|
/**
|
|
94
|
-
* <p>Includes the inference provided by the model
|
|
101
|
+
* <p>Includes the inference provided by the model. </p>
|
|
95
102
|
* <p>For information about the format of the response body, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html">Common Data
|
|
96
103
|
* Formats-Inference</a>.</p>
|
|
104
|
+
* <p>If the explainer is activated, the
|
|
105
|
+
* body includes the explanations provided by the model. For more information, see the
|
|
106
|
+
* <b>Response section</b> under <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-invoke-endpoint.html#clarify-online-explainability-response">Invoke the Endpoint</a> in the Developer Guide.</p>
|
|
97
107
|
*/
|
|
98
108
|
Body: Uint8Array | undefined;
|
|
99
109
|
/**
|
|
@@ -119,8 +129,8 @@ export interface InvokeEndpointOutput {
|
|
|
119
129
|
* returned. For example, if a custom attribute represents the trace ID, your model can
|
|
120
130
|
* prepend the custom attribute with <code>Trace ID:</code> in your post-processing
|
|
121
131
|
* function.</p>
|
|
122
|
-
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
123
|
-
* SDK.</p>
|
|
132
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
133
|
+
* Python SDK.</p>
|
|
124
134
|
*/
|
|
125
135
|
CustomAttributes?: string;
|
|
126
136
|
}
|
|
@@ -150,7 +160,9 @@ export declare class ModelError extends __BaseException {
|
|
|
150
160
|
constructor(opts: __ExceptionOptionType<ModelError, __BaseException>);
|
|
151
161
|
}
|
|
152
162
|
/**
|
|
153
|
-
* <p>Either a serverless endpoint variant's resources are still being provisioned, or a
|
|
163
|
+
* <p>Either a serverless endpoint variant's resources are still being provisioned, or a
|
|
164
|
+
* multi-model endpoint is still downloading or loading the target model. Wait and try your
|
|
165
|
+
* request again.</p>
|
|
154
166
|
*/
|
|
155
167
|
export declare class ModelNotReadyException extends __BaseException {
|
|
156
168
|
readonly name: "ModelNotReadyException";
|
|
@@ -187,8 +199,8 @@ export declare class ValidationError extends __BaseException {
|
|
|
187
199
|
}
|
|
188
200
|
export interface InvokeEndpointAsyncInput {
|
|
189
201
|
/**
|
|
190
|
-
* <p>The name of the endpoint that you specified when you created the endpoint using
|
|
191
|
-
*
|
|
202
|
+
* <p>The name of the endpoint that you specified when you created the endpoint using the
|
|
203
|
+
* <a href="https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpoint.html">
|
|
192
204
|
* <code>CreateEndpoint</code>
|
|
193
205
|
* </a> API.</p>
|
|
194
206
|
*/
|
|
@@ -202,26 +214,27 @@ export interface InvokeEndpointAsyncInput {
|
|
|
202
214
|
*/
|
|
203
215
|
Accept?: string;
|
|
204
216
|
/**
|
|
205
|
-
* <p>Provides additional information about a request for an inference submitted to
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
* Field Value Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). </p>
|
|
217
|
+
* <p>Provides additional information about a request for an inference submitted to a model
|
|
218
|
+
* hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded
|
|
219
|
+
* verbatim. You could use this value, for example, to provide an ID that you can use to
|
|
220
|
+
* track a request or to provide other metadata that a service endpoint was programmed to
|
|
221
|
+
* process. The value must consist of no more than 1024 visible US-ASCII characters as
|
|
222
|
+
* specified in <a href="https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.6">Section 3.3.6. Field Value Components</a> of the Hypertext Transfer Protocol
|
|
223
|
+
* (HTTP/1.1). </p>
|
|
213
224
|
*
|
|
214
|
-
* <p>The code in your model is responsible for setting or updating any custom attributes
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
225
|
+
* <p>The code in your model is responsible for setting or updating any custom attributes in
|
|
226
|
+
* the response. If your code does not set this value in the response, an empty value is
|
|
227
|
+
* returned. For example, if a custom attribute represents the trace ID, your model can
|
|
228
|
+
* prepend the custom attribute with <code>Trace ID</code>: in your post-processing
|
|
229
|
+
* function. </p>
|
|
218
230
|
*
|
|
219
|
-
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
231
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
232
|
+
* Python SDK. </p>
|
|
220
233
|
*/
|
|
221
234
|
CustomAttributes?: string;
|
|
222
235
|
/**
|
|
223
|
-
* <p>The identifier for the inference request. Amazon SageMaker will generate an identifier for you
|
|
224
|
-
*
|
|
236
|
+
* <p>The identifier for the inference request. Amazon SageMaker will generate an identifier for you if
|
|
237
|
+
* none is specified. </p>
|
|
225
238
|
*/
|
|
226
239
|
InferenceId?: string;
|
|
227
240
|
/**
|
|
@@ -229,14 +242,16 @@ export interface InvokeEndpointAsyncInput {
|
|
|
229
242
|
*/
|
|
230
243
|
InputLocation: string | undefined;
|
|
231
244
|
/**
|
|
232
|
-
* <p>Maximum age in seconds a request can be in the queue before it is marked as
|
|
245
|
+
* <p>Maximum age in seconds a request can be in the queue before it is marked as
|
|
246
|
+
* expired.</p>
|
|
233
247
|
*/
|
|
234
248
|
RequestTTLSeconds?: number;
|
|
235
249
|
}
|
|
236
250
|
export interface InvokeEndpointAsyncOutput {
|
|
237
251
|
/**
|
|
238
|
-
* <p>Identifier for an inference request. This will be the same as the
|
|
239
|
-
*
|
|
252
|
+
* <p>Identifier for an inference request. This will be the same as the
|
|
253
|
+
* <code>InferenceId</code> specified in the input. Amazon SageMaker will generate an identifier
|
|
254
|
+
* for you if you do not specify one.</p>
|
|
240
255
|
*/
|
|
241
256
|
InferenceId?: string;
|
|
242
257
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sagemaker-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sagemaker Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.183.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,41 +19,41 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
30
|
-
"@aws-sdk/middleware-logger": "3.
|
|
31
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
32
|
-
"@aws-sdk/middleware-retry": "3.
|
|
33
|
-
"@aws-sdk/middleware-serde": "3.
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
35
|
-
"@aws-sdk/middleware-stack": "3.
|
|
36
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
37
|
-
"@aws-sdk/node-config-provider": "3.
|
|
38
|
-
"@aws-sdk/node-http-handler": "3.
|
|
39
|
-
"@aws-sdk/protocol-http": "3.
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
41
|
-
"@aws-sdk/types": "3.
|
|
42
|
-
"@aws-sdk/url-parser": "3.
|
|
43
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-node": "3.
|
|
45
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
52
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.183.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.183.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.183.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.183.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.183.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.183.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.183.0",
|
|
29
|
+
"@aws-sdk/middleware-host-header": "3.183.0",
|
|
30
|
+
"@aws-sdk/middleware-logger": "3.183.0",
|
|
31
|
+
"@aws-sdk/middleware-recursion-detection": "3.183.0",
|
|
32
|
+
"@aws-sdk/middleware-retry": "3.183.0",
|
|
33
|
+
"@aws-sdk/middleware-serde": "3.183.0",
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.183.0",
|
|
35
|
+
"@aws-sdk/middleware-stack": "3.183.0",
|
|
36
|
+
"@aws-sdk/middleware-user-agent": "3.183.0",
|
|
37
|
+
"@aws-sdk/node-config-provider": "3.183.0",
|
|
38
|
+
"@aws-sdk/node-http-handler": "3.183.0",
|
|
39
|
+
"@aws-sdk/protocol-http": "3.183.0",
|
|
40
|
+
"@aws-sdk/smithy-client": "3.183.0",
|
|
41
|
+
"@aws-sdk/types": "3.183.0",
|
|
42
|
+
"@aws-sdk/url-parser": "3.183.0",
|
|
43
|
+
"@aws-sdk/util-base64-browser": "3.183.0",
|
|
44
|
+
"@aws-sdk/util-base64-node": "3.183.0",
|
|
45
|
+
"@aws-sdk/util-body-length-browser": "3.183.0",
|
|
46
|
+
"@aws-sdk/util-body-length-node": "3.183.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.183.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.183.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-browser": "3.183.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-node": "3.183.0",
|
|
51
|
+
"@aws-sdk/util-utf8-browser": "3.183.0",
|
|
52
|
+
"@aws-sdk/util-utf8-node": "3.183.0",
|
|
53
53
|
"tslib": "^2.3.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
56
|
+
"@aws-sdk/service-client-documentation-generator": "3.183.0",
|
|
57
57
|
"@tsconfig/recommended": "1.0.1",
|
|
58
58
|
"@types/node": "^12.7.5",
|
|
59
59
|
"concurrently": "7.0.0",
|