You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(client-sagemaker-runtime): A new parameter called EnableExplanations is added to InvokeEndpoint API to enable on-demand SageMaker Clarify online explainability requests.
Copy file name to clipboardExpand all lines: clients/client-sagemaker-runtime/src/SageMakerRuntime.ts
+14-16Lines changed: 14 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -25,8 +25,8 @@ export class SageMakerRuntime extends SageMakerRuntimeClient {
25
25
* <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
26
26
* additional headers. You should not rely on the behavior of headers outside those
27
27
* enumerated in the request syntax. </p>
28
-
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services Signature Version
29
-
* 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
28
+
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services
29
+
* Signature Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
30
30
* Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
31
31
* Reference</i>.</p>
32
32
* <p>A customer's model containers must respond to requests within 60 seconds. The model
@@ -69,23 +69,21 @@ export class SageMakerRuntime extends SageMakerRuntimeClient {
69
69
}
70
70
71
71
/**
72
-
* <p>After you deploy a model into production using Amazon SageMaker hosting services,
73
-
* your client applications use this API to get inferences from the model hosted at
74
-
* the specified endpoint in an asynchronous manner.</p>
72
+
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your client
73
+
* applications use this API to get inferences from the model hosted at the specified
74
+
* endpoint in an asynchronous manner.</p>
75
75
*
76
-
* <p>Inference requests sent to this API are enqueued for asynchronous processing.
77
-
* The processing of the inference request may or may not complete before the
78
-
* you receive a response from this API. The response from this API will
79
-
* not contain the result of the inference request but contain information
80
-
* about where you can locate it.</p>
76
+
* <p>Inference requests sent to this API are enqueued for asynchronous processing. The
77
+
* processing of the inference request may or may not complete before the you receive a
78
+
* response from this API. The response from this API will not contain the result of the
79
+
* inference request but contain information about where you can locate it.</p>
81
80
*
82
-
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API.
83
-
* Amazon SageMaker might add additional headers. You should not rely on the behavior
84
-
* of headers outside those enumerated in the request syntax.</p>
81
+
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker
82
+
* might add additional headers. You should not rely on the behavior of headers outside
83
+
* those enumerated in the request syntax.</p>
85
84
*
86
-
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature
87
-
* 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 <i>Amazon S3 API
88
-
* Reference</i>.</p>
85
+
* <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
* <p>After you deploy a model into production using Amazon SageMaker hosting services,
32
-
* your client applications use this API to get inferences from the model hosted at
33
-
* the specified endpoint in an asynchronous manner.</p>
31
+
* <p>After you deploy a model into production using Amazon SageMaker hosting services, your client
32
+
* applications use this API to get inferences from the model hosted at the specified
33
+
* endpoint in an asynchronous manner.</p>
34
34
*
35
-
* <p>Inference requests sent to this API are enqueued for asynchronous processing.
36
-
* The processing of the inference request may or may not complete before the
37
-
* you receive a response from this API. The response from this API will
38
-
* not contain the result of the inference request but contain information
39
-
* about where you can locate it.</p>
35
+
* <p>Inference requests sent to this API are enqueued for asynchronous processing. The
36
+
* processing of the inference request may or may not complete before the you receive a
37
+
* response from this API. The response from this API will not contain the result of the
38
+
* inference request but contain information about where you can locate it.</p>
40
39
*
41
-
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API.
42
-
* Amazon SageMaker might add additional headers. You should not rely on the behavior
43
-
* of headers outside those enumerated in the request syntax.</p>
40
+
* <p>Amazon SageMaker strips all <code>POST</code> headers except those supported by the API. Amazon SageMaker
41
+
* might add additional headers. You should not rely on the behavior of headers outside
42
+
* those enumerated in the request syntax.</p>
44
43
*
45
-
* <p>Calls to <code>InvokeEndpointAsync</code> are authenticated by using Amazon Web Services Signature
46
-
* 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 <i>Amazon S3 API
47
-
* Reference</i>.</p>
44
+
* <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
+
* <i>Amazon S3 API Reference</i>.</p>
48
46
* @example
49
47
* Use a bare-bones client and the command you need to make an API call.
* <p>Amazon SageMaker strips all POST headers except those supported by the API. Amazon SageMaker might add
36
36
* additional headers. You should not rely on the behavior of headers outside those
37
37
* enumerated in the request syntax. </p>
38
-
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services Signature Version
39
-
* 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
38
+
* <p>Calls to <code>InvokeEndpoint</code> are authenticated by using Amazon Web Services
39
+
* Signature Version 4. For information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html">Authenticating
40
40
* Requests (Amazon Web Services Signature Version 4)</a> in the <i>Amazon S3 API
41
41
* Reference</i>.</p>
42
42
* <p>A customer's model containers must respond to requests within 60 seconds. The model
* <p>An optional JMESPath expression used to override the <code>EnableExplanations</code>
124
+
* 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.
125
+
* </p>
126
+
*/
127
+
EnableExplanations?: string;
120
128
}
121
129
122
130
exportinterfaceInvokeEndpointOutput{
123
131
/**
124
-
* <p>Includes the inference provided by the model.</p>
132
+
* <p>Includes the inference provided by the model.</p>
125
133
* <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
126
134
* Formats-Inference</a>.</p>
135
+
* <p>If the explainer is activated, the
136
+
* body includes the explanations provided by the model. For more information, see the
137
+
* <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>
* returned. For example, if a custom attribute represents the trace ID, your model can
153
164
* prepend the custom attribute with <code>Trace ID:</code> in your post-processing
154
165
* function.</p>
155
-
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python
156
-
* SDK.</p>
166
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
167
+
* Python SDK.</p>
157
168
*/
158
169
CustomAttributes?: string;
159
170
}
@@ -198,7 +209,9 @@ export class ModelError extends __BaseException {
198
209
}
199
210
200
211
/**
201
-
* <p>Either a serverless endpoint variant's resources are still being provisioned, or a multi-model endpoint is still downloading or loading the target model. Wait and try your request again.</p>
212
+
* <p>Either a serverless endpoint variant's resources are still being provisioned, or a
213
+
* multi-model endpoint is still downloading or loading the target model. Wait and try your
* Field Value Components</a> of the Hypertext Transfer Protocol (HTTP/1.1). </p>
296
+
* <p>Provides additional information about a request for an inference submitted to a model
297
+
* hosted at an Amazon SageMaker endpoint. The information is an opaque value that is forwarded
298
+
* verbatim. You could use this value, for example, to provide an ID that you can use to
299
+
* track a request or to provide other metadata that a service endpoint was programmed to
300
+
* process. The value must consist of no more than 1024 visible US-ASCII characters as
301
+
* 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
302
+
* (HTTP/1.1). </p>
291
303
*
292
-
* <p>The code in your model is responsible for setting or updating any custom attributes
293
-
* in the response. If your code does not set this value in the response, an empty
294
-
* value is returned. For example, if a custom attribute represents the trace ID,
295
-
* your model can prepend the custom attribute with <code>Trace ID</code>: in your post-processing function. </p>
304
+
* <p>The code in your model is responsible for setting or updating any custom attributes in
305
+
* the response. If your code does not set this value in the response, an empty value is
306
+
* returned. For example, if a custom attribute represents the trace ID, your model can
307
+
* prepend the custom attribute with <code>Trace ID</code>: in your post-processing
308
+
* function. </p>
296
309
*
297
-
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker Python SDK. </p>
310
+
* <p>This feature is currently supported in the Amazon Web Services SDKs but not in the Amazon SageMaker
311
+
* Python SDK. </p>
298
312
*/
299
313
CustomAttributes?: string;
300
314
301
315
/**
302
-
* <p>The identifier for the inference request. Amazon SageMaker will generate an identifier for you
303
-
* if none is specified. </p>
316
+
* <p>The identifier for the inference request. Amazon SageMaker will generate an identifier for you if
0 commit comments