@aws-sdk/client-sagemaker-runtime 3.259.0 → 3.261.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/protocols/Aws_restJson1.js +4 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +4 -0
- package/dist-types/SageMakerRuntime.d.ts +10 -13
- package/dist-types/commands/InvokeEndpointAsyncCommand.d.ts +4 -7
- package/dist-types/commands/InvokeEndpointCommand.d.ts +6 -6
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +15 -14
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +1 -0
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a =
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const t = "fn", u = "argv", v = "ref";
|
|
5
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "stringEquals", i = { "required": true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: d }, "supportsFIPS"] }] }, o = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: d }, "supportsDualStack"] }] }, p = { [t]: "getAttr", [u]: [{ [v]: d }, "name"] }, q = { "url": "https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, r = [k], s = [l];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [t]: "isSet", [u]: [j] }], type: e, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, o], type: e, rules: [{ endpoint: { url: "https://runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [t]: h, [u]: ["aws", p] }], endpoint: { url: "https://runtime-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }, { conditions: [{ [t]: h, [u]: ["aws-us-gov", p] }], endpoint: q, type: g }, { endpoint: { url: "https://runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: s, type: e, rules: [{ conditions: [o], type: e, rules: [{ endpoint: { url: "https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: q, type: g }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -46,6 +46,10 @@ const serializeAws_restJson1InvokeEndpointAsyncCommand = async (input, context)
|
|
|
46
46
|
() => isSerializableHeaderValue(input.RequestTTLSeconds),
|
|
47
47
|
() => input.RequestTTLSeconds.toString(),
|
|
48
48
|
],
|
|
49
|
+
"x-amzn-sagemaker-invocationtimeoutseconds": [
|
|
50
|
+
() => isSerializableHeaderValue(input.InvocationTimeoutSeconds),
|
|
51
|
+
() => input.InvocationTimeoutSeconds.toString(),
|
|
52
|
+
],
|
|
49
53
|
});
|
|
50
54
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
51
55
|
"/endpoints/{EndpointName}/async-invocations";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a =
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const t = "fn", u = "argv", v = "ref";
|
|
2
|
+
const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = "stringEquals", i = { "required": true, "default": false, "type": "Boolean" }, j = { [v]: "Endpoint" }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: d }, "supportsFIPS"] }] }, o = { [t]: "booleanEquals", [u]: [true, { [t]: "getAttr", [u]: [{ [v]: d }, "supportsDualStack"] }] }, p = { [t]: "getAttr", [u]: [{ [v]: d }, "name"] }, q = { "url": "https://runtime.sagemaker.{Region}.{PartitionResult#dnsSuffix}", "properties": {}, "headers": {} }, r = [k], s = [l];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: i, UseFIPS: i, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [t]: "aws.partition", [u]: [{ [v]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [t]: "isSet", [u]: [j] }], type: e, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: j, properties: m, headers: m }, type: g }] }] }, { conditions: [k, l], type: e, rules: [{ conditions: [n, o], type: e, rules: [{ endpoint: { url: "https://runtime.sagemaker-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: r, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ conditions: [{ [t]: h, [u]: ["aws", p] }], endpoint: { url: "https://runtime-fips.sagemaker.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }, { conditions: [{ [t]: h, [u]: ["aws-us-gov", p] }], endpoint: q, type: g }, { endpoint: { url: "https://runtime.sagemaker-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: s, type: e, rules: [{ conditions: [o], type: e, rules: [{ endpoint: { url: "https://runtime.sagemaker.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: g }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { endpoint: q, type: g }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -42,6 +42,10 @@ export const serializeAws_restJson1InvokeEndpointAsyncCommand = async (input, co
|
|
|
42
42
|
() => isSerializableHeaderValue(input.RequestTTLSeconds),
|
|
43
43
|
() => input.RequestTTLSeconds.toString(),
|
|
44
44
|
],
|
|
45
|
+
"x-amzn-sagemaker-invocationtimeoutseconds": [
|
|
46
|
+
() => isSerializableHeaderValue(input.InvocationTimeoutSeconds),
|
|
47
|
+
() => input.InvocationTimeoutSeconds.toString(),
|
|
48
|
+
],
|
|
45
49
|
});
|
|
46
50
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
47
51
|
"/endpoints/{EndpointName}/async-invocations";
|
|
@@ -10,23 +10,23 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
|
|
|
10
10
|
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your
|
|
11
11
|
* client applications use this API to get inferences from the model hosted at the
|
|
12
12
|
* specified endpoint. </p>
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* <p>For an overview of Amazon SageMaker, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html">How It Works</a>. </p>
|
|
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
|
-
*
|
|
17
|
+
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services
|
|
18
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
|
|
22
22
|
* itself can have a maximum processing time of 60 seconds before responding to
|
|
23
23
|
* invocations. If your model is going to take 50-60 seconds of processing time, the SDK
|
|
24
24
|
* socket timeout should be set to be 70 seconds.</p>
|
|
25
|
-
*
|
|
25
|
+
* <note>
|
|
26
26
|
* <p>Endpoints are scoped to an individual account, and are not public. The URL does
|
|
27
27
|
* not contain the account ID, but Amazon SageMaker determines the account ID from the
|
|
28
28
|
* authentication token that is supplied by the caller.</p>
|
|
29
|
-
*
|
|
29
|
+
* </note>
|
|
30
30
|
*/
|
|
31
31
|
invokeEndpoint(args: InvokeEndpointCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointCommandOutput>;
|
|
32
32
|
invokeEndpoint(args: InvokeEndpointCommandInput, cb: (err: any, data?: InvokeEndpointCommandOutput) => void): void;
|
|
@@ -35,17 +35,14 @@ export declare class SageMakerRuntime extends SageMakerRuntimeClient {
|
|
|
35
35
|
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your client
|
|
36
36
|
* applications use this API to get inferences from the model hosted at the specified
|
|
37
37
|
* endpoint in an asynchronous manner.</p>
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* processing of the inference request may or may not complete before the you receive a
|
|
38
|
+
* <p>Inference requests sent to this API are enqueued for asynchronous processing. The
|
|
39
|
+
* processing of the inference request may or may not complete before you receive a
|
|
41
40
|
* response from this API. The response from this API will not contain the result of the
|
|
42
41
|
* inference request but contain information about where you can locate it.</p>
|
|
43
|
-
*
|
|
44
|
-
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker
|
|
42
|
+
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker
|
|
45
43
|
* might add additional headers. You should not rely on the behavior of headers outside
|
|
46
44
|
* those enumerated in the request syntax.</p>
|
|
47
|
-
*
|
|
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
|
|
45
|
+
* <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/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the
|
|
49
46
|
* <i>Amazon S3 API Reference</i>.</p>
|
|
50
47
|
*/
|
|
51
48
|
invokeEndpointAsync(args: InvokeEndpointAsyncCommandInput, options?: __HttpHandlerOptions): Promise<InvokeEndpointAsyncCommandOutput>;
|
|
@@ -11,17 +11,14 @@ export interface InvokeEndpointAsyncCommandOutput extends InvokeEndpointAsyncOut
|
|
|
11
11
|
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your client
|
|
12
12
|
* applications use this API to get inferences from the model hosted at the specified
|
|
13
13
|
* endpoint in an asynchronous manner.</p>
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* processing of the inference request may or may not complete before the you receive a
|
|
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 you receive a
|
|
17
16
|
* response from this API. The response from this API will not contain the result of the
|
|
18
17
|
* inference request but contain information about where you can locate it.</p>
|
|
19
|
-
*
|
|
20
|
-
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker
|
|
18
|
+
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker
|
|
21
19
|
* might add additional headers. You should not rely on the behavior of headers outside
|
|
22
20
|
* those enumerated in the request syntax.</p>
|
|
23
|
-
*
|
|
24
|
-
* <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
|
|
21
|
+
* <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/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating Requests (Amazon Web Services Signature Version 4)</a> in the
|
|
25
22
|
* <i>Amazon S3 API Reference</i>.</p>
|
|
26
23
|
* @example
|
|
27
24
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -11,23 +11,23 @@ export interface InvokeEndpointCommandOutput extends InvokeEndpointOutput, __Met
|
|
|
11
11
|
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your
|
|
12
12
|
* client applications use this API to get inferences from the model hosted at the
|
|
13
13
|
* specified endpoint. </p>
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* <p>For an overview of Amazon SageMaker, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/how-it-works.html">How It Works</a>. </p>
|
|
15
|
+
* <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
|
|
16
16
|
* additional headers. You should not rely on the behavior of headers outside those
|
|
17
17
|
* enumerated in the request syntax. </p>
|
|
18
|
-
*
|
|
18
|
+
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services
|
|
19
19
|
* Signature Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
|
|
20
20
|
* Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
|
|
21
21
|
* Reference</i>.</p>
|
|
22
|
-
*
|
|
22
|
+
* <p>A customer's model containers must respond to requests within 60 seconds. The model
|
|
23
23
|
* itself can have a maximum processing time of 60 seconds before responding to
|
|
24
24
|
* invocations. If your model is going to take 50-60 seconds of processing time, the SDK
|
|
25
25
|
* socket timeout should be set to be 70 seconds.</p>
|
|
26
|
-
*
|
|
26
|
+
* <note>
|
|
27
27
|
* <p>Endpoints are scoped to an individual account, and are not public. The URL does
|
|
28
28
|
* not contain the account ID, but Amazon SageMaker determines the account ID from the
|
|
29
29
|
* authentication token that is supplied by the caller.</p>
|
|
30
|
-
*
|
|
30
|
+
* </note>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
|
|
|
12
12
|
defaultSigningName: string;
|
|
13
13
|
};
|
|
14
14
|
export interface EndpointParameters extends __EndpointParameters {
|
|
15
|
-
Region
|
|
15
|
+
Region: string;
|
|
16
16
|
UseDualStack?: boolean;
|
|
17
17
|
UseFIPS?: boolean;
|
|
18
18
|
Endpoint?: string;
|
|
@@ -34,7 +34,7 @@ export interface InvokeEndpointInput {
|
|
|
34
34
|
/**
|
|
35
35
|
* <p>Provides input data, in the format specified in the <code>ContentType</code>
|
|
36
36
|
* request header. Amazon SageMaker passes all of the data in the body to the model. </p>
|
|
37
|
-
*
|
|
37
|
+
* <p>For information about the format of the request body, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/cdf-inference.html">Common Data
|
|
38
38
|
* Formats-Inference</a>.</p>
|
|
39
39
|
*/
|
|
40
40
|
Body: Uint8Array | undefined;
|
|
@@ -54,13 +54,12 @@ export interface InvokeEndpointInput {
|
|
|
54
54
|
* programmed to process. The value must consist of no more than 1024 visible US-ASCII
|
|
55
55
|
* characters as specified in <a href="https://tools.ietf.org/html/rfc7230#section-3.2.6">Section 3.3.6. Field Value
|
|
56
56
|
* Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). </p>
|
|
57
|
-
*
|
|
57
|
+
* <p>The code in your model is responsible for setting or updating any custom attributes in
|
|
58
58
|
* the response. If your code does not set this value in the response, an empty value is
|
|
59
59
|
* returned. For example, if a custom attribute represents the trace ID, your model can
|
|
60
60
|
* prepend the custom attribute with <code>Trace ID:</code> in your post-processing
|
|
61
61
|
* function.</p>
|
|
62
|
-
*
|
|
63
|
-
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
62
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
64
63
|
* Python SDK.</p>
|
|
65
64
|
*/
|
|
66
65
|
CustomAttributes?: string;
|
|
@@ -73,7 +72,7 @@ export interface InvokeEndpointInput {
|
|
|
73
72
|
* endpoint that is running two or more variants. Note that this parameter overrides the
|
|
74
73
|
* default behavior for the endpoint, which is to distribute the invocation traffic based
|
|
75
74
|
* on the variant weights.</p>
|
|
76
|
-
*
|
|
75
|
+
* <p>For information about how to use variant targeting to perform a/b testing, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-ab-testing.html">Test models in
|
|
77
76
|
* production</a>
|
|
78
77
|
* </p>
|
|
79
78
|
*/
|
|
@@ -91,7 +90,7 @@ export interface InvokeEndpointInput {
|
|
|
91
90
|
InferenceId?: string;
|
|
92
91
|
/**
|
|
93
92
|
* <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-
|
|
93
|
+
* parameter of the <code>ClarifyExplainerConfig</code> API. See the <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-online-explainability-create-endpoint.html#clarify-online-explainability-create-endpoint-enable">EnableExplanations</a> section in the developer guide for more information.
|
|
95
94
|
* </p>
|
|
96
95
|
*/
|
|
97
96
|
EnableExplanations?: string;
|
|
@@ -99,9 +98,9 @@ export interface InvokeEndpointInput {
|
|
|
99
98
|
export interface InvokeEndpointOutput {
|
|
100
99
|
/**
|
|
101
100
|
* <p>Includes the inference provided by the model. </p>
|
|
102
|
-
*
|
|
101
|
+
* <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
|
|
103
102
|
* Formats-Inference</a>.</p>
|
|
104
|
-
*
|
|
103
|
+
* <p>If the explainer is activated, the
|
|
105
104
|
* body includes the explanations provided by the model. For more information, see the
|
|
106
105
|
* <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>
|
|
107
106
|
*/
|
|
@@ -124,12 +123,12 @@ export interface InvokeEndpointOutput {
|
|
|
124
123
|
* Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). If the customer
|
|
125
124
|
* wants the custom attribute returned, the model must set the custom attribute to be
|
|
126
125
|
* included on the way back. </p>
|
|
127
|
-
*
|
|
126
|
+
* <p>The code in your model is responsible for setting or updating any custom attributes in
|
|
128
127
|
* the response. If your code does not set this value in the response, an empty value is
|
|
129
128
|
* returned. For example, if a custom attribute represents the trace ID, your model can
|
|
130
129
|
* prepend the custom attribute with <code>Trace ID:</code> in your post-processing
|
|
131
130
|
* function.</p>
|
|
132
|
-
*
|
|
131
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
133
132
|
* Python SDK.</p>
|
|
134
133
|
*/
|
|
135
134
|
CustomAttributes?: string;
|
|
@@ -221,14 +220,12 @@ export interface InvokeEndpointAsyncInput {
|
|
|
221
220
|
* process. The value must consist of no more than 1024 visible US-ASCII characters as
|
|
222
221
|
* 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
222
|
* (HTTP/1.1). </p>
|
|
224
|
-
*
|
|
225
|
-
* <p>The code in your model is responsible for setting or updating any custom attributes in
|
|
223
|
+
* <p>The code in your model is responsible for setting or updating any custom attributes in
|
|
226
224
|
* the response. If your code does not set this value in the response, an empty value is
|
|
227
225
|
* returned. For example, if a custom attribute represents the trace ID, your model can
|
|
228
226
|
* prepend the custom attribute with <code>Trace ID</code>: in your post-processing
|
|
229
227
|
* function. </p>
|
|
230
|
-
*
|
|
231
|
-
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
228
|
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
|
|
232
229
|
* Python SDK. </p>
|
|
233
230
|
*/
|
|
234
231
|
CustomAttributes?: string;
|
|
@@ -246,6 +243,10 @@ export interface InvokeEndpointAsyncInput {
|
|
|
246
243
|
* expired.</p>
|
|
247
244
|
*/
|
|
248
245
|
RequestTTLSeconds?: number;
|
|
246
|
+
/**
|
|
247
|
+
* <p>Maximum amount of time in seconds a request can be processed before it is marked as expired.</p>
|
|
248
|
+
*/
|
|
249
|
+
InvocationTimeoutSeconds?: number;
|
|
249
250
|
}
|
|
250
251
|
export interface InvokeEndpointAsyncOutput {
|
|
251
252
|
/**
|
|
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
|
|
|
27
27
|
defaultSigningName: string;
|
|
28
28
|
};
|
|
29
29
|
export interface EndpointParameters extends __EndpointParameters {
|
|
30
|
-
Region
|
|
30
|
+
Region: string;
|
|
31
31
|
UseDualStack?: boolean;
|
|
32
32
|
UseFIPS?: boolean;
|
|
33
33
|
Endpoint?: string;
|
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.261.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",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.261.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.259.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.261.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.257.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.257.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.257.0",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@aws-sdk/node-config-provider": "3.259.0",
|
|
40
40
|
"@aws-sdk/node-http-handler": "3.257.0",
|
|
41
41
|
"@aws-sdk/protocol-http": "3.257.0",
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
+
"@aws-sdk/smithy-client": "3.261.0",
|
|
43
43
|
"@aws-sdk/types": "3.257.0",
|
|
44
44
|
"@aws-sdk/url-parser": "3.257.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.208.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.261.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.261.0",
|
|
50
50
|
"@aws-sdk/util-endpoints": "3.257.0",
|
|
51
51
|
"@aws-sdk/util-retry": "3.257.0",
|
|
52
52
|
"@aws-sdk/util-user-agent-browser": "3.257.0",
|